#include <qgsapplication.h>
#include <qgsproviderregistry.h>

#include "mainwindow.h"

int main(int argc, char *argv[])
{
    // start the application
    QgsApplication app(argc, argv, TRUE);

    // load data providers (OGR)
#ifdef Q_WS_WIN
    QgsProviderRegistry::instance( "C:\\OSGeo4W\\apps\\qgis\\plugins" );
#else
    QgsProviderRegistry::instance( "/usr/local/lib/qgis/plugins" );
#endif

    // create and show main window
    MainWindow *mainWindow = new MainWindow();
    mainWindow->show();

    // start the application event loop
    return app.exec();
}
