Skip to content

Commit 5964c60

Browse files
author
homann
committedJan 17, 2008

File tree

2 files changed

+26
-51
lines changed

2 files changed

+26
-51
lines changed
 

‎src/app/qgsrasterlayerproperties.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,19 @@ mpRasterLayer( dynamic_cast<QgsRasterLayer*>(lyr) )
334334

335335
leSpatialRefSys->setText(mpRasterLayer->srs().proj4String());
336336

337+
// Set text for pyramid info box
338+
QString pyramidFormat("<h2>%1</h2><p>%2 %3 %4</p><b><font color='red'><p>%5</p><p>%6</p>");
339+
QString pyramidHeader = tr("Description");
340+
QString pyramidSentence1 = tr("Large resolution raster layers can slow navigation in QGIS.");
341+
QString pyramidSentence2 = tr("By creating lower resolution copies of the data (pyramids) performance can be considerably improved as QGIS selects the most suitable resolution to use depending on the level of zoom.");
342+
QString pyramidSentence3 = tr("You must have write access in the directory where the original data is stored to build pyramids.");
343+
QString pyramidSentence4 = tr("Please note that building pyramids may alter the original data file and once created they cannot be removed!");
344+
QString pyramidSentence5 = tr("Please note that building pyramids could corrupt your image - always make a backup of your data first!");
345+
346+
tePyramidDescription->setHtml(pyramidFormat.arg(pyramidHeader).arg(pyramidSentence1)
347+
.arg(pyramidSentence2).arg(pyramidSentence3)
348+
.arg(pyramidSentence4).arg(pyramidSentence5));
349+
337350
// update based on lyr's current state
338351
sync();
339352
} // QgsRasterLayerProperties ctor

‎src/ui/qgsrasterlayerpropertiesbase.ui

Lines changed: 13 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -321,19 +321,8 @@
321321
</property>
322322
<item row="3" column="3" >
323323
<widget class="QLabel" name="lblBlueMax" >
324-
<property name="sizePolicy" >
325-
<sizepolicy>
326-
<hsizetype>0</hsizetype>
327-
<vsizetype>0</vsizetype>
328-
<horstretch>0</horstretch>
329-
<verstretch>0</verstretch>
330-
</sizepolicy>
331-
</property>
332324
<property name="text" >
333-
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
334-
p, li { white-space: pre-wrap; }
335-
&lt;/style>&lt;/head>&lt;body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal; text-decoration:none;">
336-
&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">&lt;span style=" font-weight:600; color:#0000ff;">Max&lt;/span>&lt;/p>&lt;/body>&lt;/html></string>
325+
<string>&lt;b>&lt;font color='blue'>Max&lt;/font>&lt;/b></string>
337326
</property>
338327
</widget>
339328
</item>
@@ -389,10 +378,7 @@ p, li { white-space: pre-wrap; }
389378
</sizepolicy>
390379
</property>
391380
<property name="text" >
392-
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
393-
p, li { white-space: pre-wrap; }
394-
&lt;/style>&lt;/head>&lt;body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal; text-decoration:none;">
395-
&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">&lt;span style=" font-weight:600; color:#008000;">Min&lt;/span>&lt;/p>&lt;/body>&lt;/html></string>
381+
<string>&lt;b>&lt;font color='green'>Min&lt;/font>&lt;/b></string>
396382
</property>
397383
</widget>
398384
</item>
@@ -407,10 +393,7 @@ p, li { white-space: pre-wrap; }
407393
</sizepolicy>
408394
</property>
409395
<property name="text" >
410-
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
411-
p, li { white-space: pre-wrap; }
412-
&lt;/style>&lt;/head>&lt;body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal; text-decoration:none;">
413-
&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">&lt;span style=" font-weight:600; color:#008000;">Max&lt;/span>&lt;/p>&lt;/body>&lt;/html></string>
396+
<string>&lt;b>&lt;font color='green'>Max&lt;/font>&lt;/b></string>
414397
</property>
415398
</widget>
416399
</item>
@@ -425,10 +408,7 @@ p, li { white-space: pre-wrap; }
425408
</sizepolicy>
426409
</property>
427410
<property name="text" >
428-
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
429-
p, li { white-space: pre-wrap; }
430-
&lt;/style>&lt;/head>&lt;body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal; text-decoration:none;">
431-
&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">&lt;span style=" font-weight:600; color:#ff0000;">Min&lt;/span>&lt;/p>&lt;/body>&lt;/html></string>
411+
<string>&lt;b>&lt;font color='red'>Min&lt;/font>&lt;/b></string>
432412
</property>
433413
</widget>
434414
</item>
@@ -483,10 +463,7 @@ p, li { white-space: pre-wrap; }
483463
</sizepolicy>
484464
</property>
485465
<property name="text" >
486-
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
487-
p, li { white-space: pre-wrap; }
488-
&lt;/style>&lt;/head>&lt;body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal; text-decoration:none;">
489-
&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">&lt;span style=" font-weight:600; color:#ff0000;">Max&lt;/span>&lt;/p>&lt;/body>&lt;/html></string>
466+
<string>&lt;b>&lt;font color='red'>Max&lt;/font>&lt;/b></string>
490467
</property>
491468
</widget>
492469
</item>
@@ -568,10 +545,7 @@ p, li { white-space: pre-wrap; }
568545
</sizepolicy>
569546
</property>
570547
<property name="text" >
571-
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
572-
p, li { white-space: pre-wrap; }
573-
&lt;/style>&lt;/head>&lt;body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal; text-decoration:none;">
574-
&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">&lt;span style=" font-weight:600; color:#0000ff;">Min&lt;/span>&lt;/p>&lt;/body>&lt;/html></string>
548+
<string>&lt;b>&lt;font color='blue'>Min&lt;/font>&lt;/b></string>
575549
</property>
576550
</widget>
577551
</item>
@@ -734,7 +708,7 @@ p, li { white-space: pre-wrap; }
734708
<item row="2" column="0" >
735709
<widget class="QLabel" name="lblBlue" >
736710
<property name="text" >
737-
<string>&lt;b>&lt;font color="#0000ff">Blue&lt;/font>&lt;/b></string>
711+
<string>&lt;b>&lt;font color='blue'>Blue&lt;/font>&lt;/b></string>
738712
</property>
739713
<property name="buddy" >
740714
<cstring>cboBlue</cstring>
@@ -744,7 +718,7 @@ p, li { white-space: pre-wrap; }
744718
<item row="1" column="0" >
745719
<widget class="QLabel" name="lblGreen" >
746720
<property name="text" >
747-
<string>&lt;b>&lt;font color="#00ff00">Green&lt;/font>&lt;/b></string>
721+
<string>&lt;b>&lt;font color='green'>Green&lt;/font>&lt;/b></string>
748722
</property>
749723
<property name="buddy" >
750724
<cstring>cboGreen</cstring>
@@ -754,10 +728,7 @@ p, li { white-space: pre-wrap; }
754728
<item row="0" column="0" >
755729
<widget class="QLabel" name="lblRed" >
756730
<property name="text" >
757-
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
758-
p, li { white-space: pre-wrap; }
759-
&lt;/style>&lt;/head>&lt;body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;">
760-
&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">&lt;span style=" font-weight:600; color:#ff0000;">Red&lt;/span>&lt;/p>&lt;/body>&lt;/html></string>
731+
<string>&lt;b>&lt;font color='red'>Red&lt;/font>&lt;/b></string>
761732
</property>
762733
<property name="buddy" >
763734
<cstring>cboRed</cstring>
@@ -1757,7 +1728,7 @@ p, li { white-space: pre-wrap; }
17571728
<number>6</number>
17581729
</property>
17591730
<item rowspan="2" row="0" column="0" >
1760-
<widget class="Q3TextEdit" name="textEdit5" >
1731+
<widget class="QTextEdit" name="tePyramidDescription" >
17611732
<property name="sizePolicy" >
17621733
<sizepolicy>
17631734
<hsizetype>7</hsizetype>
@@ -1766,17 +1737,8 @@ p, li { white-space: pre-wrap; }
17661737
<verstretch>0</verstretch>
17671738
</sizepolicy>
17681739
</property>
1769-
<property name="text" >
1770-
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style="font-size:9pt;font-family:Sans Serif">
1771-
&lt;p style="margin-top:18px" dir="ltr">&lt;span style="font-size:13pt;font-weight:600">Description&lt;/span>&lt;/p>
1772-
&lt;p dir="ltr">Large resolution raster layers can slow navigation in QGIS. By creating lower resolution copies of the data (pyramids) performance can be considerably improved as QGIS selects the most suitable resolution to use depending on the level of zoom. You must have write access in the directory where the original data is stored to build pyramids. &lt;/p>
1773-
&lt;p dir="ltr">&lt;span style="color:#ff0000">Please note that building pyramids may alter the original data file and once created they cannot be removed.&lt;/span>&lt;/p>
1774-
&lt;p dir="ltr">&lt;span style="color:#ff0000">Please note that building pyramids could corrupt your image - always make a backup of your data first!&lt;/span>&lt;/p>
1775-
&lt;/body>&lt;/html>
1776-
</string>
1777-
</property>
1778-
<property name="wordWrap" >
1779-
<enum>Q3TextEdit::WidgetWidth</enum>
1740+
<property name="html" >
1741+
<string></string>
17801742
</property>
17811743
</widget>
17821744
</item>
@@ -2079,7 +2041,7 @@ p, li { white-space: pre-wrap; }
20792041
<tabstop>spinMaximumScale</tabstop>
20802042
<tabstop>leSpatialRefSys</tabstop>
20812043
<tabstop>pbnChangeSpatialRefSys</tabstop>
2082-
<tabstop>textEdit5</tabstop>
2044+
<tabstop>tePyramidDescription</tabstop>
20832045
<tabstop>cboResamplingMethod</tabstop>
20842046
<tabstop>buttonBuildPyramids</tabstop>
20852047
<tabstop>radHistTypeBar</tabstop>

0 commit comments

Comments
 (0)
Please sign in to comment.