summaryrefslogtreecommitdiffstats
path: root/pictureviewer2.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Weed out PictureViewer in favor of PictureViewer2Arno2012-04-281-0/+44
| | | | Remove PictureViewer from everywhere and use PictureViewer2 instead.
* Finally fix MappingItemArno2012-04-031-31/+16
| | | | | | | | | 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-19/+31
| | | | | Make mappingwidget behave according to settings. SideBySide doesn't work yet, maybe it should be canned.
* Made FileInfoItem configurableArno2012-03-241-4/+38
| | | | | | | 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-8/+102
| | | | | | | | | | | 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-2/+34
| | | | | | | 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-1/+11
| | | | | This was easier than I thought. Make info item movable and save position on exit.
* Randomize selection for pictureviewerArno2012-03-171-0/+4
| | | | | 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-10/+16
| | | | | 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-2/+17
| | | | | | 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-20/+26
| | | | | | | | | 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-4/+59
| | | | | Create a GraphicsItem showing the filename at the top of the view. Also put the filename in the window title.
* Slide showArno2012-03-101-4/+29
| | | | | | 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-7/+13
| | | | | | | -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-9/+59
| | | | | Show picture in PictureViewer2 when double clicking an item in pictures widget. Also shuffle some code around.
* First draft of PictureViewer2Arno2012-03-081-0/+65
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...