| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Display Title and Filename search as non-modal dialog, so one can
compare Files and Database. For now only Title search is implemented.
Filename search does nothing (yet).
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This endeavor started out quite innocently: fix the connect syntax in
ProgressDialog, but it quickly became much more. Vom Höxchen aufs
Stöxchen :)
First I thought it would be nice to add a total count to the
ProgressDialog. Then I realized that I had QElapsedTimer::restart()
totally wrong. It returns the ms *since the last restart*! It doesn't
reset to zero, so fix that.
While testing that I noticed that the download speed was quite below
average, so change the buffer size and only check if we were cancelled
when the timer elapsed. But that wasn't it. Eventually I dug into my
firewall rules and routings to get it right.
|
| |
|
|
|
|
|
|
|
|
|
| |
If a descript.ion file exists in the current directory of fileWidget,
read the subjects into a QStringList to determine the usenet subject
from within ShemovCleaner.
No more tedious task switching to the usenet client, just trigger "Guess
subject..." :)
|
| |
|
|
|
|
|
| |
Update favorite dirs when adding or removing favorite directories. Also
try to keep the current selection.
|
|
|
|
| |
Forgot to set fd->seconds when gathering data.
|
|
|
|
|
|
| |
The MIME-type is a regular expression that can be configured. Show the
configured types in a QComboBox with the special value "<all>" at the
top, which invalidates the MIME type filter.
|
| |
|
|
|
|
|
| |
Convert to type safe connect syntax and remove Q_FOREACH. Hopefully no
functional changes :)
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
No functional changes.
|
|
|
|
|
| |
Implement looking up the cache dir as Helper::function. Create it if it
doesn't exist.
|
|
|
|
| |
Forgot setting copied to true...
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
Only remove something from the view if deletion was successful. If it
was a file, try to remove it from the cache.
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Also keep sort order and column while gathering data. Disable sorting
while populating the model.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
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 :)
|
|
|
|
| |
Elide the text if necessary. Only show the destination directory.
|
|
|
|
|
| |
Make it fixed width, show only the filename from the source instead of
the full path and elide text if necessary.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Does nothing yet. There's no slot for the actions.
|
|
|
|
| |
...instead of the calling functions to make it more consistent.
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
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).
|
|
|
|
| |
Opens on doubleclick when it's image/*.
|
|
|
|
| |
Red is used, green is free, obviously...
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Put Back and Up actions on top so we feel like a web browser.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Sigh... Well, nothing is as easy as it seems. After removing the
GroupBoxes from FileWidget because they took too much real estate, I
realized that returnPressed() did not work with the QLineEdits.
That happened because I set the shortcut for properties() to
Qt::Key_Enter. Never, ever do that! It completely messes up keyboard
navigation! Use CTRL+Enter instead and restore keyPressEvent() for
Qt::Key_Enter.
If it's a directory, cd into it, otherwise try properties().
|
|
|
|
|
| |
Since the actions have shortcuts now, some keyPressEvents are not needed
any more.
|
|
|
|
|
|
| |
* save and restore size
* actually restore header data
* add Properties... to context menu
|
|
|
|
| |
While at it, do the context menu, too...
|
|
|
|
| |
Introduce Globals singleton for global actions.
|
|
|
|
|
|
|
|
| |
Indicate progress of gathering data in status bar
Also (yes, I know, should be a separate commit) fix keyboard navigation
by getting rid of ShemovCleaner::keyPressEvent and replace it with
buddies in QTabWidget.
|
| |
|
| |
|
| |
|