MythTV  master
editvideometadata.h
Go to the documentation of this file.
1 #ifndef EDITVIDEOMETADATA_H_
2 #define EDITVIDEOMETADATA_H_
3 
4 #include "mythscreentype.h"
5 #include "metadatacommon.h"
6 #include "metadatadownload.h"
8 
9 class VideoMetadata;
11 class MythUIButtonList;
13 class MythUIText;
14 class MythUITextEdit;
15 class MythUIButton;
16 class MythUISpinBox;
17 class MythUICheckBox;
18 
20 {
21  Q_OBJECT
22 
23  public:
25  const QString& lname,
26  VideoMetadata *source_metadata,
27  const VideoMetadataListManager &cache);
28  ~EditMetadataDialog() override;
29 
30  bool Create() override; // MythScreenType
31  void customEvent(QEvent *levent) override; // MythUIType
32 
33  void fillWidgets();
34 
35  protected:
36  void createBusyDialog(const QString& title);
37 
38  signals:
39  void Finished();
40 
41  public slots:
42  void SaveAndExit();
43  void SetTitle();
44  void SetSubtitle();
45  void SetTagline();
46  void SetRating();
47  void SetDirector();
48  void SetInetRef();
49  void SetHomepage();
50  void SetPlot();
51  void SetYear();
52  void SetUserRating();
53  void SetLength();
55  void SetPlayer();
56  void SetSeason();
57  void SetEpisode();
58  void SetLevel(MythUIButtonListItem *item);
59  void SetChild(MythUIButtonListItem *item);
60  void ToggleBrowse();
61  void ToggleWatched();
62  void FindCoverArt();
63  void FindBanner();
64  void FindFanart();
65  void FindScreenshot();
66  void FindTrailer();
67  void NewCategoryPopup();
68  void AddCategory(const QString& category);
69  void SetCoverArt(QString file);
70  void SetBanner(QString file);
71  void SetFanart(QString file);
72  void SetScreenshot(QString file);
73  void SetTrailer(QString file);
75  void FindNetCoverArt();
76  void FindNetBanner();
77  void FindNetFanart();
78  void FindNetScreenshot();
79  void OnSearchListSelection(const ArtworkInfo& info,
81 
82  private:
83  void OnArtworkSearchDone(MetadataLookup *lookup);
85 
88 
89  //
90  // GUI stuff
91  //
92 
102 
129  MythUIImage *m_banner {nullptr};
130  MythUIImage *m_fanart {nullptr};
132 
133  //
134  // Remember video-to-play-next index number when the user is toggling
135  // child videos on and off
136  //
137 
139 
143 
146 };
147 
148 #endif
MythUIImage * m_screenshot
void FindNetArt(VideoArtworkType type)
MythUIButton * m_screenshotButton
MythUICheckBox * m_watchedCheck
void SetTrailer(QString file)
MythUIText * m_fanartText
unsigned int slots[4]
Definition: element.c:38
void SetFanart(QString file)
MythUITextEdit * m_homepageEdit
MythUITextEdit * m_ratingEdit
A widget for offering a range of numerical values where only the the bounding values and interval are...
Definition: mythuispinbox.h:16
All purpose text widget, displays a text string.
Definition: mythuitext.h:28
EditMetadataDialog(MythScreenStack *lparent, const QString &lname, VideoMetadata *source_metadata, const VideoMetadataListManager &cache)
void SetBanner(QString file)
MythUIText * m_screenshotText
A checkbox widget supporting three check states - on,off,half and two conditions - selected and unsel...
MythScreenStack * m_popupStack
MythUISpinBox * m_seasonSpin
void SetCategory(MythUIButtonListItem *item)
Image widget, displays a single image or multiple images in sequence.
Definition: mythuiimage.h:97
VideoArtworkType
MythUICheckBox * m_browseCheck
MythUIButton * m_netBannerButton
MythUITextEdit * m_taglineEdit
void customEvent(QEvent *levent) override
MythUIText * m_bannerText
MetadataImageDownload * m_imageDownload
MythUIButton * m_netFanartButton
MythUIImage * m_banner
MythUIButton * m_trailerButton
void AddCategory(const QString &category)
void handleDownloadedImages(MetadataLookup *lookup)
MythUIButton * m_netScreenshotButton
MythUIButton * m_coverartButton
MythUISpinBox * m_yearSpin
MythUITextEdit * m_titleEdit
VideoMetadata * m_workingMetadata
MetadataDownload * m_query
MythUITextEdit * m_plotEdit
void OnArtworkSearchDone(MetadataLookup *lookup)
MythUIButton * m_bannerButton
void SetScreenshot(QString file)
void SetLevel(MythUIButtonListItem *item)
~EditMetadataDialog() override
A text entry and edit widget.
MythUIButtonList * m_levelList
MythUIBusyDialog * m_busyPopup
MythUIButton * m_fanartButton
MythUIButton * m_netCoverartButton
MythUIButtonList * m_categoryList
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
void OnSearchListSelection(const ArtworkInfo &info, VideoArtworkType type)
MythUIButtonList * m_childList
void SetCoverArt(QString file)
void SetChild(MythUIButtonListItem *item)
A single button widget.
Definition: mythuibutton.h:21
MythUISpinBox * m_episodeSpin
void createBusyDialog(const QString &title)
bool Create() override
MythUISpinBox * m_lengthSpin
MythUITextEdit * m_directorEdit
MythUITextEdit * m_playerEdit
VideoMetadata * m_origMetadata
MythUITextEdit * m_subtitleEdit
const VideoMetadataListManager & m_metaCache
MythUIText * m_coverartText
Screen in which all other widgets are contained and rendered.
MythUIImage * m_coverart
MythUIButton * m_doneButton
MythUIText * m_trailerText
MythUIImage * m_fanart
MythUITextEdit * m_inetrefEdit
MythUISpinBox * m_userRatingSpin