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