Skip to content

Commit fa99c34

Browse files
author
timlinux
committed
For all plugins use icon name based on <plugin_dir>.png
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8952 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent d4aa8a6 commit fa99c34

25 files changed

+17
-225
lines changed

src/plugins/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
SUBDIRS (copyright_label delimited_text grid_maker north_arrow scale_bar)
22

33
IF (POSTGRES_FOUND)
4-
SUBDIRS (geoprocessing spit)
4+
SUBDIRS (spit)
55
ENDIF (POSTGRES_FOUND)
66

77
IF (EXPAT_FOUND)
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<RCC>
22
<qresource prefix="/" >
3-
<file>copyright.png</file>
3+
<file>copyright_label.png</file>
44
</qresource>
55
</RCC>

src/plugins/copyright_label/plugin.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ QgsCopyrightLabelPlugin::~QgsCopyrightLabelPlugin()
7474
void QgsCopyrightLabelPlugin::initGui()
7575
{
7676
// Create the action for tool
77-
myQActionPointer = new QAction(QIcon(":/copyright.png"), tr("&Copyright Label"), this);
77+
myQActionPointer = new QAction(QIcon(":/copyright_label.png"), tr("&Copyright Label"), this);
7878
myQActionPointer->setWhatsThis(tr("Creates a copyright label that is displayed on the map canvas."));
7979
// Connect the action to the run
8080
connect(myQActionPointer, SIGNAL(activated()), this, SLOT(run()));
File renamed without changes.
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<RCC>
22
<qresource prefix="/" >
33
<file>georef.png</file>
4-
<file>icon.png</file>
4+
<file>georeferencer.png</file>
55
<file>pencil.png</file>
66
</qresource>
77
</RCC>

src/plugins/georeferencer/plugin.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ QgsGeorefPlugin::~QgsGeorefPlugin()
8888
void QgsGeorefPlugin::initGui()
8989
{
9090
// Create the action for tool
91-
mQActionPointer = new QAction(QIcon(":/icon.png"), tr("&Georeferencer"), this);
91+
mQActionPointer = new QAction(QIcon(":/georeferencer.png"), tr("&Georeferencer"), this);
9292

9393
// Connect the action to the run
9494
connect(mQActionPointer, SIGNAL(triggered()), this, SLOT(run()));
746 Bytes
Loading

src/plugins/gps_importer/icon.xpm

-205
This file was deleted.
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<RCC>
22
<qresource prefix="/" >
3-
<file>gps.xpm</file>
3+
<file>gps_importer.png</file>
44
</qresource>
55
</RCC>

src/plugins/gps_importer/qgsgpsplugin.cpp

+2-5
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@
4646
//the gui subclass
4747
#include "qgsgpsplugingui.h"
4848

49-
// xpm for creating the toolbar icon
50-
#include "icon.xpm"
51-
5249

5350
static const char * const ident_ =
5451
"$Id$";
@@ -90,8 +87,8 @@ QgsGPSPlugin::~QgsGPSPlugin()
9087
void QgsGPSPlugin::initGui()
9188
{
9289
// add an action to the toolbar
93-
mQActionPointer = new QAction(QIcon(icon), tr("&Gps Tools"), this);
94-
mCreateGPXAction = new QAction(QIcon(icon), tr("&Create new GPX layer"), this);
90+
mQActionPointer = new QAction(QIcon(":/gps_importer.png"), tr("&Gps Tools"), this);
91+
mCreateGPXAction = new QAction(QIcon(":/gps_importer.png"), tr("&Create new GPX layer"), this);
9592

9693
mQActionPointer->setWhatsThis(tr("Creates a new GPX layer and displays it on the map canvas"));
9794
mCreateGPXAction->setWhatsThis(tr("Creates a new GPX layer and displays it on the map canvas"));
File renamed without changes.
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<RCC>
22
<qresource prefix="/" >
3-
<file>graticule.png</file>
3+
<file>grid_maker.png</file>
44
</qresource>
55
</RCC>

src/plugins/grid_maker/plugin.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ int QgsGridMakerPlugin::type()
8888
void QgsGridMakerPlugin::initGui()
8989
{
9090
// Create the action for tool
91-
myQActionPointer = new QAction(QIcon(":/graticule.png"), tr("&Graticule Creator"), this);
91+
myQActionPointer = new QAction(QIcon(":/grid_maker.png"), tr("&Graticule Creator"), this);
9292
myQActionPointer->setWhatsThis(tr("Creates a graticule (grid) and stores the result as a shapefile"));
9393
// Connect the action to the run
9494
connect(myQActionPointer, SIGNAL(activated()), this, SLOT(run()));
File renamed without changes.
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<RCC>
22
<qresource prefix="/" >
3-
<file>northarrow.png</file>
3+
<file>north_arrow.png</file>
44
</qresource>
55
</RCC>

src/plugins/north_arrow/plugin.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ QgsNorthArrowPlugin::~QgsNorthArrowPlugin()
9191
void QgsNorthArrowPlugin::initGui()
9292
{
9393
// Create the action for tool
94-
myQActionPointer = new QAction(QIcon(":/northarrow.png"), tr("&North Arrow"), this);
94+
myQActionPointer = new QAction(QIcon(":/north_arrow.png"), tr("&North Arrow"), this);
9595
myQActionPointer->setWhatsThis(tr("Creates a north arrow that is displayed on the map canvas"));
9696
// Connect the action to the run
9797
connect(myQActionPointer, SIGNAL(activated()), this, SLOT(run()));
File renamed without changes.
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<RCC>
22
<qresource prefix="/quickprint/" >
3-
<file>quickprint.png</file>
3+
<file>quick_print.png</file>
44
</qresource>
55
</RCC>

src/plugins/quick_print/quickprintplugin.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ void QuickPrintPlugin::initGui()
7272
{
7373

7474
// Create the action for tool
75-
mQActionPointer = new QAction(QIcon(":/quickprint/quickprint.png"),tr("Quick Print"), this);
75+
mQActionPointer = new QAction(QIcon(":/quickprint/quick_print.png"),tr("Quick Print"), this);
7676
// Set the what's this text
77-
mQActionPointer->setWhatsThis(tr("Replace this with a short description of the what the plugin does"));
77+
mQActionPointer->setWhatsThis(tr("Provides a qay to quickly produce a map with minimal user input."));
7878
// Connect the action to the run
7979
connect(mQActionPointer, SIGNAL(activated()), this, SLOT(run()));
8080
// Add the icon to the toolbar

src/plugins/scale_bar/plugin.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ QgsScaleBarPlugin::~QgsScaleBarPlugin()
9797
void QgsScaleBarPlugin::initGui()
9898
{
9999
// Create the action for tool
100-
myQActionPointer = new QAction(QIcon(":/scalebar.png"), tr("&Scale Bar"), this);
100+
myQActionPointer = new QAction(QIcon(":/scale_bar.png"), tr("&Scale Bar"), this);
101101
myQActionPointer->setWhatsThis(tr("Creates a scale bar that is displayed on the map canvas"));
102102
// Connect the action to the run
103103
connect(myQActionPointer, SIGNAL(activated()), this, SLOT(run()));
File renamed without changes.
File renamed without changes.
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<RCC>
22
<qresource prefix="/" >
3-
<file>scalebar.png</file>
3+
<file>scale_bar.png</file>
44
</qresource>
55
</RCC>

0 commit comments

Comments
 (0)