当前位置: 首页>>代码示例>>C++>>正文


C++ configurationChanged函数代码示例

本文整理汇总了C++中configurationChanged函数的典型用法代码示例。如果您正苦于以下问题:C++ configurationChanged函数的具体用法?C++ configurationChanged怎么用?C++ configurationChanged使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了configurationChanged函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: switch

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;
    };
}
开发者ID:MichaelRyanWebber,项目名称:Charm,代码行数:26,代码来源:CharmWindow.cpp

示例2: main

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();
}
开发者ID:KDE,项目名称:simon-tools,代码行数:27,代码来源:main.cpp

示例3: qDebug

void MidiPlugin::init()
{
    qDebug() << Q_FUNC_INFO;

    m_enumerator = new MidiEnumerator(this);
    connect(m_enumerator, SIGNAL(configurationChanged()),
            this, SIGNAL(configurationChanged()));
    m_enumerator->rescan();
}
开发者ID:JanetPeck,项目名称:qlcplus,代码行数:9,代码来源:midiplugin.cpp

示例4: qDebug

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());
}
开发者ID:Kokichiro,项目名称:qlcplus,代码行数:12,代码来源:midiplugin.cpp

示例5: SIGNAL

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() ) );
}
开发者ID:mokerjoke,项目名称:tomahawk,代码行数:14,代码来源:SipHandler.cpp

示例6: QObject

/*!
    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)));
}
开发者ID:KDE,项目名称:android-qt-mobility,代码行数:18,代码来源:qnetworkconfigmanager.cpp

示例7: QObject

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);
}
开发者ID:safri-framework,项目名称:safri-player,代码行数:48,代码来源:qspotifysession.cpp

示例8: while

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;
}
开发者ID:basileus,项目名称:qlcplus,代码行数:27,代码来源:dmxusb.cpp

示例9: configurationChanged

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();
}
开发者ID:CzBiX,项目名称:shadowsocks-qt5,代码行数:26,代码来源:mainwindow.cpp

示例10: AMBeamlineActionItem

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();
}
开发者ID:Cpppro,项目名称:acquaman,代码行数:28,代码来源:AMBeamlineScanAction.cpp

示例11: QObject

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();
}
开发者ID:Sollex-21412,项目名称:Cutegram,代码行数:28,代码来源:asemannetworkmanager.cpp

示例12: QWidget

//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()) );
	}
}
开发者ID:ktechlab,项目名称:ktechlab-0.3,代码行数:33,代码来源:view.cpp

示例13: switch

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;
    }
}
开发者ID:m4r71n,项目名称:CopyQ,代码行数:33,代码来源:configurationmanager.cpp

示例14: connect

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()));
}
开发者ID:acquaman,项目名称:acquaman,代码行数:34,代码来源:REIXSXASScanConfigurationView.cpp

示例15: while

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;
}
开发者ID:exmatrikulator,项目名称:qlcplus,代码行数:25,代码来源:dmxusb.cpp


注:本文中的configurationChanged函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。