summaryrefslogtreecommitdiffstats
path: root/shemov.h
Commit message (Collapse)AuthorAgeFilesLines
...
* Create action for refreshing the archive treeArno2013-08-111-0/+1
|
* Implement file properties dialogArno2013-07-281-1/+2
| | | | | | | | Show file properties in Filemanager and Archive, if the file is available. Also get rid of the palette stuff in SmGlobals. Just call setPalette() early enough and set it in SmTreeView.
* Get rid of old archiveArno2013-07-271-64/+2
| | | | Yeah, finally it's gone! Lot's of useless, unneeded code vanished :)
* Read JSON from ffprobeArno2013-07-271-1/+1
| | | | | | | | | | | | | | | | Use JSON output from ffprobe instead of string parsing to get some kind of type safety. For doing that, some changes were needed in FileView: Use delegates for displaying Duration and Bitrate instead of mangling output in Qt::Displayrole. To reuse code, move all delegates from the new Archive to a separate file. And, of course, the initial objective: Show the accumulated size and duration of selected files in the status bar from the experimental archive.
* Clean up the db analyzer messArno Moeller2013-07-191-6/+12
| | | | | I guess I was quite drunk when I designed this overengineered, multithreaded monstrosity. Replace it with 4 nifty dialogs.
* Make all NodeTypes editableArno2013-07-131-1/+0
| | | | | Use plpgsql functions to edit nodes. Makes the program logic much easier. Also, rename rename() to edit() :)
* Make PartNo and Subtitle editableArno2013-07-121-0/+1
|
* Make experimental view editableArno2013-07-101-0/+3
| | | | | Create new dialogs for editing actors, genres and metadata. IMHO like this it's much clearer who does what. KISS!
* Implement actions for ArchiveFileViewArno2013-07-071-0/+9
| | | | | * make files double-clickable * implement edit actions for files
* Lots of Display ChangesArno2013-07-061-0/+4
| | | | | | | | | * Save header states * Implement delegates for columns * unify size and duration to 1 column * colorize View ... and lots of other things I forgot :)
* Remove nodesArno2013-06-031-0/+1
| | | | | Implement remove nodes for ArchiveView. Only empty nodes without children can be removed. Everything else is too dangerous :)
* Implement RenameArno2013-06-021-1/+4
| | | | Rename items: spits out an error message if the new item already exists.
* Add view for new ArchiveModelArno2013-06-011-0/+2
| | | | Display the new ArchiveModel in an experimental tab
* Fix frame cacheDirArno2013-04-111-6/+2
| | | | | | | | | | Get rid of the cache file. Instead, generate the cache on startup. The cache was never written since it was turned into a thread. Because of that I wrote a cleanup function, but surprisingly it didn't have much impact on the startup time, so I dropped the cache file. Also, fix destructor of SmGlobals. Call deleteLater on all Q_OBJECTS, and of course, some header cleanup.
* Fix setAlternatignRowColorsArno2013-04-101-2/+2
| | | | | | | | | | | | | | | | | | | | Well, what started as a try to simplify QTreeView ended in a mass header murder... What happened: * I searched for a way to let every QTreeView honor the setAlternatingRowcolors() setting. Unfortunately it isn't enough to just set the global palette and set it to true. So every QTreeView is now derived from SmTreeView * SmTreeView registers itself with SmGlobals, so the property is set _after_ it's constructed. It's definitely not enough to call it in the constructor. I guess that's a bug. But it's enough to append the SmTreeView to a QList<QWidget*> in SmGlobals and call it _after_ the painting is done. * As an added Bonus we can add virt. funcs to every SmTreeView at will While at it I realized that most of the included headers were void, so remove them. No idea what impact it has on the bin size...
* Make FilesystemWidget headers configurableArno2013-04-051-0/+1
| | | | | Save headerView on exit, create a Menu for selecting headers and read headerConfig on startup.
* CleanupArno2013-03-221-5/+0
| | | | Remove some unused QActions from SheMov
* Drop Window placementArno2013-03-221-2/+2
| | | | | Drop all the stuff placing the window somewhere. I'm using a tiling window manager :)
* Show duration in statusBarArno2013-03-221-0/+3
| | | | | Show total duration of selected Movies in FileView. Created a new class Helper::Duration for this and declared it as QMetaType.
* Remove markAsSeenArno2013-03-171-1/+0
| | | | Wasn't used anyway, dropped DB-Table seen also.
* Fix ColorsArno2013-03-171-1/+2
| | | | | | | This is more a qt5-fix than a SmDirModel fix. The global palette doesn't propagate any more, so we have to set the palette in every QTreeView separately. Very annoying and tedious. Maybe I missed a Widget or two, dunno...
* Port to Qt5Arno2013-03-031-1/+1
| | | | | | | | * Change #include to qt5 * Fix missing QX11Info * use explicit constructor for QVariant(QColor) * use beginResetModel() and endResetModel() instead of reset(). The latter was removed. Hopefully it still works :)
* Revamp Show all Files ActionArno2013-02-071-1/+1
| | | | | Change action to show all local movies, no favorites, no pictures, to ease selection of files to burn.
* Move to archiveArno2013-01-271-0/+1
| | | | | Add menu entry to move files back to archive. Needed when move to burn directory copies more files than expected.
* Allow moving files from one Series to anotherArno2012-12-301-0/+1
| | | | | Allow moving files from one SeriesPart to another. Had to add another global variable for this.
* Usability: Make archiving pics easierArno2012-11-161-0/+2
| | | | | | | | | | | To make archiving pictures from different sources easier, add a NewPicsDialog to PictureViewer. Add shortcuts to show the dialog and adding pics to it. After adding all pics with the same mappping, just click OK and add them to the archive. Shortcuts: Meta+s: Show NewPicsDialog Meta+a: Add current pic
* Make headers in PictureView configurableArno2012-10-201-0/+1
| | | | | Save state of QHeaderView and restore it on startup. Maybe it's time for a SmTreeView Class implementing these generic functions...
* Make header menu generation genericArno2012-10-201-0/+2
| | | | Preparation for making PicturesWidget's tree headers configurable.
* SeriesTreeModel fixArno2012-10-101-1/+0
| | | | | | | | | * 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
* Archive selected picturesArno2012-09-081-1/+3
| | | | | Added convenience function to archive selected pictures. Selected pics in the FileManager will automagically be added to NewPicsDialog.
* Implement copy file from PictureViewer2Arno2012-09-081-0/+1
| | | | | | | | | | | | 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.
* Play selected movies from archiveArno2012-08-291-0/+2
| | | | | | | | 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 :)
* Indictate slide in status barArno2012-03-241-6/+2
| | | | | | 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.
* Fix some severe braindamageArno2012-03-181-1/+1
| | | | | | | | | | | | | | 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...
* Randomize selection for pictureviewerArno2012-03-171-0/+1
| | | | | std::random_shuffle available files in PictureViewer2. Add action to View menu and reuse an icon.
* Slide showArno2012-03-101-0/+2
| | | | | | 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-081-4/+8
| | | | | | | -Implement add and replace files -use QList<QVariant> (typedef'd) for shoveling data around -more code shuffling -new artwork
* First draft of PictureViewer2Arno2012-03-081-0/+1
| | | | | | 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...
* Customize menus and toolbar for PictureViewArno2012-03-031-0/+5
| | | | | | | * 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-031-0/+1
| | | | | Add action to PictureView for refreshing the view. Needed after editing mappings.
* Impement editing of picture mappingsArno2012-03-031-1/+1
| | | | Make it possible to edit picture mappings on archived pictures.
* Implement PicturesWidgetArno2012-02-261-0/+6
| | | | | | | | Create a tab to show the archived pictures. It's far from complete, but it already does: * show pictures * hover * delete pictures from archive
* Implemented NewPicsDialogArno2012-02-241-0/+2
| | | | | Version 1 of NewPicsDialog. Just one single tab for adding files. Does nothing yet besides adding and removing files.
* Implement MappingTreeWidgetArno2012-02-241-1/+3
| | | | | | | | | | | | | | | 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.
* Some more code cleanupArno2011-12-261-2/+1
| | | | | Remove references to old "Show movies without covers" dialog and associate higheels.png with analyze db action.
* Code cleanupArno2011-12-171-2/+0
| | | | | Remove obsolete code for movies without covers. This has been implemented in DbAnalyzer.
* Make DbAnalyzerDialog non-modalArno2011-12-171-0/+1
| | | | | | | 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.
* Implemented delete stray actorsArno2011-12-171-0/+1
| | | | | Added a tab to DbAnalyzerDialog for actors that aren't associated with a movie and make it possible to delete them.
* DbAnalyzer first tryArno2011-12-161-0/+3
| | | | | Well, trying to join the consistencyChecker and the check for stray actors/genres. First try :)
* Suggest file for burningArno2011-05-281-0/+1
| | | | | Implemented an action to suggest the best fitting file for burning in FilesTreeWidget. Added 20 Mb of margin to maximum dvd size.