Tweaks for raster layer props and got rid of show debug overlay option

git-svn-id: http://svn.osgeo.org/qgis/trunk@9269 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
timlinux 2008-09-05 23:57:28 +00:00
parent 4af184e49c
commit dad407e494
2 changed files with 338 additions and 523 deletions

View File

@ -454,8 +454,6 @@ void QgsRasterLayerProperties::setMinimumMaximumEstimateWarning()
void QgsRasterLayerProperties::sync()
{
QgsDebugMsg( "called." );
cboxShowDebugInfo->hide();
QgsDebugMsg( "sync populate symbology tab" );
/*
* Symbology Tab
@ -786,15 +784,11 @@ void QgsRasterLayerProperties::sync()
/*
* General Tab
*/
cboxShowDebugInfo->hide();
//these properties (layer name and label) are provided by the qgsmaplayer superclass
leLayerSource->setText( mRasterLayer->source() );
leDisplayName->setText( mRasterLayer->name() );
//update the debug checkbox
cboxShowDebugInfo->setChecked( mRasterLayer->getShowDebugOverlayFlag() );
//display the raster dimensions and no data value
if ( mRasterLayerIsGdal )
{
@ -1418,15 +1412,7 @@ void QgsRasterLayerProperties::apply()
*/
mRasterLayer->setLayerName( leDisplayName->text() );
//see if the user would like debug overlays
if ( cboxShowDebugInfo->isChecked() == true )
{
mRasterLayer->setShowDebugOverlayFlag( true );
}
else
{
mRasterLayer->setShowDebugOverlayFlag( false );
}
mRasterLayer->setShowDebugOverlayFlag( true );
// set up the scale based layer visibility stuff....
mRasterLayer->setScaleBasedVisibility( chkUseScaleDependentRendering->isChecked() );

File diff suppressed because it is too large Load Diff