| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
No visible representation yet. Implemented setData for quality and
dvdno, but not tested yet. Dunno yet if anything else has to be
editable.
|
|
|
|
|
| |
Implemented function to return a QFileInfoList of only the movies for a
given QModelIndex.
|
|
|
|
| |
Implemented expand and collapse actions for SeriesTreeWidget.
|
|
|
|
|
| |
SeriesTreeWidget now retains its last state regarding sort order and
expanded items.
|
|
|
|
| |
Sort Parts regarding to their part number.
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
It compiles, let's ship it. Totally untested.
|
|
|
|
|
| |
Avoid code duplication by handling the two different queries more
generic so the result set can be fetched in just one while loop.
|
|
|
|
|
|
| |
Implemented SeriesTreeModel::findFiles in preparation for deleting files
from SeriesTreeView. Totally untested, of course, and the new action in
SheMov doesn't do anything.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Return false from setData if new name == old name. This made the entries
disappear from tree.
|
|
|
|
|
| |
-Hide columns 1 - 5 in SeriesTreeWidget
-Resort SeriesTreeWidget when SeriesName is changed
|
|
|
|
|
| |
There was no serious problem with the database schema. Maybe I should
have gone to bed earlier. Updating and changing series names now works.
|
|
|
|
|
|
|
|
|
|
| |
-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 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 work and took a look at it. Right now flat
view seems to be the better alternative.
|
|
|
|
|
| |
Implemented Widget for archive tree view. It's very basic and does
nothing.
|
|
|
|
| |
Implemented a singleton for SmUberModel.
|
|
|
|
|
|
| |
Implemented SmUberModel::populateSeriesModel(). Created a new
QSqlDatabase with hardcoded access data for refactoring. This will
change once the new schema is working.
|
|
|
|
|
| |
Forgot to implement SmTreeModel::parent. Thus it was a pure abstract
class and not instantiable.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
kinda finished the treemodel. Don't really know if it's complete yet.
More programming will show :)
|
|
|
|
| |
Implemented generic SmTreeItem, started on generic SmTreeModel.
|
|
|
|
| |
Allow more than 10 Dvds in dvd spinbox of ArchiveItemInfoEdit.
|
|
|
|
|
| |
Added function to copy actors, covers, genre, dvd and quality to other
parts of the same movie if movie has multiple files.
|
|
|
|
|
| |
Clear actors when showing ArchiveEditItemDialog, otherwise they keep
piling up :)
|
|
|
|
|
| |
Get rid of EditArchiveItemDialog and CoverArchiveEditor. The
functionality of the classes is implemented in ArchiveItemEditDialog.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 Widget in preparation for the new ArchiveItemEditDialog.
It's still quite convoluted, but I can't think of a better way to do
this.
|
|
|
|
|
| |
Added new widget to edit movies already in archive. ArchiveItemInfoEdit
is designed to be part of a QTabWidget.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Set margins for mainlayout of Covereditor to 0, otherwise the layout of
a widget embedding the covereditor gets cluttered.
|
|
|
|
|
|
| |
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 window when exiting SheMov.
|
|
|
|
| |
Save and restore PictureViewer position on exit and startup.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Finished AddMovieWizard. Added one last page to add covers to movie.
|
|
|
|
|
| |
Fix layout of AddMovieWizard. The ListEditor-Widget must have margins
set to 0 to be laid out properly in a QWizardPage.
|
|
|
|
|
| |
Don't care if file really exists on fileysystem when deleting something
from the archive. Otherwise we can't delete archived files.
|
|
|
|
|
| |
Created a QWizard for adding movies manually. Works as expected, but
cover management has to be added as last page.
|
|
|
|
|
| |
Created singletons for the ListModel* and MovieModel*. There should only
be one of each and they were passed around quite a lot.
|
|
|
|
|
| |
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().
|
|
|
|
|
| |
Move connect() to constructor and also recalculate free space after
removing files by connecting to rowsRemoved(QModelIndex,int,int).
|
|
|
|
|
| |
Removed the code for archive extraction. Never used it, never liked it
and really never worked properly.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
When adding a program select it in QComboBox afterwards.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Add separators to ArchiveViewWidget->fileView() contextmenu using
QActions and by integers during construction of QMenu.
|