|  | Commit message (Collapse) | Author | Age | Files | Lines | 
|---|
| | 
| 
| 
| 
| | 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. | 
| | 
| 
| 
| 
| | Remove obsolete code for movies without covers. This has been
implemented in DbAnalyzer. | 
| | 
| 
| 
| 
| 
| 
| | Make DbAnalyzerdialg a member of Shemov, so it can be shown non-modal.
So actors/genres can be edited while the dialog is open. It also has the
nice side effect that we can refresh the views after deleting stray
items. | 
| | 
| 
| 
| 
| 
| | Added a search for movies with no covers to DbAnalyzer. Generalized the
no actors search to work with the result from the no covers query. This
commit obsoletes a lot of code in archivetreeview. | 
| | 
| 
| 
| | Show number of items in current tab. | 
| | 
| 
| 
| 
| | Well, right now the queries are cheap, so don't bother with removing
items from the model and just repopulate it completely. | 
| | 
| 
| 
| 
| | Mostly copy and paste from stray actors check. Generalized fetching data
for stray items. | 
| | 
| 
| 
| 
| | Added a tab to DbAnalyzerDialog for actors that aren't associated with a
movie and make it possible to delete them. | 
| | 
| 
| 
| 
| | Show either part number or subtitle in no actors dialog. Also make
double clicking an item work. | 
| | 
| 
| 
| 
| | Well, trying to join the consistencyChecker and the check for stray
actors/genres. First try :) | 
| | |  | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| | Don't generate duplicate screenshots when the same file is indexed in
different paths. Part of the frameCache key was the _full_ path, not
just the filename, so duplicates piled up when hovering over the same
file in the filesystem and the archive.
Added a cleanup function to SmGlobals::FrameCache. Also, just use
QFileInfo::fileName() as part of the key. | 
| | 
| 
| 
| 
| 
| | Kinda mock-up of new PropertiesDialog. The caption label works, though
for some reason I can't set a background image via Stylesheets. It also
shows the files belonging to the SeriesPart. | 
| | 
| 
| 
| 
| | Since NewMovieWizard is a QWizard and not a QDialog, this one gets a
separate commit. | 
| | 
| 
| 
| 
| 
| | Since I'm now using a tiling window manager dialogs have to center
themselves on the screen. Otherwise they end up at QPoint(0,0). Not very
nice. Subclassed QDialog to SmDialog and converted all dialogs. | 
| | 
| 
| 
| 
| 
| 
| | 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 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. | 
| | 
| 
| 
| 
| 
| | 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. | 
| | 
| 
| 
| 
| | Implemented an action to suggest the best fitting file for burning
in FilesTreeWidget. Added 20 Mb of margin to maximum dvd size. | 
| | 
| 
| 
| 
| 
| | 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. | 
| | 
| 
| 
| 
| | Moved constant dvd size in bytes to SmGlobals. It spread to several
source files, so it seemed to be a candidate. |