MythTV
master
|
The image info/details buttonlist overlay that displays exif tags. More...
#include <galleryinfo.h>
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 | |
MythScreenType & | m_screen |
Parent screen. More... | |
MythUIButtonList * | m_btnList {nullptr} |
Overlay buttonlist. More... | |
InfoVisibleState | m_infoVisible {kNoInfo} |
Info list state. More... | |
ImageManagerFe & | m_mgr |
Image Manager. More... | |
QTimer | m_timer |
Clears list if no new metadata arrives. More... | |
The image info/details buttonlist overlay that displays exif tags.
Definition at line 22 of file galleryinfo.h.
|
explicit |
Constructor.
Definition at line 53 of file galleryinfo.cpp.
Initialise buttonlist from XML.
focusable | Set if info list should be focusable (for scrolling) |
Definition at line 67 of file galleryinfo.cpp.
Referenced by GallerySlideView::Create(), and GalleryThumbView::Create().
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.
im | The image/dir for which info is shown |
Definition at line 85 of file galleryinfo.cpp.
Referenced by GalleryThumbView::ShowDetails(), and GallerySlideView::ShowInfo().
bool InfoList::Hide | ( | ) |
Remove infolist from display.
Definition at line 119 of file galleryinfo.cpp.
Referenced by GallerySlideView::HideInfo(), GalleryThumbView::keyPressEvent(), GallerySlideView::keyPressEvent(), GalleryThumbView::LoadData(), and GallerySlideView::ShowNextSlide().
void InfoList::Update | ( | const ImagePtrK & | im | ) |
Populates available exif details for the current image/dir.
im | An image or dir |
Definition at line 196 of file galleryinfo.cpp.
Referenced by GalleryThumbView::SetUiSelection(), Toggle(), and GallerySlideView::TransitionComplete().
void InfoList::Display | ( | ImageItemK & | im, |
const QStringList & | tagStrings | ||
) |
Build list of metadata tags.
im | Image |
tagStrings | Metadata encoded as list of key<sep>label<sep>value |
Definition at line 222 of file galleryinfo.cpp.
Referenced by GalleryThumbView::customEvent(), and GallerySlideView::customEvent().
|
inline |
Definition at line 33 of file galleryinfo.h.
Referenced by GallerySlideView::MenuMain(), and GalleryThumbView::MenuShow().
|
inlineprivateslot |
Definition at line 36 of file galleryinfo.h.
Referenced by Display(), InfoList(), Toggle(), and Update().
|
private |
Populate a buttonlist item with exif tag name & value.
name | Exif tag name |
value | Exif tag value |
Definition at line 136 of file galleryinfo.cpp.
Referenced by CreateCount(), Display(), and Update().
|
private |
Creates buttons detailing dir counts & size.
im | Image dir |
Definition at line 155 of file galleryinfo.cpp.
|
private |
|
private |
Overlay buttonlist.
Definition at line 43 of file galleryinfo.h.
Referenced by Clear(), Create(), CreateButton(), Display(), Hide(), and Toggle().
|
private |
Info list state.
Definition at line 44 of file galleryinfo.h.
Referenced by Display(), GetState(), Hide(), Toggle(), and Update().
|
private |
Image Manager.
Definition at line 45 of file galleryinfo.h.
Referenced by CreateCount(), Display(), and Update().
|
private |
Clears list if no new metadata arrives.
Definition at line 46 of file galleryinfo.h.
Referenced by Display(), InfoList(), and Update().