| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
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...
|
|
|
|
|
|
| |
It's not as easy as it sounds, since a transaction is kaputt after a
failed query. To overcome that that, introduce 2 savepoints. One before
adding the seriespart, and one before the metadata. Works like a charm!
|
|
|
|
|
|
|
|
| |
Well, there is something fishy going on. I have no idea why that commit
is needed there, but during debugging I also noticed that on the final
commit() the database complains that there's no transaction in progress.
Well, this works, but I don't know how to debug this further :(
|
|
|
|
| |
See for yourself... So stupid!
|
|
|
|
| |
Ignore == Continue. Sadly, there's no StandardButton::Continue...
|
|
|
|
| |
Lots of code shuffle and headers cleanup, but no functional changes.
|
|
|
|
| |
Once again, only code shuffle and reindention.
|
|
|
|
| |
No functional changes, just code shuffle and reindention.
|
|
|
|
|
| |
One class per file :) No functional changes, just code shuffle and
reindention.
|
|
|
|
|
|
|
|
| |
Insert lower case and trimmed QString into database instead of the
original version.
Also, while at it, silence some clang warnings about implicit
conversions and nullptrs.
|
|
|
|
|
|
|
|
| |
As it turns out the MIME magic recognizes some mkv files as application/
octet stream, so the file type is incorrectly set to General Cover in
the new movies dialog. Very annoying. Fix it by looking at the suffix,
too, even though this is exactly the thing MIME magic should prevent...
:(
|
|
|
|
|
| |
Unfortunately, it is so convoluted code that there's most likely a lot
of cruft left, so call it work in progress...
|
|
|
|
|
| |
Mimic the old behavior, but make the Wizard local to FSWidget. It's only
called from there, so no need to make it global.
|
|
|
|
|
| |
baseName() only returns the filename unto the *first* dot, but we want the
*last* dot, so use completeBaseName().
|
|
|
|
|
| |
It's really simple: If we have a file with the same name, but another
extension, add it as FT_ORIGIN to the list.
|
|
|
|
|
| |
Pop up a dialog to ask if origin files should be deleted. Not tested yet,
so beware of the leopard!
|
|
|
|
|
| |
* remove one deprecation warning about QModelIndex::child
* use c++-style for-loops instead of Q_FOREACH
|
|
|
|
| |
Only show it when called from the wizard.
|
|
|
|
|
| |
Save InfoPage data on reject and accept, fill the fields on next
invocation, execpt files.
|
|
|
|
| |
Indicate what went wrong when archiving fails.
|
|
|
|
|
| |
If a title tag exists in a movie's metadata, extract it with ffmpeg and
put it into mSubtitle when archiving new movies.
|
|
|
|
| |
and make it configurable
|
|
|
|
|
|
| |
It's useless if you don't use a tiling window manager. Also, now we have
an empty class SmDialog. Didn't replace it yet. Maybe it's useful in the
future.
|
|
|
|
|
|
|
|
|
|
| |
Removing files didn't work as expected: It removed files more or less at
random, because the indexes were from the proxy and weren't mapped back
to the source.
While at it, make it possible to remove several files at once and change
the label of the button to make clear that the files are only removed
from the view.
|
|
|
|
|
| |
Center Filedialog in NewMovieWizard::infoPage when adding source files.
Also switch to the directory from FSWidget.
|
|
|
|
| |
Add a default value in db schema instead of doing it in the logic.
|
|
|
|
|
| |
Delete last remnants of this class (includes and files). It's not needed
any more.
|
|
|
|
| |
Use real old name for reencode origin
|
|
|
|
|
| |
Remove always failing query for enabled metadata. That checkbox is
gone...
|
|
|
|
|
|
| |
Make it possible to add parent files to files, so we can identify
already downloaded files even if we reencoded them. Record the md5sum in
a new table files_origin.
|
|
|
|
|
| |
Fix sorting in ArchiveTree and make it possible to enter zero in
NewMovieWizard.
|
|
|
|
|
| |
These constants are used all over the place and aren't really specific
to ArchiveModel, so use the preprocessor.
|
| |
|
|
|
|
| |
The QCheckBox for that is gone for good, so enable it by default.
|
|
|
|
|
|
|
|
| |
* cache: use qint64 consistently instead of quint64 once (typo, I guess)
* sync cancelling of ArchiveCollector: wait for it and reset the cancel
var
* sync access to cache file with QMutex
* don't set quality for pics
|
|
|
|
|
|
|
| |
* cast from double to int to insert seconds into the database
(newmoviewizard.cpp)
* update the database with the duration if the movie is local and we
don't have a duration
|
|
|
|
|
| |
NewMovieWizard never accepted more files than the model had columns due
to a misnamed function parameter. Doh!
|
|
|
|
| |
Yeah, finally it's gone! Lot's of useless, unneeded code vanished :)
|
|
|
|
| |
Introduce SmGlobals::iconFor to retrieve the configured item.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use JSON output from ffprobe instead of string parsing to get some kind
of type safety.
For doing that, some changes were needed in FileView: Use delegates for
displaying Duration and Bitrate instead of mangling output in
Qt::Displayrole.
To reuse code, move all delegates from the new Archive to a separate
file.
And, of course, the initial objective: Show the accumulated size and
duration of selected files in the status bar from the experimental
archive.
|
|
|
|
|
|
|
| |
Use new icon configuration consistently in:
* Filemanager
* NewMovieWizard
* Experimental view
|
|
|
|
|
| |
Use MetadataEditorWidget in NewMovieWizard and test it. Works perfectly
in NewMovieWizard and MetadataEditor.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Well, this is a huge commit. Should be severals, but who knew...
First and foremost feature: Make NewMovieWizard work with the
experimental model. This change obsoleted a lot of code. Also, the old
archive won't work with with the new Wizward...
There are most probably many other features I forgot about.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Well, what started as a try to simplify QTreeView ended in a mass header
murder...
What happened:
* I searched for a way to let every QTreeView honor the
setAlternatingRowcolors() setting. Unfortunately it isn't enough to just
set the global palette and set it to true. So every QTreeView is now
derived from SmTreeView
* SmTreeView registers itself with SmGlobals, so the property is set
_after_ it's constructed. It's definitely not enough to call it in the
constructor. I guess that's a bug. But it's enough to append the
SmTreeView to a QList<QWidget*> in SmGlobals and call it _after_ the
painting is done.
* As an added Bonus we can add virt. funcs to every SmTreeView at will
While at it I realized that most of the included headers were void, so
remove them. No idea what impact it has on the bin size...
|
|
|
|
|
| |
create snapshot pics in a separate thread. Also use the first frame
available if the clip isn't long enough for the configured frame.
|
|
|
|
|
|
|
| |
This is more a qt5-fix than a SmDirModel fix. The global palette doesn't
propagate any more, so we have to set the palette in every QTreeView
separately. Very annoying and tedious. Maybe I missed a Widget or two,
dunno...
|
|
|
|
|
|
|
|
| |
* Change #include to qt5
* Fix missing QX11Info
* use explicit constructor for QVariant(QColor)
* use beginResetModel() and endResetModel() instead of reset(). The
latter was removed. Hopefully it still works :)
|
|
|
|
|
| |
With siterips it's possible to have several files with the same
subtitle. Now we ask if we want to add to it or cancel.
|
|
|
|
| |
Only use subtitles when part no is not set.
|