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
14 #include "mythscreentype.h"
15 #include "mythuitextedit.h"
16 #include "mythmainwindow.h"
17 #include "mythlogging.h"
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 gestureEvent(MythGestureEvent *event) override; // MythScreenType
229 
230  public slots:
231  void Select(MythUIButtonListItem* item);
232 
233  signals:
234  void Selected();
235  void Closed(QString, int);
236 
237  protected:
238  void SendEvent(int res, const QString& text = "", const QVariant& data = 0);
239  void updateMenu(void);
240 
241  MythUIText *m_titlearea {nullptr};
242  MythUIText *m_textarea {nullptr};
243  MythUIButtonList *m_buttonList {nullptr};
244  QObject *m_retObject {nullptr};
245  QString m_id;
246  bool m_useSlots {false};
247 
248  bool m_fullscreen {false};
249  bool m_osdDialog {false};
250  QString m_title;
251  QString m_text;
252 
253  QString m_backtext;
254  QVariant m_backdata {0};
255  QString m_exittext;
256  QVariant m_exitdata {0};
257 
258  MythMenu *m_menu {nullptr};
259  MythMenu *m_currentMenu {nullptr};
260 };
261 
262 
272 {
273  Q_OBJECT
274 
275  public:
276  MythConfirmationDialog(MythScreenStack *parent, QString message,
277  bool showCancel = true)
278  : MythScreenType(parent, "mythconfirmpopup"),
279  m_message(std::move(message)), m_showCancel(showCancel) {}
280 
281  bool Create(void) override; // MythScreenType
282  void SetReturnEvent(QObject *retobject, const QString &resultid);
283  void SetData(QVariant data) { m_resultData = std::move(data); }
284  void SetMessage(const QString &message);
285 
286  bool keyPressEvent(QKeyEvent *event) override; // MythScreenType
287 
288  signals:
289  void haveResult(bool);
290 
291  private:
292  void sendResult(bool ok);
293  MythUIText *m_messageText {nullptr};
294  QString m_message;
295  bool m_showCancel {true};
296  QObject *m_retObject {nullptr};
297  QString m_id;
298  QVariant m_resultData;
299 
300  private slots:
301  void Confirm(void);
302  void Cancel();
303 };
304 
314 {
315  Q_OBJECT
316 
317  public:
318  MythTextInputDialog(MythScreenStack *parent, QString message,
319  InputFilter filter = FilterNone,
320  bool isPassword = false,
321  QString defaultValue = "")
322  : MythScreenType(parent, "mythtextinputpopup"),
323  m_message(std::move(message)), m_defaultValue(std::move(defaultValue)),
324  m_filter(filter), m_isPassword(isPassword) {}
325 
326  bool Create(void) override; // MythScreenType
327  void SetReturnEvent(QObject *retobject, const QString &resultid);
328 
329  signals:
330  void haveResult(QString);
331 
332  protected:
333  MythUITextEdit *m_textEdit {nullptr};
334  QString m_message;
335  QString m_defaultValue;
337  bool m_isPassword {false};
338  QObject *m_retObject {nullptr};
339  QString m_id;
340 
341  protected slots:
342  void sendResult();
343 };
344 
345 
355 {
356  Q_OBJECT
357 
358  public:
359  MythSpinBoxDialog(MythScreenStack *parent, QString message);
360 
361  bool Create(void) override; // MythScreenType
362  void SetReturnEvent(QObject *retobject, const QString &resultid);
363 
364  void SetRange(int low, int high, int step, uint pageMultiple=5);
365  void AddSelection(const QString& label, int value);
366  void SetValue(const QString & value);
367  void SetValue(int value);
368 
369  signals:
370  void haveResult(QString);
371 
372  protected:
374  QString m_message;
375  QString m_defaultValue;
376  QObject *m_retObject;
377  QString m_id;
378 
379  protected slots:
380  void sendResult();
381 };
382 
383 
399 {
400  Q_OBJECT
401 
402  public:
404  const QString &title,
405  const QStringList &list,
406  bool matchAnywhere = false,
407  const QString &defaultValue = "");
408 
409  bool Create(void) override; // MythScreenType
410  void SetReturnEvent(QObject *retobject, const QString &resultid);
411 
412  signals:
413  void haveResult(QString);
414 
415  private:
420 
421  QString m_title;
422  QString m_defaultValue;
423  QStringList m_list;
425 
426  QObject *m_retObject;
427  QString m_id;
428 
429  private slots:
430  void slotSendResult(void);
431  void slotUpdateList(void);
432 };
433 
443 {
444  Q_OBJECT
445 
446  public:
447  // FIXME Not sure about this enum
449  // Date Resolution
450  kNoDate = 0x01,
451  kYear = 0x02,
452  kMonth = 0x04,
453  kDay = 0x08,
454 
455  // Time Resolution
456  kNoTime = 0x10,
457  kHours = 0x20,
458  kMinutes = 0x40,
459 
460  // Work forward/backwards or backwards and fowards from start time
461  kFutureDates = 0x100,
462  kPastDates = 0x200,
463  kAllDates = 0x300
464  };
465 
466  MythTimeInputDialog(MythScreenStack *parent, QString message,
467  int resolutionFlags,
468  QDateTime startTime = QDateTime::currentDateTime(),
469  int rangeLimit = 14);
470 
471  bool Create() override; // MythScreenType
472  void SetReturnEvent(QObject *retobject, const QString &resultid);
473 
474  signals:
475  void haveResult(QDateTime time);
476 
477  private slots:
478  void okClicked(void);
479 
480  private:
481  QString m_message;
482  QDateTime m_startTime;
485  QStringList m_list;
486  QString m_currentValue;
487 
490 
491  QObject *m_retObject;
492  QString m_id;
493 };
494 
495 MUI_PUBLIC MythConfirmationDialog *ShowOkPopup(const QString &message, bool showCancel = false);
496 template <class OBJ, typename FUNC>
497 MythConfirmationDialog *ShowOkPopup(const QString &message, const OBJ *parent,
498  FUNC slot, bool showCancel = false)
499 {
500  QString LOC = "ShowOkPopup('" + message + "') - ";
501  MythScreenStack *stk = nullptr;
502 
504 
505  if (win)
506  stk = win->GetStack("popup stack");
507  else
508  {
509  LOG(VB_GENERAL, LOG_ERR, LOC + "no main window?");
510  return nullptr;
511  }
512 
513  if (!stk)
514  {
515  LOG(VB_GENERAL, LOG_ERR, LOC + "no popup stack? "
516  "Is there a MythThemeBase?");
517  return nullptr;
518  }
519 
520  auto *pop = new MythConfirmationDialog(stk, message, showCancel);
521  if (pop->Create())
522  {
523  stk->AddScreen(pop);
524  if (parent)
525  QObject::connect(pop, &MythConfirmationDialog::haveResult, parent, slot,
526  Qt::QueuedConnection);
527  }
528  else
529  {
530  delete pop;
531  pop = nullptr;
532  LOG(VB_GENERAL, LOG_ERR, LOC + "Couldn't Create() Dialog");
533  }
534 
535  return pop;
536 }
537 
540 
542 Q_DECLARE_METATYPE(const char*)
543 
544 #endif
MythMenu::m_menuItems
QList< MythMenuItem * > m_menuItems
Definition: mythdialogbox.h:154
MythDialogBox::m_id
QString m_id
Definition: mythdialogbox.h:245
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(GrabberScript *)
MythUISearchDialog
Provide a dialog to quickly find an entry in a list.
Definition: mythdialogbox.h:398
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:421
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:19
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:418
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:492
MythConfirmationDialog::m_resultData
QVariant m_resultData
Definition: mythdialogbox.h:298
MythSpinBoxDialog::m_spinBox
MythUISpinBox * m_spinBox
Definition: mythdialogbox.h:373
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:377
MythConfirmationDialog::MythConfirmationDialog
MythConfirmationDialog(MythScreenStack *parent, QString message, bool showCancel=true)
Definition: mythdialogbox.h:276
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:339
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:38
MythConfirmationDialog::haveResult
void haveResult(bool)
MythScreenStack
Definition: mythscreenstack.h:16
MythScreenType::Create
virtual bool Create(void)
Definition: mythscreentype.cpp:265
MythUITextEdit
A text entry and edit widget.
Definition: mythuitextedit.h:32
MythUISearchDialog::m_matchAnywhere
bool m_matchAnywhere
Definition: mythdialogbox.h:424
MythTextInputDialog::m_message
QString m_message
Definition: mythdialogbox.h:334
MythTextInputDialog::m_defaultValue
QString m_defaultValue
Definition: mythdialogbox.h:335
LOG
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
Definition: mythlogging.h:23
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition: mythscreentype.h:44
MythSpinBoxDialog::m_defaultValue
QString m_defaultValue
Definition: mythdialogbox.h:375
InputFilter
InputFilter
Definition: mythuitextedit.h:17
MythMenu::IsEmpty
bool IsEmpty()
Definition: mythdialogbox.h:143
MythUICallbackNMF
std::function< void(void)> MythUICallbackNMF
Definition: mythuitype.h:41
menu
static MythThemedMenu * menu
Definition: mythtv/programs/mythtv-setup/main.cpp:53
MythConfirmationDialog::m_message
QString m_message
Definition: mythdialogbox.h:294
MythSpinBoxDialog::m_message
QString m_message
Definition: mythdialogbox.h:374
MythConfirmationDialog::SetData
void SetData(QVariant data)
Definition: mythdialogbox.h:283
SendEvent
static int SendEvent(const MythUtilCommandLineParser &cmdline)
Definition: backendutils.cpp:53
DialogCompletionEvent::DialogCompletionEvent
DialogCompletionEvent(QString id, int result, QString text, QVariant data)
Definition: mythdialogbox.h:44
MythUIButtonListItem
Definition: mythuibuttonlist.h:34
MythUICallbackMF
void(QObject::*)(void) MythUICallbackMF
Definition: mythuitype.h:43
MythMenuItem::m_text
QString m_text
Definition: mythdialogbox.h:89
mythlogging.h
MythDialogBox::m_text
QString m_text
Definition: mythdialogbox.h:251
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
MythTimeInputDialog::m_rangeLimit
int m_rangeLimit
Definition: mythdialogbox.h:484
MythTimeInputDialog::m_timeList
MythUIButtonList * m_timeList
Definition: mythdialogbox.h:489
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:595
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:488
MythMenuItem::MythMenuItem
MythMenuItem(QString text, bool checked=false, MythMenu *subMenu=nullptr)
Definition: mythdialogbox.h:70
MythSpinBoxDialog::m_retObject
QObject * m_retObject
Definition: mythdialogbox.h:376
MythTimeInputDialog::m_currentValue
QString m_currentValue
Definition: mythdialogbox.h:486
ShowOkPopup
MUI_PUBLIC MythConfirmationDialog * ShowOkPopup(const QString &message, bool showCancel=false)
Non-blocking version of MythPopupBox::showOkPopup()
Definition: mythdialogbox.cpp:558
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:144
MythMenu::m_text
QString m_text
Definition: mythdialogbox.h:151
MythUISearchDialog::m_textEdit
MythUITextEdit * m_textEdit
Definition: mythdialogbox.h:417
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:250
MythMenu
Definition: mythdialogbox.h:99
MythUISearchDialog::m_defaultValue
QString m_defaultValue
Definition: mythdialogbox.h:422
MythTimeInputDialog::m_startTime
QDateTime m_startTime
Definition: mythdialogbox.h:482
MythUIText
All purpose text widget, displays a text string.
Definition: mythuitext.h:30
MythScreenType::keyPressEvent
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
Definition: mythscreentype.cpp:397
MythMenu::m_title
QString m_title
Definition: mythdialogbox.h:150
MythConfirmationDialog
Dialog asking for user confirmation. Ok and optional Cancel button.
Definition: mythdialogbox.h:271
MythTimeInputDialog::m_resolution
int m_resolution
Definition: mythdialogbox.h:483
mythuitextedit.h
MythUISearchDialog::m_retObject
QObject * m_retObject
Definition: mythdialogbox.h:426
MythTimeInputDialog::m_list
QStringList m_list
Definition: mythdialogbox.h:485
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:416
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:297
GetMythMainWindow
MythMainWindow * GetMythMainWindow(void)
Definition: mythmainwindow.cpp:101
MythUISearchDialog::m_list
QStringList m_list
Definition: mythdialogbox.h:423
MythTimeInputDialog::m_retObject
QObject * m_retObject
Definition: mythdialogbox.h:491
MythUISearchDialog::m_matchesText
MythUIText * m_matchesText
Definition: mythdialogbox.h:419
MythDialogBox::m_backtext
QString m_backtext
Definition: mythdialogbox.h:253
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:439
MythMainWindow::GetStack
MythScreenStack * GetStack(const QString &Stackname)
Definition: mythmainwindow.cpp:319
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:44
MythTextInputDialog
Dialog prompting the user to enter a text string.
Definition: mythdialogbox.h:313
MythTimeInputDialog::TimeInputResolution
TimeInputResolution
Definition: mythdialogbox.h:448
MythUIButtonList
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
Definition: mythuibuttonlist.h:177
MythSpinBoxDialog
Dialog prompting the user to enter a number using a spin box.
Definition: mythdialogbox.h:354
mythmainwindow.h
MythTimeInputDialog
Definition: mythdialogbox.h:442
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:255
MythTimeInputDialog::m_message
QString m_message
Definition: mythdialogbox.h:481
MythUISearchDialog::m_id
QString m_id
Definition: mythdialogbox.h:427
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:244
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:318