summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix Splash1.1.0Arno2012-11-012-6/+19
| | | | Actually display splash screen and show what we're doing.
* Bugfix: fix sorting with subtitlesArno2012-10-271-5/+3
| | | | Sort by subtitle string when there's no partno in SeriesTreeWidget.
* Usability: disable subtitle when partNo is selectedArno2012-10-271-4/+14
| | | | | | Found several parts in the database which had both a subtitle and a partno -> wrong! Prevent it by disabling and clearing the subtitle field when hasPartno is checked.
* Fix display of caption when hoveringArno2012-10-273-19/+14
| | | | | Well, centering and sizing text is a bitch when operating with QPixmaps and QImages...
* Bugfixes: don't select dirs and don't crash on write settingsArno2012-10-275-6/+15
| | | | | | | Only select files when archiving pics from filemanager. While at it, I noticed a crash on close when no item is selected in PicturesWidget. So check if MappingData is valid on writing settings. Best way is MappingData::isValid(), and for that I needed a explicit constructor.
* Fix archiving picturesArno2012-10-278-50/+64
| | | | | | Well, what can I say. Lost in recursion and parent pointers. This commit actually boils down to using the proper database tables and inserting the right values. 'Nuff said...
* Make headers in PictureView configurableArno2012-10-205-3/+54
| | | | | Save state of QHeaderView and restore it on startup. Maybe it's time for a SmTreeView Class implementing these generic functions...
* Usability: return something if series part is invalidArno2012-10-201-2/+2
| | | | Return "(none)" for readability's sake when we have a single part movie.
* Make header menu generation genericArno2012-10-202-13/+20
| | | | Preparation for making PicturesWidget's tree headers configurable.
* Fix centering image on sceneArno2012-10-201-5/+6
| | | | | Use Qt-functions for centering pics in PictureViewer2 and fix distance to window borders.
* Always select all PicsArno2012-10-201-0/+1
| | | | | Select all pics from current node when doubleclicking a file in pictures tab.
* Make PictureViewer2 size configurableArno2012-10-207-16/+77
| | | | | | | | Several bug fixes on the way: * set fixed size policy for PictureViewer2 -> makes resizing much easier * don't set Y-offset when showing a pic. The scene takes care of it * don't deliver SIGNAL configChanged() twice to PictureViewer2 * center Widget on current screen when calling Helper::centerWidget
* Usability: ConfigurationDialog -> picturesArno2012-10-204-49/+20
| | | | | | Replace checkbox for showing info items at all with a "do not show" position in the combobox. While at it, remove unused SideBySide position.
* Keep current Pic when adding files to PicViewer2Arno2012-10-195-24/+13
| | | | | | | Try to get the position of the current picture after adding and clearing the file list of PictureViewer2. While thinking of using std::find for this I realized that the operator()-functions in Helper:: weren't used any more, so remove them and the <algorithm> includes.
* Usability: MappingTreeWidgetArno2012-10-101-2/+11
| | | | | Try to select newly added mapping. Only try, because it will fail if we have two children with the same name. The first will win.
* SeriesTreeModel fixArno2012-10-107-225/+17
| | | | | | | | | * make it possible to delete whole series again. No code fix, just the database layout: add on delete cascade to metadata * get rid of propertiesdialog.{cpp,h}. It was useless and called from the "Edit.." context menu. Code bloat, I guess... * Do something useful when calling "Edit...". Rename Series or ask for a new SeriesPart
* Fix MappingTreeModelArno2012-10-062-41/+21
| | | | | | | | | * Don't recurse ad infinitum when having nodes with the same name. * Add all relevant data to the model. There's still one quirk left: you can't do something like this blub -> blub2 if bla -> blub ->blub2 already exists, but that's something I can live with.
* More fixes to MappingTreeModelArno2012-10-065-57/+73
| | | | | | | | | | Fix move, addChild and such. Rename Fields and Roles to more speaking names, but that revealed a much deeper bug: the ParentID isn't really the parent_id, but the mapping_id. That could explain a lot. Nevertheless, it's still faster to repopulate the model after moving oder adding children instead of calling removeRows and insertRows. Another non-working commit... :(
* Code cleanup on MappingTreeModelArno2012-10-052-65/+0
| | | | Remove unused functions, members and queries.
* Fixed adding and deleting children from MappingTreeModelArno2012-10-055-10/+92
| | | | | | | | | | | | | | | | | Another fix to MappingTreeModel's new database layout. I think we're getting there... Insert the mappings into mapping_parents2 and add the MapParentId to the newly created index in the model. For now, the added date remains invalid. Make it possible (again?) to add root items to MappingTreeModel. For this I had to design a new QDialog with a checkbox. This one fixes another bug in SmTreeModel: Don't call parent() on a null pointer. Sometimes I'm getting random SIGBUS-Signals, but maybe that's because of the debug build of qt I'm using. Couldn't track it down yet...
* Fix deleting children in MappingTreeModelArno2012-10-053-4/+10
| | | | | Deleting children tried to remove it from mappings instead of mappings_parents2. The mapping itself should not be deleted.
* Fix Mappings in PictureViewer2Arno2012-10-0411-339/+344
| | | | | | | | | | Another fix for the new MappingTreeModel database layout: Make the mappings display correctly when showing an archived picture. For performance reasons I had to make PicFilesModel global and put it into a separate file. Also clean up MappingTreeModel: remove comments and unused functions.
* Fix MappEditDialgArno2012-10-032-3/+3
| | | | | Convert to new mapping DB layout. Return the parent ID where necessary instead of the mapping ID.
* Fix SmTreeModel for goodArno2012-10-031-17/+15
| | | | | | Back to the basics! Should have read the reference implementation of QAbstractItemModel::index() earlier, much earlier. Now it just works (tm)!
* Foremost a fix for SmTreeModelArno2012-09-3014-75/+180
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Not working again, but I eventually have to commit the changes. Fixes to SmTreeModel: * Fix SmTreeModel::index(). The previous comment was quite valid. I'm surprised that it worked at all. I have no clue why to return an invalid QModelIndex if the column isn't 0. Now an index with any valid column number can be created. * Fix SmTreeModel::parent(). Again, why shouldn't we create a parent index with a column other than 0? No idea... * Fix SmTreeModel::headerData(). Add some sanity checks. * Fix SmTreeModel::findRecursive(). Well, what is there to say. It never worked for models with a depth > 1, but obviously it didn't really matter until now. To make it work I had to change SmTreeItem as well. SmTreeItem::next() returns the next valid parent/sibling, or 0 if there isn't one. There may be some fallout from these changes, but they're yet to be seen. Changes to PictureView: * fix selecting an item according to the new datasbase layout * same goes for editing items. If an update actually works has to be checked. Overall, it's an intermediate commit that should have been a sane series of commits. Can't be changed now...
* MappingTreeModel Fix: get rid of displaying mappings in status barArno2012-09-222-31/+0
| | | | | When selecting pictures the mappings were displayed in the status bar. Get rid of it. It's useless and nothing to be shown down there anyway.
* MappingTreeModel Fix: Select pictures from pics_mappings2Arno2012-09-225-10/+16
| | | | | Select pictures referencing pics_mappings2 instead of broken pics_mappings. This just fixes the selection, nothing else!
* MappingTreeModel Fix: repair parent <-> child relationshipArno2012-09-224-32/+102
| | | | | | | | | | | | Warning: this commit seems to work, but it doesn't! Introduce two new tables: mappings_parents2 and pics_mappings2 to create a real parent-child relationship. The pics_mappings need to reference a unique mappings_parents_id so the same mapping can be a child of different parents. For now only the MappingTree references the new tables. Everything else uses the old ones. Hence the warning!
* Archive selected picturesArno2012-09-084-11/+47
| | | | | Added convenience function to archive selected pictures. Selected pics in the FileManager will automagically be added to NewPicsDialog.
* Implement copy file from PictureViewer2Arno2012-09-084-66/+99
| | | | | | | | | | | | Add an action to PictureViewer2 for copying the current pic to another directory. When I tried to add the QAction to the context menu, I realized that I chose the variable names picView and picViewer in shemov.cpp very poorly. Took some time to sift though it. Eventually I shifted some code around to make it more readable. While at it I replaced the individual separators with createSeparator(). Other than adding the Copy To action no functional changes.
* Don't crash when settings are not availableArno2012-09-081-1/+6
| | | | | | SheMov crashed with a SEGV when QSettings could not be read. Show ConfigurationDialog and exit program instead. I wonder if this is just pasting over another bug, though.
* Play selected movies from archiveArno2012-08-294-85/+100
| | | | | | | | Well, it started out as a simple new QAction for the archive: Play selected movies, but ended up in cleaning up the context menu madness in shemov.cpp. Created a factory for context menu separators... Well, and we can now play selected movies from the FilesTreeWidget :)
* Add new pictures dialog to FileManagerArno2012-07-151-0/+1
| | | | Add new pics dialog to context menu of the file manager.
* Change defaults in NewMovieWizardArno2012-07-141-1/+9
| | | | default to unknown for Release Group and source in NewMovieWizard.
* fix matroska detectionArno2012-07-141-1/+1
| | | | Make mkv detection more reliable.
* 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...