summaryrefslogtreecommitdiffstats
path: root/fswidget.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix window titleArno2018-07-141-0/+2
| | | | for FSWidget and MovieWidget.
* Rename FSView to SmViewArno2018-04-041-2/+2
| | | | | Turns out it's more general purpose than I thought. Gonna reuse it for MovieWidget.
* FSWidget: add configure actionArno2018-04-031-0/+1
|
* FSWidget: Update free space after gatherData()Arno2018-04-031-0/+1
|
* FSWidget: Update status barArno2018-04-031-0/+2
| | | | Show count, size and duration.
* FSWidget: Implement Play with actionsArno2018-04-031-1/+3
| | | | | Fill the submenu from readSettings so we can act on configuration changes.
* FSWidget: Implement select and deselect filesArno2018-04-021-4/+3
| | | | | | | | | | | | | | | | Select files by CTRL+k, deselect everything with CTRL+k (for kill). Select all with the global shortcut CTRL+a. Learned some interesting things: First, QAction shortcuts won't work if you don't add them to any actions(), even if it has a parent. So subclass QTreeView for the context menu and add an InvisibleAction enum. Don't show the QAction if it has that flag in data(). This has a nice side effect: the context menu isn't shown any more when you right-click outside the FSView. Second: The debugger was quite confused with equal SLOT names in different classes when using the new connect syntax. It dropped me off in totally wrong classes, confusing me at first, too :(
* FSWidget: Implement play selected and repeatArno2018-04-021-0/+1
| | | | Well, lambdas make life so much easier! Thanks for that :)
* Implement duplicate checking for pics in FSWidgetArno2018-04-021-1/+1
| | | | | | | | | Assume that the pictures are identical when the MD5-Sum is. Don't do that if only the filename is identical. There can be pics with identical names in the database. Instead, record the md5sum in a custom role. The idea is to let the user sort it out by comparing all pictures visually, but that's not yet implemented.
* Implement archive pics for FSWidgetArno2018-03-311-0/+3
| | | | And remove a lot of cruft... Still much work to be done :(
* Implement preview for videosArno2018-03-311-0/+1
| | | | Comes at almost no cost when using Viewer :)
* View picture on doubleclickArno2018-03-311-1/+4
| | | | | Use lightweight viewer from ShemovCleaner for this. Unfortunately PictureViewer2 is overengineered for this.
* Implement unpack for FSWidgetArno2018-03-311-0/+1
| | | | | | 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-311-0/+1
| | | | Finally make the QComboBox do something.
* More sorting for FSWidgetArno2018-03-311-2/+3
| | | | | Sort size and duration by their actual numbers instead of alphabetically by the display string.
* Implement delete files for FSWidgetArno2018-03-311-0/+1
|
* Implement archive movies for FSWidgetArno2018-03-311-0/+4
| | | | | 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-311-0/+4
| | | | Also create a helper function to create separator actions.
* Add refresh to FSWidgetArno2018-03-311-0/+1
|
* Add visual feedback to FSWidgetArno2018-03-311-1/+5
| | | | | | | | * 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-311-0/+1
|
* Search database during FSWidget::gatherDataArno2018-03-311-0/+2
| | | | | | | | | | | 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.
* Actually make FSWidget show some dataArno2018-03-301-0/+5
| | | | Not pretty, but we're getting there.
* Implement adding filtersArno2018-03-301-2/+2
| | | | | | | 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-301-2/+7
| | | | | 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-301-0/+25
Just the layout, does absolutely nothing yet.