Skip to content
Permalink
Browse files

mapped symbollayer properties widgets to layer selection changes

  • Loading branch information
tecoholic committed Jul 9, 2012
1 parent 7c80008 commit 0a9e87f08f67a44316201bea90d146bc3ba4f09c
@@ -417,7 +417,6 @@ QgsMarkerLineSymbolLayerV2Widget::QgsMarkerLineSymbolLayerV2Widget( const QgsVec
setupUi( this );

connect( spinInterval, SIGNAL( valueChanged( double ) ), this, SLOT( setInterval( double ) ) );
connect( btnChangeMarker, SIGNAL( clicked() ), this, SLOT( setMarker() ) );
connect( chkRotateMarker, SIGNAL( clicked() ), this, SLOT( setRotate() ) );
connect( spinOffset, SIGNAL( valueChanged( double ) ), this, SLOT( setOffset() ) );
connect( radInterval, SIGNAL( clicked() ), this, SLOT( setPlacement() ) );
@@ -449,7 +448,6 @@ void QgsMarkerLineSymbolLayerV2Widget::setSymbolLayer( QgsSymbolLayerV2* layer )
radCentralPoint->setChecked( true );
else
radVertexFirst->setChecked( true );
updateMarker();
setPlacement(); // update gui
}

@@ -464,16 +462,6 @@ void QgsMarkerLineSymbolLayerV2Widget::setInterval( double val )
emit changed();
}

void QgsMarkerLineSymbolLayerV2Widget::setMarker()
{
QgsSymbolV2PropertiesDialog dlg( mLayer->subSymbol(), mVectorLayer, this );
if ( dlg.exec() == 0 )
return;
updateMarker();

emit changed();
}

void QgsMarkerLineSymbolLayerV2Widget::setRotate()
{
mLayer->setRotateMarker( chkRotateMarker->isChecked() );
@@ -486,13 +474,6 @@ void QgsMarkerLineSymbolLayerV2Widget::setOffset()
emit changed();
}


void QgsMarkerLineSymbolLayerV2Widget::updateMarker()
{
QIcon icon = QgsSymbolLayerV2Utils::symbolPreviewIcon( mLayer->subSymbol(), btnChangeMarker->iconSize() );
btnChangeMarker->setIcon( icon );
}

void QgsMarkerLineSymbolLayerV2Widget::setPlacement()
{
bool interval = radInterval->isChecked();
@@ -161,15 +161,12 @@ class GUI_EXPORT QgsMarkerLineSymbolLayerV2Widget : public QgsSymbolLayerV2Widge
public slots:

void setInterval( double val );
void setMarker();
void setRotate();
void setOffset();
void setPlacement();

protected:

void updateMarker();

QgsMarkerLineSymbolLayerV2* mLayer;
};

0 comments on commit 0a9e87f

Please sign in to comment.
You can’t perform that action at this time.