Commit graph

37 commits

Author SHA1 Message Date
Peter Penz ae338af474 improve the handling when applying item effects to cut items
svn path=/trunk/KDE/kdebase/apps/; revision=645516
2007-03-22 19:25:44 +00:00
Peter Penz 397b9bd450 Step 1 of 2 to fix the issue that reloading of a directory resets the contents position to 0/0 (step 2 will be committed after the BIC Monday...).
svn path=/trunk/KDE/kdebase/apps/; revision=644237
2007-03-19 15:59:23 +00:00
Peter Penz 6baba131b2 Allow to cut, copy, paste, ... the currently selected item from a sidebar by the DolphinContextMenu (currently only used by the tree view).
svn path=/trunk/KDE/kdebase/apps/; revision=643572
2007-03-17 20:42:26 +00:00
Peter Penz f768cbd235 disable the 'Additional information' menu for other views then the 'Icons View'
svn path=/trunk/KDE/kdebase/apps/; revision=641532
2007-03-11 17:51:37 +00:00
Peter Penz 25349096ae Allow to set the 'AdditionalInformation' property from KFileItemDelegate for each folder. Use case:
- Icons view for images: set 'Size' as additional property
- Icons view for media: show 'MIME type' as additional property
- Default Icons view: don't show any addtional property for a clean layout.

TODO: KFileItemDelagate::AdditionalInformation intersects with KDirModel::Columns when used in combination with the details view. Assure that the user does not get confronted with such implementation details in the user interface.

svn path=/trunk/KDE/kdebase/apps/; revision=641525
2007-03-11 16:47:12 +00:00
Peter Penz 49f881f5ec Fixed some drag & drop issues:
- allow drag & drop inside the view
- prevent a dragging from a directory into itself
- use QModelIndex instead of the position

svn path=/trunk/KDE/kdebase/apps/; revision=641451
2007-03-11 11:13:07 +00:00
Peter Penz fca6867fea Apply an item effect to all cut items. As discussed with Fredrik this should be done in the application itself and not inside KDirModel to be able to do some optimizations.
svn path=/trunk/KDE/kdebase/apps/; revision=641317
2007-03-10 21:58:55 +00:00
Peter Penz 90b0e715d2 Use hover effect from KFileItemDelegate also for the details view and assure that only the column KDirModel::Name can be selected and edited.
svn path=/trunk/KDE/kdebase/apps/; revision=640453
2007-03-08 05:43:33 +00:00
Peter Penz a46551d63e Jippie: file previews are generated again! Thanks to Fredrik for giving me a hint how to do it (if I would have known that it is so easy, I'd have implemented it already some weeks ago...). It's very nice that the details view now also is able to show previews (Kudos to Interview & KDirModel).
svn path=/trunk/KDE/kdebase/apps/; revision=638081
2007-02-28 19:17:26 +00:00
Peter Penz 175fe7ff47 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...
svn path=/trunk/KDE/kdebase/apps/; revision=634432
2007-02-17 10:31:52 +00:00
Peter Penz 86110e2778 Assure that the horizontal and vertical slider position don't reset if an item is deleted or added.
svn path=/trunk/KDE/kdebase/apps/; revision=634399
2007-02-17 07:16:59 +00:00
Peter Penz 73a9e20701 Removed method 'int columnIndex(Sorting sorting) const'. The mapping is done outside the class DolphinView already.
svn path=/trunk/KDE/kdebase/apps/; revision=634392
2007-02-17 06:29:17 +00:00
Peter Penz 546384562a 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.
svn path=/trunk/KDE/kdebase/apps/; revision=634228
2007-02-16 17:03:02 +00:00
Peter Penz f42d1d2c02 minor documentation fixes
svn path=/trunk/KDE/kdebase/apps/; revision=633708
2007-02-14 22:27:47 +00:00
Peter Penz c91365ab8d 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.
svn path=/trunk/KDE/kdebase/apps/; revision=633703
2007-02-14 21:54:24 +00:00
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 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 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 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 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 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 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
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 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
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
Holger Freyther d7d4fb9d26 Update the FSF address to 51 Franklin Street (hopefully it is the right one)
gnused rocks!

svn path=/trunk/playground/utils/dolphin/; revision=611576
2006-12-08 21:24:08 +00:00
Zack Rusin 01f577fda1 reducing a little bit the number of deprecation warnings
svn path=/trunk/playground/utils/dolphin/; revision=610300
2006-12-04 05:46:34 +00:00
Peter Penz c94276725b reanimated the context menu
svn path=/trunk/playground/utils/dolphin/; revision=609962
2006-12-02 21:51:36 +00:00
Holger Freyther f31a541925 Make it (almost) possible to have more than one Dolphin KMainWindow
Create a DolphinApplication, holding DolphinMainWindows and update
    the code to use the DolphinView to get the MainWindow, or get a ptr
    to the MainWindow directly. Or if all windows are effected go through
    the DolphinApplication to update every mainwindow.
    The UndowManager and ProgressIndicator have a rather strange relationship
    and will need some more attention but as UndoManager will be killed
    anyway I have skipped this.
    More cleanup, debugging and thinking is needed.

svn path=/trunk/playground/utils/dolphin/; revision=608945
2006-11-29 00:02:19 +00:00
Peter Penz f271d952ec Assure that the grid size for Icons View, Details View and Previews View has some proper default values.
svn path=/trunk/playground/utils/dolphin/; revision=607518
2006-11-24 22:28:49 +00:00
Peter Penz 0e3d1576d5 Initial step for moving to KDirModel. Large code parts have been deleted, as a step by step migration makes no sense. Check KDE3 version of Dolphin as reference how things have been done before.
svn path=/trunk/playground/utils/dolphin/; revision=607513
2006-11-24 22:10:33 +00:00
Peter Penz 7fec7ff9a0 As KURL has been renamed to KUrl all classes and methods, which use the term 'URL', have been converted to use 'Url' instead (e. g. the class URLNavigator is called UrlNavigator now).
svn path=/trunk/playground/utils/dolphin/; revision=606991
2006-11-22 17:13:11 +00:00
Peter Penz 5252c12db4 commited initial version of Dolphin
svn path=/trunk/playground/utils/dolphin/; revision=606622
2006-11-21 06:02:05 +00:00