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