| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
When setting the dvd no. on several items in FilesTreeWidget,
QModelIndex was used in a foreach() loop. Since the loop alters the
model, the subsequent operations failed or operated on the wrong
Indexes. Fixed by using a QPersistenModelIndex instead.
|
|
|
|
|
| |
Display size of selected files in MiB in the status bar. Also show
bytes free if the selected files would be burned to a DVD.
|
|
|
|
|
| |
Added an icon for show all files action. Also added it to the
toolbar.
|
|
|
|
|
| |
Propagate changes to SeriesTreeModel::IsLocal to all attached views.
For some reason this wasn't as easy as I thought...
|
|
|
|
|
|
| |
The field IsLocal in the SeriesTreeModel is now properly updated
when the DVD no. changes. It still doesn't propagate to the file
view, though.
|
|
|
|
|
|
| |
Implemented a new function showing all files belonging to the
selected series. The function respectect the current filter of
the SeriesTreeWidget.
|
|
|
|
|
| |
Use field IsLocal in SeriesTreeModel when filtering local or
archived files.
|
|
|
|
|
|
|
|
|
|
| |
Indicate if SeriesPart has local files in SeriesTreeModel. The
cost for this is an additional Query when populating the model,
but fortunately the performance impact isn't noticeable.
Also introduced a new enum NumFields to SeriesTreeModel. It
represents the number of fields for a SmTreeItem so extending
the model isn't that cumbersome any more.
|
|
|
|
|
|
| |
When a movie has a subtitle, use a negative seriespart as id. I
guess this will haunt me at some point, but for now it works. Added
a sequence to the database layout for that.
|
|
|
|
|
| |
Don't exit when there's already a SeriesPart zero. Since
introducing subtitle zero is an indicator for a subtitle.
|
|
|
|
|
|
| |
I guess this didn't work for quite some time. Show a dialog when
editing series or seriesparts. Before SeriesTreeModel::edit was
called, but that didn't really work.
|
|
|
|
|
|
| |
Series parts can now have an additional title elemet, the so
called subtitle. Obviously that's not really a good name but it's
the best I could come up with :)
|
|
|
|
|
| |
Hopefully the view gets reloaded when setting the DVD No. after
burning movies to DVD. Not tested.
|
|
|
|
|
|
| |
Don't connect mQuitA to quit(), use qApp::closeAllWindows()
instead. The former doesn't trigger closeEvent() so settings
aren't written at exit.
|
|
|
|
|
|
| |
Add an option making resizing the picture viewer to the size of
the picture configurable. It's desirable when using a tiling
window manager.
|
|
|
|
|
|
| |
Use setGradient in PictureViewer again. Modified it to take the
colors for the gradient from the top left and bottom right of the
QImage.
|
|
|
|
|
| |
Made Y-Offset for the cursor configurable. After switching from
kwin to awesome WM the hotspot for hovering was way off.
|
|
|
|
| |
This reverts commit 465147eb8a3508859c6c1133b90db7ba85404427.
|
|
|
|
| |
This reverts commit 43466f70101837c6465c2ee3307aec555744a293.
|
|
|
|
|
| |
Doubleclicking a movie in the archive didn't work any more, since
the else taking care of that was in the wrong scope.
|
|
|
|
|
| |
Added a widget to display metadata beside actors and genres when
available
|
|
|
|
| |
Added dialog for editing actors and genres.
|
|
|
|
|
|
| |
Once again redesign the statisticsdialog. Switch back from WebKit and
HTML/CSS graph bars to a QWidget. Never forget about
QPainter::translate() again :)
|
|
|
|
| |
Also show metadata in snapshot when hovering over a movie file.
|
|
|
|
|
| |
Created a modes for metadata, revamped NewMovieWizard to use the model
and created a MetadataWidget to edit and display metadata.
|