19 #include <QStandardItem>
21 #include <QMessageBox>
39 if ( abstractMetadata == NULL )
41 QgsDebugMsg(
"Failed to find symbol layer's entry in registry: " + name );
45 if ( metadata == NULL )
47 QgsDebugMsg(
"Failed to cast symbol layer's metadata: " + name );
56 static bool initialized =
false;
108 cboLayerType->setCurrentIndex( idx );
111 connect( cboLayerType, SIGNAL( currentIndexChanged(
int ) ),
this, SLOT(
layerTypeChanged() ) );
118 for (
int i = 0; i < types.count(); i++ )
124 for (
int i = 0; i < typesLine.count(); i++ )
127 QString name = QString(
tr(
"Outline: %1" ) ).arg( visibleName );
128 cboLayerType->addItem( name, typesLine[i] );
136 if ( stackedWidget->currentWidget() != pageDummy )
140 stackedWidget->removeWidget( stackedWidget->currentWidget() );
153 stackedWidget->addWidget( w );
154 stackedWidget->setCurrentWidget( w );
161 stackedWidget->setCurrentWidget( pageDummy );
169 QString newLayerType = cboLayerType->itemData( cboLayerType->currentIndex() ).toString();
170 if ( layer->
layerType() == newLayerType )
182 if ( newLayer == NULL )