2 changes: 2 additions & 0 deletions images/images.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
<file>themes/default/mActionOptions.png</file>
<file>themes/default/mActionPan.png</file>
<file>themes/default/mActionPanToSelected.png</file>
<file>themes/default/mActionShowRasterCalculator.png</file>
<file>themes/default/mAction.png</file>
<file>themes/default/mActionProjectProperties.png</file>
<file>themes/default/mActionPropertyItem.png</file>
Expand Down Expand Up @@ -307,6 +308,7 @@
<file>themes/gis/mActionOpenTable.png</file>
<file>themes/gis/mActionPan.png</file>
<file>themes/gis/mActionPanToSelected.png</file>
<file>themes/gis/mActionShowRasterCalculator.png</file>
<file>themes/gis/mActionRaiseItems.png</file>
<file>themes/gis/mActionRedo.png</file>
<file>themes/gis/mActionRemoveLayer.png</file>
Expand Down
Binary file modified images/themes/default/mActionPanToSelected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/themes/gis/mActionPanToSelected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/themes/gis/mActionShowRasterCalculator.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions python/plugins/GdalTools/GdalTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
except ImportError, e:
valid = False

# if the plugin is shipped with QGis catch the exception and
# if the plugin is shipped with QGis catch the exception and
# display an error message
import os.path
qgisUserPluginPath = os.path.abspath( os.path.join( str( QgsApplication.qgisSettingsDirPath() ), "python") )
Expand Down Expand Up @@ -244,7 +244,7 @@ def initGui( self ):
self.overview.setStatusTip( QCoreApplication.translate( "GdalTools", "Builds or rebuilds overview images" ) )
QObject.connect( self.overview, SIGNAL( "triggered()" ), self.doOverview )

self.tileindex = QAction( QIcon( ":icons/tileindex.png" ), QCoreApplication.translate( "GdalTools", "Tile index" ), self.iface.mainWindow() )
self.tileindex = QAction( QIcon( ":icons/tiles.png" ), QCoreApplication.translate( "GdalTools", "Tile index" ), self.iface.mainWindow() )
self.tileindex.setStatusTip( QCoreApplication.translate( "GdalTools", "Build a shapefile as a raster tileindex" ) )
QObject.connect( self.tileindex, SIGNAL( "triggered()" ), self.doTileIndex )

Expand Down
Binary file removed python/plugins/GdalTools/icons/tileindex.png
Binary file not shown.
Binary file added python/plugins/GdalTools/icons/tiles.png
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 python/plugins/GdalTools/resources.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<file>icons/raster-overview.png</file>
<file>icons/raster-clip.png</file>
<file>icons/raster-rgb.png</file>
<file>icons/tileindex.png</file>
<file>icons/tiles.png</file>
<file>icons/about.png</file>
<file>icons/dem.png</file>
<file>icons/projection-export.png</file>
Expand Down
1 change: 1 addition & 0 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1560,6 +1560,7 @@ void QgisApp::setTheme( QString theThemeName )
mActionZoomOut->setIcon( getThemeIcon( "/mActionZoomOut.png" ) );
mActionZoomFullExtent->setIcon( getThemeIcon( "/mActionZoomFullExtent.png" ) );
mActionZoomToSelected->setIcon( getThemeIcon( "/mActionZoomToSelected.png" ) );
mActionShowRasterCalculator->setIcon( getThemeIcon( "/mActionShowRasterCalculator.png" ) );
#ifdef HAVE_TOUCH
mActionTouch->setIcon( getThemeIcon( "/mActionTouch.png" ) );
#endif
Expand Down
Binary file removed src/plugins/interpolation/interpolation.png
Binary file not shown.
2 changes: 1 addition & 1 deletion src/plugins/interpolation/interpolator.qrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<RCC>
<qresource prefix="/" >
<file>options.png</file>
<file>interpolation.png</file>
<file>raster-interpolate.png</file>
</qresource>
</RCC>
54 changes: 27 additions & 27 deletions src/plugins/interpolation/qgsinterpolationplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static const QString name_ = QObject::tr( "Interpolation plugin" );
static const QString description_ = QObject::tr( "A plugin for interpolation based on vertices of a vector layer" );
static const QString category_ = QObject::tr( "Raster" );
static const QString version_ = QObject::tr( "Version 0.001" );
static const QString icon_ = ":/interpolation.png";
static const QString icon_ = ":/raster-interpolate.png";

QgsInterpolationPlugin::QgsInterpolationPlugin( QgisInterface* iface ): mIface( iface ), mInterpolationAction( 0 )
{
Expand All @@ -42,8 +42,8 @@ void QgsInterpolationPlugin::initGui()
{
if ( mIface )
{
mInterpolationAction = new QAction( QIcon(), tr( "&Interpolation" ), 0 );
setCurrentTheme( "" );
mInterpolationAction = new QAction( QIcon( ":/raster-interpolate.png" ), tr( "&Interpolation" ), 0 );
//~ setCurrentTheme( "" );
QObject::connect( mInterpolationAction, SIGNAL( triggered() ), this, SLOT( showInterpolationDialog() ) );
mIface->addRasterToolBarIcon( mInterpolationAction );
mIface->addPluginToRasterMenu( tr( "&Interpolation" ), mInterpolationAction );
Expand All @@ -65,30 +65,30 @@ void QgsInterpolationPlugin::showInterpolationDialog()
dialog.exec();
}

//! Set icons to the current theme
void QgsInterpolationPlugin::setCurrentTheme( QString theThemeName )
{
Q_UNUSED( theThemeName );
QString myCurThemePath = QgsApplication::activeThemePath() + "/plugins/interpolation.png";
QString myDefThemePath = QgsApplication::defaultThemePath() + "/plugins/interpolation.png";
QString myQrcPath = ":/interpolation.png";
if ( QFile::exists( myCurThemePath ) )
{
mInterpolationAction->setIcon( QIcon( myCurThemePath ) );
}
else if ( QFile::exists( myDefThemePath ) )
{
mInterpolationAction->setIcon( QIcon( myDefThemePath ) );
}
else if ( QFile::exists( myQrcPath ) )
{
mInterpolationAction->setIcon( QIcon( myQrcPath ) );
}
else
{
mInterpolationAction->setIcon( QIcon() );
}
}
//~ //! Set icons to the current theme
//~ void QgsInterpolationPlugin::setCurrentTheme( QString theThemeName )
//~ {
//~ Q_UNUSED( theThemeName );
//~ QString myCurThemePath = QgsApplication::activeThemePath() + "/plugins/interpolation.png";
//~ QString myDefThemePath = QgsApplication::defaultThemePath() + "/plugins/interpolation.png";
//~ QString myQrcPath = ":/interpolation.png";
//~ if ( QFile::exists( myCurThemePath ) )
//~ {
//~ mInterpolationAction->setIcon( QIcon( myCurThemePath ) );
//~ }
//~ else if ( QFile::exists( myDefThemePath ) )
//~ {
//~ mInterpolationAction->setIcon( QIcon( myDefThemePath ) );
//~ }
//~ else if ( QFile::exists( myQrcPath ) )
//~ {
//~ mInterpolationAction->setIcon( QIcon( myQrcPath ) );
//~ }
//~ else
//~ {
//~ mInterpolationAction->setIcon( QIcon() );
//~ }
//~ }

QGISEXTERN QgisPlugin * classFactory( QgisInterface * theQgisInterfacePointer )
{
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/interpolation/qgsinterpolationplugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ class QgsInterpolationPlugin: public QObject, public QgisPlugin
void unload();

public slots:
//! update the plugins theme when the app tells us its theme is changed
void setCurrentTheme( QString theThemeName );
//~ //! update the plugins theme when the app tells us its theme is changed
//~ void setCurrentTheme( QString theThemeName );

private slots:
void showInterpolationDialog();
Expand Down
Binary file added src/plugins/interpolation/raster-interpolate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/plugins/raster_terrain_analysis/dem.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
static const QString name_ = QObject::tr( "Raster Terrain Analysis plugin" );
static const QString description_ = QObject::tr( "A plugin for raster based terrain analysis" );
static const QString version_ = QObject::tr( "Version 0.1" );
static const QString icon_ = ":/raster/raster_terrain_icon.png";
static const QString icon_ = ":/raster/dem.png";
static const QString category_ = QObject::tr( "Raster" );

QgsRasterTerrainAnalysisPlugin::QgsRasterTerrainAnalysisPlugin( QgisInterface* iface ): mIface( iface ), mTerrainAnalysisMenu( 0 )
Expand Down Expand Up @@ -88,6 +88,7 @@ void QgsRasterTerrainAnalysisPlugin::initGui()
}

mTerrainAnalysisMenu = new QMenu( tr( "Terrain analysis" ), rasterMenu );
mTerrainAnalysisMenu->setIcon( QIcon( ":/raster/dem.png" ) );
mTerrainAnalysisMenu->addAction( tr( "Slope" ), this, SLOT( slope() ) );
mTerrainAnalysisMenu->addAction( tr( "Aspect" ), this, SLOT( aspect() ) );
mTerrainAnalysisMenu->addAction( tr( "Hillshade" ), this, SLOT( hillshade() ) );
Expand Down
Binary file not shown.
4 changes: 2 additions & 2 deletions src/plugins/raster_terrain_analysis/resources.qrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE RCC><RCC version="1.0">
<qresource prefix="/raster">
<file>raster_terrain_icon.png</file>
<file>dem.png</file>
</qresource>
</RCC>
</RCC>
14 changes: 8 additions & 6 deletions src/plugins/zonal_statistics/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SET (ZONAL_STATISTICS_SRCS
qgszonalstatisticsdialog.cpp
)

SET (ZONAL_STATISTICS_UIS
SET (ZONAL_STATISTICS_UIS
qgszonalstatisticsdialogbase.ui
)

Expand All @@ -15,6 +15,8 @@ qgszonalstatisticsdialog.h
qgszonalstatisticsplugin.h
)

SET (ZONAL_STATISTICS_RCCS zonal_statistics.qrc)

########################################################
# Build

Expand All @@ -24,17 +26,17 @@ QT4_WRAP_CPP (ZONAL_STATISTICS_MOC_SRCS ${ZONAL_STATISTICS_MOC_HDRS})

QT4_ADD_RESOURCES(ZONAL_STATISTICS_RCC_SRCS ${ZONAL_STATISTICS_RCCS})

ADD_LIBRARY (zonalstatisticsplugin MODULE
ADD_LIBRARY (zonalstatisticsplugin MODULE
${ZONAL_STATISTICS_SRCS}
${ZONAL_STATISTICS_MOC_SRCS}
${ZONAL_STATISTICS_RCC_SRCS}
${ZONAL_STATISTICS_MOC_SRCS}
${ZONAL_STATISTICS_RCC_SRCS}
${ZONAL_STATISTICS_UIS_H})

INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_BINARY_DIR}
${GDAL_INCLUDE_DIR}
../../core
../../core/raster
../../core
../../core/raster
../../gui
../../analysis/vector
..
Expand Down
8 changes: 7 additions & 1 deletion src/plugins/zonal_statistics/qgszonalstatisticsplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ static const QString name_ = QObject::tr( "Zonal statistics plugin" );
static const QString description_ = QObject::tr( "A plugin to calculate count, sum, mean of rasters for each polygon of a vector layer" );
static const QString category_ = QObject::tr( "Raster" );
static const QString version_ = QObject::tr( "Version 0.1" );
static const QString pluginIcon_ = ":/zonal_statistics/raster-stats.png";

QgsZonalStatisticsPlugin::QgsZonalStatisticsPlugin( QgisInterface* iface ): mIface( iface ), mAction( 0 )
{
Expand All @@ -40,7 +41,7 @@ QgsZonalStatisticsPlugin::~QgsZonalStatisticsPlugin()

void QgsZonalStatisticsPlugin::initGui()
{
mAction = new QAction( tr( "&Zonal statistics" ), 0 );
mAction = new QAction( QIcon( ":/zonal_statistics/raster-stats.png" ), tr( "&Zonal statistics" ), 0 );
QObject::connect( mAction, SIGNAL( triggered() ), this, SLOT( run() ) );
mIface->addRasterToolBarIcon( mAction );
mIface->addPluginToRasterMenu( tr( "&Zonal statistics" ), mAction );
Expand Down Expand Up @@ -100,6 +101,11 @@ QGISEXTERN QString version()
return version_;
}

QGISEXTERN QString icon()
{
return pluginIcon_;
}

QGISEXTERN int type()
{
return QgisPlugin::UI;
Expand Down
Binary file added src/plugins/zonal_statistics/raster-stats.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/plugins/zonal_statistics/zonal_statistics.qrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<RCC>
<qresource prefix="/zonal_statistics/" >
<file>raster-stats.png</file>
</qresource>
</RCC>

6 changes: 5 additions & 1 deletion src/ui/qgisapp.ui
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<x>0</x>
<y>0</y>
<width>1052</width>
<height>25</height>
<height>28</height>
</rect>
</property>
<widget class="QMenu" name="mEditMenu">
Expand Down Expand Up @@ -1100,6 +1100,10 @@
</property>
</action>
<action name="mActionShowRasterCalculator">
<property name="icon">
<iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/mActionShowRasterCalculator.png</normaloff>:/images/themes/default/mActionShowRasterCalculator.png</iconset>
</property>
<property name="text">
<string>Raster calculator ...</string>
</property>
Expand Down