34 #include <QMessageBox>
48 if ( !iconName.isEmpty() )
52 if ( pix.load( iconPath,
"png" ) )
62 static bool initialized =
false;
77 : mLayer( layer ), mStyle( style ), mActiveWidget( NULL )
85 layout()->setContentsMargins( 0, 0, 0, 0 );
88 connect( buttonBox, SIGNAL( accepted() ),
this, SLOT(
onOK() ) );
104 connect( mLayerTransparencySlider, SIGNAL( valueChanged(
int ) ), mLayerTransparencySpnBx, SLOT( setValue(
int ) ) );
105 connect( mLayerTransparencySpnBx, SIGNAL( valueChanged(
int ) ), mLayerTransparencySlider, SLOT( setValue(
int ) ) );
110 foreach ( QString name, renderers )
116 cboRenderers->setCurrentIndex( -1 );
119 connect( cboRenderers, SIGNAL( currentIndexChanged(
int ) ),
this, SLOT(
rendererChanged() ) );
123 for (
int i = 0; i < cboRenderers->count(); i++ )
125 if ( cboRenderers->itemData( i ).toString() == rendererName )
127 cboRenderers->setCurrentIndex( i );
133 Q_ASSERT(
false &&
"there must be a renderer!" );
141 if ( cboRenderers->currentIndex() == -1 )
143 QgsDebugMsg(
"No current item -- this should never happen!" );
147 QString rendererName = cboRenderers->itemData( cboRenderers->currentIndex() ).toString();
184 stackedWidget->setCurrentWidget( pageNoWidget );
220 if ( !isWindow() && e->key() == Qt::Key_Escape )