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();
}
Esempio n. 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());
}
Esempio n. 3
0
void MainWindow::preferencesSlot()
{
	PreferencesDialog prefDialog(mServices->view(), mServices->patient(), this);
	prefDialog.exec();
}
Esempio n. 4
0
void MainWindow::preferencesSlot()
{
	PreferencesDialog prefDialog(mServices->visualizationService, mServices->patientModelService, this);
	prefDialog.exec();
}