Skip to content

Commit cd408bc

Browse files
committed
remove About dialog from Georeferencer plugin
1 parent 09609d6 commit cd408bc

File tree

2 files changed

+0
-36
lines changed

2 files changed

+0
-36
lines changed

src/plugins/georeferencer/qgsgeorefplugin.cpp

-34
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
#include "qgsgeorefplugin.h"
5353

5454
#include <QFile>
55-
//#include <QDialog>
5655
#include <QMessageBox>
5756

5857
//
@@ -101,17 +100,13 @@ void QgsGeorefPlugin::initGui()
101100
// Connect the action to the run
102101
connect( mActionRunGeoref, SIGNAL( triggered() ), this, SLOT( run() ) );
103102

104-
mActionAbout = new QAction( QIcon(), tr( "&About" ), this );
105-
connect( mActionAbout, SIGNAL( triggered() ), this, SLOT( about() ) );
106-
107103
setCurrentTheme( "" );
108104
// this is called when the icon theme is changed
109105
connect( mQGisIface, SIGNAL( currentThemeChanged( QString ) ), this, SLOT( setCurrentTheme( QString ) ) );
110106

111107
// Add to the toolbar & menu
112108
mQGisIface->addRasterToolBarIcon( mActionRunGeoref );
113109
mQGisIface->addPluginToRasterMenu( tr( "&Georeferencer" ), mActionRunGeoref );
114-
mQGisIface->addPluginToRasterMenu( tr( "&Georeferencer" ), mActionAbout );
115110
}
116111

117112
// Slot called when the buffer menu item is triggered
@@ -127,12 +122,10 @@ void QgsGeorefPlugin::run()
127122
void QgsGeorefPlugin::unload()
128123
{
129124
// remove the GUI
130-
mQGisIface->removePluginRasterMenu( tr( "&Georeferencer" ), mActionAbout );
131125
mQGisIface->removePluginRasterMenu( tr( "&Georeferencer" ), mActionRunGeoref );
132126
mQGisIface->removeRasterToolBarIcon( mActionRunGeoref );
133127

134128
delete mActionRunGeoref;
135-
delete mActionAbout;
136129

137130
delete mPluginGui;
138131
mPluginGui = NULL;
@@ -142,7 +135,6 @@ void QgsGeorefPlugin::unload()
142135
void QgsGeorefPlugin::setCurrentTheme( QString )
143136
{
144137
mActionRunGeoref->setIcon( getThemeIcon( "/mGeorefRun.png" ) );
145-
mActionAbout->setIcon( getThemeIcon( "/mActionAbout.png" ) );
146138
}
147139

148140
QIcon QgsGeorefPlugin::getThemeIcon( const QString &theName )
@@ -161,39 +153,13 @@ QIcon QgsGeorefPlugin::getThemeIcon( const QString &theName )
161153
}
162154
}
163155

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-
189156
//////////////////////////////////////////////////////////////////////
190157
//
191158
// END OF MANDATORY PLUGIN METHODS
192159
//
193160
//////////////////////////////////////////////////////////////////////
194161

195162

196-
197163
//////////////////////////////////////////////////////////////////////////
198164
//
199165
//

src/plugins/georeferencer/qgsgeorefplugin.h

-2
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ class QgsGeorefPlugin: public QObject, public QgisPlugin
8888
//! update the plugins theme when the app tells us its theme is changed
8989
void setCurrentTheme( QString theThemeName );
9090
QIcon getThemeIcon( const QString &theThemeName );
91-
void about();
9291

9392
//////////////////////////////////////////////////////////////////////
9493
//
@@ -109,7 +108,6 @@ class QgsGeorefPlugin: public QObject, public QgisPlugin
109108
QgisInterface *mQGisIface;
110109
//!pointer to the qaction for this plugin
111110
QAction * mActionRunGeoref;
112-
QAction *mActionAbout;
113111
////////////////////////////////////////////////////////////////////
114112
//
115113
// ADD YOUR OWN MEMBER DECLARATIONS AFTER THIS POINT.....

0 commit comments

Comments
 (0)