MythTV  master
editvideometadata.h
Go to the documentation of this file.
1 #ifndef EDITVIDEOMETADATA_H_
2 #define EDITVIDEOMETADATA_H_
3 
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();
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:860
EditMetadataDialog::SetRating
void SetRating()
Definition: editvideometadata.cpp:550
VideoMetadata
Definition: videometadata.h:24
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:782
EditMetadataDialog::SetChild
void SetChild(MythUIButtonListItem *item)
Definition: editvideometadata.cpp:616
MythUIImage
Image widget, displays a single image or multiple images in sequence.
Definition: mythuiimage.h:97
EditMetadataDialog::createBusyDialog
void createBusyDialog(const QString &title)
Definition: editvideometadata.cpp:288
MetadataImageDownload
Definition: metadataimagedownload.h:87
EditMetadataDialog::m_categoryList
MythUIButtonList * m_categoryList
Definition: editvideometadata.h:108
EditMetadataDialog::Create
bool Create() override
Definition: editvideometadata.cpp:54
VideoMetadataListManager
Definition: videometadatalistmanager.h:10
EditMetadataDialog::m_trailerText
MythUIText * m_trailerText
Definition: editvideometadata.h:122
EditMetadataDialog::m_screenshot
MythUIImage * m_screenshot
Definition: editvideometadata.h:128
EditMetadataDialog::OnSearchListSelection
void OnSearchListSelection(const ArtworkInfo &info, VideoArtworkType type)
Definition: editvideometadata.cpp:679
EditMetadataDialog::ToggleWatched
void ToggleWatched()
Definition: editvideometadata.cpp:628
EditMetadataDialog::SaveAndExit
void SaveAndExit()
Definition: editvideometadata.cpp:526
MythScreenStack
Definition: mythscreenstack.h:16
MythUITextEdit
A text entry and edit widget.
Definition: mythuitextedit.h:34
MetadataDownload
Definition: metadatadownload.h:35
EditMetadataDialog::m_bannerButton
MythUIButton * m_bannerButton
Definition: editvideometadata.h:117
EditMetadataDialog::SetScreenshot
void SetScreenshot(QString file)
Definition: editvideometadata.cpp:924
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:502
EditMetadataDialog::m_lengthSpin
MythUISpinBox * m_lengthSpin
Definition: editvideometadata.h:107
EditMetadataDialog::SetLength
void SetLength()
Definition: editvideometadata.cpp:600
build_compdb.file
file
Definition: build_compdb.py:55
EditMetadataDialog::SetSubtitle
void SetSubtitle()
Definition: editvideometadata.cpp:540
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:570
VideoArtworkType
VideoArtworkType
Definition: metadataimagehelper.h:10
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:41
EditMetadataDialog::SetPlot
void SetPlot()
Definition: editvideometadata.cpp:575
EditMetadataDialog::SetSeason
void SetSeason()
Definition: editvideometadata.cpp:580
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:555
EditMetadataDialog::SetInetRef
void SetInetRef()
Definition: editvideometadata.cpp:565
metadatadownload.h
ArtworkInfo
Definition: metadataimagehelper.h:21
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:777
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:907
EditMetadataDialog::m_netScreenshotButton
MythUIButton * m_netScreenshotButton
Definition: editvideometadata.h:126
MythUIButton
A single button widget.
Definition: mythuibutton.h:21
EditMetadataDialog
Definition: editvideometadata.h:19
EditMetadataDialog::m_cachedChildSelection
int m_cachedChildSelection
Definition: editvideometadata.h:138
EditMetadataDialog::FindNetArt
void FindNetArt(VideoArtworkType type)
Definition: editvideometadata.cpp:735
MythUIBusyDialog
Definition: mythprogressdialog.h:36
EditMetadataDialog::SetDirector
void SetDirector()
Definition: editvideometadata.cpp:560
EditMetadataDialog::m_inetrefEdit
MythUITextEdit * m_inetrefEdit
Definition: editvideometadata.h:99
EditMetadataDialog::SetFanart
void SetFanart(QString file)
Definition: editvideometadata.cpp:876
EditMetadataDialog::SetPlayer
void SetPlayer()
Definition: editvideometadata.cpp:605
EditMetadataDialog::m_screenshotText
MythUIText * m_screenshotText
Definition: editvideometadata.h:116
EditMetadataDialog::SetTitle
void SetTitle()
Definition: editvideometadata.cpp:535
EditMetadataDialog::FindCoverArt
void FindCoverArt()
Definition: editvideometadata.cpp:634
EditMetadataDialog::SetUserRating
void SetUserRating()
Definition: editvideometadata.cpp:595
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:15
EditMetadataDialog::Finished
void Finished()
EditMetadataDialog::SetTrailer
void SetTrailer(QString file)
Definition: editvideometadata.cpp:971
EditMetadataDialog::SetEpisode
void SetEpisode()
Definition: editvideometadata.cpp:585
EditMetadataDialog::m_popupStack
MythScreenStack * m_popupStack
Definition: editvideometadata.h:145
EditMetadataDialog::~EditMetadataDialog
~EditMetadataDialog() override
Definition: editvideometadata.cpp:49
EditMetadataDialog::m_taglineEdit
MythUITextEdit * m_taglineEdit
Definition: editvideometadata.h:95
MythUIText
All purpose text widget, displays a text string.
Definition: mythuitext.h:28
EditMetadataDialog::handleDownloadedImages
void handleDownloadedImages(MetadataLookup *lookup)
Definition: editvideometadata.cpp:705
EditMetadataDialog::customEvent
void customEvent(QEvent *levent) override
Definition: editvideometadata.cpp:993
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:622
EditMetadataDialog::m_netFanartButton
MythUIButton * m_netFanartButton
Definition: editvideometadata.h:124
EditMetadataDialog::SetCategory
void SetCategory(MythUIButtonListItem *item)
Definition: editvideometadata.cpp:545
EditMetadataDialog::AddCategory
void AddCategory(const QString &category)
Definition: editvideometadata.cpp:518
EditMetadataDialog::FindNetBanner
void FindNetBanner()
Definition: editvideometadata.cpp:772
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:16
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:767
EditMetadataDialog::m_fanartText
MythUIText * m_fanartText
Definition: editvideometadata.h:120
azlyrics.info
dictionary info
Definition: azlyrics.py:7
EditMetadataDialog::FindBanner
void FindBanner()
Definition: editvideometadata.cpp:813
EditMetadataDialog::m_query
MetadataDownload * m_query
Definition: editvideometadata.h:141
EditMetadataDialog::FindNetCoverArt
void FindNetCoverArt()
Definition: editvideometadata.cpp:762
MythUIButtonList
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
Definition: mythuibuttonlist.h:191
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:590
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:650
EditMetadataDialog::FindTrailer
void FindTrailer()
Definition: editvideometadata.cpp:955
EditMetadataDialog::EditMetadataDialog
EditMetadataDialog(MythScreenStack *lparent, const QString &lname, VideoMetadata *source_metadata, const VideoMetadataListManager &cache)
Definition: editvideometadata.cpp:37
EditMetadataDialog::SetBanner
void SetBanner(QString file)
Definition: editvideometadata.cpp:829
mythscreentype.h
EditMetadataDialog::SetLevel
void SetLevel(MythUIButtonListItem *item)
Definition: editvideometadata.cpp:610
EditMetadataDialog::m_plotEdit
MythUITextEdit * m_plotEdit
Definition: editvideometadata.h:101
EditMetadataDialog::fillWidgets
void fillWidgets()
Definition: editvideometadata.cpp:302