summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MoviePropertiesDialog: implement remove genre and actorArno2018-04-042-0/+10
| | | | Only removes items from the view, does nothing to the database yet.
* MoviePropertiesDialog: implement add actors and genresArno2018-04-045-2/+123
| | | | | | | Only adds items to the view, doesn't do any changes to the database yet. Had to implement a custom InputDialog, because the standard InputDialog doesn't have a setter for the completer.
* Fill MoviePropertiesDialog, part 2Arno2018-04-042-0/+34
| | | | Actors and Genres.
* Fill MoviePropertiesDialog, part 1Arno2018-04-044-2/+35
|
* Implement MoviePropertiesDialogArno2018-04-045-2/+135
| | | | | Try to replace all those editing dialogs with one exhausting dialog. For now, it's just the layout. It does nothing yet.
* MovieWidget: copy assorted columns to clipboardArno2018-04-042-3/+22
|
* MovieWidget: Implement play selected for bottom viewArno2018-04-042-0/+20
|
* MovieWidget: turn bottom view into SmViewArno2018-04-042-2/+17
| | | | Also, play the movie on doubleclick if it's available.
* Rename FSView to SmViewArno2018-04-045-15/+15
| | | | | Turns out it's more general purpose than I thought. Gonna reuse it for MovieWidget.
* MovieWidget: make all items non-editableArno2018-04-041-0/+4
|
* MovieWidget: indicate if file is availableArno2018-04-042-5/+50
|
* MovieWidget: read and write settingsArno2018-04-042-0/+34
|
* MovieWidget: Add count to all selections, improve sortingArno2018-04-041-12/+24
|
* MovieWidget: Implement populateByGenresArno2018-04-032-1/+46
| | | | | Also remove Favorites from selection. Should be an option with random player, if at all.
* MovieWidget: Implement populateByActorsArno2018-04-032-8/+66
|
* MovieWidget: Make filter workArno2018-04-031-0/+7
|
* First implementation of MovieWidgetArno2018-04-035-2/+229
| | | | | It's the replacement for the archive viewer thingy. Just keep it simple and stupid. For now it shows series data.
* FSWidget: display file icons correctlyArno2018-04-031-3/+3
|
* Add a menu with global actions to SmGlobalsArno2018-04-035-44/+73
| | | | | | | Use it in the toolbar for FSWidge and hide the menuBar. Change Helper::icon to accept different foreground colors and wether to draw the ellipse.
* Good riddance Filesystem Widget!Arno2018-04-0315-2423/+6
| | | | | | Get rid of FilesystemWidget and helper classes. The SmDirWatcher was useful, once, I guess, nice to implement it by foot, but with the current workflow it isn't needed any more.
* FSWidget: add configure actionArno2018-04-033-0/+7
|
* FSWidget: change 2 icons and add separatorsArno2018-04-031-3/+4
|
* FSWidget: Update free space after gatherData()Arno2018-04-033-0/+3
|
* FSWidget: Update status barArno2018-04-033-0/+25
| | | | Show count, size and duration.
* FSWidget: Implement Play with actionsArno2018-04-032-6/+24
| | | | | Fill the submenu from readSettings so we can act on configuration changes.
* FSWidget: set tab order, initial focus and shortcutsArno2018-04-031-0/+6
|
* FSWidget: Implement select and deselect filesArno2018-04-025-14/+67
| | | | | | | | | | | | | | | | 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-022-1/+30
| | | | Well, lambdas make life so much easier! Thanks for that :)
* Implement duplicate checking for pics in FSWidgetArno2018-04-022-19/+43
| | | | | | | | | 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.
* Play video file on doubleclick in FSWidgetArno2018-04-021-1/+7
|
* Implement archive pics for FSWidgetArno2018-03-314-43/+24
| | | | And remove a lot of cruft... Still much work to be done :(
* Implement preview for videosArno2018-03-315-2/+18
| | | | Comes at almost no cost when using Viewer :)
* 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.