|
Updraft
1.0
Open source glider flight visualisation tool.
|
Dialog window for editing settings. More...
#include <settingsdialog.h>

Public Member Functions | |
| SettingsDialog (QWidget *parent, SettingsManager *manager) | |
| Initializes the dialog, setting its parent and most importantly the SettingsManager. | |
| ~SettingsDialog () | |
| void | setModel (QAbstractItemModel *model) |
| Sets the data model for the dialog. | |
| void | recalculateTopViewWidth () |
| Updates the width of the top view widget so that it accomodates all the group names. | |
| void | commitEditorData () |
| Commits the data of the bottom view editors to the model. | |
| void | resetEditors () |
| Reverts data of the bottom view editors to values present in the model. | |
Protected Slots | |
| void | buttonBoxClicked (QAbstractButton *button) |
| Handles the click events on all buttons of the dialog. | |
| void | hideCheckboxToggled () |
| Handles the toggle of the advanced setting group toggling check-box. | |
| void | restartNeeded (bool needed) |
| Shows/hides the label that explains the asterisk in the setting names. | |
Protected Attributes | |
| Ui::SettingsDialog * | ui |
| The pointer to the UI of this dialog. | |
| SettingsDelegate * | settingsDelegate |
| Delegate used to create the editors for all settings. | |
| SettingsManager * | settingsManager |
| The manager that was used to create this dialog. | |
Dialog window for editing settings.
Contains two views - SettingsTopView displays setting groups and SettingsBottomView displays the individual settings for a group.
| Updraft::Core::SettingsDialog::SettingsDialog | ( | QWidget * | parent, |
| SettingsManager * | manager | ||
| ) |
Initializes the dialog, setting its parent and most importantly the SettingsManager.
| parent | The QWidget parent of the dialog widget. |
| manager | The SettingsManager from which the dialog takes the data |
| void Updraft::Core::SettingsDialog::buttonBoxClicked | ( | QAbstractButton * | button | ) | [protected, slot] |
Handles the click events on all buttons of the dialog.
| button | Pointer to the button that emited the event. |
Commits the data of the bottom view editors to the model.
| void Updraft::Core::SettingsDialog::hideCheckboxToggled | ( | ) | [protected, slot] |
Handles the toggle of the advanced setting group toggling check-box.
Updates the width of the top view widget so that it accomodates all the group names.
Reverts data of the bottom view editors to values present in the model.
| void Updraft::Core::SettingsDialog::restartNeeded | ( | bool | needed | ) | [protected, slot] |
Shows/hides the label that explains the asterisk in the setting names.
| void Updraft::Core::SettingsDialog::setModel | ( | QAbstractItemModel * | model | ) |
Sets the data model for the dialog.
The dialog makes no assumptions about the specific class of the model, so even the standard Qt's data models can be used.
| model | The model to be used by this dialog |
Delegate used to create the editors for all settings.
The manager that was used to create this dialog.
Ui::SettingsDialog* Updraft::Core::SettingsDialog::ui [protected] |
The pointer to the UI of this dialog.