#include <QtGui/QApplication>
#include "mainwindow.h"
#include <string>
#include <boost/algorithm/string.hpp>

int main(int argc, char *argv[])
{
    // determine the startup config file...
    std::string config_file = "cognionics_config.cfg";
    for (int k=1;k<argc;k++)
        if (std::string(argv[k]) == "-c" || std::string(argv[k]) == "--config")
            config_file = argv[k+1];

    QApplication a(argc, argv);
    MainWindow w(0,config_file);
    w.show();

    
    return a.exec();
}
