Skip to content

Commit

Permalink
New icons for identify modes
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Apr 23, 2018
1 parent 8c7b632 commit c4ef70e
Show file tree
Hide file tree
Showing 8 changed files with 264 additions and 10 deletions.
4 changes: 4 additions & 0 deletions images/images.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,10 @@
<file>themes/default/mActionNewReport.svg</file>
<file>themes/default/mIconReport.svg</file>
<file>themes/default/downloading_svg.svg</file>
<file>themes/default/mActionIdentifyByFreehand.svg</file>
<file>themes/default/mActionIdentifyByPolygon.svg</file>
<file>themes/default/mActionIdentifyByRadius.svg</file>
<file>themes/default/mActionIdentifyByRectangle.svg</file>
</qresource>
<qresource prefix="/images/tips">
<file alias="symbol_levels.png">qgis_tips/symbol_levels.png</file>
Expand Down
63 changes: 63 additions & 0 deletions images/themes/default/mActionIdentifyByFreehand.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
63 changes: 63 additions & 0 deletions images/themes/default/mActionIdentifyByPolygon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
68 changes: 68 additions & 0 deletions images/themes/default/mActionIdentifyByRadius.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
59 changes: 59 additions & 0 deletions images/themes/default/mActionIdentifyByRectangle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/app/qgsidentifyresultsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2048,7 +2048,7 @@ void QgsIdentifyResultsDialog::setSelectionMode()
emit selectionModeChanged();
}

QgsMapToolSelectionHandler::SelectionMode QgsIdentifyResultsDialog::selectionMode()
QgsMapToolSelectionHandler::SelectionMode QgsIdentifyResultsDialog::selectionMode() const
{
return mSelectionMode;
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsidentifyresultsdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class APP_EXPORT QgsIdentifyResultsDialog: public QDialog, private Ui::QgsIdenti
*/
QgsExpressionContextScope expressionContextScope() const;

QgsMapToolSelectionHandler::SelectionMode selectionMode();
QgsMapToolSelectionHandler::SelectionMode selectionMode() const;

signals:
void selectedFeatureChanged( QgsVectorLayer *, QgsFeatureId featureId );
Expand Down
13 changes: 5 additions & 8 deletions src/ui/qgsidentifyresultsbase.ui
Original file line number Diff line number Diff line change
Expand Up @@ -339,11 +339,10 @@
<string>Print Selected HTML Response</string>
</property>
</action>

<action name="mActionSelectFeatures">
<action name="mActionSelectFeatures">
<property name="icon">
<iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/mActionSelectRectangle.svg</normaloff>:/images/themes/default/mActionSelectRectangle.svg</iconset>
<normaloff>:/images/themes/default/mActionIdentifyByRectangle.svg</normaloff>:/images/themes/default/mActionIdentifyByRectangle.svg</iconset>
</property>
<property name="text">
<string>Identify Feature(s)</string>
Expand All @@ -355,7 +354,7 @@
<action name="mActionSelectPolygon">
<property name="icon">
<iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/mActionSelectPolygon.svg</normaloff>:/images/themes/default/mActionSelectPolygon.svg</iconset>
<normaloff>:/images/themes/default/mActionIdentifyByPolygon.svg</normaloff>:/images/themes/default/mActionIdentifyByPolygon.svg</iconset>
</property>
<property name="text">
<string>Identify Features by Polygon</string>
Expand All @@ -364,7 +363,7 @@
<action name="mActionSelectFreehand">
<property name="icon">
<iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/mActionSelectFreehand.svg</normaloff>:/images/themes/default/mActionSelectFreehand.svg</iconset>
<normaloff>:/images/themes/default/mActionIdentifyByFreehand.svg</normaloff>:/images/themes/default/mActionIdentifyByFreehand.svg</iconset>
</property>
<property name="text">
<string>Identify Features by Freehand</string>
Expand All @@ -373,14 +372,12 @@
<action name="mActionSelectRadius">
<property name="icon">
<iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/mActionSelectRadius.svg</normaloff>:/images/themes/default/mActionSelectRadius.svg</iconset>
<normaloff>:/images/themes/default/mActionIdentifyByRadius.svg</normaloff>:/images/themes/default/mActionIdentifyByRadius.svg</iconset>
</property>
<property name="text">
<string>Identify Features by Radius</string>
</property>
</action>


</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
Expand Down

0 comments on commit c4ef70e

Please sign in to comment.