MythTV
master
mythplugins
mytharchive
mytharchive
editmetadata.h
Go to the documentation of this file.
1
#ifndef EDITMETADATA_H_
2
#define EDITMETADATA_H_
3
4
#include <iostream>
5
6
// qt
7
#include <QKeyEvent>
8
9
// myth
10
#include <
libmythui/mythscreentype.h
>
11
12
// mytharchive
13
#include "
archiveutil.h
"
14
15
class
MythUITextEdit
;
16
class
MythUIButton
;
17
18
class
EditMetadataDialog
:
public
MythScreenType
19
{
20
21
Q_OBJECT
22
23
public
:
24
25
EditMetadataDialog
(
MythScreenStack
*parent,
ArchiveItem
*source_metadata)
26
:
MythScreenType
(parent,
"EditMetadataDialog"
),
27
m_sourceMetadata
(source_metadata) {}
28
~EditMetadataDialog
()
override
=
default
;
29
30
bool
Create
(
void
)
override
;
// MythScreenType
31
bool
keyPressEvent
(QKeyEvent *e)
override
;
// MythScreenType
32
33
signals:
34
void
haveResult
(
bool
ok,
ArchiveItem
*item);
35
36
public
slots:
37
38
void
okPressed
(
void
);
39
void
cancelPressed
(
void
);
40
private
:
41
ArchiveItem
*
m_sourceMetadata
{
nullptr
};
42
43
MythUITextEdit
*
m_titleEdit
{
nullptr
};
44
MythUITextEdit
*
m_subtitleEdit
{
nullptr
};
45
MythUITextEdit
*
m_descriptionEdit
{
nullptr
};
46
MythUITextEdit
*
m_startdateEdit
{
nullptr
};
47
MythUITextEdit
*
m_starttimeEdit
{
nullptr
};
48
MythUIButton
*
m_cancelButton
{
nullptr
};
49
MythUIButton
*
m_okButton
{
nullptr
};
50
};
51
52
#endif
EditMetadataDialog::Create
bool Create() override
Definition:
editvideometadata.cpp:54
EditMetadataDialog::haveResult
void haveResult(bool ok, ArchiveItem *item)
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
EditMetadataDialog::m_okButton
MythUIButton * m_okButton
Definition:
editmetadata.h:49
EditMetadataDialog::m_subtitleEdit
MythUITextEdit * m_subtitleEdit
Definition:
editvideometadata.h:94
EditMetadataDialog::m_sourceMetadata
ArchiveItem * m_sourceMetadata
Definition:
editmetadata.h:41
EditMetadataDialog::cancelPressed
void cancelPressed(void)
Definition:
editmetadata.cpp:73
EditMetadataDialog::m_cancelButton
MythUIButton * m_cancelButton
Definition:
editmetadata.h:48
archiveutil.h
EditMetadataDialog::okPressed
void okPressed(void)
Definition:
editmetadata.cpp:60
MythUIButton
A single button widget.
Definition:
mythuibutton.h:21
EditMetadataDialog
Definition:
editvideometadata.h:19
EditMetadataDialog::~EditMetadataDialog
~EditMetadataDialog() override
Definition:
editvideometadata.cpp:49
EditMetadataDialog::m_descriptionEdit
MythUITextEdit * m_descriptionEdit
Definition:
editmetadata.h:45
EditMetadataDialog::m_startdateEdit
MythUITextEdit * m_startdateEdit
Definition:
editmetadata.h:46
EditMetadataDialog::EditMetadataDialog
EditMetadataDialog(MythScreenStack *parent, ArchiveItem *source_metadata)
Definition:
editmetadata.h:25
ArchiveItem
Definition:
archiveutil.h:50
EditMetadataDialog::m_starttimeEdit
MythUITextEdit * m_starttimeEdit
Definition:
editmetadata.h:47
EditMetadataDialog::keyPressEvent
bool keyPressEvent(QKeyEvent *e) override
Key event handler.
Definition:
editmetadata.cpp:49
EditMetadataDialog::m_titleEdit
MythUITextEdit * m_titleEdit
Definition:
editvideometadata.h:93
mythscreentype.h
Generated on Tue Jan 7 2025 03:18:21 for MythTV by
1.8.17