summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* 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.
* Fix editing series and seriespartsArno2011-05-074-18/+144
| | | | | | I guess this didn't work for quite some time. Show a dialog when editing series or seriesparts. Before SeriesTreeModel::edit was called, but that didn't really work.
* Implement additional title element for seriespartsArno2011-05-076-34/+60
| | | | | | 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 :)
* Reload view after setting DVD No.Arno2011-05-072-1/+5
| | | | | Hopefully the view gets reloaded when setting the DVD No. after burning movies to DVD. Not tested.
* Fix exit actionArno2011-04-301-1/+1
| | | | | | Don't connect mQuitA to quit(), use qApp::closeAllWindows() instead. The former doesn't trigger closeEvent() so settings aren't written at exit.
* PictureViewer fixesArno2011-04-305-2/+34
| | | | | | Add an option making resizing the picture viewer to the size of the picture configurable. It's desirable when using a tiling window manager.
* Use BG-Gradient in PictureViewerArno2011-04-302-4/+6
| | | | | | Use setGradient in PictureViewer again. Modified it to take the colors for the gradient from the top left and bottom right of the QImage.
* Fix Hotspot of X-Cursor when hoveringArno2011-04-308-3/+18
| | | | | Made Y-Offset for the cursor configurable. After switching from kwin to awesome WM the hotspot for hovering was way off.
* Revert "Revert "Bugfix when doubleclicking on archived movie""Arno2011-03-051-16/+16
| | | | This reverts commit 465147eb8a3508859c6c1133b90db7ba85404427.
* Revert "Bugfix when doubleclicking on archived movie"Arno2011-03-051-16/+16
| | | | This reverts commit 43466f70101837c6465c2ee3307aec555744a293.
* Bugfix when doubleclicking on archived movieArno2011-03-051-16/+16
| | | | | Doubleclicking a movie in the archive didn't work any more, since the else taking care of that was in the wrong scope.
* Show metadata in ArchiveViewArno2011-02-206-0/+84
| | | | | Added a widget to display metadata beside actors and genres when available
* Edit genres and actorsArno2011-02-195-2/+339
| | | | Added dialog for editing actors and genres.
* Revamp statisticsdialogArno2011-02-125-143/+217
| | | | | | Once again redesign the statisticsdialog. Switch back from WebKit and HTML/CSS graph bars to a QWidget. Never forget about QPainter::translate() again :)
* Show metadata when hoveringArno2011-02-052-16/+56
| | | | Also show metadata in snapshot when hovering over a movie file.
* Finished metadataArno2011-01-2711-41/+454
| | | | | Created a modes for metadata, revamped NewMovieWizard to use the model and created a MetadataWidget to edit and display metadata.