summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix brute forcing of colorsArno2012-03-032-11/+18
| | | | | Don't brute force coloring MappingTree by calling (begin| it keeps the focus.
* Customize menus and toolbar for PictureViewArno2012-03-0311-20/+64
| | | | | | | * Added 4 new icons for PictureView-actions. * simplified SheMov::tabChanged(int) * fix long standing bug with QActionGroups in SheMov. Enable and disable all actions according to the active tab
* Implement refresh for PicturesArno2012-03-034-2/+15
| | | | | Add action to PictureView for refreshing the view. Needed after editing mappings.
* Impement editing of picture mappingsArno2012-03-038-1/+114
| | | | Make it possible to edit picture mappings on archived pictures.
* Fix MappingTreeModel::addChild()Arno2012-03-023-7/+14
| | | | | Catch illegal separator in value before making a database entry and insertRows()
* Add error checking to MappingTreeWidget::deleteChild()Arno2012-03-021-6/+9
| | | | | Return an error if delete fails. Failure should only happen if there are still references to other tables.
* Make add mapping item a context menu entryArno2012-03-023-22/+8
| | | | | | Remove the QLineEdit and QPushButtons from the bottom of MappingTreeWidget and make adding mapping items available in the context menu.
* Prevent usage of "/" in MappingTreeModelArno2012-03-021-0/+8
| | | | | Since "/" is used as path separator, reject any SmTreeModel::Name containing it.
* Make it possible to move mappingsArno2012-03-027-8/+124
| | | | | | | | | | | | | Move mappings by context menu. Select new parent by QComboBox with available paths, items separated by "/". Note that hell will break loose if a mapping name contains "/". Will be fixed later. Since mapping views don't have setSortingEnabled(), make SmTreeModel::addRow() sort items. This fixes a long standing bug in SmTreeModel::reparent(): Since it alters the model, newParent has to be a QPersistentModelIndex to stay consistent.
* Mark active MappingsArno2012-02-264-0/+120
| | | | | When selecting pictures, mark the active mappings with a different color.
* Move some code from NewPicsDialog aroundArno2012-02-264-58/+82
| | | | | Put mapping editor into a seperate class to make it easier using it for changing mappings later.
* Implement PicturesWidgetArno2012-02-269-2/+345
| | | | | | | | Create a tab to show the archived pictures. It's far from complete, but it already does: * show pictures * hover * delete pictures from archive
* Make NewPicsDialog archive picturesArno2012-02-258-35/+149
| | | | | | Finally NewPicsDialog actually does something. Added another parameter to Helper::moveToArchive. If set to true, files will only be copied instead of moved. Default is false, not changing the expected behavior.
* Implemented mapping widget for NewPicsDialogArno2012-02-256-1/+176
| | | | | | | Make it possible to add mappings to new pictures. This actually was a tough one. Maybe I shouldn't drink and code. Next: make NewPicsDialog actually do something.
* Implemented NewPicsDialogArno2012-02-246-3/+345
| | | | | Version 1 of NewPicsDialog. Just one single tab for adding files. Does nothing yet besides adding and removing files.
* Implement MappingTreeWidgetArno2012-02-249-35/+347
| | | | | | | | | | | | | | | This is a rather large commit. It implements MappingTreeWidget using MappingTreeModel unsurprisingly this uncovered some exciting bugs. Fixes the following bugs in MappingTreeModel: * use insertRows() and removeRows() when addings children, because dataChanged() won't do it. * don't use a prepared QSqlQuery when fetching children recursively. This won't work because the query is still active when we invoke ourselves again. Put the query on the stack instead * Keep the model sorted. Also add an entry for a MappingTreeEditor to the File-Menu.
* First shot at MappingTreeModelArno2012-02-243-2/+320
| | | | | | MappingTreeModel is a generic approach at mappings files to generic data, eg atttributes, actors or themes. It compiles, but nothing more. So expect many exciting bugs and SegFaults.
* Don't try to read first item in DbAnalyzerDialog when list is emptyArno2011-12-281-0/+3
| | | | | Don't crash when data is empty in DbAnalyzerDialog::populate or the last item was deleted.
* Delete items in DbAnalyzer (again)Arno2011-12-282-1/+14
| | | | | While making it possible to mark items in DbAnalyzerDialog I removed the button for deleting items. That is obviously wrong, fix it.
* Mark items in DbAnalyzerDialogArno2011-12-285-19/+181
| | | | | | | | | It's now possible to mark items in DbAnalyzerDialog with a different color, when there are no covers or actor information available on the net. I enhanced SmTreeItem to contain a QVariant::foregroundColor, and made SmTreeModel return it when QModelIndex::data with role Qt::ForegroundRole is called. Maybe that could be useful for other things like favorites and such...
* Some more code cleanupArno2011-12-262-9/+4
| | | | | Remove references to old "Show movies without covers" dialog and associate higheels.png with analyze db action.
* Code cleanupArno2011-12-174-255/+0
| | | | | Remove obsolete code for movies without covers. This has been implemented in DbAnalyzer.
* Make DbAnalyzerDialog non-modalArno2011-12-173-8/+11
| | | | | | | Make DbAnalyzerdialg a member of Shemov, so it can be shown non-modal. So actors/genres can be edited while the dialog is open. It also has the nice side effect that we can refresh the views after deleting stray items.
* Implement No Covers in DbAnalyzerArno2011-12-172-40/+58
| | | | | | Added a search for movies with no covers to DbAnalyzer. Generalized the no actors search to work with the result from the no covers query. This commit obsoletes a lot of code in archivetreeview.
* Added total count to DbAnalyzerDialogArno2011-12-172-3/+28
| | | | Show number of items in current tab.
* Added refresh to DbAnalyzerDialogArno2011-12-172-0/+15
| | | | | Well, right now the queries are cheap, so don't bother with removing items from the model and just repopulate it completely.
* Added stray genres checkArno2011-12-172-5/+53
| | | | | Mostly copy and paste from stray actors check. Generalized fetching data for stray items.
* Implemented delete stray actorsArno2011-12-174-14/+124
| | | | | Added a tab to DbAnalyzerDialog for actors that aren't associated with a movie and make it possible to delete them.
* Fix no Actors dialogArno2011-12-172-22/+15
| | | | | Show either part number or subtitle in no actors dialog. Also make double clicking an item work.
* DbAnalyzer first tryArno2011-12-167-3/+269
| | | | | Well, trying to join the consistencyChecker and the check for stray actors/genres. First try :)
* Hmm, checking out treemodel again. This seems way too complex...Arno2011-08-235-10/+49
|
* Fixes for SmGlobals::FrameCacheArno2011-08-223-5/+27
| | | | | | | | | | Don't generate duplicate screenshots when the same file is indexed in different paths. Part of the frameCache key was the _full_ path, not just the filename, so duplicates piled up when hovering over the same file in the filesystem and the archive. Added a cleanup function to SmGlobals::FrameCache. Also, just use QFileInfo::fileName() as part of the key.
* First draft of PropertiesDialogArno2011-08-224-4/+171
| | | | | | Kinda mock-up of new PropertiesDialog. The caption label works, though for some reason I can't set a background image via Stylesheets. It also shows the files belonging to the SeriesPart.
* Center NewMovieWizardArno2011-08-172-0/+7
| | | | | Since NewMovieWizard is a QWizard and not a QDialog, this one gets a separate commit.
* Center Dialogs on screenArno2011-08-1722-30/+87
| | | | | | Since I'm now using a tiling window manager dialogs have to center themselves on the screen. Otherwise they end up at QPoint(0,0). Not very nice. Subclassed QDialog to SmDialog and converted all dialogs.
* Turn metadata display into a QTreeViewArno2011-07-084-182/+161
| | | | | | | 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.
* Added partial search for MappingTableModelArno2011-07-014-0/+86
| | | | | | Added a search button to NewMovieWizard to do partial searches on the according table. Selected items will be inserted into the QLineEdit of the Wizard page.
* Bugfix in editing SeriesArno2011-06-121-4/+4
| | | | | | Some conditions were placed outside if(role == Qt::EditRole) in SeriesTreeModel. Because of that most of the fields for a Part couldn't be updated since the condition would never be met.
* Suggest file for burningArno2011-05-289-11/+58
| | | | | Implemented an action to suggest the best fitting file for burning in FilesTreeWidget. Added 20 Mb of margin to maximum dvd size.
* Implemented FilesTreeModel::fileSizeLessThanArno2011-05-272-0/+19
| | | | | | Implemented function to find movie files less a specific size to suggest suitable files for burning. Not tested, and I guess I have to take the picture size into account.
* Turned dvd size constant into a globalArno2011-05-275-3/+8
| | | | | Moved constant dvd size in bytes to SmGlobals. It spread to several source files, so it seemed to be a candidate.
* Fix removal of items from FilesTreeWidgetArno2011-05-272-1/+3
| | | | | | | When setting the dvd no. on several items in FilesTreeWidget, QModelIndex was used in a foreach() loop. Since the loop alters the model, the subsequent operations failed or operated on the wrong Indexes. Fixed by using a QPersistenModelIndex instead.
* Display size in MiBArno2011-05-222-3/+8
| | | | | Display size of selected files in MiB in the status bar. Also show bytes free if the selected files would be burned to a DVD.
* Artwork for show all files actionArno2011-05-224-1/+4
| | | | | Added an icon for show all files action. Also added it to the toolbar.
* Propagate changes from SeriesTreeModel::IsLocaLArno2011-05-226-77/+67
| | | | | Propagate changes to SeriesTreeModel::IsLocal to all attached views. For some reason this wasn't as easy as I thought...
* Update IsLocal when setting DVD no.Arno2011-05-227-18/+54
| | | | | | The field IsLocal in the SeriesTreeModel is now properly updated when the DVD no. changes. It still doesn't propagate to the file view, though.
* Implement show all filesArno2011-05-155-2/+31
| | | | | | Implemented a new function showing all files belonging to the selected series. The function respectect the current filter of the SeriesTreeWidget.
* Use new field IsLocal in SeriesTreeModelArno2011-05-145-23/+58
| | | | | Use field IsLocal in SeriesTreeModel when filtering local or archived files.
* Add field isLocal to SeriesTreeModelArno2011-05-144-11/+30
| | | | | | | | | | Indicate if SeriesPart has local files in SeriesTreeModel. The cost for this is an additional Query when populating the model, but fortunately the performance impact isn't noticeable. Also introduced a new enum NumFields to SeriesTreeModel. It represents the number of fields for a SmTreeItem so extending the model isn't that cumbersome any more.
* Fix adding movies with subtitlesArno2011-05-142-14/+30
| | | | | | 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.