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