summaryrefslogtreecommitdiffstats
path: root/newmoviewizard.h
Commit message (Collapse)AuthorAgeFilesLines
* Guess subject from descript.ion fileArno2020-07-191-0/+1
| | | | | | | | 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.
* Put MovieInfoPage into separate fileArno2018-11-031-64/+1
| | | | Lots of code shuffle and headers cleanup, but no functional changes.
* Put MovieMappingPage in separate fileArno2018-11-031-13/+0
| | | | Once again, only code shuffle and reindention.
* Put MovieMetadataPage in separate fileArno2018-11-031-15/+0
| | | | No functional changes, just code shuffle and reindention.
* Put WizardTreeModel in separate fileArno2018-11-031-20/+0
| | | | | One class per file :) No functional changes, just code shuffle and reindention.
* Lowercase subtitleArno2018-10-281-5/+5
| | | | | | | | 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.
* Guess if the file was reencodedArno2017-12-281-0/+1
| | | | | It's really simple: If we have a file with the same name, but another extension, add it as FT_ORIGIN to the list.
* Ask for removing origin filesArno2017-12-281-0/+2
| | | | | Pop up a dialog to ask if origin files should be deleted. Not tested yet, so beware of the leopard!
* Preserve InfoPage dataArno2016-05-061-2/+9
| | | | | Save InfoPage data on reject and accept, fill the fields on next invocation, execpt files.
* Extract title from StreamArno2015-08-281-0/+2
| | | | | If a title tag exists in a movie's metadata, extract it with ffmpeg and put it into mSubtitle when archiving new movies.
* Get rid of Helper::centerDialogArno2015-06-061-3/+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.
* Center QFileDialogArno2015-02-141-0/+3
| | | | | Center Filedialog in NewMovieWizard::infoPage when adding source files. Also switch to the directory from FSWidget.
* Weed out SeriesMetadataModelArno2014-12-101-1/+0
| | | | | Delete last remnants of this class (includes and files). It's not needed any more.
* Redesign of NewMovieWizardArno2014-12-071-5/+6
| | | | | | 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 stupid bug in NewMovieWizardArno2013-07-281-1/+1
| | | | | NewMovieWizard never accepted more files than the model had columns due to a misnamed function parameter. Doh!
* Cleanup closeEventArno2013-07-271-1/+0
| | | | | | | | | | Don't try to delete all the prepared statements manually. Get rid of the ~destructors and just close the QSqlDatabase. close() deletes all Statements. Also, quit() all QThreads on closeEvent() except CompleterProducer. When the experimental archive view gets merged, that QThread is gone. No need to bother...
* Use MetadataEditorWidgetArno2013-07-121-18/+5
| | | | | Use MetadataEditorWidget in NewMovieWizard and test it. Works perfectly in NewMovieWizard and MetadataEditor.
* Use MappingEditorWidget in NewMovieWizardArno2013-07-121-2/+5
|
* Sort MappingEditor on the flyArno2013-07-101-3/+3
|
* Make new archive workArno2013-07-081-29/+14
| | | | | | | | | | 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-9/+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...
* Port to Qt5Arno2013-03-031-2/+2
| | | | | | | | * 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 :)
* Weed out PictureViewer in favor of PictureViewer2Arno2012-04-281-2/+2
| | | | Remove PictureViewer from everywhere and use PictureViewer2 instead.
* Center NewMovieWizardArno2011-08-171-0/+3
| | | | | Since NewMovieWizard is a QWizard and not a QDialog, this one gets a separate commit.
* Implement additional title element for seriespartsArno2011-05-071-0/+3
| | | | | | 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-0/+8
| | | | | Created a modes for metadata, revamped NewMovieWizard to use the model and created a MetadataWidget to edit and display metadata.
* Implement metadataArno2011-01-231-0/+28
| | | | | | | | | 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/+4
| | | | | | | | 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.
* Implemented "Archive selected" actionArno2010-10-031-0/+12
| | | | | New context menu entry in FSWidget: archive selected. The selected files will be inserted into the MovieInfoPage when archiving a movie.
* Fix oddities in NewMovieWizardArno2010-09-111-1/+3
| | | | | | | | | Well, this one should have been easy, but there's always a way to make things complicated. Select proper entries for mPartno and mFileType in NewMovieWizard. Note to self: never ever forget about QObject::blockSignals(bool) again. This is way easier than fiddling around with boolean logic...
* Bugfix in NewMovieWizardArno2010-08-071-4/+6
| | | | | | Make Part no work in NewMovieWizard. The logic for this was totally borked. Well, it was not really present. One could only assign one Part number to all files.
* Reset NewMovieWizardArno2010-07-281-0/+3
| | | | | | | | | | | | | | | | | Well, the point of this commit was to have one NewMovieWizard in memory all the time and just show it when it's needed. For this several things were necessary: 1. implement initializePage() for every QWizardPage. For this I had to implement reset functions in some models. 2. setOption(QWizard::IndependentPages, true) in Wizard constructor. 3. Make NewMovieWizard a member of SheMov... Well, it was, already, but I didn't remove the ptr. The good news: the Wizard works. Bad News: 1. Program crashes in ArchiveViewWizard::currentChanged (see TODOS) 2. Cover files also have a quality Attribute attached.
* First version of NewMovieWizard::acceptArno Moeller2010-07-091-0/+4
| | | | | This version is not tested and may contain some very exiting, new bugs. But it compiles.
* Added actors and genres to NewMovieWizardArno2010-07-041-2/+14
| | | | Implemented 2 new pages for NewMovieWizard: actors and genres.
* Fix MovieInfoPageArno2010-07-041-1/+8
| | | | | | | | | | | | | | | The first page of NewMovieWizard gave me quite a headache. It crashed with a segmentation fault because of exposing mDvdNo via registerField() without actually assigning a QCheckBox to it. The backtrace isn't very helpful in such a case. I also fixed some bugs on the way: 1. use SmTreeItem::setData in SmTreeModel::addRow instead of deleting the old item and creating a new one. This way I don't need to take care of the parent. 2. get data of old item in SmTreeModel::reparent before calling removeRows. This call deletes the item. 3. Fix column alignments in WizardTreeModel for size column
* Started NewMovieWizard for adding moviesArno2010-07-021-0/+79
Finished GUI for first page of NewMovieWizard. To make things easier I added two new member functions to SmTreeModel: -QModelIndex find() to find items by value of a column -void reparent() to remove an item from one parent and add it to another