Go to the documentation of this file.
23 m_title(tr(
"Settings Editor"))
43 LOG(VB_GENERAL, LOG_EMERG,
44 "Theme is missing critical theme elements.");
56 for (
int i = -8; i <= 8; i++)
59 (
GetChild(QString(
"value%1%2").arg(i >= 0?
"+" :
"").arg(i)));
64 (
GetChild(QString(
"shape%1%2").arg(i >= 0?
"+" :
"").arg(i)));
88 QList<QString>settingsList =
m_settings.keys();
89 QList<QString>::iterator it = settingsList.begin();
94 while (it != settingsList.end())
109 QList<QString>settingsList =
m_settings.keys();
110 QList<QString>::iterator it = settingsList.begin();
112 while (it != settingsList.end())
115 QVariant::fromValue(*it));
135 bool changed =
false;
137 QHash <QString, QString>::const_iterator it =
m_settingValues.constBegin();
140 if ((!it.value().isEmpty()) ||
190 for (
int i = -8; i <= 8; i++)
194 if (((i < 0) && ((curPos + i) >= 0)) ||
195 ((i > 0) && (((recs-1) - i) >= curPos)))
void LoadInBackground(const QString &message="")
void SendMessage(const QString &message)
void updatePrevNextTexts(void)
Updates previous and next text areas.
QHash< QString, QString > m_origValues
MythUIButton * m_saveButton
QHash< QString, QString > m_settingValues
MythUIType * GetChild(const QString &name) const
Get a named child of this UIType.
QHash< int, MythUIShape * > m_prevNextShapes
void valueChanged(void)
Tracks current value for a setting when the value is editted.
bool Create(void) override
Creates the UI screen.
void Save(void)
Save editted values and clear settings cache if necessary.
A text entry and edit widget.
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
Screen in which all other widgets are contained and rendered.
QString GetText(void) const
QHash< int, MythUIText * > m_prevNextTexts
void selectionChanged(MythUIButtonListItem *item)
Slot handler for buttonlist current item changes.
void SetText(const QString &text, bool moveCursor=true)
static bool BackendIsRunning(void)
a backend process is running on this host
MythUIButtonList * m_settingsList
void BuildFocusList(void)
RawSettingsEditor(MythScreenStack *parent, const char *name=nullptr)
Raw Settings Editor constructor.
MythCoreContext * gCoreContext
This global variable contains the MythCoreContext instance for the app.
A widget for rendering primitive shapes and lines.
MythUIButton * m_cancelButton
All purpose text widget, displays a text string.
QMap< QString, QString > m_settings
static bool LoadWindowFromXML(const QString &xmlfile, const QString &windowname, MythUIType *parent)
MythUITextEdit * m_settingValue
virtual void SetText(const QString &text)
bool IsMasterHost(void)
is this the same host as the master
void SaveSetting(const QString &key, int newValue)
void Load(void) override
Loads the current values for the specified settings list.
void Init(void) override
Initialize the settings screen with the loaded data.
QString GetSetting(const QString &key, const QString &defaultval="")