summaryrefslogtreecommitdiffstats
path: root/pictureviewer2.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix some detached container warningsArno2024-08-311-4/+4
| | | | | Dunno if necessary, but they came up in the previous debugging session, so just do it...
* Catch Magick::ExceptionArno2024-08-311-0/+4
| | | | | | | | | | | | Prevent crash when trying to convert a file to png. This was a hard one. After checking into detached QT-Containers I finally realized that convertArchivefileToPng was the culprit, because ImageMagick::read exited with an "Unsupported marker type 0x09" execption. After some more investigation with convert, or magick convert these days, I found out that they could be ignored. Yes, it's a big hammer, but if it still fails after trying to convert, just return if still don't have a valid image.
* Center slide dialog on main window1.4.0Arno2022-04-151-1/+1
| | | | ... instead of the viewer
* Make it run with Qt6Arno2022-04-151-21/+7
| | | | | | | | | This is a huge commit. Changes: * Obviously, make it compile * Make it run (only scarcely tested) * get rid of most of clang's warnings Let's see what surprises are in store...
* Fix delta() deprecation warningArno2020-07-251-2/+2
|
* Fix qrand() deprecation warningsArno2020-07-251-2/+3
|
* Increase maximum days for slide showArno2020-03-141-4/+5
| | | | Set it to 9999. While at it, remove some dead code and fix includes.
* Fix clang warnings in pictureviewer2Arno2018-11-231-23/+23
| | | | | | | | Get the QGraphicsItems right (I hope), and use auto where applicable. Let the compiler do the hard work. Also use type-safe connect syntax, fix nullptr warnings and weed out foreach.
* Use palette colors where applicableArno2018-11-231-1/+1
| | | | | Don't assume we know what color ought to use. Ask the palette where applicable, but keep the modified configuration options.
* More code churnArno2018-07-201-0/+1
| | | | | Create separate files for MappingData and MappingTreeResultModel. Hopefully no functional changes.
* Just code shuffle, no functional changeArno2018-07-191-0/+1
| | | | | Split up all the classes in mappingtreewidget into separate files to make editing easier.
* Remove the menuBar() from picture archiveArno2018-07-141-83/+2
| | | | | | | The journey started innocent enough, but turned out to be a commit that should have been severals. In the end, the picture archive has no menuBar() any more, as expected, but it's also impossible to call the slide dialog. Will fix that soon.
* Don't crash when doubleclicking an Origin fileArno2017-12-271-2/+6
| | | | | Bail out if we have FT_ORIGIN. This file will never be present. Also check harder what title to set in pictureviewer2.cpp, if any.
* Fix one crash and compile issuesArno2017-07-201-1/+7
| | | | | | | | | | | | Don't access FileName in constructWindowTitle when we don't have a file at mCurPos. That's what crashed us randomly! Also (yes, I know, should be a separate commit) fix warnings about implicit fallthru's in switch statements. The one in SmDirModel actually was a bug, the one in tabChanged is just a nuisance. Also (again), shuffle header inclusion in SmGlobals so Xlib and QT don't clash.
* Add Next> to NewPicsDialogArno2016-10-161-0/+1
| | | | | | Make archiving various pictures easier. When NewPicsDialog is calles with a directory, the Next> button archives the current pic and selects the next.
* Show busy cursor when selecting files for slideArno2016-03-301-0/+2
|
* Remove calculate results from SlideDlgArno2016-03-301-5/+1
| | | | Never did anything, and we'll know soon enough.
* Show current position when slidingArno2016-03-301-4/+3
| | | | Replace \d files selected with \d/\d files.
* Remove presets from NewPicsDialogArno2016-03-301-1/+0
| | | | | | | | and replace them with write/readSettings. It was a useless feature anyway, don't even remember what it was good for. Also fix another bug in MappingTreeResultModel: Clear mCurrentData too, when clearData is called.
* Save mappings from slide dialogArno2016-03-301-0/+2
| | | | | Also fix a long standing bug in MappingTreeModel: also remove item from mCurrentData when the removed item is a parent of one of the items.
* Save slide dialog settingsArno2016-03-291-1/+22
| | | | | Well, everything besides the selected selection... That needs some more work.
* Fix display of selected filesArno2016-03-291-1/+1
| | | | Show actual size of selected files.
* Get rid of a lot of unused codeArno2016-03-291-281/+6
| | | | | 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-4/+62
| | | | Well, implement functionality. Seems to work as intended.
* Design slide dialogArno2016-03-291-0/+102
| | | | Does nothing yet, just the dialog...
* Fix convert to PNG messArno2015-10-241-7/+15
| | | | | | | | | | 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.
* Fix crash in PictureViewer2Arno2015-10-121-0/+5
| | | | | | Don't try to access an empty QList<QVariant>. It comes from the constructor. There has to be a better way to fix this, but right now it eludes me...
* Slide through recent in PictureViewer2Arno2015-08-291-5/+58
| | | | | For now, recent is hardcoded to pictures added in the last 6 months. Maybe it should be configurable...
* Fixes for control item in PictureViewer2Arno2015-08-281-13/+18
| | | | | | * place it bottom right instead of right center * add proper margins * use variables for margins and sizes instead of magic numbers
* Implement shuffle in PictureViewer2 controlsArno2015-08-271-18/+35
| | | | Remove action from context menu.
* Remove PVActions from SheMovArno2015-08-271-17/+1
| | | | Remove actions that are now triggered by the ControlItem.
* Add missing restore() for QPainterArno2015-08-271-0/+1
|
* Fix keyboard triggersArno2015-08-271-2/+26
| | | | Call the appropriate functions on keyPressEvent
* Reload picture list on normal slideArno2015-08-271-0/+3
| | | | | When changing from slide through all to slide, reload picture list from model instead of continuing with current list from all.
* Make PictureViewer2 controls workArno2015-08-271-4/+57
| | | | | Now the controls actually do something. Not still as promised, but they kinda work!
* Display control itemsArno2015-08-271-4/+58
| | | | | Draw control items in PictureViewer2 at the right centered on the y- axis.
* Create dummy BoundingRectItem for controlsArno2015-08-271-1/+23
| | | | Draw a dummy rounded rectangle on the bottom left for control items.
* Custom QGraphicsScene for PictureViewer2Arno2015-08-271-1/+9
| | | | | Introduce PictureViewerGraphicsScene for upcoming control items in the scene.
* Don't crash when current pic doesn't existArno2015-08-131-0/+4
| | | | Check if the currently shown picture still exists instead of crashing.
* Implement slide through all picturesArno2015-08-121-6/+77
| | | | | 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 :)
* Automatically convert invalid jpg picsArno2015-07-181-3/+11
| | | | | | | | Well, seems that's Qt's ImageReader got pickier regarding jpeg-files. If the resulting QPixmap is null and void, try to convert them to png. This introduces a new dependency to ImageMagic++. I don't like it, but it works, kinda... I saw random crashes while testing...
* Usability fixesArno2015-06-071-0/+1
| | | | | | | | | | * start maximized * focus MappingTree when showing NewPicsDialog * Keyboard Shortcuts for FilesystemWidget: CTRL+UP: go to parent dir CTRL+LEFT: go back CTRL+U: unpack * close UnpackDialog when done
* Resize PictureViewer2Arno2015-06-061-15/+9
| | | | | | 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.
* Save position of NewPicsDialogArno2015-04-081-1/+0
| | | | | Add button to save the position of the NewPicsDialog and move it there when we show()
* Move NewPicsDialog to topLeft + selectAllArno2015-03-211-5/+14
| | | | | | 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-59/+28
| | | | | | | | | | 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.
* Major rework of MappingTreeResultView + ModelArno2014-06-291-1/+1
| | | | | | | Well, I hope this fixes the crashes for good. String comparison for looking up the parents really wasn't a prudent thing to do... Use the ParentIds instead.
* Fix Display of mappingsArno2014-06-191-18/+65
| | | | | MappingTreeModel::treeFromPath() never worked as intended, so replace it by displaying mappings in a QTextTable.
* Add Skip in PictureViewer2Arno2014-06-071-0/+25
| | | | | PageDown = back 25 PageUp = forward 25
* Don't show PicGone when showing a PreviewArno2013-10-121-2/+2
|