summaryrefslogtreecommitdiffstats
path: root/filesystemwidget.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Weed out PictureViewer in favor of PictureViewer2Arno2012-04-281-3/+15
| | | | Remove PictureViewer from everywhere and use PictureViewer2 instead.
* Indictate slide in status barArno2012-03-241-40/+0
| | | | | | 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-0/+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...
* Fix qWarnings() at startup and shutdownArno2010-12-301-1/+1
| | | | | | | | | | | | | | Fix unexpected NULL receiver on startup: Turns out this warning is issued when calling deleteLater on a NULL object. This happened in SheMov::createOpenWith*. The "database is still in use" warning was a bit harder to track down. First of all, the destructors weren't called since Qt::WA_DeleteOnClose wasn't set for SheMov, so Qt would simply exit and let the OS do the cleanup without calling the destructors. Then there were several orphan widgets/objects without a parent, so their destructor would never be called.
* Made all icons in qresource available for UIArno2010-12-271-2/+6
| | | | | | | | | | | | | | | | Every registered icon can be chosen as Qt::DecorationRole for all models at once. Suitable icons must be added to SmGlobals::mIcons. Key is a descriptive text, value is the icon path. To make things easier SmTreeModel got two new member functions: -QIcon decorationIcon() returning the current Icon -void setDecorationIcon() to set the current Icon The current Icon is initialized in the constructor from QSettings - ui/iconfolder To update the TreeViews connected to the FileSystemModel a little hack is needed: Just set the QFileIconProvider again. This causes the Model to update connected views.
* Made colors configurableArno2010-12-261-0/+2
| | | | | | | | | Added a tab to ConfigurationDialog to make some colors configurable. It works somehow. The font color isn't evaluated yet, since I'm not convinced that it is a good idea. But one problem is that calling qApp->setPalette() doesn't propagate to non visible child dialogs. Dunno if it's worth fixing.
* Remove MessageDialogArno2010-12-221-1/+0
| | | | Remove all references of MessageDialog, including files :)
* Fix copy, cut and paste filesArno2010-12-211-51/+85
| | | | | | | | | | Make this options in the context and edit menu of FilesystemWidget behave a lot more as expected. Copy and cut just copies the file names to the clipboard, and paste paste moves them if they were cut and copies them when the action was copy. Still need to fix the colors when something is marked somehow. Should be configurable :)
* Fix rename files in FSWidgetArno2010-12-181-36/+11
| | | | | | Rename files inline, letting the model do all the work. Part of getting rid of MessageDialog. Maybe this broke the filename templates. We'll see...
* Code cleanupArno2010-12-051-10/+1
| | | | | | Remove debug statements from FileSystemWidget. Also remove useless helper func StringListContains. That was a goodie. I guess I was quite drunk when I wrote that...
* Implemented mark as seenArno2010-11-211-4/+85
| | | | | | | Added new action to mark files as seen. Marked files have the foreground color red. For this the database connection is needed quite early, so I had to call SmGlobals::instance() in the constructor of SheMov without using it.
* Solved update problem during mountArno2010-11-211-5/+22
| | | | | Keep FSWidget updated when mounting a dvd. It's an ugly hack involving changing the current directory several times, but it works...
* Added support for mounting cd/dvdsArno2010-11-201-0/+52
| | | | | | DVDs or CDs can be mounted under *NIX like OS now. It still eludes me how to refresh a directory from a QFileSystemModel when it's mounted. Maybe it's a qt bug...
* Added ToobarArno2010-11-071-1/+15
| | | | Implemented a toolbar with various actions. Also did some artwork :)
* Added ".." entry to FileViewArno2010-10-311-1/+5
| | | | | | Show ".." entry in FileView and make it go to the parent directory. Had to work around QT Bug 14760: NoDot doesn't work so the "." entry has to be filtered in filterAcceptsRow()
* Act on doubleClick in FileTreeWidgetArno2010-07-241-1/+2
| | | | | | | | | | | | | When doubleclicking a picture in FileTreeWidget the pictureViewer is shown. Doubleclicking a movie file launches the default movie player. Since PictureViewer is now used in FileSystemWidget and ArchiveTreeView a global instance is needed. The appropriate place for this is a singleton. Since we already had a singleton for QAbstractItemModels I renamed it to SmGlobals and added a function to return a PictureViewer object. Renaming it was quite easy thanks to QtCreator's ability to rename variable names.
* Big code cleanupArno2010-07-231-22/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | hopefully removed all code connected to ArchiveViewWidget in this tree. Files removed ({h,cpp}): *archiveeditdialog *listeditor *covereditor *archivefilewidget *addmoviewizard *archivefileview *archiveproxy *sizedelegate *archivedidelegate *archiveitemeditdialog *coveritem *movieitem *moviemodel *moviemodelsingleton *listmodel *listmodelsingleton *archiveviewwidget *archiveiteminfoedit *archiveitemcoveredit *fileinfoitem *fileinfomodel See added file TODOS for stuff that needs fixes.
* Save PictureViewer positionArno2010-05-241-0/+3
| | | | Save and restore PictureViewer position on exit and startup.
* Implemented PictureViewer classArno2010-05-241-7/+5
| | | | | | | Don't call an external program for showing a picture. When an image is doubleclicked a new windows shows the picture. Pictures can still be opened in an exteral program by using the "Open with..." context menu item.
* Cleanup archive extractionArno2010-05-141-21/+0
| | | | | Removed the code for archive extraction. Never used it, never liked it and really never worked properly.
* Discard QDirModelArno2010-05-121-18/+8
| | | | QDirModel is deprecated by the Nokia guys. Use QFileSystemModel instead.
* Solved issue with mRefreshA in FilesystemWidgetArno2010-05-121-33/+6
| | | | | | | | | | 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-10/+18
| | | | | | 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-0/+1
| | | | | | | 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.
* Make use of new Config-Values for programsArno2010-05-111-9/+41
| | | | | | Double click and playSelected() now uses the default from a list of several program. If no default program is set, the first element in the Hash is used.
* Implemented read/write settings at startup/exitArno2010-05-101-25/+51
| | | | | | | 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/+27
| | | | git-svn-id: file:///var/svn/repos2/shemov/trunk@420 f440f766-f032-0410-8965-dc7d17de2ca0
* -Removed some qDebug() statementsam2009-09-161-4/+3
| | | | | | | | | | -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
* -Modified MovieModel:am2009-08-151-0/+5
| | | | | | | | | | | ->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
* -finished properties dialogam2009-08-011-1/+1
| | | | | | | -start mplayer detached from FileSystemWidget git-svn-id: file:///var/svn/repos2/shemov/trunk@397 f440f766-f032-0410-8965-dc7d17de2ca0
* -some minor changes and usability things:am2009-07-241-1/+4
| | | | | | | | | | | -When archiving files, also add new actors to the actorselection -Added completer to ListEditor -When selecting an already existing actor, also add it to actorselection -invalidate ArchiveProxy when items are added -prevent manual editing of FilesystemView git-svn-id: file:///var/svn/repos2/shemov/trunk@395 f440f766-f032-0410-8965-dc7d17de2ca0
* -Made CoverItem behave consistentam2009-07-211-1/+1
| | | | | | | | | | -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
* Again huge changes (should go on vacation more often :))am2009-07-181-0/+23
| | | | | | | | | | | | -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
* -Fixed extractor... Just look at the examples for QProcess :)am2009-07-161-13/+26
| | | | | | | | | -Beautified extractor output for unrar -Added User interface configuration options -So, there are Usability fixes git-svn-id: file:///var/svn/repos2/shemov/trunk@388 f440f766-f032-0410-8965-dc7d17de2ca0
* -finished calling extractoram2009-07-151-0/+17
| | | | | | | | -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-3/+4
| | | | | | | | -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/+40
| | | | | | | -started on configurationdialog git-svn-id: file:///var/svn/repos2/shemov/trunk@385 f440f766-f032-0410-8965-dc7d17de2ca0
* -implemented deleteFilesam2009-07-111-1/+213
| | | | | | | | | | -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/+6
| | | | | | | | | -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-4/+11
| | | | | | | -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-0/+2
| | | | git-svn-id: file:///var/svn/repos2/shemov/trunk@381 f440f766-f032-0410-8965-dc7d17de2ca0
* -added messagedialogam2009-07-081-1/+2
| | | | | | | -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
* -fixed showing tree in fileviewam2009-07-061-0/+19
| | | | | | | -when a movie or image is activated, it's shown in the configured viewer git-svn-id: file:///var/svn/repos2/shemov/trunk@379 f440f766-f032-0410-8965-dc7d17de2ca0
* -implemented sorting in fileviewam2009-07-061-9/+68
| | | | | | | -implemented location bar git-svn-id: file:///var/svn/repos2/shemov/trunk@378 f440f766-f032-0410-8965-dc7d17de2ca0
* -added some artworkam2009-07-061-0/+53
| | | | | | | -started implementing FilesystemView git-svn-id: file:///var/svn/repos2/shemov/trunk@377 f440f766-f032-0410-8965-dc7d17de2ca0
* -finished model, I thinkam2009-07-041-0/+22
-started gui git-svn-id: file:///var/svn/repos2/shemov/trunk@376 f440f766-f032-0410-8965-dc7d17de2ca0