Commit graph

119 commits

Author SHA1 Message Date
Christoph Thielecke 12324da326 revert ed4f9d3e11 2011-02-10 10:59:35 +01:00
Christoph Thielecke ee0f3435b2 compile fix: includes does only exist with old names, please fix kde headers too 2011-02-10 08:58:24 +01:00
Peter Penz ceba0f6f6a Use capitalized includes of recently committed kdelibs headers 2011-02-09 18:42:04 +01:00
Peter Penz 8eb9b508ca Use capitalized KDE includes 2011-02-04 15:43:21 +01:00
Peter Penz fae8ba471b Encapsulate the creation and handling of the directory lister, the model and proxy model to DolphinView. By this it will be easier later to replace the traditional QAbstractItemViews by any kind of other implementation (e.g. based on QGraphicsView/QML).
svn path=/trunk/KDE/kdebase/apps/; revision=1213189
2011-01-09 13:58:35 +00:00
Peter Penz 7e311509a4 Interface cleanup: The DolphinView should not expose QAbstractItemView-specific things like QItemSelectionModel. Just providing interfaces for KFileItem and KUrl will make it easier in future to change the view-implementations internally to QML-specific itemviews or whatever.
svn path=/trunk/KDE/kdebase/apps/; revision=1193113
2010-11-04 17:27:11 +00:00
Dawit Alemayehu 0ad893ae2b Added implementation of the FileInfoExtension to allow KPart plugins to obtain such information
svn path=/trunk/KDE/kdebase/apps/; revision=1191993
2010-11-01 16:56:47 +00:00
Peter Penz 55739979a8 KDirModel takes ownership of the directory lister, so don't delete the directory lister manually.
BUG: 196681

svn path=/trunk/KDE/kdebase/apps/; revision=1176325
2010-09-17 11:24:06 +00:00
David Faure 12f15322b3 Move dolphin's statusbar message-label (the one with support for errors and a close button) to libkonq
so that it can be used in konqueror as well. Fix its sizeHint. Reviewed by Peter Penz.

svn path=/trunk/KDE/kdebase/apps/; revision=1169901
2010-08-30 08:56:19 +00:00
Peter Penz 09e1cc4d77 Context-menu cleanups:
- KNewMenu has been deprecated by KNewFileMenu. Reflect this in the names of related Dolphin classes.
- Provide context-sensitive actions also when a context-menu is opened on the viewport

BUG: 191938
FIXED-IN: 4.6.0

svn path=/trunk/KDE/kdebase/apps/; revision=1168586
2010-08-27 05:26:27 +00:00
Peter Penz a5cf21ff06 Sourcecode hierarchy cleanup: Move further files from src to src/views
svn path=/trunk/KDE/kdebase/apps/; revision=1154150
2010-07-24 22:08:30 +00:00
Peter Penz 652d08c924 Sourcecode hierarchy cleanup: Create folder "views" and move view related sources to it
svn path=/trunk/KDE/kdebase/apps/; revision=1154146
2010-07-24 21:45:49 +00:00
David Faure d8bdb736da Fix another problem with the network:/ ioslave: don't keep the mimetype when clicking on an item with a target_url
svn path=/trunk/KDE/kdebase/apps/; revision=1147967
2010-07-09 13:15:02 +00:00
Peter Penz ea3eb39160 Fix compilation on OpenSolaris with Sun Studio
Thanks to Tropikhajma for the patch!

BUG: 230251

svn path=/trunk/KDE/kdebase/apps/; revision=1103145
2010-03-14 13:18:09 +00:00
Frank Reininghaus af46cf7666 Remove all code that is related to DolphinController's
requestUrlChange signal. This signal was removed in r1080351, so the
code isn't needed any more.

svn path=/trunk/KDE/kdebase/apps/; revision=1095213
2010-02-23 20:34:33 +00:00
David Faure 0837da2d42 Separate the parent object (for the knewfilemenu instance) and the parent widget
(for dialogs it might pop up) so that we can use a non-widget parent.
BUG: 218743

svn path=/trunk/KDE/kdebase/apps/; revision=1087087
2010-02-08 14:27:58 +00:00
David Faure c3584e3101 Implement the --select option in konqueror again, using Peter's nice work in Dolphin.
While at it, I reworked the handling of command-line options in main completely,
to factorize code and make --select do the right thing even in case of multiple args
(wasn't supported in kde3).

svn path=/trunk/KDE/kdebase/apps/; revision=1081246
2010-01-27 23:55:55 +00:00
David Faure ad85be955b Deprecated KNewMenu and make it derive from KNewFileMenu (BIC, but SC; the only way to avoid duplicating code until kde5)
Port all of kdebase' use of KNewMenu to KNewFileMenu.
Also port from KonqNameAndUrlInputDialog to KNameAndUrlInputDialog,
and from KonqMenuActions to KFileItemActions in dolphincontextmenu.cpp

svn path=/trunk/KDE/kdebase/apps/; revision=1080547
2010-01-26 12:04:56 +00:00
Peter Penz bf14f1f47d add version control actions to konqueror context menu if availableolActions()
svn path=/trunk/KDE/kdebase/apps/; revision=1065348
2009-12-23 08:51:33 +00:00
Frank Reininghaus ab39a59520 Restore the "Edit->Selection" menu from Konqueror 3 for file
management. It includes the actions "Select All" and "Select Items
Matching a Pattern".

This feature will be in KDE 4.4.

FEATURE: 197536

svn path=/trunk/KDE/kdebase/apps/; revision=1053976
2009-11-25 08:46:04 +00:00
David Faure f2c315a147 Warn when the unsuspecting user is about to create a directory that starts with a dot,
like Sabine's ".csv test files" folder, which did not appear in the directory view
after being created.


svn path=/trunk/KDE/kdebase/apps/; revision=1051124
2009-11-18 22:27:31 +00:00
Frank Reininghaus 487215f0c4 When navigating back/forward in the DolphinPart inside Konqueror, remember
1. the current item,
2. the scroll position of the view, and
3. the expansion state of the details view.

Before 3. can be implemented in Dolphin itself, some changes in
KUrlNavigator are required.

This fix will be in KDE 4.4.

BUG: 193549
BUG: 198073
BUG: 213137

svn path=/trunk/KDE/kdebase/apps/; revision=1049164
2009-11-14 15:51:47 +00:00
David Faure 5c4b82b8da Cheat a bit with the root item: give it the view URL, rather than the dirlister url
(e.g. because KDirLister now resolves symlinks)
CCBUG: 213799

svn path=/trunk/KDE/kdebase/apps/; revision=1048853
2009-11-14 01:51:08 +00:00
David Faure 7b42d2d6cb Fix RMB/paste on a subfolder (konq calls pasteTo(KUrl), as documented in BrowserExtension)
svn path=/trunk/KDE/kdebase/apps/; revision=1047090
2009-11-10 13:15:08 +00:00
David Faure 46e1d85f96 While reading this code, I noted that it didn't use KFileItemListProperties and was broken in the tree-view case -> fixed and simplified.
svn path=/trunk/KDE/kdebase/apps/; revision=1046935
2009-11-10 00:07:36 +00:00
David Faure 3a07a3e378 The redirection from zip to file wasn't appearing in konqueror because zip:/tmp/ != zip:/tmp
-> do comparison without trailing slash.
BUG: 207572

svn path=/trunk/KDE/kdebase/apps/; revision=1026289
2009-09-21 11:09:24 +00:00
Peter Penz 41c14c5f8e I wanted to this for KDE 4.1 already, but well...
Columview refactoring: Get rid of "isColumnView()" special cases in DolphinView and the interface code duplications due to delegating non-QAbstractItemView interfaces to the column view. This reduces the code size + complexity a lot and will make future maintainance of the columnview and DolphinView a lot easier.

Currently there are some regressions in the column view, but this will be fixed during the next 14 days.

svn path=/trunk/KDE/kdebase/apps/; revision=1016776
2009-08-28 21:04:15 +00:00
Peter Penz a70be712fd Allow the revision control plugins to indicate information-, error- and operation-completed messages.
svn path=/trunk/KDE/kdebase/apps/; revision=1004346
2009-07-29 21:56:37 +00:00
David Faure 2df2d4ea7e Same change as in r995015, but for usage in konq: Don't connect to KDirLister::itemDeleted(const KFileItem&), but KDirLister::itemsDeleted(const KFileItemList&).
svn path=/trunk/KDE/kdebase/apps/; revision=995123
2009-07-12 01:00:14 +00:00
David Faure 9b80bddc7b We don't know the mimetype here, so better not set it at all, konq will determine it.
Better than setting inode/directory for everything due to the wrong S_IFDIR.
Fixes "foo is a file but a dir was expected" error when doing MMB on a file.

svn path=/trunk/KDE/kdebase/apps/; revision=950518
2009-04-07 12:45:02 +00:00
David Faure 402a17bf1f KonqFileItemCapabilities -> KFileItemListProperties
svn path=/trunk/KDE/kdebase/apps/; revision=948007
2009-04-01 23:34:33 +00:00
Peter Penz 66ef40ec88 Use KNewMenu::createDirectory() instead of KonqOperations::newDir() when F10 has been pressed, so that the directory gets automatically selected afterwards.
CCMAIL: rahman.duran@gmail.com

svn path=/trunk/KDE/kdebase/apps/; revision=945037
2009-03-26 18:44:36 +00:00
Rahman Duran bd2f7179de BUG: 175658
GUI:

The remote encoding code adapted from Konqueror to Dolphin. Now user can change
encoding for remote urls like ftp. Konqueror doesn't use
KRemoteEncodingPlugin anymore. Instead, this feature is supplied to
Konqueror via DolphinPart.

svn path=/trunk/KDE/kdebase/apps/; revision=944659
2009-03-25 22:00:50 +00:00
Peter Penz 18f99bf84e - Write the settings to the disk as soon as "Apply" or "OK" has been pressed inside a settings dialog.
- Assure that the settings are saved in the DolphinPart destructor for settings that are changed outside the settings dialog (e. g. by using Ctrl + mouse wheel for adjusting the icon size).

Thanks to Frank Reininghaus and David Faure for the analyses.

CCBUG: 175085

svn path=/trunk/KDE/kdebase/apps/; revision=942194
2009-03-21 11:49:10 +00:00
Peter Penz 396cb90a73 Assure that KNewMenu from DolphinPart attachs itself to the DolphinNewMenuObserver, so that newly created items get selected (DolphinNewMenu - which attachs itself automatically - cannot be used in DolphinPart).
CCMAIL: rahman.duran@gmail.com

svn path=/trunk/KDE/kdebase/apps/; revision=940628
2009-03-17 20:55:26 +00:00
Christian Ehrlicher af49caa18e a lot of more KUrl::path() -> KUrl::toLocalFile() changes (mostly after a check for KUrl::isLocalFile())
svn path=/trunk/KDE/kdebase/apps/; revision=939835
2009-03-15 20:20:33 +00:00
Frank Reininghaus e8db076135 Call updatePasteAction() in DolphinPart::openUrl(). Fixes the problem that the paste action is disabled in Konqueror on startup.
BUG: 186482

svn path=/trunk/KDE/kdebase/apps/; revision=937598
2009-03-10 00:56:38 +00:00
David Faure e989c0e239 Implement TODO - show the action "expandable folders" in the RMB popup over detailed listview.
svn path=/trunk/KDE/kdebase/apps/; revision=927297
2009-02-17 10:57:23 +00:00
Peter Penz 2f47863c68 - allow the view implementations to attach custom actions to the context menu
- let the "details view" show the "[x] Expandable Folders" action in the context menu

CCMAIL: faure@kde.org

svn path=/trunk/KDE/kdebase/apps/; revision=924867
2009-02-11 20:45:12 +00:00
David Faure 591fde8f4a Don't crash if parentWidget is 0 (even though I don't recommend setting it to 0, the dirlister mainwindow won't be set if you reparent the widget later on)
BUG: 161681

svn path=/trunk/KDE/kdebase/apps/; revision=916972
2009-01-26 15:45:39 +00:00
Simon Paul St James 9aa43f8bae Update the KPart host's status bar info when selection changes.
svn path=/trunk/KDE/kdebase/apps/; revision=913713
2009-01-19 19:11:38 +00:00
David Faure 9e6b85cd6e Remove useless code, replaced with slotRedirection.
svn path=/trunk/KDE/kdebase/apps/; revision=912124
2009-01-16 18:47:40 +00:00
David Faure f56446a61a Repair redirections in DolphinPart, it used to notify of redirections by connecting to urlChanged,
but iirc there were recent changes which make dolphinview emit redirection instead of urlChanged in that case
Makes me wonder if urlChanged is still useful for anything?
CCMAIL: peter.penz@gmx.at

svn path=/trunk/KDE/kdebase/apps/; revision=911974
2009-01-16 13:21:33 +00:00
David Faure 76fa5aec6b Konq popupmenu fix: we don't show the "Create new" submenu over subdirs in an iconview because you wouldn't see the just-created file/dir,
but let's show it in the case of the hiearchical details view ("folders expandable" option), since you can indeed see the new file/dir in that case. Peter: problem solved with itemsExpandable().
CCMAIL: peter.penz@gmx.at

svn path=/trunk/KDE/kdebase/apps/; revision=871109
2008-10-13 21:54:03 +00:00
Peter Penz 224f471a9f update the statusbar and provide a progress information within the Dolphin KPart, so that Konqueror shows the same information as Dolphin (thanks to Simon St James for the patch!)
CCMAIL: faure@kde.org

svn path=/trunk/KDE/kdebase/apps/; revision=868210
2008-10-05 18:11:46 +00:00
Peter Penz 17dca27e61 use the global setting for the "Show Delete" command
CCMAIL: kde@randomguy3.me.uk

svn path=/trunk/KDE/kdebase/apps/; revision=843787
2008-08-07 21:44:35 +00:00
David Faure b5e97174d0 Code factorization: move "properties" action and slot to DolphinViewActionHandler.
svn path=/trunk/KDE/kdebase/apps/; revision=831148
2008-07-11 23:06:07 +00:00
Peter Penz b5de4d8ffb Don't disable the "Properties" action when no file is selected, just use the current folder as source. TODO: the code in DolphinPart::slotProperties() and DolphinMainWindow::properties() is quite similar -> move to DolphinViewActionHandler?
CCMAIL: faure@kde.org
BUG: 165311

svn path=/trunk/KDE/kdebase/apps/; revision=825846
2008-06-29 13:54:52 +00:00
Peter Penz 5b541d04e5 SVN_SILENT: removed unnecessary includes
svn path=/trunk/KDE/kdebase/apps/; revision=821923
2008-06-18 19:52:15 +00:00
David Faure 162436801d Argh my last patch broke plugins. So revert 818988 and do it properly, for real this time :)
KPluginFactory can take the catalog name as second argument, this is the best fix.
CCMAIL: Chusslove Illich <caslav.ilic@gmx.net>

svn path=/trunk/KDE/kdebase/apps/; revision=818989
2008-06-10 09:15:19 +00:00