void KonviConfigDialog::setupManagerConnections(KConfigDialogManager *manager) { connect(manager, SIGNAL(settingsChanged()), this, SLOT(settingsChangedSlot())); connect(manager, SIGNAL(widgetModified()), this, SLOT(updateButtons())); connect(this, SIGNAL(okClicked()), manager, SLOT(updateSettings())); connect(this, SIGNAL(applyClicked()), manager, SLOT(updateSettings())); connect(this, SIGNAL(defaultClicked()), manager, SLOT(updateWidgetsDefault())); }
DataManagerImpl::DataManagerImpl(ActiveDataPtr activeData) : mClinicalApplication(mdNEUROLOGICAL), mActiveData(activeData) { m_rMpr_History.reset(new RegistrationHistory()); connect(m_rMpr_History.get(), &RegistrationHistory::currentChanged, this, &DataManager::rMprChanged); mPatientLandmarks = Landmarks::create(); connect(settings(), SIGNAL(valueChangedFor(QString)), this, SLOT(settingsChangedSlot(QString))); this->readClinicalView(); this->clear(); }
void ShutdownManager::setupConnections() { // check application activity (download, extract, etc...) at each timeout : connect(this->activityMonitorTimer, SIGNAL(timeout()), this, SLOT(retrieveCurrentJobsInfoSlot())); // launch system shutdown after launchShutdownTimer timeout : connect(this->launchShutdownTimer, SIGNAL(timeout()), this, SLOT(launchSystemShutdownSlot())); // parent notify that settings have changed : connect (parent, SIGNAL(settingsChangedSignal()), this, SLOT(settingsChangedSlot())); // enable or disable shutdown button according to nzb parent status: connect(parent->getDownloadModel(), SIGNAL(parentStatusItemChangedSignal(QStandardItem*, ItemStatusData)), this, SLOT(statusItemUpdatedSlot())); }
ViewWrapper2D::ViewWrapper2D(ViewPtr view, VisServicesPtr backend) : ViewWrapper(backend), mOrientationActionGroup(new QActionGroup(view.get())) { qRegisterMetaType<Vector3D>("Vector3D"); mView = view; this->connectContextMenu(mView); // disable vtk interactor: this wrapper IS an interactor mView->getRenderWindow()->GetInteractor()->Disable(); mView->getRenderer()->GetActiveCamera()->SetParallelProjection(true); double clipDepth = 1.0; // 1mm depth, i.e. all 3D props rendered outside this range is not shown. double length = clipDepth*10; mView->getRenderer()->GetActiveCamera()->SetPosition(0,0,length); mView->getRenderer()->GetActiveCamera()->SetClippingRange(length-clipDepth, length+0.1); connect(settings(), SIGNAL(valueChangedFor(QString)), this, SLOT(settingsChangedSlot(QString))); // slice proxy mSliceProxy = SliceProxy::create(mServices->patient()); mDataRepContainer.reset(new DataRepContainer()); mDataRepContainer->setSliceProxy(mSliceProxy); mDataRepContainer->setView(mView); mViewFollower = ViewFollower::create(mServices->patient()); mViewFollower->setSliceProxy(mSliceProxy); addReps(); mZoom2D.reset(new Zoom2DHandler()); connect(mZoom2D.get(), SIGNAL(zoomChanged()), this, SLOT(viewportChanged())); connect(mServices->tracking().get(), SIGNAL(activeToolChanged(const QString&)), this, SLOT(activeToolChangedSlot())); connect(mView.get(), SIGNAL(resized(QSize)), this, SLOT(viewportChanged())); connect(mView.get(), SIGNAL(shown()), this, SLOT(showSlot())); connect(mView.get(), SIGNAL(mousePress(int, int, Qt::MouseButtons)), this, SLOT(mousePressSlot(int, int, Qt::MouseButtons))); connect(mView.get(), SIGNAL(mouseMove(int, int, Qt::MouseButtons)), this, SLOT(mouseMoveSlot(int, int, Qt::MouseButtons))); connect(mView.get(), SIGNAL(mouseWheel(int, int, int, int, Qt::MouseButtons)), this, SLOT(mouseWheelSlot(int, int, int, int, Qt::MouseButtons))); connect(mServices->patient().get(), &PatientModelService::videoAddedToTrackedStream, this, &ViewWrapper2D::videoSourcesChangedSlot); this->activeToolChangedSlot(); this->updateView(); }
void ConfigDlg::updateSettings() { kdDebug() << "updateSettings" << endl; KConfigDialog::updateSettings(); if (!hasChanged()) { return; } m_oldIconDimText = m_ui->iconDim->currentText(); if (m_ui->iconDim->currentText() == i18n("Automatic")) { m_settings->setIconDim(m_autoSize); } else { m_settings->setIconDim(m_ui->iconDim->currentText().toInt()); } settingsChangedSlot(); }
ConfigDialog::ConfigDialog( QWidget * parent ) { if (KConfigDialog::showDialog("settings")) { return; } KConfigDialog *dialog = new KConfigDialog(parent, "settings", Settings::self()); dialog->resize(650,400); dialog->setFaceType(KPageDialog::List); dialog->addPage(new Config::GeneralPageDialog(dialog), i18n("General"), "system-run" ); dialog->addPage(new Config::AppareancePageDialog(dialog), i18n("Appareance note"), "preferences-desktop-color" ); dialog->addPage(new Config::AnimationPageDialog(dialog), i18n("Animation"), "preferences-desktop-launch-feedback" ); dialog->addPage(new Config::ClipperPageDialog(dialog), i18n("Clipper"), "klipper" ); Config::SynchroPageDialog * p = new Config::SynchroPageDialog(dialog); connect( p, SIGNAL(changed()), dialog, SLOT(settingsChangedSlot()) ); dialog->addPage(p, i18n("Synchronisation"), "preferences-desktop-launch-feedback" ); p->load(); dialog->show(); connect( dialog, SIGNAL(settingsChanged(const QString&)), this, SLOT(updateConfiguration()) ); }