summaryrefslogtreecommitdiffstats
path: root/shemov.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix MovieInfoPageArno2010-07-041-0/+12
| | | | | | | | | | | | | | | The first page of NewMovieWizard gave me quite a headache. It crashed with a segmentation fault because of exposing mDvdNo via registerField() without actually assigning a QCheckBox to it. The backtrace isn't very helpful in such a case. I also fixed some bugs on the way: 1. use SmTreeItem::setData in SmTreeModel::addRow instead of deleting the old item and creating a new one. This way I don't need to take care of the parent. 2. get data of old item in SmTreeModel::reparent before calling removeRows. This call deletes the item. 3. Fix column alignments in WizardTreeModel for size column
* Implemented "open with" submenu in ArchiveTreeViewArno2010-07-021-3/+14
| | | | | | | | | Changes: -changed signature of ArchiveTreeView::playSelected() to take a QString argument for the preferred player -Bugfix in SeriesTreeModel::findSortedMovies: use SeriesId for mSortedMovieListQuery -SheMov: use mOpenWithMapperAV for mATree instead of deprecated mAVWidget
* Singleton cleanupArno2010-06-231-3/+2
| | | | | | | | | | The SmUberModel class wasn't needed at all, so I removed it. Instead I renamed SmUmberModelSingleton into a real singleton for all QAbstractItemModel*, though right now it only supports the SeriesTreeModel and FileTreeModel. But it should eventually evolve into a singleton for all QAbstractItemModel *. For this I renamed the class SmUberModelSingleton to SmModelSingleton.
* expand/collape actions for SeriesTreeWidgetArno2010-06-181-3/+16
| | | | Implemented expand and collapse actions for SeriesTreeWidget.
* read/write settings for SeriesTreeWidgetArno2010-06-181-0/+2
| | | | | SeriesTreeWidget now retains its last state regarding sort order and expanded items.
* Created frontend for SeriesTreeModel::deleteFromSeriesArno2010-06-181-2/+3
| | | | | | | | | | | Implemented frontend for SeriesTreeModel::deleteFromSeries. I hope QPersistentModelIndexes work as advertised. From the qt-sources it seems that a QPersistentModelIndex is automatically updated by QAbstractItemModel when calling begin(Remove|Insert)Rows. Testing worked out fine. While at it I found a bug in SmTreeModel. removeRows has to be called with (i - 1) instead of (i) to remove the correct nodes.
* Implemented SeriesTreeModel::deleteFromSeriesArno Moeller2010-06-181-0/+1
| | | | It compiles, let's ship it. Totally untested.
* SeriesTreeModel::findFilesArno2010-06-171-0/+2
| | | | | | Implemented SeriesTreeModel::findFiles in preparation for deleting files from SeriesTreeView. Totally untested, of course, and the new action in SheMov doesn't do anything.
* Partial implementation of adding new SeriesArno Moeller2010-06-171-0/+6
| | | | | | Adding an item to the TreeView works, but it doesn't get focus after inserting. Also the data is not shown. And setting the title of the new item should make the database puke.
* Fixed SeriesTreeModelArno Moeller2010-06-171-0/+3
| | | | | There was no serious problem with the database schema. Maybe I should have gone to bed earlier. Updating and changing series names now works.
* Made ArchiveTreeView workArno2010-06-121-0/+3
| | | | | Made ArchiveTreeView work and took a look at it. Right now flat view seems to be the better alternative.
* Implemented copying of movie dataArno2010-05-301-0/+4
| | | | | Added function to copy actors, covers, genre, dvd and quality to other parts of the same movie if movie has multiple files.
* Get rid of obsolete classesArno2010-05-291-8/+0
| | | | | Get rid of EditArchiveItemDialog and CoverArchiveEditor. The functionality of the classes is implemented in ArchiveItemEditDialog.
* Implement new ArchiveItemEditDialogArno2010-05-291-1/+2
| | | | | | | | | | | | | | | | Use ArchiveItemEditDialog instead of EditArchiveItemDialog. The latter will soon be obsolete and removed. Terrible naming, though. This commit is not as atomic as I want it to be, but it can't be helped. I had to fix several bugs in ArchveItemInfoEdit and ArchiveItemCoverEdit on the way: -Fix layout of ArchiveItemCoverEdit -Make white background of warning label in ArchiveItemCoverEdit work -Add function to ArchiveItemInfoEdit to init the ActorModel and FileInfoModel -Add function to ArchiveItemInfoEdit to return selected actors Beware: The update button still does nothing!
* Close PictureViewer on exitArno2010-05-241-0/+2
| | | | Close PictureViewer window when exiting SheMov.
* Use singletons for modelsArno2010-05-221-5/+6
| | | | | Created singletons for the ListModel* and MovieModel*. There should only be one of each and they were passed around quite a lot.
* Fix bug in setFsFree()Arno2010-05-141-3/+3
| | | | | Make height of QLabel dependent on font size instead of its own heigt. The latter makes it grow in height from every call to setFsFree().
* Fix calls to setFsFree()Arno2010-05-141-2/+4
| | | | | Move connect() to constructor and also recalculate free space after removing files by connecting to rowsRemoved(QModelIndex,int,int).
* Cleanup archive extractionArno2010-05-141-29/+0
| | | | | Removed the code for archive extraction. Never used it, never liked it and really never worked properly.
* Added "Play selected" and "Open with" to ArchiveViewWidgetArno2010-05-141-34/+67
| | | | | | | | | | | | | | | Implemented "Play selected movies" and "Open with" functions in ArchiveViewWidget. Also fixed a potential crash when re-creating the "Open with"-submenus. It's not possible to remove actions from an ActionGroup while iterating over the group with foreach. The ActionGroup is modified when calling removeAction() thus throwing the iterator of the loop off. Solution: First remove the actions from the ActionGroup and then delete the ActionGroup itself. The QObject destructor will take care of the contained Actions.
* Revamped ArchiveViewWidget context menuArno2010-05-141-7/+15
| | | | | Add separators to ArchiveViewWidget->fileView() contextmenu using QActions and by integers during construction of QMenu.
* Discard QDirModelArno2010-05-121-9/+4
| | | | QDirModel is deprecated by the Nokia guys. Use QFileSystemModel instead.
* Re-added Rename File to FileView contenxt menuArno2010-05-121-0/+1
| | | | Forgot it the first time.
* Solved issue with mRefreshA in FilesystemWidgetArno2010-05-121-1/+1
| | | | | | | | | | FilesystemWidget needs a pointer to the QAction triggering a refresh to disable it under certain circumstances. The current solution was to search the actions() of a child widget for a specific string in QAction::data(). Don't like it. Now SheMov sets the refresh action via a member function of FilesystemWidget.
* Implemented "Open with"Arno2010-05-121-0/+1
| | | | | | The contextmenu of Fileview got an "Open with" submenu containing all configured programs. Opening files does not depend on MIME-types. That means a movie can be opened with a pictureviewer and vice versa.
* Revamp actions for FilesystemWidgetArno2010-05-111-24/+73
| | | | | | | Make actions for FilesystemWidget more Qt-like. Wrapped Rename menu into an Action and got rid of the ugly findAction(). Use signal instead. Also added actions for OpenWith.
* Implemented read/write settings at startup/exitArno2010-05-101-1/+29
| | | | | | | The window position and size is now written to disk on exit and read on startup. Also, the expanded directories from the tree are saved and restored. This means I can get rid of this ugly expand dirs on startup thing. Never liked it very much.
* -removed a lot of qDebug() includesam2009-11-081-2/+0
| | | | | | | -turned the Fileinformation into a QTreeview, created a model for that git-svn-id: file:///var/svn/repos2/shemov/trunk@422 f440f766-f032-0410-8965-dc7d17de2ca0
* -implemented play selected filesam2009-10-241-0/+5
| | | | git-svn-id: file:///var/svn/repos2/shemov/trunk@420 f440f766-f032-0410-8965-dc7d17de2ca0
* -Removed some qDebug() statementsam2009-09-161-5/+15
| | | | | | | | | | -Removed filtering of extractor output (not tested) -Changed SelectionMode of filemanager to ExtendedSelection -Fixed bug in SheMov::setFreeFS -Size of selected files is now shown in filemanager git-svn-id: file:///var/svn/repos2/shemov/trunk@407 f440f766-f032-0410-8965-dc7d17de2ca0
* -implemented statistics for quality distributionam2009-09-061-1/+3
| | | | | | | -filter bar in archiveview can now be activated by pressing enter git-svn-id: file:///var/svn/repos2/shemov/trunk@406 f440f766-f032-0410-8965-dc7d17de2ca0
* -started statistics. It compiles, but does nothing at all yetam2009-09-051-0/+35
| | | | | | | -implemented aboutShemov and aboutQt git-svn-id: file:///var/svn/repos2/shemov/trunk@405 f440f766-f032-0410-8965-dc7d17de2ca0
* -added free space label in statusbaram2009-08-281-0/+53
| | | | git-svn-id: file:///var/svn/repos2/shemov/trunk@404 f440f766-f032-0410-8965-dc7d17de2ca0
* -Modified MovieModel:am2009-08-151-2/+16
| | | | | | | | | | | ->FullPathRole and CoverPathRole ->maxValue of any column -Implemented move files to directory for burning -Implemented collective DVDNo change -Implemented delete from archive git-svn-id: file:///var/svn/repos2/shemov/trunk@402 f440f766-f032-0410-8965-dc7d17de2ca0
* -Implemented conlumnContains() in MovieModelam2009-08-141-1/+33
| | | | | | | | | | -Implemented guess-function in ArchiveEditDialog -Cumulative size is now shown in statusBar() when selecting items in ArchiveViewWidget -Fixed EditArchiveItemDialog allowing duplicate titles (neccessary after creating iseriesno and ipartno) -Fixed windowTitle() when changing tabs git-svn-id: file:///var/svn/repos2/shemov/trunk@401 f440f766-f032-0410-8965-dc7d17de2ca0
* -finished properties dialogam2009-08-011-0/+4
| | | | | | | -start mplayer detached from FileSystemWidget git-svn-id: file:///var/svn/repos2/shemov/trunk@397 f440f766-f032-0410-8965-dc7d17de2ca0
* -Finished CoverArchiveEditor (finally, don't like that piece of code, too ↵am2009-07-221-0/+11
| | | | | | | | | | complicated) -It's now possible to manually add a movie w/o a file -Some usability fixes git-svn-id: file:///var/svn/repos2/shemov/trunk@394 f440f766-f032-0410-8965-dc7d17de2ca0
* -Made CoverItem behave consistentam2009-07-211-22/+43
| | | | | | | | | | -get QModelIndex from MovieModel by movieId -ArchiveView: added delegates for dvd and size, MovieItem now returns size as int -Finished EditArchiveItemDialog -Reverted covereditor, it became too convoluted git-svn-id: file:///var/svn/repos2/shemov/trunk@393 f440f766-f032-0410-8965-dc7d17de2ca0
* -added ActorRole in MovieModelam2009-07-191-2/+9
| | | | | | | | -Fixed bug in MovieItem returning data and filling the model -Started on archive viewing git-svn-id: file:///var/svn/repos2/shemov/trunk@391 f440f766-f032-0410-8965-dc7d17de2ca0
* Again huge changes (should go on vacation more often :))am2009-07-181-3/+11
| | | | | | | | | | | | -turned archive tab into a QDialog -fixed duplicate handling in ListModel -fixed html output in archive dialog -actually made archiving work -changed covertype to text in database -fixed bug with covertype in coveritem git-svn-id: file:///var/svn/repos2/shemov/trunk@390 f440f766-f032-0410-8965-dc7d17de2ca0
* Huge changes:am2009-07-171-0/+24
| | | | | | | | | | | | | | -Created an application icon and one for archives -implemented database configuration dialog -implemented listeditor -implemented covereditor -implemented md5sum helper -implemented archivefilewidget -Debugging spree: fixed SQL-statements and ListModel git-svn-id: file:///var/svn/repos2/shemov/trunk@389 f440f766-f032-0410-8965-dc7d17de2ca0
* -finished calling extractoram2009-07-151-1/+22
| | | | | | | | -QProcess doesn't work as promised in the docs, dunno how to do it yet, but we need a thread to keep the GUI responsive... -fixed some bugs with the extractionpaths git-svn-id: file:///var/svn/repos2/shemov/trunk@387 f440f766-f032-0410-8965-dc7d17de2ca0
* -Finished ConfigurationDialog->pathsam2009-07-131-0/+19
| | | | | | | | -Implemented ExtractorDialog (untested) -started work on extractor menus git-svn-id: file:///var/svn/repos2/shemov/trunk@386 f440f766-f032-0410-8965-dc7d17de2ca0
* -implemented cover rename and templatesam2009-07-121-0/+42
| | | | | | | -started on configurationdialog git-svn-id: file:///var/svn/repos2/shemov/trunk@385 f440f766-f032-0410-8965-dc7d17de2ca0
* -implemented deleteFilesam2009-07-111-0/+41
| | | | | | | | | | -implemented refresh -implemented copyFiles -implemented moveFiles -implemented renameFiles git-svn-id: file:///var/svn/repos2/shemov/trunk@384 f440f766-f032-0410-8965-dc7d17de2ca0
* -fixed display of windowTitleam2009-07-101-4/+19
| | | | | | | | | -focus FileView after startup and changing dir via directorybar -implemented createFolder -display action in statusBar() git-svn-id: file:///var/svn/repos2/shemov/trunk@383 f440f766-f032-0410-8965-dc7d17de2ca0
* -fixed selection handlingam2009-07-101-0/+5
| | | | | | | -implemented proper window titles (not yet working) git-svn-id: file:///var/svn/repos2/shemov/trunk@382 f440f766-f032-0410-8965-dc7d17de2ca0
* -added statusbar and no. of selected filesam2009-07-091-1/+18
| | | | git-svn-id: file:///var/svn/repos2/shemov/trunk@381 f440f766-f032-0410-8965-dc7d17de2ca0
* -added messagedialogam2009-07-081-0/+32
| | | | | | | -worked on keyboard navigation and selecting items, items can now be selected like in mc git-svn-id: file:///var/svn/repos2/shemov/trunk@380 f440f766-f032-0410-8965-dc7d17de2ca0
* -added some artworkam2009-07-061-0/+30
-started implementing FilesystemView git-svn-id: file:///var/svn/repos2/shemov/trunk@377 f440f766-f032-0410-8965-dc7d17de2ca0