@@ -26,7 +26,7 @@ static const QString name_ = QObject::tr( "Interpolation plugin" );
26
26
static const QString description_ = QObject::tr( " A plugin for interpolation based on vertices of a vector layer" );
27
27
static const QString category_ = QObject::tr( " Raster" );
28
28
static const QString version_ = QObject::tr( " Version 0.001" );
29
- static const QString icon_ = " :/interpolation .png" ;
29
+ static const QString icon_ = " :/raster-interpolate .png" ;
30
30
31
31
QgsInterpolationPlugin::QgsInterpolationPlugin ( QgisInterface* iface ): mIface( iface ), mInterpolationAction( 0 )
32
32
{
@@ -42,8 +42,8 @@ void QgsInterpolationPlugin::initGui()
42
42
{
43
43
if ( mIface )
44
44
{
45
- mInterpolationAction = new QAction ( QIcon (), tr ( " &Interpolation" ), 0 );
46
- setCurrentTheme ( " " );
45
+ mInterpolationAction = new QAction ( QIcon ( " :/raster-interpolate.png " ), tr ( " &Interpolation" ), 0 );
46
+ // ~ setCurrentTheme( "" );
47
47
QObject::connect ( mInterpolationAction , SIGNAL ( triggered () ), this , SLOT ( showInterpolationDialog () ) );
48
48
mIface ->addRasterToolBarIcon ( mInterpolationAction );
49
49
mIface ->addPluginToRasterMenu ( tr ( " &Interpolation" ), mInterpolationAction );
@@ -65,30 +65,30 @@ void QgsInterpolationPlugin::showInterpolationDialog()
65
65
dialog.exec ();
66
66
}
67
67
68
- // ! Set icons to the current theme
69
- void QgsInterpolationPlugin::setCurrentTheme ( QString theThemeName )
70
- {
71
- Q_UNUSED ( theThemeName );
72
- QString myCurThemePath = QgsApplication::activeThemePath () + " /plugins/interpolation.png" ;
73
- QString myDefThemePath = QgsApplication::defaultThemePath () + " /plugins/interpolation.png" ;
74
- QString myQrcPath = " :/interpolation.png" ;
75
- if ( QFile::exists ( myCurThemePath ) )
76
- {
77
- mInterpolationAction ->setIcon ( QIcon ( myCurThemePath ) );
78
- }
79
- else if ( QFile::exists ( myDefThemePath ) )
80
- {
81
- mInterpolationAction ->setIcon ( QIcon ( myDefThemePath ) );
82
- }
83
- else if ( QFile::exists ( myQrcPath ) )
84
- {
85
- mInterpolationAction ->setIcon ( QIcon ( myQrcPath ) );
86
- }
87
- else
88
- {
89
- mInterpolationAction ->setIcon ( QIcon () );
90
- }
91
- }
68
+ // ~ // ! Set icons to the current theme
69
+ // ~ void QgsInterpolationPlugin::setCurrentTheme( QString theThemeName )
70
+ // ~ {
71
+ // ~ Q_UNUSED( theThemeName );
72
+ // ~ QString myCurThemePath = QgsApplication::activeThemePath() + "/plugins/interpolation.png";
73
+ // ~ QString myDefThemePath = QgsApplication::defaultThemePath() + "/plugins/interpolation.png";
74
+ // ~ QString myQrcPath = ":/interpolation.png";
75
+ // ~ if ( QFile::exists( myCurThemePath ) )
76
+ // ~ {
77
+ // ~ mInterpolationAction->setIcon( QIcon( myCurThemePath ) );
78
+ // ~ }
79
+ // ~ else if ( QFile::exists( myDefThemePath ) )
80
+ // ~ {
81
+ // ~ mInterpolationAction->setIcon( QIcon( myDefThemePath ) );
82
+ // ~ }
83
+ // ~ else if ( QFile::exists( myQrcPath ) )
84
+ // ~ {
85
+ // ~ mInterpolationAction->setIcon( QIcon( myQrcPath ) );
86
+ // ~ }
87
+ // ~ else
88
+ // ~ {
89
+ // ~ mInterpolationAction->setIcon( QIcon() );
90
+ // ~ }
91
+ // ~ }
92
92
93
93
QGISEXTERN QgisPlugin * classFactory ( QgisInterface * theQgisInterfacePointer )
94
94
{
0 commit comments