52
52
#include " qgsgeorefplugin.h"
53
53
54
54
#include < QFile>
55
- // #include <QDialog>
56
55
#include < QMessageBox>
57
56
58
57
//
@@ -101,17 +100,13 @@ void QgsGeorefPlugin::initGui()
101
100
// Connect the action to the run
102
101
connect ( mActionRunGeoref , SIGNAL ( triggered () ), this , SLOT ( run () ) );
103
102
104
- mActionAbout = new QAction ( QIcon (), tr ( " &About" ), this );
105
- connect ( mActionAbout , SIGNAL ( triggered () ), this , SLOT ( about () ) );
106
-
107
103
setCurrentTheme ( " " );
108
104
// this is called when the icon theme is changed
109
105
connect ( mQGisIface , SIGNAL ( currentThemeChanged ( QString ) ), this , SLOT ( setCurrentTheme ( QString ) ) );
110
106
111
107
// Add to the toolbar & menu
112
108
mQGisIface ->addRasterToolBarIcon ( mActionRunGeoref );
113
109
mQGisIface ->addPluginToRasterMenu ( tr ( " &Georeferencer" ), mActionRunGeoref );
114
- mQGisIface ->addPluginToRasterMenu ( tr ( " &Georeferencer" ), mActionAbout );
115
110
}
116
111
117
112
// Slot called when the buffer menu item is triggered
@@ -127,12 +122,10 @@ void QgsGeorefPlugin::run()
127
122
void QgsGeorefPlugin::unload ()
128
123
{
129
124
// remove the GUI
130
- mQGisIface ->removePluginRasterMenu ( tr ( " &Georeferencer" ), mActionAbout );
131
125
mQGisIface ->removePluginRasterMenu ( tr ( " &Georeferencer" ), mActionRunGeoref );
132
126
mQGisIface ->removeRasterToolBarIcon ( mActionRunGeoref );
133
127
134
128
delete mActionRunGeoref ;
135
- delete mActionAbout ;
136
129
137
130
delete mPluginGui ;
138
131
mPluginGui = NULL ;
@@ -142,7 +135,6 @@ void QgsGeorefPlugin::unload()
142
135
void QgsGeorefPlugin::setCurrentTheme ( QString )
143
136
{
144
137
mActionRunGeoref ->setIcon ( getThemeIcon ( " /mGeorefRun.png" ) );
145
- mActionAbout ->setIcon ( getThemeIcon ( " /mActionAbout.png" ) );
146
138
}
147
139
148
140
QIcon QgsGeorefPlugin::getThemeIcon ( const QString &theName )
@@ -161,39 +153,13 @@ QIcon QgsGeorefPlugin::getThemeIcon( const QString &theName )
161
153
}
162
154
}
163
155
164
- void QgsGeorefPlugin::about ( )
165
- {
166
- QString title = QString ( " About Georeferencer" );
167
- // sort by date of contribution
168
- QString text = QString ( " <center><b>Georeferencer GDAL</b></center>"
169
- " <center>%1</center>"
170
- " <p>Adding projection info to rasters using GDAL<br>"
171
- " <b>Developers:</b>"
172
- " <ol type=disc>"
173
- " <li>Jack R"
174
- " <li>Maxim Dubinin"
175
- " <li>Manuel Massing"
176
- " <li>Lars Luthman"
177
- " </ol>"
178
- " <p><b>Homepage:</b><br>"
179
- " <a href=\" http://gis-lab.info/qa/qgis-georef-new-eng.html\" >http://gis-lab.info/qa/qgis-georef-new-eng.html</a>" ).arg ( sPluginVersion );
180
-
181
- // this is required for adding georef icon in to left side of dialog
182
- // create dynamicaly because on Mac this dialog is modeless
183
- QWidget *w = new QWidget;
184
- w->setAttribute ( Qt::WA_DeleteOnClose );
185
- w->setWindowIcon ( getThemeIcon ( " /mGeorefRun.png" ) );
186
- QMessageBox::about ( w, title, text );
187
- }
188
-
189
156
// ////////////////////////////////////////////////////////////////////
190
157
//
191
158
// END OF MANDATORY PLUGIN METHODS
192
159
//
193
160
// ////////////////////////////////////////////////////////////////////
194
161
195
162
196
-
197
163
// ////////////////////////////////////////////////////////////////////////
198
164
//
199
165
//
0 commit comments