本文整理汇总了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;
}
示例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();
}
示例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;
}
}
示例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;
}
示例5: ConfigDialog
void SoundDialog::execute() {
ConfigDialog *dlg = new ConfigDialog();
dlg->runModal();
delete dlg;
g_globals->_soundManager.syncSounds();
g_globals->_events.setCursorFromFlag();
}
示例6: main
int main(int argc, char *argv[])
{
Q_INIT_RESOURCE(configdialog);
QApplication app(argc, argv);
ConfigDialog dialog;
return dialog.exec();
}
示例7: openSettingsWindow
void MainWindow::openSettingsWindow()
{
this->hide();
ConfigDialog dialog;
dialog.exec();
this->show();
this->loadPref();
}
示例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)));
}
示例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;
}
示例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();
}
示例11: ConfigDialog
void KueueApp::openConfig()
{
ConfigDialog* c = new ConfigDialog( mWindow );
connect( c, SIGNAL( settingsChanged() ),
this, SLOT( settingsChanged() ) );
c->exec();
delete c;
}
示例12: ConfigDialog
void MainWindow::preferences()
{
if (ConfigDialog::isShown()) {
return;
}
ConfigDialog* dlg = new ConfigDialog(this);
connect(dlg, &ConfigDialog::settingsChanged,
this, &MainWindow::settingsChanged);
dlg->show();
}
示例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();
}
示例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");
}
}
示例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 ();
}
}