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() = 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
unsigned int slots[4]
Definition: element.c:38
MythUITextEdit * m_titleEdit
A text entry and edit widget.
EditMetadataDialog(MythScreenStack *parent, ArchiveItem *source_metadata)
A single button widget.
Definition: mythuibutton.h:21
bool Create() override
bool keyPressEvent(QKeyEvent *e) override
Key event handler.
void haveResult(bool ok, ArchiveItem *item)
MythUITextEdit * m_subtitleEdit
Screen in which all other widgets are contained and rendered.