summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Implement metadataArno2011-01-233-3/+145
| | | | | | | | | 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.
* Added filter option for favoritesArno2011-01-229-3/+70
| | | | | Added filter for only showing series marked as favorites. The other filter options are disabled when in this mode.
* Bugfix for favoritesArno2011-01-223-4/+4
| | | | | Fix bug in SeriesTreeWidget when filtering. Take into account new column Favorite when filtering, so it will be hidden in SeriesTree.
* Implement favoritesArno2011-01-1611-49/+168
| | | | | SeriesParts can be marked as favorites. They won't be selectable when filtering by local Movies only.
* Use pictureViewer in NewMovieWizardArno2011-01-094-6/+64
| | | | | | | | 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.
* Show iconized coversArno2011-01-093-0/+15
| | | | | When archiving covers, optionally show an iconized version of the cover picture instead of the default decoration icon.
* Automatically add files in configured folder when archiving moviesArno2011-01-093-4/+34
| | | | | | Added an option to automatically add files in a configurable folder when archiving movies. It's intended for putting cover files in that directory so they don't have to be added manually.
* Use folderIcon in NewMovieWizardArno2011-01-093-1/+12
| | | | Also show the folderIcon in the NewMovieWizard QTreeViews.
* Enhance FilePropertiesDialogArno2011-01-012-1/+20
| | | | | | | Use setAlternatingRowColors here, also. Set the background color of the label to ui/alternatecolor. Show the cover type and series name/part when file is an image.
* Bugfix for HoverWindowArno2010-12-312-0/+2
| | | | Hide HoverWindow when showing the contextMenu.
* Enhance filters in SeriesTreeWidget a little moreArno2010-12-304-7/+29
| | | | | | | | | | | Allow operators in filter. Operators are only valid if it's a NumericQuery. Operators are <>=. Also allow postfixes for numbers: k, m, g for kilobytes, megabytes and gigabytes. Also fix a little usability bug when filtering. If the result set was empty, the root item was collapsed. On the next search with a result, the root item was still collapsed. Since it wasn't shown there was no way to expand it.
* Fix qWarnings() at startup and shutdownArno2010-12-309-8/+20
| | | | | | | | | | | | | | Fix unexpected NULL receiver on startup: Turns out this warning is issued when calling deleteLater on a NULL object. This happened in SheMov::createOpenWith*. The "database is still in use" warning was a bit harder to track down. First of all, the destructors weren't called since Qt::WA_DeleteOnClose wasn't set for SheMov, so Qt would simply exit and let the OS do the cleanup without calling the destructors. Then there were several orphan widgets/objects without a parent, so their destructor would never be called.
* Bugfix NewMovieWizardArno2010-12-301-0/+1
| | | | | Use alternatingRowColors in MovieInfoPage::mFileView also to make the GUI more consistent.
* Usability fix: NewMovieWizardArno2010-12-301-1/+3
| | | | | | Use the directory pictures were selected from last time as start directory for the add files... button. Save the last directory in a seperate QSettings entry.
* Pimp my filters!Arno2010-12-2814-30/+228
| | | | | | | | | | | | Enhanced the filter function in ArchiveTreeView. The prefixes are gone. The filter mode is now selectable by menu or toolbar. Created 7 new icons, also selectable in the configuration menu. As a bonus the filter QLineEdit now comes with a QCompleter. The QStringListModel of the completer is filled in a separate thread. The QThread is only used as a resource for control. The work is done in a QObject connected to the QThread's started() signal as described in http://labs.qt.nokia.com/2006/12/04/threading-without-the-headache/
* Configuration option for archived filesArno2010-12-274-2/+22
| | | | | Added color selection for archived files to make more clearly which files aren't present on the filesystem.
* Made all icons in qresource available for UIArno2010-12-2716-13/+75
| | | | | | | | | | | | | | | | Every registered icon can be chosen as Qt::DecorationRole for all models at once. Suitable icons must be added to SmGlobals::mIcons. Key is a descriptive text, value is the icon path. To make things easier SmTreeModel got two new member functions: -QIcon decorationIcon() returning the current Icon -void setDecorationIcon() to set the current Icon The current Icon is initialized in the constructor from QSettings - ui/iconfolder To update the TreeViews connected to the FileSystemModel a little hack is needed: Just set the QFileIconProvider again. This causes the Model to update connected views.
* Made colors configurableArno2010-12-2613-9/+202
| | | | | | | | | Added a tab to ConfigurationDialog to make some colors configurable. It works somehow. The font color isn't evaluated yet, since I'm not convinced that it is a good idea. But one problem is that calling qApp->setPalette() doesn't propagate to non visible child dialogs. Dunno if it's worth fixing.
* Remove MessageDialogArno2010-12-224-86/+0
| | | | Remove all references of MessageDialog, including files :)