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