Opened 18 years ago

Closed 18 years ago

#702 closed patch (fixed)

Various improvements to MythGallery

Reported by: DanielSherwood Owned by: Isaac Richards
Priority: minor Milestone: unknown
Component: mythgallery Version:
Severity: medium Keywords:
Cc: Ticket locked: no

Description

1) Implement shuffle mode in singleviewers.

When using random slideshow, the same image can be repeated in close succession (due to the nature of rand()). It would be better to implement a shuffle algorithm where each image appears only once in a cycle. This patch adds a new set of clases to generate sequences for this functionality. Currently supported sequences are increment, decrement, random and shuffle. Whats more, the sequences can be navigated such that previously displayed images can be viewed even in random and shuffle mode.

Changes - glsingleview.cpp, glsingleview.g, singleview.cpp, singleview.h New - sequence.h

2) Implement delete in iconview and singleviewers.

Add functionality to delete images. In ill cases, the image file and any metadata is removed. In iconview, the directory is simply reloaded. In singleviewers, the advance/retreatFrame() function have been modified to skip missing image files. A menu item has been added to iconview and the new DELETE key works in all views.

Changes - main.cpp, iconview.cpp, iconview.h, glsingleview.cpp, singleview.cpp

3) Add keyboard event handling for rotate in iconview.

Added keyboard event handling for ROTATECW and ROTATECCW in iconview.

Changes - iconview.cpp

4) Add SLIDESHOW and RANDOMSHOW keyboard events.

Instead of using the menu to start the slideshow mode, it is now possibe to use SLIDESHOW and RANDOMSHOW to do this (whether the menu is selected or not). Behaviour of SELECT and PLAY remains as before.

Changes - main.cpp, iconview.cpp, glsingleview.cpp, singleview.cpp

Issues If you delete an image that is used as the thumbnail for the directory, the thumbnail is not updated.

Attachments (2)

mythplugins_702.patch (21.6 KB) - added by DanielSherwood 18 years ago.
mythplugins_702_v2.patch (22.4 KB) - added by DanielSherwood 18 years ago.
Call srand to give proper random behaviour and delete thumbnails when they need regenerating so that directories get updated correctly.

Download all attachments as: .zip

Change History (4)

Changed 18 years ago by DanielSherwood

Attachment: mythplugins_702.patch added

comment:1 Changed 18 years ago by anonymous

Type: defectpatch

Changed 18 years ago by DanielSherwood

Attachment: mythplugins_702_v2.patch added

Call srand to give proper random behaviour and delete thumbnails when they need regenerating so that directories get updated correctly.

comment:2 Changed 18 years ago by Isaac Richards

Resolution: fixed
Status: newclosed

(In [8176]) Close #702 (MythGallery improvements) by applying patch.

Note: See TracTickets for help on using tickets.