void CharmWindow::stateChanged( State ) { switch( ApplicationCore::instance().state() ) { case Connecting: setEnabled( false ); restoreGuiState(); configurationChanged(); break; case Connected: configurationChanged(); ApplicationCore::instance().createFileMenu( menuBar() ); insertEditMenu(); ApplicationCore::instance().createWindowMenu( menuBar() ); ApplicationCore::instance().createHelpMenu( menuBar() ); setEnabled( true ); break; case Disconnecting: setEnabled( false ); saveGuiState(); break; case ShuttingDown: case Dead: default: break; }; }
int main(int argc, char *argv[]) { QCoreApplication::addLibraryPath("app/native/plugins"); QApplication app(argc, argv); SimondConnector connector; QMLSimoneView view; QObject::connect(&view, SIGNAL(connectToServer()), &connector, SLOT(connectToServer())); QObject::connect(&view, SIGNAL(disconnectFromServer()), &connector, SLOT(disconnectFromServer())); QObject::connect(&view, SIGNAL(startRecording()), &connector, SLOT(startRecording())); QObject::connect(&view, SIGNAL(commitRecording()), &connector, SLOT(commitRecording())); QObject::connect(&view, SIGNAL(configurationChanged()), &connector, SLOT(configurationChanged())); QObject::connect(&connector, SIGNAL(connectionState(ConnectionState)), &view, SLOT(displayConnectionState(ConnectionState))); QObject::connect(&connector, SIGNAL(status(QString)), &view, SLOT(displayStatus(QString))); QObject::connect(&connector, SIGNAL(error(QString)), &view, SLOT(displayError(QString))); QObject::connect(&connector, SIGNAL(listening()), &view, SLOT(displayListening())); QObject::connect(&connector, SIGNAL(recognizing()), &view, SLOT(displayRecognizing())); QObject::connect(&connector, SIGNAL(microphoneLevel(int,int,int)), &view, SLOT(displayMicrophoneLevel(int,int,int))); QObject::connect(&connector, SIGNAL(recognized(RecognitionResultList)), &view, SLOT(recognized(RecognitionResultList))); view.show(); connector.init(); return app.exec(); }
void MidiPlugin::init() { qDebug() << Q_FUNC_INFO; m_enumerator = new MidiEnumerator(this); connect(m_enumerator, SIGNAL(configurationChanged()), this, SIGNAL(configurationChanged())); m_enumerator->rescan(); }
void MidiPlugin::init() { qDebug() << Q_FUNC_INFO; m_enumerator = new MidiEnumerator(this); connect(m_enumerator, SIGNAL(configurationChanged()), this, SIGNAL(configurationChanged())); m_enumerator->rescan(); loadMidiTemplates(userMidiTemplateDirectory()); loadMidiTemplates(systemMidiTemplateDirectory()); }
void SipHandler::hookUpPlugin( SipPlugin* sip ) { QObject::connect( sip, SIGNAL( peerOnline( QString ) ), SLOT( onPeerOnline( QString ) ) ); QObject::connect( sip, SIGNAL( peerOffline( QString ) ), SLOT( onPeerOffline( QString ) ) ); QObject::connect( sip, SIGNAL( msgReceived( QString, QString ) ), SLOT( onMessage( QString, QString ) ) ); QObject::connect( sip, SIGNAL( sipInfoReceived( QString, SipInfo ) ), SLOT( onSipInfo( QString, SipInfo ) ) ); QObject::connect( sip, SIGNAL( softwareVersionReceived( QString, QString ) ), SLOT( onSoftwareVersion( QString, QString ) ) ); QObject::connect( sip, SIGNAL( avatarReceived( QString, QPixmap ) ), SLOT( onAvatarReceived( QString, QPixmap ) ) ); QObject::connect( sip, SIGNAL( avatarReceived( QPixmap ) ), SLOT( onAvatarReceived( QPixmap ) ) ); QObject::connect( sip->account(), SIGNAL( configurationChanged() ), sip, SLOT( configurationChanged() ) ); }
/*! Constructs a QNetworkConfigurationManager with the given \a parent. */ QNetworkConfigurationManager::QNetworkConfigurationManager( QObject* parent ) : QObject(parent) { QNetworkConfigurationManagerPrivate* priv = connManager(); connect(priv, SIGNAL(configurationAdded(QNetworkConfiguration)), this, SIGNAL(configurationAdded(QNetworkConfiguration))); connect(priv, SIGNAL(configurationRemoved(QNetworkConfiguration)), this, SIGNAL(configurationRemoved(QNetworkConfiguration))); connect(priv, SIGNAL(configurationUpdateComplete()), this, SIGNAL(updateCompleted())); connect(priv, SIGNAL(onlineStateChanged(bool)), this, SIGNAL(onlineStateChanged(bool))); connect(priv, SIGNAL(configurationChanged(QNetworkConfiguration)), this, SIGNAL(configurationChanged(QNetworkConfiguration))); }
QSpotifySession::QSpotifySession() : QObject(0) , m_timerID(0) , m_sp_session(nullptr) , m_connectionStatus(LoggedOut) , m_connectionError(Ok) , m_connectionRules(AllowSyncOverWifi | AllowNetworkIfRoaming) , m_streamingQuality(Unknown) , m_syncQuality(Unknown) , m_syncOverMobile(false) , m_user(nullptr) , m_pending_connectionRequest(false) , m_isLoggedIn(false) , m_explicitLogout(false) , m_aboutToQuit(false) , m_offlineMode(false) , m_forcedOfflineMode(false) , m_ignoreNextConnectionError(false) , m_playQueue(new QSpotifyPlayQueue(this)) , m_currentTrack(nullptr) , m_isPlaying(false) , m_currentTrackPosition(0) , m_currentTrackPlayedDuration(0) , m_previousTrackRemaining(0) , m_shuffle(false) , m_repeat(false) , m_repeatOne(false) , m_volumeNormalize(true) , m_trackChangedAutomatically(false) , m_showOfflineSwitch(true) { connect(qApp, SIGNAL(aboutToQuit()), this, SLOT(initiateQuit())); m_networkConfManager = new QNetworkConfigurationManager(this); connect(m_networkConfManager, SIGNAL(onlineStateChanged(bool)), this, SLOT(onOnlineChanged())); connect(m_networkConfManager, SIGNAL(onlineStateChanged(bool)), this, SIGNAL(isOnlineChanged())); connect(m_networkConfManager, SIGNAL(configurationChanged(QNetworkConfiguration)), this, SIGNAL(isOnlineChanged())); connect(m_networkConfManager, SIGNAL(configurationChanged(QNetworkConfiguration)), this, SLOT(configurationChanged())); m_audioThread = new QThread(); g_audioWorker = new QSpotifyAudioThreadWorker(); g_audioWorker->moveToThread(m_audioThread); connect(m_audioThread, SIGNAL(finished()), g_audioWorker, SLOT(deleteLater())); connect(m_audioThread, SIGNAL(finished()), m_audioThread, SLOT(deleteLater())); m_audioThread->start(QThread::HighestPriority); // QCoreApplication::instance()->installEventFilter(this); }
bool DMXUSB::rescanWidgets() { while (m_outputs.isEmpty() == false) delete m_outputs.takeFirst(); while (m_inputs.isEmpty() == false) delete m_inputs.takeFirst(); QList <DMXUSBWidget*> widgets(QLCFTDI::widgets()); foreach (DMXUSBWidget* widget, widgets) { if (widget->type() == DMXUSBWidget::ProRX) { m_inputs << widget; EnttecDMXUSBProRX* prorx = (EnttecDMXUSBProRX*) widget; connect(prorx, SIGNAL(valueChanged(quint32,quint32,uchar)), this, SIGNAL(valueChanged(quint32,quint32,uchar))); } else { m_outputs << widget; } } emit configurationChanged(); return true; }
void MainWindow::backendTypeChanged(const QString &type) { current_profile->type = type; ui->backendEdit->setText(current_profile->getBackend()); int tID = current_profile->getBackendTypeID(); if (tID == 2) {//shadowsocks-go doesn't support timeout argument ui->timeoutSpinBox->setVisible(false); ui->timeoutLabel->setVisible(false); } else { ui->timeoutSpinBox->setVisible(true); ui->timeoutLabel->setVisible(true); } #ifdef Q_OS_LINUX if ((tID == 0 || tID == 3) && m_conf->isTFOAvailable()) { ui->tfoCheckBox->setVisible(true); } else { ui->tfoCheckBox->setVisible(false); } #endif emit configurationChanged(); }
AMBeamlineScanAction::AMBeamlineScanAction(AMScanConfiguration *cfg, QObject *parent) : AMBeamlineActionItem(true, parent) { scanID_ = -1; configurationLocked_ = false; cfg_ = cfg; lastSampleDescription_ = "<Unknown Sample>"; exemplar_.setSampleName(lastSampleDescription_); exemplar_.setScanConfiguration(cfg_); nameDictionary_ = new AMScanExemplarDictionary(&exemplar_, this); exportNameDictionary_ = new AMScanExemplarDictionary(&exemplar_, this); nameDictionary_->setOperatingOnName(true); exportNameDictionary_->setOperatingOnExportName(true); if(cfg_) { connect(cfg_, SIGNAL(configurationChanged()), this, SLOT(onConfigurationChanged())); connect(cfg_, SIGNAL(destroyed()), this, SLOT(onConfigurationDestroyed())); setDescription(cfg_->description()+" on "+lastSampleDescription_); nameDictionary_->parseKeywordStringAndOperate(cfg_->userScanName()); if(cfg_->autoExportEnabled()) exportNameDictionary_->parseKeywordStringAndOperate(cfg_->userExportName()); } ctrl_ = NULL; keepOnCancel_ = false; connect(AMBeamline::bl(), SIGNAL(beamlineScanningChanged(bool)), this, SLOT(onBeamlineScanningChanged(bool))); initialize(); }
AsemanNetworkManager::AsemanNetworkManager(QObject *parent) : QObject(parent) { p = new AsemanNetworkCheckerPrivate; p->network = new QNetworkConfigurationManager(this); p->defaultItem = new AsemanNetworkManagerItem(this); p->updateTimer = new QTimer(this); p->updateTimer->setInterval(1000); p->updateTimer->start(); p->lastConfig = p->network->defaultConfiguration(); connect(p->network, SIGNAL(configurationAdded(QNetworkConfiguration)), SLOT(configureAdded(QNetworkConfiguration))); connect(p->network, SIGNAL(configurationChanged(QNetworkConfiguration)), this, SLOT(configureChanged(QNetworkConfiguration))); connect(p->network, SIGNAL(configurationRemoved(QNetworkConfiguration)), SLOT(configureRemoved(QNetworkConfiguration))); connect(p->network, SIGNAL(updateCompleted()), SLOT(updateCheck())); connect(p->updateTimer, SIGNAL(timeout()), SLOT(updateCheck())); foreach(const QNetworkConfiguration &config, p->network->allConfigurations()) configureAdded(config); updateCheck(); }
//BEGIN class View View::View( Document *document, ViewContainer *viewContainer, uint viewAreaId, const char *name ) : QWidget( viewContainer->viewArea(viewAreaId), name ? name : ("view_" + QString::number(viewAreaId)).toLatin1().data() ), KXMLGUIClient() { m_pFocusWidget = 0l; m_dcopID = 0; m_viewAreaId = viewAreaId; m_pDocument = document; p_viewContainer = viewContainer; m_pViewIface = 0l; setFocusPolicy( Qt::ClickFocus ); if ( ViewArea * viewArea = viewContainer->viewArea(viewAreaId) ) viewArea->setView(this); else kDebug() << k_funcinfo << " viewArea = " << viewArea <<endl; m_layout = new QVBoxLayout(this); // Don't bother creating statusbar if no ktechlab as we are not a main ktechlab tab if ( KTechlab::self() ) { m_statusBar = new ViewStatusBar(this); m_layout->addWidget( new KVSSBSep(this) ); m_layout->addWidget( m_statusBar ); connect( KTechlab::self(), SIGNAL(configurationChanged()), this, SLOT(slotUpdateConfiguration()) ); } }
void ConfigurationManager::onButtonBoxClicked(QAbstractButton* button) { int answer; switch( ui->buttonBox->buttonRole(button) ) { case QDialogButtonBox::ApplyRole: apply(); emit configurationChanged(); break; case QDialogButtonBox::AcceptRole: accept(); break; case QDialogButtonBox::RejectRole: reject(); break; case QDialogButtonBox::ResetRole: // ask before resetting values answer = QMessageBox::question( this, tr("Reset preferences?"), tr("This action will reset all your preferences (in all tabs) to default values.<br /><br />" "Do you really want to <strong>reset all preferences</strong>?"), QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes); if (answer == QMessageBox::Yes) { for (auto it = m_options.begin(); it != m_options.end(); ++it) it.value().reset(); } break; default: return; } }
void REIXSXASScanConfigurationView::setupConnections() { // Make connections: from widgets to scan configuration. connect(applyGratingBox_, SIGNAL(clicked(bool)), config_, SLOT(setApplyMonoGrating(bool))); connect(applyMirrorBox_, SIGNAL(clicked(bool)), config_, SLOT(setApplyMonoMirror(bool))); connect(applySlitWidthBox_, SIGNAL(clicked(bool)), config_, SLOT(setApplySlitWidth(bool))); connect(applyPolarizationBox_, SIGNAL(clicked(bool)), config_, SLOT(setApplyPolarization(bool))); connect(namedAutomaticallyBox_, SIGNAL(clicked(bool)), config_, SLOT(setNamedAutomatically(bool))); connect(gratingBox_, SIGNAL(currentIndexChanged(int)), config_, SLOT(setMonoGrating(int))); connect(mirrorBox_, SIGNAL(currentIndexChanged(int)), config_, SLOT(setMonoMirror(int))); connect(slitWidthBox_, SIGNAL(valueChanged(double)), config_, SLOT(setSlitWidth(double))); connect(polarizationBox_, SIGNAL(currentIndexChanged(int)), config_, SLOT(setPolarization(int))); connect(polarizationAngleBox_, SIGNAL(valueChanged(double)), config_, SLOT(setPolarizationAngle(double))); connect(nameEdit_, SIGNAL(textEdited(QString)), config_, SLOT(setUserScanName(QString))); connect(sampleSelector_, SIGNAL(currentSampleChanged(int)), config_, SLOT(setSampleId(int))); connect(namedAutomaticallyBox_, SIGNAL(clicked(bool)), config_, SLOT(setNamedAutomatically(bool))); // Make connections: from widgets to enable/disable other widgets connect(applyGratingBox_, SIGNAL(clicked(bool)), gratingBox_, SLOT(setEnabled(bool))); connect(applyMirrorBox_, SIGNAL(clicked(bool)), mirrorBox_, SLOT(setEnabled(bool))); connect(applySlitWidthBox_, SIGNAL(clicked(bool)), slitWidthBox_, SLOT(setEnabled(bool))); connect(applyPolarizationBox_, SIGNAL(clicked(bool)), polarizationBox_, SLOT(setEnabled(bool))); connect(applyPolarizationBox_, SIGNAL(clicked(bool)), this, SLOT(reviewPolarizationAngleBoxEnabled())); connect(polarizationBox_, SIGNAL(activated(int)), this, SLOT(reviewPolarizationAngleBoxEnabled())); connect(namedAutomaticallyBox_, SIGNAL(clicked(bool)), nameEdit_, SLOT(setDisabled(bool))); connect(namedAutomaticallyBox_, SIGNAL(clicked(bool)), sampleSelector_, SLOT(setDisabled(bool))); connect(config_, SIGNAL(totalTimeChanged(double)), this, SLOT(onEstimatedTimeChanged())); connect(config_, SIGNAL(scanAxisAdded(AMScanAxis*)), this, SLOT(onEstimatedTimeChanged())); connect(config_, SIGNAL(scanAxisRemoved(AMScanAxis*)), this, SLOT(onEstimatedTimeChanged())); connect(config_, SIGNAL(modifiedChanged(bool)), this, SLOT(onEstimatedTimeChanged())); connect(config_, SIGNAL(configurationChanged()), this, SLOT(onEstimatedTimeChanged())); }
bool DMXUSB::rescanWidgets() { int linesCount = m_inputs.count() + m_outputs.count(); m_inputs.clear(); m_outputs.clear(); while(m_widgets.isEmpty() == false) delete m_widgets.takeFirst(); m_widgets = DMXUSBWidget::widgets(); foreach (DMXUSBWidget* widget, m_widgets) { for (int o = 0; o < widget->outputsNumber(); o++) m_outputs.append(widget); for (int i = 0; i < widget->inputsNumber(); i++) m_inputs.append(widget); } if (m_inputs.count() + m_outputs.count() != linesCount) emit configurationChanged(); return true; }
void BioXASXASScanConfigurationEditor::setConfiguration(BioXASXASScanConfiguration *newConfiguration) { if (configuration_ != newConfiguration) { if (configuration_) { disconnect( configuration_, 0, this, 0 ); disconnect( configuration_->dbObject(), 0, this, 0 ); } configuration_ = newConfiguration; if (configuration_) { connect( configuration_, SIGNAL(nameChanged(QString)), this, SLOT(updateNameLineEdit()) ); connect( configuration_->dbObject(), SIGNAL(energyChanged(double)), this, SLOT(updateEnergySpinBox()) ); connect( configuration_, SIGNAL(detectorsChanged()), this, SLOT(updateExportSpectraCheckBox()) ); connect( configuration_->dbObject(), SIGNAL(exportSpectraPreferenceChanged(bool)), this, SLOT(updateExportSpectraCheckBox()) ); connect( configuration_, SIGNAL(detectorsChanged()), this, SLOT(updateCollectICRsCheckBox()) ); connect( configuration_->dbObject(), SIGNAL(collectICRsPreferenceChanged(bool)), this, SLOT(updateCollectICRsCheckBox()) ); } refresh(); emit configurationChanged(configuration_); } }
MainWindow::MainWindow(QWidget *parent, const int countOfComponents) : QMainWindow(parent), ui(new Ui::MainWindow), arrayCount(countOfComponents) { ui->setupUi(this); this->setWindowTitle("Конфигуратор ПК[*] - для заказчика"); platformsList = new QList<Platform*>; arrayOfComponentsLists = new const QList<Component*>*[arrayCount]; arrayOfComponentsLists = NULL; configuratorWidget = new ConfiguratorWidget(this); connect(this, SIGNAL(queryForConnectConfigurator(const QList<Platform*>*, const QList<Component*>**, double)), configuratorWidget, SLOT(connectConfigurator(const QList<Platform*>*, const QList<Component*>**, double))); connect(configuratorWidget, SIGNAL(configurationChanged()), this, SLOT(currentConfigurationChange())); setCentralWidget(configuratorWidget); loadAll(); configuratorWidget->refreshPlatformBox(); configuratorWidget->loadOtherSettings(); this->setWindowModified(false); mainSettings = new QSettings(this); loadMainSettings(); }
void WallpaperInterface::loadFinished() { if (m_qmlObject->mainComponent() && m_qmlObject->rootObject() && !m_qmlObject->mainComponent()->isError()) { m_qmlObject->rootObject()->setProperty("z", -1000); m_qmlObject->rootObject()->setProperty("parent", QVariant::fromValue(this)); //set anchors QQmlExpression expr(m_qmlObject->engine()->rootContext(), m_qmlObject->rootObject(), "parent"); QQmlProperty prop(m_qmlObject->rootObject(), "anchors.fill"); prop.write(expr.evaluate()); } else if (m_qmlObject->mainComponent()) { qWarning() << "Error loading the wallpaper" << m_qmlObject->mainComponent()->errors(); s_rootObjects.remove(m_qmlObject->engine()); m_qmlObject->deleteLater(); m_qmlObject = 0; } else { qWarning() << "Error loading the wallpaper, package not found"; } emit packageChanged(); emit configurationChanged(); }
DomainInfoDock::DomainInfoDock(QWidget *parent) : EditorDock(parent), ui(new Ui::DomainInfoDock) { ui->setupUi(this); //Resize the edit button so that it fits the icon button above ui->editButton->setMaximumWidth(ui->iconButton->geometry().width()); //Update rules whenever they change ConfigurationStack &stack=ConfigurationStack::instance(); connect(&stack, SIGNAL(domainChanged(QString,QString)), this, SLOT(onDomainChanged(QString,QString))); connect(&stack, SIGNAL(configurationChanged()), this, SLOT(onProgramsOrRulesChanged())); connect(&stack, SIGNAL(allRulesChanged()), this, SLOT(onProgramsOrRulesChanged())); connect(&stack, SIGNAL(loopsChanged()), this, SLOT(onProgramsOrRulesChanged())); connect(&stack, SIGNAL(rulesChanged()), this, SLOT(onProgramsOrRulesChanged())); connect(&stack, SIGNAL(programChanged(QString,QString)), this, SLOT(onProgramsOrRulesChanged())); connect(&stack, SIGNAL(warningsChanged()), this, SLOT(onProgramsOrRulesChanged())); //Connect the edit button connect(ui->editButton, SIGNAL(clicked()), this, SLOT(onEditClicked())); //Forward domain/program activated signals to parents connect(ui->loopsTreeWidget, SIGNAL(programActivated(QString)), this, SIGNAL(programActivated(QString))); connect(ui->loopsTreeWidget, SIGNAL(ruleActivated(int)), this, SIGNAL(ruleActivated(int))); connect(ui->incomingTreeWidget, SIGNAL(domainActivated(QString)), this, SIGNAL(domainActivated(QString))); connect(ui->incomingTreeWidget, SIGNAL(programActivated(QString)), this, SIGNAL(programActivated(QString))); connect(ui->incomingTreeWidget, SIGNAL(ruleActivated(int)), this, SIGNAL(ruleActivated(int))); connect(ui->leavingTreeWidget, SIGNAL(domainActivated(QString)), this, SIGNAL(domainActivated(QString))); connect(ui->leavingTreeWidget, SIGNAL(programActivated(QString)), this, SIGNAL(programActivated(QString))); connect(ui->leavingTreeWidget, SIGNAL(ruleActivated(int)), this, SIGNAL(ruleActivated(int))); }
AddressesModelManager::AddressesModelManager (BaseSettingsManager *bsm, int defaultPort, QObject *parent) : QObject { parent } , Model_ { new QStandardItemModel { this } } , BSM_ { bsm } { Model_->setHorizontalHeaderLabels ({ tr ("Host"), tr ("Port") }); Model_->horizontalHeaderItem (0)->setData (DataSources::DataFieldType::Enum, DataSources::DataSourceRole::FieldType); Model_->horizontalHeaderItem (1)->setData (DataSources::DataFieldType::Integer, DataSources::DataSourceRole::FieldType); const auto confManager = new QNetworkConfigurationManager { this }; connect (confManager, SIGNAL (configurationAdded (QNetworkConfiguration)), this, SLOT (updateAvailInterfaces ())); connect (confManager, SIGNAL (configurationRemoved (QNetworkConfiguration)), this, SLOT (updateAvailInterfaces ())); connect (confManager, SIGNAL (configurationChanged (QNetworkConfiguration)), this, SLOT (updateAvailInterfaces ())); updateAvailInterfaces (); const auto& addrs = BSM_->Property ("ListenAddresses", QVariant::fromValue (GetLocalAddresses (defaultPort))).value<AddrList_t> (); qDebug () << Q_FUNC_INFO << addrs; for (const auto& addr : addrs) AppendRow (addr); }
void GlassWidget::configData() { bool autostart=autoStart(); gw_config_dialog->exec(&autostart); setAutoStart(autostart); emit configurationChanged(this); }
int main(int argc, char *argv[]) { QCoreApplication::addLibraryPath("app/native/plugins"); QApplication app(argc, argv); bool voiceControlled = true; SimondConnector *connector; if (voiceControlled) connector = new SimondConnector; else connector = 0; Recomment recomment; QMLRecommentView view(&recomment, voiceControlled); if (voiceControlled) { QObject::connect(&view, SIGNAL(connectToServer()), connector, SLOT(connectToServer())); QObject::connect(&view, SIGNAL(disconnectFromServer()), connector, SLOT(disconnectFromServer())); QObject::connect(&view, SIGNAL(startRecording()), connector, SLOT(startRecording())); QObject::connect(&view, SIGNAL(commitRecording()), connector, SLOT(commitRecording())); QObject::connect(&view, SIGNAL(configurationChanged()), connector, SLOT(configurationChanged())); QObject::connect(connector, SIGNAL(connectionState(ConnectionState)), &view, SLOT(displayConnectionState(ConnectionState))); QObject::connect(connector, SIGNAL(status(QString)), &view, SLOT(displayStatus(QString))); QObject::connect(connector, SIGNAL(error(QString)), &view, SLOT(displayError(QString))); QObject::connect(connector, SIGNAL(listening()), &view, SLOT(displayListening())); QObject::connect(connector, SIGNAL(recognizing()), &view, SLOT(displayRecognizing())); QObject::connect(connector, SIGNAL(microphoneLevel(int,int,int)), &view, SLOT(displayMicrophoneLevel(int,int,int))); //QObject::connect(connector, SIGNAL(recognized(QString)), &view, SLOT(displayExecutedAction(QString))); QObject::connect(connector, SIGNAL(recognized(QString)), &recomment, SLOT(critique(QString))); } QObject::connect(&recomment, SIGNAL(recommend(const Offer*, QString)), &view, SLOT(displayRecommendation(const Offer*, QString))); QObject::connect(&recomment, SIGNAL(noMatchFor(QString)), &view, SLOT(displayNoMatch(QString))); view.show(); if (voiceControlled) connector->init(); if (!recomment.init()) { qWarning() << "Failed to initialize Recomment; Aborting"; return -1; } int ret = app.exec(); delete connector; return ret; }
void EWingInput::removeDevice(EWing* device) { Q_ASSERT(device != NULL); m_devices.removeAll(device); delete device; emit configurationChanged(); }
void DMXUSB::configure() { qDebug() << Q_FUNC_INFO; DMXUSBConfig config(this); config.exec(); rescanWidgets(); emit configurationChanged(); }
BearerEx::BearerEx(QWidget* parent) : QMainWindow(parent) { setupUi(this); createMenus(); connect(&m_NetworkConfigurationManager, SIGNAL(updateCompleted()), this, SLOT(configurationsUpdateCompleted())); connect(&m_NetworkConfigurationManager, SIGNAL(configurationAdded(QNetworkConfiguration)), this, SLOT(configurationAdded(QNetworkConfiguration))); connect(&m_NetworkConfigurationManager, SIGNAL(configurationRemoved(QNetworkConfiguration)), this, SLOT(configurationRemoved(QNetworkConfiguration))); connect(&m_NetworkConfigurationManager, SIGNAL(onlineStateChanged(bool)), this, SLOT(onlineStateChanged(bool))); connect(&m_NetworkConfigurationManager, SIGNAL(configurationChanged(QNetworkConfiguration)), this, SLOT(configurationChanged(QNetworkConfiguration))); showConfigurations(); }
void HID::addDevice(HIDDevice* device) { Q_ASSERT(device != NULL); m_devices.append(device); emit deviceAdded(device); emit configurationChanged(); }
void ConfigurationManager::done(int result) { if (result == QDialog::Accepted) { apply(); emit configurationChanged(); } QDialog::done(result); }
bool SGMXASScanConfiguration::setFluxResolutionGroup(AMControlInfoList fluxResolutionList){ bool rVal = SGMScanConfiguration::setFluxResolutionGroup(fluxResolutionList); if(rVal){ emit fluxResolutionGroupChanged(fluxResolutionList); setModified(true); emit configurationChanged(); } return rVal; }
KMouthApp::KMouthApp(QWidget* , const char* name): KXmlGuiWindow(0) { setObjectName(QLatin1String(name)); isConfigured = false; config = KGlobal::config(); /////////////////////////////////////////////////////////////////// // call inits to invoke all other construction parts initStatusBar(); initPhraseList(); initActions(); optionsDialog = new OptionsDialog(this); connect(optionsDialog, SIGNAL(configurationChanged()), this, SLOT(slotConfigurationChanged())); connect(optionsDialog, SIGNAL(configurationChanged()), phraseList, SLOT(configureCompletion())); phrases = new KActionCollection(static_cast<QWidget*>(this)); readOptions(); ConfigWizard *wizard = new ConfigWizard(this, config.data()); if (wizard->configurationNeeded()) { if (wizard->requestConfiguration()) { isConfigured = true; saveOptions(); wizard->saveConfig(); readOptions(); } else isConfigured = false; } else isConfigured = true; delete wizard; if (isConfigured) { phraseList->configureCompletion(); } /////////////////////////////////////////////////////////////////// // disable actions at startup fileSaveAs->setEnabled(false); filePrint->setEnabled(false); printer = 0; }
void DownloadManager::setConfiguration(Configuration *nConfiguration) { if (nConfiguration != m_configuration) { m_configuration = nConfiguration; #ifdef QT_DEBUG qDebug() << "Changed configuration to" << m_configuration; #endif emit configurationChanged(configuration()); } }