MythTV  master
custompriority.h
Go to the documentation of this file.
1 #ifndef CUSTOMPRIORITY_H_
2 #define CUSTOMPRIORITY_H_
3 
4 #include "programinfo.h"
5 
6 #include "mythscreentype.h"
7 
8 class MythUITextEdit;
9 class MythUIButton;
10 class MythUIButtonList;
12 class MythUISpinBox;
13 
15 {
16  Q_OBJECT
17  public:
18  explicit CustomPriority(MythScreenStack *parent,
19  ProgramInfo *proginfo = nullptr);
21 
22  bool Create() override; // MythScreenType
23 
24  protected slots:
26 
27  void textChanged();
28 
29  void addClicked(void);
30  void testClicked(void);
31  void installClicked(void);
32  void deleteClicked(void);
33 
34  private:
35  void loadData(void);
36  void loadExampleRules(void);
37  bool checkSyntax(void);
38  void testSchedule(void);
39 
40  ProgramInfo *m_pginfo {nullptr};
41 
44 
47 
49 
55 };
56 
57 struct RuleInfo {
58  QString title;
59  QString priority;
60  QString description;
61 };
62 
64 
65 #endif
void loadData(void)
unsigned int slots[4]
Definition: element.c:38
A widget for offering a range of numerical values where only the the bounding values and interval are...
Definition: mythuispinbox.h:16
MythUITextEdit * m_descriptionEdit
QString priority
MythUIButton * m_testButton
void addClicked(void)
void testSchedule(void)
bool checkSyntax(void)
Q_DECLARE_METATYPE(GrabberScript *)
Holds information on recordings and videos.
Definition: programinfo.h:66
void installClicked(void)
QString title
MythUITextEdit * m_titleEdit
A text entry and edit widget.
QString description
bool Create() override
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
A single button widget.
Definition: mythuibutton.h:21
void loadExampleRules(void)
MythUIButton * m_cancelButton
void deleteClicked(void)
MythUIButton * m_installButton
MythUIButtonList * m_ruleList
void testClicked(void)
MythUIButton * m_addButton
void ruleChanged(MythUIButtonListItem *item)
CustomPriority(MythScreenStack *parent, ProgramInfo *proginfo=nullptr)
MythUIButtonList * m_clauseList
ProgramInfo * m_pginfo
MythUIButton * m_deleteButton
Screen in which all other widgets are contained and rendered.
MythUISpinBox * m_prioritySpin