This class implements the settings for the application. More...
#include <DlgGeneralImp.h>
Public Member Functions | |
DlgGeneralImp (QWidget *parent=0) | |
Constructs a DlgGeneralImp which is a child of 'parent', with the name 'name' and widget flags set to 'f'. | |
bool | eventFilter (QObject *o, QEvent *e) |
void | loadSettings () |
void | saveSettings () |
~DlgGeneralImp () | |
Destroys the object and frees any allocated resources. | |
Protected Member Functions | |
void | changeEvent (QEvent *e) |
This class implements the settings for the application.
You can change window style, size of pixmaps, size of recent file list and so on
Definition at line 39 of file DlgGeneralImp.h.
DlgGeneralImp::DlgGeneralImp | ( | QWidget * | parent = 0 |
) |
Constructs a DlgGeneralImp 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 50 of file DlgGeneralImp.cpp.
References Gui::Dialog::Ui_DlgGeneral::AutoloadModuleCombo, Gui::Dialog::Ui_DlgGeneral::AutoloadTabCombo, Gui::DockWindowManager::getDockWindow(), Gui::DockWindowManager::instance(), Gui::Application::Instance, px, Gui::Dialog::Ui_DlgGeneral::setupUi(), Gui::Dialog::Ui_DlgGeneral::tabReportLabel, Gui::Dialog::Ui_DlgGeneral::WindowStyle, Gui::Dialog::Ui_DlgGeneral::windowStyleLabel, Gui::Application::workbenches(), Gui::Application::workbenchIcon(), and Gui::Application::workbenchMenuText().
DlgGeneralImp::~DlgGeneralImp | ( | ) |
Destroys the object and frees any allocated resources.
Definition at line 97 of file DlgGeneralImp.cpp.
void DlgGeneralImp::changeEvent | ( | QEvent * | e | ) | [protected, virtual] |
Implements Gui::Dialog::PreferencePage.
Definition at line 199 of file DlgGeneralImp.cpp.
References Gui::Dialog::Ui_DlgGeneral::Languages, and Gui::Dialog::Ui_DlgGeneral::retranslateUi().
bool DlgGeneralImp::eventFilter | ( | QObject * | o, | |
QEvent * | e | |||
) |
Definition at line 212 of file DlgGeneralImp.cpp.
References Gui::Dialog::Ui_DlgGeneral::AutoloadTabCombo.
void DlgGeneralImp::loadSettings | ( | ) | [virtual] |
Implements Gui::Dialog::PreferencePage.
Definition at line 149 of file DlgGeneralImp.cpp.
References Gui::Dialog::Ui_DlgGeneral::AutoloadModuleCombo, Gui::Dialog::Ui_DlgGeneral::AutoloadTabCombo, App::Application::Config(), App::GetApplication(), Gui::WindowParameter::getDefaultParameter(), Gui::getMainWindow(), App::Application::GetParameterGroupByPath(), Gui::Translator::instance(), Gui::Dialog::Ui_DlgGeneral::Languages, Gui::PrefWidget::onRestore(), Gui::Dialog::Ui_DlgGeneral::RecentFiles, Sketcher::start, Gui::Translator::supportedLanguages(), Gui::Dialog::Ui_DlgGeneral::toolbarIconSize, and Gui::Dialog::Ui_DlgGeneral::WindowStyle.
void DlgGeneralImp::saveSettings | ( | ) | [virtual] |
Implements Gui::Dialog::PreferencePage.
Definition at line 117 of file DlgGeneralImp.cpp.
References Gui::Translator::activateLanguage(), Gui::Dialog::Ui_DlgGeneral::AutoloadModuleCombo, Gui::Dialog::Ui_DlgGeneral::AutoloadTabCombo, App::GetApplication(), Gui::WindowParameter::getDefaultParameter(), Gui::getMainWindow(), App::Application::GetParameterGroupByPath(), Gui::Translator::instance(), Gui::Dialog::Ui_DlgGeneral::Languages, Gui::PrefWidget::onSave(), Gui::Dialog::Ui_DlgGeneral::RecentFiles, Gui::Dialog::Ui_DlgGeneral::toolbarIconSize, and Gui::Dialog::Ui_DlgGeneral::WindowStyle.