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
12class MythUIText;
13class MythUITextEdit;
14class MythUIButton;
15class MythUICheckBox;
16class 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;
38
44
48
51
53
54 private slots:
55 void Save(void);
56};
57
58#endif /* MYTHNEWSEDITOR_H */
MythUITextEdit * m_urlEdit
MythUIButton * m_cancelButton
MythUIText * m_podcastLabelText
MythUITextEdit * m_iconEdit
MythUIButton * m_okButton
NewsSite * m_site
MythUIText * m_iconLabelText
QString m_siteName
QRecursiveMutex m_lock
MythUIText * m_nameLabelText
MythUIText * m_titleText
MythUITextEdit * m_nameEdit
MythNewsEditor(NewsSite *site, bool edit, MythScreenStack *parent, const QString &name="MythNewsEditor")
Creates a new MythNewsEditor Screen.
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
bool Create(void) override
MythUIText * m_urlLabelText
~MythNewsEditor() override
MythUICheckBox * m_podcastCheck
Screen in which all other widgets are contained and rendered.
A single button widget.
Definition: mythuibutton.h:22
A checkbox widget supporting three check states - on,off,half and two conditions - selected and unsel...
A text entry and edit widget.
All purpose text widget, displays a text string.
Definition: mythuitext.h:29