UniversalIndentGUI 1.2.0
|
Displays a dialog window with settings for UniversalIndentGUI. More...
#include <UiGuiSettingsDialog.h>
Public Slots | |
int | showDialog () |
Displays the dialog by calling the dialogs exec function. | |
Public Member Functions | |
UiGuiSettingsDialog (QWidget *parent, QSharedPointer< UiGuiSettings > settings) | |
The constructor calls the setup function for the ui created by uic. | |
Private Slots | |
void | writeWidgetValuesToSettings () |
This slot is called when the dialog box is closed by pressing the Ok button. | |
Private Member Functions | |
void | changeEvent (QEvent *event) |
Catches language change events and retranslates all needed widgets. | |
void | initTranslationSelection () |
By calling this function the combobox for selecting the application language will be initialized. | |
Private Attributes | |
QSharedPointer< UiGuiSettings > | _settings |
Ui::SettingsDialog * | _settingsDialogForm |
Displays a dialog window with settings for UniversalIndentGUI.
Definition at line 32 of file UiGuiSettingsDialog.h.
UiGuiSettingsDialog::UiGuiSettingsDialog | ( | QWidget * | parent, |
QSharedPointer< UiGuiSettings > | settings | ||
) |
The constructor calls the setup function for the ui created by uic.
Definition at line 34 of file UiGuiSettingsDialog.cpp.
References _settings, _settingsDialogForm, initTranslationSelection(), and writeWidgetValuesToSettings().
void UiGuiSettingsDialog::changeEvent | ( | QEvent * | event | ) | [private] |
Catches language change events and retranslates all needed widgets.
Definition at line 124 of file UiGuiSettingsDialog.cpp.
References _settings, and _settingsDialogForm.
void UiGuiSettingsDialog::initTranslationSelection | ( | ) | [private] |
By calling this function the combobox for selecting the application language will be initialized.
Also the translation itself will be reinitialized.
Definition at line 60 of file UiGuiSettingsDialog.cpp.
References _settings, and _settingsDialogForm.
Referenced by UiGuiSettingsDialog().
int UiGuiSettingsDialog::showDialog | ( | ) | [slot] |
Displays the dialog by calling the dialogs exec function.
Before it gets all the values needed from the UiGuiSettings object.
Definition at line 101 of file UiGuiSettingsDialog.cpp.
References _settings.
void UiGuiSettingsDialog::writeWidgetValuesToSettings | ( | ) | [private, slot] |
This slot is called when the dialog box is closed by pressing the Ok button.
Writes all settings to the UiGuiSettings object.
Definition at line 115 of file UiGuiSettingsDialog.cpp.
References _settings.
Referenced by UiGuiSettingsDialog().
QSharedPointer<UiGuiSettings> UiGuiSettingsDialog::_settings [private] |
Definition at line 51 of file UiGuiSettingsDialog.h.
Referenced by changeEvent(), initTranslationSelection(), showDialog(), UiGuiSettingsDialog(), and writeWidgetValuesToSettings().
Ui::SettingsDialog* UiGuiSettingsDialog::_settingsDialogForm [private] |
Definition at line 46 of file UiGuiSettingsDialog.h.
Referenced by changeEvent(), initTranslationSelection(), and UiGuiSettingsDialog().