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:
375  QString m_message;
376  QString m_defaultValue;
377  QObject *m_retObject;
378  QString m_id;
379 
380  protected slots:
381  void sendResult();
382 };
383 
384 
400 {
401  Q_OBJECT
402 
403  public:
405  const QString &title,
406  const QStringList &list,
407  bool matchAnywhere = false,
408  const QString &defaultValue = "");
409 
410  bool Create(void) override; // MythScreenType
411  void SetReturnEvent(QObject *retobject, const QString &resultid);
412 
413  signals:
414  void haveResult(QString);
415 
416  private:
421 
422  QString m_title;
423  QString m_defaultValue;
424  QStringList m_list;
426 
427  QObject *m_retObject;
428  QString m_id;
429 
430  private slots:
431  void slotSendResult(void);
432  void slotUpdateList(void);
433 };
434 
444 {
445  Q_OBJECT
446 
447  public:
448  // FIXME Not sure about this enum
450  // Date Resolution
451  kNoDate = 0x01,
452  kYear = 0x02,
453  kMonth = 0x04,
454  kDay = 0x08,
455 
456  // Time Resolution
457  kNoTime = 0x10,
458  kHours = 0x20,
459  kMinutes = 0x40,
460 
461  // Work forward/backwards or backwards and fowards from start time
462  kFutureDates = 0x100,
463  kPastDates = 0x200,
464  kAllDates = 0x300
465  };
466 
467  MythTimeInputDialog(MythScreenStack *parent, QString message,
468  int resolutionFlags,
469  QDateTime startTime = QDateTime::currentDateTime(),
470  int rangeLimit = 14);
471 
472  bool Create() override; // MythScreenType
473  void SetReturnEvent(QObject *retobject, const QString &resultid);
474 
475  signals:
476  void haveResult(QDateTime time);
477 
478  private slots:
479  void okClicked(void);
480 
481  private:
482  QString m_message;
483  QDateTime m_startTime;
486  QStringList m_list;
487  QString m_currentValue;
488 
491 
492  QObject *m_retObject;
493  QString m_id;
494 };
495 
496 MUI_PUBLIC MythConfirmationDialog *ShowOkPopup(const QString &message, bool showCancel = false);
497 template <class OBJ, typename FUNC>
498 MythConfirmationDialog *ShowOkPopup(const QString &message, const OBJ *parent,
499  FUNC slot, bool showCancel = false)
500 {
501  QString LOC = "ShowOkPopup('" + message + "') - ";
502  MythScreenStack *stk = nullptr;
503 
505 
506  if (win)
507  stk = win->GetStack("popup stack");
508  else
509  {
510  LOG(VB_GENERAL, LOG_ERR, LOC + "no main window?");
511  return nullptr;
512  }
513 
514  if (!stk)
515  {
516  LOG(VB_GENERAL, LOG_ERR, LOC + "no popup stack? "
517  "Is there a MythThemeBase?");
518  return nullptr;
519  }
520 
521  auto *pop = new MythConfirmationDialog(stk, message, showCancel);
522  if (pop->Create())
523  {
524  stk->AddScreen(pop);
525  if (parent)
526  QObject::connect(pop, &MythConfirmationDialog::haveResult, parent, slot,
527  Qt::QueuedConnection);
528  }
529  else
530  {
531  delete pop;
532  pop = nullptr;
533  LOG(VB_GENERAL, LOG_ERR, LOC + "Couldn't Create() Dialog");
534  }
535 
536  return pop;
537 }
538 
541 
543 Q_DECLARE_METATYPE(const char*)
544 
545 #endif
MythMenu::m_menuItems
QList< MythMenuItem * > m_menuItems
Definition: mythdialogbox.h:154
MythDialogBox::m_id
QString m_id
Definition: mythdialogbox.h:246
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(GrabberScript *)
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:422
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
MythUISearchDialog::m_titleText
MythUIText * m_titleText
Definition: mythdialogbox.h:419
false
VERBOSE_PREAMBLE false
Definition: verbosedefs.h:85
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:493
MythConfirmationDialog::m_resultData
QVariant m_resultData
Definition: mythdialogbox.h:299
MythSpinBoxDialog::m_spinBox
MythUISpinBox * m_spinBox
Definition: mythdialogbox.h:374
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
MythUISearchDialog::m_matchAnywhere
bool m_matchAnywhere
Definition: mythdialogbox.h:425
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:23
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
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:57
MythTimeInputDialog::m_rangeLimit
int m_rangeLimit
Definition: mythdialogbox.h:485
MythTimeInputDialog::m_timeList
MythUIButtonList * m_timeList
Definition: mythdialogbox.h:490
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:600
MythMenuItem::SetData
void SetData(QVariant data)
Definition: mythdialogbox.h:87
MythMenuItem::Init
void Init(void)
Definition: mythdialogbox.h:96
MythTimeInputDialog::m_dateList
MythUIButtonList * m_dateList
Definition: mythdialogbox.h:489
MythMenuItem::MythMenuItem
MythMenuItem(QString text, bool checked=false, MythMenu *subMenu=nullptr)
Definition: mythdialogbox.h:70
MythSpinBoxDialog::m_retObject
QObject * m_retObject
Definition: mythdialogbox.h:377
MythTimeInputDialog::m_currentValue
QString m_currentValue
Definition: mythdialogbox.h:487
ShowOkPopup
MUI_PUBLIC MythConfirmationDialog * ShowOkPopup(const QString &message, bool showCancel=false)
Non-blocking version of MythPopupBox::showOkPopup()
Definition: mythdialogbox.cpp:563
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
MythUISearchDialog::m_textEdit
MythUITextEdit * m_textEdit
Definition: mythdialogbox.h:418
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:423
MythTimeInputDialog::m_startTime
QDateTime m_startTime
Definition: mythdialogbox.h:483
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:484
mythuitextedit.h
MythScreenType::inputMethodEvent
bool inputMethodEvent(QInputMethodEvent *event) override
Input Method event handler.
Definition: mythscreentype.cpp:398
MythUISearchDialog::m_retObject
QObject * m_retObject
Definition: mythdialogbox.h:427
MythTimeInputDialog::m_list
QStringList m_list
Definition: mythdialogbox.h:486
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
MythUISearchDialog::m_itemList
MythUIButtonList * m_itemList
Definition: mythdialogbox.h:417
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:424
MythTimeInputDialog::m_retObject
QObject * m_retObject
Definition: mythdialogbox.h:492
MythUISearchDialog::m_matchesText
MythUIText * m_matchesText
Definition: mythdialogbox.h:420
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:449
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:443
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:482
MythUISearchDialog::m_id
QString m_id
Definition: mythdialogbox.h:428
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:35
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