1
0
mirror of https://invent.kde.org/system/dolphin synced 2024-07-07 10:51:45 +00:00
Commit Graph

8062 Commits

Author SHA1 Message Date
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
Peter Penz
8fb8b7d711 Reanimated drag & drop support for the icons view.
svn path=/trunk/playground/utils/dolphin/; revision=620649
2007-01-06 21:11:04 +00:00
Peter Penz
86ad5d0a63 Reanimate drag and drop support for the URL navigator.
svn path=/trunk/playground/utils/dolphin/; revision=620633
2007-01-06 19:51:48 +00:00
Peter Penz
ddc11d9a26 fixed compile issues resulted by kdelibs cleanup
svn path=/trunk/playground/utils/dolphin/; revision=619596
2007-01-03 20:24:55 +00:00
Holger Freyther
f28181d833 SVN_SILENT make it compile (Dlg->Dialog)
svn path=/trunk/playground/utils/dolphin/; revision=618826
2007-01-02 09:16:36 +00:00
André Wöbbeking
b03d4cfc5d -pedantic
svn path=/trunk/playground/utils/dolphin/; revision=617550
2006-12-29 14:28:16 +00:00
Kevin Ottens
8812b5da0a Compile++
svn path=/trunk/playground/utils/dolphin/; revision=616917
2006-12-27 11:19:39 +00:00
Holger Freyther
f7e58e0966 -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.

svn path=/trunk/playground/utils/dolphin/; revision=616170
2006-12-24 00:03:40 +00:00
Holger Freyther
da88d22283 Make the View operate on the QSortFilterProxyModel
Fix the crashes by using mapToSource and mapSelectionToSource
to map the QModelIndex

svn path=/trunk/playground/utils/dolphin/; revision=616118
2006-12-23 18:00:25 +00:00
Holger Freyther
834b145d21 Fix the filterbar
svn path=/trunk/playground/utils/dolphin/; revision=616113
2006-12-23 17:23:01 +00:00
Holger Freyther
e3b47dc731 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...

svn path=/trunk/playground/utils/dolphin/; revision=615959
2006-12-23 12:52:53 +00:00
Peter Penz
b0b162135d - 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.

svn path=/trunk/playground/utils/dolphin/; revision=615255
2006-12-20 20:50:32 +00:00
Peter Penz
642110309a 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!).
svn path=/trunk/playground/utils/dolphin/; revision=615232
2006-12-20 19:10:39 +00:00
Aaron J. Seigo
3396d0dbee build
svn path=/trunk/playground/utils/dolphin/; revision=614828
2006-12-19 02:56:16 +00:00
Aaron J. Seigo
934ba42b09 KStdAction -> KStandardAction
svn path=/trunk/playground/utils/dolphin/; revision=614825
2006-12-19 02:26:06 +00:00
Holger Freyther
ba6f7b0232 make it compile
svn path=/trunk/playground/utils/dolphin/; revision=614752
2006-12-18 20:38:23 +00:00
Simon Hausmann
548169f004 - don't use deprecated KAction constructors
svn path=/trunk/playground/utils/dolphin/; revision=614376
2006-12-17 14:14:52 +00:00
Script Kiddy
cb4aa16629 SVN_SILENT made messages (.desktop file)
svn path=/trunk/playground/utils/dolphin/; revision=614370
2006-12-17 14:05:45 +00:00
Peter Penz
8b240249db Use KonqMimeData for the cut- and copy-operation instead of using bool property inside DolphinMainWindow. This assures that cut- and copy-operations also work within multiple Dolphin main windows.
svn path=/trunk/playground/utils/dolphin/; revision=614351
2006-12-17 13:47:45 +00:00
Peter Penz
c28c72619c Reanimated cut-, copy- and paste- functionality as preparation for moving to KonqUndoManager.
svn path=/trunk/playground/utils/dolphin/; revision=614325
2006-12-17 11:52:26 +00:00
Peter Penz
3b4dfa2040 Update for using a proxy model: prevent accessing the model by model() and doing a cast do KDirModel afterwards. Instead the access to the KDirModel is done by a member variable. Still the proxy model does not seem to work and leads to a crash as soon as the QListView should work with the proxy model -> in the meantime in line 112 from DolphinView.cpp the KDirModel is used instead of the proxy model.
svn path=/trunk/playground/utils/dolphin/; revision=613768
2006-12-15 01:56:57 +00:00
Dominik Haumann
3bd97ea34c fix signal names
svn path=/trunk/playground/utils/dolphin/; revision=613749
2006-12-15 00:04:41 +00:00
Peter Penz
1547891be2 Use QSortFilterProxyModel for sorting KFileItems (thanks to Fredrik for this hint!). TODO: the implementation does not work yet, as QSortFilerProxyModel::lessThan() is not invoked; I'm too tired currently for finding the root of this ;-)
svn path=/trunk/playground/utils/dolphin/; revision=613747
2006-12-14 23:49:30 +00:00
Peter Penz
418cfc1d74 Support 'select all' and 'invert selection' again.
svn path=/trunk/playground/utils/dolphin/; revision=613698
2006-12-14 19:54:59 +00:00
Peter Penz
70782d6bb4 Support changing the sorting type and sort order (TODO: does not work yet as the implementation in KDirModel is empty yet).
svn path=/trunk/playground/utils/dolphin/; revision=613696
2006-12-14 19:12:05 +00:00
Peter Penz
dd8158e707 Don't show the 'Show Preview' property inside the toolbar per default.
svn path=/trunk/playground/utils/dolphin/; revision=613031
2006-12-13 08:03:38 +00:00
Peter Penz
163fa7ce30 Instead of having a the 3 view modes "icons", "details" and "previews" only 2 view modes are used now: "icons" and "details". Whether a preview is shown or not is part of the directory view properties. This also means that it will be possible to show previews in the "details" view in future releases.
svn path=/trunk/playground/utils/dolphin/; revision=613029
2006-12-13 07:41:11 +00:00
Holger Freyther
cb2b58535b Do not abort/exit when accessing the string out of bounds
svn path=/trunk/playground/utils/dolphin/; revision=612585
2006-12-11 21:52:04 +00:00
Holger Freyther
6cb02408e4 Use a QLinkedList instead of Q3PtrList
svn path=/trunk/playground/utils/dolphin/; revision=612313
2006-12-10 21:01:38 +00:00
Holger Freyther
328de20871 --deprecation
svn path=/trunk/playground/utils/dolphin/; revision=612307
2006-12-10 20:34:43 +00:00
Peter Penz
4b0293e22e connect to the 'urlChanged' signal (the signal 'signalUrlChanged' is not available anymore)
svn path=/trunk/playground/utils/dolphin/; revision=611620
2006-12-08 23:52:00 +00:00
Peter Penz
d8669c68e4 Cleanup of signal/slot handling between the dolphin view and the main window: now the main window listens to the signals from the dolphin view and connects to private slots (previously the dolphin view connected to public slots of the main window). Also prevent naming all slots by the prefix 'slot', describe instead what the method does.
svn path=/trunk/playground/utils/dolphin/; revision=611617
2006-12-08 23:41:08 +00:00