Oscar Blumberg [Thu, 22 Feb 2007 16:45:53 +0000 (16:45 +0000)]
* Starts to add Nepomuk supports to dolphin (currently, only annotations are supported)
* Little changes in InfoSidebarPage (no more multiple label for infos & Q3Layout>QLayout)
* Support infos for multiple files (only total size, what else ?)
Peter Penz [Sun, 18 Feb 2007 11:20:32 +0000 (11:20 +0000)]
View properties dialog: Allow to reset all view properties (the timestamp is used for this). Additionally it is possible for the user to specify whether the current view properties should be the default for new directories.
Peter Penz [Sat, 17 Feb 2007 20:04:06 +0000 (20:04 +0000)]
Improve usability of the viewproperties dialog: use 2 radiobuttons instead of one checkbox to make clear where the view properties are applied. Separate the apply-to-group visually from the 'Use as default for new folders' checkbox.
Peter Penz [Sat, 17 Feb 2007 18:25:46 +0000 (18:25 +0000)]
Allow the pasting of a text clipboard content to the URL navigator by pressing the middle mouse button. Although this is quite a hidden feature, I think it makes happy a lot of people who just want to paste a URL available as text to the URL navigator without switching from the breadcrump view to the traditional view.
Very nice "side effect": the URL navigator is now completely flicker free when changing URLs because of using the whole available width :-)
TODO: I'm not 100 % sure whether checking the middle mousebutton by 'if (event->button() == Qt::MidButton) { ... }' is the right approach (maybe there is a more generic way to check the 'paste button').
Peter Penz [Sat, 17 Feb 2007 14:46:54 +0000 (14:46 +0000)]
Prevent a flickering of the URL navigator buttons by reusing existing buttons (before all items have been deleted and recreated). The flickering is still not solved to 100 %, but a lot better than before. @Aaron: I did not change anything inside the logic of the code -> the net protocol code works the same as in our internal KDE3 working prototype of Dolphin
Peter Penz [Sat, 17 Feb 2007 10:31:52 +0000 (10:31 +0000)]
Cleanup of the URL navigator, so that the DolphinMainWindow and the DolphinView are not used anymore. This will make it easier for us later on when moving the URL navigator outside Dolphin to make it accessable for other parts. Currently the bookmarks are still accessed by DolphinSettings, but this will be cleaned up later...
Peter Penz [Fri, 16 Feb 2007 17:03:02 +0000 (17:03 +0000)]
Reanimated drag & drop support again after introducing the DolphinController. It is now also possible to move the items inside an icon view like discussed on kde-devel/kde-usability.
Peter Penz [Wed, 14 Feb 2007 21:54:24 +0000 (21:54 +0000)]
Step one for having DolphinParts for the icons and details view, which can be used by Konqueror. TODO: currently dropping of items is deactivated, as I want to wait for Davids feedback whether the direction is ok.
Peter Penz [Mon, 5 Feb 2007 23:17:15 +0000 (23:17 +0000)]
Only group the directories before items if the KDirModel::Name column is sorted. If the sorting is done e. g. by the date column, it is confusing when still directories are seperated from items.
Peter Penz [Wed, 31 Jan 2007 22:03:35 +0000 (22:03 +0000)]
Queue error messages so that a currently shown error message is not replaced until the user confirmed the reading. If there are no pending error messages and a timeout has been exceeded, the currently shown error messages automatically fades out as soon as the user triggered another action. This behavior should correspond to Ellens suggestions (I hope :-)).
Peter Penz [Tue, 30 Jan 2007 19:38:44 +0000 (19:38 +0000)]
Improvements for error messages:
- increase/decrease size on demand and hide progress bar or space information if required
- provide close button
TODO: the code is far from being finished (e. g. no queueing of pending error messages, close button looks fugly, ...), but I decided to commit the changes to prevent getting an inconsistent state in combination with other commits...
Peter Penz [Fri, 26 Jan 2007 19:58:41 +0000 (19:58 +0000)]
Further optimizations: do a delayed update of the geometry. This leads to a reduced flickering/resizing when e. g. the view is split or the window is resized.
Peter Penz [Thu, 25 Jan 2007 22:28:04 +0000 (22:28 +0000)]
First step for making the details view usable again:
- accept drops
- Automatically resize the columns in a way that the whole available width is used by stretching the width of the 'Name' column. Qt4's QTreeView really rocks, only a few lines of code had been necessary to get this behavior :-)
Peter Penz [Thu, 25 Jan 2007 21:06:59 +0000 (21:06 +0000)]
David's patches come in faster than light: removed code duplication, as a proper default implementation is now available in KonqUndoManager::UiInterface::copiedFileWasModified().
Peter Penz [Thu, 25 Jan 2007 19:37:19 +0000 (19:37 +0000)]
Use custom implementation of KonqUndoManager::UiInterface for Dolphin. This allows that error messages are shown inside the status bar of Dolphin (otherwise a modal error dialog containing an "OK" button would be opened).
Peter Penz [Thu, 25 Jan 2007 17:56:29 +0000 (17:56 +0000)]
Cleanup of URL drop handling (simplified code, modifier keys work again). After further minor cleanups it looks like KonqOperations::doDrop() can be used later on :-)
Peter Penz [Thu, 25 Jan 2007 16:56:52 +0000 (16:56 +0000)]
Use KNewMenu instead of custom implementation of Dolphin. TODO: currently errors are indicated automatically in a message box KNewMenu. In Dolphin modal dialogs having only an "OK" button are not used -> it would be nice if Dolphin could handle the errors in a custom way.
Peter Penz [Tue, 23 Jan 2007 18:33:43 +0000 (18:33 +0000)]
Minor adjustments and cleanups in the statusbar:
- prevent a flickering of the space information if a folder has been changed
- assure that no progress bar and space information is shown if an error is displayed currently
Peter Penz [Sun, 21 Jan 2007 22:12:49 +0000 (22:12 +0000)]
- Fixed crash when showing "Open With..." items of the context menu: the model index from the proxy model was used instead of the model index from the KDirModel.
- Use QMenu::addSeparator() instead of QMenu::insertSeparator().
Peter Penz [Sun, 21 Jan 2007 21:20:37 +0000 (21:20 +0000)]
Cleanup of DolphinContextMenu:
- don't use any deprecated methods anymore
- temporary deactivated the "Open With..." submenu. There's a crash in KDirModel when invoking KFileItem::mimetype(); although the same code worked with an older version of kdelibs, I assume this is a Dolphin issue -> I'll do some further analyses...
Peter Penz [Thu, 18 Jan 2007 06:32:21 +0000 (06:32 +0000)]
Replaced Dolphins UndoManager and DolphinCommand by KonqUndoManager and KonqOperations. There are still some minor open issues left (renaming of multiple selected files, no undo support for KonqOperations::mkdir(), redo, ...), but all in all it absolutely makes sense to use a shared code for those operations.
Peter Penz [Mon, 15 Jan 2007 18:28:19 +0000 (18:28 +0000)]
Minor performance improvement. As Dominic Battre pointed out correctly, it is not necessary to calculate the value of both numbers, it is enough to compare the weight.
Peter Penz [Fri, 12 Jan 2007 21:21:06 +0000 (21:21 +0000)]
Fixed issue in method naturalCompare: strings having numbers with the same amount of digits got the same weight. E. g. naturalCompare("Item 10", "Item 11") returned 0 instead of a value < 0.
Peter Penz [Fri, 12 Jan 2007 20:24:23 +0000 (20:24 +0000)]
Natural sorting fix: assure that directories are sorted always before files as Ellen has recommended. One minor issue is left: when the sort order is descending, the natural sorting result is:
item 10.jpg
item 11.jpg
item 2.jpg
item 1.jpg
instead of
item 11.jpg
item 10.jpg
item 2.jpg
item 1.jpg
Peter Penz [Sun, 7 Jan 2007 21:28:41 +0000 (21:28 +0000)]
Fixed issue that the view properties have not been used for the home directory when starting Dolphin. Also some (very minor) updates have been done regarding the coding guidelines (I'm a nasty nitpicker ;-)).
Peter Penz [Sun, 7 Jan 2007 21:10:52 +0000 (21:10 +0000)]
Remember the position and size of the docks by using QMainWindow::saveState() and QMainWindow::restoreState(). I assume that in KDE 4 there will be a generic mechanism to store the position and size of docks like done for toolbars -> this is only a temporary solution to have a usable version of Dolphin in the meantime.
Peter Penz [Sun, 7 Jan 2007 09:47:05 +0000 (09:47 +0000)]
Allow that Dolphin can also be used with global view properties. Per default Dolphin remembers the view properties for each directory, but from the feedback I've got there is a not ignorable amount of people who prefer having global view properties instead.
Holger Freyther [Sun, 24 Dec 2006 00:03:40 +0000 (00:03 +0000)]
-Use QSortFilterProxyModel for filtering instead of KDirList::setFilterName
-Map DolphinView::Sorting to a column of the KDirModel and sort this column
-Reimplement QAbstractItemModel::sort(int,SortOrder) to keep track of the
sorted column and order as dolphin uses this in the config dialogs. We will
now work correctly if a view changes sorting.
Holger Freyther [Sat, 23 Dec 2006 12:52:53 +0000 (12:52 +0000)]
The answer is either clear() or filterChanged(). Anyone knows this better?
I have decided to use clar as this is the most conservative choiche I could
make. Actually I would love to call QSortFilterProxyModelPrivate::sort as
the mapping does not change, as we do not filter rows ATM...
Peter Penz [Wed, 20 Dec 2006 20:50:32 +0000 (20:50 +0000)]
- Performance optimization in DolphinView::loadDirectory() (don't store the view properties for each property individually)
- Get rid of methods which are not used anymore due to moving to KDirModel.
- Respect GeneralSettings::globalViewProps() setting when storing view properties.
Peter Penz [Wed, 20 Dec 2006 19:10:39 +0000 (19:10 +0000)]
Let the user chose whether view properties should be remembered for each directory or whether they should be valid globally. Per default the view properties are remembered for each directory. For testing purposes the MIME type information is shown per default in the icons mode (thanks to Fredrik for the cool implementation in KFileItemDelegate!).