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);
20  ~CustomPriority() override;
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
CustomPriority::m_deleteButton
MythUIButton * m_deleteButton
Definition: custompriority.h:53
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(GrabberScript *)
CustomPriority::m_cancelButton
MythUIButton * m_cancelButton
Definition: custompriority.h:54
CustomPriority::m_descriptionEdit
MythUITextEdit * m_descriptionEdit
Definition: custompriority.h:46
CustomPriority::checkSyntax
bool checkSyntax(void)
Definition: custompriority.cpp:330
CustomPriority::addClicked
void addClicked(void)
Definition: custompriority.cpp:256
RuleInfo::description
QString description
Definition: custompriority.h:60
RuleInfo
Definition: custompriority.h:57
MythScreenStack
Definition: mythscreenstack.h:16
MythUITextEdit
A text entry and edit widget.
Definition: mythuitextedit.h:33
CustomPriority::m_testButton
MythUIButton * m_testButton
Definition: custompriority.h:51
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition: mythscreentype.h:45
CustomPriority::m_titleEdit
MythUITextEdit * m_titleEdit
Definition: custompriority.h:45
RuleInfo::title
QString title
Definition: custompriority.h:58
MythUIButtonListItem
Definition: mythuibuttonlist.h:28
CustomPriority::Create
bool Create() override
Definition: custompriority.cpp:47
programinfo.h
CustomPriority::deleteClicked
void deleteClicked(void)
Definition: custompriority.cpp:312
CustomPriority::testSchedule
void testSchedule(void)
Definition: custompriority.cpp:381
CustomPriority::loadExampleRules
void loadExampleRules(void)
Definition: custompriority.cpp:154
MythUIButton
A single button widget.
Definition: mythuibutton.h:22
CustomPriority::CustomPriority
CustomPriority(MythScreenStack *parent, ProgramInfo *proginfo=nullptr)
Definition: custompriority.cpp:29
CustomPriority::textChanged
void textChanged()
Definition: custompriority.cpp:247
CustomPriority::ruleChanged
void ruleChanged(MythUIButtonListItem *item)
Definition: custompriority.cpp:232
CustomPriority::m_ruleList
MythUIButtonList * m_ruleList
Definition: custompriority.h:42
CustomPriority::testClicked
void testClicked(void)
Definition: custompriority.cpp:273
CustomPriority::loadData
void loadData(void)
Definition: custompriority.cpp:96
ProgramInfo
Holds information on recordings and videos.
Definition: programinfo.h:68
CustomPriority::m_installButton
MythUIButton * m_installButton
Definition: custompriority.h:52
CustomPriority::installClicked
void installClicked(void)
Definition: custompriority.cpp:281
MythUISpinBox
A widget for offering a range of numerical values where only the the bounding values and interval are...
Definition: mythuispinbox.h:17
CustomPriority::~CustomPriority
~CustomPriority() override
Definition: custompriority.cpp:40
RuleInfo::priority
QString priority
Definition: custompriority.h:59
CustomPriority
Definition: custompriority.h:15
MythUIButtonList
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
Definition: mythuibuttonlist.h:152
CustomPriority::m_addButton
MythUIButton * m_addButton
Definition: custompriority.h:50
CustomPriority::m_clauseList
MythUIButtonList * m_clauseList
Definition: custompriority.h:43
CustomPriority::m_pginfo
ProgramInfo * m_pginfo
Definition: custompriority.h:40
CustomPriority::m_prioritySpin
MythUISpinBox * m_prioritySpin
Definition: custompriority.h:48
mythscreentype.h