| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Actually display splash screen and show what we're doing.
|
|
|
|
| |
Sort by subtitle string when there's no partno in SeriesTreeWidget.
|
|
|
|
|
|
| |
Found several parts in the database which had both a subtitle and a
partno -> wrong! Prevent it by disabling and clearing the subtitle field
when hasPartno is checked.
|
|
|
|
|
| |
Well, centering and sizing text is a bitch when operating with QPixmaps
and QImages...
|
|
|
|
|
|
|
| |
Only select files when archiving pics from filemanager. While at it, I
noticed a crash on close when no item is selected in PicturesWidget. So
check if MappingData is valid on writing settings. Best way is
MappingData::isValid(), and for that I needed a explicit constructor.
|
|
|
|
|
|
| |
Well, what can I say. Lost in recursion and parent pointers. This commit
actually boils down to using the proper database tables and inserting
the right values. 'Nuff said...
|
|
|
|
|
| |
Save state of QHeaderView and restore it on startup. Maybe it's time for
a SmTreeView Class implementing these generic functions...
|
|
|
|
| |
Return "(none)" for readability's sake when we have a single part movie.
|
|
|
|
| |
Preparation for making PicturesWidget's tree headers configurable.
|
|
|
|
|
| |
Use Qt-functions for centering pics in PictureViewer2 and fix distance
to window borders.
|
|
|
|
|
| |
Select all pics from current node when doubleclicking a file in pictures
tab.
|
|
|
|
|
|
|
|
| |
Several bug fixes on the way:
* set fixed size policy for PictureViewer2 -> makes resizing much easier
* don't set Y-offset when showing a pic. The scene takes care of it
* don't deliver SIGNAL configChanged() twice to PictureViewer2
* center Widget on current screen when calling Helper::centerWidget
|
|
|
|
|
|
| |
Replace checkbox for showing info items at all with a "do not show"
position in the combobox. While at it, remove unused SideBySide
position.
|
|
|
|
|
|
|
| |
Try to get the position of the current picture after adding and clearing
the file list of PictureViewer2. While thinking of using std::find for
this I realized that the operator()-functions in Helper:: weren't used
any more, so remove them and the <algorithm> includes.
|
|
|
|
|
| |
Try to select newly added mapping. Only try, because it will fail if we
have two children with the same name. The first will win.
|
|
|
|
|
|
|
|
|
| |
* make it possible to delete whole series again. No code fix, just the
database layout: add on delete cascade to metadata
* get rid of propertiesdialog.{cpp,h}. It was useless and called from
the "Edit.." context menu. Code bloat, I guess...
* Do something useful when calling "Edit...". Rename Series or ask for a
new SeriesPart
|
|
|
|
|
|
|
|
|
| |
* Don't recurse ad infinitum when having nodes with the same name.
* Add all relevant data to the model.
There's still one quirk left: you can't do something like this blub ->
blub2 if bla -> blub ->blub2 already exists, but that's something I can
live with.
|
|
|
|
|
|
|
|
|
|
| |
Fix move, addChild and such. Rename Fields and Roles to more speaking
names, but that revealed a much deeper bug: the ParentID isn't really
the parent_id, but the mapping_id. That could explain a lot.
Nevertheless, it's still faster to repopulate the model after moving
oder adding children instead of calling removeRows and insertRows.
Another non-working commit... :(
|
|
|
|
| |
Remove unused functions, members and queries.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Another fix to MappingTreeModel's new database layout. I think we're
getting there...
Insert the mappings into mapping_parents2 and add the MapParentId to the
newly created index in the model. For now, the added date remains
invalid. Make it possible (again?) to add root items to
MappingTreeModel. For this I had to design a new QDialog with a
checkbox.
This one fixes another bug in SmTreeModel: Don't call parent() on a null
pointer.
Sometimes I'm getting random SIGBUS-Signals, but maybe that's because of
the debug build of qt I'm using. Couldn't track it down yet...
|
|
|
|
|
| |
Deleting children tried to remove it from mappings instead of
mappings_parents2. The mapping itself should not be deleted.
|
|
|
|
|
|
|
|
|
|
| |
Another fix for the new MappingTreeModel database layout: Make the
mappings display correctly when showing an archived picture.
For performance reasons I had to make PicFilesModel global and put it
into a separate file.
Also clean up MappingTreeModel: remove comments and unused functions.
|
|
|
|
|
| |
Convert to new mapping DB layout. Return the parent ID where necessary
instead of the mapping ID.
|
|
|
|
|
|
| |
Back to the basics! Should have read the reference implementation of
QAbstractItemModel::index() earlier, much earlier. Now it just works
(tm)!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Not working again, but I eventually have to commit the changes. Fixes to
SmTreeModel:
* Fix SmTreeModel::index(). The previous comment was quite valid. I'm
surprised that it worked at all. I have no clue why to return an invalid
QModelIndex if the column isn't 0. Now an index with any valid column
number can be created.
* Fix SmTreeModel::parent(). Again, why shouldn't we create a parent
index with a column other than 0? No idea...
* Fix SmTreeModel::headerData(). Add some sanity checks.
* Fix SmTreeModel::findRecursive(). Well, what is there to say. It never
worked for models with a depth > 1, but obviously it didn't really
matter until now. To make it work I had to change SmTreeItem as well.
SmTreeItem::next() returns the next valid parent/sibling, or 0 if there
isn't one.
There may be some fallout from these changes, but they're yet to be
seen.
Changes to PictureView:
* fix selecting an item according to the new datasbase layout
* same goes for editing items. If an update actually works has to be
checked.
Overall, it's an intermediate commit that should have been a sane series
of commits. Can't be changed now...
|
|
|
|
|
| |
When selecting pictures the mappings were displayed in the status bar.
Get rid of it. It's useless and nothing to be shown down there anyway.
|
|
|
|
|
| |
Select pictures referencing pics_mappings2 instead of broken
pics_mappings. This just fixes the selection, nothing else!
|
|
|
|
|
|
|
|
|
|
|
|
| |
Warning: this commit seems to work, but it doesn't!
Introduce two new tables: mappings_parents2 and pics_mappings2 to create
a real parent-child relationship. The pics_mappings need to reference a
unique mappings_parents_id so the same mapping can be a child of
different parents.
For now only the MappingTree references the new tables. Everything else
uses the old ones. Hence the warning!
|
|
|
|
|
| |
Added convenience function to archive selected pictures. Selected pics
in the FileManager will automagically be added to NewPicsDialog.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add an action to PictureViewer2 for copying the current pic to another
directory.
When I tried to add the QAction to the context menu, I realized that I
chose the variable names picView and picViewer in shemov.cpp very
poorly. Took some time to sift though it. Eventually I shifted some code
around to make it more readable. While at it I replaced the individual
separators with createSeparator(). Other than adding the Copy To action
no functional changes.
|
|
|
|
|
|
| |
SheMov crashed with a SEGV when QSettings could not be read. Show
ConfigurationDialog and exit program instead.
I wonder if this is just pasting over another bug, though.
|
|
|
|
|
|
|
|
| |
Well, it started out as a simple new QAction for the archive: Play
selected movies, but ended up in cleaning up the context menu madness in
shemov.cpp. Created a factory for context menu separators...
Well, and we can now play selected movies from the FilesTreeWidget :)
|
|
|
|
| |
Add new pics dialog to context menu of the file manager.
|
|
|
|
| |
default to unknown for Release Group and source in NewMovieWizard.
|
|
|
|
| |
Make mkv detection more reliable.
|
|
|
|
|
|
|
|
| |
The consistencychecker was broken since introducing the pictures tab.
Never thought about it. It didn't know anything about the pics table.
Fixed that. Also added some nice QGroupBoxes to the layout. The "delete
stray pictures" thingy isn't tested at all, but it's quite straight
forward.
|
|
|
|
|
|
| |
Long standing bug, since introducing metadata. Comments were never saved
into the database. The model did The Right Thing, but forgot to add it
everywhere. NewMovieWizard is not tested, though.
|
|
|
|
| |
Remove last remnants of PictureViewer (without the 2).
|
|
|
|
| |
Remove PictureViewer from everywhere and use PictureViewer2 instead.
|
|
|
|
|
|
|
|
|
| |
Well, the comment was right. The previous implementation was fishy at
best. It simply didn't work. Could have been so ease. Just look at the
commit size :)
Don't forget that there will be an empty line at the beginning of the
QTextDocument if you don't check the first insert.
|
|
|
|
|
| |
Make mappingwidget behave according to settings. SideBySide doesn't work
yet, maybe it should be canned.
|
|
|
|
|
|
|
| |
Create copious options for FileInfoItem, reintroducing the Pictures tab
in ConfigurationDialog.
Also fixed a long standing bug in SeriesTreeWidget: don't static_cast()
an event. It'll succeed even when called from a destructor.
|
|
|
|
|
| |
Remove picture viewer settings tab. Wasn't used anyway, and need it for
making PictureViewer2 configurable.
|
|
|
|
|
|
| |
Fix: Put tabs movies and database into a QGroupBox
Cleanup: use QFormLayout instead of QGridLayout where possible.
Precursor for making PictureViewer2 configurable.
|
|
|
|
|
|
| |
Show red or green icon in status bar, depending on wether we're sliding.
Removed the rename to template stuff. It was barely used code. Hopefully
deleted all references and code fragments.
|
|
|
|
|
|
|
|
|
|
|
| |
Hell, this was one heck of a bitch. Lots of changes just to show the
mapping tree in PictureViewer2. Did I mention that I hate recursion?
Added a function for fetching a SmTreeItem * from MappingTreeModel for
paths, just to turn it into a QTextDocument in PictureViewer2. Of course
everything is recursive. Did I say that I hate recursion?
Well, as said in the comments, one recursion function seems fishy, but
it works (tm).
|
|
|
|
| |
Write last opened dir from QFileDialog in NewPicsDialog.
|
|
|
|
| |
Remember selected node in PicturesWidget.
|
|
|
|
|
|
| |
Another commit that should be two. While fixing FrameCache to delete
invalid Pixmaps, I ventured into the depths of HoverWindow. Now it hides
when focus leaves the widget we're hovering over.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
It started as a buxfix session, but the more I dug into some ancient
code, the more I had to change.
Well, first and foremost, this fixes a crash in PicturesWidget. Trying
to display the mappings of the selected picture in a different color
never was a good idea. Show them in the statusbar instead.
While looking at the statusBar code, make PictureWidget emit signals to
show the total size and number of selected items. Then I noticed some
really, really braindamaged connection madness in the Shemov
constructor. Instead of doing all the work in SheMov itself, have the
widgets emit signals.
This should have been several commits, but one lead to another...
|