summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug guessing origin filesArno2018-01-271-2/+2
| | | | | baseName() only returns the filename unto the *first* dot, but we want the *last* dot, so use completeBaseName().
* Clean up filesystemfileproxy.cppArno2018-01-012-10/+1
| | | | Remove unneccessary includes and forward declarations.
* Fix include in filesystemdirproxy.cppArno2018-01-011-1/+1
|
* Clean up filepropertiesdialog.cppArno2018-01-012-23/+15
| | | | | * make one connect() type-safe * remove members that don't need to be members, and one unused member
* Make DbEmptyDialog an abstract classArno2018-01-012-10/+2
|
* Give DbAnalyzer some loveArno2017-12-312-32/+15
| | | | | | | * use type-safe connect syntax * remove unnecessary includes * remove Q_FOREACH * inline selectionModel()
* Clean up configurationdialog.cppArno2017-12-312-47/+37
| | | | | | * use type-safe connect syntax * remove Q_FOREACH * remove unused members and make some QPushButtons non-members
* Clean up archiveview.cppArno2017-12-302-29/+24
| | | | | | * Use type-safe connect * remove Q_FOREACH * remove some unused #includes
* Remove Q_FOREACH and an unused header from archivebrowsermodel.cppArno2017-12-301-2/+1
|
* Massive code churn in shemov.cppArno2017-12-293-108/+113
| | | | | | | | | | | Converted everything to the type-safe connect syntax. That unearthed two minor problems with filesystemwidget.cpp: 1. We called a private SLOT in there from class SheMov. Dunno if it works with the old syntax. Anyway, I fixed it. 2. With the new syntax you can't call SLOTS with default arguments, so I had to introduce a helper slot playSelectedWithDefault Since I was already at it, I also replaced Q_FOREACH.
* Guess if the file was reencodedArno2017-12-283-0/+32
| | | | | It's really simple: If we have a file with the same name, but another extension, add it as FT_ORIGIN to the list.
* Ask for removing origin filesArno2017-12-282-0/+32
| | | | | Pop up a dialog to ask if origin files should be deleted. Not tested yet, so beware of the leopard!
* Improve archiving picturesArno2017-12-272-0/+31
| | | | | | | Specifically editing mappings. Select and show the source when selecting a mapping result. I know I worked on this a while ago, but never got it right. IIRC I fiddled around with paths and recursion, but that was way too complicated. Just move down the source tree. Fuck recursion :)
* Don't crash when doubleclicking an Origin fileArno2017-12-272-2/+8
| | | | | 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.
* Get rid of FilesystemWidget::getRecursiveArno2017-12-272-18/+7
| | | | | Use QDirIterator instead. It compiles, but it's *not* tested! So it might not work as expected!
* Get rid of homebrewed deleteRecursiveArno2017-12-272-19/+6
| | | | | | | Since Qt 5.0 QDir has the member removeRecursively, so use it. Just be careful what you feed it. Don't use QFileInfo::dir, because that's the *containing* directory. That would delete everything *including* the parent directory!
* Modernize filesystemwidget.cppArno2017-12-271-29/+29
| | | | | | * replace Q_FOREACH, except in the recursive functions. Those will be removed in a later commit * use type-safe connect syntax
* Make unpack directory configurableArno2017-12-274-4/+21
| | | | | Add option and use it. Warn if the directory is not accessible and bail out. Initialize mFilesCtr to 0 so we don't crash if it's < 0
* Remove unneeded #includes in configurationdialog.cppArno2017-12-272-8/+0
|
* Rip out copy path optionsArno2017-12-272-20/+0
| | | | | | | | | Honestly, I have no idea what it was good for once. The class/file using it is long gone, but I forgot to remove the configuration options. Unfortunately my git-foo isn't good enough to figure out what happened when. Well, goodbye!
* Clean up archivebrowser.cppArno2017-12-271-21/+21
| | | | | | * replace qSort * replace Q_FOREACH * use type-safe connect syntax
* Clean up archivecontroller.cppArno2017-12-271-17/+18
| | | | | | * remove deprecation warnings (QModelIndex::child) * replace Q_FOREACH * use type-safe connect syntax
* Clean up archivemodel.cppArno2017-12-271-14/+14
| | | | | | * remove deprecation warning: use std::sort * use c++-for instead of Q_FOREACH * make one remaining connect type-safe
* Modernize mappingtreewidget.cppArno2017-12-271-31/+32
| | | | | | * get rid of QModelIndex::child deprecation warnings * replace Q_FOREACH * use type-safe connect syntax
* Get rid of deprecation warning in mappingtreemodel.cppArno2017-12-271-3/+3
| | | | Use std::sort instead of qSort and replace Q_FOREACH.
* Remove deprecation warning and Q_FOREACHArno2017-12-271-2/+2
| | | | | Use QImage::sizeInBytes instead of QImage::byteCount as suggested by documentation.
* Clean up newmoviewizard.cppArno2017-12-271-7/+7
| | | | | * remove one deprecation warning about QModelIndex::child * use c++-style for-loops instead of Q_FOREACH
* Clean up SmGlobalsArno2017-12-271-11/+2
| | | | | * remove a bunch of uncessary #includes * remove a deprecation warning: use std::sort instead of qSort
* Modernize mappingtablemodel.cppArno2017-12-271-5/+5
| | | | | * use std::sort instead of deprecated qSort * use c++ style for-loop instead of Q_FOREACH
* Change deprecated QModelIndex::childArno2017-12-271-1/+1
| | | | Deprecation warning suggests to use QAbstractItemModel::index, so do it.
* Turn on deprecation warningsArno2017-12-271-0/+1
|
* Add clear button for comment in metadataArno2017-12-271-3/+6
| | | | | Also use SLOT activated instead of currentChanged for the reasons QCombobox so the text is inserted even if the selection didn't change.
* Clean up consistencycheck.cppArno2017-12-261-24/+24
| | | | | | * headers * get rid of foreach * use type safe connect syntax
* Get rid of QSignalMapper in consistencycheck.cppArno2017-12-261-11/+4
| | | | It's obsolete. Same as before!
* Get rid of colorMapperArno2017-12-261-19/+8
| | | | Another QSignalMapper gone...
* Get rid of collectorMapperArno2017-12-261-13/+5
|
* Get rid of PVAddMapper QSignalMapperArno2017-12-262-8/+2
| | | | | | | One has to ask what it is good for now, maybe totally useless after revamping the slide dialog, but that's for another commit... This also eliminates QSignalMapper from shemov.{h,cpp}
* Get rid of copyCutMapperArno2017-12-261-6/+2
|
* Get rid of the headerMapper QSignalMapperArno2017-12-262-14/+8
| | | | | | | This one was a bit harder, because I made a function return the QSignalMapper, but I could reuse it with a signature change. Just provide the view, too, so we can make the connection inside the function, which now returns void.
* Get rid of QSignalMapper mOpenTimesFSMapperArno2017-12-262-5/+1
| | | | and replace it with a lambda.
* Get rid of QSignalMapper mOpenWithMapperFSArno2017-12-262-21/+4
| | | | Replace it with a lambda as SLOT, as stated in the QT documentation.
* Get rid of c++11Arno2017-12-261-2/+1
| | | | Not needed any more...
* Fix consistency checkArno2017-08-122-16/+8
| | | | | | | | | | | Actually, removing stray pictures never worked, because the call to that function was commented out. Also, remove the clear functions stray files and stray ids and lock the mutex in place. They were only called once, so we can do it inside the function. And don't forget to clear the picture Ids. Finally, fix the logic for activating the cleanup button.
* Fix one crash and compile issuesArno2017-07-204-5/+14
| | | | | | | | | | | | 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.
* Play movie on doublelClick in RandomTabArno2016-11-112-0/+10
|
* Hook up Actions for RandomTabArno2016-11-114-5/+88
| | | | Create edit and context menus.
* Actually play movies!Arno2016-11-112-1/+29
| | | | | Finally do something with the random selection! Implement playAll and playSelected.
* Implement GUI elements for playing moviesArno2016-11-112-0/+23
| | | | RotzPeng! He who doeth not find the button of his choice is not worthy!
* Read and write settings / SelectionBehaviorArno2016-11-112-0/+44
| | | | | Fixing selection behavior should have been a separate commit, but well... Set it to ExtendedSelection and SelectRows.
* Energize!Arno2016-11-112-6/+172
| | | | Fill the random file view with movies.