2004-04-05 15:39:45 +00:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include <qgsconfig.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include "plugingui.h"
|
|
|
|
#include <qapplication.h>
|
2004-06-08 13:28:35 +00:00
|
|
|
#include <qtextcodec.h>
|
|
|
|
#include <qtranslator.h>
|
2004-04-05 15:39:45 +00:00
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
QApplication a(argc, argv);
|
|
|
|
|
2005-04-13 07:16:57 +00:00
|
|
|
#if defined(Q_OS_MACX) || defined(WIN32)
|
|
|
|
QString PKGDATAPATH = qApp->applicationDirPath() + "/share/qgis";
|
|
|
|
#endif
|
|
|
|
|
2004-06-08 13:28:35 +00:00
|
|
|
/* Load translationfile */
|
|
|
|
QTranslator tor(0);
|
|
|
|
tor.load(QString("qgis_") + QTextCodec::locale(), QString(PKGDATAPATH) + "/i18n");
|
|
|
|
a.installTranslator(&tor);
|
|
|
|
|
2005-04-24 03:34:36 +00:00
|
|
|
QgsGridMakerPluginGui *myPluginGui=new QgsGridMakerPluginGui();
|
2004-04-05 15:39:45 +00:00
|
|
|
a.setMainWidget(myPluginGui);
|
|
|
|
myPluginGui->show();
|
|
|
|
|
|
|
|
return a.exec();
|
2004-06-08 13:28:35 +00:00
|
|
|
|
2004-04-05 15:39:45 +00:00
|
|
|
return EXIT_SUCCESS;
|
|
|
|
}
|