summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fixed ConsistencyCheckArno2012-05-052-51/+193
| | | | | | | | 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.
* Fix for metadataArno2012-05-042-0/+3
| | | | | | 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.
* Get rid of PictureViewerArno2012-04-284-280/+0
| | | | Remove last remnants of PictureViewer (without the 2).
* Weed out PictureViewer in favor of PictureViewer2Arno2012-04-2812-38/+113
| | | | Remove PictureViewer from everywhere and use PictureViewer2 instead.
* Finally fix MappingItemArno2012-04-032-32/+17
| | | | | | | | | 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 Mapping widget configurableArno2012-03-244-32/+70
| | | | | Make mappingwidget behave according to settings. SideBySide doesn't work yet, maybe it should be canned.
* Made FileInfoItem configurableArno2012-03-245-5/+92
| | | | | | | 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 settingsArno2012-03-242-29/+0
| | | | | Remove picture viewer settings tab. Wasn't used anyway, and need it for making PictureViewer2 configurable.
* ConfigurationDialog fixes and cleanupArno2012-03-241-53/+35
| | | | | | Fix: Put tabs movies and database into a QGroupBox Cleanup: use QFormLayout instead of QGridLayout where possible. Precursor for making PictureViewer2 configurable.
* Indictate slide in status barArno2012-03-244-92/+26
| | | | | | 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.
* Show mappings in PictureViewer2Arno2012-03-246-14/+171
| | | | | | | | | | | 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).
* 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.