#include <DlgEditorImp.h>
Public Member Functions | |
DlgSettingsEditorImp (QWidget *parent=0) | |
Constructs a DlgSettingsEditorImp which is a child of 'parent', with the name 'name' and widget flags set to 'f'. | |
void | loadSettings () |
void | saveSettings () |
~DlgSettingsEditorImp () | |
Destroys the object and frees any allocated resources. | |
Protected Slots | |
void | on_colorButton_changed () |
Updates the color map if a color was changed. | |
void | on_displayItems_currentItemChanged (QTreeWidgetItem *i) |
Searches for the color value corresponding to name in current editor settings ColorMap and assigns it to the color button. | |
void | on_fontFamily_activated () |
void | on_fontSize_valueChanged () |
Protected Member Functions | |
void | changeEvent (QEvent *e) |
Sets the strings of the subwidgets using the current language. |
Definition at line 40 of file DlgEditorImp.h.
DlgSettingsEditorImp::DlgSettingsEditorImp | ( | QWidget * | parent = 0 |
) |
Constructs a DlgSettingsEditorImp which is a child of 'parent', with the name 'name' and widget flags set to 'f'.
The dialog will by default be modeless, unless you set 'modal' to TRUE to construct a modal dialog.
Definition at line 56 of file DlgEditorImp.cpp.
References Gui::Dialog::DlgSettingsEditorP::colormap, Gui::Dialog::Ui_DlgEditorSettings::displayItems, Gui::Dialog::Ui_DlgEditorSettings::setupUi(), and Gui::Dialog::Ui_DlgEditorSettings::textEdit1.
DlgSettingsEditorImp::~DlgSettingsEditorImp | ( | ) |
Destroys the object and frees any allocated resources.
Definition at line 131 of file DlgEditorImp.cpp.
void DlgSettingsEditorImp::changeEvent | ( | QEvent * | e | ) | [protected, virtual] |
Sets the strings of the subwidgets using the current language.
Implements Gui::Dialog::PreferencePage.
Definition at line 228 of file DlgEditorImp.cpp.
References Gui::Dialog::DlgSettingsEditorP::colormap, Gui::Dialog::Ui_DlgEditorSettings::displayItems, and Gui::Dialog::Ui_DlgEditorSettings::retranslateUi().
void DlgSettingsEditorImp::loadSettings | ( | ) | [virtual] |
Implements Gui::Dialog::PreferencePage.
Definition at line 178 of file DlgEditorImp.cpp.
References Gui::Dialog::DlgSettingsEditorP::colormap, Gui::Dialog::Ui_DlgEditorSettings::displayItems, Gui::Dialog::Ui_DlgEditorSettings::EnableFolding, Gui::Dialog::Ui_DlgEditorSettings::EnableLineNumber, Gui::Dialog::Ui_DlgEditorSettings::fontFamily, Gui::Dialog::Ui_DlgEditorSettings::fontSize, Gui::WindowParameter::getDefaultParameter(), Gui::Dialog::Ui_DlgEditorSettings::indentSize, on_fontFamily_activated(), Gui::PrefWidget::onRestore(), Gui::Dialog::Ui_DlgEditorSettings::radioSpaces, Gui::Dialog::Ui_DlgEditorSettings::radioTabs, Gui::SyntaxHighlighter::setColor(), Gui::Dialog::Ui_DlgEditorSettings::tabSize, and Gui::Dialog::Ui_DlgEditorSettings::textEdit1.
void DlgSettingsEditorImp::on_colorButton_changed | ( | ) | [protected, slot] |
Updates the color map if a color was changed.
Definition at line 150 of file DlgEditorImp.cpp.
References Gui::ColorButton::color, Gui::Dialog::Ui_DlgEditorSettings::colorButton, Gui::Dialog::DlgSettingsEditorP::colormap, Gui::Dialog::Ui_DlgEditorSettings::displayItems, and Gui::SyntaxHighlighter::setColor().
void DlgSettingsEditorImp::on_displayItems_currentItemChanged | ( | QTreeWidgetItem * | item | ) | [protected, slot] |
Searches for the color value corresponding to name in current editor settings ColorMap and assigns it to the color button.
Definition at line 142 of file DlgEditorImp.cpp.
References Gui::Dialog::Ui_DlgEditorSettings::colorButton, Gui::Dialog::DlgSettingsEditorP::colormap, Gui::Dialog::Ui_DlgEditorSettings::displayItems, and Gui::ColorButton::setColor().
void DlgSettingsEditorImp::on_fontFamily_activated | ( | ) | [protected, slot] |
Definition at line 240 of file DlgEditorImp.cpp.
References Gui::Dialog::Ui_DlgEditorSettings::fontFamily, Gui::Dialog::Ui_DlgEditorSettings::fontSize, and Gui::Dialog::Ui_DlgEditorSettings::textEdit1.
Referenced by loadSettings(), and on_fontSize_valueChanged().
void DlgSettingsEditorImp::on_fontSize_valueChanged | ( | ) | [protected, slot] |
Definition at line 248 of file DlgEditorImp.cpp.
References on_fontFamily_activated().
void DlgSettingsEditorImp::saveSettings | ( | ) | [virtual] |
Implements Gui::Dialog::PreferencePage.
Definition at line 160 of file DlgEditorImp.cpp.
References Gui::Dialog::DlgSettingsEditorP::colormap, Gui::Dialog::Ui_DlgEditorSettings::EnableFolding, Gui::Dialog::Ui_DlgEditorSettings::EnableLineNumber, Gui::Dialog::Ui_DlgEditorSettings::fontFamily, Gui::Dialog::Ui_DlgEditorSettings::fontSize, Gui::WindowParameter::getDefaultParameter(), Gui::Dialog::Ui_DlgEditorSettings::indentSize, Gui::PrefWidget::onSave(), Gui::Dialog::Ui_DlgEditorSettings::radioSpaces, Gui::Dialog::Ui_DlgEditorSettings::radioTabs, and Gui::Dialog::Ui_DlgEditorSettings::tabSize.