summaryrefslogtreecommitdiffstats
path: root/newmoviewizard.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add clear button to NewMovieWizardArno2016-05-061-1/+1
| | | | Only show it when called from the wizard.
* Preserve InfoPage dataArno2016-05-061-5/+23
| | | | | Save InfoPage data on reject and accept, fill the fields on next invocation, execpt files.
* Add error messages to newmoviewizard.cppArno2016-01-151-0/+7
| | | | Indicate what went wrong when archiving fails.
* Extract title from StreamArno2015-08-281-0/+18
| | | | | If a title tag exists in a movie's metadata, extract it with ffmpeg and put it into mSubtitle when archiving new movies.
* Keep NewMovieWizard data on restartArno2015-07-071-12/+24
| | | | and make it configurable
* Get rid of Helper::centerDialogArno2015-06-061-5/+0
| | | | | | 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.
* Fix removing files from NewMovieWizardArno2015-05-171-3/+13
| | | | | | | | | | 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 QFileDialogArno2015-02-141-4/+16
| | | | | Center Filedialog in NewMovieWizard::infoPage when adding source files. Also switch to the directory from FSWidget.
* Let database handle daddedArno2014-12-101-2/+1
| | | | Add a default value in db schema instead of doing it in the logic.
* Weed out SeriesMetadataModelArno2014-12-101-1/+0
| | | | | Delete last remnants of this class (includes and files). It's not needed any more.
* Fix typoArno2014-12-091-1/+1
| | | | Use real old name for reencode origin
* Fix metadataArno2014-12-091-19/+16
| | | | | Remove always failing query for enabled metadata. That checkbox is gone...
* Redesign of NewMovieWizardArno2014-12-071-28/+79
| | | | | | 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 SeriesPartNo == 0Arno2014-04-041-1/+1
| | | | | Fix sorting in ArchiveTree and make it possible to enter zero in NewMovieWizard.
* Replace ArchiveModel::FileType with #defineArno2014-02-151-1/+1
| | | | | These constants are used all over the place and aren't really specific to ArchiveModel, so use the preprocessor.
* Get rid of FrameCacheArno2013-09-141-1/+0
|
* Don't disable subtitlesArno2013-08-251-1/+0
| | | | The QCheckBox for that is gone for good, so enable it by default.
* Various BugfixesArno2013-08-101-1/+2
| | | | | | | | * 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
* Fix issues with movie durationArno2013-08-101-1/+1
| | | | | | | * 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
* Fix stupid bug in NewMovieWizardArno2013-07-281-5/+2
| | | | | NewMovieWizard never accepted more files than the model had columns due to a misnamed function parameter. Doh!
* Get rid of old archiveArno2013-07-271-2/+0
| | | | Yeah, finally it's gone! Lot's of useless, unneeded code vanished :)
* Simplify icon managementArno2013-07-271-5/+2
| | | | Introduce SmGlobals::iconFor to retrieve the configured item.
* Read JSON from ffprobeArno2013-07-271-4/+4
| | | | | | | | | | | | | | | | 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 schemeArno2013-07-261-1/+5
| | | | | | | Use new icon configuration consistently in: * Filemanager * NewMovieWizard * Experimental view
* Use MetadataEditorWidgetArno2013-07-121-94/+29
| | | | | Use MetadataEditorWidget in NewMovieWizard and test it. Works perfectly in NewMovieWizard and MetadataEditor.
* Use MappingEditorWidget in NewMovieWizardArno2013-07-121-9/+13
|
* Make new archive workArno2013-07-081-410/+284
| | | | | | | | | | 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.
* Fix setAlternatignRowColorsArno2013-04-101-13/+1
| | | | | | | | | | | | | | | | | | | | 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...
* Make FrameCache threadedArno2013-03-291-0/+1
| | | | | create snapshot pics in a separate thread. Also use the first frame available if the clip isn't long enough for the configured frame.
* Fix ColorsArno2013-03-171-1/+2
| | | | | | | 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...
* Port to Qt5Arno2013-03-031-15/+15
| | | | | | | | * 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 :)
* Allow adding files to existing Seriesparts with subtitlesArno2012-12-301-16/+26
| | | | | 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.
* Fix subtitle usageArno2012-11-041-1/+4
| | | | Only use subtitles when part no is not set.
* Usability: disable subtitle when partNo is selectedArno2012-10-271-4/+14
| | | | | | Found several parts in the database which had both a subtitle and a partno -> wrong! Prevent it by disabling and clearing the subtitle field when hasPartno is checked.
* Change defaults in NewMovieWizardArno2012-07-141-1/+9
| | | | default to unknown for Release Group and source in NewMovieWizard.
* Fix for metadataArno2012-05-041-0/+1
| | | | | | Long standing bug, since introducing metadata. Comments were never saved into the database. The model did The Right Thing, but forgot to add it everywhere. NewMovieWizard is not tested, though.
* Weed out PictureViewer in favor of PictureViewer2Arno2012-04-281-3/+3
| | | | Remove PictureViewer from everywhere and use PictureViewer2 instead.
* Center NewMovieWizardArno2011-08-171-0/+4
| | | | | Since NewMovieWizard is a QWizard and not a QDialog, this one gets a separate commit.
* Turn metadata display into a QTreeViewArno2011-07-081-14/+12
| | | | | | | This wasn't as easy as it sounds. I had to completely redesign the SeriesMetadataModel. Now it's a hybrid between a ListModel and a TreeModel. The actual data is held in a QList<QVariant>, the tree is only for display.
* Fix adding movies with subtitlesArno2011-05-141-13/+21
| | | | | | When a movie has a subtitle, use a negative seriespart as id. I guess this will haunt me at some point, but for now it works. Added a sequence to the database layout for that.
* Fix NewMovieWizard - subtitle dupe checkingArno2011-05-131-4/+14
| | | | | Don't exit when there's already a SeriesPart zero. Since introducing subtitle zero is an indicator for a subtitle.
* Implement additional title element for seriespartsArno2011-05-071-7/+22
| | | | | | Series parts can now have an additional title elemet, the so called subtitle. Obviously that's not really a good name but it's the best I could come up with :)
* Finished metadataArno2011-01-271-25/+32
| | | | | Created a modes for metadata, revamped NewMovieWizard to use the model and created a MetadataWidget to edit and display metadata.
* Implement metadataArno2011-01-231-1/+115
| | | | | | | | | Added a WizardPage to add metadata like releaseyear, releasegroup, newsgroup subject and such. Metadata can't be displayed at the moment and needs to be revameped seriously. I guess it's time for another model keeping the metadata. Created a new table in the database for this.
* Use pictureViewer in NewMovieWizardArno2011-01-091-0/+43
| | | | | | | | Optionally show a frame or the picture in PictureViewer when clicking an item in the file list. Added a new function to SmGlobals::FrameCache: make it possible to retrieve the path of the frame, also.
* Show iconized coversArno2011-01-091-0/+10
| | | | | When archiving covers, optionally show an iconized version of the cover picture instead of the default decoration icon.
* Use folderIcon in NewMovieWizardArno2011-01-091-0/+3
| | | | Also show the folderIcon in the NewMovieWizard QTreeViews.
* Bugfix NewMovieWizardArno2010-12-301-0/+1
| | | | | Use alternatingRowColors in MovieInfoPage::mFileView also to make the GUI more consistent.
* Usability fix: NewMovieWizardArno2010-12-301-1/+3
| | | | | | Use the directory pictures were selected from last time as start directory for the add files... button. Save the last directory in a seperate QSettings entry.
* Implemented "Archive selected" actionArno2010-10-031-24/+45
| | | | | New context menu entry in FSWidget: archive selected. The selected files will be inserted into the MovieInfoPage when archiving a movie.