00001 #include <stdio.h> 00002 #include <Qt/qapplication.h> 00003 #include "Component/ModelManager.H" 00004 #include "Robots/Scorbot/ScorbotConsole.qt.H" 00005 00006 int main(int argc, char* argv[]) 00007 { 00008 int argc_fake = 1; 00009 char* argv_fake = new char[128]; 00010 sprintf(argv_fake, "app-ScorbotConsole"); 00011 QApplication app(argc_fake, &argv_fake); 00012 00013 ModelManager mgr("Scorbot Console"); 00014 00015 nub::ref<ScorbotConsole> console(new ScorbotConsole(mgr)); 00016 mgr.addSubComponent(console); 00017 if(mgr.parseCommandLine(argc, argv, "", 0, 0) == false) return -1; 00018 mgr.start(); 00019 00020 00021 //console->setGeometry(100,100, 600, 600); 00022 console->show(); 00023 return app.exec(); 00024 }