Commit graph

277 commits

Author SHA1 Message Date
Lukáš Tinkl 1b4572dac9 port Dolphin from KUrl to QUrl
REVIEW: 120688
2014-10-21 21:19:14 +02:00
Montel Laurent 0a6257bce3 Fix includes 2014-10-18 15:00:17 +02:00
Montel Laurent 31a0c4fbd5 Fix includes 2014-10-18 14:42:41 +02:00
Montel Laurent 6f6b1bbb69 Clean includes + port to QMenu 2014-10-10 23:36:36 +02:00
Montel Laurent 5c1420fec9 kdelibs4support-- 2014-10-07 07:38:16 +02:00
Emmanuel Pescosta 6a09781a3b Ported Dolphin away from KStandardDirs
removed unused mirroredDirectory method

REVIEW: 120194
2014-10-01 12:34:49 +02:00
Kai Uwe Broulik 42153e55e6 Add "Open Path" context menu action
This adds a third option to the "in new tab" and "in new window" which opens
the parent folder in the same view

BUG: 298704
FIXED-IN: 4.15
REVIEW: 110133
2014-09-09 15:31:55 +02:00
David Faure e44ddfa5ab Remove KonqOperations::emptyTrash() and port to KIO::emptyTrash() instead. 2014-08-21 22:01:23 +02:00
David Faure 5a6ac1b5f7 Port from KonqOperations::restoreTrashedItems to KIO::restoreFromTrash. 2014-08-19 22:31:50 +02:00
David Faure 3e5ff13f92 Port from KonqMimeData to KIO::isClipboardDataCut/setClipboardDataCut 2014-08-13 18:27:09 +02:00
Christophe Giboudeaux a769261131 Remove the automoc noise 2014-06-29 10:36:32 +02:00
Frank Reininghaus 6bccf73e92 Merge remote-tracking branch 'origin/master' into frameworks
Conflicts:
	dolphin/src/dolphincontextmenu.cpp
	dolphin/src/panels/folders/treeviewcontextmenu.cpp
2014-06-12 08:51:50 +02:00
Frank Reininghaus 9dc1513f8b Do not crash if QApplication::clipboard()->mimeData() is a null pointer
This removes the remaining unchecked accesses to the clipboard mime
data after commit 7828b057da. According
to a bug report, it can be a null pointer on Wayland.

BUG: 335053
REVIEW: 118649
2014-06-12 08:37:11 +02:00
Alex Richardson 8611c990f0 KIcon -> QIcon and KMimeType::iconNameForUrl() -> KIO::iconNameForUrl() 2014-05-05 23:05:34 +02:00
Alex Richardson 00ee5d6727 dolphin: convert the remaining code to Qt5 signal/slot syntax
Middle clicking on Forward/Backward/Home/etc. will no longer open a new
tab since the QAction triggered signal no longer tell us which mouse
button was pressed
2014-05-05 23:05:34 +02:00
Alex Richardson 2f045c6010 Allow compiling Dolphin with KF5
This does not work properly yet, there are probably quite a few bad signal/
slot connections due to KUrl -> QUrl. However dolphin starts without
crashing.

Accessibility is not ported since that changed quite a lot from Qt4 -> Qt5
and I have no idea how it is supposed to be used.

This is the first commit for review 117395
2014-05-05 23:05:13 +02:00
Frank Reininghaus 32264f5546 Make the "Create New..." menu in the "item context menu" work again
Since https://git.reviewboard.kde.org/r/111989/, the "Create New..."
menu in the context menu that appears when right-clicking a folder was
not a child of the DolphinMainWindow any more, but of the context menu
itself. This is the reason why the dialog that asks for a file name
when choosing one of the "Create New..." options disappeared
immediately.

This patch makes sure that the main window is the parent of the
"Create New..." menu again.

BUG: 327783
REVIEW: 113930
2013-11-21 00:41:33 +01:00
Emmanuel Pescosta a4ef4bbfde Replaced all KNewFileMenu usages in DolphinPart by DolphinNewFileMenu.
Removed all signal-slot-connections related to DolphinNewFileMenu->errorMessage(QString)
in DolphinMainWindow and DolphinContextMenu and replaced it by a better solution.

Now we make use of the already existing DolphinNewFileMenuObserver singleton class to achieve a better
error handling, because every newly created DolphinContextMenu instance registers himself by DolphinNewFileMenuObserver
and we use this to connect the errorMessage(QString) signal of every DolphinContextMenu instance to the errorMessage(QString)
signal of the DolphinNewFileMenuObserver singleton class.

So we need only one connection from DolphinNewFileMenuObserver to DolphinMainWindow (or to DolphinPart) to
collect all error messages thrown by every DolphinNewFileMenu instance.

REVIEW: 112178
2013-08-28 18:46:45 +02:00
Emmanuel Pescosta 804e83f893 Cut the ropes between DolphinMainWindow and DolphinNewFileMenu. Error handling is now done via signals.
REVIEW: 111989
2013-08-16 20:22:33 +02:00
Dawit Alemayehu d72f5d2db7 Do not show "Move To Trash" action in context menu for remote URLs.
BUG: 261762
REVIEW: 111206
FIXED-IN: 4.11
2013-06-24 22:41:53 -04:00
Sune Vuorela 7a7cfa6add Revert "Hide context menu plugins unless enabled by default or by the user"
This reverts commit b1aebb44d6.

As agreed with Frank on k-c-d.
2013-06-21 10:37:52 +02:00
Emmanuel Pescosta 616294bc80 Bug 196035 - middle clicking on archive files in dolphin does not open them in a new tab
When 'browse through archives' is enabled, open archive files
like folders on middle clicking, context menu -> new tab action
and context menu -> new window action.

BUG: 196035
REVIEW: 110487
2013-06-04 15:27:45 +02:00
Frank Reininghaus ae415dcebd Hide context menu plugins unless enabled by default or by the user
REVIEW: 110685
2013-05-29 07:48:11 +02:00
Emmanuel Pescosta 45c659b440 Added the "Open in new Tabs" action to the Dolphin Context menu.
BUG: 312296
REVIEW: 110371
FIXED-IN: 4.11.0
2013-05-22 21:47:14 +02:00
Dawit Alemayehu 01761798a9 - Factored out the Delete/Move To Trash action into own class.
- Updated both the Dolphin KPart and context menu to use the new
  DolphinRemoveAction class to manage "Delete/Move to Trash" actions.

See also https://git.reviewboard.kde.org/r/107509/.

REVIEW: 108802
2013-05-14 08:37:21 -04:00
David Faure 57e65aab7f Reimplement handling of Shift while showing menu without KModifierKeyInfo
Finding out whether shift is pressed initially can be done
with qApp->keyboardModifiers(), and finding out that the user is pressing
or release shift can be done with keyPressEvent/keyReleaseEvent.

This required to inherit from KMenu rather than having the KMenu
as a member.

KModifierKeyInfo is only implemented on X11, so this makes the code
more portable. If similar solutions can be found for other users of
KModifierKeyInfo, it will be deprecated in KF5.

REVIEW: 110303
2013-05-05 22:42:49 +02:00
Frank Reininghaus d1963d2271 Use the right name when adding a folder to Places with the context menu
Without this patch, the name of the parent folder was used for the entry
in the Places Panel. Will backport to the KDE/4.9 branch when the RC2
freeze is over.

Thanks to Daniel Kreuter for the patch!

CCBUG: 303157
2012-07-10 08:23:14 +02:00
Peter Penz a2674f5184 Provide a default name when adding a search query to the places panel
BUG: 300430
FIXED-IN: 4.9.0
2012-06-02 15:47:17 +02:00
Peter Penz 12215d6f0f Use PlacesItemModel instead of KFilePlacesModel
This allows inserting items to the corresponding group.
2012-06-02 15:03:22 +02:00
Peter Penz 203449110e Get rid of obsolete DolphinPlacesModel 2012-05-29 13:14:12 +02:00
Peter Penz b319c59b8d Allow moving items to trash also for non-local files
See bug 188032 for an ongoing discussion. In case if this behavior
is really not wanted by users (the feedback on bugs.kde.org will
show), the review-request
https://git.reviewboard.kde.org/r/104915/ should be merged too
(after adjusting some parts of the code).
2012-05-11 16:26:34 +02:00
Peter Penz a0115f912a Fix issue when deleting items with the context menu
Thanks to Jekyll Wu for the analyses of the issue!

BUG: 290307
BUG: 269096
BUG: 290954
BUG: 264583
FIXED-IN: 4.8.0
2012-01-14 20:06:05 +01:00
Peter Penz 3c77ffe832 Delete obsolete class DolphinSettings 2011-11-06 11:59:26 +01:00
Peter Penz 6551c000fc Context menu cleanups
- Open the context menu on the mouse-press event, not on the
  mouse-release event.
- Provide an explicit position-information and don't use
  QCursor::pos(). This fixes the issue that opening a context-menu
  by the keyboard opens below the cursor.
- Provide different signals in the KItemListController for
  the different context-menu types (item vs. view vs. header).
- Implement turning on/off roles by the header-context-menu.
2011-10-08 21:43:55 +02:00
Montel Laurent 08d655c2bc normalize signals/slots 2011-07-31 13:33:56 +02:00
Peter Penz f23e9496f3 Merged very early alpha-version of Dolphin 2.0
Dolphin 2.0 will get a new view-engine with the
following improvements:
- Better performance
- Animated transitions
- No clipped filenames due to dynamic item-sizes
- Grouping support for all view-modes
- Non-rectangular selection areas
- Simplified code for better maintenance

More details will be provided in a blog-entry during
the next days.

Please note that the code is in a very
early alpha-stage and although the most tricky parts
have been implemented already very basic things like
drag and drop or selections have not been pushed yet.
Those things are rather trivial to implement but this
still will take some time.
2011-07-30 20:13:41 +02:00
Peter Penz a2d3ac3ec0 Don't ask twice whether the trash should get emptied
Thanks to Casey Jones for the patch!

BUG: 265785
FIXED-IN: 4.7.0
2011-04-26 16:11:50 +02:00
Peter Penz 41d8b21ede DolphinContextMenu: Set the properties action from actionCollection
Patch has been provided by Alex Fiestas at
https://git.reviewboard.kde.org/r/101076/

CCMAIL: alex@eyeos.org
2011-04-10 18:49:55 +02:00
Peter Penz 2dcc433ab2 DolphinContextMenu: Show "Show menubar" entry if necessary
If the user has hidden the menubar and the toolbar there is no way to
get back the menu (at least not without knowing the Ctrl+M shortcut).
Show an entry in the context-menu to bring back the menubar.
2011-03-27 19:29:23 +02:00
Peter Penz 9af429cae1 Provide toolbar-menu when the menubar is hidden
Use a similar default UI like in Rekonq and other browsers: Hide the
menubar and add access to all actions by a button in the toolbar.
Of course it is still possible to show the menubar so that the same UI
is given like before.
2011-03-26 23:26:39 +01:00
Peter Penz 1112fd7cc5 DolphinContextMenu: cleanup includes 2011-02-11 19:33:29 +01:00
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 4a9561e6b7 Fix regression that creating a sub-folder is not possible
CCBUG: 265714
2011-02-09 21:15:55 +01:00
Peter Penz d3496b1231 Coding style update for pointer comparison
Most developers seem to prefer
  if (ptr) ...
  if (!ptr) ...
in comparison to
  if (ptr != 0) ...
  if (ptr == 0) ...

Adjusted the Dolphin-code to use the "most-prefered style" to make contributors happy.
2011-02-09 19:24:27 +01:00
Peter Penz ceba0f6f6a Use capitalized includes of recently committed kdelibs headers 2011-02-09 18:42:04 +01:00
David Faure 3250510ba2 Add support for KAbstractFileItemActionPlugin. Requires kdelibs > 4.6.0.
(cherry picked from commit 4caa285c06)
2011-02-07 13:13:02 +01:00
Peter Penz 956ebf7115 Don't use the submodule-path for Qt-includes on application-level
Also some KDE-includes have been capitalized
2011-02-04 15:49:45 +01:00
Peter Penz 8eb9b508ca Use capitalized KDE includes 2011-02-04 15:43:21 +01:00
Peter Penz a6fee698f6 Move the "Show Menubar" entry from the top to the bottom. For users that have hidden the menubar on purpose having this as first item makes no sense.
BUG: 257089
FIXED-IN: 4.6.0

svn path=/trunk/KDE/kdebase/apps/; revision=1198181
2010-11-17 19:10:23 +00:00
Peter Penz d3eee9120f Don't show the "Show menubar" action for a context-menu above items.
BUG: 257065
FIXED-IN: 4.6.0

svn path=/trunk/KDE/kdebase/apps/; revision=1197828
2010-11-16 17:09:15 +00:00
Peter Penz edd98d7659 - Add support for file item actions (see http://reviewboard.kde.org/r/5659/)
- Internal cleanups of DolphinContextMenu code


svn path=/trunk/KDE/kdebase/apps/; revision=1189651
2010-10-25 13:45:34 +00:00
Peter Penz 39f89141b0 The &-shortcut from another action is not set until the action has been shown at least once. To bypass this issue in the context-menu when pressing SHIFT, the text and &-shortcut is applied manually.
svn path=/trunk/KDE/kdebase/apps/; revision=1185522
2010-10-13 15:25:58 +00:00
Peter Penz 36e89e9fa6 Internal cleanup: Remove public method selectedUrls() from DolphinView to keep the interface minimal (selectedItems() is already available)
svn path=/trunk/KDE/kdebase/apps/; revision=1184457
2010-10-10 11:11:45 +00:00
Peter Penz 53c36c4758 Move the "Add to Places" action upwards when used on the viewport to stay consistent when showing the context-menu above an item.
svn path=/trunk/KDE/kdebase/apps/; revision=1184250
2010-10-09 15:39:41 +00:00
Peter Penz 6c8c052b3f Use the actions "new_tab" and "new_window" for the viewport-contextmenu instead of "open_in_new_tab" and "open_in_new_window", as the current selection should get ignored.
svn path=/trunk/KDE/kdebase/apps/; revision=1183548
2010-10-07 18:25:47 +00:00
Peter Penz 7fcab3c783 Use "Open Path" instead of "Open Parent Folder", as the headline in the search-result is "Path".
svn path=/trunk/KDE/kdebase/apps/; revision=1182754
2010-10-05 14:40:42 +00:00
Peter Penz 7f7bea872b If the context-menu is opened for a file shown as search result, offer the actions "Open Parent Folder in New Window" and "Open Parent Folder in New Tab"
svn path=/trunk/KDE/kdebase/apps/; revision=1178362
2010-09-22 20:24:49 +00:00
Peter Penz 7d7ecaafb1 - Use less separators
- Move "Add to Places" action upwards


svn path=/trunk/KDE/kdebase/apps/; revision=1177960
2010-09-21 19:56:35 +00:00
Peter Penz fcef5f7721 Use K_GLOBAL_STATIC for the previously committed workaround to bypass a X11-issue in combination with KModifierKeyInfo. Thanks to David Faure for the hint.
svn path=/trunk/KDE/kdebase/apps/; revision=1177902
2010-09-21 16:18:20 +00:00
Peter Penz c7e8c4af3d Workaround for a X11-issue in combination with KModifierKeyInfo: When constructing KModifierKeyInfo in the constructor of the context menu, the user interface might freeze. Thanks to Mark Gaiser for clarifying this with the KModifierKeyInfo maintainer and testing the workaround!
CCMAIL: markg85@gmail.com

svn path=/trunk/KDE/kdebase/apps/; revision=1177658
2010-09-20 19:52:40 +00:00
Peter Penz 4822c2cc3b Remove the fixed-size workaround, only one action is used now in this case
svn path=/trunk/KDE/kdebase/apps/; revision=1176537
2010-09-17 22:59:37 +00:00
Peter Penz 23a4868dea - Fix issue, that the 'Move To Trash'-action or 'Delete'-action from the File menu get invisible
- Use KFileItemListProperties to check whether all selected URLs are local
- Coding style cleanups

CCMAIL: markg85@gmail.com

svn path=/trunk/KDE/kdebase/apps/; revision=1176534
2010-09-17 22:23:11 +00:00
Peter Penz 9a55b0d704 There is no need to burden DolphinMainWindow with internals of the context-menu.
CCMAIL: markg85@gmail.com


svn path=/trunk/KDE/kdebase/apps/; revision=1176513
2010-09-17 21:16:56 +00:00
Mark Gaiser 304e9524b6 When you view the context menu of a file/folder and shift is pressed (and the delete action line is not enabled in the settings) then the
"Move to trash (del)" action gets replaced by the "Delete (shift del)" action and replaced back to "Move to trash (del)" when you release 
shift.

BUG: 194275

svn path=/trunk/KDE/kdebase/apps/; revision=1176493
2010-09-17 19:47:01 +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
David Faure d99e541453 remove unused includes (found when grepping for stuff)
svn path=/trunk/KDE/kdebase/apps/; revision=1167264
2010-08-24 08:09:14 +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 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 fb86b50eca SVN_SILENT: renamed addRevisionControlActions() to addVersionControlActions()
svn path=/trunk/KDE/kdebase/apps/; revision=1065346
2009-12-23 08:50:54 +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
Harsh Chouraria J 51dc542497 BUG: 191309
Don't show 'Add to Places' context-menu action for urls already in places.


svn path=/trunk/KDE/kdebase/apps/; revision=1048149
2009-11-12 20:22:22 +00:00
Peter Penz d84909dc36 * Use the term "version control" instead of "revision control" to be consistent with the naming in kdevplatform.
* Renamed VersionControlPlugin to KVersionControlPlugin so that the interface can be moved out of Dolphin.

svn path=/trunk/KDE/kdebase/apps/; revision=1011058
2009-08-13 20:48:58 +00:00
Michael Jansen a48c813fd9 Fix memory leak. QMenu::addAction(QMenu*) does not take ownership.
svn path=/trunk/KDE/kdebase/apps/; revision=1004276
2009-07-29 18:59:06 +00:00
Peter Penz fddd17030c replace list.count() > 0 by !list.isEmpty()
svn path=/trunk/KDE/kdebase/apps/; revision=1001386
2009-07-23 06:14:57 +00:00
Peter Penz 9340a52cf8 also provide revision control actions for the viewport-context-menu
svn path=/trunk/KDE/kdebase/apps/; revision=1001385
2009-07-23 06:10:01 +00:00
Peter Penz a9ef4bd96a show the actions of a revision control plugin in the context menu
svn path=/trunk/KDE/kdebase/apps/; revision=1001270
2009-07-22 19:26:25 +00:00
Peter Penz f034356d74 fixed wrong include usage (reported by krazy)
svn path=/trunk/KDE/kdebase/apps/; revision=973279
2009-05-26 18:41:20 +00:00
David Faure 402a17bf1f KonqFileItemCapabilities -> KFileItemListProperties
svn path=/trunk/KDE/kdebase/apps/; revision=948007
2009-04-01 23:34:33 +00:00
David Faure ba84cf3c69 Port away from now-deprecated KonqPopupMenuInformation
svn path=/trunk/KDE/kdebase/apps/; revision=943384
2009-03-23 19:10:13 +00:00
Shaun Reich 92534adf15 Added "document-properties" icon to "Properties", I added in another menu also, for the same action, but this is a different menu, yet used in the same context.
svn path=/trunk/KDE/kdebase/apps/; revision=938793
2009-03-13 01:07:51 +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 056b6855d3 Fix lack of error handling in RMB/Move To... (e.g. when src is root-owned) because the parent for KonqOperations
was the popupmenu, which gets deleted before the job finishes.

svn path=/trunk/KDE/kdebase/apps/; revision=913576
2009-01-19 14:33:10 +00:00
Peter Penz 307285e963 Group classes into folders, Dolphin is too big in the meantime for having a flat directory hierarchy. dolphin/src/CMakeLists.txt will be cleaned up later.
svn path=/trunk/KDE/kdebase/apps/; revision=911065
2009-01-14 19:26:23 +00:00
Peter Penz db5ee5f2a6 raise() and activateWindow() are not needed in this case
svn path=/trunk/KDE/kdebase/apps/; revision=908812
2009-01-10 14:27:07 +00:00
Peter Penz 85aec92f81 SVN_SILENT: removed trailing spaces
svn path=/trunk/KDE/kdebase/apps/; revision=895978
2008-12-12 06:55:26 +00:00
Peter Penz 2554385bbc disable the 'Create New' entry in the context menu, if the directory does not support writing
svn path=/trunk/KDE/kdebase/apps/; revision=884396
2008-11-14 20:49:58 +00:00
Peter Penz 1743e4b1fa provide a 'Create New' entry for a context menu above a directory
BUG: 169880

svn path=/trunk/KDE/kdebase/apps/; revision=884373
2008-11-14 19:51:13 +00:00
Peter Penz b1aadb8cce If the context menu is opened above a directory, add the actions "Open in New Window" and "Open in New Tab" to the context menu.
Thanks to Mathias Soeken for the patch!

CCMAIL: msoeken@tzi.de

svn path=/trunk/KDE/kdebase/apps/; revision=875711
2008-10-25 10:32:55 +00:00
Peter Penz 41dfbdf3d9 Fixed issue that the "Show Menu Bar" state is not updated correctly (workaround for bug #171080). Patch has been provided by Laurens Vanhove.
svn path=/trunk/KDE/kdebase/apps/; revision=863909
2008-09-23 13:04:46 +00:00
Peter Penz 6f79a7d973 Use a modeless properties dialog instead of a modal one, when opening it above the viewport.
BUG: 168946

svn path=/trunk/KDE/kdebase/apps/; revision=845987
2008-08-12 18:46:35 +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
Peter Penz b8a4e0fac2 Assure that when requesting the context menu for the column-view, that the correct items are used.
TODO for 4.2: get rid of those 'if (isColumnViewActive())' special cases and provide a generic model which also works with the way the column view is implemented

BUG: 164146

svn path=/trunk/KDE/kdebase/apps/; revision=821903
2008-06-18 19:34:03 +00:00
Peter Penz 9b9bccc862 remove KDE 3 relict (the preview action does not exist anymore since about more than 1 year)
svn path=/trunk/KDE/kdebase/apps/; revision=819151
2008-06-10 17:54:52 +00:00
David Faure d6e0d332e1 Use KonqMenuActions to add the "open with" actions to the popupmenu, to avoid this independent reimplementation,
which brought back bug 121728 ('&' in application name treated as accelerator)

svn path=/trunk/KDE/kdebase/apps/; revision=815838
2008-06-02 16:36:29 +00:00
David Faure 927a621f0e Use KonqFileItemCapabilities in KonqPopupMenuInformation instead of the too-basic bool readOnly().
Ported KonqPopupMenu to KonqFileItemCapabilities.

svn path=/trunk/KDE/kdebase/apps/; revision=815688
2008-06-02 14:30:26 +00:00
George Goldberg 0a3a481ee2 Fix the edit-menu action disabling/enabling bug in dolphinpart finally! Also, move FileItemCapabilities from dolphin to KonqFileItemCapabilities at dfaure's request (making it implicitly shared along the way).
BUGS:161594

svn path=/trunk/KDE/kdebase/apps/; revision=815584
2008-06-02 10:07:13 +00:00
David Faure 05062b6346 Argh, I knew I forgot to commit this dir. Sorry about that.
svn path=/trunk/KDE/kdebase/apps/; revision=809960
2008-05-19 19:44:42 +00:00
Andreas Hartmetz 88d5b7b93d This compiles and may or may not work as intended.
CCMAIL: dfaure@kde.org, peter.penz@gmx.at

svn path=/trunk/KDE/kdebase/apps/; revision=809914
2008-05-19 18:35:31 +00:00
Peter Penz 7d0080868b Consider the protocol and directory capabilities for file actions like Move To/Copy To (note that this is just an initial version; adjustments must also be done for the global actions like Delete, Rename etc.)
svn path=/trunk/KDE/kdebase/apps/; revision=798658
2008-04-18 19:43:16 +00:00
Peter Penz 3db73a2d15 Thanks to David Faure the 'Copy To' and 'Move To' menus in the context menu can also be used by Dolphin now :-) In opposite to Konqueror the sub menus are turned off per default.
Minor issue: the Dolphin context menu should take care about the protocol capabilities (copy, move, delete, ...) like in konq_popupmenu (I'll fix this before 4.1).

CCMAIL: faure@kde.org
BUG: 155969

svn path=/trunk/KDE/kdebase/apps/; revision=792995
2008-04-02 19:49:04 +00:00
Malcolm Hunter 762418b05a Typo fixes
svn path=/trunk/KDE/kdebase/apps/; revision=792746
2008-04-01 23:32:40 +00:00
Peter Penz c33b01efb2 Move the pasteIntoFolder() method from the contextmenu into DolphinView. This allows to show the information inside the statusbar, that the paste operation has been completed (also some code duplication can be prevented by the way).
svn path=/trunk/KDE/kdebase/apps/; revision=791436
2008-03-29 14:54:56 +00:00
Peter Penz fc15039860 The paste operation should ignore the current selection to behave similar as Konqueror and other file managers. Only if a context menu for a folder is opened, a pasting should be done into this folder.
Some internal cleanups are still required (see TODO comments), so that after finishing the operation an indication can be given to the user in the statusbar (must go for breakfast now, otherwise I'll eat my keyboard...).

BUG: 159862

svn path=/trunk/KDE/kdebase/apps/; revision=791354
2008-03-29 07:44:03 +00:00
Chusslove Illich 428a5cacce Fix Krazy i18n issues.
svn path=/trunk/KDE/kdebase/apps/; revision=787308
2008-03-18 22:38:52 +00:00
Bill Egert 52025112b0 - Fix some compiler warnings.
- Switched depricated stdName() to name()

svn path=/trunk/KDE/kdebase/apps/; revision=767204
2008-01-27 14:54:38 +00:00
Peter Penz 22fcc2c4c5 don't add a place having an empty name
BUG: 156375

svn path=/trunk/KDE/kdebase/apps/; revision=766406
2008-01-25 19:14:12 +00:00
David Faure 8eed64171c Move (broken) action "Edit/Properties" to dolphinpart and made it work there.
Pass parent widget to all KPropertiesDialog instances.

svn path=/trunk/KDE/kdebase/apps/; revision=752542
2007-12-24 19:07:32 +00:00
Peter Penz 4e43b5465f use different icon for "Add to places" as suggested by David Vignoni
CCMAIL: david@icon-king.com

svn path=/trunk/KDE/kdebase/apps/; revision=747049
2007-12-10 22:00:48 +00:00
Peter Penz 46b52d7ba2 open the context-menu for the viewport if no selection is given although the mouse is above an item (this might happen if the shift-key is pressed during a right-button mouse click)
svn path=/trunk/KDE/kdebase/apps/; revision=738816
2007-11-19 19:58:00 +00:00
Peter Penz 1ce2fb199d allow to show/hide the menubar
BUG: 152463

svn path=/trunk/KDE/kdebase/apps/; revision=738282
2007-11-18 14:37:57 +00:00
Peter Penz 8e1f288d3a don't add 2 separators inside a 3 item-menu...
svn path=/trunk/KDE/kdebase/apps/; revision=737232
2007-11-15 20:41:25 +00:00
Kevin Ottens 6eba08233b Have "Add to Places" in the context menu for the trash too.
svn path=/trunk/KDE/kdebase/apps/; revision=733548
2007-11-06 17:09:00 +00:00
Jakob Petsovits 51f8171071 Icon naming spec compliance (code changes):
bookmark-folder -> folder-bookmarks
goto-page -> go-jump
www -> insert-link (doesn't yet exist in Oxygen)

svn path=/trunk/KDE/kdebase/apps/; revision=730639
2007-10-29 08:35:29 +00:00
Oswald Buddenhagen 6339218179 KConfig* API overhaul. only cosmetics, so don't panic.
KConfigBase:
- remove separator argument from list entry reading/writing functions
- introduce {read,write}XdgListEntry()
- kill readPathListEntry(), add readPathEntry() overload
  instead. the default value is not optional any more, as it defines the
  return type. this is consistent with the readEntry() functions.
- rename clean() => markAsClean(), remove rollback()
- rename ConfigState => AccessMode, getConfigState() => accessMode()
- rename {entry,group}IsImmutable() => is{Entry,Group}Immutable()
- remove NLS alias to Localized

KConfig:
- remove setGroup() & group()
- reshuffle OpenFlag enum, introduce NoCascade for symmetry
- remove setExtraConfigFiles() alias to addConfigSources()

KConfigGroup:
- inherit KConfigBase::deleteGroup() overloads
- make convertToQVariant() private, it will probably change somehow

- KConfig & KConfigGroup: deprecate entryMap()
- remove bogus declarations: KConfigGroup::setReadDefaults(),
  KConfig::readEntryUntranslated()
- apidox
- reshuffle the declarations in the headers


svn path=/trunk/KDE/kdebase/apps/; revision=728852
2007-10-24 13:08:37 +00:00
Pino Toscano d05e966ef4 icon renamings:
- emptytrash -> trash-empty
- edit-trash -> user-trash

svn path=/trunk/KDE/kdebase/apps/; revision=728161
2007-10-22 15:58:52 +00:00
Peter Penz a23a882c68 use KGlobal::config() instead of parsing kdeglobals each time (thanks to David for the hint!)
svn path=/trunk/KDE/kdebase/apps/; revision=725485
2007-10-15 14:34:12 +00:00
Peter Penz 95042476f6 Fixed issue that the "Show 'Delete' command in context menu" setting is not remembered anymore.
CCMAIL: ereslibre@kde.org
BUG: 150783

svn path=/trunk/KDE/kdebase/apps/; revision=724942
2007-10-13 22:00:56 +00:00
David Faure b5eca6dc2a Extracted the servicemenu code from KonqPopupMenu into KonqMenuActions, and used it from both KonqPopupMenu and DolphinContextMenu.
This isn't the port-to-ktrader yet, this will come later, but at least the code is factorized and the impl can be changed without affecting the dolphin+konqpopupmenu code
Should I also implement the "Open With..." actions in KonqMenuActions? Seems like another bit of similar code duplicated.
CCMAIL: peter.penz@gmx.at, aseigo@kde.org

Removed KonqBookmarkManager (was a two-liner call to KBookmarkManager)

svn path=/trunk/KDE/kdebase/apps/; revision=722668
2007-10-07 21:12:46 +00:00
David Faure ce3ec0d0e6 Fix crash in dolphinpart when doing RMB on viewport.
Clean up unnecessary use of Q3ValueList.

svn path=/trunk/KDE/kdebase/apps/; revision=714532
2007-09-19 20:33:28 +00:00
Peter Penz 33ddc0e791 don't use the term "Bookmarks" anymore, use "Places" instead (includes devices etc.)
svn path=/trunk/KDE/kdebase/apps/; revision=704553
2007-08-25 10:42:10 +00:00
Peter Penz 91a6cb80fd Readded correct Q_ASSERT(m_fileInfo.isNull()) (the previous Q_ASSERT(!m_fileInfo.isNull()) accidentally has been added due to the 'use KFileItem by value instead of pointer' change...)
svn path=/trunk/KDE/kdebase/apps/; revision=700651
2007-08-16 05:22:39 +00:00
Gabriel Anderson e0138a6d7c Removed a bad Q_ASSERT
svn path=/trunk/KDE/kdebase/apps/; revision=700585
2007-08-15 22:29:19 +00:00
David Faure 81fcd720a2 Use KFileItem by value rather than by pointer
- in KDirModel::itemForIndex, as noted there as a TODO
 - in dolphin, everywhere.

svn path=/trunk/KDE/kdebase/apps/; revision=699691
2007-08-13 21:57:20 +00:00
Peter Penz 3cff59a75c removed "Toggle Views" context menu action (not required anymore as only the inactive view gets closed now)
svn path=/trunk/KDE/kdebase/apps/; revision=699313
2007-08-12 17:50:42 +00:00
Peter Penz 50d9e030e7 KUIT adaptions
svn path=/trunk/KDE/kdebase/apps/; revision=685763
2007-07-09 17:51:39 +00:00
Peter Penz cd780167c3 minor coding style cleanups
svn path=/trunk/KDE/kdebase/apps/; revision=678172
2007-06-20 20:44:18 +00:00
Peter Penz 6f5f07d391 * allow to toggle the content of split views by the context menu
* minor cleanups in DolphinMainWindow

svn path=/trunk/KDE/kdebase/apps/; revision=674713
2007-06-12 21:45:22 +00:00
Peter Penz be9746e87b First big step to make it possible that the DolphinView can be embedded as KPart into Konqueror (discussed with David Faure). A lot of refactoring of the DolphinView has been done:
- The DolphinView does not contain the URL navigator, the filterbar and the statusbar anymore. Those widgets have been moved to DolphinViewContainer.
- The DolphinView does not contain any reference to the main window anymore.

Currently there are some minor regressions (the statusbar shows less informations, renaming has been deactivated), but they will get fixed during the next days. Also still a lot of interface cleanups must be done, but let's just do it step by step...

svn path=/trunk/KDE/kdebase/apps/; revision=672692
2007-06-07 21:10:48 +00:00
Peter Penz da795d20e2 create modal dialogs on stack as David suggested
svn path=/trunk/KDE/kdebase/apps/; revision=668900
2007-05-28 04:32:57 +00:00
Peter Penz 9801eddcdc reanimate properties dialog (thanks to Laurent Montel for fixing it in the tree view!)
svn path=/trunk/KDE/kdebase/apps/; revision=668453
2007-05-26 13:33:36 +00:00
Dirk Mueller a333c0d744 include cleanup
svn path=/trunk/KDE/kdebase/apps/; revision=663054
2007-05-09 22:23:52 +00:00
Peter Penz cdcb4b0166 coding style cleanup: fix wrong indenting of members in constructor
svn path=/trunk/KDE/kdebase/apps/; revision=661819
2007-05-06 17:41:49 +00:00
Peter Penz 2060fa8d46 show column mode in viewport context menu (thanks to Thomas Georgiou for the patch)
svn path=/trunk/KDE/kdebase/apps/; revision=654709
2007-04-16 20:01:19 +00:00
Funda Wang a1846f25c2 Emtpy -> Empty. typo fix.
svn path=/trunk/KDE/kdebase/apps/; revision=652867
2007-04-12 05:56:03 +00:00
Peter Penz c8a4f1fd8d adapt Dolphin to kdelibs coding style (http://techbase.kde.org/Policies/Kdelibs_Coding_Style) by using:
astyle --indent=spaces=4 --brackets=linux \
       --indent-labels --pad=oper --unpad=paren \
       --one-line=keep-statements --convert-tabs \
       --indent-preprocessor \
       `find -type f -name '*.cpp'` `find -type f -name '*.h'`

svn path=/trunk/KDE/kdebase/apps/; revision=651981
2007-04-09 19:12:54 +00:00
Kevin Ottens 30161a7b3f Dolphin is now KBookmark* free.
svn path=/trunk/KDE/kdebase/apps/; revision=651766
2007-04-09 09:16:39 +00:00
Stephan Binner c209c33cdd i18n style guide fixes
svn path=/trunk/KDE/kdebase/apps/; revision=650575
2007-04-04 21:11:21 +00:00
David Faure cae12eb221 More use of KIcon
svn path=/trunk/KDE/kdebase/apps/; revision=647247
2007-03-27 19:44:43 +00:00
David Faure 623c19e042 Added setters in urlnavigator to remove dependency on dolphinsettings.
Removed old unused kfileiconview.h header, fixed some unrelated missing includes due to that one being removed.

svn path=/trunk/KDE/kdebase/apps/; revision=647244
2007-03-27 19:38:32 +00:00
David Faure 2d9dfdf3b3 KDEDesktopMimeType -> KDesktopFileActions
svn path=/trunk/KDE/kdebase/libkonq/; revision=646598
2007-03-26 08:24:06 +00:00
Peter Penz 8f9baef848 Patch by Luca Gugelmann: get rid of any mainwindow dependency from the sidebars.
svn path=/trunk/KDE/kdebase/apps/; revision=646256
2007-03-25 06:44:28 +00:00
Peter Penz bf1f504039 use correct icons
svn path=/trunk/KDE/kdebase/apps/; revision=645273
2007-03-22 06:18:20 +00:00
Peter Penz 1ad1a5cb18 last commit for this day: I think I was quite tired when I wrote the code...
svn path=/trunk/KDE/kdebase/apps/; revision=643925
2007-03-18 20:04:07 +00:00
Peter Penz c636d3e0ed assigning the rename-action might make sense ;-)
svn path=/trunk/KDE/kdebase/apps/; revision=643921
2007-03-18 19:58:58 +00:00
Peter Penz 6bd958c1d7 implemented cut, copy & paste for sidebar context
svn path=/trunk/KDE/kdebase/apps/; revision=643578
2007-03-17 21:10:50 +00:00
Peter Penz acfccceb91 respect context for 'Move To Trash' and 'Delete' action
svn path=/trunk/KDE/kdebase/apps/; revision=643575
2007-03-17 20:49:17 +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 9ed13b31b4 Let's keep it simple: only offer a basic context menu for the treeview sidebar.
svn path=/trunk/KDE/kdebase/apps/; revision=642982
2007-03-16 00:24:56 +00:00
Peter Penz 1cdb64a12b Don't force the context menu to be valid only for DolphinView instances, make it possible to have it also inside the treeview sidebar.
svn path=/trunk/KDE/kdebase/apps/; revision=642953
2007-03-15 22:42:21 +00:00