summaryrefslogtreecommitdiffstats
path: root/filesystemwidget.h
Commit message (Collapse)AuthorAgeFilesLines
* Switch to QRunnable + QThreadPoolArno2013-09-031-7/+2
| | | | | | | | | | | Get rid of SmDataCollector and do its job in small, QRunnable tasks and let QThreadPool manage the treads. Works well with a local Filesystem. Yet to see how it works over networked Filesystems. Ah, before I forget: NEVER, EVER USE QPixmap in THREADS -> Random crashes! (Yes, I know, it's documented...)
* Add a progress dialog to FilesystemWidget1.2.0Arno2013-08-281-0/+4
| | | | Show a progress dialog when gathering data from the filesystem.
* Fix window titleArno2013-07-271-1/+2
| | | | Set the main window title according to selected tab.
* Don't clean up after ourselvesArno2013-06-011-1/+0
| | | | | Don't delete threads and stuff in destructors. It leads to SIGARBRT when debugging. Now we get a warning on close, but who cares?
* Fix setAlternatignRowColorsArno2013-04-101-13/+5
| | | | | | | | | | | | | | | | | | | | 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...
* Add explicit refresh for FileViewArno2013-03-221-0/+1
| | | | | Since we have SmDirModel now, we can explicitly refresh the view, eventually!
* Auto resize FileViewArno2013-03-201-0/+1
| | | | | Automatically resize FileView when it changes. I guess I was quite drunk on the first try. Fortunately I didn't commit it :)
* Remove markAsSeenArno2013-03-171-5/+1
| | | | Wasn't used anyway, dropped DB-Table seen also.
* First shot at SmDirModelArno2013-03-161-0/+2
| | | | | | | | Gotta take a break here. Hopefully this will end up in a custom QFilesystemModel, but I'm hitting so many bugs on the way. Some things haven't worked for ages, I guess. Anyway, the watcher doesn't do anythying right now, still fixing bugs...
* Port to Qt5Arno2013-03-031-2/+2
| | | | | | | | * 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 :)
* 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.
* Weed out PictureViewer in favor of PictureViewer2Arno2012-04-281-3/+4
| | | | Remove PictureViewer from everywhere and use PictureViewer2 instead.
* Indictate slide in status barArno2012-03-241-4/+1
| | | | | | 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.
* Made all icons in qresource available for UIArno2010-12-271-0/+3
| | | | | | | | | | | | | | | | 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.
* Fix copy, cut and paste filesArno2010-12-211-2/+10
| | | | | | | | | | 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-3/+1
| | | | | | 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...
* Edit values in archiveArno2010-12-061-6/+6
| | | | | | | | | | This commit introduces QInputDialogs for all values editable in the archive. Inline editing in the view doesn't seem the right choice regarding usability. Fixed a long standing bug in nextDvdNo(). That was off by one. Return one more than max(value). Also got rid of DvdNoDialog, replaced by a QInputDialog.
* Implemented mark as seenArno2010-11-211-4/+28
| | | | | | | 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.
* Added support for mounting cd/dvdsArno2010-11-201-1/+3
| | | | | | 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-0/+3
| | | | Implemented a toolbar with various actions. Also did some artwork :)
* Big code cleanupArno2010-07-231-4/+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.
* Close PictureViewer on exitArno2010-05-241-0/+1
| | | | Close PictureViewer window when exiting SheMov.
* Implemented PictureViewer classArno2010-05-241-0/+2
| | | | | | | 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-2/+0
| | | | | Removed the code for archive extraction. Never used it, never liked it and really never worked properly.
* Discard QDirModelArno2010-05-121-7/+4
| | | | QDirModel is deprecated by the Nokia guys. Use QFileSystemModel instead.
* Solved issue with mRefreshA in FilesystemWidgetArno2010-05-121-1/+4
| | | | | | | | | | 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.
* Make use of new Config-Values for programsArno2010-05-111-1/+3
| | | | | | 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-1/+5
| | | | | | | 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.
* -implemented play selected filesam2009-10-241-0/+2
| | | | git-svn-id: file:///var/svn/repos2/shemov/trunk@420 f440f766-f032-0410-8965-dc7d17de2ca0
* -Removed some qDebug() statementsam2009-09-161-1/+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/+1
| | | | | | | | | | | ->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-0/+1
| | | | | | | | | | -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
* Again huge changes (should go on vacation more often :))am2009-07-181-0/+4
| | | | | | | | | | | | -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-0/+1
| | | | | | | | | -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/+1
| | | | | | | | -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
* -implemented cover rename and templatesam2009-07-121-0/+2
| | | | | | | -started on configurationdialog git-svn-id: file:///var/svn/repos2/shemov/trunk@385 f440f766-f032-0410-8965-dc7d17de2ca0
* -implemented deleteFilesam2009-07-111-0/+18
| | | | | | | | | | -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-0/+2
| | | | | | | | | -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/+4
| | | | | | | -implemented proper window titles (not yet working) git-svn-id: file:///var/svn/repos2/shemov/trunk@382 f440f766-f032-0410-8965-dc7d17de2ca0
* -added messagedialogam2009-07-081-0/+1
| | | | | | | -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
* -implemented sorting in fileviewam2009-07-061-1/+8
| | | | | | | -implemented location bar git-svn-id: file:///var/svn/repos2/shemov/trunk@378 f440f766-f032-0410-8965-dc7d17de2ca0
* -added some artworkam2009-07-061-0/+6
| | | | | | | -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/+30
-started gui git-svn-id: file:///var/svn/repos2/shemov/trunk@376 f440f766-f032-0410-8965-dc7d17de2ca0