コード例 #1
0
void TestSimbaUDPCommunication::testConnection(int args, char** argv) { 
	Core::resetCore();
	
	QApplication app(args, argv); 
	
	GuiMainWindow *gui = new GuiMainWindow(true);
	
	mSimCom = 0;
	start();

	cerr << "Running App." << endl;
	
	while(mSimCom == 0) {
		;
	}
	//mSimCom->startUDPServer();
	
	cerr << "Showing Frame." << endl;
	
	gui->show();
	TestUPDRunner udpRunner;
	udpRunner.mSimCom = mSimCom;
	udpRunner.start();
	
	ShutDownGuard shutDownGuard(app);
	

	app.exec();
	
	cout << "Ende" << endl;
	
}
コード例 #2
0
void GuiMainWindow::on_openNewWindow()
{
    GuiMainWindow *mainWindow = new GuiMainWindow;
    mainWindow->on_openNewTab();
    mainWindow->show();
}