Go to the documentation of this file.
33 void Close()
override;
41 void RemoveImages(
const QStringList &ids,
bool deleted =
true);
53 const QString &url,
int index);
63 void ShowDialog(
const QString &msg,
const QString &event =
"");
118 void Copy(
bool deleteAfter);
166 #endif // GALLERYVIEW_H
void FlipVerticalMarked()
static void UpdateThumbnail(MythUIButtonListItem *button, const ImagePtrK &im, const QString &url, int index)
Update the buttonlist item with a thumbnail.
@ kPicAndVideo
Show Pictures & Videos.
QSharedPointer< ImageItemK > ImagePtrK
MythUIProgressBar * m_scanProgressBar
QSet< int > m_thumbExists
Images where thumbnails are known to exist.
QPair< int, int > IntPair
MythUIText * m_positionText
ImageSlideShowType
Type of slide show.
void MenuPaste(MythMenu *mainMenu)
Add a Paste submenu.
MythUIButtonList * m_imageList
void MakeDir()
Show dialog to input new directory name.
void SelectZoomWidget(int change)
Change buttonlist to use a different size.
QHash< QString, IntPair > m_scanProgress
Last scan updates received from scanners.
void customEvent(QEvent *event) override
Handle custom events.
void DirSelectDown()
Goes one directory level down.
InfoList m_infoList
Image details overlay.
void ShowPassword()
Displays dialog to accept password.
void DeviceEvent(MythMediaEvent *event)
Manage events for local devices.
void FlipHorizontalMarked()
void mediaEvent(MythMediaEvent *event) override
Media/Device status event handler, received from MythMediaMonitor.
GalleryThumbView(MythScreenStack *parent, const char *name)
Constructor.
void LoadData(int parent)
Loads & displays images from database.
MythUIText * m_crumbsText
MythUIText * m_typeFilterText
void MenuAction(MythMenu *mainMenu)
Add a Action submenu.
Screen in which all other widgets are contained and rendered.
static void show(uint8_t *buf, int length)
MythUIText * m_hideFilterText
void Import()
Executes user 'Import command'.
void ZoomIn()
Use smaller buttonlist widgets.
void DoHideItem(bool hide=true)
Hide or unhide item.
MenuSubjects m_menuState
Current selection/marked files when menu is invoked.
QDateTime current(bool stripped)
Returns current Date and Time in UTC.
bool Create() override
Initialises and shows the graphical elements.
void MenuMain()
Shows the main menu when the MENU button was pressed.
void SetUiSelection(MythUIButtonListItem *item)
Updates text widgets for selected item.
bool keyPressEvent(QKeyEvent *event) override
Handle keypresses.
void DoSetCover(bool reset=false)
Set or reset thumbnails to use for a directory cover.
void ResetUiSelection()
Clears all text widgets for selected item.
void MenuShow(MythMenu *mainMenu)
Add a Show submenu.
void ShowSettings()
Show configuration screen.
void UpdateScanProgress(const QString &scanner, int current, int total)
Update progressbar with scan status.
static void ClearStorageGroup()
Clear database & thumbnails of Storage Group images.
void TransformMarked(ImageFileTransform tran=kRotateCW)
Apply transform to marked images.
void SelectImage(int id)
Select item if it is displayed.
void DoShowHidden(bool show=true)
Show or hide hidden files.
DirectoryView * m_view
List of images comprising the view.
void MenuSlideshow(MythMenu *mainMenu)
Add a Slideshow submenu.
void BuildImageList()
Displays all images in current view.
void StartSlideshow(ImageSlideShowType mode)
Start slideshow screen.
void ShowRenameInput()
Show dialog to allow input.
void ShowDialog(const QString &msg, const QString &event="")
Show a confirmation dialog.
void DeleteMarked()
Confirm user deletion of marked files.
static void DoRepeat(int on)
ImageCaptionType
Type of captions to display.
QSet< QString > m_scanActive
Scanners currently scanning.
void ZoomOut()
Use larger buttonlist widgets.
void ItemClicked(MythUIButtonListItem *item)
Action item click.
MythCoreContext * gCoreContext
This global variable contains the MythCoreContext instance for the app.
void DoHideMarked(bool hide=true)
Hide or unhide marked items.
bool DirSelectUp()
Goes up one directory level.
void UpdateImageItem(MythUIButtonListItem *item)
Initialises a single buttonlist item.
void ShowDetails()
Shows exif info/details about an item.
QString CheckThumbnail(MythUIButtonListItem *item, const ImagePtrK &im, ImageIdList &request, int index)
Verify thumbnail is known to exist.
MythScreenStack & m_popupStack
QMultiHash< int, ThumbLocation > m_pendingMap
Buttons waiting for thumbnails to be created.
void TransformItem(ImageFileTransform tran=kRotateCW)
Apply transform to an image.
MythUIText * m_scanProgressText
void MarkInvertAll()
Invert all marked items.
void RecursiveSlideshow()
void Move()
Move marked images to selected dir. If no marked files, use previously marked files....
ImageManagerFe & m_mgr
Manages the images.
Provides view datastores for Gallery screens.
@ kUserCaption
Exif comments.
All purpose text widget, displays a text string.
bool m_editsAllowed
Edit privileges.
The image manager for use by Frontends.
The image info/details buttonlist overlay that displays exif tags.
void DoMarkAll(bool mark=true)
Mark or unmark all items.
void DeleteItem()
Confirm user deletion of an item.
QList< MythUIButtonList * > m_zoomWidgets
Theme buttonlist widgets implementing zoom levels.
~GalleryThumbView() override
Destructor.
void RemoveImages(const QStringList &ids, bool deleted=true)
Cleanup UI & image caches when a device is removed.
void DoShowType(int type)
Show/hide pictures or videos.
void DoMarkItem(bool mark)
Mark or unmark a single item.
void MenuTransform(MythMenu *mainMenu)
Add a Transform submenu.
QPair< MythUIButtonListItem *, int > ThumbLocation
MythUIText * m_captionText
void DoScanAction(bool start)
Action scan request.
void SaveSetting(const QString &key, int newValue)
A datastore of images for display by a screen. Provides an ordered list of dirs & images from a singl...
void MenuMarked(MythMenu *mainMenu)
Adds a Marking submenu.
void Close() override
Exit Gallery.
void Eject()
Remove local device (or Import) from Gallery.
@ kVideoOnly
Hide pictures.
void Start()
Start Thumbnail screen.