-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
executable file
·51 lines (39 loc) · 1.31 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#include "mainframe.h"
#include <QApplication>
#include <QString>
#include <QSettings>
#include <QDebug>
#include <QClipboard>
#include "datamodel/lcastar.h"
#undef MEGAN_VIEW
int main(int argc, char *argv[])
{
Q_INIT_RESOURCE(Resources);
// if purge is given as an argument to MetaPathways2, it'll delete the old settings
// use this as a failsafe
// QSettings settings("HallamLab", "MetaPathways");
//settings.clear();
if(argc > 1){
QString purge(argv[1]);
if (purge.compare("purge")==0){
//QMessageBox::warning(0, "cleafring", "clearing");
QSettings settings("HallamLab", "MetaPathways");
settings.clear();
}
}
/*
LCAStar *lcastr = LCAStar::getLCAStar();
lcastr->setParameters(1,1,0.90);
qDebug() << "loading ";
QStringList taxonlist;
taxonlist << QString("Deltaproteobacteria") << QString("Deltaproteobacteria") << QString("Alphaproteobacteria") <<
QString("Betaproteobacteria") << QString("Betaproteobacteria") << QString("Chloroflexi") << QString("green plants");;
QString lcastartaxon = lcastr->lca_star(taxonlist);
qDebug() << " The result is : " << lcastartaxon;
qDebug() << "Loaded ";
*/
QApplication a(argc, argv);
MainFrame *w = new MainFrame();
w->show();
a.exec();
}