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 <QMutex>
6 #include <QString>
7 
8 // MythTV headers
9 #include <mythscreentype.h>
10 
11 class MythUIText;
12 class MythUITextEdit;
13 class MythUIButton;
14 class MythUICheckBox;
15 class NewsSite;
16 
21 {
22  Q_OBJECT
23 
24  public:
25  MythNewsEditor(NewsSite *site, bool edit, MythScreenStack *parent,
26  const QString &name = "MythNewsEditor");
27  ~MythNewsEditor() override;
28 
29  bool Create(void) override; // MythScreenType
30  bool keyPressEvent(QKeyEvent *event) override; // MythScreenType
31 
32  private:
33  mutable QMutex m_lock {QMutex::Recursive};
34  NewsSite *m_site {nullptr};
35  QString m_siteName;
36  bool m_editing;
37 
38  MythUIText *m_titleText {nullptr};
43 
47 
50 
52 
53  private slots:
54  void Save(void);
55 };
56 
57 #endif /* MYTHNEWSEDITOR_H */
MythNewsEditor::m_nameLabelText
MythUIText * m_nameLabelText
Definition: mythnewseditor.h:39
MythNewsEditor::m_iconLabelText
MythUIText * m_iconLabelText
Definition: mythnewseditor.h:41
MythNewsEditor
Definition: mythnewseditor.h:20
MythNewsEditor::m_titleText
MythUIText * m_titleText
Definition: mythnewseditor.h:38
MythNewsEditor::Create
bool Create(void) override
Definition: mythnewseditor.cpp:44
MythNewsEditor::m_iconEdit
MythUITextEdit * m_iconEdit
Definition: mythnewseditor.h:46
MythNewsEditor::m_lock
QMutex m_lock
Definition: mythnewseditor.h:33
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:32
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition: mythscreentype.h:44
MythNewsEditor::m_podcastCheck
MythUICheckBox * m_podcastCheck
Definition: mythnewseditor.h:51
MythNewsEditor::m_urlLabelText
MythUIText * m_urlLabelText
Definition: mythnewseditor.h:40
MythNewsEditor::m_okButton
MythUIButton * m_okButton
Definition: mythnewseditor.h:48
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:36
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:51
MythNewsEditor::m_nameEdit
MythUITextEdit * m_nameEdit
Definition: mythnewseditor.h:44
MythNewsEditor::m_site
NewsSite * m_site
Definition: mythnewseditor.h:34
MythUIText
All purpose text widget, displays a text string.
Definition: mythuitext.h:30
MythNewsEditor::m_siteName
QString m_siteName
Definition: mythnewseditor.h:35
MythNewsEditor::m_urlEdit
MythUITextEdit * m_urlEdit
Definition: mythnewseditor.h:45
MythNewsEditor::m_cancelButton
MythUIButton * m_cancelButton
Definition: mythnewseditor.h:49
MythNewsEditor::~MythNewsEditor
~MythNewsEditor() override
Definition: mythnewseditor.cpp:39
mythscreentype.h
MythNewsEditor::m_podcastLabelText
MythUIText * m_podcastLabelText
Definition: mythnewseditor.h:42