sscControlQt.cpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006 #include <qapplication.h>
00007 #include "Qt/ui/SSCMainForm.h"
00008
00009 int main( int argc, char ** argv )
00010 {
00011
00012 ModelManager manager("sscControlQt");
00013
00014
00015 nub::soft_ref<SSC> ssc(new SSC(manager));
00016 manager.addSubComponent(ssc);
00017
00018
00019 manager.start();
00020
00021
00022 QApplication a(argc, argv);
00023 SSCMainForm *w = new SSCMainForm;
00024 w->init(&manager, ssc);
00025 w->show();
00026 a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()));
00027
00028
00029 int retval = a.exec();
00030
00031
00032 manager.stop();
00033
00034 return retval;
00035 }