MythTV  0.26-pre
Public Member Functions | Protected Attributes | Private Slots | Private Member Functions | Private Attributes
RawSettingsEditor Class Reference

An editor screen that allows manipulation of raw settings values. More...

#include <rawsettingseditor.h>

Inheritance diagram for RawSettingsEditor:
MythScreenType MythUIType XMLParseBase ExpertSettingsEditor MythSystemEventEditor

List of all members.

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

MythUIButtonListm_settingsList
MythUITextEditm_settingValue
MythUIButtonm_saveButton
MythUIButtonm_cancelButton
MythUITextm_textLabel
QHash< int, MythUIText * > m_prevNextTexts
QHash< int, MythUIShape * > m_prevNextShapes
QHash< QString, QString > m_origValues
QHash< QString, QString > m_settingValues

Detailed Description

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.


Constructor & Destructor Documentation

RawSettingsEditor::RawSettingsEditor ( MythScreenStack parent,
const char *  name = 0 
)

Raw Settings Editor constructor.

Initializes necessary variables.

Parameters:
parentParent screen stack for this window
nameName of this window

Definition at line 19 of file rawsettingseditor.cpp.

Raw Settings Editor destructor.

Definition at line 34 of file rawsettingseditor.cpp.


Member Function Documentation

Creates the UI screen.

Reimplemented from MythScreenType.

Definition at line 41 of file rawsettingseditor.cpp.

Referenced by main(), SetupMenuCallback(), and TVMenuCallback().

Loads the current values for the specified settings list.

Reimplemented from MythScreenType.

Definition at line 97 of file rawsettingseditor.cpp.

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

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.

Parameters:
itemThe 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().

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


Member Data Documentation

QString RawSettingsEditor::m_title [protected]
QMap<QString, QString> RawSettingsEditor::m_settings [protected]

Definition at line 62 of file rawsettingseditor.h.

Referenced by Create(), Init(), updatePrevNextTexts(), and valueChanged().

Definition at line 63 of file rawsettingseditor.h.

Referenced by Create(), selectionChanged(), and valueChanged().

Definition at line 65 of file rawsettingseditor.h.

Referenced by Create().

Definition at line 66 of file rawsettingseditor.h.

Referenced by Create().

Definition at line 68 of file rawsettingseditor.h.

Referenced by Create(), Init(), and selectionChanged().

Definition at line 71 of file rawsettingseditor.h.

Referenced by Create(), and updatePrevNextTexts().

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.

Referenced by Load(), and Save().

QHash<QString, QString> RawSettingsEditor::m_settingValues [private]

Definition at line 76 of file rawsettingseditor.h.

Referenced by Load(), Save(), selectionChanged(), updatePrevNextTexts(), and valueChanged().


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