Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed the symbol editor tweaks"
"
  • Loading branch information
Arunmozhi committed Jul 11, 2012
1 parent b1c4a83 commit 63eba56
Show file tree
Hide file tree
Showing 16 changed files with 87 additions and 59 deletions.
13 changes: 10 additions & 3 deletions src/gui/symbology-ng/qgssymbolslistwidget.cpp
Expand Up @@ -53,7 +53,16 @@ QgsSymbolsListWidget::QgsSymbolsListWidget( QgsSymbolV2* symbol, QgsStyleV2* sty
viewSymbols->setModel( model );
connect( viewSymbols, SIGNAL( clicked( const QModelIndex & ) ), this, SLOT( setSymbolFromStyle( const QModelIndex & ) ) );

connect( btnStyleManager, SIGNAL( clicked() ), SLOT( openStyleManager() ) );
// Set the Style Menu under btnStyle
QMenu *styleMenu = new QMenu( btnStyle );
QAction *styleMgrAction = new QAction( "Style Manager", styleMenu );
styleMenu->addAction( styleMgrAction );
QAction *saveStyle = new QAction( "Save as style", styleMenu );
styleMenu->addAction( saveStyle );
connect( styleMgrAction, SIGNAL( triggered() ), this, SLOT( openStyleManager() ) );
connect( saveStyle, SIGNAL( triggered() ), this, SLOT( addSymbolToStyle() ) );
btnStyle->setMenu( styleMenu );

lblSymbolName->setText( "" );
populateSymbolView();

Expand All @@ -79,8 +88,6 @@ QgsSymbolsListWidget::QgsSymbolsListWidget( QgsSymbolV2* symbol, QgsStyleV2* sty
connect( spinSize, SIGNAL( valueChanged( double ) ), this, SLOT( setMarkerSize( double ) ) );
connect( spinWidth, SIGNAL( valueChanged( double ) ), this, SLOT( setLineWidth( double ) ) );

connect( btnAddToStyle, SIGNAL( clicked() ), this, SLOT( addSymbolToStyle() ) );
btnAddToStyle->setIcon( QIcon( QgsApplication::defaultThemePath() + "symbologyAdd.png" ) );

// Set symbol color in btnColor
updateSymbolColor();
Expand Down
7 changes: 1 addition & 6 deletions src/gui/symbology-ng/qgssymbolv2selectordialog.cpp
Expand Up @@ -495,13 +495,8 @@ void QgsSymbolV2SelectorDialog::changeLayer( QgsSymbolLayerV2* newLayer )
// When it is a marker symbol
if ( newLayer->subSymbol() )
{
/*
SymbolLayerItem *subsymbol = new SymbolLayerItem( newLayer->subSymbol() );
SymbolLayerItem *sublayer = new SymbolLayerItem( newLayer->subSymbol()->symbolLayer( 0 ) );
subsymbol->appendRow( sublayer );
item->appendRow( subsymbol );
*/
loadSymbol( newLayer->subSymbol(), item );
layersTree->setExpanded( item->index(), true );
}

// Change the symbol at last to avoid deleting item's layer
Expand Down
7 changes: 5 additions & 2 deletions src/ui/symbollayer/widget_ellipse.ui
Expand Up @@ -7,13 +7,16 @@
<x>0</x>
<y>0</y>
<width>336</width>
<height>326</height>
<height>336</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<property name="margin">
<number>1</number>
</property>
<item row="0" column="0">
<widget class="QTabWidget" name="tabWidget">
<property name="currentIndex">
Expand Down Expand Up @@ -106,7 +109,7 @@
<item row="6" column="0" colspan="2">
<widget class="QListWidget" name="mShapeListWidget">
<property name="dragDropMode">
<enum>QAbstractItemView::DropOnly</enum>
<enum>QAbstractItemView::NoDragDrop</enum>
</property>
<property name="iconSize">
<size>
Expand Down
3 changes: 3 additions & 0 deletions src/ui/symbollayer/widget_fontmarker.ui
Expand Up @@ -14,6 +14,9 @@
<string>Form</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="margin">
<number>1</number>
</property>
<item>
<layout class="QGridLayout" name="gridLayout">
<property name="sizeConstraint">
Expand Down
53 changes: 25 additions & 28 deletions src/ui/symbollayer/widget_layerproperties.ui
Expand Up @@ -13,34 +13,13 @@
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="1" column="0">
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>Symbol Layer Properties</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QStackedWidget" name="stackedWidget">
<widget class="QWidget" name="pageDummy">
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string> This layer doen't have any editbale properties</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
</widget>
</item>
<layout class="QGridLayout" name="gridLayout">
<property name="verticalSpacing">
<number>3</number>
</property>
<property name="margin">
<number>1</number>
</property>
<item row="0" column="0">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
Expand All @@ -62,6 +41,24 @@
</item>
</layout>
</item>
<item row="1" column="0">
<widget class="QStackedWidget" name="stackedWidget">
<widget class="QWidget" name="pageDummy">
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string> This layer doesn't have any editbale properties</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
</widget>
<resources/>
Expand Down
5 changes: 4 additions & 1 deletion src/ui/symbollayer/widget_linedecoration.ui
Expand Up @@ -6,14 +6,17 @@
<rect>
<x>0</x>
<y>0</y>
<width>366</width>
<width>368</width>
<height>242</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="margin">
<number>1</number>
</property>
<item>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
Expand Down
7 changes: 5 additions & 2 deletions src/ui/symbollayer/widget_linepatternfill.ui
Expand Up @@ -6,14 +6,17 @@
<rect>
<x>0</x>
<y>0</y>
<width>236</width>
<height>151</height>
<width>201</width>
<height>202</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<property name="margin">
<number>1</number>
</property>
<item row="0" column="0">
<widget class="QLabel" name="mAngleLabel">
<property name="text">
Expand Down
5 changes: 4 additions & 1 deletion src/ui/symbollayer/widget_markerline.ui
Expand Up @@ -6,14 +6,17 @@
<rect>
<x>0</x>
<y>0</y>
<width>352</width>
<width>263</width>
<height>281</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<property name="margin">
<number>1</number>
</property>
<item row="0" column="0" colspan="2">
<widget class="QLabel" name="label_2">
<property name="text">
Expand Down
3 changes: 3 additions & 0 deletions src/ui/symbollayer/widget_pointpatternfill.ui
Expand Up @@ -14,6 +14,9 @@
<string>Form</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<property name="margin">
<number>1</number>
</property>
<item row="0" column="1">
<widget class="QDoubleSpinBox" name="mHorizontalDistanceSpinBox">
<property name="decimals">
Expand Down
5 changes: 4 additions & 1 deletion src/ui/symbollayer/widget_simplefill.ui
Expand Up @@ -7,13 +7,16 @@
<x>0</x>
<y>0</y>
<width>335</width>
<height>206</height>
<height>212</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="margin">
<number>1</number>
</property>
<item>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
Expand Down
5 changes: 4 additions & 1 deletion src/ui/symbollayer/widget_simpleline.ui
Expand Up @@ -6,14 +6,17 @@
<rect>
<x>0</x>
<y>0</y>
<width>358</width>
<width>368</width>
<height>296</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<property name="margin">
<number>1</number>
</property>
<item row="0" column="0">
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
Expand Down
3 changes: 3 additions & 0 deletions src/ui/symbollayer/widget_simplemarker.ui
Expand Up @@ -14,6 +14,9 @@
<string>Form</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="margin">
<number>1</number>
</property>
<item>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
Expand Down
3 changes: 3 additions & 0 deletions src/ui/symbollayer/widget_svgfill.ui
Expand Up @@ -14,6 +14,9 @@
<string>Form</string>
</property>
<layout class="QGridLayout" name="gridLayout_3">
<property name="margin">
<number>1</number>
</property>
<item row="0" column="0">
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
Expand Down
3 changes: 3 additions & 0 deletions src/ui/symbollayer/widget_svgmarker.ui
Expand Up @@ -14,6 +14,9 @@
<string>Form</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<property name="margin">
<number>1</number>
</property>
<item row="0" column="0" colspan="2">
<layout class="QGridLayout">
<item row="0" column="0">
Expand Down
21 changes: 7 additions & 14 deletions src/ui/symbollayer/widget_symbolslist.ui
Expand Up @@ -250,20 +250,6 @@
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="btnAddToStyle">
<property name="text">
<string>Save as style</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btnStyleManager">
<property name="text">
<string>Style manager...</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="2" column="0">
Expand Down Expand Up @@ -325,6 +311,13 @@
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="btnStyle">
<property name="text">
<string>Style</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btnAdvanced">
<property name="text">
Expand Down
3 changes: 3 additions & 0 deletions src/ui/symbollayer/widget_vectorfield.ui
Expand Up @@ -14,6 +14,9 @@
<string>Form</string>
</property>
<layout class="QGridLayout" name="gridLayout_4">
<property name="margin">
<number>1</number>
</property>
<item row="0" column="0">
<widget class="QLabel" name="mXAttributeLabel">
<property name="text">
Expand Down

0 comments on commit 63eba56

Please sign in to comment.