MythTV  master
Public Types | Public Slots | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | Static Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
VideoDialog Class Reference

#include <videodlg.h>

Inheritance diagram for VideoDialog:
Inheritance graph
[legend]
Collaboration diagram for VideoDialog:
Collaboration graph
[legend]

Public Types

enum  DialogType {
  DLG_DEFAULT = 0, DLG_BROWSER = 0x1, DLG_GALLERY = 0x2, DLG_TREE = 0x4,
  DLG_MANAGER = 0x8, dtLast
}
 
enum  BrowseType {
  BRS_FOLDER = 0, BRS_GENRE = 0x1, BRS_CATEGORY = 0x2, BRS_YEAR = 0x4,
  BRS_DIRECTOR = 0x8, BRS_CAST = 0x10, BRS_USERRATING = 0x20, BRS_INSERTDATE = 0x40,
  BRS_TVMOVIE = 0x80, BRS_STUDIO = 0x100, btLast
}
 
using VideoListPtr = simple_ref_ptr< class VideoList >
 
using VideoListDeathDelayPtr = QPointer< class VideoListDeathDelay >
 

Public Slots

void searchComplete (const QString &string)
 After using incremental search, move to the selected item. More...
 
- Public Slots inherited from MythScreenType
virtual void Close ()
 
- Public Slots inherited from MythUIType
void LoseFocus ()
 
bool TakeFocus ()
 
void Activate ()
 
void Hide (void)
 
void Show (void)
 
void Refresh (void)
 
void UpdateDependState (bool isDefault)
 
void UpdateDependState (MythUIType *dependee, bool isDefault)
 

Public Member Functions

 VideoDialog (MythScreenStack *lparent, const QString &lname, const VideoListPtr &video_list, DialogType type, BrowseType browse)
 
 ~VideoDialog ()
 
bool Create () override
 
bool keyPressEvent (QKeyEvent *levent) override
 Handle keypresses and keybindings. More...
 
- Public Member Functions inherited from MythScreenType
 MythScreenType (MythScreenStack *parent, const QString &name, bool fullscreen=true)
 
virtual ~MythScreenType ()
 
bool gestureEvent (MythGestureEvent *) override
 Mouse click/movement handler, receives mouse gesture events from the QCoreApplication event loop. More...
 
virtual void ShowMenu (void)
 
void doInit (void)
 
void LoadInForeground (void)
 
bool IsInitialized (void) const
 Has Init() been called on this screen? More...
 
bool IsFullscreen (void) const
 
void SetFullscreen (bool full)
 
MythUITypeGetFocusWidget (void) const
 
bool SetFocusWidget (MythUIType *widget=nullptr)
 
virtual bool NextPrevWidgetFocus (bool up_or_down)
 
void BuildFocusList (void)
 
MythScreenStackGetScreenStack () const
 
virtual void aboutToHide (void)
 
virtual void aboutToShow (void)
 
bool IsDeleting (void) const
 
void SetDeleting (bool deleting)
 
bool IsLoading (void)
 
bool IsLoaded (void)
 
MythPainterGetPainter (void) override
 
- Public Member Functions inherited from MythUIComposite
 MythUIComposite (QObject *parent, const QString &name)
 
virtual ~MythUIComposite ()=default
 
virtual void SetTextFromMap (const InfoMap &infoMap)
 
virtual void ResetMap (const InfoMap &infoMap)
 
- Public Member Functions inherited from MythUIType
 MythUIType (QObject *parent, const QString &name)
 
virtual void Reset (void)
 Reset the widget to it's original state, should not reset changes made by the theme. More...
 
void AddChild (MythUIType *child)
 Add a child UIType. More...
 
MythUITypeGetChild (const QString &name) const
 Get a named child of this UIType. More...
 
MythUITypeGetChildAt (const QPoint &p, bool recursive=true, bool focusable=true) const
 Return the first MythUIType at the given coordinates. More...
 
QList< MythUIType * > * GetAllChildren (void)
 Return a list of all child widgets. More...
 
void DeleteChild (const QString &name)
 Delete a named child of this UIType. More...
 
void DeleteChild (MythUIType *child)
 Delete the given UIType if it is a child of this UIType. More...
 
void DeleteAllChildren (void)
 Delete all child widgets. More...
 
bool NeedsRedraw (void) const
 
void ResetNeedsRedraw (void)
 
void SetRedraw (void)
 
void SetChildNeedsRedraw (MythUIType *child)
 
bool CanTakeFocus (void) const
 Return if this widget can accept input focus. More...
 
void SetCanTakeFocus (bool set=true)
 Set whether this widget can take focus. More...
 
void SetFocusOrder (int)
 
bool IsEnabled (void) const
 
void SetEnabled (bool enable)
 
bool MoveToTop (void)
 
bool MoveChildToTop (MythUIType *child)
 
void ActivateAnimations (MythUIAnimation::Trigger trigger)
 
QList< MythUIAnimation * > * GetAnimations (void)
 
virtual void Pulse (void)
 Pulse is called 70 times a second to trigger a single frame of an animation. More...
 
void Draw (MythPainter *p, int xoffset, int yoffset, int alphaMod=255, QRect clipRect=QRect())
 
void SetPosition (int x, int y)
 Convenience method, calls SetPosition(const MythPoint&) Override that instead to change functionality. More...
 
virtual void SetPosition (const MythPoint &point)
 
virtual MythPoint GetPosition (void) const
 
virtual void SetSize (const QSize &size)
 
virtual void SetMinSize (const MythPoint &size)
 Set the minimum size of this widget, for widgets which can be rescaled. More...
 
virtual QSize GetMinSize (void) const
 
virtual void SetArea (const MythRect &rect)
 
virtual void AdjustMinArea (int delta_x, int delta_y, int delta_w, int delta_h)
 Adjust the size of a sibling. More...
 
virtual void VanishSibling (void)
 
virtual void SetMinAreaParent (MythRect actual_area, MythRect allowed_area, MythUIType *child)
 Adjust the size of sibling objects within the button. More...
 
virtual void SetMinArea (const MythRect &rect)
 Set the minimum area based on the given size. More...
 
virtual MythRect GetArea (void) const
 If the object has a minimum area defined, return it, other wise return the default area. More...
 
virtual MythRect GetFullArea (void) const
 
virtual void RecalculateArea (bool recurse=true)
 
void ExpandArea (const MythRect &rect)
 
virtual QRegion GetDirtyArea (void) const
 
bool IsVisible (bool recurse=false) const
 
virtual void SetVisible (bool visible)
 
void MoveTo (QPoint destXY, QPoint speedXY)
 
void AdjustAlpha (int mode, int alphachange, int minalpha=0, int maxalpha=255)
 
void SetAlpha (int newalpha)
 
int GetAlpha (void) const
 
virtual void mediaEvent (MythMediaEvent *event)
 Media/Device status event handler, received from MythMediaMonitor. More...
 
MythFontPropertiesGetFont (const QString &text) const
 
bool AddFont (const QString &text, MythFontProperties *fontProp)
 
void SetHelpText (const QString &text)
 
QString GetHelpText (void) const
 
void SetXMLLocation (const QString &filename, int where)
 
QString GetXMLLocation (void) const
 
void SetXMLName (const QString &name)
 
QString GetXMLName (void) const
 
bool IsDeferredLoading (bool recurse=false) const
 
void SetDeferLoad (bool defer)
 
virtual void LoadNow (void)
 Cause images in this and child widgets to be loaded. More...
 
bool ContainsPoint (const QPoint &point) const
 Check if the given point falls within this widgets area. More...
 
void SetPainter (MythPainter *painter)
 
void SetCentre (UIEffects::Centre centre)
 
void SetZoom (float zoom)
 
void SetHorizontalZoom (float zoom)
 
void SetVerticalZoom (float zoom)
 
void SetAngle (float angle)
 
void SetDependIsDefault (bool isDefault)
 
void SetReverseDependence (MythUIType *dependee, bool reverse)
 
void SetDependsMap (QMap< QString, QString > dependsMap)
 
QMap< QString, QString > GetDependsMap () const
 

Static Public Member Functions

static VideoListDeathDelayPtrGetSavedVideoList ()
 
- Static Public Member Functions inherited from XMLParseBase
static QString getFirstText (QDomElement &element)
 
static bool parseBool (const QString &text)
 
static bool parseBool (QDomElement &element)
 
static MythPoint parsePoint (const QString &text, bool normalize=true)
 
static MythPoint parsePoint (QDomElement &element, bool normalize=true)
 
static QSize parseSize (const QString &text, bool normalize=true)
 
static QSize parseSize (QDomElement &element, bool normalize=true)
 
static MythRect parseRect (const QString &text, bool normalize=true)
 
static MythRect parseRect (QDomElement &element, bool normalize=true)
 
static int parseAlignment (const QString &text)
 
static int parseAlignment (QDomElement &element)
 
static QBrush parseGradient (const QDomElement &element)
 
static QString parseText (QDomElement &element)
 
static MythUITypeGetGlobalObjectStore (void)
 
static void ClearGlobalObjectStore (void)
 
static void ParseChildren (const QString &filename, QDomElement &element, MythUIType *parent, bool showWarnings)
 
static MythUITypeParseUIType (const QString &filename, QDomElement &element, const QString &type, MythUIType *parent, MythScreenType *screen, bool showWarnings, QMap< QString, QString > &parentDependsMap)
 
static bool WindowExists (const QString &xmlfile, const QString &windowname)
 
static bool LoadWindowFromXML (const QString &xmlfile, const QString &windowname, MythUIType *parent)
 
static bool LoadBaseTheme (void)
 
static bool LoadBaseTheme (const QString &baseTheme)
 
static bool CopyWindowFromBase (const QString &windowname, MythScreenType *win)
 

Protected Slots

void Init () override
 
void Load () override
 Called after the screen is created by MythScreenStack. More...
 
void scanFinished (bool)
 
void reloadData ()
 Reloads the tree after having invalidated the data. More...
 
void refreshData ()
 Reloads the tree without invalidating the data. More...
 
void UpdateItem (MythUIButtonListItem *item)
 Update the visible representation of a MythUIButtonListItem. More...
 

Protected Member Functions

void customEvent (QEvent *levent) override
 
virtual MythUIButtonListItemGetItemCurrent ()
 
virtual MythUIButtonListItemGetItemByMetadata (VideoMetadata *metadata)
 
virtual void loadData ()
 load the data used to build the ButtonTree/List for MythVideo. More...
 
void fetchVideos ()
 Build the buttonlist/tree. More...
 
QString GetFirstImage (MythGenericTree *node, const QString &type, const QString &gpnode=QString(), int levels=0)
 Find the first image of "type" within a folder structure. More...
 
void handleDirSelect (MythGenericTree *node)
 Descend into a selected folder. More...
 
void handleDynamicDirSelect (MythGenericTree *node)
 Request the latest metadata for a folder. More...
 
bool goBack ()
 Move one level up in the tree. More...
 
void setParentalLevel (const ParentalLevel::Level &level)
 Set the parental level for the library. More...
 
void shiftParental (int amount)
 Shift the parental level for the library by an integer amount. More...
 
bool createPopup ()
 
void createBusyDialog (const QString &title)
 Create a busy dialog, used during metadata search, etc. More...
 
void createFetchDialog (VideoMetadata *metadata)
 Create a fetch notification, used during metadata search. More...
 
void dismissFetchDialog (VideoMetadata *metadata, bool ok)
 
void createOkDialog (const QString &title)
 Create a MythUI "OK" Dialog. More...
 
void SwitchLayout (DialogType type, BrowseType browse)
 Handle a layout or browse mode switch. More...
 
void StartVideoImageSet (VideoMetadata *metadata)
 
void SavePosition (void)
 
- Protected Member Functions inherited from MythScreenType
 MythScreenType (MythUIType *parent, const QString &name, bool fullscreen=true)
 
void CopyFrom (MythUIType *base) override
 Copy this widgets state from another. More...
 
void CreateCopy (MythUIType *parent) override
 Copy the state of this widget to the one given, it must be of the same type. More...
 
bool ParseElement (const QString &filename, QDomElement &element, bool showWarnings) override
 Parse the xml definition of this widget setting the state of the object accordingly. More...
 
virtual void Load (void)
 Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (See Warning) More...
 
virtual void Init (void)
 Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in Load() More...
 
void LoadInBackground (const QString &message="")
 
void ReloadInBackground (void)
 
void OpenBusyPopup (const QString &message="")
 
void CloseBusyPopup (void)
 
void SetBusyPopupMessage (const QString &message)
 
void ResetBusyPopup (void)
 
- Protected Member Functions inherited from MythUIType
virtual ~MythUIType ()
 
void customEvent (QEvent *event) override
 
virtual void DrawSelf (MythPainter *p, int xoffset, int yoffset, int alphaMod, QRect clipRect)
 
void AddFocusableChildrenToList (QMap< int, MythUIType * > &focusList)
 
void HandleAlphaPulse ()
 Handle one frame of an alpha (transparency) change animation. More...
 
void HandleMovementPulse ()
 Handle one frame of a movement animation. More...
 
int CalcAlpha (int alphamod)
 
void ConnectDependants (bool recurse=false)
 
virtual void Finalize (void)
 Perform any post-xml parsing initialisation tasks. More...
 

Static Protected Member Functions

static QString RemoteImageCheck (const QString &host, const QString &filename)
 Search for a given (image) filename in the Video SG. More...
 
static QString GetCoverImage (MythGenericTree *node)
 A "hunt" for cover art to apply for a folder item. More...
 
static QString GetImageFromFolder (VideoMetadata *metadata)
 Attempt to find/fallback a cover image for a given metadata item. More...
 
static QString GetScreenshot (MythGenericTree *node)
 Find the Screenshot for a given node. More...
 
static QString GetBanner (MythGenericTree *node)
 Find the Banner for a given node. More...
 
static QString GetFanart (MythGenericTree *node)
 Find the Fanart for a given node. More...
 
static VideoMetadataGetMetadata (MythUIButtonListItem *item)
 Retrieve the Database Metadata for a given MythUIButtonListItem. More...
 
- Static Protected Member Functions inherited from MythUIType
static int NormX (const int width)
 
static int NormY (const int height)
 

Private Slots

void UpdatePosition ()
 Called after the screen is created by MythScreenStack. More...
 
void UpdateText (MythUIButtonListItem *)
 Update the visible text values for a given ButtonListItem. More...
 
void handleSelect (MythUIButtonListItem *)
 Handle SELECT action for a given MythUIButtonListItem. More...
 
void SetCurrentNode (MythGenericTree *)
 Switch to a given MythGenericTree node. More...
 
void playVideo ()
 Play the selected item. More...
 
void playVideoAlt ()
 Play the selected item in an alternate player. More...
 
void playFolder ()
 Play all the items in the selected folder. More...
 
void playVideoWithTrailers ()
 Play the selected item w/ a User selectable # of trailers. More...
 
void playTrailer ()
 Play the trailer associated with the selected item. More...
 
void SwitchTree ()
 Switch to Tree (List) View. More...
 
void SwitchGallery ()
 Switch to Gallery View. More...
 
void SwitchBrowse ()
 Switch to Browser View. More...
 
void SwitchManager ()
 Switch to Video Manager View. More...
 
void SwitchVideoFolderGroup ()
 Switch to Folder (filesystem) browse mode. More...
 
void SwitchVideoGenreGroup ()
 Switch to Genre browse mode. More...
 
void SwitchVideoCategoryGroup ()
 Switch to Category browse mode. More...
 
void SwitchVideoYearGroup ()
 Switch to Year browse mode. More...
 
void SwitchVideoDirectorGroup ()
 Switch to Director browse mode. More...
 
void SwitchVideoStudioGroup ()
 Switch to Studio browse mode. More...
 
void SwitchVideoCastGroup ()
 Switch to Cast browse mode. More...
 
void SwitchVideoUserRatingGroup ()
 Switch to User Rating browse mode. More...
 
void SwitchVideoInsertDateGroup ()
 Switch to Insert Date browse mode. More...
 
void SwitchVideoTVMovieGroup ()
 Switch to Television/Movie browse mode. More...
 
void EditMetadata ()
 
void VideoSearch (MythGenericTree *node=nullptr, bool automode=false)
 
void VideoAutoSearch (MythGenericTree *node=nullptr)
 
void ResetMetadata ()
 
void ToggleWatched ()
 
void ToggleProcess ()
 
void RemoveVideo ()
 
void OnRemoveVideo (bool)
 
void VideoMenu ()
 Pop up a MythUI "Playback Menu" for MythVideo. More...
 
MythMenuCreateInfoMenu ()
 Create a MythMenu for Info pertaining to the selected item. More...
 
MythMenuCreateManageMenu ()
 Create a MythMenu for metadata management. More...
 
MythMenuCreatePlayMenu ()
 Create a "Play Menu" for MythVideo. More...
 
void DisplayMenu ()
 Pop up a MythUI Menu for MythVideo Global Functions. More...
 
MythMenuCreateViewMenu ()
 Create a MythMenu for MythVideo Views. More...
 
MythMenuCreateSettingsMenu ()
 Create a MythMenu for MythVideo Settings. More...
 
MythMenuCreateMetadataBrowseMenu ()
 Create a MythMenu for MythVideo Metadata Browse modes. More...
 
void popupClosed (const QString &which, int result)
 
void PromptToScan ()
 
void ChangeFilter ()
 Change the filtering of the library. More...
 
void ToggleBrowseMode ()
 Toggle the browseable status for the selected item. More...
 
void ToggleFlatView ()
 Toggle Flat View. More...
 
void ViewPlot ()
 Display a MythUI Popup with the selected item's plot. More...
 
void ShowCastDialog ()
 Display the Cast if the selected item. More...
 
void ShowHomepage ()
 
bool DoItemDetailShow ()
 Display the Item Detail Popup. More...
 
void ShowPlayerSettings ()
 Pop up a MythUI Menu for MythVideo Player Settings. More...
 
void ShowExtensionSettings ()
 Pop up a MythUI Menu for MythVideo filte Type Settings. More...
 
void ShowMetadataSettings ()
 Pop up a MythUI Menu for MythVideo Metadata Settings. More...
 
void OnParentalChange (int amount)
 
void OnVideoSearchListSelection (const RefCountHandler< MetadataLookup > &lookup)
 
void doVideoScan ()
 
void OnVideoImageSetDone (VideoMetadata *metadata)
 
void OnVideoSearchDone (MetadataLookup *lookup)
 

Private Member Functions

void searchStart ()
 Create an incremental search dialog for the current tree level. More...
 

Private Attributes

MythDialogBoxm_menuPopup {nullptr}
 
MythUIBusyDialogm_busyPopup {nullptr}
 
MythScreenStackm_popupStack {nullptr}
 
MythScreenStackm_mainStack {nullptr}
 
MythUIButtonListm_videoButtonList {nullptr}
 
MythUIButtonTreem_videoButtonTree {nullptr}
 
MythUITextm_titleText {nullptr}
 
MythUITextm_novideoText {nullptr}
 
MythUITextm_positionText {nullptr}
 
MythUITextm_crumbText {nullptr}
 
MythUIImagem_coverImage {nullptr}
 
MythUIImagem_screenshot {nullptr}
 
MythUIImagem_banner {nullptr}
 
MythUIImagem_fanart {nullptr}
 
MythUIStateTypem_trailerState {nullptr}
 
MythUIStateTypem_parentalLevelState {nullptr}
 
MythUIStateTypem_videoLevelState {nullptr}
 
MythUIStateTypem_userRatingState {nullptr}
 
MythUIStateTypem_watchedState {nullptr}
 
MythUIStateTypem_studioState {nullptr}
 
MetadataFactorym_metadataFactory {nullptr}
 
class VideoDialogPrivatem_d {nullptr}
 

Additional Inherited Members

- Signals inherited from MythScreenType
void Exiting ()
 
- Signals inherited from MythUIType
void RequestUpdate ()
 
void RequestUpdate (const QRect &)
 
void RequestRegionUpdate (const QRect &)
 
void TakingFocus ()
 
void LosingFocus ()
 
void Showing ()
 
void Hiding ()
 
void Enabling ()
 
void Disabling ()
 
void FinishedMoving ()
 
void FinishedFading ()
 
void DependChanged (bool isDefault)
 
- Protected Attributes inherited from MythScreenType
bool m_FullScreen {false}
 
bool m_IsDeleting {false}
 
QSemaphore m_LoadLock {1}
 
volatile bool m_IsLoading {false}
 
volatile bool m_IsLoaded {false}
 
bool m_IsInitialized {false}
 
MythUITypem_CurrentFocusWidget {nullptr}
 
QMap< int, MythUIType * > m_FocusWidgetList
 
MythScreenStackm_ScreenStack {nullptr}
 
MythUIBusyDialogm_BusyPopup {nullptr}
 
QRegion m_SavedMask
 
- Protected Attributes inherited from MythUIType
QList< MythUIType * > m_ChildrenList
 
QMap< QString, QString > m_dependsMap
 
QList< QPair< MythUIType *, bool > > m_dependsValue
 
QList< int > m_dependOperator
 
bool m_Visible {true}
 
bool m_HasFocus {false}
 
bool m_CanHaveFocus {false}
 
bool m_Enabled {true}
 
bool m_EnableInitiator {false}
 
bool m_Initiator {false}
 
bool m_Vanish {false}
 
bool m_Vanished {false}
 
bool m_IsDependDefault {false}
 
QMap< MythUIType *, boolm_ReverseDepend
 
int m_focusOrder {0}
 
MythRect m_Area {0,0,0,0}
 
MythRect m_MinArea {0,0,0,0}
 
MythPoint m_MinSize
 
QRegion m_DirtyRegion {0,0,0,0}
 
bool m_NeedsRedraw {false}
 
UIEffects m_Effects
 
int m_AlphaChangeMode {0}
 
int m_AlphaChange {0}
 
int m_AlphaMin {0}
 
int m_AlphaMax {255}
 
bool m_Moving {false}
 
QPoint m_XYDestination {0,0}
 
QPoint m_XYSpeed {0,0}
 
FontMapm_Fonts {nullptr}
 
MythUITypem_Parent {nullptr}
 
MythPainterm_Painter {nullptr}
 
QList< MythUIAnimation * > m_animations
 
QString m_helptext
 
QString m_xmlName
 
QString m_xmlLocation
 
bool m_deferload {false}
 
QColor m_BorderColor {Qt::black}
 

Detailed Description

Definition at line 31 of file videodlg.h.

Member Typedef Documentation

◆ VideoListPtr

Definition at line 44 of file videodlg.h.

◆ VideoListDeathDelayPtr

Definition at line 45 of file videodlg.h.

Member Enumeration Documentation

◆ DialogType

Enumerator
DLG_DEFAULT 
DLG_BROWSER 
DLG_GALLERY 
DLG_TREE 
DLG_MANAGER 
dtLast 

Definition at line 36 of file videodlg.h.

◆ BrowseType

Enumerator
BRS_FOLDER 
BRS_GENRE 
BRS_CATEGORY 
BRS_YEAR 
BRS_DIRECTOR 
BRS_CAST 
BRS_USERRATING 
BRS_INSERTDATE 
BRS_TVMOVIE 
BRS_STUDIO 
btLast 

Definition at line 39 of file videodlg.h.

Constructor & Destructor Documentation

◆ VideoDialog()

VideoDialog::VideoDialog ( MythScreenStack lparent,
const QString &  lname,
const VideoListPtr video_list,
DialogType  type,
BrowseType  browse 
)

Definition at line 843 of file videodlg.cpp.

Referenced by SwitchLayout().

◆ ~VideoDialog()

VideoDialog::~VideoDialog ( )

Definition at line 861 of file videodlg.cpp.

Member Function Documentation

◆ GetSavedVideoList()

VideoDialog::VideoListDeathDelayPtr & VideoDialog::GetSavedVideoList ( )
static

Definition at line 838 of file videodlg.cpp.

Referenced by RunVideoScreen().

◆ Create()

bool VideoDialog::Create ( void  )
overridevirtual

Reimplemented from MythScreenType.

Definition at line 895 of file videodlg.cpp.

◆ keyPressEvent()

bool VideoDialog::keyPressEvent ( QKeyEvent *  levent)
overridevirtual

Handle keypresses and keybindings.

Returns
true if the keypress was successfully handled.

Reimplemented from MythScreenType.

Definition at line 2002 of file videodlg.cpp.

◆ searchStart()

void VideoDialog::searchStart ( void  )
private

Create an incremental search dialog for the current tree level.

Returns
void.

Definition at line 2235 of file videodlg.cpp.

Referenced by keyPressEvent().

◆ searchComplete

void VideoDialog::searchComplete ( const QString &  string)
slot

After using incremental search, move to the selected item.

Returns
void.

Definition at line 2195 of file videodlg.cpp.

Referenced by searchStart().

◆ Init

void VideoDialog::Init ( void  )
overrideprotectedslot

Definition at line 1036 of file videodlg.cpp.

◆ Load

void VideoDialog::Load ( void  )
overrideprotectedslot

Called after the screen is created by MythScreenStack.

Definition at line 1042 of file videodlg.cpp.

◆ UpdatePosition

void VideoDialog::UpdatePosition ( )
privateslot

Called after the screen is created by MythScreenStack.

Update the "x of y" textarea to curent position.

Returns
void.

Definition at line 2308 of file videodlg.cpp.

Referenced by loadData(), and UpdateText().

◆ UpdateText

void VideoDialog::UpdateText ( MythUIButtonListItem item)
privateslot

Update the visible text values for a given ButtonListItem.

Returns
void.

Definition at line 2325 of file videodlg.cpp.

Referenced by Create(), and UpdateItem().

◆ handleSelect

void VideoDialog::handleSelect ( MythUIButtonListItem item)
privateslot

Handle SELECT action for a given MythUIButtonListItem.

Returns
void.

Definition at line 2782 of file videodlg.cpp.

Referenced by Create().

◆ SetCurrentNode

void VideoDialog::SetCurrentNode ( MythGenericTree node)
privateslot

Switch to a given MythGenericTree node.

Returns
void.

Definition at line 2296 of file videodlg.cpp.

Referenced by Create(), fetchVideos(), goBack(), handleDirSelect(), and loadData().

◆ playVideo

void VideoDialog::playVideo ( )
privateslot

Play the selected item.

Returns
void.

Definition at line 3064 of file videodlg.cpp.

Referenced by CreatePlayMenu(), handleSelect(), keyPressEvent(), and VideoMenu().

◆ playVideoAlt

void VideoDialog::playVideoAlt ( )
privateslot

Play the selected item in an alternate player.

Returns
void.

Definition at line 3075 of file videodlg.cpp.

Referenced by CreatePlayMenu(), and keyPressEvent().

◆ playFolder

void VideoDialog::playFolder ( )
privateslot

Play all the items in the selected folder.

Returns
void.

Definition at line 3087 of file videodlg.cpp.

Referenced by VideoMenu().

◆ playVideoWithTrailers

void VideoDialog::playVideoWithTrailers ( )
privateslot

Play the selected item w/ a User selectable # of trailers.

Returns
void.

Definition at line 3171 of file videodlg.cpp.

Referenced by CreatePlayMenu().

◆ playTrailer

void VideoDialog::playTrailer ( )
privateslot

Play the trailer associated with the selected item.

Returns
void.

Definition at line 3204 of file videodlg.cpp.

Referenced by CreatePlayMenu().

◆ SwitchTree

void VideoDialog::SwitchTree ( )
privateslot

Switch to Tree (List) View.

Returns
void.

Definition at line 2816 of file videodlg.cpp.

Referenced by CreateViewMenu().

◆ SwitchGallery

void VideoDialog::SwitchGallery ( )
privateslot

Switch to Gallery View.

Returns
void.

Definition at line 2825 of file videodlg.cpp.

Referenced by CreateViewMenu().

◆ SwitchBrowse

void VideoDialog::SwitchBrowse ( )
privateslot

Switch to Browser View.

Returns
void.

Definition at line 2834 of file videodlg.cpp.

Referenced by CreateViewMenu().

◆ SwitchManager

void VideoDialog::SwitchManager ( )
privateslot

Switch to Video Manager View.

Returns
void.

Definition at line 2843 of file videodlg.cpp.

Referenced by CreateViewMenu().

◆ SwitchVideoFolderGroup

void VideoDialog::SwitchVideoFolderGroup ( )
privateslot

Switch to Folder (filesystem) browse mode.

Returns
void.

Definition at line 2852 of file videodlg.cpp.

Referenced by CreateMetadataBrowseMenu().

◆ SwitchVideoGenreGroup

void VideoDialog::SwitchVideoGenreGroup ( )
privateslot

Switch to Genre browse mode.

Returns
void.

Definition at line 2861 of file videodlg.cpp.

Referenced by CreateMetadataBrowseMenu().

◆ SwitchVideoCategoryGroup

void VideoDialog::SwitchVideoCategoryGroup ( )
privateslot

Switch to Category browse mode.

Returns
void.

Definition at line 2870 of file videodlg.cpp.

Referenced by CreateMetadataBrowseMenu().

◆ SwitchVideoYearGroup

void VideoDialog::SwitchVideoYearGroup ( )
privateslot

Switch to Year browse mode.

Returns
void.

Definition at line 2879 of file videodlg.cpp.

Referenced by CreateMetadataBrowseMenu().

◆ SwitchVideoDirectorGroup

void VideoDialog::SwitchVideoDirectorGroup ( )
privateslot

Switch to Director browse mode.

Returns
void.

Definition at line 2888 of file videodlg.cpp.

Referenced by CreateMetadataBrowseMenu().

◆ SwitchVideoStudioGroup

void VideoDialog::SwitchVideoStudioGroup ( )
privateslot

Switch to Studio browse mode.

Returns
void.

Definition at line 2897 of file videodlg.cpp.

Referenced by CreateMetadataBrowseMenu().

◆ SwitchVideoCastGroup

void VideoDialog::SwitchVideoCastGroup ( )
privateslot

Switch to Cast browse mode.

Returns
void.

Definition at line 2906 of file videodlg.cpp.

Referenced by CreateMetadataBrowseMenu().

◆ SwitchVideoUserRatingGroup

void VideoDialog::SwitchVideoUserRatingGroup ( )
privateslot

Switch to User Rating browse mode.

Returns
void.

Definition at line 2915 of file videodlg.cpp.

Referenced by CreateMetadataBrowseMenu().

◆ SwitchVideoInsertDateGroup

void VideoDialog::SwitchVideoInsertDateGroup ( )
privateslot

Switch to Insert Date browse mode.

Returns
void.

Definition at line 2924 of file videodlg.cpp.

Referenced by CreateMetadataBrowseMenu().

◆ SwitchVideoTVMovieGroup

void VideoDialog::SwitchVideoTVMovieGroup ( )
privateslot

Switch to Television/Movie browse mode.

Returns
void.

Definition at line 2933 of file videodlg.cpp.

Referenced by CreateMetadataBrowseMenu().

◆ EditMetadata

void VideoDialog::EditMetadata ( )
privateslot

Definition at line 3510 of file videodlg.cpp.

Referenced by CreateManageMenu(), and keyPressEvent().

◆ VideoSearch

void VideoDialog::VideoSearch ( MythGenericTree node = nullptr,
bool  automode = false 
)
privateslot

Definition at line 3417 of file videodlg.cpp.

Referenced by CreateManageMenu(), keyPressEvent(), and VideoAutoSearch().

◆ VideoAutoSearch

void VideoDialog::VideoAutoSearch ( MythGenericTree node = nullptr)
privateslot

Definition at line 3439 of file videodlg.cpp.

Referenced by DisplayMenu(), and scanFinished().

◆ ResetMetadata

void VideoDialog::ResetMetadata ( )
privateslot

Definition at line 3582 of file videodlg.cpp.

Referenced by CreateManageMenu().

◆ ToggleWatched

void VideoDialog::ToggleWatched ( )
privateslot

Definition at line 3468 of file videodlg.cpp.

Referenced by VideoMenu().

◆ ToggleProcess

void VideoDialog::ToggleProcess ( )
privateslot

Definition at line 2717 of file videodlg.cpp.

Referenced by CreateManageMenu().

◆ RemoveVideo

void VideoDialog::RemoveVideo ( )
privateslot

Definition at line 3528 of file videodlg.cpp.

Referenced by keyPressEvent(), and VideoMenu().

◆ OnRemoveVideo

void VideoDialog::OnRemoveVideo ( bool  dodelete)
privateslot

Definition at line 3547 of file videodlg.cpp.

Referenced by RemoveVideo().

◆ VideoMenu

void VideoDialog::VideoMenu ( )
privateslot

Pop up a MythUI "Playback Menu" for MythVideo.

Bound to INFO.

Returns
void.

Definition at line 2392 of file videodlg.cpp.

Referenced by keyPressEvent(), and popupClosed().

◆ CreateInfoMenu

MythMenu * VideoDialog::CreateInfoMenu ( )
privateslot

Create a MythMenu for Info pertaining to the selected item.

Returns
MythMenu*.

Definition at line 2671 of file videodlg.cpp.

Referenced by VideoMenu().

◆ CreateManageMenu

MythMenu * VideoDialog::CreateManageMenu ( )
privateslot

Create a MythMenu for metadata management.

Returns
MythMenu*.

Definition at line 2698 of file videodlg.cpp.

Referenced by VideoMenu().

◆ CreatePlayMenu

MythMenu * VideoDialog::CreatePlayMenu ( )
privateslot

Create a "Play Menu" for MythVideo.

Appears if multiple play options exist.

Returns
MythMenu*.

Definition at line 2453 of file videodlg.cpp.

Referenced by VideoMenu().

◆ DisplayMenu

void VideoDialog::DisplayMenu ( void  )
privateslot

Pop up a MythUI Menu for MythVideo Global Functions.

Bound to MENU.

Returns
void.

Definition at line 2491 of file videodlg.cpp.

Referenced by keyPressEvent().

◆ CreateViewMenu

MythMenu * VideoDialog::CreateViewMenu ( )
privateslot

Create a MythMenu for MythVideo Views.

Returns
MythMenu.

Definition at line 2533 of file videodlg.cpp.

Referenced by DisplayMenu().

◆ CreateSettingsMenu

MythMenu * VideoDialog::CreateSettingsMenu ( )
privateslot

Create a MythMenu for MythVideo Settings.

Returns
void.

Definition at line 2569 of file videodlg.cpp.

Referenced by DisplayMenu().

◆ CreateMetadataBrowseMenu

MythMenu * VideoDialog::CreateMetadataBrowseMenu ( )
privateslot

Create a MythMenu for MythVideo Metadata Browse modes.

Returns
void.

Definition at line 2628 of file videodlg.cpp.

Referenced by DisplayMenu().

◆ popupClosed

void VideoDialog::popupClosed ( const QString &  which,
int  result 
)
privateslot

Definition at line 2518 of file videodlg.cpp.

Referenced by DisplayMenu(), and VideoMenu().

◆ PromptToScan

void VideoDialog::PromptToScan ( )
privateslot

Definition at line 3811 of file videodlg.cpp.

Referenced by Load().

◆ ChangeFilter

void VideoDialog::ChangeFilter ( )
privateslot

Change the filtering of the library.

Returns
void.

Definition at line 3242 of file videodlg.cpp.

Referenced by DisplayMenu(), and keyPressEvent().

◆ ToggleBrowseMode

void VideoDialog::ToggleBrowseMode ( )
privateslot

Toggle the browseable status for the selected item.

Returns
void.

Definition at line 2733 of file videodlg.cpp.

Referenced by CreateViewMenu().

◆ ToggleFlatView

void VideoDialog::ToggleFlatView ( )
privateslot

Toggle Flat View.

Returns
void.

Definition at line 2745 of file videodlg.cpp.

Referenced by CreateViewMenu().

◆ ViewPlot

void VideoDialog::ViewPlot ( )
privateslot

Display a MythUI Popup with the selected item's plot.

Returns
void.

Definition at line 2972 of file videodlg.cpp.

Referenced by CreateInfoMenu().

◆ ShowCastDialog

void VideoDialog::ShowCastDialog ( )
privateslot

Display the Cast if the selected item.

Returns
void.

Definition at line 3010 of file videodlg.cpp.

Referenced by CreateInfoMenu().

◆ ShowHomepage

void VideoDialog::ShowHomepage ( )
privateslot

Definition at line 3020 of file videodlg.cpp.

Referenced by CreateInfoMenu().

◆ DoItemDetailShow

bool VideoDialog::DoItemDetailShow ( )
privateslot

Display the Item Detail Popup.

Returns
true if popup was created

Definition at line 2986 of file videodlg.cpp.

Referenced by CreateInfoMenu(), handleSelect(), and keyPressEvent().

◆ ShowPlayerSettings

void VideoDialog::ShowPlayerSettings ( )
privateslot

Pop up a MythUI Menu for MythVideo Player Settings.

Returns
void.

Definition at line 2586 of file videodlg.cpp.

Referenced by CreateSettingsMenu().

◆ ShowExtensionSettings

void VideoDialog::ShowExtensionSettings ( )
privateslot

Pop up a MythUI Menu for MythVideo filte Type Settings.

Returns
void.

Definition at line 2614 of file videodlg.cpp.

Referenced by CreateSettingsMenu().

◆ ShowMetadataSettings

void VideoDialog::ShowMetadataSettings ( )
privateslot

Pop up a MythUI Menu for MythVideo Metadata Settings.

Returns
void.

Definition at line 2600 of file videodlg.cpp.

Referenced by CreateSettingsMenu().

◆ OnParentalChange

void VideoDialog::OnParentalChange ( int  amount)
privateslot

Definition at line 3492 of file videodlg.cpp.

◆ OnVideoSearchListSelection

void VideoDialog::OnVideoSearchListSelection ( const RefCountHandler< MetadataLookup > &  lookup)
privateslot

Definition at line 3484 of file videodlg.cpp.

Referenced by customEvent().

◆ doVideoScan

void VideoDialog::doVideoScan ( )
privateslot

Definition at line 3803 of file videodlg.cpp.

Referenced by customEvent(), and DisplayMenu().

◆ scanFinished

void VideoDialog::scanFinished ( bool  dbChanged)
protectedslot

Definition at line 1070 of file videodlg.cpp.

Referenced by doVideoScan().

◆ reloadData

void VideoDialog::reloadData ( )
protectedslot

Reloads the tree after having invalidated the data.

Returns
void.

Definition at line 1097 of file videodlg.cpp.

Referenced by ChangeFilter(), handleDynamicDirSelect(), Init(), Load(), scanFinished(), ToggleBrowseMode(), and ToggleFlatView().

◆ refreshData

void VideoDialog::refreshData ( )
protectedslot

Reloads the tree without invalidating the data.

Returns
void.

Definition at line 1055 of file videodlg.cpp.

Referenced by EditMetadata(), OnParentalChange(), reloadData(), and ToggleProcess().

◆ UpdateItem

void VideoDialog::UpdateItem ( MythUIButtonListItem item)
protectedslot

Update the visible representation of a MythUIButtonListItem.

Returns
void.

Definition at line 1215 of file videodlg.cpp.

Referenced by loadData(), OnVideoImageSetDone(), OnVideoSearchDone(), and ResetMetadata().

◆ customEvent()

void VideoDialog::customEvent ( QEvent *  levent)
overrideprotected

Definition at line 3278 of file videodlg.cpp.

◆ GetItemCurrent()

MythUIButtonListItem * VideoDialog::GetItemCurrent ( void  )
protectedvirtual

◆ GetItemByMetadata()

MythUIButtonListItem * VideoDialog::GetItemByMetadata ( VideoMetadata metadata)
protectedvirtual

Definition at line 3386 of file videodlg.cpp.

Referenced by OnVideoImageSetDone(), and OnVideoSearchDone().

◆ loadData()

void VideoDialog::loadData ( void  )
protectedvirtual

load the data used to build the ButtonTree/List for MythVideo.

Returns
void.

Definition at line 1107 of file videodlg.cpp.

Referenced by goBack(), handleDirSelect(), and refreshData().

◆ fetchVideos()

void VideoDialog::fetchVideos ( )
protected

Build the buttonlist/tree.

Returns
void.

Definition at line 1308 of file videodlg.cpp.

Referenced by refreshData().

◆ RemoteImageCheck()

QString VideoDialog::RemoteImageCheck ( const QString &  host,
const QString &  filename 
)
staticprotected

Search for a given (image) filename in the Video SG.

Returns
A QString of the full myth:// URL to a matching image.

Definition at line 1347 of file videodlg.cpp.

Referenced by GetCoverImage(), and GetImageFromFolder().

◆ GetCoverImage()

QString VideoDialog::GetCoverImage ( MythGenericTree node)
staticprotected

A "hunt" for cover art to apply for a folder item.

Returns
QString local or myth:// for the first found cover file.

Definition at line 1542 of file videodlg.cpp.

Referenced by UpdateItem().

◆ GetFirstImage()

QString VideoDialog::GetFirstImage ( MythGenericTree node,
const QString &  type,
const QString &  gpnode = QString(),
int  levels = 0 
)
protected

Find the first image of "type" within a folder structure.

Returns
QString local or myth:// for the image.

Will try immediate children (files) first, if no hits, will continue through subfolders recursively. Will only return a value on a grandchild node if it matches the grandparent title, eg:

Lost->Season 1->Lost

Definition at line 1766 of file videodlg.cpp.

Referenced by UpdateItem(), and UpdateText().

◆ GetImageFromFolder()

QString VideoDialog::GetImageFromFolder ( VideoMetadata metadata)
staticprotected

Attempt to find/fallback a cover image for a given metadata item.

Returns
QString local or myth:// for the first found cover file.

Definition at line 1404 of file videodlg.cpp.

◆ GetScreenshot()

QString VideoDialog::GetScreenshot ( MythGenericTree node)
staticprotected

Find the Screenshot for a given node.

Returns
QString local or myth:// for the screenshot.

Definition at line 1892 of file videodlg.cpp.

Referenced by UpdateItem().

◆ GetBanner()

QString VideoDialog::GetBanner ( MythGenericTree node)
staticprotected

Find the Banner for a given node.

Returns
QString local or myth:// for the banner.

Definition at line 1932 of file videodlg.cpp.

Referenced by UpdateItem().

◆ GetFanart()

QString VideoDialog::GetFanart ( MythGenericTree node)
staticprotected

Find the Fanart for a given node.

Returns
QString local or myth:// for the fanart.

Definition at line 1967 of file videodlg.cpp.

Referenced by UpdateItem().

◆ GetMetadata()

VideoMetadata * VideoDialog::GetMetadata ( MythUIButtonListItem item)
staticprotected

◆ handleDirSelect()

void VideoDialog::handleDirSelect ( MythGenericTree node)
protected

Descend into a selected folder.

Returns
void.

Definition at line 2760 of file videodlg.cpp.

Referenced by handleSelect().

◆ handleDynamicDirSelect()

void VideoDialog::handleDynamicDirSelect ( MythGenericTree node)
protected

Request the latest metadata for a folder.

Returns
void.

Definition at line 2770 of file videodlg.cpp.

Referenced by handleSelect().

◆ goBack()

bool VideoDialog::goBack ( )
protected

Move one level up in the tree.

Returns
true if successfully moved upwards.

Definition at line 2272 of file videodlg.cpp.

Referenced by handleSelect(), and keyPressEvent().

◆ setParentalLevel()

void VideoDialog::setParentalLevel ( const ParentalLevel::Level level)
protected

Set the parental level for the library.

Returns
void.

Definition at line 3223 of file videodlg.cpp.

Referenced by keyPressEvent(), and shiftParental().

◆ shiftParental()

void VideoDialog::shiftParental ( int  amount)
protected

Shift the parental level for the library by an integer amount.

Returns
void.

Definition at line 3232 of file videodlg.cpp.

Referenced by keyPressEvent().

◆ createPopup()

bool VideoDialog::createPopup ( )
protected

◆ createBusyDialog()

void VideoDialog::createBusyDialog ( const QString &  title)
protected

Create a busy dialog, used during metadata search, etc.

Returns
void.

Definition at line 2097 of file videodlg.cpp.

◆ createFetchDialog()

void VideoDialog::createFetchDialog ( VideoMetadata metadata)
protected

Create a fetch notification, used during metadata search.

Returns
void.

Definition at line 2115 of file videodlg.cpp.

Referenced by VideoSearch().

◆ dismissFetchDialog()

void VideoDialog::dismissFetchDialog ( VideoMetadata metadata,
bool  ok 
)
protected

Definition at line 2137 of file videodlg.cpp.

Referenced by customEvent(), OnVideoImageSetDone(), and OnVideoSearchDone().

◆ createOkDialog()

void VideoDialog::createOkDialog ( const QString &  title)
protected

Create a MythUI "OK" Dialog.

Returns
void.

Definition at line 2181 of file videodlg.cpp.

◆ SwitchLayout()

void VideoDialog::SwitchLayout ( DialogType  type,
BrowseType  browse 
)
protected

◆ StartVideoImageSet()

void VideoDialog::StartVideoImageSet ( VideoMetadata metadata)
protected

Definition at line 3595 of file videodlg.cpp.

Referenced by OnVideoSearchDone().

◆ SavePosition()

void VideoDialog::SavePosition ( void  )
protected

Definition at line 871 of file videodlg.cpp.

Referenced by SwitchLayout(), and ~VideoDialog().

◆ OnVideoImageSetDone

void VideoDialog::OnVideoImageSetDone ( VideoMetadata metadata)
privateslot

Definition at line 3363 of file videodlg.cpp.

Referenced by StartVideoImageSet().

◆ OnVideoSearchDone

void VideoDialog::OnVideoSearchDone ( MetadataLookup lookup)
privateslot

Definition at line 3673 of file videodlg.cpp.

Referenced by customEvent(), and OnVideoSearchListSelection().

Member Data Documentation

◆ m_menuPopup

MythDialogBox* VideoDialog::m_menuPopup {nullptr}
private

Definition at line 186 of file videodlg.h.

Referenced by customEvent(), DisplayMenu(), keyPressEvent(), popupClosed(), and VideoMenu().

◆ m_busyPopup

MythUIBusyDialog* VideoDialog::m_busyPopup {nullptr}
private

Definition at line 187 of file videodlg.h.

Referenced by createBusyDialog().

◆ m_popupStack

MythScreenStack* VideoDialog::m_popupStack {nullptr}
private

◆ m_mainStack

MythScreenStack* VideoDialog::m_mainStack {nullptr}
private

Definition at line 189 of file videodlg.h.

Referenced by ShowExtensionSettings(), ShowMetadataSettings(), and ShowPlayerSettings().

◆ m_videoButtonList

MythUIButtonList* VideoDialog::m_videoButtonList {nullptr}
private

◆ m_videoButtonTree

MythUIButtonTree* VideoDialog::m_videoButtonTree {nullptr}
private

◆ m_titleText

MythUIText* VideoDialog::m_titleText {nullptr}
private

Definition at line 194 of file videodlg.h.

Referenced by Create(), and UpdateText().

◆ m_novideoText

MythUIText* VideoDialog::m_novideoText {nullptr}
private

Definition at line 195 of file videodlg.h.

Referenced by Create(), and refreshData().

◆ m_positionText

MythUIText* VideoDialog::m_positionText {nullptr}
private

Definition at line 197 of file videodlg.h.

Referenced by Create(), and UpdatePosition().

◆ m_crumbText

MythUIText* VideoDialog::m_crumbText {nullptr}
private

Definition at line 198 of file videodlg.h.

Referenced by Create(), and UpdateText().

◆ m_coverImage

MythUIImage* VideoDialog::m_coverImage {nullptr}
private

Definition at line 200 of file videodlg.h.

Referenced by Create(), and UpdateText().

◆ m_screenshot

MythUIImage* VideoDialog::m_screenshot {nullptr}
private

Definition at line 201 of file videodlg.h.

Referenced by Create(), and UpdateText().

◆ m_banner

MythUIImage* VideoDialog::m_banner {nullptr}
private

Definition at line 202 of file videodlg.h.

Referenced by Create(), and UpdateText().

◆ m_fanart

MythUIImage* VideoDialog::m_fanart {nullptr}
private

Definition at line 203 of file videodlg.h.

Referenced by Create(), and UpdateText().

◆ m_trailerState

MythUIStateType* VideoDialog::m_trailerState {nullptr}
private

Definition at line 205 of file videodlg.h.

Referenced by Create().

◆ m_parentalLevelState

MythUIStateType* VideoDialog::m_parentalLevelState {nullptr}
private

Definition at line 206 of file videodlg.h.

Referenced by Create(), and refreshData().

◆ m_videoLevelState

MythUIStateType* VideoDialog::m_videoLevelState {nullptr}
private

Definition at line 207 of file videodlg.h.

◆ m_userRatingState

MythUIStateType* VideoDialog::m_userRatingState {nullptr}
private

Definition at line 208 of file videodlg.h.

◆ m_watchedState

MythUIStateType* VideoDialog::m_watchedState {nullptr}
private

Definition at line 209 of file videodlg.h.

Referenced by Create().

◆ m_studioState

MythUIStateType* VideoDialog::m_studioState {nullptr}
private

Definition at line 210 of file videodlg.h.

Referenced by Create().

◆ m_metadataFactory

MetadataFactory* VideoDialog::m_metadataFactory {nullptr}
private

Definition at line 212 of file videodlg.h.

Referenced by VideoSearch().

◆ m_d

class VideoDialogPrivate* VideoDialog::m_d {nullptr}
private

The documentation for this class was generated from the following files: