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 
18  kFullInfo
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
ImagePtrK
QSharedPointer< ImageItemK > ImagePtrK
Definition: imagetypes.h:164
InfoList::m_mgr
ImageManagerFe & m_mgr
Image Manager.
Definition: galleryinfo.h:45
InfoList::m_btnList
MythUIButtonList * m_btnList
Overlay buttonlist.
Definition: galleryinfo.h:43
InfoList::Display
void Display(ImageItemK &im, const QStringList &tagStrings)
Build list of metadata tags.
Definition: galleryinfo.cpp:217
InfoList::m_screen
MythScreenType & m_screen
Parent screen.
Definition: galleryinfo.h:42
InfoList::CreateButton
void CreateButton(const QString &name, const QString &value)
Populate a buttonlist item with exif tag name & value.
Definition: galleryinfo.cpp:131
InfoList::m_infoVisible
InfoVisibleState m_infoVisible
Info list state.
Definition: galleryinfo.h:44
imagemanager.h
Manages a collection of images.
kNoInfo
@ kNoInfo
Details not displayed.
Definition: galleryinfo.h:16
InfoList::Update
void Update(const ImagePtrK &im)
Populates available exif details for the current image/dir.
Definition: galleryinfo.cpp:191
slots
unsigned int slots[4]
Definition: element.cpp:38
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:46
InfoList::Toggle
void Toggle(const ImagePtrK &im)
Toggle infolist state for an image. Focusable widgets toggle between Basic & Full info....
Definition: galleryinfo.cpp:80
InfoList::Clear
void Clear()
Definition: galleryinfo.h:36
InfoList::CreateCount
void CreateCount(ImageItemK &im)
Creates buttons detailing dir counts & size.
Definition: galleryinfo.cpp:150
InfoList::GetState
InfoVisibleState GetState() const
Definition: galleryinfo.h:33
InfoList::Hide
bool Hide()
Remove infolist from display.
Definition: galleryinfo.cpp:114
kFullInfo
@ kFullInfo
Shows all exif tags.
Definition: galleryinfo.h:18
InfoVisibleState
InfoVisibleState
Displayed info/details about an image.
Definition: galleryinfo.h:16
ImageManagerFe
The image manager for use by Frontends.
Definition: imagemanager.h:457
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
kBasicInfo
@ kBasicInfo
Shows just the most useful exif tags.
Definition: galleryinfo.h:17
MythUIButtonList::Reset
void Reset() override
Reset the widget to it's original state, should not reset changes made by the theme.
Definition: mythuibuttonlist.cpp:114
InfoList::Create
bool Create(bool focusable)
Initialise buttonlist from XML.
Definition: galleryinfo.cpp:62
MythUIButtonList
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
Definition: mythuibuttonlist.h:144
InfoList::InfoList
InfoList(MythScreenType &screen)
Constructor.
Definition: galleryinfo.cpp:48