MythTV  master
standardsettings.h
Go to the documentation of this file.
1 #ifndef STANDARDSETTINGS_H_
2 #define STANDARDSETTINGS_H_
3 
4 #include <initializer_list>
5 #include <utility>
6 
7 #include <QMap>
8 #include <QObject>
9 
10 #include "mythexp.h"
11 #include "mythuibuttonlist.h"
12 #include "mythdialogbox.h"
13 #include "mythstorage.h"
14 
15 class StandardSetting;
16 
17 class MythUIButtonListItemSetting : public QObject, public MythUIButtonListItem
18 {
19  Q_OBJECT
20 
21  public:
22  MythUIButtonListItemSetting (MythUIButtonList *lbtype, const QString &text)
23  : MythUIButtonListItem(lbtype, text) {}
24 
25  public slots:
26  void ShouldUpdate(StandardSetting *setting);
27 };
28 
29 class MPUBLIC StandardSetting : public QObject, public StorageUser
30 {
31  Q_OBJECT
32 
33  public:
34  virtual void setLabel(QString str) { m_label = std::move(str); }
35  QString getLabel(void) const { return m_label; }
36 
37  virtual void setHelpText(const QString &str) { m_helptext = str; emit helpTextChanged(m_helptext); }
38  QString getHelpText(void) const { return m_helptext; }
39 
40  virtual void setName(const QString &name);
41  QString getName(void) const { return m_name; }
42  StandardSetting * byName(const QString &name);
43 
44  bool isVisible(void) const { return m_visible; }
45  bool isEnabled() const { return m_enabled; }
46  bool isReadOnly() const { return m_readonly; }
47  bool haveChanged();
48  void setChanged(bool changed);
49  StandardSetting *getParent() const {return m_parent;}
50 
51  // Gets
52  virtual QString getValue(void) const {return m_settingValue;}
53 
54  virtual void updateButton(MythUIButtonListItem *item);
55 
56  // StorageUser
57  void SetDBValue(const QString &val) override { setValue(val); } // StorageUser
58  QString GetDBValue(void) const override { return getValue(); } // StorageUser
59 
60  MythUIButtonListItem *createButton(MythUIButtonList *list);
61 
62  //subsettings
63  virtual void addChild(StandardSetting *child);
64  virtual void removeChild(StandardSetting *child);
65  virtual QList<StandardSetting *> *getSubSettings();
66  virtual bool haveSubSettings();
67  virtual void clearSettings();
68  void clearTargetedSettings(const QString &value);
69 
70  virtual void edit(MythScreenType *screen) = 0;
71  virtual void resultEdit(DialogCompletionEvent *dce) = 0;
72 
73  virtual void Load(void);
74  virtual void Save(void);
75 
76  virtual void Open(void) {}
77  virtual void Close(void) {}
78 
79  Storage *GetStorage(void) const { return m_storage; }
80 
81  void addTargetedChild(const QString &value, StandardSetting *setting);
82  void addTargetedChildren(const QString &value,
83  std::initializer_list<StandardSetting *> settings);
84  void removeTargetedChild(const QString &value, StandardSetting *child);
85 
86  virtual bool keyPressEvent(QKeyEvent *event);
87 
88  void MoveToThread(QThread *thread);
89 
90  public slots:
91  virtual void setEnabled(bool enabled);
92  virtual void setReadOnly(bool readonly);
93  void setVisible(bool visible);
94  virtual void setValue(const QString &newValue);
95  virtual void setValue(int newValue);
96  virtual void childChanged(StandardSetting */*child*/) {}
97 
98  signals:
99  void valueChanged(const QString &newValue);
102  void settingsChanged(StandardSetting *selectedSetting = nullptr);
103  void ChangeSaved();
104  void helpTextChanged(const QString &newValue);
105 
106  protected:
107  explicit StandardSetting(Storage *_storage = nullptr)
108  : m_storage(_storage) {}
109  ~StandardSetting() override;
110  void setParent(StandardSetting *parent);
111  QString m_settingValue;
112  bool m_enabled {true};
113  bool m_readonly {false};
114  QString m_label;
115  QString m_helptext;
116  QString m_name;
117  bool m_visible {true};
118 
119  private:
120  bool m_haveChanged {false};
121  Storage *m_storage {nullptr};
122  StandardSetting *m_parent {nullptr};
123  QList<StandardSetting *> m_children;
124  QMap<QString, QList<StandardSetting *> > m_targets;
125 };
126 
128 {
129  public:
130  AutoIncrementSetting(QString _table, QString _column);
131 
132  void Save(void) override; // StandardSetting
133  void edit(MythScreenType * /*screen*/) override { } // StandardSetting
134  void resultEdit(DialogCompletionEvent * /*dce*/) override { } // StandardSetting
135 
136  protected:
137  QString m_table;
138  QString m_column;
139 };
140 
141 /*******************************************************************************
142 * TextEdit Setting *
143 *******************************************************************************/
144 
145 
147 {
148  public:
149  void resultEdit(DialogCompletionEvent *dce) override; // StandardSetting
150  void edit(MythScreenType *screen) override; // StandardSetting
151  void updateButton(MythUIButtonListItem *item) override; // StandardSetting
152  void SetPasswordEcho(bool b);
153 
154  protected:
155  explicit MythUITextEditSetting(Storage *_storage = nullptr)
156  : StandardSetting(_storage) {}
157  bool m_passwordEcho {false};
158 };
159 
160 
162 {
163  public:
164  TransTextEditSetting() = default;
165 };
166 
167 
169 {
170  public:
171  explicit HostTextEditSetting(const QString &name) :
172  MythUITextEditSetting(new HostDBStorage(this, name)) { }
173 };
174 
176 {
177  public:
178  explicit GlobalTextEditSetting(const QString &name) :
179  MythUITextEditSetting(new GlobalDBStorage(this, name)) { }
180 };
181 
182 /*******************************************************************************
183 * Directory Setting *
184 *******************************************************************************/
185 
186 
188 {
189  public:
190  void resultEdit(DialogCompletionEvent *dce) override; // StandardSetting
191  void edit(MythScreenType *screen) override; // StandardSetting
192  void updateButton(MythUIButtonListItem *item) override; // StandardSetting
193  void SetTypeFilter(QDir::Filters filter) { m_typeFilter = filter; };
194  void SetNameFilter(QStringList filter) { m_nameFilter = std::move(filter); };
195 
196  protected:
197  explicit MythUIFileBrowserSetting(Storage *_storage)
198  : StandardSetting(_storage) {}
199  QDir::Filters m_typeFilter {QDir::AllDirs | QDir::Drives |
200  QDir::Files | QDir::Readable |
201  QDir::Writable | QDir::Executable};
202  QStringList m_nameFilter {"*"};
203 };
204 
205 
207 {
208  public:
209  explicit HostFileBrowserSetting(const QString &name) :
210  MythUIFileBrowserSetting(new HostDBStorage(this, name)) { }
211 };
212 
213 
214 /*******************************************************************************
215 * ComboBox Setting *
216 *******************************************************************************/
217 //TODO implement rw=true
219 {
220  Q_OBJECT
221  public:
222  void setValue(int value) override; // StandardSetting
223  int getValueIndex(const QString &value) const;
224  QString getValueLabel(void) const;
225  void resultEdit(DialogCompletionEvent *dce) override; // StandardSetting
226  void edit(MythScreenType *screen) override; // StandardSetting
227  void addSelection(const QString &label, QString value = QString(),
228  bool select = false);
229  void clearSelections();
230  void fillSelectionsFromDir(const QDir &dir, bool absPath = true);
231  void updateButton(MythUIButtonListItem *item) override; // StandardSetting
232  virtual int size(void) const;
233 
234  public slots:
235  void setValue(const QString &newValue) override; // StandardSetting
236 
237  protected:
245  explicit MythUIComboBoxSetting(Storage *_storage = nullptr, bool rw = false)
246  : StandardSetting(_storage), m_rewrite(rw) {}
247  ~MythUIComboBoxSetting() override;
248  QVector<QString> m_labels;
249  QVector<QString> m_values;
250 
251  private:
252  bool m_rewrite;
253  bool m_isSet {false};
254 
255 };
256 
258 {
259  public:
260  explicit HostComboBoxSetting(const QString &name, bool rw = false) :
261  MythUIComboBoxSetting(new HostDBStorage(this, name), rw) { }
262 };
263 
264 
266 {
267  public:
268  explicit GlobalComboBoxSetting(const QString &name, bool rw = false) :
269  MythUIComboBoxSetting(new GlobalDBStorage(this, name), rw) { }
270 };
271 
273 {
274  public:
275  explicit TransMythUIComboBoxSetting(bool rw = false) :
276  MythUIComboBoxSetting(nullptr, rw) { }
277 };
278 
280 {
281  public:
282  explicit HostTimeBoxSetting(const QString &name,
283  const QString &defaultTime = "00:00",
284  const int interval = 1) :
286  {
287  for (int hour = 0; hour < 24; hour++)
288  {
289  for (int minute = 0; minute < 60; minute += interval)
290  {
291  QString timeStr = QString("%1:%2")
292  .arg(hour, 2,10,QChar('0'))
293  .arg(minute,2,10,QChar('0'));
294  addSelection(timeStr, timeStr,
295  timeStr == defaultTime);
296  }
297  }
298  }
299 };
300 
302 {
303  public:
304  explicit GlobalTimeBoxSetting(const QString &name,
305  const QString &defaultTime = "00:00",
306  const int interval = 1) :
308  {
309  for (int hour = 0; hour < 24; hour++)
310  {
311  for (int minute = 0; minute < 60; minute += interval)
312  {
313  QString timeStr = QString("%1:%2")
314  .arg(hour, 2,10,QChar('0'))
315  .arg(minute,2,10,QChar('0'));
316  addSelection(timeStr, timeStr,
317  timeStr == defaultTime);
318  }
319  }
320  }
321 };
322 
323 /*******************************************************************************
324 * SpinBox Setting *
325 *******************************************************************************/
326 
327 
329 {
330  public:
331  //void setValue(int value);
332  int intValue();
333  void resultEdit(DialogCompletionEvent *dce) override; // StandardSetting
334  void edit(MythScreenType *screen) override; // StandardSetting
335  void updateButton(MythUIButtonListItem *item) override; // StandardSetting
336 
337  protected:
338  // MythUISpinBoxSetting(Storage *_storage, int min, int max, int step,
339  // bool allow_single_step = false,
340  // const QString &special_value_text = QString());
341 
342  MythUISpinBoxSetting(Storage *_storage, int min, int max, int step,
343  int pageMultiple = 8,
344  QString special_value_text = QString());
345  private:
346  int m_min;
347  int m_max;
348  int m_step;
351 };
352 
354 {
355  public:
356  TransMythUISpinBoxSetting(int min, int max, int step,
357  int pageMultiple = 5,
358  const QString &special_value_text = QString()) :
359  MythUISpinBoxSetting(nullptr, min, max, step, pageMultiple,
360  special_value_text)
361  { }
362 };
363 
365 {
366  public:
367  HostSpinBoxSetting(const QString &name, int min, int max, int step,
368  int pageMultiple = 8,
369  const QString &special_value_text = QString()) :
370  MythUISpinBoxSetting(new HostDBStorage(this, name), min, max, step,
371  pageMultiple, special_value_text)
372  { }
373 };
374 
376 {
377  public:
378  GlobalSpinBoxSetting(const QString &name, int min, int max, int step,
379  int pageMultiple = 8,
380  const QString &special_value_text = QString()) :
381  MythUISpinBoxSetting(new GlobalDBStorage(this, name), min, max, step,
382  pageMultiple, special_value_text)
383  { }
384 };
385 
386 /*******************************************************************************
387 * CheckBox Setting *
388 *******************************************************************************/
389 
391 {
392  Q_OBJECT
393 
394  public:
395  void resultEdit(DialogCompletionEvent *dce) override; // StandardSetting
396  void edit(MythScreenType *screen) override; // StandardSetting
397  void updateButton(MythUIButtonListItem *item) override; // StandardSetting
398  void setValue(const QString &newValue) override; // StandardSetting
399  virtual void setValue(bool value);
401  bool boolValue() { return m_settingValue == "1"; }
402 
403  signals:
404  void valueChanged(bool);
405 
406  protected:
407  explicit MythUICheckBoxSetting(Storage *_storage = nullptr);
408 
409 };
410 
412 {
413  public:
415 };
416 
418 {
419  public:
420  explicit HostCheckBoxSetting(const QString &name) :
421  MythUICheckBoxSetting(new HostDBStorage(this, name)) { }
422 };
423 
425 {
426  public:
427  explicit GlobalCheckBoxSetting(const QString &name) :
428  MythUICheckBoxSetting(new GlobalDBStorage(this, name)) { }
429 };
430 
431 /*******************************************************************************
432 * Group Setting *
433 *******************************************************************************/
434 
436 {
437  Q_OBJECT
438 
439  public:
440  GroupSetting() = default;
441 
442  void edit(MythScreenType *screen) override; // StandardSetting
443  void resultEdit(DialogCompletionEvent */*dce*/) override {} // StandardSetting
444  virtual void applyChange() {}
445  void updateButton(MythUIButtonListItem *item) override; // StandardSetting
446  virtual bool canDelete(void) {return false;}
447  virtual void deleteEntry(void) {}
448 };
449 
451 {
452  Q_OBJECT
453 
454  public:
455  explicit ButtonStandardSetting(const QString &label);
456 
457  void edit(MythScreenType *screen) override; // StandardSetting
458  void resultEdit(DialogCompletionEvent */*dce*/) override {}; // StandardSetting
459 
460  signals:
461  void clicked();
462 };
463 
464 /*******************************************************************************
465 * Standard Dialog Setting *
466 *******************************************************************************/
467 
469 {
470  Q_OBJECT
471 
472  public:
473 
474  StandardSettingDialog(MythScreenStack *parent, const char *name,
475  GroupSetting *groupSettings = nullptr)
476  : MythScreenType(parent, name), m_settingsTree(groupSettings) {}
477  ~StandardSettingDialog() override;
478  bool Create(void) override; // MythScreenType
479  void customEvent(QEvent *event) override; // MythUIType
480  bool keyPressEvent(QKeyEvent *event) override; // MythScreenType
481  void ShowMenu(void) override; // MythScreenType
482  void deleteEntry(void);
483 
484  public slots:
485  void Close(void) override; // MythScreenType
486  void updateSettings(StandardSetting *selectedSetting = nullptr);
487  void editEntry(void);
488  void deleteSelected(void);
489  void deleteEntryConfirmed(bool ok);
490 
491  protected:
492  void Load(void) override; // MythScreenType
493  void Init(void) override; // MythScreenType
494  GroupSetting *GetGroupSettings(void) const;
495  MythUIButtonList *m_buttonList {nullptr};
496 
497  private slots:
498  void settingSelected(MythUIButtonListItem *item);
499  void settingClicked(MythUIButtonListItem *item);
500 
501  private:
502  void LevelUp();
503  void LevelDown();
504  void setCurrentGroupSetting(StandardSetting *groupSettings,
505  StandardSetting *selectedSetting = nullptr);
506  void Save();
507 
508  MythUIText *m_title {nullptr};
509  MythUIText *m_groupHelp {nullptr};
510  MythUIText *m_selectedSettingHelp {nullptr};
511  MythDialogBox *m_menuPopup {nullptr};
512  GroupSetting *m_settingsTree {nullptr};
513  StandardSetting *m_currentGroupSetting {nullptr};
514  bool m_loaded {false};
515 };
516 
518 
519 
520 #endif
TransMythUIComboBoxSetting::TransMythUIComboBoxSetting
TransMythUIComboBoxSetting(bool rw=false)
Definition: standardsettings.h:275
MPUBLIC
#define MPUBLIC
Definition: mythexp.h:10
StandardSetting::SetDBValue
void SetDBValue(const QString &val) override
Definition: standardsettings.h:57
AutoIncrementSetting::resultEdit
void resultEdit(DialogCompletionEvent *) override
Definition: standardsettings.h:134
HostTimeBoxSetting
Definition: standardsettings.h:280
TransMythUISpinBoxSetting::TransMythUISpinBoxSetting
TransMythUISpinBoxSetting(int min, int max, int step, int pageMultiple=5, const QString &special_value_text=QString())
Definition: standardsettings.h:356
GlobalTimeBoxSetting::GlobalTimeBoxSetting
GlobalTimeBoxSetting(const QString &name, const QString &defaultTime="00:00", const int interval=1)
Definition: standardsettings.h:304
StandardSettingDialog::StandardSettingDialog
StandardSettingDialog(MythScreenStack *parent, const char *name, GroupSetting *groupSettings=nullptr)
Definition: standardsettings.h:474
TransMythUICheckBoxSetting
Definition: standardsettings.h:412
StandardSetting::getLabel
QString getLabel(void) const
Definition: standardsettings.h:35
StandardSetting::Close
virtual void Close(void)
Definition: standardsettings.h:77
HostFileBrowserSetting::HostFileBrowserSetting
HostFileBrowserSetting(const QString &name)
Definition: standardsettings.h:209
ButtonStandardSetting::resultEdit
void resultEdit(DialogCompletionEvent *) override
Definition: standardsettings.h:458
StandardSetting::setValue
virtual void setValue(const QString &newValue)
Definition: standardsettings.cpp:169
StandardSetting::Open
virtual void Open(void)
Definition: standardsettings.h:76
false
VERBOSE_PREAMBLE false
Definition: verbosedefs.h:85
StandardSetting::StandardSetting
StandardSetting(Storage *_storage=nullptr)
Definition: standardsettings.h:107
TransMythUIComboBoxSetting
Definition: standardsettings.h:273
StandardSetting::helpTextChanged
void helpTextChanged(const QString &newValue)
MythScreenType::Close
virtual void Close()
Definition: mythscreentype.cpp:402
MythUITextEditSetting::MythUITextEditSetting
MythUITextEditSetting(Storage *_storage=nullptr)
Definition: standardsettings.h:155
TransTextEditSetting
Definition: standardsettings.h:162
MythUIComboBoxSetting::m_rewrite
bool m_rewrite
Definition: standardsettings.h:252
MythUIFileBrowserSetting::MythUIFileBrowserSetting
MythUIFileBrowserSetting(Storage *_storage)
Definition: standardsettings.h:197
ButtonStandardSetting
Definition: standardsettings.h:451
mythexp.h
HostTextEditSetting
Definition: standardsettings.h:169
StandardSetting::valueChanged
void valueChanged(StandardSetting *setting)
TransMythUISpinBoxSetting
Definition: standardsettings.h:354
StandardSetting::m_label
QString m_label
Definition: standardsettings.h:114
StandardSetting::m_settingValue
QString m_settingValue
Definition: standardsettings.h:111
mythdialogbox.h
MythScreenStack
Definition: mythscreenstack.h:16
MythScreenType::Create
virtual bool Create(void)
Definition: mythscreentype.cpp:282
MythUIType::customEvent
void customEvent(QEvent *event) override
Definition: mythuitype.cpp:984
MythUISpinBoxSetting::m_pageMultiple
int m_pageMultiple
Definition: standardsettings.h:349
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition: mythscreentype.h:45
HostDBStorage
Definition: mythstorage.h:112
GroupSetting::GroupSetting
GroupSetting()=default
StandardSetting::m_name
QString m_name
Definition: standardsettings.h:116
HostCheckBoxSetting
Definition: standardsettings.h:418
MythScreenType::Load
virtual void Load(void)
Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (S...
Definition: mythscreentype.cpp:297
mythuibuttonlist.h
MythUIComboBoxSetting::m_labels
QVector< QString > m_labels
Definition: standardsettings.h:248
AutoIncrementSetting::m_column
QString m_column
Definition: standardsettings.h:138
TransTextEditSetting::TransTextEditSetting
TransTextEditSetting()=default
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(StandardSetting *)
HostFileBrowserSetting
Definition: standardsettings.h:207
ButtonStandardSetting::clicked
void clicked()
GlobalTextEditSetting::GlobalTextEditSetting
GlobalTextEditSetting(const QString &name)
Definition: standardsettings.h:178
MythUIButtonListItem
Definition: mythuibuttonlist.h:28
StandardSetting::settingsChanged
void settingsChanged(StandardSetting *selectedSetting=nullptr)
StandardSettingDialog
Definition: standardsettings.h:469
StandardSetting::GetStorage
Storage * GetStorage(void) const
Definition: standardsettings.h:79
GlobalComboBoxSetting::GlobalComboBoxSetting
GlobalComboBoxSetting(const QString &name, bool rw=false)
Definition: standardsettings.h:268
HostCheckBoxSetting::HostCheckBoxSetting
HostCheckBoxSetting(const QString &name)
Definition: standardsettings.h:420
MythUIComboBoxSetting
Definition: standardsettings.h:219
GlobalTimeBoxSetting
Definition: standardsettings.h:302
MythUISpinBoxSetting::m_specialValueText
QString m_specialValueText
Definition: standardsettings.h:350
StandardSetting::resultEdit
virtual void resultEdit(DialogCompletionEvent *dce)=0
StandardSetting::getName
QString getName(void) const
Definition: standardsettings.h:41
MythDialogBox
Basic menu dialog, message and a list of options.
Definition: mythdialogbox.h:167
GroupSetting::deleteEntry
virtual void deleteEntry(void)
Definition: standardsettings.h:447
StandardSetting::getParent
StandardSetting * getParent() const
Definition: standardsettings.h:49
HostComboBoxSetting::HostComboBoxSetting
HostComboBoxSetting(const QString &name, bool rw=false)
Definition: standardsettings.h:260
MythUICheckBoxSetting::valueChanged
void valueChanged(bool)
TransMythUICheckBoxSetting::TransMythUICheckBoxSetting
TransMythUICheckBoxSetting()=default
StandardSetting::setHelpText
virtual void setHelpText(const QString &str)
Definition: standardsettings.h:37
StandardSetting::Save
virtual void Save(void)
Definition: standardsettings.cpp:233
StandardSetting::m_targets
QMap< QString, QList< StandardSetting * > > m_targets
Definition: standardsettings.h:124
StandardSetting::getValue
virtual QString getValue(void) const
Definition: standardsettings.h:52
MythScreenType::Init
virtual void Init(void)
Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in...
Definition: mythscreentype.cpp:397
GlobalSpinBoxSetting::GlobalSpinBoxSetting
GlobalSpinBoxSetting(const QString &name, int min, int max, int step, int pageMultiple=8, const QString &special_value_text=QString())
Definition: standardsettings.h:378
MythUISpinBoxSetting::m_min
int m_min
Definition: standardsettings.h:346
GlobalDBStorage
Definition: mythstorage.h:127
StandardSetting::ShouldRedraw
void ShouldRedraw(StandardSetting *setting)
GlobalCheckBoxSetting::GlobalCheckBoxSetting
GlobalCheckBoxSetting(const QString &name)
Definition: standardsettings.h:427
AutoIncrementSetting
Definition: standardsettings.h:128
MythUIFileBrowserSetting::SetTypeFilter
void SetTypeFilter(QDir::Filters filter)
Definition: standardsettings.h:193
StandardSetting::setLabel
virtual void setLabel(QString str)
Definition: standardsettings.h:34
GroupSetting::canDelete
virtual bool canDelete(void)
Definition: standardsettings.h:446
StandardSetting::GetDBValue
QString GetDBValue(void) const override
Definition: standardsettings.h:58
GlobalTextEditSetting
Definition: standardsettings.h:176
GroupSetting::resultEdit
void resultEdit(DialogCompletionEvent *) override
Definition: standardsettings.h:443
StandardSetting::valueChanged
void valueChanged(const QString &newValue)
HostSpinBoxSetting
Definition: standardsettings.h:365
MythUIComboBoxSetting::addSelection
void addSelection(const QString &label, QString value=QString(), bool select=false)
Definition: standardsettings.cpp:494
GlobalSpinBoxSetting
Definition: standardsettings.h:376
MythUIText
All purpose text widget, displays a text string.
Definition: mythuitext.h:29
MythScreenType::keyPressEvent
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
Definition: mythscreentype.cpp:414
MythUITextEditSetting
Definition: standardsettings.h:147
fillSelectionsFromDir
static void fillSelectionsFromDir(const QDir &dir, AudioOutput::ADCVect *list)
Definition: audiooutput.cpp:398
MythUIFileBrowserSetting
Definition: standardsettings.h:188
GroupSetting::applyChange
virtual void applyChange()
Definition: standardsettings.h:444
dir
QDir dir
Definition: mythplugins/mytharchive/mytharchivehelper/main.cpp:1174
StandardSetting::m_helptext
QString m_helptext
Definition: standardsettings.h:115
StandardSetting::edit
virtual void edit(MythScreenType *screen)=0
GlobalComboBoxSetting
Definition: standardsettings.h:266
StandardSetting::isEnabled
bool isEnabled() const
Definition: standardsettings.h:45
HostTextEditSetting::HostTextEditSetting
HostTextEditSetting(const QString &name)
Definition: standardsettings.h:171
StandardSetting::getHelpText
QString getHelpText(void) const
Definition: standardsettings.h:38
DialogCompletionEvent
Event dispatched from MythUI modal dialogs to a listening class containing a result of some form.
Definition: mythdialogbox.h:42
StandardSetting::isVisible
bool isVisible(void) const
Definition: standardsettings.h:44
MythUIButtonListItemSetting::MythUIButtonListItemSetting
MythUIButtonListItemSetting(MythUIButtonList *lbtype, const QString &text)
Definition: standardsettings.h:22
MythUISpinBoxSetting::m_max
int m_max
Definition: standardsettings.h:347
HostComboBoxSetting
Definition: standardsettings.h:258
MythScreenType::ShowMenu
virtual void ShowMenu(void)
Definition: mythscreentype.cpp:409
MythUISpinBoxSetting
Definition: standardsettings.h:329
MythUIButtonListItemSetting
Definition: standardsettings.h:18
HostTimeBoxSetting::HostTimeBoxSetting
HostTimeBoxSetting(const QString &name, const QString &defaultTime="00:00", const int interval=1)
Definition: standardsettings.h:282
StandardSetting::ChangeSaved
void ChangeSaved()
MythUIButtonListItemSetting::ShouldUpdate
void ShouldUpdate(StandardSetting *setting)
Definition: standardsettings.cpp:16
StandardSetting::childChanged
virtual void childChanged(StandardSetting *)
Definition: standardsettings.h:96
HostSpinBoxSetting::HostSpinBoxSetting
HostSpinBoxSetting(const QString &name, int min, int max, int step, int pageMultiple=8, const QString &special_value_text=QString())
Definition: standardsettings.h:367
StandardSetting
Definition: standardsettings.h:30
GlobalCheckBoxSetting
Definition: standardsettings.h:425
MythUICheckBoxSetting
Definition: standardsettings.h:391
MythUIComboBoxSetting::MythUIComboBoxSetting
MythUIComboBoxSetting(Storage *_storage=nullptr, bool rw=false)
Create a Setting Widget to select the value from a list.
Definition: standardsettings.h:245
MythUIButtonList
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
Definition: mythuibuttonlist.h:152
mythstorage.h
StandardSetting::updateButton
virtual void updateButton(MythUIButtonListItem *item)
This method is called whenever the UI need to reflect a change Reimplement this If you widget need a ...
Definition: standardsettings.cpp:95
MythUIFileBrowserSetting::SetNameFilter
void SetNameFilter(QStringList filter)
Definition: standardsettings.h:194
Storage
Definition: mythstorage.h:24
StandardSetting::m_children
QList< StandardSetting * > m_children
Definition: standardsettings.h:123
StandardSetting::isReadOnly
bool isReadOnly() const
Definition: standardsettings.h:46
MythUIComboBoxSetting::m_values
QVector< QString > m_values
Definition: standardsettings.h:249
AutoIncrementSetting::m_table
QString m_table
Definition: standardsettings.h:137
GroupSetting
Definition: standardsettings.h:436
AutoIncrementSetting::edit
void edit(MythScreenType *) override
Definition: standardsettings.h:133
MythUISpinBoxSetting::m_step
int m_step
Definition: standardsettings.h:348
MythUICheckBoxSetting::boolValue
bool boolValue()
Definition: standardsettings.h:401
StorageUser
Definition: mythstorage.h:16