| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
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...
|
|
|
|
|
|
|
| |
Never, ever forget: QVariant() casts to a valid int! Again, this was a
tough one, but maybe I shouldn't drink and program.
PictureViewer2 reacts to Escape and Space. Escape hides it and stops the
slide timer, Space activates the slide timer.
|
|
|
|
|
| |
This was easier than I thought. Make info item movable and save position
on exit.
|
|
|
|
|
| |
std::random_shuffle available files in PictureViewer2. Add action to
View menu and reuse an icon.
|
|
|
|
|
|
| |
Change semantics of "Select all pics" in PictureViewer2. Now all pics
are not really all pics any more, but only all pics of the selected
mapping node.
|
|
|
|
|
|
|
|
|
| |
This was a tough one. Lost in recursion. When selecting nodes with
children in the picture widget, all files having this node as mapping
parent are shown.
Had to make some changes to SmTreeModel::findRecursive for this. I hope
I didn't break anything. If I did, I'll fix it :)
Also disposed of some comments and unused member variables.
|
|
|
|
|
| |
Show the number of files available to PictureViewer2 in the InfoItem.
Also give constructFilenameItem a proper name.
|
|
|
|
|
|
| |
Add options to ConfigurationDialog to either use a fixed color as
background or a gradient picked with random colors picked from the
picture.
|
|
|
|
|
| |
How the heck did listitem.h survive for so long? Remove it. And an
unused Q_PROPERTY from hoverwindow.h. I guess there's much more...
|
|
|
|
|
|
|
|
|
| |
Turn it into something completely different :)
Display filename, scaled size, file size, added date and mime type in
the upper left corner of the viewport.
Make it more visible. A pinkish background doesn't always work esp. with
a gradient background. Make it white with 80% alpha channel with a black
foreground.
|
|
|
|
|
| |
Create a GraphicsItem showing the filename at the top of the view. Also
put the filename in the window title.
|
|
|
|
|
|
| |
Implement slide show in Pictureviewer2. Slide over all available files
and wrap around when reaching the end of the list.
Also added some more artwork.
|
|
|
|
|
|
|
| |
-Implement add and replace files
-use QList<QVariant> (typedef'd) for shoveling data around
-more code shuffling
-new artwork
|
|
|
|
|
| |
Show picture in PictureViewer2 when double clicking an item in pictures
widget. Also shuffle some code around.
|
|
|
|
|
|
| |
Doesn't do much other than showing a default picture, but it behaves
like a QDialog and positions itself correctly. It's quite a pain in the
ass with a tiling window manager...
|
|
|
|
|
| |
Don't brute force coloring MappingTree by calling (begin|
it keeps the focus.
|
|
|
|
|
|
|
| |
* Added 4 new icons for PictureView-actions.
* simplified SheMov::tabChanged(int)
* fix long standing bug with QActionGroups in SheMov. Enable and disable
all actions according to the active tab
|
|
|
|
|
| |
Add action to PictureView for refreshing the view. Needed after editing
mappings.
|
|
|
|
| |
Make it possible to edit picture mappings on archived pictures.
|
|
|
|
|
| |
Catch illegal separator in value before making a database entry and
insertRows()
|
|
|
|
|
| |
Return an error if delete fails. Failure should only happen if there are
still references to other tables.
|
|
|
|
|
|
| |
Remove the QLineEdit and QPushButtons from the bottom of
MappingTreeWidget and make adding mapping items available in the context
menu.
|
|
|
|
|
| |
Since "/" is used as path separator, reject any SmTreeModel::Name
containing it.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Move mappings by context menu. Select new parent by QComboBox with
available paths, items separated by "/". Note that hell will break loose
if a mapping name contains "/". Will be fixed later.
Since mapping views don't have setSortingEnabled(), make
SmTreeModel::addRow() sort items.
This fixes a long standing bug in SmTreeModel::reparent(): Since it
alters the model, newParent has to be a QPersistentModelIndex to stay
consistent.
|
|
|
|
|
| |
When selecting pictures, mark the active mappings with a different
color.
|
|
|
|
|
| |
Put mapping editor into a seperate class to make it easier using it for
changing mappings later.
|
|
|
|
|
|
|
|
| |
Create a tab to show the archived pictures. It's far from complete, but
it already does:
* show pictures
* hover
* delete pictures from archive
|
|
|
|
|
|
| |
Finally NewPicsDialog actually does something. Added another parameter
to Helper::moveToArchive. If set to true, files will only be copied
instead of moved. Default is false, not changing the expected behavior.
|
|
|
|
|
|
|
| |
Make it possible to add mappings to new pictures. This actually was a
tough one. Maybe I shouldn't drink and code.
Next: make NewPicsDialog actually do something.
|
|
|
|
|
| |
Version 1 of NewPicsDialog. Just one single tab for adding files. Does
nothing yet besides adding and removing files.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is a rather large commit. It implements MappingTreeWidget using
MappingTreeModel unsurprisingly this uncovered some exciting bugs.
Fixes the following bugs in MappingTreeModel:
* use insertRows() and removeRows() when addings children, because
dataChanged() won't do it.
* don't use a prepared QSqlQuery when fetching children recursively.
This won't work because the query is still active when we invoke
ourselves again. Put the query on the stack instead
* Keep the model sorted.
Also add an entry for a MappingTreeEditor to the File-Menu.
|
|
|
|
|
|
| |
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 crash when data is empty in DbAnalyzerDialog::populate or the last
item was deleted.
|
|
|
|
|
| |
While making it possible to mark items in DbAnalyzerDialog I removed the
button for deleting items. That is obviously wrong, fix it.
|
|
|
|
|
|
|
|
|
| |
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...
|
|
|
|
|
| |
Remove references to old "Show movies without covers" dialog and
associate higheels.png with analyze db action.
|