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
EditMetadataDialog::FindFanart
void FindFanart()
Definition: editvideometadata.cpp:842
EditMetadataDialog::SetRating
void SetRating()
Definition: editvideometadata.cpp:536
VideoMetadata
Definition: videometadata.h:25
VideoArtworkType
VideoArtworkType
Definition: metadataimagehelper.h:10
EditMetadataDialog::m_bannerText
MythUIText * m_bannerText
Definition: editvideometadata.h:118
EditMetadataDialog::m_busyPopup
MythUIBusyDialog * m_busyPopup
Definition: editvideometadata.h:144
EditMetadataDialog::m_imageDownload
MetadataImageDownload * m_imageDownload
Definition: editvideometadata.h:142
EditMetadataDialog::SetCoverArt
void SetCoverArt(QString file)
Definition: editvideometadata.cpp:768
EditMetadataDialog::SetChild
void SetChild(MythUIButtonListItem *item)
Definition: editvideometadata.cpp:602
MythUIImage
Image widget, displays a single image or multiple images in sequence.
Definition: mythuiimage.h:98
slots
std::array< unsigned int, 4 > slots
Definition: element.cpp:38
EditMetadataDialog::createBusyDialog
void createBusyDialog(const QString &title)
Definition: editvideometadata.cpp:282
MetadataImageDownload
Definition: metadataimagedownload.h:88
EditMetadataDialog::m_categoryList
MythUIButtonList * m_categoryList
Definition: editvideometadata.h:108
EditMetadataDialog::Create
bool Create() override
Definition: editvideometadata.cpp:52
VideoMetadataListManager
Definition: videometadatalistmanager.h:11
EditMetadataDialog::m_trailerText
MythUIText * m_trailerText
Definition: editvideometadata.h:122
title
QString title
Definition: mythplugins/mytharchive/mytharchivehelper/main.cpp:639
EditMetadataDialog::m_screenshot
MythUIImage * m_screenshot
Definition: editvideometadata.h:128
EditMetadataDialog::OnSearchListSelection
void OnSearchListSelection(const ArtworkInfo &info, VideoArtworkType type)
Definition: editvideometadata.cpp:665
EditMetadataDialog::ToggleWatched
void ToggleWatched()
Definition: editvideometadata.cpp:614
EditMetadataDialog::SaveAndExit
void SaveAndExit()
Definition: editvideometadata.cpp:512
MythScreenStack
Definition: mythscreenstack.h:16
MythUITextEdit
A text entry and edit widget.
Definition: mythuitextedit.h:33
MetadataDownload
Definition: metadatadownload.h:36
category
QString category
Definition: mythplugins/mytharchive/mytharchivehelper/main.cpp:1425
EditMetadataDialog::m_bannerButton
MythUIButton * m_bannerButton
Definition: editvideometadata.h:117
EditMetadataDialog::SetScreenshot
void SetScreenshot(QString file)
Definition: editvideometadata.cpp:904
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition: mythscreentype.h:45
EditMetadataDialog::m_homepageEdit
MythUITextEdit * m_homepageEdit
Definition: editvideometadata.h:100
EditMetadataDialog::NewCategoryPopup
void NewCategoryPopup()
Definition: editvideometadata.cpp:488
EditMetadataDialog::m_lengthSpin
MythUISpinBox * m_lengthSpin
Definition: editvideometadata.h:107
EditMetadataDialog::SetLength
void SetLength()
Definition: editvideometadata.cpp:586
build_compdb.file
file
Definition: build_compdb.py:55
EditMetadataDialog::SetSubtitle
void SetSubtitle()
Definition: editvideometadata.cpp:526
EditMetadataDialog::m_directorEdit
MythUITextEdit * m_directorEdit
Definition: editvideometadata.h:98
EditMetadataDialog::m_subtitleEdit
MythUITextEdit * m_subtitleEdit
Definition: editvideometadata.h:94
EditMetadataDialog::SetHomepage
void SetHomepage()
Definition: editvideometadata.cpp:556
MetadataLookup
Definition: metadatacommon.h:87
EditMetadataDialog::m_origMetadata
VideoMetadata * m_origMetadata
Definition: editvideometadata.h:87
EditMetadataDialog::m_coverartText
MythUIText * m_coverartText
Definition: editvideometadata.h:114
EditMetadataDialog::m_levelList
MythUIButtonList * m_levelList
Definition: editvideometadata.h:109
MythUIButtonListItem
Definition: mythuibuttonlist.h:28
EditMetadataDialog::SetPlot
void SetPlot()
Definition: editvideometadata.cpp:561
EditMetadataDialog::SetSeason
void SetSeason()
Definition: editvideometadata.cpp:566
EditMetadataDialog::m_browseCheck
MythUICheckBox * m_browseCheck
Definition: editvideometadata.h:111
EditMetadataDialog::m_metaCache
const VideoMetadataListManager & m_metaCache
Definition: editvideometadata.h:140
EditMetadataDialog::SetTagline
void SetTagline()
Definition: editvideometadata.cpp:541
EditMetadataDialog::SetInetRef
void SetInetRef()
Definition: editvideometadata.cpp:551
metadatadownload.h
ArtworkInfo
Definition: metadataimagehelper.h:22
metadataimagedownload.h
EditMetadataDialog::m_screenshotButton
MythUIButton * m_screenshotButton
Definition: editvideometadata.h:115
EditMetadataDialog::m_coverartButton
MythUIButton * m_coverartButton
Definition: editvideometadata.h:113
EditMetadataDialog::FindNetScreenshot
void FindNetScreenshot()
Definition: editvideometadata.cpp:763
EditMetadataDialog::m_coverart
MythUIImage * m_coverart
Definition: editvideometadata.h:127
EditMetadataDialog::m_watchedCheck
MythUICheckBox * m_watchedCheck
Definition: editvideometadata.h:112
EditMetadataDialog::m_userRatingSpin
MythUISpinBox * m_userRatingSpin
Definition: editvideometadata.h:106
EditMetadataDialog::m_doneButton
MythUIButton * m_doneButton
Definition: editvideometadata.h:131
EditMetadataDialog::FindScreenshot
void FindScreenshot()
Definition: editvideometadata.cpp:887
EditMetadataDialog::m_netScreenshotButton
MythUIButton * m_netScreenshotButton
Definition: editvideometadata.h:126
MythUIButton
A single button widget.
Definition: mythuibutton.h:22
EditMetadataDialog
Definition: editvideometadata.h:20
EditMetadataDialog::m_cachedChildSelection
int m_cachedChildSelection
Definition: editvideometadata.h:138
EditMetadataDialog::FindNetArt
void FindNetArt(VideoArtworkType type)
Definition: editvideometadata.cpp:721
MythUIBusyDialog
Definition: mythprogressdialog.h:37
EditMetadataDialog::SetDirector
void SetDirector()
Definition: editvideometadata.cpp:546
EditMetadataDialog::m_inetrefEdit
MythUITextEdit * m_inetrefEdit
Definition: editvideometadata.h:99
EditMetadataDialog::SetFanart
void SetFanart(QString file)
Definition: editvideometadata.cpp:858
EditMetadataDialog::SetPlayer
void SetPlayer()
Definition: editvideometadata.cpp:591
EditMetadataDialog::m_screenshotText
MythUIText * m_screenshotText
Definition: editvideometadata.h:116
EditMetadataDialog::SetTitle
void SetTitle()
Definition: editvideometadata.cpp:521
EditMetadataDialog::FindCoverArt
void FindCoverArt()
Definition: editvideometadata.cpp:620
EditMetadataDialog::SetUserRating
void SetUserRating()
Definition: editvideometadata.cpp:581
EditMetadataDialog::m_ratingEdit
MythUITextEdit * m_ratingEdit
Definition: editvideometadata.h:97
MythUICheckBox
A checkbox widget supporting three check states - on,off,half and two conditions - selected and unsel...
Definition: mythuicheckbox.h:16
EditMetadataDialog::Finished
void Finished()
EditMetadataDialog::SetTrailer
void SetTrailer(QString file)
Definition: editvideometadata.cpp:949
EditMetadataDialog::SetEpisode
void SetEpisode()
Definition: editvideometadata.cpp:571
EditMetadataDialog::m_popupStack
MythScreenStack * m_popupStack
Definition: editvideometadata.h:145
EditMetadataDialog::~EditMetadataDialog
~EditMetadataDialog() override
Definition: editvideometadata.cpp:47
EditMetadataDialog::m_taglineEdit
MythUITextEdit * m_taglineEdit
Definition: editvideometadata.h:95
MythUIText
All purpose text widget, displays a text string.
Definition: mythuitext.h:29
EditMetadataDialog::handleDownloadedImages
void handleDownloadedImages(MetadataLookup *lookup)
Definition: editvideometadata.cpp:691
EditMetadataDialog::customEvent
void customEvent(QEvent *levent) override
Definition: editvideometadata.cpp:969
EditMetadataDialog::m_netBannerButton
MythUIButton * m_netBannerButton
Definition: editvideometadata.h:125
EditMetadataDialog::m_seasonSpin
MythUISpinBox * m_seasonSpin
Definition: editvideometadata.h:103
EditMetadataDialog::ToggleBrowse
void ToggleBrowse()
Definition: editvideometadata.cpp:608
EditMetadataDialog::m_netFanartButton
MythUIButton * m_netFanartButton
Definition: editvideometadata.h:124
EditMetadataDialog::SetCategory
void SetCategory(MythUIButtonListItem *item)
Definition: editvideometadata.cpp:531
EditMetadataDialog::AddCategory
void AddCategory(const QString &category)
Definition: editvideometadata.cpp:504
EditMetadataDialog::FindNetBanner
void FindNetBanner()
Definition: editvideometadata.cpp:758
EditMetadataDialog::m_banner
MythUIImage * m_banner
Definition: editvideometadata.h:129
EditMetadataDialog::m_episodeSpin
MythUISpinBox * m_episodeSpin
Definition: editvideometadata.h:104
MythUISpinBox
A widget for offering a range of numerical values where only the the bounding values and interval are...
Definition: mythuispinbox.h:17
EditMetadataDialog::m_workingMetadata
VideoMetadata * m_workingMetadata
Definition: editvideometadata.h:86
EditMetadataDialog::m_fanart
MythUIImage * m_fanart
Definition: editvideometadata.h:130
EditMetadataDialog::m_childList
MythUIButtonList * m_childList
Definition: editvideometadata.h:110
EditMetadataDialog::m_trailerButton
MythUIButton * m_trailerButton
Definition: editvideometadata.h:121
EditMetadataDialog::FindNetFanart
void FindNetFanart()
Definition: editvideometadata.cpp:753
EditMetadataDialog::m_fanartText
MythUIText * m_fanartText
Definition: editvideometadata.h:120
EditMetadataDialog::FindBanner
void FindBanner()
Definition: editvideometadata.cpp:797
EditMetadataDialog::m_query
MetadataDownload * m_query
Definition: editvideometadata.h:141
EditMetadataDialog::FindNetCoverArt
void FindNetCoverArt()
Definition: editvideometadata.cpp:748
MythUIButtonList
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
Definition: mythuibuttonlist.h:144
EditMetadataDialog::m_yearSpin
MythUISpinBox * m_yearSpin
Definition: editvideometadata.h:105
EditMetadataDialog::m_titleEdit
MythUITextEdit * m_titleEdit
Definition: editvideometadata.h:93
metadatacommon.h
EditMetadataDialog::SetYear
void SetYear()
Definition: editvideometadata.cpp:576
EditMetadataDialog::m_playerEdit
MythUITextEdit * m_playerEdit
Definition: editvideometadata.h:96
EditMetadataDialog::m_fanartButton
MythUIButton * m_fanartButton
Definition: editvideometadata.h:119
EditMetadataDialog::m_netCoverartButton
MythUIButton * m_netCoverartButton
Definition: editvideometadata.h:123
EditMetadataDialog::OnArtworkSearchDone
void OnArtworkSearchDone(MetadataLookup *lookup)
Definition: editvideometadata.cpp:636
EditMetadataDialog::FindTrailer
void FindTrailer()
Definition: editvideometadata.cpp:933
EditMetadataDialog::EditMetadataDialog
EditMetadataDialog(MythScreenStack *lparent, const QString &lname, VideoMetadata *source_metadata, const VideoMetadataListManager &cache)
Definition: editvideometadata.cpp:34
EditMetadataDialog::SetBanner
void SetBanner(QString file)
Definition: editvideometadata.cpp:813
mythscreentype.h
EditMetadataDialog::SetLevel
void SetLevel(MythUIButtonListItem *item)
Definition: editvideometadata.cpp:596
EditMetadataDialog::m_plotEdit
MythUITextEdit * m_plotEdit
Definition: editvideometadata.h:101
EditMetadataDialog::fillWidgets
void fillWidgets()
Definition: editvideometadata.cpp:296