summaryrefslogtreecommitdiffstats
path: root/pictureviewer2.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove calculate results from SlideDlgArno2016-03-301-2/+0
| | | | Never did anything, and we'll know soon enough.
* Show current position when slidingArno2016-03-301-1/+1
| | | | Replace \d files selected with \d/\d files.
* Save slide dialog settingsArno2016-03-291-0/+3
| | | | | Well, everything besides the selected selection... That needs some more work.
* Get rid of a lot of unused codeArno2016-03-291-42/+0
| | | | | Well, sanitize the sliding madness. Replace it by a dialog and just one timer. Seems to work so far...
* Make the SlideDialog do somethinArno2016-03-291-0/+17
| | | | Well, implement functionality. Seems to work as intended.
* Design slide dialogArno2016-03-291-1/+37
| | | | Does nothing yet, just the dialog...
* Fix convert to PNG messArno2015-10-241-1/+2
| | | | | | | | | | Automatically converting a damaged file to PNG and updating the archive is fine as long as we're *in* the archive, but it totally messes things up if we're browsing the file system. So check if the image is in the archive path, and only then consider auto-converting it. Also show a notice in the InfoItem if the file has been converted.
* Slide through recent in PictureViewer2Arno2015-08-291-0/+6
| | | | | For now, recent is hardcoded to pictures added in the last 6 months. Maybe it should be configurable...
* Implement shuffle in PictureViewer2 controlsArno2015-08-271-3/+3
| | | | Remove action from context menu.
* Remove PVActions from SheMovArno2015-08-271-4/+0
| | | | Remove actions that are now triggered by the ControlItem.
* Make PictureViewer2 controls workArno2015-08-271-0/+14
| | | | | Now the controls actually do something. Not still as promised, but they kinda work!
* Display control itemsArno2015-08-271-1/+9
| | | | | Draw control items in PictureViewer2 at the right centered on the y- axis.
* Create dummy BoundingRectItem for controlsArno2015-08-271-1/+15
| | | | Draw a dummy rounded rectangle on the bottom left for control items.
* Custom QGraphicsScene for PictureViewer2Arno2015-08-271-2/+10
| | | | | Introduce PictureViewerGraphicsScene for upcoming control items in the scene.
* Implement slide through all picturesArno2015-08-121-2/+13
| | | | | Wow, that was much more complicated than I first thought, but it seems to work. Maybe it's much more convoluted than it has to be :)
* Resize PictureViewer2Arno2015-06-061-2/+1
| | | | | | Make it possible to resize the PictureViewer2 and get rid of fixed size. Also, make sure that the current picture is redrawn when we get a resize event.
* Move NewPicsDialog to topLeft + selectAllArno2015-03-211-0/+2
| | | | | | When calling NewPicsDialog from PictureViewer, move it to the top left corner to not cover the pic itself. Also, select all pics from current directory when no files are marked.
* Bring back the nice MappingItem!Arno2014-07-091-0/+1
| | | | | | | | | | Resurrect the indented MappingItem. There's some recursion involved, but actually it ain't so hard if you have a template :) This adventure uncovered a bug in NewPicsDialog: Right now we also record the nodes (not just the leaves) for the Mappings. This bug was introduced by commit dc7cc269a4fffe43bdac2ae2dc6548fbd1e3bb5e and will be fixed in one of the next commits.
* Add Skip in PictureViewer2Arno2014-06-071-1/+4
| | | | | PageDown = back 25 PageUp = forward 25
* Use marked files from PictureViewer2Arno2013-10-121-1/+3
| | | | | | | | * Call NewPicsDialog with marked files list * some more keyboard navigation: -> Cursor UP and RIGHT - previous -> Cursor DOWN and LEFT - next -> DELETE - delete file
* Improve PictureViewer2Arno2013-10-121-2/+11
| | | | | | | | | * implement Mark Files * always show all pictures from context * change navigation: N -> next P -> previous M -> mark/unmark file
* Fix show/hide events for PictureViewer2Arno2013-10-121-3/+5
| | | | check and uncheck the show/hide QAction on showEvent/hideEvent.
* Preview fixesArno2013-09-141-0/+4
| | | | | * Don't show the mapping item in preview, because it has none. * Use qApp->showOverrideCursor() instead of QWidget::cursor()
* Fix previewArno2013-08-161-2/+2
| | | | | * Show :/picgone.png if movie is not available * Show cover if preview is called on a picture
* Implement previewArno2013-08-111-0/+1
| | | | Show 4 frames of the selected movie in PictureViewer2.
* Port to Qt5Arno2013-03-031-2/+2
| | | | | | | | * Change #include to qt5 * Fix missing QX11Info * use explicit constructor for QVariant(QColor) * use beginResetModel() and endResetModel() instead of reset(). The latter was removed. Hopefully it still works :)
* Usability: Make archiving pics easierArno2012-11-161-0/+4
| | | | | | | | | | | To make archiving pictures from different sources easier, add a NewPicsDialog to PictureViewer. Add shortcuts to show the dialog and adding pics to it. After adding all pics with the same mappping, just click OK and add them to the archive. Shortcuts: Meta+s: Show NewPicsDialog Meta+a: Add current pic
* Make PictureViewer2 size configurableArno2012-10-201-1/+2
| | | | | | | | Several bug fixes on the way: * set fixed size policy for PictureViewer2 -> makes resizing much easier * don't set Y-offset when showing a pic. The scene takes care of it * don't deliver SIGNAL configChanged() twice to PictureViewer2 * center Widget on current screen when calling Helper::centerWidget
* Usability: ConfigurationDialog -> picturesArno2012-10-201-2/+0
| | | | | | Replace checkbox for showing info items at all with a "do not show" position in the combobox. While at it, remove unused SideBySide position.
* Fix Mappings in PictureViewer2Arno2012-10-041-0/+3
| | | | | | | | | | Another fix for the new MappingTreeModel database layout: Make the mappings display correctly when showing an archived picture. For performance reasons I had to make PicFilesModel global and put it into a separate file. Also clean up MappingTreeModel: remove comments and unused functions.
* Implement copy file from PictureViewer2Arno2012-09-081-0/+1
| | | | | | | | | | | | Add an action to PictureViewer2 for copying the current pic to another directory. When I tried to add the QAction to the context menu, I realized that I chose the variable names picView and picViewer in shemov.cpp very poorly. Took some time to sift though it. Eventually I shifted some code around to make it more readable. While at it I replaced the individual separators with createSeparator(). Other than adding the Copy To action no functional changes.
* Weed out PictureViewer in favor of PictureViewer2Arno2012-04-281-0/+3
| | | | Remove PictureViewer from everywhere and use PictureViewer2 instead.
* Finally fix MappingItemArno2012-04-031-1/+1
| | | | | | | | | Well, the comment was right. The previous implementation was fishy at best. It simply didn't work. Could have been so ease. Just look at the commit size :) Don't forget that there will be an empty line at the beginning of the QTextDocument if you don't check the first insert.
* Make Mapping widget configurableArno2012-03-241-2/+5
| | | | | Make mappingwidget behave according to settings. SideBySide doesn't work yet, maybe it should be canned.
* Made FileInfoItem configurableArno2012-03-241-0/+3
| | | | | | | Create copious options for FileInfoItem, reintroducing the Pictures tab in ConfigurationDialog. Also fixed a long standing bug in SeriesTreeWidget: don't static_cast() an event. It'll succeed even when called from a destructor.
* Show mappings in PictureViewer2Arno2012-03-241-4/+16
| | | | | | | | | | | Hell, this was one heck of a bitch. Lots of changes just to show the mapping tree in PictureViewer2. Did I mention that I hate recursion? Added a function for fetching a SmTreeItem * from MappingTreeModel for paths, just to turn it into a QTextDocument in PictureViewer2. Of course everything is recursive. Did I say that I hate recursion? Well, as said in the comments, one recursion function seems fishy, but it works (tm).
* Add keyboard actions to PictureViewer2Arno2012-03-171-1/+7
| | | | | | | Never, ever forget: QVariant() casts to a valid int! Again, this was a tough one, but maybe I shouldn't drink and program. PictureViewer2 reacts to Escape and Space. Escape hides it and stops the slide timer, Space activates the slide timer.
* Make info item in PictureViewer2 moveableArno2012-03-171-0/+2
| | | | | This was easier than I thought. Make info item movable and save position on exit.
* Randomize selection for pictureviewerArno2012-03-171-0/+1
| | | | | std::random_shuffle available files in PictureViewer2. Add action to View menu and reuse an icon.
* Show number of selected files in PictureViewerArno2012-03-171-2/+2
| | | | | Show the number of files available to PictureViewer2 in the InfoItem. Also give constructFilenameItem a proper name.
* Make background color of PictureViewer2 configurableArno2012-03-171-1/+4
| | | | | | Add options to ConfigurationDialog to either use a fixed color as background or a gradient picked with random colors picked from the picture.
* Revamp filename item in PictureViewer2Arno2012-03-161-7/+8
| | | | | | | | | Turn it into something completely different :) Display filename, scaled size, file size, added date and mime type in the upper left corner of the viewport. Make it more visible. A pinkish background doesn't always work esp. with a gradient background. Make it white with 80% alpha channel with a black foreground.
* Show filename in PictureViewerArno2012-03-101-1/+15
| | | | | Create a GraphicsItem showing the filename at the top of the view. Also put the filename in the window title.
* Slide showArno2012-03-101-1/+6
| | | | | | Implement slide show in Pictureviewer2. Slide over all available files and wrap around when reaching the end of the list. Also added some more artwork.
* Make PictureViewer usefulArno2012-03-081-5/+9
| | | | | | | -Implement add and replace files -use QList<QVariant> (typedef'd) for shoveling data around -more code shuffling -new artwork
* Show picture on doubleClick in PicturesWidgetArno2012-03-081-4/+14
| | | | | Show picture in PictureViewer2 when double clicking an item in pictures widget. Also shuffle some code around.
* First draft of PictureViewer2Arno2012-03-081-0/+38
Doesn't do much other than showing a default picture, but it behaves like a QDialog and positions itself correctly. It's quite a pain in the ass with a tiling window manager...