UniversalIndentGUI 1.2.0
Public Slots | Public Member Functions | Private Slots | Private Member Functions | Private Attributes
UiGuiSettingsDialog Class Reference

Displays a dialog window with settings for UniversalIndentGUI. More...

#include <UiGuiSettingsDialog.h>

Inheritance diagram for UiGuiSettingsDialog:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

Displays a dialog window with settings for UniversalIndentGUI.

Definition at line 32 of file UiGuiSettingsDialog.h.


Constructor & Destructor Documentation

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().

Here is the call graph for this function:


Member Function Documentation

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:


Member Data Documentation

QSharedPointer<UiGuiSettings> UiGuiSettingsDialog::_settings [private]
Ui::SettingsDialog* UiGuiSettingsDialog::_settingsDialogForm [private]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines