|
MythTV
0.26-pre
|
An editor screen that allows manipulation of raw settings values. More...
#include <rawsettingseditor.h>
Public Member Functions | |
| RawSettingsEditor (MythScreenStack *parent, const char *name=0) | |
| Raw Settings Editor constructor. | |
| ~RawSettingsEditor () | |
| Raw Settings Editor destructor. | |
| bool | Create (void) |
| Creates the UI screen. | |
| void | Load (void) |
| Loads the current values for the specified settings list. | |
| void | Init (void) |
| Initialize the settings screen with the loaded data. | |
Protected Attributes | |
| QString | m_title |
| QMap< QString, QString > | m_settings |
Private Slots | |
| void | Save (void) |
| Save editted values and clear settings cache if necessary. | |
| void | selectionChanged (MythUIButtonListItem *item) |
| Slot handler for buttonlist current item changes. | |
| void | valueChanged (void) |
| Tracks current value for a setting when the value is editted. | |
Private Member Functions | |
| void | updatePrevNextTexts (void) |
| Updates previous and next text areas. | |
Private Attributes | |
| MythUIButtonList * | m_settingsList |
| MythUITextEdit * | m_settingValue |
| MythUIButton * | m_saveButton |
| MythUIButton * | m_cancelButton |
| MythUIText * | m_textLabel |
| QHash< int, MythUIText * > | m_prevNextTexts |
| QHash< int, MythUIShape * > | m_prevNextShapes |
| QHash< QString, QString > | m_origValues |
| QHash< QString, QString > | m_settingValues |
An editor screen that allows manipulation of raw settings values.
This class is a base to build on. It is not meant to be used directly. Any inheritting class must set the title and list of settings names in its constructor.
Definition at line 28 of file rawsettingseditor.h.
| RawSettingsEditor::RawSettingsEditor | ( | MythScreenStack * | parent, |
| const char * | name = 0 |
||
| ) |
Raw Settings Editor constructor.
Initializes necessary variables.
| parent | Parent screen stack for this window |
| name | Name of this window |
Definition at line 19 of file rawsettingseditor.cpp.
Raw Settings Editor destructor.
Definition at line 34 of file rawsettingseditor.cpp.
| bool RawSettingsEditor::Create | ( | void | ) | [virtual] |
Creates the UI screen.
Reimplemented from MythScreenType.
Definition at line 41 of file rawsettingseditor.cpp.
Referenced by main(), SetupMenuCallback(), and TVMenuCallback().
| void RawSettingsEditor::Load | ( | void | ) | [virtual] |
Loads the current values for the specified settings list.
Reimplemented from MythScreenType.
Definition at line 97 of file rawsettingseditor.cpp.
| void RawSettingsEditor::Init | ( | void | ) | [virtual] |
Initialize the settings screen with the loaded data.
Reimplemented from MythScreenType.
Definition at line 120 of file rawsettingseditor.cpp.
| void RawSettingsEditor::Save | ( | void | ) | [private, slot] |
Save editted values and clear settings cache if necessary.
Definition at line 146 of file rawsettingseditor.cpp.
Referenced by Create().
| void RawSettingsEditor::selectionChanged | ( | MythUIButtonListItem * | item | ) | [private, slot] |
Slot handler for buttonlist current item changes.
Updates the text edit area with the current value of the setting that is currently selected in the button list.
| item | The currently selected item in the buttonlist |
Definition at line 178 of file rawsettingseditor.cpp.
Referenced by Create().
| void RawSettingsEditor::valueChanged | ( | void | ) | [private, slot] |
Tracks current value for a setting when the value is editted.
Updates the local in-memory settings value cache when the value for a setting in the list is updated.
Definition at line 235 of file rawsettingseditor.cpp.
Referenced by Create().
| void RawSettingsEditor::updatePrevNextTexts | ( | void | ) | [private] |
Updates previous and next text areas.
Updates previous and next text areas to show values of other non-current settings in the button list.
Definition at line 195 of file rawsettingseditor.cpp.
Referenced by Init(), and selectionChanged().
QString RawSettingsEditor::m_title [protected] |
Definition at line 54 of file rawsettingseditor.h.
Referenced by Create(), ExpertSettingsEditor::ExpertSettingsEditor(), and MythSystemEventEditor::MythSystemEventEditor().
QMap<QString, QString> RawSettingsEditor::m_settings [protected] |
Definition at line 55 of file rawsettingseditor.h.
Referenced by ExpertSettingsEditor::ExpertSettingsEditor(), Init(), Load(), and MythSystemEventEditor::MythSystemEventEditor().
Definition at line 62 of file rawsettingseditor.h.
Referenced by Create(), Init(), updatePrevNextTexts(), and valueChanged().
MythUITextEdit* RawSettingsEditor::m_settingValue [private] |
Definition at line 63 of file rawsettingseditor.h.
Referenced by Create(), selectionChanged(), and valueChanged().
MythUIButton* RawSettingsEditor::m_saveButton [private] |
Definition at line 65 of file rawsettingseditor.h.
Referenced by Create().
MythUIButton* RawSettingsEditor::m_cancelButton [private] |
Definition at line 66 of file rawsettingseditor.h.
Referenced by Create().
MythUIText* RawSettingsEditor::m_textLabel [private] |
Definition at line 68 of file rawsettingseditor.h.
Referenced by Create(), Init(), and selectionChanged().
QHash<int, MythUIText*> RawSettingsEditor::m_prevNextTexts [private] |
Definition at line 71 of file rawsettingseditor.h.
Referenced by Create(), and updatePrevNextTexts().
QHash<int, MythUIShape*> RawSettingsEditor::m_prevNextShapes [private] |
Definition at line 72 of file rawsettingseditor.h.
Referenced by Create(), and updatePrevNextTexts().
QHash<QString, QString> RawSettingsEditor::m_origValues [private] |
Definition at line 75 of file rawsettingseditor.h.
QHash<QString, QString> RawSettingsEditor::m_settingValues [private] |
Definition at line 76 of file rawsettingseditor.h.
Referenced by Load(), Save(), selectionChanged(), updatePrevNextTexts(), and valueChanged().
1.7.6.1