MythTV  master
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 <mythscreentype.h>
11 
12 // mytharchive
13 #include "archiveutil.h"
14 
15 class MythUITextEdit;
16 class MythUIButton;
17 
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:
42 
43  MythUITextEdit *m_titleEdit {nullptr};
44  MythUITextEdit *m_subtitleEdit {nullptr};
50 };
51 
52 #endif
e
QDomElement e
Definition: mythplugins/mytharchive/mytharchivehelper/main.cpp:1420
EditMetadataDialog::~EditMetadataDialog
~EditMetadataDialog() override=default
EditMetadataDialog::haveResult
void haveResult(bool ok, ArchiveItem *item)
EditMetadataDialog::Create
bool Create(void) override
MythScreenStack
Definition: mythscreenstack.h:16
MythUITextEdit
A text entry and edit widget.
Definition: mythuitextedit.h:33
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition: mythscreentype.h:45
EditMetadataDialog::m_okButton
MythUIButton * m_okButton
Definition: mytharchive/mytharchive/editmetadata.h:49
EditMetadataDialog::m_subtitleEdit
MythUITextEdit * m_subtitleEdit
Definition: editvideometadata.h:94
EditMetadataDialog::m_sourceMetadata
ArchiveItem * m_sourceMetadata
Definition: mytharchive/mytharchive/editmetadata.h:41
EditMetadataDialog::cancelPressed
void cancelPressed(void)
Definition: mytharchive/mytharchive/editmetadata.cpp:73
EditMetadataDialog::m_cancelButton
MythUIButton * m_cancelButton
Definition: mytharchive/mytharchive/editmetadata.h:48
archiveutil.h
EditMetadataDialog::okPressed
void okPressed(void)
Definition: mytharchive/mytharchive/editmetadata.cpp:60
MythUIButton
A single button widget.
Definition: mythuibutton.h:22
EditMetadataDialog
Definition: editvideometadata.h:20
EditMetadataDialog::m_descriptionEdit
MythUITextEdit * m_descriptionEdit
Definition: mytharchive/mytharchive/editmetadata.h:45
EditMetadataDialog::m_startdateEdit
MythUITextEdit * m_startdateEdit
Definition: mytharchive/mytharchive/editmetadata.h:46
EditMetadataDialog::EditMetadataDialog
EditMetadataDialog(MythScreenStack *parent, ArchiveItem *source_metadata)
Definition: mytharchive/mytharchive/editmetadata.h:25
ArchiveItem
Definition: archiveutil.h:51
EditMetadataDialog::m_starttimeEdit
MythUITextEdit * m_starttimeEdit
Definition: mytharchive/mytharchive/editmetadata.h:47
EditMetadataDialog::keyPressEvent
bool keyPressEvent(QKeyEvent *e) override
Key event handler.
Definition: mytharchive/mytharchive/editmetadata.cpp:49
EditMetadataDialog::m_titleEdit
MythUITextEdit * m_titleEdit
Definition: editvideometadata.h:93
mythscreentype.h