MythTV  master
Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
InfoList Class Reference

The image info/details buttonlist overlay that displays exif tags. More...

#include <galleryinfo.h>

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

Public Member Functions

 InfoList (MythScreenType &screen)
 Constructor. More...
 
bool Create (bool focusable)
 Initialise buttonlist from XML. More...
 
void Toggle (const ImagePtrK &im)
 Toggle infolist state for an image. Focusable widgets toggle between Basic & Full info. Non-focusable widgets toggle between Basic & Off. More...
 
bool Hide ()
 Remove infolist from display. More...
 
void Update (const ImagePtrK &im)
 Populates available exif details for the current image/dir. More...
 
void Display (ImageItemK &im, const QStringList &tagStrings)
 Build list of metadata tags. More...
 
InfoVisibleState GetState () const
 

Private Slots

void Clear ()
 

Private Member Functions

void CreateButton (const QString &name, const QString &value)
 Populate a buttonlist item with exif tag name & value. More...
 
void CreateCount (ImageItemK &im)
 Creates buttons detailing dir counts & size. More...
 

Private Attributes

MythScreenTypem_screen
 Parent screen. More...
 
MythUIButtonListm_btnList {nullptr}
 Overlay buttonlist. More...
 
InfoVisibleState m_infoVisible {kNoInfo}
 Info list state. More...
 
ImageManagerFem_mgr
 Image Manager. More...
 
QTimer m_timer
 Clears list if no new metadata arrives. More...
 

Detailed Description

The image info/details buttonlist overlay that displays exif tags.

Definition at line 22 of file galleryinfo.h.

Constructor & Destructor Documentation

◆ InfoList()

InfoList::InfoList ( MythScreenType screen)
explicit

Constructor.

Definition at line 53 of file galleryinfo.cpp.

Member Function Documentation

◆ Create()

bool InfoList::Create ( bool  focusable)

Initialise buttonlist from XML.

Parameters
focusableSet if info list should be focusable (for scrolling)
Returns
bool True initialisation succeeds

Definition at line 67 of file galleryinfo.cpp.

Referenced by GallerySlideView::Create(), and GalleryThumbView::Create().

◆ Toggle()

void InfoList::Toggle ( const ImagePtrK im)

Toggle infolist state for an image. Focusable widgets toggle between Basic & Full info. Non-focusable widgets toggle between Basic & Off.

Parameters
imThe image/dir for which info is shown

Definition at line 85 of file galleryinfo.cpp.

Referenced by GalleryThumbView::ShowDetails(), and GallerySlideView::ShowInfo().

◆ Hide()

bool InfoList::Hide ( )

Remove infolist from display.

Returns
bool True if buttonlist was displayed/removed

Definition at line 119 of file galleryinfo.cpp.

Referenced by GallerySlideView::HideInfo(), GalleryThumbView::keyPressEvent(), GallerySlideView::keyPressEvent(), GalleryThumbView::LoadData(), and GallerySlideView::ShowNextSlide().

◆ Update()

void InfoList::Update ( const ImagePtrK im)

Populates available exif details for the current image/dir.

Parameters
imAn image or dir

Definition at line 196 of file galleryinfo.cpp.

Referenced by GalleryThumbView::SetUiSelection(), Toggle(), and GallerySlideView::TransitionComplete().

◆ Display()

void InfoList::Display ( ImageItemK im,
const QStringList &  tagStrings 
)

Build list of metadata tags.

Parameters
imImage
tagStringsMetadata encoded as list of key<sep>label<sep>value

Definition at line 222 of file galleryinfo.cpp.

Referenced by GalleryThumbView::customEvent(), and GallerySlideView::customEvent().

◆ GetState()

InfoVisibleState InfoList::GetState ( ) const
inline

Definition at line 33 of file galleryinfo.h.

Referenced by GallerySlideView::MenuMain(), and GalleryThumbView::MenuShow().

◆ Clear

void InfoList::Clear ( )
inlineprivateslot

Definition at line 36 of file galleryinfo.h.

Referenced by Display(), InfoList(), Toggle(), and Update().

◆ CreateButton()

void InfoList::CreateButton ( const QString &  name,
const QString &  value 
)
private

Populate a buttonlist item with exif tag name & value.

Parameters
nameExif tag name
valueExif tag value

Definition at line 136 of file galleryinfo.cpp.

Referenced by CreateCount(), Display(), and Update().

◆ CreateCount()

void InfoList::CreateCount ( ImageItemK im)
private

Creates buttons detailing dir counts & size.

Parameters
imImage dir

Definition at line 155 of file galleryinfo.cpp.

Referenced by Display(), and Update().

Member Data Documentation

◆ m_screen

MythScreenType& InfoList::m_screen
private

Parent screen.

Definition at line 42 of file galleryinfo.h.

Referenced by Create(), and Display().

◆ m_btnList

MythUIButtonList* InfoList::m_btnList {nullptr}
private

Overlay buttonlist.

Definition at line 43 of file galleryinfo.h.

Referenced by Clear(), Create(), CreateButton(), Display(), Hide(), and Toggle().

◆ m_infoVisible

InfoVisibleState InfoList::m_infoVisible {kNoInfo}
private

Info list state.

Definition at line 44 of file galleryinfo.h.

Referenced by Display(), GetState(), Hide(), Toggle(), and Update().

◆ m_mgr

ImageManagerFe& InfoList::m_mgr
private

Image Manager.

Definition at line 45 of file galleryinfo.h.

Referenced by CreateCount(), Display(), and Update().

◆ m_timer

QTimer InfoList::m_timer
private

Clears list if no new metadata arrives.

Definition at line 46 of file galleryinfo.h.

Referenced by Display(), InfoList(), and Update().


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