summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* View picture on doubleclickArno2018-03-315-3/+141
| | | | | Use lightweight viewer from ShemovCleaner for this. Unfortunately PictureViewer2 is overengineered for this.
* Implement unpack for FSWidgetArno2018-03-312-1/+24
| | | | | | Unconditionally try to extract all selected files with 7z to the current directory. Don't try to figure out if 7z is available or if the file is an archive.
* Implement mime filters for FSWidgetArno2018-03-312-0/+12
| | | | Finally make the QComboBox do something.
* More sorting for FSWidgetArno2018-03-315-6/+48
| | | | | Sort size and duration by their actual numbers instead of alphabetically by the display string.
* Keep sort order and column in FSWidgetArno2018-03-311-0/+4
| | | | | Remember column and order when gathering data. Also, set inital sort column to Name and oder to Qt::AscendinOrder.
* Implement delete files for FSWidgetArno2018-03-312-1/+27
|
* Implement archive movies for FSWidgetArno2018-03-315-4/+46
| | | | | Mimic the old behavior, but make the Wizard local to FSWidget. It's only called from there, so no need to make it global.
* Add context menu to FSWidgetArno2018-03-314-0/+21
| | | | Also create a helper function to create separator actions.
* Add refresh to FSWidgetArno2018-03-312-0/+9
|
* Make it easier to add directoriesArno2018-03-311-1/+6
| | | | | Use the parent of the current selected dir as starting point when adding a directory to FSWidget.
* Add visual feedback to FSWidgetArno2018-03-313-2/+19
| | | | | | | | * show busy cursor when gathering data * emit statusbarMessage() when gathering data The latter shows a summary with the time it has taken to gather data, the SQL query count and the number of files analyzed.
* Implement forward and back actions in FSWidgetArno2018-03-312-0/+15
|
* Visual changes for FSWidgetArno2018-03-311-6/+10
| | | | | | * replace add and remove icons with generated '+' and '-' icons * rearrange top widgets: directories at the left, center toolbar and filters at the right.
* Search database during FSWidget::gatherDataArno2018-03-312-5/+59
| | | | | | | | | | | First, look for md5 in files and files_origin. Then look for the complete filename in files, and finally for the filename without suffix in files_origin. If we have a match, note it in the new column "Presence". Matches from files are displayed green, matches from files_orgin blue. This implementation tries to execute as few QSqlQueries as possible by using goto for performance. We only want to know if the file is somewhere present, so skip the remaining queries once we have a match.
* Make FSWidget prettierArno2018-03-313-2/+34
| | | | | | * add programmatically rendered icons * make text Qt::black * set rootIsDecorated to false
* Actually make FSWidget show some dataArno2018-03-302-1/+68
| | | | Not pretty, but we're getting there.
* Implement adding filtersArno2018-03-302-15/+46
| | | | | | | Also safe and restore them. What I found out: setting the insert policy on QComboBoxes is totally useless when you insert items programmatically. So I implemented inserting items sorted on my own and generalized it for the dir and filter combobox, thanks to lambdas...
* Implement add and remove dir in FSWidgetArno2018-03-302-2/+55
| | | | | Still doesn't read anything from the filesystem, but now you can add and remove directories. Also, the settings are saved.
* Basic layout for new FSWidgetArno2018-03-305-2/+97
| | | | Just the layout, does absolutely nothing yet.
* Add untar actionArno2018-03-304-0/+20
| | | | | tries to tar xf selected files. If tar was successful, the archive is deleted. Should make archiving pics a bit easier.
* 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.