Skip to content

Commit

Permalink
Merge pull request #698 from 3nids/svgpan
Browse files Browse the repository at this point in the history
SVG for pan icons
  • Loading branch information
timlinux committed Aug 15, 2013
2 parents 25e79f9 + 66a7afa commit 69d80b9
Show file tree
Hide file tree
Showing 12 changed files with 127 additions and 48 deletions.
3 changes: 1 addition & 2 deletions images/images.qrc
Expand Up @@ -230,8 +230,7 @@
<file>themes/default/mActionOffsetCurve.png</file>
<file>themes/default/mActionOpenTable.png</file>
<file>themes/default/mActionOptions.svg</file>
<file>themes/default/mActionPan.png</file>
<file>themes/default/mActionPanToSelected.png</file>
<file>themes/default/mActionPan.svg</file>
<file>themes/default/mActionPanToSelected.svg</file>
<file>themes/default/mActionPinLabels.svg</file>
<file>themes/default/mActionProjectProperties.png</file>
Expand Down
Binary file removed images/themes/default/mActionPan.png
Binary file not shown.
79 changes: 79 additions & 0 deletions images/themes/default/mActionPan.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/themes/default/mActionPanToSelected.png
Binary file not shown.
75 changes: 38 additions & 37 deletions images/themes/default/mActionPanToSelected.svg
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/qgisapp.cpp
Expand Up @@ -1767,7 +1767,7 @@ void QgisApp::setTheme( QString theThemeName )
#ifdef HAVE_TOUCH
mActionTouch->setIcon( QgsApplication::getThemeIcon( "/mActionTouch.png" ) );
#endif
mActionPan->setIcon( QgsApplication::getThemeIcon( "/mActionPan.png" ) );
mActionPan->setIcon( QgsApplication::getThemeIcon( "/mActionPan.svg" ) );
mActionPanToSelected->setIcon( QgsApplication::getThemeIcon( "/mActionPanToSelected.svg" ) );
mActionZoomLast->setIcon( QgsApplication::getThemeIcon( "/mActionZoomLast.svg" ) );
mActionZoomNext->setIcon( QgsApplication::getThemeIcon( "/mActionZoomNext.svg" ) );
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsattributetabledialog.cpp
Expand Up @@ -136,7 +136,7 @@ QgsAttributeTableDialog::QgsAttributeTableDialog( QgsVectorLayer *theLayer, QWid
mSelectedToTopButton->setIcon( QgsApplication::getThemeIcon( "/mActionSelectedToTop.png" ) );
mCopySelectedRowsButton->setIcon( QgsApplication::getThemeIcon( "/mActionCopySelected.png" ) );
mZoomMapToSelectedRowsButton->setIcon( QgsApplication::getThemeIcon( "/mActionZoomToSelected.svg" ) );
mPanMapToSelectedRowsButton->setIcon( QgsApplication::getThemeIcon( "/mActionPanToSelected.png" ) );
mPanMapToSelectedRowsButton->setIcon( QgsApplication::getThemeIcon( "/mActionPanToSelected.svg" ) );
mInvertSelectionButton->setIcon( QgsApplication::getThemeIcon( "/mActionInvertSelection.png" ) );
mToggleEditingButton->setIcon( QgsApplication::getThemeIcon( "/mActionToggleEditing.svg" ) );
mSaveEditsButton->setIcon( QgsApplication::getThemeIcon( "/mActionSaveEdits.svg" ) );
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/georeferencer/qgsgeorefplugingui.cpp
Expand Up @@ -829,7 +829,7 @@ void QgsGeorefPluginGui::createActions()
connect( mActionMoveGCPPoint, SIGNAL( triggered() ), this, SLOT( setMovePointTool() ) );

// View actions
mActionPan->setIcon( getThemeIcon( "/mActionPan.png" ) );
mActionPan->setIcon( getThemeIcon( "/mActionPan.svg" ) );
connect( mActionPan, SIGNAL( triggered() ), this, SLOT( setPanTool() ) );

mActionZoomIn->setIcon( getThemeIcon( "/mActionZoomIn.svg" ) );
Expand Down Expand Up @@ -1089,7 +1089,7 @@ void QgsGeorefPluginGui::updateIconTheme( QString theme )
mActionMoveGCPPoint->setIcon( getThemeIcon( "/mActionMoveGCPPoint.png" ) );

// View actions
mActionPan->setIcon( getThemeIcon( "/mActionPan.png" ) );
mActionPan->setIcon( getThemeIcon( "/mActionPan.svg" ) );
mActionZoomIn->setIcon( getThemeIcon( "/mActionZoomIn.svg" ) );
mActionZoomOut->setIcon( getThemeIcon( "/mActionZoomOut.svg" ) );
mActionZoomToLayer->setIcon( getThemeIcon( "/mActionZoomToLayer.svg" ) );
Expand Down
4 changes: 2 additions & 2 deletions src/ui/qgisapp.ui
Expand Up @@ -799,7 +799,7 @@
</property>
<property name="icon">
<iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/mActionPan.png</normaloff>:/images/themes/default/mActionPan.png</iconset>
<normaloff>:/images/themes/default/mActionPan.svg</normaloff>:/images/themes/default/mActionPan.svg</iconset>
</property>
<property name="text">
<string>Pan Map</string>
Expand Down Expand Up @@ -1688,7 +1688,7 @@ Ctl (Cmd) increments by 15 deg.</string>
<action name="mActionPanToSelected">
<property name="icon">
<iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/mActionPanToSelected.png</normaloff>:/images/themes/default/mActionPanToSelected.png</iconset>
<normaloff>:/images/themes/default/mActionPanToSelected.svg</normaloff>:/images/themes/default/mActionPanToSelected.svg</iconset>
</property>
<property name="text">
<string>Pan Map to Selection</string>
Expand Down
2 changes: 1 addition & 1 deletion src/ui/qgsattributetabledialog.ui
Expand Up @@ -244,7 +244,7 @@
</property>
<property name="icon">
<iconset>
<normaloff>:/images/themes/default/mActionPanToSelected.png</normaloff>:/images/themes/default/mActionPanToSelected.png</iconset>
<normaloff>:/images/themes/default/mActionPanToSelected.svg</normaloff>../../images/themes/default/mActionPanToSelected.svg</iconset>
</property>
<property name="iconSize">
<size>
Expand Down
2 changes: 1 addition & 1 deletion src/ui/qgscomposerbase.ui
Expand Up @@ -210,7 +210,7 @@
<action name="mActionSelectMoveItem">
<property name="icon">
<iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/mActionPan.png</normaloff>:/images/themes/default/mActionPan.png</iconset>
<normaloff>:/images/themes/default/mActionPan.svg</normaloff>:/images/themes/default/mActionPan.svg</iconset>
</property>
<property name="text">
<string>Move Item</string>
Expand Down
2 changes: 1 addition & 1 deletion src/ui/qgslabelingguibase.ui
Expand Up @@ -550,7 +550,7 @@
</property>
<property name="icon">
<iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/mActionPan.png</normaloff>:/images/themes/default/mActionPan.png</iconset>
<normaloff>:/images/themes/default/mActionPan.svg</normaloff>:/images/themes/default/mActionPan.svg</iconset>
</property>
</item>
<item>
Expand Down

0 comments on commit 69d80b9

Please sign in to comment.