summaryrefslogtreecommitdiffstats
path: root/shemov.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Implement file properties dialogArno2013-07-281-6/+11
| | | | | | | | 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-403/+15
| | | | Yeah, finally it's gone! Lot's of useless, unneeded code vanished :)
* Change new archive edit menuArno2013-07-271-2/+9
| | | | | Put actions for files and tree in submenus and use selectionModel instead of currentIndex for retrieving the selected item in the tree.
* Cleanup closeEventArno2013-07-271-0/+1
| | | | | | | | | | Don't try to delete all the prepared statements manually. Get rid of the ~destructors and just close the QSqlDatabase. close() deletes all Statements. Also, quit() all QThreads on closeEvent() except CompleterProducer. When the experimental archive view gets merged, that QThread is gone. No need to bother...
* Fix window titleArno2013-07-271-1/+5
| | | | Set the main window title according to selected tab.
* Read JSON from ffprobeArno2013-07-271-6/+18
| | | | | | | | | | | | | | | | 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.
* Use new icon schemeArno2013-07-261-0/+1
| | | | | | | Use new icon configuration consistently in: * Filemanager * NewMovieWizard * Experimental view
* Clean up the db analyzer messArno Moeller2013-07-191-14/+51
| | | | | 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-9/+4
| | | | | Use plpgsql functions to edit nodes. Makes the program logic much easier. Also, rename rename() to edit() :)
* Dis/enable QActions for ContextMenuArno2013-07-121-7/+13
| | | | Handle actions dependent on type node.
* Make PartNo and Subtitle editableArno2013-07-121-0/+4
|
* Make experimental view editableArno2013-07-101-0/+13
| | | | | Create new dialogs for editing actors, genres and metadata. IMHO like this it's much clearer who does what. KISS!
* Make new archive workArno2013-07-081-1/+3
| | | | | | | | | | Well, this is a huge commit. Should be severals, but who knew... First and foremost feature: Make NewMovieWizard work with the experimental model. This change obsoleted a lot of code. Also, the old archive won't work with with the new Wizward... There are most probably many other features I forgot about.
* Implement actions for ArchiveFileViewArno2013-07-071-4/+37
| | | | | * make files double-clickable * implement edit actions for files
* Lots of Display ChangesArno2013-07-061-18/+34
| | | | | | | | | * Save header states * Implement delegates for columns * unify size and duration to 1 column * colorize View ... and lots of other things I forgot :)
* Keep state of expanded itemsArno2013-06-231-0/+1
| | | | | Well, sounds easier as it is to keep track of expanded items, but finally I got it!
* Make the archive cache usefulArno2013-06-231-5/+1
| | | | | Read the cache if there is one, if not, read it in another thread and update the view when it's done.
* Remove nodesArno2013-06-031-0/+5
| | | | | Implement remove nodes for ArchiveView. Only empty nodes without children can be removed. Everything else is too dangerous :)
* Implement RenameArno2013-06-021-0/+5
| | | | Rename items: spits out an error message if the new item already exists.
* Remember expanded ItemsArno2013-06-021-1/+3
| | | | | For the current SortOrder the expanded items are written to the config file and read on startup.
* Gather archive data in a threadArno2013-06-011-0/+3
| | | | | Fetching data sometimes takes a long time, so do it in a QThread and show a progress dialog. Some kludges included :)
* Make filter work in new ArchiveViewArno2013-06-011-0/+1
| | | | | | | Filter by QRegExp, but only on the first level according to the sort order. All items are expanded when filtered. Also, remember the filter and the sort order when exiting.
* Add view for new ArchiveModelArno2013-06-011-0/+7
| | | | Display the new ArchiveModel in an experimental tab
* Fix display of free space in archiveArno2013-05-241-3/+2
| | | | Don't use scientific notation. Just qRound() the value.
* Fix frame cacheDirArno2013-04-111-26/+16
| | | | | | | | | | 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-19/+13
| | | | | | | | | | | | | | | | | | | | 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...
* New Class: SmTreeViewArno2013-04-051-19/+9
| | | | | | | | | | Code reusage: all 3 tabs had the same funtions: readHeaderConfig, writeHeaderConfig and toggleHeader, so turn it into a class derived from QTreeView. Unfortunately mATree didn't do things as later added Views, so it took some time to find the culprit in SheMov::readSettings :( Hopefully I didn't break too much...
* Make FilesystemWidget headers configurableArno2013-04-051-0/+8
| | | | | Save headerView on exit, create a Menu for selecting headers and read headerConfig on startup.
* New SplashArno2013-03-221-1/+1
| | | | | Create new splash screen from Kimber James. She's so hot! While at it, change the Domain...
* Drop Window placementArno2013-03-221-14/+2
| | | | | Drop all the stuff placing the window somewhere. I'm using a tiling window manager :)
* Show duration in statusBarArno2013-03-221-1/+14
| | | | | Show total duration of selected Movies in FileView. Created a new class Helper::Duration for this and declared it as QMetaType.
* Add explicit refresh for FileViewArno2013-03-221-0/+9
| | | | | Since we have SmDirModel now, we can explicitly refresh the view, eventually!
* Use a Thread for collecting file dataArno2013-03-201-1/+1
| | | | | | blocking the GUI isn't nice, so use a separate Thread to gather all the data for SmDirModel. Populating and changing directory works, but modifying a file is most likely broken.
* Remove markAsSeenArno2013-03-171-4/+0
| | | | Wasn't used anyway, dropped DB-Table seen also.
* Fix ColorsArno2013-03-171-12/+22
| | | | | | | 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...
* Fix NewPicsDialogArno2013-03-171-1/+1
| | | | another QFilesystemModel:: fix. Use SmDirModel instead.
* Fix QFileSystemModel::FilePathRole usageArno2013-03-171-1/+2
| | | | | Make NewMovieWizard work again and fix QFileSystemModel::FilePathRole usage. QFileSystemModel::FilePathRole -> SmDirModel::FullPathRole
* Port to Qt5Arno2013-03-031-14/+14
| | | | | | | | * 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 :)
* Remember state of mShowBurnFilesAArno2013-02-091-1/+5
|
* Usability: SeriesTreeViewArno2013-02-081-0/+1
| | | | | Switch back to normal view when in burn view and a series is selected in SeriesTree.
* Revamp Show all Files ActionArno2013-02-071-7/+7
| | | | | Change action to show all local movies, no favorites, no pictures, to ease selection of files to burn.
* Move to archiveArno2013-01-271-1/+5
| | | | | 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/+3
| | | | | Allow moving files from one SeriesPart to another. Had to add another global variable for this.
* Usability: Make archiving pics easierArno2012-11-161-0/+12
| | | | | | | | | | | 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
* Fix Splash1.1.0Arno2012-11-011-0/+18
| | | | Actually display splash screen and show what we're doing.
* Make headers in PictureView configurableArno2012-10-201-1/+11
| | | | | 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-13/+18
| | | | Preparation for making PicturesWidget's tree headers configurable.
* Make PictureViewer2 size configurableArno2012-10-201-2/+4
| | | | | | | | 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
* SeriesTreeModel fixArno2012-10-101-4/+2
| | | | | | | | | * 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-5/+21
| | | | | Added convenience function to archive selected pictures. Selected pics in the FileManager will automagically be added to NewPicsDialog.