summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Implement favorite dirsArno2018-01-044-1/+33
|
* Implement DirSelectionWidgetArno2018-01-045-79/+120
| | | | | | This Widget lets you select a list of directories. It's basically about code reuse. We're gonna need this later when implementing the favorite directories feature.
* Modernize filewidget.cppArno2018-01-041-28/+28
| | | | | Convert to type safe connect syntax and remove Q_FOREACH. Hopefully no functional changes :)
* Add cache operationsArno2018-01-045-0/+38
| | | | | | Implement functions to remove files from cached data, or clear it completely. This may be necessary if something happened without us knowing, e.g. a file was copied by another program.
* Export reading and writing cache into functionsArno2018-01-042-26/+36
| | | | No functional changes.
* Improve lookup of cache dirArno2018-01-043-3/+17
| | | | | Implement looking up the cache dir as Helper::function. Create it if it doesn't exist.
* Update CachedFileData after copying filesArno2018-01-041-0/+4
| | | | Forgot setting copied to true...
* Check Present attribute on cached dataArno2018-01-032-26/+6
| | | | | | | | | | | | | Well, we cannot cache the Present attribute, because it can change without our knowledge, when a movie file has been archived in the meantime. Leave it in CachedFileData for now, but check it when we found a cache entry. While working on this, I realized that the Origin attribute is pretty much useless, at least in its current form. countMd5() already checks the origin table, and everything else was guesswork on the filename. Also, it was an extra, quite expensive SQL-Query for every video file, so remove it.
* Update the cache when copying or moving filesArno2018-01-031-3/+14
|
* Optimize deleteFilesArno2018-01-021-4/+9
| | | | | Only remove something from the view if deletion was successful. If it was a file, try to remove it from the cache.
* Sort size numerically, not alphabeticallyArno2018-01-023-3/+14
|
* Save CachedFileData to diskArno2018-01-024-1/+42
| | | | | | | | | Since we already have the data, save it to speed up the start. Surprisingly, the hardest part was to figure out how to use QStandardPaths to find a location where to save the file. I went with the semi-hardcoded path HomeLocation/.shemovcleaner, even though we're on windows.
* Implement cache for FileWidgetArno2018-01-025-87/+156
| | | | | | | | | | Some data-gathering is quite expensive and requires a QProcess, like getting the duration, so cache it in memory using QCache. Once the cache is filled, the UI is much snappier. This simplifies gatherData() a bit. It's still quite a long function, but now it doesn't create the QStandardItems any more. I moved it to a separate function.
* Try harder to delete a fileArno2018-01-021-1/+5
| | | | | | QFile::remove() fails when the read-only attribute is set. Turn out it can be unset with QFile::setPermissions(QFile::ReadOther | QFile::WriteOther). Try it when the initial call to remove() failed.
* Fix buildinfo.plArno2017-12-211-3/+4
| | | | | Well, finally got this stuff to build anything again, even in the right places. This is getting quite convoluted...
* Remove QFileInfo::created() deprecation warningArno2017-12-211-2/+2
| | | | | Apparently that function is deprecated in Qt 5.10. As suggested, use QFileInfo::birthTime() instead.
* Removed QSignalMapper from filewidget.cppArno2017-12-212-12/+3
| | | | | | Since the advent of lambdas as SLOTS the signal mapper is indeed useless und overly complicated. Remove it due to a deprecation warning from the compiler.
* Qt update to 5.10Arno2017-12-192-57/+58
| | | | | | | | | | Wow, what a mess! Tried to update QT with this installer thingy, but that wreaked total havoc. I installed several compilers and QT versions, but most of the time QtCreator marked the QT header files as missing. Long story short: In the end I removed everyting, downloaded the online installer and "did it again". This commit fixes some paths in the build scripts.
* Use QDirIterator in FileWidgetArno2017-12-191-18/+17
| | | | | | | | According to the documentation it should be faster, but it also has its drawbacks. We can't use the progressbar any more, because we don't know how many files we're going to get. Show the number of files in the statusMessage instead, and show the total size of analyzed files in GB when we're done.
* Improve FileWidgetArno2017-12-191-0/+6
| | | | | Also keep sort order and column while gathering data. Disable sorting while populating the model.
* Keep sort order and column when gathering torrent dataArno2017-12-191-0/+4
| | | | | | | | | | This was a bit more complicated than thought. Just calling writeHeaderData unconditionally doesn't work, because it saves the headers on startup, when the widget isn't visible yet, so all columns have the same width. Fix it by checking if we're visible first. That almost worked. Almost, because after startup some columns had a different height! Setting uniformRowHeights() to true helped.
* Don't gatherData() when deleting torrentsArno2017-12-191-3/+10
| | | | | Just as before: delete the files and remove them from the view without a full parse.
* Don't gatherData() when moving torrentsArno2017-12-191-2/+9
| | | | Just move the files and remove them from the view without a full parse.
* Use QT for deleting directoriesArno2017-12-182-26/+17
| | | | | | QDir has a function removeRecursively(). Use that instead of a homebrew implementation. Don't gatherData() after that, just remove the deleted items from the view.
* Add splash screenArno2017-06-173-3/+18
|
* Fix TorrentParserArno2017-02-261-0/+1
| | | | Don't std::bad_alloc if we have an invalid string.
* Everything is a RegEx!Arno2017-02-112-18/+0
| | | | No need for anything else. Regexes are enough for everyone!
* Implement searchArno2017-02-113-3/+57
| | | | Yippie! It finally does something!
* Read and write search settingsArno2017-02-113-6/+43
| | | | Yay! Still does nothing!
* Create GUI for search widgetArno2017-02-117-3/+191
| | | | Does nothing yet, just the GUI, connections and actions...
* Replace RE match in OriginDialog with LIKEArno2016-12-191-2/+4
| | | | | | Unfortunately there is no Postgres equivalent for \Q \E, so the query didn't work with filenames containing e.g. () or []. Use LIKE instead and see when that comes back to haunt me :)
* Do not try to copy directoriesArno2016-12-061-1/+1
| | | | | We don't have support for recursive copies, and I'm not really sure if we need it, so don't do it for now.
* Add a summary to ProgressDialogArno2016-12-066-0/+26
| | | | | Show how many files we have, and display the transfer rate in Megabytes per second. Can't believe that it worked right from the start :)
* Add destination to ProgressDialogArno2016-12-066-16/+23
| | | | Elide the text if necessary. Only show the destination directory.
* Prettify ProgressDialogArno2016-12-063-2/+12
| | | | | Make it fixed width, show only the filename from the source instead of the full path and elide text if necessary.
* Actually use Copy Files to...Arno2016-12-037-3/+229
| | | | | | | | | | | | Create a FileCopier and show a custom, non-modal progress dialog when we're copying files. Turns out that a QProgressDialog always shows when it's created. This is by design, so I had to implement one that fits my needs. Also, a buffer size of 32K (as used in MKVMerger) is way too small to max out the available bandwidth, so I set it to an (arbitrary) value of 16MB.
* Add Copy Files to... context menuArno2016-12-022-1/+25
| | | | Does nothing yet. There's no slot for the actions.
* Emit freeSpaceChanged in gatherData()Arno2016-12-021-3/+1
| | | | ...instead of the calling functions to make it more consistent.
* Indicate copy status of fileArno2016-12-022-3/+22
| | | | | | Add a new column to FileWidget to indicate the copy status: Use the gender sign for male (blue) to indicate that the file was found and the sign for female (red) that it was not.
* Add configuration option for copy dirsArno2016-12-022-0/+81
| | | | | | Copy dirs are destination directories for copy operations. They will be used later on to copy files or to check if a file has already been copied.
* Add file size to FileWidgetArno2016-11-272-3/+14
|
* Add preview for videosArno2016-11-278-1/+102
| | | | | | Grab 4 frames from a video and display them in the Viewer. First frame is @00:01:00, last at length - 1 minute, and the other two are in between: length / 4 * 2 and 3 (hardcoded).
* Add configuration option for ffmpegArno2016-11-272-11/+26
|
* Clear file list in viewer before a new file is setArno2016-11-271-0/+1
|
* Prevent resizing of ViewerArno2016-11-272-1/+1
| | | | looks ugly!
* Add picture viewerArno2016-11-276-3/+127
| | | | Opens on doubleclick when it's image/*.
* Change window titleArno2016-11-271-0/+5
| | | | Set window title to Tabname and dir if the current tab is changed.
* Add free space widget to status barArno2016-11-276-3/+62
| | | | Red is used, green is free, obviously...
* New feature: Add OriginArno2016-11-105-8/+265
| | | | | | | | | | | | Since SheMov now displays origin files (i.e. source files for a reencode), add an option here to add origin files for already archived movies. We guess the archived movie from the filename by cutting off the extension and look it up in the files table. If we find an archived movie with that filename, mark the source blue. Deactive "Add" if we don't find one or if we already have an origin.
* Resort context menu for FileWidgetArno2016-11-051-1/+1
| | | | Put Back and Up actions on top so we feel like a web browser.