summaryrefslogtreecommitdiffstats
path: root/archiveview.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.
* Clang fixes, nullptr and WindowFlags...Arno2018-11-231-5/+5
|
* Weed out old archive view and archivecontrollerArno2018-04-051-122/+0
| | | | | Unfortunately, it is so convoluted code that there's most likely a lot of cruft left, so call it work in progress...
* Clean up archiveview.cppArno2017-12-301-2/+0
| | | | | | * Use type-safe connect * remove Q_FOREACH * remove some unused #includes
* Add display of Origin filesArno2016-11-091-0/+2
| | | | | | | Show orgin files as child of archived file in the archive. Sidenote: Adding an origin file in here won't be very useful, since the actual file is elsewhere. That's a job for ShemovCleaner, I guess.
* Revamp Comments and MetadataArno2016-11-061-3/+1
| | | | | | | | Make it a QTextEdit (again?) with HTML content: * A table for metadata * A paragraph for the comment(s) Also add a stretch factor to the containing widget giving it more space.
* Use configured Reencode reasons...Arno2016-10-011-0/+4
| | | | ... in new movie wizard...
* Add clear button to NewMovieWizardArno2016-05-061-1/+2
| | | | Only show it when called from the wizard.
* New: search dialogArno2015-01-241-1/+2
|
* Revamped MetadataWidgetArno2014-12-101-1/+4
| | | | | | | | Split it up into a small QTreeView and a QTextEdit for the comment. QTreeView and horizontal scrollbars don't seem to play nice together. Qt never displays the bar even if ElideText is set to none. So add a QToolTip for the Subject/Name, since it's most likely not displayed completely.
* Fix crash with metadataArno2014-12-091-8/+0
| | | | Don't try to access non-present fields. Weed them out!
* Redesign of NewMovieWizardArno2014-12-071-3/+8
| | | | | | 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.
* Sort Movie archive list appropriatelyArno2014-07-101-0/+1
| | | | | Don't just sort alphabetically. Also regard the Series No. by extracting it via a RegExp.
* Delete files from ArchiveArno2014-04-181-0/+4
| | | | Well, the title says it all. KILL THEM!
* Implement Drag and Drop in Movie ArchiveArno2014-04-101-0/+14
| | | | | | | | | | | | | | Well, this was actually a bit of a drag. You have read the docs very carefully to get it right. For one, don't construct the drag object in mousePressEvent if you also want a double click, otherwise you end up with very weird behavior. Same goes for the receiving end. Differentiate between dragEnterEvent and dragMoveEvent, otherwise you'll only be able to drop items if you hit the right row on entering. There are some artefacts during the drag, but I guess that's a Qt bug. Didn't bother to look into it.
* Create new, empty Seriespart by contect menuArno2014-04-071-0/+1
| | | | | Preparation for drag and drop. Also make it possible to delete Seriesparts without files.
* Fix sorting of SeriesPartsArno2014-04-071-1/+0
| | | | | Arrange Seriespartsname different so the default implementation of QSortfilterProxyModel can handle the sorting.
* Delete SeriesPartArno2014-04-041-0/+1
| | | | | Make it possible to delete a SeriesPart. This may happen if eg. you download the same clip/movie with a better quality.
* Implement addCoversArno2013-09-211-1/+0
| | | | Add covers to an already archived movie.
* Add toolbars to tabsArno2013-09-141-0/+3
| | | | Remove global toolbar and add a toolbar to each tab instead.
* ArchiveProxy: Sort numeric by SeriesPartArno2013-08-221-0/+1
| | | | Implement lessThan for ArchiveProxy.
* Implement FavoritesArno2013-08-111-0/+1
| | | | | | Re-Implement mark as Favorites in new ArchiveView. Also, don't block when the Collector is running again and we're trying to update the view.
* Move filetype delegate to delegate.*Arno2013-07-281-11/+0
| | | | Missed this one the first time...
* Change new archive edit menuArno2013-07-271-0/+1
| | | | | Put actions for files and tree in submenus and use selectionModel instead of currentIndex for retrieving the selected item in the tree.
* Read JSON from ffprobeArno2013-07-271-37/+0
| | | | | | | | | | | | | | | | 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-0/+2
| | | | | | | Use new icon configuration consistently in: * Filemanager * NewMovieWizard * Experimental view
* Make all NodeTypes editableArno2013-07-131-1/+1
| | | | | Use plpgsql functions to edit nodes. Makes the program logic much easier. Also, rename rename() to edit() :)
* Make PartNo and Subtitle editableArno2013-07-121-0/+18
|
* Split MetadataEditorArno2013-07-121-3/+18
| | | | | Again, split the editor into a widget and a dialog, so we can use the widget in NewMovieWizard.
* Use MappingEditorWidget in NewMovieWizardArno2013-07-121-0/+4
|
* Split MappingEditor into two classesArno2013-07-121-4/+21
| | | | | | | | | | | Split MappingEditor into a Dialog and the actual MappingEditorWidget. Turns out that we need the Widget in NewMovieWizard, also. No need for code duplication. NB: Before this I tried to convert the WizardTreeModel to a QStandardItemModel, but it had severe performance problems. Most likely I would have ended up subclassing QStandardItemModel anyway, so leave it as it is.
* Get rid of useless SimpleModel againArno2013-07-101-3/+2
| | | | | QStandardItemModel is much better than a poorly derived QStringListModel...
* Make experimental view editableArno2013-07-101-0/+54
| | | | | Create new dialogs for editing actors, genres and metadata. IMHO like this it's much clearer who does what. KISS!
* Show actors, genres and metadata when selecting a seriesArno2013-07-091-1/+9
| | | | We're getting there, slowly, but steadily :)
* Make new archive workArno2013-07-081-6/+20
| | | | | | | | | | 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.
* Lots of Display ChangesArno2013-07-061-1/+38
| | | | | | | | | * Save header states * Implement delegates for columns * unify size and duration to 1 column * colorize View ... and lots of other things I forgot :)
* Basic ArchiveFilesModel and ArchiveControllerArno2013-07-061-3/+12
| | | | | | | | | Implement a new file model for the archive. It's quite basic at this stage, but finally something happens when clicking the archive tree. Also, implement the interaction (signal -> slot) between the views and models in an explicit controller to prevent the mess from the old archive.
* Keep state of expanded itemsArno2013-06-231-2/+3
| | | | | Well, sounds easier as it is to keep track of expanded items, but finally I got it!
* Make the archive cache usefulArno2013-06-231-18/+0
| | | | | Read the cache if there is one, if not, read it in another thread and update the view when it's done.
* Remove nodesArno2013-06-031-0/+1
| | | | | Implement remove nodes for ArchiveView. Only empty nodes without children can be removed. Everything else is too dangerous :)
* Fix error message for ArchiveViewArno2013-06-021-0/+1
| | | | | | | While thinking about merging items, I realized that it is not necessary. Just edit the mappings instead. However, a fallout is an error function for the TreeView.
* Implement RenameArno2013-06-021-1/+9
| | | | Rename items: spits out an error message if the new item already exists.
* Remember expanded ItemsArno2013-06-021-0/+7
| | | | | For the current SortOrder the expanded items are written to the config file and read on startup.
* Gather archive data in a threadArno2013-06-011-3/+26
| | | | | Fetching data sometimes takes a long time, so do it in a QThread and show a progress dialog. Some kludges included :)
* Make filter work in new ArchiveViewArno2013-06-011-0/+26
| | | | | | | Filter by QRegExp, but only on the first level according to the sort order. All items are expanded when filtered. Also, remember the filter and the sort order when exiting.
* Fix various display issues of ArchiveModelArno2013-06-011-3/+3
| | | | | | * Show childcount * Show subtitle or part no * Resize Widget properly
* Add view for new ArchiveModelArno2013-06-011-0/+50
Display the new ArchiveModel in an experimental tab