summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remember last directory when archiving picsArno2012-03-191-1/+3
| | | | Write last opened dir from QFileDialog in NewPicsDialog.
* Save settings for PicturesWidgetArno2012-03-187-2/+29
| | | | Remember selected node in PicturesWidget.
* Fix FrameCache and HoverWindowArno2012-03-186-7/+20
| | | | | | 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.
* Fix some severe braindamageArno2012-03-1811-104/+82
| | | | | | | | | | | | | | 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...
* Add keyboard actions to PictureViewer2Arno2012-03-175-4/+52
| | | | | | | 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.
* Make info item in PictureViewer2 moveableArno2012-03-173-1/+14
| | | | | This was easier than I thought. Make info item movable and save position on exit.
* Randomize selection for pictureviewerArno2012-03-174-0/+13
| | | | | std::random_shuffle available files in PictureViewer2. Add action to View menu and reuse an icon.
* Revamp Select all files in PictureViewerArno2012-03-172-13/+7
| | | | | | 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.
* Make nodes with children selectable in picture widgetArno2012-03-175-33/+77
| | | | | | | | | 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 number of selected files in PictureViewerArno2012-03-172-12/+18
| | | | | Show the number of files available to PictureViewer2 in the InfoItem. Also give constructFilenameItem a proper name.
* Make background color of PictureViewer2 configurableArno2012-03-176-9/+67
| | | | | | Add options to ConfigurationDialog to either use a fixed color as background or a gradient picked with random colors picked from the picture.
* Code cleanupArno2012-03-163-29/+1
| | | | | 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...
* Revamp filename item in PictureViewer2Arno2012-03-162-27/+34
| | | | | | | | | 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.
* Show filename in PictureViewerArno2012-03-102-5/+74
| | | | | Create a GraphicsItem showing the filename at the top of the view. Also put the filename in the window title.
* Slide showArno2012-03-1010-5/+83
| | | | | | 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.
* Make PictureViewer usefulArno2012-03-0810-41/+115
| | | | | | | -Implement add and replace files -use QList<QVariant> (typedef'd) for shoveling data around -more code shuffling -new artwork
* Show picture on doubleClick in PicturesWidgetArno2012-03-085-15/+91
| | | | | Show picture in PictureViewer2 when double clicking an item in pictures widget. Also shuffle some code around.
* First draft of PictureViewer2Arno2012-03-0811-9/+137
| | | | | | 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...
* Fix brute forcing of colorsArno2012-03-032-11/+18
| | | | | Don't brute force coloring MappingTree by calling (begin| it keeps the focus.
* Customize menus and toolbar for PictureViewArno2012-03-0311-20/+64
| | | | | | | * 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
* Implement refresh for PicturesArno2012-03-034-2/+15
| | | | | Add action to PictureView for refreshing the view. Needed after editing mappings.
* Impement editing of picture mappingsArno2012-03-038-1/+114
| | | | Make it possible to edit picture mappings on archived pictures.
* Fix MappingTreeModel::addChild()Arno2012-03-023-7/+14
| | | | | Catch illegal separator in value before making a database entry and insertRows()
* Add error checking to MappingTreeWidget::deleteChild()Arno2012-03-021-6/+9
| | | | | Return an error if delete fails. Failure should only happen if there are still references to other tables.
* Make add mapping item a context menu entryArno2012-03-023-22/+8
| | | | | | Remove the QLineEdit and QPushButtons from the bottom of MappingTreeWidget and make adding mapping items available in the context menu.
* Prevent usage of "/" in MappingTreeModelArno2012-03-021-0/+8
| | | | | Since "/" is used as path separator, reject any SmTreeModel::Name containing it.
* Make it possible to move mappingsArno2012-03-027-8/+124
| | | | | | | | | | | | | 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.
* Mark active MappingsArno2012-02-264-0/+120
| | | | | When selecting pictures, mark the active mappings with a different color.
* Move some code from NewPicsDialog aroundArno2012-02-264-58/+82
| | | | | Put mapping editor into a seperate class to make it easier using it for changing mappings later.
* Implement PicturesWidgetArno2012-02-269-2/+345
| | | | | | | | Create a tab to show the archived pictures. It's far from complete, but it already does: * show pictures * hover * delete pictures from archive
* Make NewPicsDialog archive picturesArno2012-02-258-35/+149
| | | | | | 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.
* Implemented mapping widget for NewPicsDialogArno2012-02-256-1/+176
| | | | | | | 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.
* Implemented NewPicsDialogArno2012-02-246-3/+345
| | | | | Version 1 of NewPicsDialog. Just one single tab for adding files. Does nothing yet besides adding and removing files.
* Implement MappingTreeWidgetArno2012-02-249-35/+347
| | | | | | | | | | | | | | | 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.
* First shot at MappingTreeModelArno2012-02-243-2/+320
| | | | | | 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 try to read first item in DbAnalyzerDialog when list is emptyArno2011-12-281-0/+3
| | | | | Don't crash when data is empty in DbAnalyzerDialog::populate or the last item was deleted.
* Delete items in DbAnalyzer (again)Arno2011-12-282-1/+14
| | | | | While making it possible to mark items in DbAnalyzerDialog I removed the button for deleting items. That is obviously wrong, fix it.
* Mark items in DbAnalyzerDialogArno2011-12-285-19/+181
| | | | | | | | | 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...
* Some more code cleanupArno2011-12-262-9/+4
| | | | | Remove references to old "Show movies without covers" dialog and associate higheels.png with analyze db action.
* Code cleanupArno2011-12-174-255/+0
| | | | | Remove obsolete code for movies without covers. This has been implemented in DbAnalyzer.
* Make DbAnalyzerDialog non-modalArno2011-12-173-8/+11
| | | | | | | 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.
* Implement No Covers in DbAnalyzerArno2011-12-172-40/+58
| | | | | | 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.
* Added total count to DbAnalyzerDialogArno2011-12-172-3/+28
| | | | Show number of items in current tab.
* Added refresh to DbAnalyzerDialogArno2011-12-172-0/+15
| | | | | Well, right now the queries are cheap, so don't bother with removing items from the model and just repopulate it completely.
* Added stray genres checkArno2011-12-172-5/+53
| | | | | Mostly copy and paste from stray actors check. Generalized fetching data for stray items.
* Implemented delete stray actorsArno2011-12-174-14/+124
| | | | | Added a tab to DbAnalyzerDialog for actors that aren't associated with a movie and make it possible to delete them.
* Fix no Actors dialogArno2011-12-172-22/+15
| | | | | Show either part number or subtitle in no actors dialog. Also make double clicking an item work.
* DbAnalyzer first tryArno2011-12-167-3/+269
| | | | | Well, trying to join the consistencyChecker and the check for stray actors/genres. First try :)
* Hmm, checking out treemodel again. This seems way too complex...Arno2011-08-235-10/+49
|
* Fixes for SmGlobals::FrameCacheArno2011-08-223-5/+27
| | | | | | | | | | 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.