Beispiel #1
0
static void init_libraries()
{
#if defined(Q_OS_MAC) || defined(Q_OS_WINDOWS) || defined(Q_WS_MAEMO5) || defined(LUGDULOV_MEEGO)
    QDir dir(QApplication::applicationDirPath());
#if defined(Q_OS_MAC) || defined(Q_WS_MAEMO5) || defined(LUGDULOV_MEEGO)
    dir.cdUp();
#endif
    dir.cd("plugins");
    QApplication::setLibraryPaths(QStringList(dir.absolutePath()));
#endif

#ifdef BUILD_STATIC_PLUGINS
    Q_IMPORT_PLUGIN(stationsfrance);
    Q_IMPORT_PLUGIN(stationsbelgium);
    Q_IMPORT_PLUGIN(stationsireland);
    Q_IMPORT_PLUGIN(stationsjapan);
    Q_IMPORT_PLUGIN(stationsluxembourg);
    Q_IMPORT_PLUGIN(stationsspain);
    Q_IMPORT_PLUGIN(stationsgermany);
    Q_IMPORT_PLUGIN(stationsunitedkingdom);
    Q_IMPORT_PLUGIN(stationscanada);
    Q_IMPORT_PLUGIN(stationsswitzerland);
    Q_IMPORT_PLUGIN(stationsaustria);
    Q_IMPORT_PLUGIN(stationsloweraustria);
    Q_IMPORT_PLUGIN(stationslatvia);
    Q_IMPORT_PLUGIN(stationsnewzealand);
    Q_IMPORT_PLUGIN(stationsusa);
    Q_IMPORT_PLUGIN(stationsaustralia);

    Q_IMPORT_PLUGIN(qtgeoservices_google);
    Q_IMPORT_PLUGIN(qtgeoservices_osm);
#endif
}
Beispiel #2
0
int main( int argc, char ** argv )
{
#ifdef QTIPLOT_STATIC_BUILD
	Q_IMPORT_PLUGIN(qgif);
	Q_IMPORT_PLUGIN(qjpeg);
	Q_IMPORT_PLUGIN(qmng);
	Q_IMPORT_PLUGIN(qtiff);
#endif

#ifdef QTIPLOT_PRO
	Q_IMPORT_PLUGIN(QtiPlotdBasePlugin);
	Q_IMPORT_PLUGIN(QtiPlotCsvPlugin);
	Q_IMPORT_PLUGIN(QtiPlotTexPlugin);
	Q_IMPORT_PLUGIN(QtiPlotOdsPlugin);
	Q_IMPORT_PLUGIN(QtiPlotExcelPlugin);
	Q_IMPORT_PLUGIN(QtiPlotEmfExportPlugin);
	Q_IMPORT_PLUGIN(QtiPlotOriginPlugin);
	Q_IMPORT_PLUGIN(QtiPlotDatabasePlugin);
#endif

	QtiPlotApplication app( argc, argv );
	app.connect( &app, SIGNAL(lastWindowClosed()), &app, SLOT(quit()) );
	return app.exec();
}