summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Started implementation of FilesTreeModelArno2010-06-203-2/+223
| | | | | | No visible representation yet. Implemented setData for quality and dvdno, but not tested yet. Dunno yet if anything else has to be editable.
* SeriesTreeModel::findMoviesArno2010-06-182-0/+20
| | | | | Implemented function to return a QFileInfoList of only the movies for a given QModelIndex.
* expand/collape actions for SeriesTreeWidgetArno2010-06-184-3/+29
| | | | Implemented expand and collapse actions for SeriesTreeWidget.
* read/write settings for SeriesTreeWidgetArno2010-06-183-0/+39
| | | | | SeriesTreeWidget now retains its last state regarding sort order and expanded items.
* Sort for SeriesTreeModel/ViewArno2010-06-182-2/+23
| | | | Sort Parts regarding to their part number.
* Created frontend for SeriesTreeModel::deleteFromSeriesArno2010-06-184-3/+59
| | | | | | | | | | | Implemented frontend for SeriesTreeModel::deleteFromSeries. I hope QPersistentModelIndexes work as advertised. From the qt-sources it seems that a QPersistentModelIndex is automatically updated by QAbstractItemModel when calling begin(Remove|Insert)Rows. Testing worked out fine. While at it I found a bug in SmTreeModel. removeRows has to be called with (i - 1) instead of (i) to remove the correct nodes.
* Implemented SeriesTreeModel::deleteFromSeriesArno Moeller2010-06-185-1/+38
| | | | It compiles, let's ship it. Totally untested.
* Streamline SeriesTreeModel::findFilesArno Moeller2010-06-181-14/+14
| | | | | Avoid code duplication by handling the two different queries more generic so the result set can be fetched in just one while loop.
* SeriesTreeModel::findFilesArno2010-06-174-0/+43
| | | | | | Implemented SeriesTreeModel::findFiles in preparation for deleting files from SeriesTreeView. Totally untested, of course, and the new action in SheMov doesn't do anything.
* Finished New series in SeriesTreeWidgetArno2010-06-173-41/+90
| | | | | | | | Another not so atomic commit. Inserting a new serie by triggering the action in the context menu now works. While at it I revamped setData and put the if/elses into functions. Also fixed a bug in setData: Use TypeRole instead of the Fields enum.
* Partial implementation of adding new SeriesArno Moeller2010-06-178-8/+49
| | | | | | Adding an item to the TreeView works, but it doesn't get focus after inserting. Also the data is not shown. And setting the title of the new item should make the database puke.
* Bugfix in SeriesTreeModelArno Moeller2010-06-171-0/+3
| | | | | Return false from setData if new name == old name. This made the entries disappear from tree.
* GUI fixesArno Moeller2010-06-174-4/+16
| | | | | -Hide columns 1 - 5 in SeriesTreeWidget -Resort SeriesTreeWidget when SeriesName is changed
* Fixed SeriesTreeModelArno Moeller2010-06-174-7/+13
| | | | | There was no serious problem with the database schema. Maybe I should have gone to bed earlier. Updating and changing series names now works.
* Treemodel DevelopmentArno2010-06-1610-29/+288
| | | | | | | | | | -Changed the database schema. Attached quality to files -Subclassed SmTreeModel for SeriesTreeModel -Made SmTreeModel virtual for that Well, it seems there is a serious problem with the database schema. Curiously everything inside the model works beside the db update. Seems I have it wrong with the fks :(
* Implemented SeriesTreeWidgetArno2010-06-137-9/+115
| | | | | | | | | Implemented a widget for showing series in a tree. Also implemented filtering and sorting for this widget. Some bugfixes and enhancements: -Show dildo as DecorationRole in SeriesWidget -removed Quality from SeriesWidget
* Made ArchiveTreeView workArno2010-06-124-3/+11
| | | | | Made ArchiveTreeView work and took a look at it. Right now flat view seems to be the better alternative.
* Created basic ArchiveTreeViewArno2010-06-124-2/+71
| | | | | Implemented Widget for archive tree view. It's very basic and does nothing.
* Created singleton for SmUberModelArno2010-06-123-2/+46
| | | | Implemented a singleton for SmUberModel.
* Implemented SmUberModel::populateSeriesModelArno2010-06-122-0/+47
| | | | | | Implemented SmUberModel::populateSeriesModel(). Created a new QSqlDatabase with hardcoded access data for refactoring. This will change once the new schema is working.
* Implemented SmTreeModel::parentArno2010-06-122-1/+16
| | | | | Forgot to implement SmTreeModel::parent. Thus it was a pure abstract class and not instantiable.
* New database schemaArno2010-06-121-0/+213
| | | | | | | | Created a new database schema and implemented a migration script to migrate data from the old schema to the new one. The new schema is more "modular". Actors and files, including covers are assigned to series parts.
* Finished SmTreeModel, started SmUberModelArno2010-06-067-4/+216
| | | | | kinda finished the treemodel. Don't really know if it's complete yet. More programming will show :)
* Started Treemodel for ArchiveArno2010-06-035-2/+158
| | | | Implemented generic SmTreeItem, started on generic SmTreeModel.
* Bugfix: Data corruption in ArchiveItemInfoEditArno2010-05-301-1/+1
| | | | Allow more than 10 Dvds in dvd spinbox of ArchiveItemInfoEdit.
* Implemented copying of movie dataArno2010-05-307-1/+59
| | | | | Added function to copy actors, covers, genre, dvd and quality to other parts of the same movie if movie has multiple files.
* Bugfix: clear actors in ArchiveEditItemDialogArno2010-05-301-0/+1
| | | | | Clear actors when showing ArchiveEditItemDialog, otherwise they keep piling up :)
* Get rid of obsolete classesArno2010-05-299-529/+0
| | | | | Get rid of EditArchiveItemDialog and CoverArchiveEditor. The functionality of the classes is implemented in ArchiveItemEditDialog.
* Implemented ArchiveItemEditDialog::accept()Arno2010-05-293-3/+126
| | | | | | | | | Now the update button from ArchiveItemEditDialog actually updates something. The cover handling is much cleaner than in CoverArchiveEditor on first glance. This means I can get rid of CoverArchiveEditor and EditArchiveItemDialog at last.
* Implement new ArchiveItemEditDialogArno2010-05-2910-26/+159
| | | | | | | | | | | | | | | | Use ArchiveItemEditDialog instead of EditArchiveItemDialog. The latter will soon be obsolete and removed. Terrible naming, though. This commit is not as atomic as I want it to be, but it can't be helped. I had to fix several bugs in ArchveItemInfoEdit and ArchiveItemCoverEdit on the way: -Fix layout of ArchiveItemCoverEdit -Make white background of warning label in ArchiveItemCoverEdit work -Add function to ArchiveItemInfoEdit to init the ActorModel and FileInfoModel -Add function to ArchiveItemInfoEdit to return selected actors Beware: The update button still does nothing!
* Implemented ArchiveItemCoverEditArno2010-05-293-2/+272
| | | | | | Implemented Widget in preparation for the new ArchiveItemEditDialog. It's still quite convoluted, but I can't think of a better way to do this.
* Redesign of editing archive itemsArno2010-05-283-2/+251
| | | | | Added new widget to edit movies already in archive. ArchiveItemInfoEdit is designed to be part of a QTabWidget.
* Make directory browsing optional for PictureViewerArno2010-05-282-3/+8
| | | | | | Make directory browsing optional in preparation for new ArchiveItemEditDialog. There will be a button to view the selected picture, but it needn't be able to browse the directory of the picture.
* Bugfix: set Margins of CoverEditor to 0Arno2010-05-281-0/+1
| | | | | Set margins for mainlayout of Covereditor to 0, otherwise the layout of a widget embedding the covereditor gets cluttered.
* Bugfix for commit 8827510ec55eda169340b5414bd60eb3ba3bfb79 et al.Arno2010-05-242-5/+6
| | | | | | Remove duplicate QLabels in ArchiveEditDialog after given commit. Also readd ListModel to genre QComboBox in the dialog. Seems I deleted a little to much.
* Close PictureViewer on exitArno2010-05-242-0/+3
| | | | Close PictureViewer window when exiting SheMov.
* Save PictureViewer positionArno2010-05-241-0/+3
| | | | Save and restore PictureViewer position on exit and startup.
* Implemented PictureViewer classArno2010-05-249-10/+317
| | | | | | | Don't call an external program for showing a picture. When an image is doubleclicked a new windows shows the picture. Pictures can still be opened in an exteral program by using the "Open with..." context menu item.
* Added cover page to AddMovieWizardArno2010-05-233-39/+106
| | | | Finished AddMovieWizard. Added one last page to add covers to movie.
* Bugfix: margins in ListEditorArno2010-05-234-13/+13
| | | | | Fix layout of AddMovieWizard. The ListEditor-Widget must have margins set to 0 to be laid out properly in a QWizardPage.
* Bugfix: delete from ArchiveArno2010-05-221-4/+2
| | | | | Don't care if file really exists on fileysystem when deleting something from the archive. Otherwise we can't delete archived files.
* Wizard for adding movies manuallyArno2010-05-223-0/+244
| | | | | Created a QWizard for adding movies manually. Works as expected, but cover management has to be added as last page.
* Use singletons for modelsArno2010-05-2211-34/+136
| | | | | Created singletons for the ListModel* and MovieModel*. There should only be one of each and they were passed around quite a lot.
* Fix bug in setFsFree()Arno2010-05-141-3/+3
| | | | | Make height of QLabel dependent on font size instead of its own heigt. The latter makes it grow in height from every call to setFsFree().
* Fix calls to setFsFree()Arno2010-05-141-2/+4
| | | | | Move connect() to constructor and also recalculate free space after removing files by connecting to rowsRemoved(QModelIndex,int,int).
* Cleanup archive extractionArno2010-05-147-198/+0
| | | | | Removed the code for archive extraction. Never used it, never liked it and really never worked properly.
* Cleanup ConfigurationDialogArno2010-05-142-164/+26
| | | | | | | | | Major cleanup of ConfigurationDialog. Got rid of the expand paths madness on startup. Since we now have decent session management we don't need it any more. Also got rid of the extraction settings. Next part will be to remove the corresponding functions.
* Bugfix: ProgramConfiguratorArno2010-05-141-0/+4
| | | | When adding a program select it in QComboBox afterwards.
* Added "Play selected" and "Open with" to ArchiveViewWidgetArno2010-05-144-43/+130
| | | | | | | | | | | | | | | Implemented "Play selected movies" and "Open with" functions in ArchiveViewWidget. Also fixed a potential crash when re-creating the "Open with"-submenus. It's not possible to remove actions from an ActionGroup while iterating over the group with foreach. The ActionGroup is modified when calling removeAction() thus throwing the iterator of the loop off. Solution: First remove the actions from the ActionGroup and then delete the ActionGroup itself. The QObject destructor will take care of the contained Actions.
* Revamped ArchiveViewWidget context menuArno2010-05-142-12/+15
| | | | | Add separators to ArchiveViewWidget->fileView() contextmenu using QActions and by integers during construction of QMenu.