void SystemTrayIcon::openPreferencesWindow()
{
    PreferencesDialog prefDialog(NULL, Qt::Dialog, &uploaders, activeUploader);
    connect(&prefDialog, SIGNAL(openDashboardPressed()), this, SLOT(openDashboard()));
    connect(&prefDialog, SIGNAL(pluginsChanged(QList<QString>,QList<QString>)), this, SLOT(reloadPlugins(QList<QString>,QList<QString>)));
    prefDialog.exec();
    disconnect(&prefDialog, SIGNAL(openDashboardPressed()), this, SLOT(openDashboard()));
    disconnect(&prefDialog, SIGNAL(pluginsChanged(QList<QString>,QList<QString>)), this, SLOT(reloadPlugins(QList<QString>,QList<QString>)));
    //Update the sytray icon, menus and shortcuts
    loadSettings();
    setAppProxy();
    updateGlobalShortcuts();
    updateSystrayMenu();
}
예제 #2
0
void CodeEditor::OnOptionsSelected(wxRibbonButtonBarEvent& evt)
{
    wxSTEditorPrefPageData editorData(textEditor->GetEditorPrefs(),
                                      textEditor->GetEditorStyles(),
                                      textEditor->GetEditorLangs(),
                                      textEditor->GetLanguageId(),
                                      textEditor);

    wxSTEditorPrefDialog prefDialog(editorData, this, wxID_ANY, _("Editor Preferences"),
                                    wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER);

    prefDialog.ShowModal();

    textEditor->GetOptions().SaveConfig(*wxConfigBase::Get());
}
예제 #3
0
void MainWindow::preferencesSlot()
{
	PreferencesDialog prefDialog(mServices->view(), mServices->patient(), this);
	prefDialog.exec();
}
예제 #4
0
void MainWindow::preferencesSlot()
{
	PreferencesDialog prefDialog(mServices->visualizationService, mServices->patientModelService, this);
	prefDialog.exec();
}