mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-07 11:40:42 +00:00
50 lines
1.2 KiB
C++
50 lines
1.2 KiB
C++
|
/********************************************************************
|
||
|
Main
|
||
|
Copyright (c)2011 Mark Watkins <jedimark@users.sourceforge.net>
|
||
|
License: GPL
|
||
|
*********************************************************************/
|
||
|
|
||
|
#include <QtGui/QApplication>
|
||
|
#include "mainwindow.h"
|
||
|
#include "SleepLib/profiles.h"
|
||
|
|
||
|
#include "SleepLib/loader_plugins/prs1_loader.h"
|
||
|
#include "SleepLib/loader_plugins/cms50_loader.h"
|
||
|
#include "SleepLib/loader_plugins/zeo_loader.h"
|
||
|
|
||
|
|
||
|
|
||
|
int main(int argc, char *argv[])
|
||
|
{
|
||
|
QApplication a(argc, argv);
|
||
|
|
||
|
PRS1Loader::Register();
|
||
|
CMS50Loader::Register();
|
||
|
ZEOLoader::Register();
|
||
|
|
||
|
Profiles::Scan();
|
||
|
|
||
|
//loader_progress->Show();
|
||
|
|
||
|
pref["AppName"]="SleepyHead";
|
||
|
//pref["Version"]=wxString(AutoVersion::_FULLVERSION_STRING,wxConvUTF8);
|
||
|
pref["Profile"]=getUserName();
|
||
|
pref["LinkGraphMovement"]=true;
|
||
|
pref["fruitsalad"]=true;
|
||
|
|
||
|
profile=Profiles::Get(pref["Profile"].toString());
|
||
|
|
||
|
profile->LoadMachineData();
|
||
|
|
||
|
/*Machine *m=new Machine(profile,0);
|
||
|
m->SetClass("Journal");
|
||
|
m->SetType(MT_JOURNAL);
|
||
|
m->properties["Brand"]="Virtual";
|
||
|
profile->AddMachine(m); */
|
||
|
|
||
|
MainWindow w;
|
||
|
w.show();
|
||
|
|
||
|
return a.exec();
|
||
|
}
|