Example #1
0
File: main.cpp Project: dulton/XGUI
int main(/*int argc, char *argv[]*/)
{
	XApplication app;
	
	T c1;
	c1.init();
	
	return app.run();
}
Example #2
0
int main (int argc, char *argv[])
{
  FLAGS_logtostderr = 1;
  //  FLAGS_log_dir = "./log";
  google::InitGoogleLogging(argv[0]);
  LOG_DEBUG << "Starting up a1_main.cpp";

  XApplication* app = XApplication::GetInstance();
  scheme_interpreter_init(scheme_init_fname, cs349_init_fname, argc, argv);

  StopWatch* stopWatchWindow = new StopWatch(app->GetEventQueue(), Rectangle(0, 0, 200, 50));

  stopWatchWindow->SetVisible(true);
  
  app->Run();
	
  delete app;
  return scheme_interpreter_shutdown();
}
int main()
{
   try
   {
      //now we get a pointer to the
      //application object
      XApplication * currentApp = XApplication::GetApplication();

      //create the window
      MyWindow * myWin = new MyWindow();

      //let the application start
      currentApp->Start();
   }
   catch( XException& e)
   {
       e.ShowError();
   }

   return 0;
}
Example #4
0
int main(int argc, char ** argv)
{
	XApplication app;

	return app.Run();
}