MythTV
master
mythplugins
mythnews
mythnews
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
10
#include <
libmythui/mythscreentype.h
>
11
12
class
MythUIText
;
13
class
MythUITextEdit
;
14
class
MythUIButton
;
15
class
MythUICheckBox
;
16
class
NewsSite
;
17
21
class
MythNewsEditor
:
public
MythScreenType
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
};
40
MythUIText
*
m_nameLabelText
{
nullptr
};
41
MythUIText
*
m_urlLabelText
{
nullptr
};
42
MythUIText
*
m_iconLabelText
{
nullptr
};
43
MythUIText
*
m_podcastLabelText
{
nullptr
};
44
45
MythUITextEdit
*
m_nameEdit
{
nullptr
};
46
MythUITextEdit
*
m_urlEdit
{
nullptr
};
47
MythUITextEdit
*
m_iconEdit
{
nullptr
};
48
49
MythUIButton
*
m_okButton
{
nullptr
};
50
MythUIButton
*
m_cancelButton
{
nullptr
};
51
52
MythUICheckBox
*
m_podcastCheck
{
nullptr
};
53
54
private
slots:
55
void
Save
(
void
);
56
};
57
58
#endif
/* MYTHNEWSEDITOR_H */
MythNewsEditor
Definition:
mythnewseditor.h:22
MythNewsEditor::m_editing
bool m_editing
Definition:
mythnewseditor.h:37
MythNewsEditor::m_urlEdit
MythUITextEdit * m_urlEdit
Definition:
mythnewseditor.h:46
MythNewsEditor::Save
void Save(void)
Definition:
mythnewseditor.cpp:124
MythNewsEditor::m_cancelButton
MythUIButton * m_cancelButton
Definition:
mythnewseditor.h:50
MythNewsEditor::m_podcastLabelText
MythUIText * m_podcastLabelText
Definition:
mythnewseditor.h:43
MythNewsEditor::m_iconEdit
MythUITextEdit * m_iconEdit
Definition:
mythnewseditor.h:47
MythNewsEditor::m_okButton
MythUIButton * m_okButton
Definition:
mythnewseditor.h:49
MythNewsEditor::m_site
NewsSite * m_site
Definition:
mythnewseditor.h:35
MythNewsEditor::m_iconLabelText
MythUIText * m_iconLabelText
Definition:
mythnewseditor.h:42
MythNewsEditor::m_siteName
QString m_siteName
Definition:
mythnewseditor.h:36
MythNewsEditor::m_lock
QRecursiveMutex m_lock
Definition:
mythnewseditor.h:34
MythNewsEditor::m_nameLabelText
MythUIText * m_nameLabelText
Definition:
mythnewseditor.h:40
MythNewsEditor::m_titleText
MythUIText * m_titleText
Definition:
mythnewseditor.h:39
MythNewsEditor::m_nameEdit
MythUITextEdit * m_nameEdit
Definition:
mythnewseditor.h:45
MythNewsEditor::MythNewsEditor
MythNewsEditor(NewsSite *site, bool edit, MythScreenStack *parent, const QString &name="MythNewsEditor")
Creates a new MythNewsEditor Screen.
Definition:
mythnewseditor.cpp:29
MythNewsEditor::keyPressEvent
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
Definition:
mythnewseditor.cpp:110
MythNewsEditor::Create
bool Create(void) override
Definition:
mythnewseditor.cpp:44
MythNewsEditor::m_urlLabelText
MythUIText * m_urlLabelText
Definition:
mythnewseditor.h:41
MythNewsEditor::~MythNewsEditor
~MythNewsEditor() override
Definition:
mythnewseditor.cpp:39
MythNewsEditor::m_podcastCheck
MythUICheckBox * m_podcastCheck
Definition:
mythnewseditor.h:52
MythScreenStack
Definition:
mythscreenstack.h:17
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition:
mythscreentype.h:46
MythUIButton
A single button widget.
Definition:
mythuibutton.h:22
MythUICheckBox
A checkbox widget supporting three check states - on,off,half and two conditions - selected and unsel...
Definition:
mythuicheckbox.h:16
MythUITextEdit
A text entry and edit widget.
Definition:
mythuitextedit.h:35
MythUIText
All purpose text widget, displays a text string.
Definition:
mythuitext.h:29
NewsSite
Definition:
newssite.h:51
mythscreentype.h
Generated on Sun Dec 21 2025 03:16:55 for MythTV by
1.9.4