void MainWindow::showSettingsDialog() { settings->sync(); SettingsDialog(settings).exec(); Logger::Instance().setEnabled(settings->logging()); if (not settings->previewHighlighted()) fontPreviews()->removeTemporaryView(); }
void GameViewer::ConfigureGame(wxCommandEvent& WXUNUSED(event)) { long i = GetFirstSelected(); if (i < 0) return; Emu.CreateConfig(m_game_data[i].serial); rpcs3::config_t custom_config { fs::get_config_dir() + "data/" + m_game_data[i].serial + "/settings.ini" }; custom_config.load(); LOG_NOTICE(LOADER, "Configure: '%s'", custom_config.path().c_str()); SettingsDialog(this, &custom_config); }
NotificationIcon::NotificationIcon() { currentState = STARTING; consumptionTraffic = 0; alertWasShowed = false; p_settingsData = new ApplicationSettings(); p_settingsData ->restoreSaved(); p_settingsDialog = new FullSettingsDialog(); QObject::connect(p_settingsDialog, SIGNAL(new_settings()), this, SIGNAL(new_settings())); QAction *showSettings = new QAction("Settings", this); QAction *showAuthors = new QAction("About" , this); QAction *appExit = new QAction("Exit" , this); p_trayMenu = new QMenu(); p_trayMenu ->addAction(showSettings); p_trayMenu ->addAction(showAuthors); p_trayMenu ->addAction(appExit); QObject::connect(showSettings, SIGNAL(triggered()), this, SLOT(SettingsDialog())); QObject::connect(showAuthors , SIGNAL(triggered()), this, SLOT(about_dialog()) ); QObject::connect(appExit , SIGNAL(triggered()), this, SLOT(ApplicationExit())); p_iconImage = new QPixmap; p_iconImage->load(AttentionPath); p_toolTipText = new QString("Starting..."); p_trayIcon = new QSystemTrayIcon(this); p_trayIcon->setContextMenu(p_trayMenu); p_trayIcon->setIcon( *p_iconImage ); p_trayIcon->setToolTip( *p_toolTipText ); p_trayIcon->show(); }
void MainWindow::showSettingsDialog() { SettingsDialog(this).exec(); }
void MainFrame::Config(wxCommandEvent& WXUNUSED(event)) { SettingsDialog(this); }
void MainWindow::editSettingsPressed() { SettingsDialog(m_settings, this).exec(); }