void DetaDoc::createActions() { /*menu File*/ /*menu newTicket*/ connect(ui->firstDiagnosticAct, SIGNAL(triggered()), this, SLOT(firstDiagnostic())); connect(ui->secondDiagnosticAct, SIGNAL(triggered()), this, SLOT(secondDiagnostic())); /*menu new ticket*/ connect(ui->SaleInOfficeAct, SIGNAL(triggered()), this, SLOT(saleInOfficeS())); connect(ui->forSallingAct, SIGNAL(triggered()), this, SLOT(forSaleS())); connect(ui->timeTableAct, SIGNAL(triggered()), this, SLOT(timeTable())); connect(ui->devicesRentAct, SIGNAL(triggered()), this, SLOT(devicesRent())); connect(ui->actionQuit, SIGNAL(triggered()), this, SLOT(quit())); /*menu file end*/ /*menu partners*/ connect(ui->addPartnerAct, SIGNAL(triggered()), this, SLOT(addPartner())); connect(ui->partnerDictionaryAct, SIGNAL(triggered()), this, SLOT(openPartnerDictionary())); /*menu partners end*/ /*menu devices*/ connect(ui->deviceAddAct, SIGNAL(triggered()), this, SLOT(addDevice())); connect(ui->devicesDictionaryAct, SIGNAL(triggered()), this, SLOT(openDeviceDict())); connect(ui->warehouseDevicesAct, SIGNAL(triggered()), this, SLOT(openDeviceWarehouse())); connect(ui->addLiteratureAct, SIGNAL(triggered()), this, SLOT(addLiterature())); connect(ui->literatureDictAct, SIGNAL(triggered()), this, SLOT(openLiteratureDict())); connect(ui->warehouseLiteratureAct, SIGNAL(triggered()), this, SLOT(openLiteratureWarehouse())); connect(ui->setLicenseCostAct, SIGNAL(triggered()), this, SLOT(changeLicenseCost())); connect(ui->warehouseLicense, SIGNAL(triggered()), this, SLOT(openLicenseWarehouse())); /*menu devices end*/ /*menu customers*/ connect(ui->addCustomerAct, SIGNAL(triggered()), this, SLOT(addCustomer())); connect(ui->customersDictionaryAct, SIGNAL(triggered()), this, SLOT(openCustomersDict())); connect(ui->addRangeCustomerCardsAct, SIGNAL(triggered()), this, SLOT(addRangeOfCustomerCards())); connect(ui->deleteRangeCustomerCardsAct, SIGNAL(triggered()), this, SLOT(deleteRangeOfCustomerCards())); connect(ui->customerCardsDictAct, SIGNAL(triggered()), this, SLOT(openDictOfCustomerCards())); /*menu customers end*/ /*menu doctors*/ connect(ui->addDoctorAct, SIGNAL(triggered()), this, SLOT(addDoctor())); connect(ui->doctorsDictionaryAct, SIGNAL(triggered()), this, SLOT(openDoctorsDict())); /*menu doctors end*/ /*menu reports*/ connect(ui->reportCustomersAct, SIGNAL(triggered()), this, SLOT(customerReport())); connect(ui->reportDevicesAct, SIGNAL(triggered()), this, SLOT(devicesReport())); /*menu reports end*/ /*menu settings*/ connect(ui->dbSettingsAct, SIGNAL(triggered()), this, SLOT(DBSettings())); connect(ui->manageUsersAct, SIGNAL(triggered()), this, SLOT(manageUsers())); /*menu setting end*/ /*menu about*/ connect(ui->aboutProgrammAct, SIGNAL(triggered()), this, SLOT(AboutProgramm())); connect(ui->aboutQtAct, SIGNAL(triggered()), this, SLOT(AboutQt())); /*menu about end*/ }
void CMainFrame::_connectWidgets() { connect(ui.actionOuvrir, SIGNAL(triggered()), this, SLOT(OpenFile())); connect(ui.actionFermer, SIGNAL(triggered()), this, SLOT(CloseFile())); connect(ui.actionFusionner, SIGNAL(triggered()), this, SLOT(MergeFile())); connect(ui.actionPlein_cran, SIGNAL(triggered(bool)), this, SLOT(SwitchFullscreen(bool))); connect(ui.actionStop, SIGNAL(triggered()), this, SLOT(Stop())); connect(ui.actionJouer, SIGNAL(triggered(bool)), this, SLOT(Play(bool))); connect(ui.action_propos, SIGNAL(triggered()), this, SLOT(About())); connect(ui.actionQt, SIGNAL(triggered()), this, SLOT(AboutQt())); connect(ui.actionGrille, SIGNAL(triggered(bool)), this, SLOT(ShowGrid(bool))); connect(ui.actionModel_3D, SIGNAL(triggered(bool)), m_modelViewer, SLOT(ShowModel3D(bool))); connect(ui.actionEnregistrer, SIGNAL(triggered()), this, SLOT(SaveFile())); connect(ui.actionEnregistrer_sous, SIGNAL(triggered()), this, SLOT(SaveFileAs())); connect(ui.actionCouleur_du_fond, SIGNAL(triggered()), this, SLOT(SetBackgroundColor())); connect(m_languageActionGroup, SIGNAL(triggered(QAction*)), this, SLOT(SetLanguage(QAction*))); connect(m_timeline, SIGNAL(CurrentFrameChanged(int)), m_modelViewer, SLOT(SetFrame(int))); connect(m_timeline, SIGNAL(SelectionChanged(int, int)), this, SLOT(EditKey(int, int))); connect(m_timeline, SIGNAL(KeyModified(int, int, bool)), this, SLOT(EditKeyModified(int, int, bool))); connect(ui.listParts, SIGNAL(currentRowChanged(int)), this, SLOT(ListPartChanged(int))); connect(ui.actionAjouter_une_partie, SIGNAL(triggered()), this, SLOT(AddPart())); connect(ui.actionSupprimer_la_partie, SIGNAL(triggered()), this, SLOT(RemovePart())); connect(ui.btnRemovePart, SIGNAL(clicked()), this, SLOT(RemovePart())); connect(ui.btnAddPart, SIGNAL(clicked()), this, SLOT(AddPart())); connect(ui.editKeyPosX, SIGNAL(valueChanged(double)), this, SLOT(EditKeyPosX(double))); connect(ui.editKeyPosY, SIGNAL(valueChanged(double)), this, SLOT(EditKeyPosY(double))); connect(ui.editKeyPosZ, SIGNAL(valueChanged(double)), this, SLOT(EditKeyPosZ(double))); connect(ui.editKeyPosRotX, SIGNAL(valueChanged(double)), this, SLOT(EditKeyPosRotX(double))); connect(ui.editKeyPosRotY, SIGNAL(valueChanged(double)), this, SLOT(EditKeyPosRotY(double))); connect(ui.editKeyPosRotZ, SIGNAL(valueChanged(double)), this, SLOT(EditKeyPosRotZ(double))); connect(ui.editKeyRotX, SIGNAL(valueChanged(double)), this, SLOT(EditKeyRotX(double))); connect(ui.editKeyRotY, SIGNAL(valueChanged(double)), this, SLOT(EditKeyRotY(double))); connect(ui.editKeyRotZ, SIGNAL(valueChanged(double)), this, SLOT(EditKeyRotZ(double))); connect(ui.editKeyScaleX, SIGNAL(valueChanged(double)), this, SLOT(EditKeyScaleX(double))); connect(ui.editKeyScaleY, SIGNAL(valueChanged(double)), this, SLOT(EditKeyScaleY(double))); connect(ui.editKeyScaleZ, SIGNAL(valueChanged(double)), this, SLOT(EditKeyScaleZ(double))); connect(ui.editKeyAlpha, SIGNAL(valueChanged(int)), this, SLOT(EditKeyAlpha(int))); connect(ui.editPartName, SIGNAL(textEdited(const QString&)), this, SLOT(EditPartName(const QString&))); connect(ui.editPartVisible, SIGNAL(toggled(bool)), this, SLOT(EditPartVisible(bool))); connect(ui.editPartBill, SIGNAL(currentIndexChanged(const QString&)), this, SLOT(EditPartBill(const QString&))); connect(ui.editPartBlend, SIGNAL(currentIndexChanged(const QString&)), this, SLOT(EditPartAlpha(const QString&))); connect(ui.editPartTexture, SIGNAL(editingFinished()), this, SLOT(EditPartTextureName())); connect(ui.btnSetPartTexture, SIGNAL(clicked()), this, SLOT(EditPartTexture())); connect(ui.editPartTexFrame, SIGNAL(valueChanged(int)), this, SLOT(EditPartTexFrame(int))); connect(ui.editPartTexLoop, SIGNAL(valueChanged(int)), this, SLOT(EditPartTexLoop(int))); connect(ui.editCustomMeshPointCount, SIGNAL(valueChanged(int)), this, SLOT(EditPartPointCount(int))); connect(ui.editParticleCreate, SIGNAL(valueChanged(int)), this, SLOT(EditPartParticleCreate(int))); connect(ui.editParticleCreateNum, SIGNAL(valueChanged(int)), this, SLOT(EditPartParticleCreateNum(int))); connect(ui.editParticleFrameAppear, SIGNAL(valueChanged(int)), this, SLOT(EditPartParticleFrameAppear(int))); connect(ui.editParticleFrameKeep, SIGNAL(valueChanged(int)), this, SLOT(EditPartParticleFrameKeep(int))); connect(ui.editParticleFrameDisappear, SIGNAL(valueChanged(int)), this, SLOT(EditPartParticleFrameDisappear(int))); connect(ui.editParticleStartPosVar, SIGNAL(valueChanged(double)), this, SLOT(EditPartParticleStartPosVar(double))); connect(ui.editParticleStartPosVarY, SIGNAL(valueChanged(double)), this, SLOT(EditPartParticleStartPosVarY(double))); connect(ui.editParticleYLow, SIGNAL(valueChanged(double)), this, SLOT(EditPartParticleYLow(double))); connect(ui.editParticleYHigh, SIGNAL(valueChanged(double)), this, SLOT(EditPartParticleYHigh(double))); connect(ui.editParticleXZLow, SIGNAL(valueChanged(double)), this, SLOT(EditPartParticleXZLow(double))); connect(ui.editParticleXZHigh, SIGNAL(valueChanged(double)), this, SLOT(EditPartParticleXZHigh(double))); connect(ui.editParticleAccelX, SIGNAL(valueChanged(double)), this, SLOT(EditPartParticleAccelX(double))); connect(ui.editParticleAccelY, SIGNAL(valueChanged(double)), this, SLOT(EditPartParticleAccelY(double))); connect(ui.editParticleAccelZ, SIGNAL(valueChanged(double)), this, SLOT(EditPartParticleAccelZ(double))); connect(ui.editParticleScaleX, SIGNAL(valueChanged(double)), this, SLOT(EditPartParticleScaleX(double))); connect(ui.editParticleScaleY, SIGNAL(valueChanged(double)), this, SLOT(EditPartParticleScaleY(double))); connect(ui.editParticleScaleZ, SIGNAL(valueChanged(double)), this, SLOT(EditPartParticleScaleZ(double))); connect(ui.editParticleRotationLowX, SIGNAL(valueChanged(double)), this, SLOT(EditPartParticleRotationLowX(double))); connect(ui.editParticleRotationLowY, SIGNAL(valueChanged(double)), this, SLOT(EditPartParticleRotationLowY(double))); connect(ui.editParticleRotationLowZ, SIGNAL(valueChanged(double)), this, SLOT(EditPartParticleRotationLowZ(double))); connect(ui.editParticleRotationHighX, SIGNAL(valueChanged(double)), this, SLOT(EditPartParticleRotationHighX(double))); connect(ui.editParticleRotationHighY, SIGNAL(valueChanged(double)), this, SLOT(EditPartParticleRotationHighY(double))); connect(ui.editParticleRotationHighZ, SIGNAL(valueChanged(double)), this, SLOT(EditPartParticleRotationHighZ(double))); connect(ui.editParticleScalSpeedXLow, SIGNAL(valueChanged(double)), this, SLOT(EditPartParticleScalSpeedXLow(double))); connect(ui.editParticleScalSpeedYLow, SIGNAL(valueChanged(double)), this, SLOT(EditPartParticleScalSpeedYLow(double))); connect(ui.editParticleScalSpeedZLow, SIGNAL(valueChanged(double)), this, SLOT(EditPartParticleScalSpeedZLow(double))); connect(ui.editParticleScalSpeedXHigh, SIGNAL(valueChanged(double)), this, SLOT(EditPartParticleScalSpeedXHigh(double))); connect(ui.editParticleScalSpeedYHigh, SIGNAL(valueChanged(double)), this, SLOT(EditPartParticleScalSpeedYHigh(double))); connect(ui.editParticleScalSpeedZHigh, SIGNAL(valueChanged(double)), this, SLOT(EditPartParticleScalSpeedZHigh(double))); connect(ui.editParticleRepeatScale, SIGNAL(toggled(bool)), this, SLOT(EditPartParticleRepeatScale(bool))); connect(ui.editParticleRepeat, SIGNAL(toggled(bool)), this, SLOT(EditPartParticleRepeat(bool))); connect(ui.editParticleScaleEndX, SIGNAL(valueChanged(double)), this, SLOT(EditPartParticleScaleEndX(double))); connect(ui.editParticleScaleEndY, SIGNAL(valueChanged(double)), this, SLOT(EditPartParticleScaleEndY(double))); connect(ui.editParticleScaleEndZ, SIGNAL(valueChanged(double)), this, SLOT(EditPartParticleScaleEndZ(double))); connect(ui.editParticleScaleSpeedX, SIGNAL(valueChanged(double)), this, SLOT(EditPartParticleScaleSpeedX(double))); connect(ui.editParticleScaleSpeedY, SIGNAL(valueChanged(double)), this, SLOT(EditPartParticleScaleSpeedY(double))); connect(ui.editParticleScaleSpeedZ, SIGNAL(valueChanged(double)), this, SLOT(EditPartParticleScaleSpeedZ(double))); }