summaryrefslogtreecommitdiffstats
path: root/fswidget.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix deprecation warningsArno2023-06-241-3/+3
| | | | | As it seems, qApp->activateWindow() is not state of the art any more, so use QWidget::setActiveWindow(). Whatever...
* Make it run with Qt6Arno2022-04-151-75/+45
| | | | | | | | | This is a huge commit. Changes: * Obviously, make it compile * Make it run (only scarcely tested) * get rid of most of clang's warnings Let's see what surprises are in store...
* Make Origin MD5sums searchableArno2021-05-281-1/+16
| | | | | First, add a QAction to copy the MD5sum from FSWidget to Clipboard. Then enhance the SearchDialog to support MD5sums from files_origin *only*.
* Use QTransform instead of QMatrixArno2020-07-191-5/+5
| | | | The compiler told me that the interface is deprecated.
* Guess subject from descript.ion fileArno2020-07-191-0/+54
| | | | | | | | The expression matching is the same as in ShemovCleaner, but here we have a lot more levels of indirection. The guessing is done automatically when archiveMovie is invoked. If the directory contains a file descript.ion, it is parsed and the result injected into the MetadataEditorWidget.
* Raise the viewer before setting the main windowArno2018-12-041-0/+1
|
* Sprinkle some qApp->setActiveWindow here and thereArno2018-12-031-1/+3
| | | | | | Without this the window manager (e.g. KWin) doesn't know about the change, so Alt+TAB doesn't work as expected. Very annoying, so here's the fix!
* Dark theme GUI changesArno2018-11-241-10/+10
| | | | | | | | Add icons better suited for dark themes and don't draw an ellipse around the letter when calling Helper::icon and use the theme's text color to better match the desktop theme. Just be a good tenant and respect the user's choices where applicable.
* Some more color fixesArno2018-11-231-2/+2
| | | | | Don't use the dark variant of hardcoded colors. The non-dark version plays well with a light theme, and even better with a dark one.
* Use palette colors where applicableArno2018-11-231-2/+2
| | | | | Don't assume we know what color ought to use. Ask the palette where applicable, but keep the modified configuration options.
* Put MovieInfoPage into separate fileArno2018-11-031-0/+1
| | | | Lots of code shuffle and headers cleanup, but no functional changes.
* Fix font usageArno2018-09-291-2/+3
| | | | Use Monospace only where applicable, mostly MD5Sum and numbers.
* Add compare action for picsArno2018-09-141-2/+28
| | | | Show files with the same filename *after another* in Viewer.
* Remember full screen status for VideoViewerArno2018-09-131-0/+4
| | | | And don't crash on close. Remove deleteLater()!
* Use default Video Player on doubleclickArno2018-09-131-5/+1
|
* Make VideoViewer local to FSWidgetArno2018-09-131-4/+12
| | | | Now we can't have multiple VideoViewers, which is what we want :)
* Fix duplication of Dirs and Filters in FSWidgetArno2018-09-131-0/+2
| | | | | | | Clear the ComboBoxes before re-reading the entries, because just adding them will produce duplicates if configure is called. Closing the Configuration Dialog would just add the alread configured items to the list, hence the duplicates.
* Remove playQtArno2018-09-011-20/+0
| | | | Not used, artifact from the first implementation of VideoViewer.
* Create a local playlist for external playersArno2018-09-011-3/+27
| | | | | Unfortunately, ffmpeg is the only player which doesn't suck too much, but it won't take more than one file :(
* Add option for using the internal viewerArno2018-08-261-12/+26
| | | | Also use the new connect syntax for ProgramConfigurator.
* Implement custom Video playerArno2018-08-261-1/+26
| | | | | | | Well, well, well. Due to several unforseen circumstances I ventured into the sources again and implemented a Video player with Qt. Looks very promising so far. There are some bugs to weed out, but I'm getting there...
* Make headers for FSWidget selectableArno2018-07-211-14/+34
|
* Prepare FSWidget for show/hide headersArno2018-07-211-4/+9
| | | | | | Don't clear the model when gathering data. Delete all rows instead to keep the headers consistent. Also add a visible column for the full path.
* Fix window titleArno2018-07-141-0/+2
| | | | for FSWidget and MovieWidget.
* Raise viewer when doubleclicking pictureArno2018-05-211-0/+1
|
* Rename FSView to SmViewArno2018-04-041-4/+4
| | | | | Turns out it's more general purpose than I thought. Gonna reuse it for MovieWidget.
* FSWidget: display file icons correctlyArno2018-04-031-3/+3
|
* Add a menu with global actions to SmGlobalsArno2018-04-031-8/+7
| | | | | | | 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.
* FSWidget: add configure actionArno2018-04-031-0/+4
|
* FSWidget: change 2 icons and add separatorsArno2018-04-031-3/+4
|
* FSWidget: Update free space after gatherData()Arno2018-04-031-0/+1
|
* FSWidget: Update status barArno2018-04-031-0/+18
| | | | Show count, size and duration.
* FSWidget: Implement Play with actionsArno2018-04-031-5/+21
| | | | | 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-021-8/+28
| | | | | | | | | | | | | | | | 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-1/+29
| | | | Well, lambdas make life so much easier! Thanks for that :)
* Implement duplicate checking for pics in FSWidgetArno2018-04-021-18/+42
| | | | | | | | | 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-311-1/+21
| | | | And remove a lot of cruft... Still much work to be done :(
* Implement preview for videosArno2018-03-311-1/+16
| | | | Comes at almost no cost when using Viewer :)
* View picture on doubleclickArno2018-03-311-0/+12
| | | | | Use lightweight viewer from ShemovCleaner for this. Unfortunately PictureViewer2 is overengineered for this.
* 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.