private void UpdateReactors() { notify = new ThreadNotify(); GlobalObjUI.MonosimEvent += SimEvent; // Connect Signal Connect(notify, SIGNAL("UpdateGui()"), this, SLOT("ActionThreadNotify()")); // Configure events reactors Connect(mainwindow_Ui.MenuFileNew,SIGNAL("activated()"),this,SLOT("ActionFileNew()")); Connect(mainwindow_Ui.MenuFileOpen,SIGNAL("activated()"),this,SLOT("ActionFileOpen()")); Connect(mainwindow_Ui.MenuFileSaveFile,SIGNAL("activated()"),this,SLOT("ActionFileSaveFile()")); Connect(mainwindow_Ui.MenuFileSaveSim,SIGNAL("activated()"),this,SLOT("ActionFileSaveSim()")); Connect(mainwindow_Ui.MenuFileClose,SIGNAL("activated()"),this,SLOT("ActionFileClose()")); Connect(mainwindow_Ui.MenuFileSettings,SIGNAL("activated()"),this,SLOT("ActionSettingsSerial()")); Connect(mainwindow_Ui.MenuFileExit,SIGNAL("activated()"),this,SLOT("ActionExit()")); Connect(mainwindow_Ui.MenuSimConnect,SIGNAL("activated()"),this,SLOT("ActionSimConnect()")); Connect(mainwindow_Ui.MenuSimPin,SIGNAL("activated()"),this,SLOT("ActionSimChangePin()")); Connect(mainwindow_Ui.MenuSimSaveFile,SIGNAL("activated()"),this,SLOT("ActionSimSaveFile()")); Connect(mainwindow_Ui.MenuSimSaveSim,SIGNAL("activated()"),this,SLOT("ActionSimSaveSim()")); Connect(mainwindow_Ui.MenuSimDeleteAll,SIGNAL("activated()"),this,SLOT("ActionSimDeleteAll()")); Connect(mainwindow_Ui.MenuSimDisconnect,SIGNAL("activated()"),this,SLOT("ActionSimDisconnect()")); Connect(mainwindow_Ui.MenuAboutInfo,SIGNAL("activated()"),this,SLOT("ActionInfo()")); mainwindow_Ui.LstFileContacts.ContextMenuPolicy = Qt.ContextMenuPolicy.CustomContextMenu; Connect(mainwindow_Ui.LstFileContacts,SIGNAL("customContextMenuRequested(QPoint)"),this,SLOT("ActionFileContactsMenu(QPoint)")); mainwindow_Ui.LstSimContacts.ContextMenuPolicy = Qt.ContextMenuPolicy.CustomContextMenu; Connect(mainwindow_Ui.LstSimContacts,SIGNAL("customContextMenuRequested(QPoint)"),this,SLOT("ActionSimContactsMenu(QPoint)")); Connect(menuFileActions[0],SIGNAL("activated()"),this,SLOT("ActionAddContact()")); Connect(menuSimActions[0],SIGNAL("activated()"),this,SLOT("ActionAddContact()")); Connect(menuFileActions[1],SIGNAL("activated()"),this,SLOT("ActionDelContact()")); Connect(menuSimActions[1],SIGNAL("activated()"),this,SLOT("ActionDelContact()")); Connect(menuFileActions[2],SIGNAL("activated()"),this,SLOT("ActionCopyContact()")); Connect(menuSimActions[2],SIGNAL("activated()"),this,SLOT("ActionCopyContact()")); }
private void UpdateReactors() { notify = new ThreadNotify(); GlobalObjUI.MonosimEvent += SimEvent; // Connect Signal Connect( notify, SIGNAL("UpdateGui()"), this, SLOT("ActionThreadNotify()")); // Configure events reactors Connect( mainwindow_Ui.MenuFileNew, SIGNAL("activated()"), this, SLOT("ActionFileNew()")); Connect( mainwindow_Ui.MenuFileOpen, SIGNAL("activated()"), this, SLOT("ActionFileOpen()")); Connect( mainwindow_Ui.MenuFileSaveFile, SIGNAL("activated()"), this, SLOT("ActionFileSaveFile()")); Connect( mainwindow_Ui.MenuFileSaveSim, SIGNAL("activated()"), this, SLOT("ActionFileSaveSim()")); Connect( mainwindow_Ui.MenuFileClose, SIGNAL("activated()"), this, SLOT("ActionFileClose()")); Connect( mainwindow_Ui.MenuFileSettings, SIGNAL("activated()"), this, SLOT("ActionSettingsSerial()")); Connect( mainwindow_Ui.MenuFileExit, SIGNAL("activated()"), this, SLOT("ActionExit()")); Connect( mainwindow_Ui.MenuSimConnect, SIGNAL("activated()"), this, SLOT("ActionSimConnect()")); Connect( mainwindow_Ui.MenuSimPin, SIGNAL("activated()"), this, SLOT("ActionSimChangePin()")); Connect( mainwindow_Ui.MenuSimSaveFile, SIGNAL("activated()"), this, SLOT("ActionSimSaveFile()")); Connect( mainwindow_Ui.MenuSimSaveSim, SIGNAL("activated()"), this, SLOT("ActionSimSaveSim()")); Connect( mainwindow_Ui.MenuSimDeleteAll, SIGNAL("activated()"), this, SLOT("ActionSimDeleteAll()")); Connect( mainwindow_Ui.MenuSimDisconnect, SIGNAL("activated()"), this, SLOT("ActionSimDisconnect()")); Connect( mainwindow_Ui.MenuAboutInfo, SIGNAL("activated()"), this, SLOT("ActionInfo()")); mainwindow_Ui.LstFileContacts.ContextMenuPolicy = Qt.ContextMenuPolicy.CustomContextMenu; Connect( mainwindow_Ui.LstFileContacts, SIGNAL("customContextMenuRequested(QPoint)"), this, SLOT("ActionFileContactsMenu(QPoint)")); mainwindow_Ui.LstSimContacts.ContextMenuPolicy = Qt.ContextMenuPolicy.CustomContextMenu; Connect( mainwindow_Ui.LstSimContacts, SIGNAL("customContextMenuRequested(QPoint)"), this, SLOT("ActionSimContactsMenu(QPoint)")); Connect( menuFileActions[0], SIGNAL("activated()"), this, SLOT("ActionAddContact()")); Connect( menuSimActions[0], SIGNAL("activated()"), this, SLOT("ActionAddContact()")); Connect( menuFileActions[1], SIGNAL("activated()"), this, SLOT("ActionDelContact()")); Connect( menuSimActions[1], SIGNAL("activated()"), this, SLOT("ActionDelContact()")); Connect( menuFileActions[2], SIGNAL("activated()"), this, SLOT("ActionCopyContact()")); Connect( menuSimActions[2], SIGNAL("activated()"), this, SLOT("ActionCopyContact()")); }