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");
28 
29  bool Create(void) override; // MythScreenType
30  bool keyPressEvent(QKeyEvent*) 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 */
unsigned int slots[4]
Definition: element.c:38
All purpose text widget, displays a text string.
Definition: mythuitext.h:28
NewsSite * m_site
A checkbox widget supporting three check states - on,off,half and two conditions - selected and unsel...
MythUITextEdit * m_nameEdit
MythUICheckBox * m_podcastCheck
bool keyPressEvent(QKeyEvent *) override
Key event handler.
QString m_siteName
MythUIButton * m_cancelButton
MythUIText * m_urlLabelText
MythUITextEdit * m_iconEdit
A text entry and edit widget.
MythUIText * m_titleText
const char * name
Definition: ParseText.cpp:328
bool Create(void) override
A single button widget.
Definition: mythuibutton.h:21
MythNewsEditor(NewsSite *site, bool edit, MythScreenStack *parent, const QString &name="MythNewsEditor")
Creates a new MythNewsEditor Screen.
MythUITextEdit * m_urlEdit
Screen in which all other widgets are contained and rendered.
MythUIText * m_podcastLabelText
MythUIButton * m_okButton
MythUIText * m_nameLabelText
MythUIText * m_iconLabelText