10 #include <QPushButton>
18 return QCoreApplication::applicationName().append(
":PythonRuntime.Editor");
30 Ui_EditorSettings::setupUi(
this);
39 return this->fontSizeSpinBox->value();
44 return m_shouldHighlightCurrentLine;
57 m_shouldHighlightCurrentLine = highlightCurrentLineCheckBox->isChecked();
59 QSettings savedSettings(QCoreApplication::organizationName(),
SettingsScopeName());
80 highlightCurrentLineCheckBox->setChecked(m_shouldHighlightCurrentLine);
81 colorSchemeComboBox->setCurrentText(m_colorScheme.
name());
86 const QSettings savedSettings(QCoreApplication::organizationName(),
SettingsScopeName());
98 m_shouldHighlightCurrentLine = value.toBool();
106 connect(buttonBox->button(QDialogButtonBox::Apply),
107 &QPushButton::clicked,
static const auto COLOR_SCHEME_SETTINGS_KEY
static QString SettingsScopeName()
static const auto SHOULD_HIGHLIGHT_SETTINGS_KEY
ColorScheme to be used by the PythonHighlighter & Editor.
const QString & name() const
The name of the color scheme.
static const Vector & AvailableColorSchemes()
Returns the vector of available color schemes.
static const ColorScheme * ColorSchemeByName(const QString &name)
const ColorScheme & colorScheme() const
void saveChangesAndClose()
bool shouldHighlightCurrentLine() const
void connectSignals() const
void setFormValuesToCurrentValues() const