void onClick( Control* sender ) { String name = sender->getName(); if ( name == "start" ) { CreateStart(); } else if ( name == "setting" ) { CreateSetting(); } else if ( name == "credits" ) { CreateCredits(); } else if ( name == "exit" ) { RequestExit(); } else if ( name == "return" ) { CreateMenu(); } else if ( name == "accept" ) { exit( 0 ); } else if ( name == "cancel" ) { CreateMenu(); } }
void EdApp::ConnectSigSlots() { connect( &actions.exitAppAct, SIGNAL(triggered()), this, SLOT(RequestExit()) ); connect( &actions.importStyleSheetAct, SIGNAL(triggered()), this, SLOT(slot_ImportStyleSheet()) ); MX_CONNECT_THIS( EdSystem::Get().Event_ProjectLoaded, EdApp, slot_OnProjectLoaded ); MX_CONNECT_THIS( EdSystem::Get().Event_ProjectUnloaded, EdApp, slot_OnProjectUnloaded ); }
int EdApp::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QObject::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: projectLoadedFlag((*reinterpret_cast< bool(*)>(_a[1]))); break; case 1: signal_FrameStarted(); break; case 2: { bool _r = RequestExit(); if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break; case 3: UpdateAll(); break; case 4: slot_ImportStyleSheet(); break; default: ; } _id -= 5; } return _id; }