Skip to content
Permalink
Browse files
Allow changing rendering order in rule-based renderer
  • Loading branch information
wonder-sk committed Nov 30, 2011
1 parent e553416 commit 45caf4f6bc5acde5ac559b491ebfcea89ef58470
Showing with 21 additions and 0 deletions.
  1. +12 −0 src/gui/symbology-ng/qgsrulebasedrendererv2widget.cpp
  2. +2 −0 src/gui/symbology-ng/qgsrulebasedrendererv2widget.h
  3. +7 −0 src/ui/qgsrulebasedrendererv2widget.ui
@@ -84,6 +84,8 @@ QgsRuleBasedRendererV2Widget::QgsRuleBasedRendererV2Widget( QgsVectorLayer* laye
connect( radGroupFilter, SIGNAL( clicked() ), this, SLOT( setGrouping() ) );
connect( radGroupScale, SIGNAL( clicked() ), this, SLOT( setGrouping() ) );

connect( btnRenderingOrder, SIGNAL( clicked() ), this, SLOT( setRenderingOrder() ) );

treeRules->populateRules();
}

@@ -391,6 +393,16 @@ void QgsRuleBasedRendererV2Widget::refreshSymbolView()
}
}

#include "qgssymbollevelsv2dialog.h"

void QgsRuleBasedRendererV2Widget::setRenderingOrder()
{
QgsSymbolV2List symbols = mRenderer->symbols();

QgsSymbolLevelsV2Dialog dlg( symbols, true, this );
dlg.exec();
}


///////////

@@ -87,6 +87,8 @@ class GUI_EXPORT QgsRuleBasedRendererV2Widget : public QgsRendererV2Widget, priv
void refineRuleCategories();
void refineRuleRanges();

void setRenderingOrder();

protected:

void refineRule( int type );
@@ -130,6 +130,13 @@
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btnRenderingOrder">
<property name="text">
<string>Rendering order...</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>

0 comments on commit 45caf4f

Please sign in to comment.