MythTV  master
mythnewseditor.h
Go to the documentation of this file.
1 #ifndef MYTHNEWSEDITOR_H
2 #define MYTHNEWSEDITOR_H
3 
4 // Qt headers
5 #include <QtGlobal>
6 #include <QRecursiveMutex>
7 #include <QString>
8 
9 // MythTV headers
11 
12 class MythUIText;
13 class MythUITextEdit;
14 class MythUIButton;
15 class MythUICheckBox;
16 class NewsSite;
17 
22 {
23  Q_OBJECT
24 
25  public:
26  MythNewsEditor(NewsSite *site, bool edit, MythScreenStack *parent,
27  const QString &name = "MythNewsEditor");
28  ~MythNewsEditor() override;
29 
30  bool Create(void) override; // MythScreenType
31  bool keyPressEvent(QKeyEvent *event) override; // MythScreenType
32 
33  private:
34  mutable QRecursiveMutex m_lock;
35  NewsSite *m_site {nullptr};
36  QString m_siteName;
37  bool m_editing;
38 
39  MythUIText *m_titleText {nullptr};
44 
48 
51 
53 
54  private slots:
55  void Save(void);
56 };
57 
58 #endif /* MYTHNEWSEDITOR_H */
MythNewsEditor::m_nameLabelText
MythUIText * m_nameLabelText
Definition: mythnewseditor.h:40
MythNewsEditor::m_iconLabelText
MythUIText * m_iconLabelText
Definition: mythnewseditor.h:42
MythNewsEditor
Definition: mythnewseditor.h:21
MythNewsEditor::m_titleText
MythUIText * m_titleText
Definition: mythnewseditor.h:39
MythNewsEditor::Create
bool Create(void) override
Definition: mythnewseditor.cpp:44
MythNewsEditor::m_iconEdit
MythUITextEdit * m_iconEdit
Definition: mythnewseditor.h:47
MythNewsEditor::MythNewsEditor
MythNewsEditor(NewsSite *site, bool edit, MythScreenStack *parent, const QString &name="MythNewsEditor")
Creates a new MythNewsEditor Screen.
Definition: mythnewseditor.cpp:29
MythScreenStack
Definition: mythscreenstack.h:16
MythUITextEdit
A text entry and edit widget.
Definition: mythuitextedit.h:34
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition: mythscreentype.h:45
MythNewsEditor::m_podcastCheck
MythUICheckBox * m_podcastCheck
Definition: mythnewseditor.h:52
MythNewsEditor::m_urlLabelText
MythUIText * m_urlLabelText
Definition: mythnewseditor.h:41
MythNewsEditor::m_lock
QRecursiveMutex m_lock
Definition: mythnewseditor.h:34
MythNewsEditor::m_okButton
MythUIButton * m_okButton
Definition: mythnewseditor.h:49
MythUIButton
A single button widget.
Definition: mythuibutton.h:21
MythNewsEditor::keyPressEvent
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
Definition: mythnewseditor.cpp:110
MythNewsEditor::Save
void Save(void)
Definition: mythnewseditor.cpp:124
MythNewsEditor::m_editing
bool m_editing
Definition: mythnewseditor.h:37
MythUICheckBox
A checkbox widget supporting three check states - on,off,half and two conditions - selected and unsel...
Definition: mythuicheckbox.h:15
NewsSite
Definition: newssite.h:50
MythNewsEditor::m_nameEdit
MythUITextEdit * m_nameEdit
Definition: mythnewseditor.h:45
MythNewsEditor::m_site
NewsSite * m_site
Definition: mythnewseditor.h:35
MythUIText
All purpose text widget, displays a text string.
Definition: mythuitext.h:28
MythNewsEditor::m_siteName
QString m_siteName
Definition: mythnewseditor.h:36
MythNewsEditor::m_urlEdit
MythUITextEdit * m_urlEdit
Definition: mythnewseditor.h:46
MythNewsEditor::m_cancelButton
MythUIButton * m_cancelButton
Definition: mythnewseditor.h:50
MythNewsEditor::~MythNewsEditor
~MythNewsEditor() override
Definition: mythnewseditor.cpp:39
mythscreentype.h
MythNewsEditor::m_podcastLabelText
MythUIText * m_podcastLabelText
Definition: mythnewseditor.h:43