Go to the documentation of this file.
4 #ifndef GALLERYWIDGET_H
5 #define GALLERYWIDGET_H
33 void Close()
override;
34 void Pulse()
override;
47 void Zoom(
int increment = 0);
48 void Pan(QPoint offset = QPoint(0, 0));
49 void SetStatus(QString msg,
bool delay =
false);
60 void Play(
bool useTransition);
101 #endif // GALLERYWIDGET_H
A specialised image for slideshows.
Image widget, displays a single image or multiple images in sequence.
bool m_showCaptions
If true, captions are shown.
void Transform(ImageFileTransform state)
Action transform request.
MythUIText * m_uiSlideCount
bool m_editsAllowed
True when edits are enabled.
ImageManagerFe & m_mgr
Manages the images.
InfoList m_infoList
Image details overlay.
void customEvent(QEvent *event) override
Handle custom events.
void Start(ImageSlideShowType type, int parentId, int selectedId=0)
Start slideshow.
bool m_transitioning
True when a transition is in progress.
MythUIText * m_uiHideCaptions
A datastore of images for display by a screen.
Screen in which all other widgets are contained and rendered.
void TransitionComplete()
Transition to new slide has finished.
void Suspend()
Pause transition timer temporarily.
Base class of an animated transition that can be accelerated & reversed.
SlideBuffer m_slides
A queue of slides used to display images.
void Stop()
Stop a playing slideshow.
void SlideAvailable(int count)
Start transition.
GallerySlideView(MythScreenStack *parent, const char *name, bool editsAllowed)
Constructor.
void PlayVideo()
Starts internal player for video.
TransitionNone m_updateTransition
Instant transition that is always used for start-up & image updates.
void HideCaptions()
Hide text widgets.
Provides transitions for slideshows.
void ShowPrevSlide(int inc=1)
Display the previous slide in the sequence.
FlatView * m_view
List of images comprising the slideshow.
void ClearStatus(const Slide &slide)
QTimer m_delay
Status delay timer.
std::chrono::milliseconds m_slideShowTime
Time to display a slide in a slideshow.
Transition & m_transition
Selected transition.
void Zoom(int increment=0)
Zoom current slide.
Switches images instantly with no effects.
The info/details overlay that shows image metadata.
Provides a queue/pool of slides.
MythCoreContext * gCoreContext
This global variable contains the MythCoreContext instance for the app.
bool m_playing
True when slideshow is running.
bool Create() override
Initialises the graphical elements.
void ShowSlide(int direction=0)
Display slide.
QString m_statusText
Text to display as status.
Manages transitions available to s psinter.
void ShowCaptions()
Show text widgets.
ImageSlideShowType
Type of slide show.
MythUIText * m_uiCaptionText
static void RepeatOn(int on)
All purpose text widget, displays a text string.
void SetStatus(QString msg, bool delay=false)
Displays status text (Loading, Paused etc.)
The image manager for use by Frontends.
bool m_suspended
True when transition is running or video playing.
~GallerySlideView() override
Destructor.
The image info/details buttonlist overlay that displays exif tags.
void MenuTransforms(MythMenu &mainMenu)
Add Transforms submenu.
void HideInfo()
Hide exif info list.
void Release()
Unpause transition timer.
void ShowInfo()
Show exif info list.
void Pan(QPoint offset=QPoint(0, 0))
Pan current slide.
void SaveSetting(const QString &key, int newValue)
QTimer m_timer
Slide duration timer.
void Pulse() override
Update transition.
bool keyPressEvent(QKeyEvent *event) override
Handle keypresses.
TransitionRegistry m_availableTransitions
Transitions available.
void MenuMain()
Shows the popup menu.