Esempio n. 1
0
int main(int argc, char *argv[])
{
    Q_INIT_RESOURCE(ARCHNetworkEditor);

    qt_set_sequence_auto_mnemonic(true);

#ifdef Q_WS_X11
    QApplication::setGraphicsSystem("raster");
#endif

    QApplication app(argc, argv);

    //app.setStyle(new QPlastiqueStyle);
    MainWindow mainWin;

    AppController appController;
    appController.setMainWindow(&mainWin);
    appController.setEditorArea(mainWin.getEditorArea());
    appController.createConnections();

    mainWin.clear();

    appController.parseArguments(app.arguments());

    mainWin.show();

    return app.exec();
}
Esempio n. 2
0
int main()
{
	AppController appController;

	appController.Run();
	return 0;
}
Esempio n. 3
0
int main()
{
	AppController ac;
	ac.Initialize();
	ac.Run();
	ac.Shutdown();
    return 0;
}
Esempio n. 4
0
int main(int argc, char *argv[])
{
	AppController ac;
	if (!ac.run()) {
		std::cerr << ac.errorString();
		return EXIT_FAILURE;
	}
	return EXIT_SUCCESS;
}
Esempio n. 5
0
int main()
{
   AppController app;
   int num = 27, num2 = 50;
   IAction* action = new AddAction;
   app.MapCommandViewAction("shownum", action);
   map<string, void*> params;
   params["num"] = &num;
   params["num2"] = &num2;
   app.HandleRequest("shownum", false, params);
   
   while (app.Status() == AppController::WAIT);
   
   return 0;
}
Esempio n. 6
0
LayoutManager::LayoutManager(IInput &input, IClipboard &clipboard, TextureManager &texman, AppController& controller)
  : //_input(input)
 // , _clipboard(clipboard)
    _texman(texman)
  , _tsCurrent(_timestep.end())
  , _tsDeleteCurrent(false)
  , _captureCountSystem(0)
  , _focusWnd(nullptr)
  , _hotTrackWnd(nullptr)
  , _desktop(nullptr)
  , _isAppActive(false)
#ifndef NDEBUG
  , _dbgFocusIsChanging(false)
#endif
{
	_desktop.Set(new Desktop(this, controller.GetAppState(), controller.GetFs(), controller.GetLogger()));
}
Esempio n. 7
0
int run() {
	/*ExecutorService* es = new ExecutorService();
	RobotDescriptor* descriptor_1 = new RobotDescriptor();
	RobotDescriptor* descriptor_2 = new RobotDescriptor();
	//delete service;

	descriptor_1->id = 0;
	descriptor_1->id = 1;
	es->submit(descriptor_1);
	es->submit(descriptor_2);

	es->execute(std::chrono::milliseconds(100));

	delete descriptor_1;
	delete descriptor_2;
	delete es;*/
	srand(time(NULL));

	BatleController controller;
	theApp.InitInstance(&controller);
	return 0;
}
Esempio n. 8
0
void App::controlFlow(AppController& appController)
{
  if(ended) {
    appController.startMenu();
  }
}
Esempio n. 9
0
int main()
{
	AppController * baseController = new AppController();
	baseController->start();
	return 0;
}