diff --git a/src/app/qgsrasterlayerproperties.cpp b/src/app/qgsrasterlayerproperties.cpp
index 5ebc93c9fa0..f1228e2c797 100644
--- a/src/app/qgsrasterlayerproperties.cpp
+++ b/src/app/qgsrasterlayerproperties.cpp
@@ -157,7 +157,7 @@ QgsRasterLayerProperties::QgsRasterLayerProperties( QgsMapLayer* lyr, QgsMapCanv
mColormapTreeWidget->setHeaderLabels( headerLabels );
//disable colormap tab completely until 'Colormap' is selected (and only for type GrayOrUndefined)
- tabPageColormap->setEnabled( false );
+ tabBar->setTabEnabled( tabBar->indexOf( tabPageColormap ), false );
//
// Set up the combo boxes that contain band lists using the qstring list generated above
@@ -1726,7 +1726,7 @@ void QgsRasterLayerProperties::on_cboxColorMap_currentIndexChanged( const QStrin
if ( theText == tr( "Pseudocolor" ) || theText == tr( "Freak Out" ) )
{
- tabPageColormap->setEnabled( false );
+ tabBar->setTabEnabled( tabBar->indexOf( tabPageColormap ), false );
rbtnSingleBandMinMax->setEnabled( false );
rbtnSingleBandStdDev->setEnabled( true );
sboxSingleBandStdDev->setEnabled( true );
@@ -1736,7 +1736,7 @@ void QgsRasterLayerProperties::on_cboxColorMap_currentIndexChanged( const QStrin
}
else if ( theText == tr( "Colormap" ) )
{
- tabPageColormap->setEnabled( true );
+ tabBar->setTabEnabled( tabBar->indexOf( tabPageColormap ), true );
rbtnSingleBandMinMax->setEnabled( false );
rbtnSingleBandStdDev->setEnabled( false );
sboxSingleBandStdDev->setEnabled( false );
@@ -1746,7 +1746,7 @@ void QgsRasterLayerProperties::on_cboxColorMap_currentIndexChanged( const QStrin
}
else if ( theText == tr( "User Defined" ) )
{
- tabPageColormap->setEnabled( false );
+ tabBar->setTabEnabled( tabBar->indexOf( tabPageColormap ), false );
rbtnSingleBandMinMax->setEnabled( true );
rbtnSingleBandStdDev->setEnabled( true );
sboxSingleBandStdDev->setEnabled( true );
@@ -1756,7 +1756,7 @@ void QgsRasterLayerProperties::on_cboxColorMap_currentIndexChanged( const QStrin
}
else
{
- tabPageColormap->setEnabled( false );
+ tabBar->setTabEnabled( tabBar->indexOf( tabPageColormap ), false );
rbtnSingleBandMinMax->setEnabled( true );
rbtnSingleBandStdDev->setEnabled( true );
sboxSingleBandStdDev->setEnabled( true );
@@ -2136,7 +2136,7 @@ void QgsRasterLayerProperties::on_rbtnSingleBand_toggled( bool theState )
if ( cboxColorMap->currentText() == tr( "Pseudocolor" ) )
{
- tabPageColormap->setEnabled( true );
+ tabBar->setTabEnabled( tabBar->indexOf( tabPageColormap ), true );
}
if ( cboxColorMap->currentText() == tr( "Pseudocolor" ) || cboxColorMap->currentText() == tr( "Color Ramp" ) || cboxColorMap->currentText() == tr( "Freak Out" ) || mRasterLayer->rasterType() == QgsRasterLayer::Palette )
@@ -2214,7 +2214,7 @@ void QgsRasterLayerProperties::on_rbtnThreeBand_toggled( bool theState )
stackedWidget->setCurrentIndex( 0 );
rbtnSingleBand->setChecked( false );
cboxColorMap->setEnabled( false );
- tabPageColormap->setEnabled( false );
+ tabBar->setTabEnabled( tabBar->indexOf( tabPageColormap ), false );
grpRgbBands->setEnabled( true );
diff --git a/src/ui/qgsrasterlayerpropertiesbase.ui b/src/ui/qgsrasterlayerpropertiesbase.ui
index b1c97fc7142..2acc94e8831 100644
--- a/src/ui/qgsrasterlayerpropertiesbase.ui
+++ b/src/ui/qgsrasterlayerpropertiesbase.ui
@@ -61,8 +61,8 @@
0
0
- 441
- 607
+ 462
+ 619
@@ -943,6 +943,215 @@
+
+
+
+ :/images/themes/default/propertyicons/colormap.png:/images/themes/default/propertyicons/colormap.png
+
+
+ Colormap
+
+
+
+ 0
+
+ -
+
+
+ Generate new color map
+
+
+
-
+
+
+ Number of entries
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ 255
+
+
+
+ -
+
+
+ Classification mode
+
+
+
+ -
+
+
+ -
+
+
+ Classify
+
+
+
+
+
+
+ -
+
+
+ Color map
+
+
+
-
+
+
+ Qt::Horizontal
+
+
+
+ 321
+ 45
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+
+ 41
+ 27
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Minimum
+
+
+
+ 20
+ 20
+
+
+
+
+ -
+
+
+ Color interpolation
+
+
+
+ -
+
+
+ -
+
+
+ Add entry
+
+
+
+ -
+
+
+ Delete entry
+
+
+
+ -
+
+
+ Sort
+
+
+
+ -
+
+
+ -
+
+
+ Load color map from band
+
+
+ ...
+
+
+
+ ../../images/themes/default/mActionNewAttribute.png../../images/themes/default/mActionNewAttribute.png
+
+
+
+ -
+
+
+ Load color map from file
+
+
+ ...
+
+
+
+ ../../images/themes/default/mActionFolder.png../../images/themes/default/mActionFolder.png
+
+
+
+ -
+
+
+ Export color map to file
+
+
+ ...
+
+
+
+ ../../images/themes/default/mActionFileSave.png../../images/themes/default/mActionFileSave.png
+
+
+
+ -
+
+
+ 3
+
+
+
+ 1
+
+
+
+
+ 1
+
+
+
+
+ 2
+
+
+
+
+
+
+
+
+
@@ -971,8 +1180,8 @@
0
0
- 553
- 397
+ 413
+ 327
@@ -1276,215 +1485,6 @@
-
-
-
- :/images/themes/default/propertyicons/colormap.png:/images/themes/default/propertyicons/colormap.png
-
-
- Colormap
-
-
-
- 0
-
- -
-
-
- Generate new color map
-
-
-
-
-
-
- Number of entries
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
- 255
-
-
-
- -
-
-
- Classification mode
-
-
-
- -
-
-
- -
-
-
- Classify
-
-
-
-
-
-
- -
-
-
- Color map
-
-
-
-
-
-
- Qt::Horizontal
-
-
-
- 321
- 45
-
-
-
-
- -
-
-
- Qt::Horizontal
-
-
-
- 41
- 27
-
-
-
-
- -
-
-
- Qt::Horizontal
-
-
- QSizePolicy::Minimum
-
-
-
- 20
- 20
-
-
-
-
- -
-
-
- Color interpolation
-
-
-
- -
-
-
- -
-
-
- Add entry
-
-
-
- -
-
-
- Delete entry
-
-
-
- -
-
-
- Sort
-
-
-
- -
-
-
- -
-
-
- Load color map from band
-
-
- ...
-
-
-
- ../../images/themes/default/mActionNewAttribute.png../../images/themes/default/mActionNewAttribute.png
-
-
-
- -
-
-
- Load color map from file
-
-
- ...
-
-
-
- ../../images/themes/default/mActionFolder.png../../images/themes/default/mActionFolder.png
-
-
-
- -
-
-
- Export color map to file
-
-
- ...
-
-
-
- ../../images/themes/default/mActionFileSave.png../../images/themes/default/mActionFileSave.png
-
-
-
- -
-
-
- 3
-
-
-
- 1
-
-
-
-
- 1
-
-
-
-
- 2
-
-
-
-
-
-
-
-
-
@@ -1801,8 +1801,8 @@
0
0
- 97
- 229
+ 112
+ 245
@@ -1879,17 +1879,18 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
-</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:7.8pt; font-weight:400; font-style:normal;">
+</style></head><body style=" font-family:'Droid Sans'; font-size:11pt; font-weight:400; font-style:normal;">
<table border="0" style="-qt-table-type: root; margin-top:4px; margin-bottom:4px; margin-left:4px; margin-right:4px;">
<tr>
<td style="border: none;">
-<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;"></p>
-<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Ubuntu'; font-size:11pt;"></p>
+<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'MS Shell Dlg 2'; font-size:8pt;"></p>
+<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'MS Shell Dlg 2'; font-size:8pt;"></p>
+<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Ubuntu';"></p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Ubuntu'; font-size:9pt;"></p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Ubuntu'; font-size:9pt;"></p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Ubuntu'; font-size:10pt;"></p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans'; font-size:10pt;"></p>
-<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Ubuntu'; font-size:11pt;"></p>
+<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Ubuntu';"></p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans'; font-size:10pt;"></p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans'; font-size:10pt;"></p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans'; font-size:10pt;"></p>