summaryrefslogtreecommitdiffstats
path: root/archivemodel.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix constness in ArchiveModel loopsArno2024-11-091-5/+5
|
* Make it run with Qt6Arno2022-04-151-12/+12
| | | | | | | | | 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...
* Remove unused functionArno2018-11-231-9/+0
| | | | ArchiveFilesModel::nextDvd() is a distant memory...
* Fix casts and other clang annotationsArno2018-11-231-9/+8
| | | | | Don't use C-Style casts. CLang says it's frowned upon. Also use nullptr instead of literal 0.
* Some more color fixesArno2018-11-231-1/+1
| | | | | Don't use the dark variant of hardcoded colors. The non-dark version plays well with a light theme, and even better with a dark one.
* Clean up archivemodel.cppArno2017-12-271-14/+14
| | | | | | * remove deprecation warning: use std::sort * use c++-for instead of Q_FOREACH * make one remaining connect type-safe
* Get rid of collectorMapperArno2017-12-261-13/+5
|
* Add display of Origin filesArno2016-11-091-1/+12
| | | | | | | 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.
* Kinda fix display of metadataArno2016-11-061-1/+5
| | | | | | | | If a seriespart is selected in the tree, display a summary. When a file is selected, display the actual metadata. It's much more consistent. Before, the metadata of the first *item in the selected list was displayed.
* Search ORIGIN also in Goto Archive...Arno2016-05-061-0/+8
| | | | Compile tested only, so it may or may not work.
* Reconnect cloned databasesArno2016-04-021-2/+10
| | | | | | Try to reconnect cloned databases on error, mainly SmDirWatcher and ArchiveCollector. ConsistencyCheck doesn't matter, since it's on the stack. It compiles, but no idea if it actually works...
* Play movies from USB if availableArno2016-03-051-2/+19
| | | | | If USB-Storage is mounted and available, search it for already archived movies. If found, play it.
* Delete emtpy seriesArno2015-03-211-0/+7
| | | | | Enable the delete option in ArchiveTree, but only allow delete when it has no children.
* Fixed and beefed up "Move to archive"Arno2015-03-211-0/+27
| | | | | | It crashed when used on directories, because naturally md5sum was empty. So recurse through directories, collect files and check if we have a DB- Entry. If so, move the files back to archive. If not, skip them.
* Implement gotoArchiveArno2015-02-141-0/+12
| | | | | | New context menu item for Filesystemwidget: select the seriespart when goto archive is triggered... Selecting the partId from ArchiveModel was deceptibly simple. Doom impending?
* Revamped MetadataWidgetArno2014-12-101-23/+0
| | | | | | | | 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.
* Redesign of NewMovieWizardArno2014-12-071-18/+0
| | | | | | 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.
* Delete files from ArchiveArno2014-04-181-0/+20
| | | | Well, the title says it all. KILL THEM!
* Change "Add Covers..." to "Add files..."Arno2014-04-181-24/+31
| | | | Generalize the slot. Make it possible to add movies, too.
* Implement Drag and Drop in Movie ArchiveArno2014-04-101-1/+22
| | | | | | | | | | | | | | 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-14/+41
| | | | | Preparation for drag and drop. Also make it possible to delete Seriesparts without files.
* Fix sorting of SeriesPartsArno2014-04-071-5/+6
| | | | | Arrange Seriespartsname different so the default implementation of QSortfilterProxyModel can handle the sorting.
* Delete SeriesPartArno2014-04-041-0/+40
| | | | | Make it possible to delete a SeriesPart. This may happen if eg. you download the same clip/movie with a better quality.
* Replace ArchiveModel::FileType with #defineArno2014-02-151-3/+3
| | | | | These constants are used all over the place and aren't really specific to ArchiveModel, so use the preprocessor.
* Fix size filter in Archive BrowserArno2014-02-141-1/+1
| | | | | | The size filter filtered more than selectedSize in the statusBar suggested, because it used a differet size. Fix it by using a #define everywhere.
* Add filter bar to MappingTreeWidgetArno2013-10-131-43/+0
| | | | | Move matchRecursive from ArchiveModel to SmTreeModel so we can use it here, too.
* Fix Style issuesArno2013-10-121-1/+1
| | | | | | * Change fixed width front from "courier" to "Monospace" * Remove foregroundcolor from SmTreeItem. Wasn't used nor needed, quite the opposite: it made SheMov deviate from the default style.
* Fix copy constructor of SmTreeItemArno2013-09-281-1/+15
| | | | | | | | Seems the copy constructor of SmTreeItem was botched. After copying a rootItem, some children wouldn't show up. I guess it has something to do with the QHash of the parents. Replace it with an explictit deep copy function where needed.
* Implement addCoversArno2013-09-211-0/+32
| | | | Add covers to an already archived movie.
* New sortOrder: FavoritesArno2013-08-111-1/+27
|
* Implement FavoritesArno2013-08-111-0/+27
| | | | | | 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.
* Bugfix SmDirWatcherArno2013-08-101-1/+0
| | | | | Don't enqueue anything if the INOTIFY_MASK doesn't match. Could be the reason for random crashes...
* Various BugfixesArno2013-08-101-5/+14
| | | | | | | | * 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-0/+12
| | | | | | | * 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
* Show only local filesArno2013-07-281-1/+29
| | | | Only show series with files on the hd.
* Simplify icon managementArno2013-07-271-11/+5
| | | | Introduce SmGlobals::iconFor to retrieve the configured item.
* Cleanup closeEventArno2013-07-271-12/+21
| | | | | | | | | | 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...
* Fix window titleArno2013-07-271-0/+6
| | | | Set the main window title according to selected tab.
* Read JSON from ffprobeArno2013-07-271-1/+1
| | | | | | | | | | | | | | | | 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/+36
| | | | | | | Use new icon configuration consistently in: * Filemanager * NewMovieWizard * Experimental view
* Make all NodeTypes editableArno2013-07-131-9/+9
| | | | | Use plpgsql functions to edit nodes. Makes the program logic much easier. Also, rename rename() to edit() :)
* Dis/enable QActions for ContextMenuArno2013-07-121-0/+1
| | | | Handle actions dependent on type node.
* Always show subtitle in ArchiveModelArno2013-07-121-8/+6
|
* Make PartNo and Subtitle editableArno2013-07-121-0/+21
|
* Get rid of useless SimpleModel againArno2013-07-101-7/+0
| | | | | QStandardItemModel is much better than a poorly derived QStringListModel...
* Make experimental view editableArno2013-07-101-1/+161
| | | | | Create new dialogs for editing actors, genres and metadata. IMHO like this it's much clearer who does what. KISS!
* Fix alignment in file treeArno2013-07-091-1/+2
|
* Show actors, genres and metadata when selecting a seriesArno2013-07-091-0/+58
| | | | We're getting there, slowly, but steadily :)
* Prevent duplicates in ArchiveTreeArno2013-07-071-3/+3
| | | | Well, select DISTINCT :)
* Implement actions for ArchiveFileViewArno2013-07-071-3/+41
| | | | | * make files double-clickable * implement edit actions for files