summaryrefslogtreecommitdiffstats
path: root/fswidget.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Implement unpack for FSWidgetArno2018-03-311-1/+23
| | | | | | 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/+11
| | | | Finally make the QComboBox do something.
* More sorting for FSWidgetArno2018-03-311-2/+5
| | | | | 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-311-1/+26
|
* Implement archive movies for FSWidgetArno2018-03-311-2/+35
| | | | | 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/+9
| | | | Also create a helper function to create separator actions.
* Add refresh to FSWidgetArno2018-03-311-0/+8
|
* 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-311-1/+13
| | | | | | | | * 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/+14
|
* 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-311-5/+57
| | | | | | | | | | | 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-311-2/+15
| | | | | | * add programmatically rendered icons * make text Qt::black * set rootIsDecorated to false
* Actually make FSWidget show some dataArno2018-03-301-1/+63
| | | | Not pretty, but we're getting there.
* Implement adding filtersArno2018-03-301-13/+44
| | | | | | | 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-0/+48
| | | | | 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/+63
Just the layout, does absolutely nothing yet.