Commit graph

5843 commits

Author SHA1 Message Date
Peter Penz
64ef4394f9 restore the x- and y-position of the view if the current view is part of the history
svn path=/trunk/playground/utils/dolphin/; revision=632370
2007-02-10 21:29:29 +00:00
Peter Penz
fcf8436737 just a coding guideline style fix: assure that a consistent coding style is used within Dolphin
svn path=/trunk/playground/utils/dolphin/; revision=631710
2007-02-08 20:46:49 +00:00
Peter Penz
ee4e21530b Fixed issue that the filterbar and the menu state have not been synchronized (a not existing signal name has been used)
svn path=/trunk/playground/utils/dolphin/; revision=631709
2007-02-08 20:33:49 +00:00
Peter Penz
abf8f1917d Additionally to sorting by name, size and date it is now possible to sort by permissions, owner and group.
svn path=/trunk/playground/utils/dolphin/; revision=631058
2007-02-07 06:19:06 +00:00
Peter Penz
ac62df5672 If the user changes the sorting by clicking on a header section, the resulting sorting state must be synchronized with the Dolphin menu.
svn path=/trunk/playground/utils/dolphin/; revision=630740
2007-02-06 06:43:34 +00:00
Peter Penz
9eb1cac4b7 update the header indicators corresponding to the current sort column and sort order
svn path=/trunk/playground/utils/dolphin/; revision=630675
2007-02-05 23:18:22 +00:00
Peter Penz
fe1cb386e4 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.
svn path=/trunk/playground/utils/dolphin/; revision=630674
2007-02-05 23:17:15 +00:00
Peter Penz
3f53b0f32d updated the documentation
svn path=/trunk/playground/utils/dolphin/; revision=630673
2007-02-05 23:15:09 +00:00
David Faure
d674eda218 Fix compilation
svn path=/trunk/playground/utils/dolphin/; revision=630669
2007-02-05 23:12:51 +00:00
Stefan Gehn
17e8c553de Fix compile
deprecated--

svn path=/trunk/playground/utils/dolphin/; revision=629105
2007-02-01 12:05:20 +00:00
Peter Penz
c8b837a47b clear the status bar when doing an undo operation
svn path=/trunk/playground/utils/dolphin/; revision=628910
2007-01-31 22:14:46 +00:00
Peter Penz
cd3df82730 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 :-)).
svn path=/trunk/playground/utils/dolphin/; revision=628905
2007-01-31 22:03:35 +00:00
Dirk Mueller
5a0b3330d6 remove include
svn path=/trunk/playground/utils/dolphin/; revision=628892
2007-01-31 20:58:34 +00:00
Peter Penz
7495dabc15 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...

svn path=/trunk/playground/utils/dolphin/; revision=628642
2007-01-30 19:38:44 +00:00
Peter Penz
e181654494 update to changes in class KGlobal (kdelibs)
svn path=/trunk/playground/utils/dolphin/; revision=628641
2007-01-30 19:31:37 +00:00
Peter Penz
d71de955f4 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.
svn path=/trunk/playground/utils/dolphin/; revision=627494
2007-01-26 19:58:41 +00:00
Peter Penz
9877bef7c5 Further optimizations for the status bar: hide the space information if the status bar text does not fit into the remaining width.
svn path=/trunk/playground/utils/dolphin/; revision=627486
2007-01-26 19:38:32 +00:00
Script Kiddy
dcc41b4ad4 SVN_SILENT made messages (.desktop file)
svn path=/trunk/playground/utils/dolphin/; revision=627378
2007-01-26 11:01:46 +00:00
David Faure
f25a5f90f5 fixed
svn path=/trunk/playground/utils/dolphin/; revision=627345
2007-01-26 09:09:44 +00:00
Peter Penz
db8090b4de upsi... forgot to uncomment the temporary workaround until the forward declaration in knewmenu.h is added :-(
svn path=/trunk/playground/utils/dolphin/; revision=627221
2007-01-26 00:57:52 +00:00
Peter Penz
5840fcede7 Do a custom error handling in for the 'Create New...' submenu. Thanks to David for adjusting KNewMenu :-)
svn path=/trunk/playground/utils/dolphin/; revision=627220
2007-01-26 00:55:49 +00:00
Peter Penz
d52282f8a2 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 :-)

svn path=/trunk/playground/utils/dolphin/; revision=627189
2007-01-25 22:28:04 +00:00
Peter Penz
5e22e4efba David's patches come in faster than light: removed code duplication, as a proper default implementation is now available in KonqUndoManager::UiInterface::copiedFileWasModified().
svn path=/trunk/playground/utils/dolphin/; revision=627164
2007-01-25 21:06:59 +00:00
Peter Penz
fb0b2a777b 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).
svn path=/trunk/playground/utils/dolphin/; revision=627130
2007-01-25 19:37:19 +00:00
Peter Penz
33fab30e57 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 :-)
svn path=/trunk/playground/utils/dolphin/; revision=627105
2007-01-25 17:56:29 +00:00
Peter Penz
214ee5de3f 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.
svn path=/trunk/playground/utils/dolphin/; revision=627085
2007-01-25 16:56:52 +00:00
Peter Penz
78d1167c38 Get rid of some KDE 3 relicts.
svn path=/trunk/playground/utils/dolphin/; revision=626610
2007-01-23 21:44:52 +00:00
Peter Penz
50676d8d25 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

svn path=/trunk/playground/utils/dolphin/; revision=626571
2007-01-23 18:33:43 +00:00
Script Kiddy
fe34b6b551 SVN_SILENT made messages (.desktop file)
svn path=/trunk/playground/utils/dolphin/; revision=626448
2007-01-23 11:10:33 +00:00
Peter Penz
ccb06e68ac - 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().

svn path=/trunk/playground/utils/dolphin/; revision=626040
2007-01-21 22:12:49 +00:00
Peter Penz
70999c96a2 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...

svn path=/trunk/playground/utils/dolphin/; revision=626023
2007-01-21 21:20:37 +00:00
Peter Penz
07e07fd522 Removed helper class ProgressIndicator (not needed anymore because of the use of KonqUndoManager).
svn path=/trunk/playground/utils/dolphin/; revision=625608
2007-01-20 15:03:14 +00:00
Script Kiddy
a376e4d43e SVN_SILENT made messages (.desktop file)
svn path=/trunk/playground/utils/dolphin/; revision=624903
2007-01-18 11:01:54 +00:00
Peter Penz
76866f783c 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.
svn path=/trunk/playground/utils/dolphin/; revision=624760
2007-01-18 06:32:21 +00:00
Laurent Montel
4db903c670 Fix signal/slot
svn path=/trunk/playground/utils/dolphin/; revision=624604
2007-01-17 13:03:29 +00:00
Script Kiddy
04a0cad4c8 SVN_SILENT made messages (.desktop file)
svn path=/trunk/playground/utils/dolphin/; revision=624571
2007-01-17 10:59:03 +00:00
Peter Penz
d7b618e4bb 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.
svn path=/trunk/playground/utils/dolphin/; revision=623878
2007-01-15 18:28:19 +00:00
Peter Penz
e28a32728b The KMimeTypeResolver instance is owned by the item view and may not be deleted manually.
svn path=/trunk/playground/utils/dolphin/; revision=623875
2007-01-15 18:18:09 +00:00
Peter Penz
a58ce6d0b7 Use a QTreeView for the representation of the details view (previously a QListView has been used).
svn path=/trunk/playground/utils/dolphin/; revision=623643
2007-01-15 06:43:17 +00:00
Peter Penz
de4ffa3322 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.
svn path=/trunk/playground/utils/dolphin/; revision=622757
2007-01-12 21:21:06 +00:00
Peter Penz
71c0a43490 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

svn path=/trunk/playground/utils/dolphin/; revision=622751
2007-01-12 20:24:23 +00:00
Script Kiddy
2d89b70bdf SVN_SILENT made messages (.desktop file)
svn path=/trunk/playground/utils/dolphin/; revision=622304
2007-01-11 13:47:56 +00:00
Peter Penz
7954282089 Do a natural sorting of items (thanks to Dominic Battre and Martin Pool for the patch!). This means that items like:
item_10.png
 item_1.png
 item_2.png

are sorted like
 item_1.png
 item_2.png
 item_10.png

TODO: corresponding to Ellen directory items should always be ordered as first items (have to go work now -> weekend task :-))

svn path=/trunk/playground/utils/dolphin/; revision=622241
2007-01-11 06:44:46 +00:00
David Faure
b8572433e2 Doesn't need a config.h
Reduce kapplication.h usage to the minimum

svn path=/trunk/playground/utils/dolphin/; revision=622088
2007-01-10 17:31:00 +00:00
Peter Penz
d8ab89171d Applied some patches found by EBN (thanks to Nicolas Lécureuil for the patches!).
svn path=/trunk/playground/utils/dolphin/; revision=621872
2007-01-10 00:04:16 +00:00
Kevin Ottens
8046908e5b Port to new KAction, KActionCollection API.
svn path=/trunk/playground/utils/dolphin/; revision=621553
2007-01-09 00:45:31 +00:00
Peter Penz
fededebd08 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 ;-)).
svn path=/trunk/playground/utils/dolphin/; revision=620962
2007-01-07 21:28:41 +00:00
Peter Penz
b4543ce170 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.
svn path=/trunk/playground/utils/dolphin/; revision=620954
2007-01-07 21:10:52 +00:00
Peter Penz
445f0b64bd 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.
svn path=/trunk/playground/utils/dolphin/; revision=620774
2007-01-07 09:47:05 +00:00
Peter Penz
4a0a832ddb Minor adjustments for the panels:
- only let them align on the left and the right side
- summarize the panels inside a sub menu entry

svn path=/trunk/playground/utils/dolphin/; revision=620656
2007-01-06 21:46:38 +00:00