MythTV master
galleryinfo.h
Go to the documentation of this file.
1
3
4#ifndef GALLERYINFO_H
5#define GALLERYINFO_H
6
7#include <QTimer>
8
11
12
13class MythScreenType;
14
16enum InfoVisibleState : std::uint8_t
20 };
21
23class InfoList : public QObject
24{
25 Q_OBJECT
26public:
27 explicit InfoList(MythScreenType &screen);
28
29 bool Create(bool focusable);
30 void Toggle(const ImagePtrK &im);
31 bool Hide();
32 void Update(const ImagePtrK &im);
33 void Display(ImageItemK &im, const QStringList &tagStrings);
35
36private slots:
37 void Clear() { m_btnList->Reset(); }
38
39private:
40 void CreateButton(const QString &name, const QString &value);
41 void CreateCount(ImageItemK &im);
42
47 QTimer m_timer;
48};
49
50#endif // GALLERYINFO_H
Represents a picture, video or directory.
Definition: imagetypes.h:69
The image manager for use by Frontends.
Definition: imagemanager.h:456
The image info/details buttonlist overlay that displays exif tags.
Definition: galleryinfo.h:24
void Display(ImageItemK &im, const QStringList &tagStrings)
Build list of metadata tags.
void Update(const ImagePtrK &im)
Populates available exif details for the current image/dir.
ImageManagerFe & m_mgr
Image Manager.
Definition: galleryinfo.h:46
InfoVisibleState GetState() const
Definition: galleryinfo.h:34
QTimer m_timer
Clears list if no new metadata arrives.
Definition: galleryinfo.h:47
InfoList(MythScreenType &screen)
Constructor.
Definition: galleryinfo.cpp:54
MythUIButtonList * m_btnList
Overlay buttonlist.
Definition: galleryinfo.h:44
void Clear()
Definition: galleryinfo.h:37
void CreateCount(ImageItemK &im)
Creates buttons detailing dir counts & size.
bool Hide()
Remove infolist from display.
InfoVisibleState m_infoVisible
Info list state.
Definition: galleryinfo.h:45
void Toggle(const ImagePtrK &im)
Toggle infolist state for an image. Focusable widgets toggle between Basic & Full info....
Definition: galleryinfo.cpp:86
void CreateButton(const QString &name, const QString &value)
Populate a buttonlist item with exif tag name & value.
bool Create(bool focusable)
Initialise buttonlist from XML.
Definition: galleryinfo.cpp:68
MythScreenType & m_screen
Parent screen.
Definition: galleryinfo.h:43
Screen in which all other widgets are contained and rendered.
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
void Reset() override
Reset the widget to it's original state, should not reset changes made by the theme.
InfoVisibleState
Displayed info/details about an image.
Definition: galleryinfo.h:17
@ kNoInfo
Details not displayed.
Definition: galleryinfo.h:17
@ kBasicInfo
Shows just the most useful exif tags.
Definition: galleryinfo.h:18
@ kFullInfo
Shows all exif tags.
Definition: galleryinfo.h:19
Manages a collection of images.
QSharedPointer< ImageItemK > ImagePtrK
Definition: imagetypes.h:165