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


C++ ConfigDialog类代码示例

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


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

示例1: refreshParams

gboolean ConfigDialog::refreshParams (gpointer data)
{
    ConfigDialog *This = static_cast<ConfigDialog *> (data);
    
    This->setupRendererParams ();
    return FALSE;
}
开发者ID:Ali-il,项目名称:gamekit,代码行数:7,代码来源:OgreConfigDialog.cpp

示例2: ts3plugin_configure

/* Plugin might offer a configuration window. If ts3plugin_offersConfigure returns 0, this function does not need to be implemented. */
void ts3plugin_configure(void* handle, void* qParentWidget) {
	debuglog("GW2Plugin: configure\n");

	ConfigDialog qConfigDialog;
	qConfigDialog.SetupUi();
	qConfigDialog.exec();
}
开发者ID:Archomeda,项目名称:TS3-GW2-plugin,代码行数:8,代码来源:plugin.cpp

示例3: switch

void RingworldDemoGame::processEvent(Event &event) {
	if (event.eventType == EVENT_KEYPRESS) {
		switch (event.kbd.keycode) {
		case Common::KEYCODE_F1:
			// F1 - Help
			MessageDialog::show(DEMO_HELP_MSG, OK_BTN_STRING);
			break;

		case Common::KEYCODE_F2: {
			// F2 - Sound Options
			ConfigDialog *dlg = new ConfigDialog();
			dlg->runModal();
			delete dlg;
			g_globals->_soundManager.syncSounds();
			g_globals->_events.setCursorFromFlag();
			break;
		}

		case Common::KEYCODE_F3:
			// F3 - Quit
			quitGame();
			event.handled = false;
			break;

		default:
			break;
		}
	} else if (event.eventType == EVENT_BUTTON_DOWN) {
		pauseGame();
		event.handled = true;
	}
}
开发者ID:CatalystG,项目名称:scummvm,代码行数:32,代码来源:ringworld_demo.cpp

示例4: ConfigDialog

void MainWindow::showOptions()
{
    ConfigDialog *options = new ConfigDialog();
#ifdef SG_GLOBAL_SHORTCUTS
    globalShortcutBlock(true);
#endif

    if (isMinimized())
    {
        showNormal();
        if (options->exec() == QDialog::Accepted)
            updateUI();
        hideToShot();
    }
    else
    {
        if (options->exec() == QDialog::Accepted)
            updateUI();
    }

#ifdef SG_GLOBAL_SHORTCUTS
    globalShortcutBlock(false);
#endif
    delete options;
}
开发者ID:DOOMer,项目名称:screengrab,代码行数:25,代码来源:mainwindow.cpp

示例5: ConfigDialog

void SoundDialog::execute() {
	ConfigDialog *dlg = new ConfigDialog();
	dlg->runModal();
	delete dlg;
	g_globals->_soundManager.syncSounds();
	g_globals->_events.setCursorFromFlag();
}
开发者ID:AReim1982,项目名称:scummvm,代码行数:7,代码来源:dialogs.cpp

示例6: main

int main(int argc, char *argv[])
{
    Q_INIT_RESOURCE(configdialog);

    QApplication app(argc, argv);
    ConfigDialog dialog;
    return dialog.exec();
}
开发者ID:AtlantisCD9,项目名称:Qt,代码行数:8,代码来源:main.cpp

示例7: openSettingsWindow

void MainWindow::openSettingsWindow()
{
    this->hide();
    ConfigDialog dialog;
    dialog.exec();
    this->show();
    this->loadPref();
}
开发者ID:supermarah,项目名称:Penguin-Subtitle-Player,代码行数:8,代码来源:mainwindow.cpp

示例8: itemDoubleClicked

void MainWindow::itemDoubleClicked(QModelIndex index)
{
    //QMessageBox::information(this, "Hi", "Clicked " + index.data().toString());
    ConfigDialog * dialog = new ConfigDialog;
    dialog->show();

    connect(dialog, SIGNAL(sendItemDeleted()), this, SLOT(receiveItemDeleted()));
    connect(dialog, SIGNAL(sendItemUpdated(QBrush)), this, SLOT(receiveItemUpdated(QBrush)));
}
开发者ID:WalterTrippel,项目名称:GraphicEditor,代码行数:9,代码来源:mainwindow.cpp

示例9: ConfigDialog

void soundKonverter::showConfigDialog()
{
    ConfigDialog *dialog = new ConfigDialog( config, this/*, ConfigDialog::Page(configStartPage)*/ );
    connect( dialog, SIGNAL(updateFileList()), m_view, SLOT(updateFileList()) );

    dialog->resize( size() );
    dialog->exec();

    delete dialog;
}
开发者ID:EQ4,项目名称:soundkonverter,代码行数:10,代码来源:soundkonverter.cpp

示例10: ConfigDialog

void Klipper::slotConfigure()
{
    if (KConfigDialog::showDialog("preferences")) {
        return;
    }

    ConfigDialog *dlg = new ConfigDialog( 0, KlipperSettings::self(), this, m_collection, isApplet() );
    connect(dlg, SIGNAL(settingsChanged(QString)), SLOT(loadSettings()));

    dlg->show();
}
开发者ID:mgottschlag,项目名称:kwin-tiling,代码行数:11,代码来源:klipper.cpp

示例11: ConfigDialog

void KueueApp::openConfig()
{
    ConfigDialog* c = new ConfigDialog( mWindow );
    
    connect( c, SIGNAL( settingsChanged() ), 
             this, SLOT( settingsChanged() ) );
    
    c->exec();

    delete c;
}
开发者ID:bochi,项目名称:kueue,代码行数:11,代码来源:kueueapp.cpp

示例12: ConfigDialog

void MainWindow::preferences()
{
    if (ConfigDialog::isShown()) {
        return;
    }

    ConfigDialog* dlg = new ConfigDialog(this);
    connect(dlg, &ConfigDialog::settingsChanged,
            this, &MainWindow::settingsChanged);
    dlg->show();
}
开发者ID:KDE,项目名称:massif-visualizer,代码行数:11,代码来源:mainwindow.cpp

示例13: ConfigDialog

void MainWindow::configDialog()
{
    if(this->visitorMode == true)
    {
        QMessageBox::warning(this, QString::fromLocal8Bit("失败"), QString::fromLocal8Bit("游客身份无法修改配置文件"));
        return;
    }
    ConfigDialog *configDialog = new ConfigDialog(this);
    configDialog->setDefaultInfo(this->configInfo);
    connect(configDialog, &ConfigDialog::configChanged, this, &MainWindow::setConfig);
    configDialog->exec();
}
开发者ID:luyiming,项目名称:TicketManagementSystem,代码行数:12,代码来源:mainwindow.cpp

示例14: onPreferencesPressed

void MainWindow::onPreferencesPressed()
{
	ConfigDialog configdialog;
	if (configdialog.exec()) {
		util::Config::instance().save("data/config.xml");
		MessageDialog("The configuration has been saved.", "You should restart the program in order to activate the changes.",
				gui::MessageDialog::QINFO);
	} else {
		util::Config::instance().destroy();
		util::Config::instance().load("data/config.xml");
	}
}
开发者ID:MarkusH,项目名称:dominator,代码行数:12,代码来源:mainwindow.cpp

示例15: rendererChanged

void ConfigDialog::rendererChanged (GtkComboBox *widget, gpointer data)
{
    ConfigDialog *This = static_cast<ConfigDialog *> (data);

    gchar *renderer = gtk_combo_box_get_active_text (widget);

    const RenderSystemList &renderers = Root::getSingleton ().getAvailableRenderers ();
    for (RenderSystemList::const_iterator r = renderers.begin(); r != renderers.end (); r++)
        if (strcmp (renderer, (*r)->getName ().c_str ()) == 0)
        {
            This->mSelectedRenderSystem = *r;
	    This->setupRendererParams ();
        }
}
开发者ID:Ali-il,项目名称:gamekit,代码行数:14,代码来源:OgreConfigDialog.cpp


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