MythTV  master
mythdialogbox.h
Go to the documentation of this file.
1 #ifndef MYTHDIALOGBOX_H_
2 #define MYTHDIALOGBOX_H_
3 
4 #include <functional>
5 #include <utility>
6 
7 // Qt headers
8 #include <QDir>
9 #include <QEvent>
10 #include <QString>
11 #include <QStringList>
12 
13 // MythTV headers
18 
19 
20 class QTimer;
21 
23 class MythUIButtonList;
24 class MythUIButton;
25 class MythUITextEdit;
26 class MythUISpinBox;
27 class MythUIImage;
28 class MythUIStateType;
29 class MythMenu;
30 
31 
41 class MUI_PUBLIC DialogCompletionEvent : public QEvent
42 {
43  public:
44  DialogCompletionEvent(QString id, int result, QString text,
45  QVariant data)
46  : QEvent(kEventType),
47  m_id(std::move(id)), m_result(result),
48  m_resultText(std::move(text)),
49  m_resultData(std::move(data)) { }
50  ~DialogCompletionEvent() override;
51 
52  QString GetId() { return m_id; }
53  int GetResult() const { return m_result; }
54  QString GetResultText() { return m_resultText; }
55  QVariant GetData() { return m_resultData; }
56 
57  static Type kEventType;
58 
59  private:
60  QString m_id;
61  int m_result;
62  QString m_resultText;
63  QVariant m_resultData;
64 };
65 
66 
68 {
69  public:
70  MythMenuItem(QString text, bool checked = false, MythMenu *subMenu = nullptr) :
71  m_text(std::move(text)), m_checked(checked), m_subMenu(subMenu) { Init(); }
72  // For non-class, static class, or lambda functions.
73  MythMenuItem(QString text, const MythUICallbackNMF &slot,
74  bool checked = false, MythMenu *subMenu = nullptr) :
75  m_text(std::move(text)), m_data(QVariant::fromValue(slot)),
76  m_checked(checked), m_subMenu(subMenu) { Init(); }
77  // For class member functions.
78  MythMenuItem(QString text, MythUICallbackMF slot,
79  bool checked = false, MythMenu *subMenu = nullptr) :
80  m_text(std::move(text)), m_data(QVariant::fromValue(slot)),
81  m_checked(checked), m_subMenu(subMenu) { Init(); }
82  // For const class member functions.
83  MythMenuItem(QString text, MythUICallbackMFc slot,
84  bool checked = false, MythMenu *subMenu = nullptr) :
85  m_text(std::move(text)), m_data(QVariant::fromValue(slot)),
86  m_checked(checked), m_subMenu(subMenu) { Init(); }
87  void SetData(QVariant data) { m_data = std::move(data); }
88 
89  QString m_text;
90  QVariant m_data {0};
91  bool m_checked {false};
92  MythMenu *m_subMenu {nullptr};
93  bool m_useSlot {true};
94 
95  private:
96  void Init(void) {}
97 };
98 
100 {
101  friend class MythDialogBox;
102 
103  public:
104  MythMenu(QString text, QObject *retobject, QString resultid);
105  MythMenu(QString title, QString text, QObject *retobject, QString resultid);
106  ~MythMenu(void);
107 
108  void AddItemV(const QString &title, QVariant data = 0, MythMenu *subMenu = nullptr,
109  bool selected = false, bool checked = false);
110  void AddItem(const QString &title) { AddItemV(title); };
111  // For non-class, static class, or lambda functions.
112  void AddItem(const QString &title, const MythUICallbackNMF &slot,
113  MythMenu *subMenu = nullptr, bool selected = false,
114  bool checked = false);
115  // For class member non-const functions.
116  template <typename SLOT>
117  typename std::enable_if_t<FunctionPointerTest<SLOT>::MemberFunction>
118  AddItem(const QString &title, const SLOT &slot,
119  MythMenu *subMenu = nullptr, bool selected = false,
120  bool checked = false)
121  {
122  auto slot2 = static_cast<MythUICallbackMF>(slot);
123  auto *item = new MythMenuItem(title, slot2, checked, subMenu);
124  AddItem(item, selected, subMenu);
125  }
126  // For class member const functions.
127  template <typename SLOT>
128  typename std::enable_if_t<FunctionPointerTest<SLOT>::MemberConstFunction>
129  AddItem(const QString &title, const SLOT &slot,
130  MythMenu *subMenu = nullptr, bool selected = false,
131  bool checked = false)
132  {
133  auto slot2 = static_cast<MythUICallbackMFc>(slot);
134  auto *item = new MythMenuItem(title, slot2, checked, subMenu);
135  AddItem(item, selected, subMenu);
136  }
137 
138  void SetSelectedByTitle(const QString &title);
139  void SetSelectedByData(const QVariant& data);
140 
141  void SetParent(MythMenu *parent) { m_parentMenu = parent; }
142 
143  bool IsEmpty() { return m_menuItems.isEmpty(); }
144 
145  private:
146  void Init(void) {}
147  void AddItem(MythMenuItem *item, bool selected, MythMenu *subMenu);
148 
149  MythMenu *m_parentMenu {nullptr};
150  QString m_title;
151  QString m_text;
152  QString m_resultid;
153  QObject *m_retObject {nullptr};
154  QList<MythMenuItem*> m_menuItems;
155  int m_selectedItem {0};
156 };
157 
167 {
168  Q_OBJECT
169  public:
170  MythDialogBox(QString text,
171  MythScreenStack *parent, const char *name,
172  bool fullscreen = false, bool osd = false)
173  : MythScreenType(parent, name, false), m_fullscreen(fullscreen),
174  m_osdDialog(osd), m_text(std::move(text)) {}
175  MythDialogBox(QString title, QString text,
176  MythScreenStack *parent, const char *name,
177  bool fullscreen = false, bool osd = false)
178  : MythScreenType(parent, name, false), m_fullscreen(fullscreen),
179  m_osdDialog(osd), m_title(std::move(title)),m_text(std::move(text)) {}
180  MythDialogBox(MythMenu* menu, MythScreenStack *parent, const char *name,
181  bool fullscreen = false, bool osd = false)
182  : MythScreenType(parent, name, false), m_fullscreen(fullscreen),
183  m_osdDialog(osd), m_menu(menu), m_currentMenu(menu) {}
184  ~MythDialogBox(void) override;
185 
186  bool Create(void) override; // MythScreenType
187 
188  void SetMenuItems(MythMenu *menu);
189 
190  void SetReturnEvent(QObject *retobject, const QString &resultid);
191  void SetBackAction(const QString &text, QVariant data);
192  void SetExitAction(const QString &text, QVariant data);
193  void SetText(const QString &text);
194 
195  void AddButtonV(const QString &title, QVariant data = 0,
196  bool newMenu = false, bool setCurrent = false);
197  void AddButtonD(const QString &title, bool setCurrent) { AddButtonV(title, 0,false, setCurrent); }
198  void AddButton(const QString &title) { AddButtonV(title, 0,false, false); }
199  // For non-class, static class, or lambda functions.
200  void AddButton(const QString &title, const MythUICallbackNMF &slot,
201  bool newMenu = false, bool setCurrent = false)
202  {
203  AddButtonV(title, QVariant::fromValue(slot), newMenu, setCurrent);
204  m_useSlots = true;
205  }
206  // For class member non-const functions.
207  template <typename SLOT>
208  typename std::enable_if_t<FunctionPointerTest<SLOT>::MemberFunction>
209  AddButton(const QString &title, const SLOT &slot,
210  bool newMenu = false, bool setCurrent = false)
211  {
212  auto slot2 = static_cast<MythUICallbackMF>(slot);
213  AddButtonV(title, QVariant::fromValue(slot2), newMenu, setCurrent);
214  m_useSlots = true;
215  }
216  // For class member const functions.
217  template <typename SLOT>
218  typename std::enable_if_t<FunctionPointerTest<SLOT>::MemberConstFunction>
219  AddButton(const QString &title, const SLOT &slot,
220  bool newMenu = false, bool setCurrent = false)
221  {
222  auto slot2 = static_cast<MythUICallbackMFc>(slot);
223  AddButtonV(title, QVariant::fromValue(slot2), newMenu, setCurrent);
224  m_useSlots = true;
225  }
226 
227  bool keyPressEvent(QKeyEvent *event) override; // MythScreenType
228  bool inputMethodEvent(QInputMethodEvent *event) override;// MythScreenType
229  bool gestureEvent(MythGestureEvent *event) override; // MythScreenType
230 
231  public slots:
232  void Select(MythUIButtonListItem* item);
233 
234  signals:
235  void Selected();
236  void Closed(QString, int);
237 
238  protected:
239  void SendEvent(int res, const QString& text = "", const QVariant& data = 0);
240  void updateMenu(void);
241 
242  MythUIText *m_titlearea {nullptr};
243  MythUIText *m_textarea {nullptr};
244  MythUIButtonList *m_buttonList {nullptr};
245  QObject *m_retObject {nullptr};
246  QString m_id;
247  bool m_useSlots {false};
248 
249  bool m_fullscreen {false};
250  bool m_osdDialog {false};
251  QString m_title;
252  QString m_text;
253 
254  QString m_backtext;
255  QVariant m_backdata {0};
256  QString m_exittext;
257  QVariant m_exitdata {0};
258 
259  MythMenu *m_menu {nullptr};
260  MythMenu *m_currentMenu {nullptr};
261 };
262 
263 
273 {
274  Q_OBJECT
275 
276  public:
277  MythConfirmationDialog(MythScreenStack *parent, QString message,
278  bool showCancel = true)
279  : MythScreenType(parent, "mythconfirmpopup"),
280  m_message(std::move(message)), m_showCancel(showCancel) {}
281 
282  bool Create(void) override; // MythScreenType
283  void SetReturnEvent(QObject *retobject, const QString &resultid);
284  void SetData(QVariant data) { m_resultData = std::move(data); }
285  void SetMessage(const QString &message);
286 
287  bool keyPressEvent(QKeyEvent *event) override; // MythScreenType
288 
289  signals:
290  void haveResult(bool);
291 
292  private:
293  void sendResult(bool ok);
294  MythUIText *m_messageText {nullptr};
295  QString m_message;
296  bool m_showCancel {true};
297  QObject *m_retObject {nullptr};
298  QString m_id;
299  QVariant m_resultData;
300 
301  private slots:
302  void Confirm(void);
303  void Cancel();
304 };
305 
315 {
316  Q_OBJECT
317 
318  public:
319  MythTextInputDialog(MythScreenStack *parent, QString message,
320  InputFilter filter = FilterNone,
321  bool isPassword = false,
322  QString defaultValue = "")
323  : MythScreenType(parent, "mythtextinputpopup"),
324  m_message(std::move(message)), m_defaultValue(std::move(defaultValue)),
325  m_filter(filter), m_isPassword(isPassword) {}
326 
327  bool Create(void) override; // MythScreenType
328  void SetReturnEvent(QObject *retobject, const QString &resultid);
329 
330  signals:
331  void haveResult(QString);
332 
333  protected:
334  MythUITextEdit *m_textEdit {nullptr};
335  QString m_message;
336  QString m_defaultValue;
338  bool m_isPassword {false};
339  QObject *m_retObject {nullptr};
340  QString m_id;
341 
342  protected slots:
343  void sendResult();
344 };
345 
346 
356 {
357  Q_OBJECT
358 
359  public:
360  MythSpinBoxDialog(MythScreenStack *parent, QString message);
361 
362  bool Create(void) override; // MythScreenType
363  void SetReturnEvent(QObject *retobject, const QString &resultid);
364 
365  void SetRange(int low, int high, int step, uint pageMultiple=5);
366  void AddSelection(const QString& label, int value);
367  void SetValue(const QString & value);
368  void SetValue(int value);
369 
370  signals:
371  void haveResult(QString);
372 
373  protected:
374  MythUISpinBox *m_spinBox { nullptr };
375  QString m_message;
376  QString m_defaultValue;
377  QObject *m_retObject { nullptr };
378  QString m_id;
379 
380  protected slots:
381  void sendResult();
382 };
383 
384 
400 {
401  Q_OBJECT
402 
403  public:
414  QString title,
415  QStringList list,
416  bool matchAnywhere = false,
417  QString defaultValue = "")
418  : MythScreenType(parent, "mythsearchdialogpopup"),
419  m_title(std::move(title)),
420  m_defaultValue(std::move(defaultValue)),
421  m_list(std::move(list)),
422  m_matchAnywhere(matchAnywhere),
423  m_id("") {};
424 
425  bool Create(void) override; // MythScreenType
426  void SetReturnEvent(QObject *retobject, const QString &resultid);
427 
428  signals:
429  void haveResult(QString);
430 
431  private:
432  MythUIButtonList *m_itemList { nullptr };
433  MythUITextEdit *m_textEdit { nullptr };
434  MythUIText *m_titleText { nullptr };
435  MythUIText *m_matchesText { nullptr };
436 
437  QString m_title;
438  QString m_defaultValue;
439  QStringList m_list;
440  bool m_matchAnywhere { false };
441 
442  QObject *m_retObject { nullptr };
443  QString m_id;
444 
445  private slots:
446  void slotSendResult(void);
447  void slotUpdateList(void);
448 };
449 
459 {
460  Q_OBJECT
461 
462  public:
463  // FIXME Not sure about this enum
465  // Date Resolution
466  kNoDate = 0x01,
467  kYear = 0x02,
468  kMonth = 0x04,
469  kDay = 0x08,
470 
471  // Time Resolution
472  kNoTime = 0x10,
473  kHours = 0x20,
474  kMinutes = 0x40,
475 
476  // Work forward/backwards or backwards and fowards from start time
477  kFutureDates = 0x100,
478  kPastDates = 0x200,
479  kAllDates = 0x300
480  };
481 
482  MythTimeInputDialog(MythScreenStack *parent, QString message,
483  int resolutionFlags,
484  QDateTime startTime = QDateTime::currentDateTime(),
485  int rangeLimit = 14);
486 
487  bool Create() override; // MythScreenType
488  void SetReturnEvent(QObject *retobject, const QString &resultid);
489 
490  signals:
491  void haveResult(QDateTime time);
492 
493  private slots:
494  void okClicked(void);
495 
496  private:
497  QString m_message;
498  QDateTime m_startTime;
501  QStringList m_list;
502  QString m_currentValue;
503 
504  MythUIButtonList *m_dateList { nullptr };
505  MythUIButtonList *m_timeList { nullptr };
506 
507  QObject *m_retObject { nullptr };
508  QString m_id;
509 };
510 
511 MUI_PUBLIC MythConfirmationDialog *ShowOkPopup(const QString &message, bool showCancel = false);
512 template <class OBJ, typename FUNC>
513 MythConfirmationDialog *ShowOkPopup(const QString &message, const OBJ *parent,
514  FUNC slot, bool showCancel = false)
515 {
516  QString LOC = "ShowOkPopup('" + message + "') - ";
517  MythScreenStack *stk = nullptr;
518 
520 
521  if (win)
522  stk = win->GetStack("popup stack");
523  else
524  {
525  LOG(VB_GENERAL, LOG_ERR, LOC + "no main window?");
526  return nullptr;
527  }
528 
529  if (!stk)
530  {
531  LOG(VB_GENERAL, LOG_ERR, LOC + "no popup stack? "
532  "Is there a MythThemeBase?");
533  return nullptr;
534  }
535 
536  auto *pop = new MythConfirmationDialog(stk, message, showCancel);
537  if (pop->Create())
538  {
539  stk->AddScreen(pop);
540  if (parent)
541  QObject::connect(pop, &MythConfirmationDialog::haveResult, parent, slot,
542  Qt::QueuedConnection);
543  }
544  else
545  {
546  delete pop;
547  pop = nullptr;
548  LOG(VB_GENERAL, LOG_ERR, LOC + "Couldn't Create() Dialog");
549  }
550 
551  return pop;
552 }
553 
556 
558 Q_DECLARE_METATYPE(const char*)
559 
560 #endif
MythMenu::m_menuItems
QList< MythMenuItem * > m_menuItems
Definition: mythdialogbox.h:154
MythDialogBox::m_id
QString m_id
Definition: mythdialogbox.h:246
MythUISearchDialog
Provide a dialog to quickly find an entry in a list.
Definition: mythdialogbox.h:399
MythDialogBox::AddButton
std::enable_if_t< FunctionPointerTest< SLOT >::MemberConstFunction > AddButton(const QString &title, const SLOT &slot, bool newMenu=false, bool setCurrent=false)
Definition: mythdialogbox.h:219
MythUISearchDialog::m_title
QString m_title
Definition: mythdialogbox.h:437
MythMenu::AddItem
std::enable_if_t< FunctionPointerTest< SLOT >::MemberConstFunction > AddItem(const QString &title, const SLOT &slot, MythMenu *subMenu=nullptr, bool selected=false, bool checked=false)
Definition: mythdialogbox.h:129
MythMenu::Init
void Init(void)
Definition: mythdialogbox.h:146
FilterNone
@ FilterNone
Definition: mythuitextedit.h:21
MythUIImage
Image widget, displays a single image or multiple images in sequence.
Definition: mythuiimage.h:97
DialogCompletionEvent::GetId
QString GetId()
Definition: mythdialogbox.h:52
MUI_PUBLIC
#define MUI_PUBLIC
Definition: mythuiexp.h:9
false
VERBOSE_PREAMBLE false
Definition: verbosedefs.h:89
MythDialogBox::MythDialogBox
MythDialogBox(QString text, MythScreenStack *parent, const char *name, bool fullscreen=false, bool osd=false)
Definition: mythdialogbox.h:170
MythTimeInputDialog::m_id
QString m_id
Definition: mythdialogbox.h:508
MythConfirmationDialog::m_resultData
QVariant m_resultData
Definition: mythdialogbox.h:299
MythMenu::AddItem
std::enable_if_t< FunctionPointerTest< SLOT >::MemberFunction > AddItem(const QString &title, const SLOT &slot, MythMenu *subMenu=nullptr, bool selected=false, bool checked=false)
Definition: mythdialogbox.h:118
MythSpinBoxDialog::m_id
QString m_id
Definition: mythdialogbox.h:378
MythConfirmationDialog::MythConfirmationDialog
MythConfirmationDialog(MythScreenStack *parent, QString message, bool showCancel=true)
Definition: mythdialogbox.h:277
MythDialogBox::MythDialogBox
MythDialogBox(QString title, QString text, MythScreenStack *parent, const char *name, bool fullscreen=false, bool osd=false)
Definition: mythdialogbox.h:175
MythTextInputDialog::m_id
QString m_id
Definition: mythdialogbox.h:340
DialogCompletionEvent::kEventType
static Type kEventType
Definition: mythdialogbox.h:57
MythMenu::AddItem
void AddItem(const QString &title)
Definition: mythdialogbox.h:110
LOC
#define LOC
Definition: audioconvert.cpp:41
MythConfirmationDialog::haveResult
void haveResult(bool)
MythScreenStack
Definition: mythscreenstack.h:16
MythScreenType::Create
virtual bool Create(void)
Definition: mythscreentype.cpp:266
MythUITextEdit
A text entry and edit widget.
Definition: mythuitextedit.h:34
MythTextInputDialog::m_message
QString m_message
Definition: mythdialogbox.h:335
MythTextInputDialog::m_defaultValue
QString m_defaultValue
Definition: mythdialogbox.h:336
LOG
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
Definition: mythlogging.h:39
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition: mythscreentype.h:45
MythSpinBoxDialog::m_defaultValue
QString m_defaultValue
Definition: mythdialogbox.h:376
InputFilter
InputFilter
Definition: mythuitextedit.h:19
MythMenu::IsEmpty
bool IsEmpty()
Definition: mythdialogbox.h:143
MythUICallbackNMF
std::function< void(void)> MythUICallbackNMF
Definition: mythuitype.h:42
MythConfirmationDialog::m_message
QString m_message
Definition: mythdialogbox.h:295
MythSpinBoxDialog::m_message
QString m_message
Definition: mythdialogbox.h:375
MythConfirmationDialog::SetData
void SetData(QVariant data)
Definition: mythdialogbox.h:284
SendEvent
static int SendEvent(const MythUtilCommandLineParser &cmdline)
Definition: backendutils.cpp:47
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(StandardSetting *)
DialogCompletionEvent::DialogCompletionEvent
DialogCompletionEvent(QString id, int result, QString text, QVariant data)
Definition: mythdialogbox.h:44
MythUIButtonListItem
Definition: mythuibuttonlist.h:41
MythUICallbackMF
void(QObject::*)(void) MythUICallbackMF
Definition: mythuitype.h:44
MythMenuItem::m_text
QString m_text
Definition: mythdialogbox.h:89
mythlogging.h
MythDialogBox::m_text
QString m_text
Definition: mythdialogbox.h:252
MythDialogBox::AddButtonD
void AddButtonD(const QString &title, bool setCurrent)
Definition: mythdialogbox.h:197
DialogCompletionEvent::m_result
int m_result
Definition: mythdialogbox.h:61
MythDialogBox::AddButton
void AddButton(const QString &title)
Definition: mythdialogbox.h:198
MythDialogBox
Basic menu dialog, message and a list of options.
Definition: mythdialogbox.h:166
menu
static MythThemedMenu * menu
Definition: mythtv-setup.cpp:58
MythTimeInputDialog::m_rangeLimit
int m_rangeLimit
Definition: mythdialogbox.h:500
DialogCompletionEvent::m_resultData
QVariant m_resultData
Definition: mythdialogbox.h:63
MythUIButton
A single button widget.
Definition: mythuibutton.h:21
MythMenuItem
Definition: mythdialogbox.h:67
WaitFor
bool MUI_PUBLIC WaitFor(MythConfirmationDialog *dialog)
Blocks until confirmation dialog exits.
Definition: mythdialogbox.cpp:599
MythMenuItem::SetData
void SetData(QVariant data)
Definition: mythdialogbox.h:87
MythMenuItem::Init
void Init(void)
Definition: mythdialogbox.h:96
MythMenuItem::MythMenuItem
MythMenuItem(QString text, bool checked=false, MythMenu *subMenu=nullptr)
Definition: mythdialogbox.h:70
MythTimeInputDialog::m_currentValue
QString m_currentValue
Definition: mythdialogbox.h:502
ShowOkPopup
MUI_PUBLIC MythConfirmationDialog * ShowOkPopup(const QString &message, bool showCancel=false)
Non-blocking version of MythPopupBox::showOkPopup()
Definition: mythdialogbox.cpp:562
MythMenuItem::MythMenuItem
MythMenuItem(QString text, const MythUICallbackNMF &slot, bool checked=false, MythMenu *subMenu=nullptr)
Definition: mythdialogbox.h:73
uint
unsigned int uint
Definition: compat.h:79
MythMenu::m_text
QString m_text
Definition: mythdialogbox.h:151
MythMenu::m_resultid
QString m_resultid
Definition: mythdialogbox.h:152
MythMenu::SetParent
void SetParent(MythMenu *parent)
Definition: mythdialogbox.h:141
MythDialogBox::m_title
QString m_title
Definition: mythdialogbox.h:251
MythMenu
Definition: mythdialogbox.h:99
MythUISearchDialog::m_defaultValue
QString m_defaultValue
Definition: mythdialogbox.h:438
MythTimeInputDialog::m_startTime
QDateTime m_startTime
Definition: mythdialogbox.h:498
MythUIText
All purpose text widget, displays a text string.
Definition: mythuitext.h:28
MythScreenType::keyPressEvent
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
Definition: mythscreentype.cpp:404
MythMenu::m_title
QString m_title
Definition: mythdialogbox.h:150
MythConfirmationDialog
Dialog asking for user confirmation. Ok and optional Cancel button.
Definition: mythdialogbox.h:272
MythTimeInputDialog::m_resolution
int m_resolution
Definition: mythdialogbox.h:499
mythuitextedit.h
MythUISearchDialog::MythUISearchDialog
MythUISearchDialog(MythScreenStack *parent, QString title, QStringList list, bool matchAnywhere=false, QString defaultValue="")
the classes constructor
Definition: mythdialogbox.h:413
MythScreenType::inputMethodEvent
bool inputMethodEvent(QInputMethodEvent *event) override
Input Method event handler.
Definition: mythscreentype.cpp:398
MythTimeInputDialog::m_list
QStringList m_list
Definition: mythdialogbox.h:501
std
Definition: mythchrono.h:23
DialogCompletionEvent
Event dispatched from MythUI modal dialogs to a listening class containing a result of some form.
Definition: mythdialogbox.h:41
MythDialogBox::AddButton
std::enable_if_t< FunctionPointerTest< SLOT >::MemberFunction > AddButton(const QString &title, const SLOT &slot, bool newMenu=false, bool setCurrent=false)
Definition: mythdialogbox.h:209
MythMenuItem::MythMenuItem
MythMenuItem(QString text, MythUICallbackMFc slot, bool checked=false, MythMenu *subMenu=nullptr)
Definition: mythdialogbox.h:83
MythConfirmationDialog::m_id
QString m_id
Definition: mythdialogbox.h:298
GetMythMainWindow
MythMainWindow * GetMythMainWindow(void)
Definition: mythmainwindow.cpp:102
MythUISearchDialog::m_list
QStringList m_list
Definition: mythdialogbox.h:439
MythDialogBox::m_backtext
QString m_backtext
Definition: mythdialogbox.h:254
MythUISpinBox
A widget for offering a range of numerical values where only the the bounding values and interval are...
Definition: mythuispinbox.h:16
MythScreenType::gestureEvent
bool gestureEvent(MythGestureEvent *event) override
Mouse click/movement handler, receives mouse gesture events from the QCoreApplication event loop.
Definition: mythscreentype.cpp:446
MythMainWindow::GetStack
MythScreenStack * GetStack(const QString &Stackname)
Definition: mythmainwindow.cpp:320
DialogCompletionEvent::GetResult
int GetResult() const
Definition: mythdialogbox.h:53
MythDialogBox::AddButton
void AddButton(const QString &title, const MythUICallbackNMF &slot, bool newMenu=false, bool setCurrent=false)
Definition: mythdialogbox.h:200
MythGestureEvent
A custom event that represents a mouse gesture.
Definition: mythgesture.h:39
MythUICallbackMFc
void(QObject::*)(void) const MythUICallbackMFc
Definition: mythuitype.h:45
MythTextInputDialog
Dialog prompting the user to enter a text string.
Definition: mythdialogbox.h:314
MythTimeInputDialog::TimeInputResolution
TimeInputResolution
Definition: mythdialogbox.h:464
MythUIButtonList
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
Definition: mythuibuttonlist.h:191
MythSpinBoxDialog
Dialog prompting the user to enter a number using a spin box.
Definition: mythdialogbox.h:355
mythmainwindow.h
MythTimeInputDialog
Definition: mythdialogbox.h:458
MythScreenStack::AddScreen
virtual void AddScreen(MythScreenType *screen, bool allowFade=true)
Definition: mythscreenstack.cpp:50
MythMenuItem::MythMenuItem
MythMenuItem(QString text, MythUICallbackMF slot, bool checked=false, MythMenu *subMenu=nullptr)
Definition: mythdialogbox.h:78
MythDialogBox::m_exittext
QString m_exittext
Definition: mythdialogbox.h:256
MythTimeInputDialog::m_message
QString m_message
Definition: mythdialogbox.h:497
MythUISearchDialog::m_id
QString m_id
Definition: mythdialogbox.h:443
MythDialogBox::MythDialogBox
MythDialogBox(MythMenu *menu, MythScreenStack *parent, const char *name, bool fullscreen=false, bool osd=false)
Definition: mythdialogbox.h:180
DialogCompletionEvent::m_resultText
QString m_resultText
Definition: mythdialogbox.h:62
MythMainWindow
Definition: mythmainwindow.h:28
DialogCompletionEvent::m_id
QString m_id
Definition: mythdialogbox.h:60
MythUIStateType
This widget is used for grouping other widgets for display when a particular named state is called....
Definition: mythuistatetype.h:22
mythscreentype.h
DialogCompletionEvent::GetData
QVariant GetData()
Definition: mythdialogbox.h:55
MythDialogBox::m_retObject
QObject * m_retObject
Definition: mythdialogbox.h:245
DialogCompletionEvent::GetResultText
QString GetResultText()
Definition: mythdialogbox.h:54
MythTextInputDialog::MythTextInputDialog
MythTextInputDialog(MythScreenStack *parent, QString message, InputFilter filter=FilterNone, bool isPassword=false, QString defaultValue="")
Definition: mythdialogbox.h:319