103 bool automode =
false);
122 void popupClosed(
const QString& which,
int result);
164 const QString& gpnode = QString(),
int levels = 0);
Basic menu dialog, message and a list of options.
Screen in which all other widgets are contained and rendered.
Image widget, displays a single image or multiple images in sequence.
This widget is used for grouping other widgets for display when a particular named state is called.
All purpose text widget, displays a text string.
MythUIStateType * m_videoLevelState
void SwitchManager()
Switch to Video Manager View.
void OnParentalChange(int amount)
void VideoMenu()
Pop up a MythUI "Playback Menu" for MythVideo.
void playFolder()
Play all the items in the selected folder.
void ShowMetadataSettings()
Pop up a MythUI Menu for MythVideo Metadata Settings.
void popupClosed(const QString &which, int result)
void SwitchVideoUserRatingGroup()
Switch to User Rating browse mode.
void ShowPlayerSettings()
Pop up a MythUI Menu for MythVideo Player Settings.
MythUIStateType * m_trailerState
static VideoMetadata * GetMetadata(MythUIButtonListItem *item)
Retrieve the Database Metadata for a given MythUIButtonListItem.
void OnVideoImageSetDone(VideoMetadata *metadata)
bool goBack()
Move one level up in the tree.
MythUIImage * m_screenshot
void setParentalLevel(ParentalLevel::Level level)
Set the parental level for the library.
void createBusyDialog(const QString &title)
Create a busy dialog, used during metadata search, etc.
void SwitchVideoYearGroup()
Switch to Year browse mode.
void SwitchVideoTVMovieGroup()
Switch to Television/Movie browse mode.
void handleDynamicDirSelect(MythGenericTree *node)
Request the latest metadata for a folder.
void fetchVideos()
Build the buttonlist/tree.
void StartVideoImageSet(VideoMetadata *metadata)
void SetCurrentNode(MythGenericTree *node)
Switch to a given MythGenericTree node.
MythMenu * CreateViewMenu()
Create a MythMenu for MythVideo Views.
void SwitchLayout(DialogType type, BrowseType browse)
Handle a layout or browse mode switch.
void createFetchDialog(VideoMetadata *metadata)
Create a fetch notification, used during metadata search.
MythUIStateType * m_userRatingState
QString GetFirstImage(MythGenericTree *node, const QString &type, const QString &gpnode=QString(), int levels=0)
Find the first image of "type" within a folder structure.
void shiftParental(int amount)
Shift the parental level for the library by an integer amount.
static QString GetCoverImage(MythGenericTree *node)
A "hunt" for cover art to apply for a folder item.
void createOkDialog(const QString &title)
Create a MythUI "OK" Dialog.
bool DoItemDetailShow()
Display the Item Detail Popup.
MythUIButtonList * m_videoButtonList
MythUIStateType * m_studioState
MythUIImage * m_coverImage
void SwitchVideoGenreGroup()
Switch to Genre browse mode.
void refreshData()
Reloads the tree without invalidating the data.
void ToggleFlatView()
Toggle Flat View.
virtual void loadData()
load the data used to build the ButtonTree/List for MythVideo.
static QString GetBanner(MythGenericTree *node)
Find the Banner for a given node.
void SwitchVideoCategoryGroup()
Switch to Category browse mode.
MythDialogBox * m_menuPopup
void handleDirSelect(MythGenericTree *node)
Descend into a selected folder.
void DisplayMenu()
Pop up a MythUI Menu for MythVideo Global Functions.
void searchComplete(const QString &string)
After using incremental search, move to the selected item.
void ShowCastDialog()
Display the Cast if the selected item.
void customEvent(QEvent *levent) override
void SwitchVideoStudioGroup()
Switch to Studio browse mode.
MythUIText * m_positionText
MythMenu * CreateMetadataBrowseMenu()
Create a MythMenu for MythVideo Metadata Browse modes.
void SwitchTree()
Switch to Tree (List) View.
static QString GetScreenshot(MythGenericTree *node)
Find the Screenshot for a given node.
MythMenu * CreateSettingsMenu()
Create a MythMenu for MythVideo Settings.
static VideoListDeathDelayPtr & GetSavedVideoList()
QPointer< class VideoListDeathDelay > VideoListDeathDelayPtr
static void UpdateWatchedState(MythUIButtonListItem *item)
Update the watched state for a given ButtonListItem from the database.
void reloadData()
Reloads the tree after having invalidated the data.
void SwitchVideoFolderGroup()
Switch to Folder (filesystem) browse mode.
virtual MythUIButtonListItem * GetItemCurrent()
MythMenu * CreateManageMenu()
Create a MythMenu for metadata management.
static QString GetFanart(MythGenericTree *node)
Find the Fanart for a given node.
void UpdateItem(MythUIButtonListItem *item)
Update the visible representation of a MythUIButtonListItem.
void UpdateVisible(MythUIButtonListItem *item)
Update playback state for for a given visible ButtonListItem.
void playTrailer()
Play the trailer associated with the selected item.
MythUIStateType * m_parentalLevelState
void SwitchVideoCastGroup()
Switch to Cast browse mode.
void playVideoWithTrailers()
Play the selected item w/ a User selectable # of trailers.
void ViewPlot()
Display a MythUI Popup with the selected item's plot.
void OnVideoSearchDone(MetadataLookup *lookup)
void UpdatePosition()
Called after the screen is created by MythScreenStack.
class VideoDialogPrivate * m_d
void OnVideoSearchListSelection(RefCountHandler< MetadataLookup > lookup)
void SwitchGallery()
Switch to Gallery View.
void UpdateText(MythUIButtonListItem *item)
Update the visible text values for a given ButtonListItem.
void ChangeFilter()
Change the filtering of the library.
void handleSelect(MythUIButtonListItem *item)
Handle SELECT action for a given MythUIButtonListItem.
void playbackStateChanged(const QString &filename)
static QString RemoteImageCheck(const QString &host, const QString &filename)
Search for a given (image) filename in the Video SG.
void SwitchBrowse()
Switch to Browser View.
void playVideoAlt()
Play the selected item in an alternate player.
void dismissFetchDialog(VideoMetadata *metadata, bool ok)
void playVideo()
Play the selected item.
void searchStart()
Create an incremental search dialog for the current tree level.
MythMenu * CreatePlayMenu()
Create a "Play Menu" for MythVideo.
void SwitchVideoInsertDateGroup()
Switch to Insert Date browse mode.
MetadataFactory * m_metadataFactory
bool keyPressEvent(QKeyEvent *levent) override
Handle keypresses and keybindings.
void ToggleBrowseMode()
Toggle the browseable status for the selected item.
MythMenu * CreateInfoMenu()
Create a MythMenu for Info pertaining to the selected item.
VideoDialog(MythScreenStack *lparent, const QString &lname, const VideoListPtr &video_list, DialogType type, BrowseType browse)
void OnRemoveVideo(bool dodelete)
MythScreenStack * m_mainStack
MythUIStateType * m_watchedState
MythUIStateType * m_bookmarkState
void Load() override
Called after the screen is created by MythScreenStack.
MythUIBusyDialog * m_busyPopup
virtual MythUIButtonListItem * GetItemByMetadata(VideoMetadata *metadata)
void scanFinished(bool dbChanged)
MythScreenStack * m_popupStack
MythUIButtonTree * m_videoButtonTree
void ShowExtensionSettings()
Pop up a MythUI Menu for MythVideo filte Type Settings.
void SwitchVideoDirectorGroup()
Switch to Director browse mode.
MythUIText * m_novideoText
~VideoListDeathDelay() override
VideoDialog::VideoListPtr GetSaved()
static constexpr std::chrono::milliseconds kDelayTimeMS
VideoListDeathDelay(const VideoDialog::VideoListPtr &toSave)
class VideoListDeathDelayPrivate * m_d