Commit graph

705 commits

Author SHA1 Message Date
Peter Penz
369eb4117d Disable the filter-dock if Nepomuk is not active.
svn path=/trunk/KDE/kdebase/apps/; revision=1193611
2010-11-06 14:33:23 +00:00
Peter Penz
d83a4ce51d Rename the setter showFilterBar() to setFilterBarVisible().
svn path=/trunk/KDE/kdebase/apps/; revision=1193348
2010-11-05 17:12:35 +00:00
Peter Penz
55a1c26c24 SVN_SILENT: fix typo
svn path=/trunk/KDE/kdebase/apps/; revision=1193345
2010-11-05 17:03:29 +00:00
Peter Penz
da1adf7ba4 If the user has changed the startup settings, they should also get applied to the current views.
BUG: 254947
FIXED-IN: 4.6.0

svn path=/trunk/KDE/kdebase/apps/; revision=1193344
2010-11-05 17:02:58 +00:00
Peter Penz
454a0a6539 Fix build-issue if Nepomuk is not available.
svn path=/trunk/KDE/kdebase/apps/; revision=1191041
2010-10-29 13:41:26 +00:00
Peter Penz
8a7591e20b Postpone the initialization of the filter-panel until it is shown. This prevents overhead if the filter-panel is disabled.
svn path=/trunk/KDE/kdebase/apps/; revision=1190460
2010-10-27 18:31:39 +00:00
Peter Penz
d9141a2ade Move "Filter"-action to the bottom and apply icon + shortcut
svn path=/trunk/KDE/kdebase/apps/; revision=1190446
2010-10-27 17:17:20 +00:00
Peter Penz
4383f4238e - Automatically show the filter-panel when a searching is done
- Remove filter-prototypes that conflict with the filterpanel


svn path=/trunk/KDE/kdebase/apps/; revision=1190445
2010-10-27 17:08:02 +00:00
Kevin Ottens
e521e260b6 showMenuBar is deprecated, use showHideMenuBar instead.
svn path=/trunk/KDE/kdebase/apps/; revision=1190390
2010-10-27 14:26:05 +00:00
Peter Penz
90d6867a5e Rename FacetPanel to FilterPanel so that the name reflects the headline.
svn path=/trunk/KDE/kdebase/apps/; revision=1190370
2010-10-27 13:35:24 +00:00
Peter Penz
6e34ec835d Fix build issues if Nepomuk is not available
svn path=/trunk/KDE/kdebase/apps/; revision=1190010
2010-10-26 16:01:43 +00:00
Peter Penz
537ad8a891 Apply the facets-patch written by Sebastian Trüg, which allows to filter search results in a very comfortable way. A lot of finetuning is necessary (e.g. the custom filter-prototypes from Dolphin will get removed etc). This will be done during the next weeks.
svn path=/trunk/KDE/kdebase/apps/; revision=1189951
2010-10-26 13:11:37 +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
Andreas Hartmetz
c40a3a1ee6 compile in debug mode (asserts enabled)
svn path=/trunk/KDE/kdebase/apps/; revision=1184511
2010-10-10 16:13:25 +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
a83876c44f Implement the actions "Open in New Window" and "Open in New Tab" for the case if no item is selected.
svn path=/trunk/KDE/kdebase/apps/; revision=1183222
2010-10-06 15:04:37 +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
5bb2a0f3c9 Unbelievable: I simply forgot to implement the Stop-action in Dolphin since KDE SC 4.0. Well better later than never: Done now :-)
BUG: 233836

svn path=/trunk/KDE/kdebase/apps/; revision=1178344
2010-09-22 19:39:46 +00:00
Peter Penz
bf8f150507 - DolphinViewContainer::url() returns an instance, not a reference
- GeneralSettings::homeUrl() returns a QString instance, not a KUrl reference

svn path=/trunk/KDE/kdebase/apps/; revision=1177958
2010-09-21 19:38:26 +00:00
Peter Penz
53dbea61bc Update the title of the tab when closing the second view in the split-mode. Thanks to
Enrique Alonso for analysing the root-cause! 

CCMAIL: enrique_alonso@igluk.com

svn path=/trunk/KDE/kdebase/apps/; revision=1177952
2010-09-21 19:30:26 +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
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
02c02a05c1 Show location in window title for non-local URLs. Thanks to Mark Gaiser for the patch and David Faure for the review on http://reviewboard.kde.org/r/5178.
BUG: 244512
FIXED-IN: 4.6.0

svn path=/trunk/KDE/kdebase/apps/; revision=1176395
2010-09-17 14:42:57 +00:00
Peter Penz
1dfb2f385a Remove custom handling of wheel-events for tabs, this is done now in KTabBar
CCBUG: 248962


svn path=/trunk/KDE/kdebase/apps/; revision=1171577
2010-09-04 13:56:16 +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
49eb864b03 Unify the search interface for non-indexed and indexed folders
svn path=/trunk/KDE/kdebase/apps/; revision=1154073
2010-07-24 16:37:07 +00:00
Peter Penz
42ba5dfd4b Forward port of SVN commit 1147596: Skip redirection URLs when going back or forward in history (otherwise going
back won't be possible for the user, as a redirection will occur again).

CCBUG: 212293

svn path=/trunk/KDE/kdebase/apps/; revision=1147597
2010-07-08 19:46:56 +00:00
Peter Penz
38760a3010 Hide the information panel by default
svn path=/trunk/KDE/kdebase/apps/; revision=1138819
2010-06-16 21:13:41 +00:00
Alexander Potashev
d51e3bc2f0 Fix i18n context info: "@action:inmenu File" -> "... View"
svn path=/trunk/KDE/kdebase/apps/; revision=1131720
2010-05-28 20:12:33 +00:00
Ignat Semenov
a56b52dc4d Remove separator
svn path=/trunk/KDE/kdebase/apps/; revision=1130874
2010-05-26 17:03:06 +00:00
Peter Penz
d33b0066fa Update the edit actions when starting Dolphin, to assure that the state "no_selection" gets triggered
svn path=/trunk/KDE/kdebase/apps/; revision=1130573
2010-05-25 17:59:00 +00:00
Pino Toscano
bd7b4faa4a terminalAction is defined only on non-windows systems
svn path=/trunk/KDE/kdebase/apps/; revision=1124310
2010-05-08 19:49:20 +00:00
Peter Penz
a77b176d32 Use the dock widgets actions directly, as they are capable of showing the toggle state. Drawback: The actions cannot be added directly to the toolbar, but as the group "Panels" can be added instead, this should be no issue.
svn path=/trunk/KDE/kdebase/apps/; revision=1122363
2010-05-03 17:46:34 +00:00
Peter Penz
23f31b60b0 Allow to add menu groups like "View Mode", "Sort By"... to be added as toolbar item (see http://reviewboard.kde.org/r/3862).
Thanks to Todd for the patch!

CCMAIL: toddrme2178@gmail.com

svn path=/trunk/KDE/kdebase/apps/; revision=1122320
2010-05-03 15:40:24 +00:00
Peter Penz
b28bec6710 Always apply the editable state of the current URL navigator to the URL navigator of the new tab (not only if the current URL navigator is editable)
svn path=/trunk/KDE/kdebase/apps/; revision=1106928
2010-03-24 08:06:34 +00:00
Peter Penz
eaa27ac4b4 Assure that when opening a new tab, that the URL navigator of the new tab has the same editable state as the current tab
Thanks to Vishesh Handa for the patch!

svn path=/trunk/KDE/kdebase/apps/; revision=1106757
2010-03-23 21:29:58 +00:00
Peter Penz
7d74e2b70d Use the default keyboard shortcuts for next-tab/previous-tab as primary key, but use the commonly used shortcuts Ctrl+Tab/Ctrl+Shift+Tab as secondary keys.
Of course it is still possible that the user defines custom shortcuts.

BUG: 231541

svn path=/trunk/KDE/kdebase/apps/; revision=1106406
2010-03-22 18:48:12 +00:00
Sebastian Trueg
fa24cc8e11 Stat URLs before opening them to make sure they are actually dirs we can list. Otherwise use KRun.
svn path=/trunk/KDE/kdebase/apps/; revision=1103520
2010-03-15 09:55:51 +00:00
Peter Penz
0c71d25a6f Allow to drop files above a tab. Thanks to Todd for the patch.
svn path=/trunk/KDE/kdebase/apps/; revision=1094746
2010-02-23 07:26:02 +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
11e1ee53bb Now *really' open a new tab if the URL navigator requests it... (the previous commit missed this 2 quite important lines).
CCBUG: 181223

svn path=/trunk/KDE/kdebase/apps/; revision=1079854
2010-01-25 09:00:51 +00:00
Peter Penz
e5eae108ca * Adjust code to use the improved KUrlNavigator API.
* Open a new tab if the URL navigator requests it.
* Get rid of a cyclic dependency between DolphinViewContainer and DolphinMainWindow.

BUG: 181223

svn path=/trunk/KDE/kdebase/apps/; revision=1079843
2010-01-25 07:58:24 +00:00
Peter Penz
2798e5d225 only set the title synchronously for the file-protocol, otherwise use KIO::stat()
svn path=/trunk/KDE/kdebase/apps/; revision=1077599
2010-01-20 13:06:16 +00:00
Sebastian Trueg
a567da792a Use a stat job to determine the caption on non-file URLs. This way we get the fancy UDS_DISPLAY_NAMEs for
URLs like the nepomuksearch ones.

BUG: 222095

svn path=/trunk/KDE/kdebase/apps/; revision=1077551
2010-01-20 11:26:39 +00:00
Peter Penz
f18e6e6bb8 use KAction::setShortcut() instead of QAction::setShortcut()
svn path=/trunk/KDE/kdebase/apps/; revision=1075127
2010-01-15 15:23:43 +00:00
Peter Penz
2f59a5236a Fixed issue that the keyboard shortcuts for the docks places, folders, information and terminal could not be changed.
BUG: 218485

svn path=/trunk/KDE/kdebase/apps/; revision=1073053
2010-01-11 13:55:21 +00:00
Peter Penz
cc06711735 - When the filterbar has been activated as startup setting, still the view should get the keyboard focus.
- Assure that the keyboard focus does not get lost when a tab is opened in background.

CCBUG: 183394

svn path=/trunk/KDE/kdebase/apps/; revision=1072868
2010-01-11 09:21:16 +00:00
Peter Penz
2c3fc5c93f use correct icon when opening new tabs with the middle click
BUG: 212942

svn path=/trunk/KDE/kdebase/apps/; revision=1070717
2010-01-06 15:33:27 +00:00
Maciej Mrozowski
b6cf6cc684 Revert r1053349 - this file is included alread when HAVE_NEPOMUK is defined - no need to do it twice.
This fixed compilation without nepomuk libs.

svn path=/trunk/KDE/kdebase/apps/; revision=1064809
2009-12-21 20:58:28 +00:00
Peter Penz
4ce21c5a6e don't try to do anything if no files have been passed
svn path=/trunk/KDE/kdebase/apps/; revision=1063333
2009-12-17 21:14:38 +00:00
Peter Penz
e15a9f3a8d * respect the --select startup option
* minor cleanups related to selecting items in general

svn path=/trunk/KDE/kdebase/apps/; revision=1063329
2009-12-17 21:07:18 +00:00
Peter Penz
5e25098037 allow to restrict the search results by the current folder (including all sub folders)
svn path=/trunk/KDE/kdebase/apps/; revision=1061589
2009-12-12 12:23:05 +00:00
Peter Penz
a960935b00 * allow to filter the search result by images or text-documents
* minor cleanups

svn path=/trunk/KDE/kdebase/apps/; revision=1061550
2009-12-12 05:59:45 +00:00
Sebastian Trueg
d324e790d6 * Fixed execution of links in the metadata widget.
* Do not try to list non-listable URLs.

svn path=/trunk/KDE/kdebase/apps/; revision=1054300
2009-11-25 20:53:37 +00:00
Frank Reininghaus
5592947ec2 Fix Dolphin crash on startup if HAVE_NEPOMUK is false.
svn path=/trunk/KDE/kdebase/apps/; revision=1054165
2009-11-25 17:48:41 +00:00
Dmitry Suzdalev
61813e0df7 Add missing include
svn path=/trunk/KDE/kdebase/apps/; revision=1053349
2009-11-23 21:56:26 +00:00
Peter Penz
35ba6eb132 * show only a minimized set of search options per default
* remember the search options when closing Dolphin, so that the user can adjust his "default search template"

svn path=/trunk/KDE/kdebase/apps/; revision=1052499
2009-11-21 22:08:59 +00:00
Peter Penz
2b6cceb0f6 Provide clickable resources for the Information Panel. Thanks to Sebastian Trüg für the patch!
CCMAIL: trueg@kde.org

svn path=/trunk/KDE/kdebase/apps/; revision=1051553
2009-11-19 19:38:34 +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
David Faure
23e0b64e60 better fix so that it links, too...
svn path=/trunk/KDE/kdebase/apps/; revision=1050535
2009-11-17 15:16:38 +00:00
David Faure
df5b974b1b try to fix compilation for people without nepomuk (dolphinmainwindow.cpp:1008: error: invalid use of incomplete type ‘struct DolphinSearchOptionsConfigurator’)
svn path=/trunk/KDE/kdebase/apps/; revision=1050534
2009-11-17 15:12:10 +00:00
Peter Penz
bd30bb6ca9 search finetuning:
* trigger progress information when starting a search
* let the information panel hide the meta data for the search string
* get the search string from the configurator

svn path=/trunk/KDE/kdebase/apps/; revision=1048721
2009-11-13 21:03:19 +00:00
Peter Penz
07f31c2087 Show a progress information when doing a Nepomuk search. As "sideeffect" some KDE3 relicts for the progress bar code have been removed too...
svn path=/trunk/KDE/kdebase/apps/; revision=1048225
2009-11-12 22:45:47 +00:00
Peter Penz
f0cab33518 Don't show the search options, if no Nepomuk is available. Hopefully Nepomuk will get a hard build dependency quite soon, those #ifdef-code is really ugly and difficult to maintain...
svn path=/trunk/KDE/kdebase/apps/; revision=1048135
2009-11-12 19:45:55 +00:00
Peter Penz
d9e3139e50 * Show the search options as soon as the search bar gains focus.
* Allow the user to manually close the options.
* Added tooltip descriptions.

svn path=/trunk/KDE/kdebase/apps/; revision=1047281
2009-11-10 21:44:24 +00:00
Peter Penz
232e7eaad7 move the "Download New Services..." entry from the Settings menu to the service configuration dialog
svn path=/trunk/KDE/kdebase/apps/; revision=1046788
2009-11-09 18:13:36 +00:00
Frank Reininghaus
7ff8c0d89a When the Back, Forward and Up buttons in the toolbar are clicked with
the middle mouse button, open the URL in a new tab.

FEATURE: 190549

svn path=/trunk/KDE/kdebase/apps/; revision=1046785
2009-11-09 17:50:21 +00:00
Peter Penz
7746fdb9a3 * provide descriptive tooltip texts for actions
* fixed some coding style issue (tabs...)

BUG: 213358

svn path=/trunk/KDE/kdebase/apps/; revision=1045751
2009-11-06 18:02:55 +00:00
Peter Penz
73007f7d63 After some discussions at http://reviewboard.kde.org/r/1938 it turned out that moving KMetaDataWidget and KMetaDataConfigurationDialog to kdelibs should be postponed to KDE 4.5. The main reason is that adding application specific properties is not possible with the current API in a generic way. Also the topic how to hide properties application specific is an open point...
So now all adjustments from the review have been adapted to the Dolphin code. After KDE 4.4 has been released some refactoring will be done so that the open topics above are handled in a nice way.

svn path=/trunk/KDE/kdebase/apps/; revision=1041547
2009-10-28 07:18:00 +00:00
Markus Meik Slopianka
573299f13b Typo
svn path=/trunk/KDE/kdebase/apps/; revision=1038352
2009-10-21 06:59:05 +00:00
Markus Meik Slopianka
f1ebbff6e4 Less technical language in status bar messages
svn path=/trunk/KDE/kdebase/apps/; revision=1038270
2009-10-20 22:50:34 +00:00
Peter Penz
213705a22c give the splitter more space than the (optional) search options
svn path=/trunk/KDE/kdebase/apps/; revision=1036783
2009-10-17 19:33:36 +00:00
Peter Penz
884b5ad3a9 add A search options widget, which later on will include Adam Kidder's search prototype from playground
svn path=/trunk/KDE/kdebase/apps/; revision=1036776
2009-10-17 19:24:05 +00:00
Peter Penz
5e123c68d7 * move classes for searching into an own folder (new classes will be added soon)
* Postpone the creation of the searchcompleter, until the editor gets focused. This improves the startup time of Dolphin (reading all available tags is an expensive operation).

svn path=/trunk/KDE/kdebase/apps/; revision=1036658
2009-10-17 15:05:50 +00:00
Peter Penz
f9b2c9f0c7 The text of the paste-action is modified dynamically by Dolphin (e. g. to "Paste One Folder"). To prevent that the size of the toolbar changes due to the long text, the text "Paste" is used when the action is shown in the toolbar.
Thanks to Christoph Feck for the hint!

BUG: 209392

svn path=/trunk/KDE/kdebase/apps/; revision=1033985
2009-10-11 17:43:30 +00:00
Will Stephenson
22187ee547 Add view-filter icon as discussed on kde-devel with ppenz.
svn path=/trunk/KDE/kdebase/apps/; revision=1017236
2009-08-30 08:33:59 +00:00
Frank Reininghaus
8e17757ae3 Use KApplication::sessionSaving() to determine if Dolphin is closed by
the session manager - there's no need to reinvent the wheel ;-)

Thanks to Lubos Lunak for the hint.

svn path=/trunk/KDE/kdebase/apps/; revision=1013726
2009-08-20 15:47:38 +00:00
Frank Reininghaus
c0922a81d8 Do not warn the user about closing Dolphin windows with multiple tabs
if Dolphin is closed by the session manager, i.e., if the user logs
out. The fix is inspired by the way this issue is handled in
Konqueror.

BUG: 201803

svn path=/trunk/KDE/kdebase/apps/; revision=1011002
2009-08-13 18:54:16 +00:00
Peter Penz
99eacd9f56 move statusbar code into the directory "statusbar"
svn path=/trunk/KDE/kdebase/apps/; revision=1005704
2009-08-01 20:01:51 +00:00
Peter Penz
8e6dbadef2 Fixed performance issues related to selections and deleting of files:
- Don't connect to KDirLister::itemDeleted(const KFileItem&), but KDirLister::itemsDeleted(const KFileItemList&). Otherwise Dolphin is informed about each single file deletion instead of getting the deleted items as a list. Thanks to David Faure for the hint!

- DolphinViewContainer::updateStatusBar() can be expensive when a lot of files are selected, as the file size must get retrieved. Assure that fast calls for updateStatusBar() don't trigger a synchronous update, do the update after 300 ms where no further update has been triggered.

- Dolphin provides a list of file items when emitting the selectionChanged() signal. Collecting the file items is a quite expensive operation, so use the same approach as when updating the statusbar: only emit the selection changed signal when no change has been done within 300 ms. This improves the performance when doing huge selections a lot.

- Make updateStatusBar() a private method, the main window should not need to take care about updating the statusbar (this is done internally now by DolphinViewContainer).

BUG: 199090
BUG: 195787
CCBUG: 199352
CCBUG: 188218

svn path=/trunk/KDE/kdebase/apps/; revision=995015
2009-07-11 17:48:05 +00:00
Peter Penz
c3ffc95a73 - adding missing const
- minor adjustment of name
- use same declaration order as other private methods

CCMAIL: predator106@gmail.com 

svn path=/trunk/KDE/kdebase/apps/; revision=994089
2009-07-10 06:07:32 +00:00
Shaun Reich
70915125f7 Fixed the annoying bug (for me) that dealt with having a very long folder name. In this case, the name of the tab could be many more times bigger than the tabBar itself.
Now they are ellided, so e.g. "really really long folder name...is" or something.

Few more cases left for me to fix(shortly), but those are not quite close to this section.

svn path=/trunk/KDE/kdebase/apps/; revision=993618
2009-07-09 04:41:53 +00:00
Peter Penz
c1ea2c3491 krazy qtclasses fixes
svn path=/trunk/KDE/kdebase/apps/; revision=973289
2009-05-26 18:52:14 +00:00
Peter Penz
3a612f1f24 use correct icon name (issue reported by krazy)
svn path=/trunk/KDE/kdebase/apps/; revision=973278
2009-05-26 18:39:25 +00:00
Peter Penz
ec859058c6 krazy fixes
svn path=/trunk/KDE/kdebase/apps/; revision=969874
2009-05-19 07:25:40 +00:00
Frank Reininghaus
07ad9b3726 Update the directory of the Terminal Panel if the current URL is not a
"file:" URL, but is nevertheless local (e.g., "desktop:").

This fix is also applied to the new "Open external Terminal" action
which will be in KDE 4.3.

BUG: 167810 

svn path=/trunk/KDE/kdebase/apps/; revision=969265
2009-05-17 19:57:07 +00:00
Frank Reininghaus
cc8a62ff16 Don't show an empty window caption when browsing "/", "trash:", etc.
BUG: 190783

svn path=/trunk/KDE/kdebase/apps/; revision=964061
2009-05-05 21:49:03 +00:00
Frank Reininghaus
cadfb2a3c6 Make it impossible to hide one of the views in a split view setup
completely by dragging the QSplitterHandle to the left or right. This
fixes the problem that a hidden view disappears completely after
closing the visible view. The root cause of this issue still seems to
be unclear though.

BUG: 190265

svn path=/trunk/KDE/kdebase/apps/; revision=957703
2009-04-22 18:29:02 +00:00
Frank Reininghaus
b842968e4a Make Qt 4.5's new "move tab" feature work in Dolphin. Up to now, tabs could be moved in the tab bar using drag&drop, but DolphinMainWindow didn't notice :-(
Note that there's no need to call setActiveTab() because the active tab is the same before and after the move operation - only its index in the tab bar has changed.

BUG: 189641

svn path=/trunk/KDE/kdebase/apps/; revision=954556
2009-04-15 21:50:50 +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
abc9b18816 Fixed issue that tabs are not remembered when restoring a session. Thanks a lot to Rahman Duran for the patch!
BUG: 181227
CCMAIL: rahman.duran@gmail.com

svn path=/trunk/KDE/kdebase/apps/; revision=941226
2009-03-19 07:23:41 +00:00
Peter Penz
644938fcde SVN_SILENT: remove trailing spaces
svn path=/trunk/KDE/kdebase/apps/; revision=940620
2009-03-17 20:34:32 +00:00
Frank Reininghaus
b9b9df7296 Ask for confirmation when closing a Dolphin window with more than one tab. This can be disabled by checking the "Do not ask again" checkbox in the confirmation dialog or in Dolphin's settings dialog.
FEATURE: 168417

svn path=/trunk/KDE/kdebase/apps/; revision=938767
2009-03-12 22:40:32 +00:00
Shaun Reich
fb362b97a7 No need to set the accelerator manually, it's done automatically anyways(or it will be).
svn path=/trunk/KDE/kdebase/apps/; revision=938478
2009-03-11 22:41:57 +00:00
Shaun Reich
7a22141c55 This patch isn't needed anymore thanks to dfaure's up-coming patch to kmenu, the accelerator manager will automatically handle KMenu's.
svn path=/trunk/KDE/kdebase/apps/; revision=938471
2009-03-11 22:25:39 +00:00
Shaun Reich
6e4711a6a8 Changed i++ to ++i. I accidentally did the first when I first made the recently closed tabs feature (habitual).
svn path=/trunk/KDE/kdebase/apps/; revision=938422
2009-03-11 20:48:37 +00:00
Shaun Reich
eba839113b The last commit made the menu be on the heap, this switches it back to stack... (I initially couldn't figure out how to do that (had to pass by reference)).
svn path=/trunk/KDE/kdebase/apps/; revision=938420
2009-03-11 20:47:46 +00:00
Shaun Reich
a619ca0872 Changed a tab's KMenu to have it's accelerators managed automatically.
svn path=/trunk/KDE/kdebase/apps/; revision=938417
2009-03-11 20:31:09 +00:00
Peter Penz
7697cad99f Provide an "Open Terminal" entry for the Tools menu (thanks to Rahman Duran for the patch!)
BUG: 164746

svn path=/trunk/KDE/kdebase/apps/; revision=937624
2009-03-10 06:59:27 +00:00
Peter Penz
0e5b55b778 SVN_SILENT: comment update
svn path=/trunk/KDE/kdebase/apps/; revision=937623
2009-03-10 06:36:34 +00:00
Shaun Reich
b23c00997a A change in focus between the split view, would not update the icon on the tab that it was in-now does.
svn path=/trunk/KDE/kdebase/apps/; revision=937597
2009-03-10 00:40:37 +00:00
Shaun Reich
f320652966 The tab icon now obeys the icon of the folder that it is currently browsing. Before it would just use the "folder" icon, but it now finds the icon of that folder, and uses it.
BUG: 182702

svn path=/trunk/KDE/kdebase/apps/; revision=937595
2009-03-10 00:35:59 +00:00
Shaun Reich
0945eb5bc2 Added a few things to the "Recently Closed Tabs" menu:
* Paths now ellide when they get too big. That is, according to the font size, not character length.

* Added automatic mnemomics (or however you spell that crazy word) to the menu's items.

svn path=/trunk/KDE/kdebase/apps/; revision=937504
2009-03-09 19:50:32 +00:00
Shaun Reich
abfa3fff9d The "Recently Closed Tabs" action menu now has a limit of 10, before it could just go on for practically ever, which would yield an annoyingly huge list of closed tabs.
svn path=/trunk/KDE/kdebase/apps/; revision=937477
2009-03-09 18:10:35 +00:00
Shaun Reich
9d7103f6ef There is no point in setting the text of a tab, each time a tab is selected, the only time we should have to do that is when we are using a split view.
This also kind of hides the Qt 4.5 tab bug (a very ugly one) from "regular" users (who don't use the split view).

svn path=/trunk/KDE/kdebase/apps/; revision=937116
2009-03-09 02:31:41 +00:00
Shaun Reich
86dd791791 Changed deprecated use of signal closeRequested(int) to tabCloseRequested(int)
svn path=/trunk/KDE/kdebase/apps/; revision=933837
2009-03-01 18:19:38 +00:00
Peter Penz
0d4306596a SVN_SILENT: minor coding style cleanups
svn path=/trunk/KDE/kdebase/apps/; revision=933598
2009-03-01 12:42:51 +00:00
Peter Penz
7a48b5fec1 removed Quick-View code (it has already been disabled before)
svn path=/trunk/KDE/kdebase/apps/; revision=933591
2009-03-01 12:23:05 +00:00
Peter Penz
3b98165a3f don't make the struct ClosedTab accessible for other classes
CCMAIL: predator106@gmail.com

svn path=/trunk/KDE/kdebase/apps/; revision=933589
2009-03-01 12:20:23 +00:00
Shaun Reich
dd89f93181 Fixed a bug in the "Recently Closed Tabs" menu that would cause it to show more recent tabs at the bottom.
The most recent tab will now always be shown right below the separator, which is right below the "Clear Recently Closed Tabs" action.

svn path=/trunk/KDE/kdebase/apps/; revision=933487
2009-03-01 02:27:35 +00:00
Shaun Reich
78e9cc506f Closed tabs are now remembered within Dolphin, so if you accidentally close them, or need to reopen a previous one-go crazy.
Closed tabs now become stored in the "Go"->"Recently Closed Tabs" menu.

To clear this list, there is an action within that menu. 

Clicking on a remembered tab's action, will remove that entry, restore that tab, and focus it.

svn path=/trunk/KDE/kdebase/apps/; revision=933483
2009-03-01 01:38:20 +00:00
Laurent Montel
00e6fb5c7b Fix warning about shortcut
svn path=/trunk/KDE/kdebase/apps/; revision=933227
2009-02-28 12:50:34 +00:00
Shaun Reich
7e7c14ba65 * Remove deprecated use of KTabBar::setCloseButtonEnabled(), use qt-provided method-QTabBar::setTabsClosable().
* Enable dragging of tabs thanks to the new feature in Qt 4.5, QTabBar::setMovable(), now that the KTabBar has been ported. The dragging is a very neat effect.

BUG: 164313

svn path=/trunk/KDE/kdebase/apps/; revision=930077
2009-02-22 17:06:15 +00:00
Shaun Reich
5cec8a2dd9 Middle-clicking on tabs will now close them.
svn path=/trunk/KDE/kdebase/apps/; revision=924467
2009-02-10 20:48:16 +00:00
Shaun Reich
eb9dd90419 Changed the order of the shortcut for opening a new tab from Ctrl+Shift+N to Ctrl+T, so the latter is now the default, and is shown like that. It now shows up like the other items in the file menu. (it doesn't have a shift key modifier in it).
svn path=/trunk/KDE/kdebase/apps/; revision=922452
2009-02-07 04:47:04 +00:00
Peter Penz
dc34436f23 Display correct folder names in tabs, if they contain a '&' character. Thanks to Frank Reininghaus for the patch!
BUG: 181765

svn path=/trunk/KDE/kdebase/apps/; revision=919021
2009-01-31 11:08:08 +00:00
Peter Penz
2033278815 minor coding style fixes (http://techbase.kde.org/Policies/Kdelibs_Coding_Style):
* use spaces instead of tabs
* correct braces

CCMAIL: predator106@gmail.com

svn path=/trunk/KDE/kdebase/apps/; revision=918537
2009-01-30 06:13:11 +00:00
Shaun Reich
6a0898178c The mouse wheel now works on Dolphin's tabs (to switch tabs), like just about every other KDE app.
svn path=/trunk/KDE/kdebase/apps/; revision=918498
2009-01-29 23:44:20 +00:00
Peter Penz
d85a6ec6dd Use a custom SearchWidget instead directly using a KLineEdit. Currently the DolphinSearchWidget acts as "playground" to test some ideas. If it works well it might be a good idea moving this widget as KSearchBox (?) to kdelibs, so that it can be used by the file dialog or other applications.
svn path=/trunk/KDE/kdebase/apps/; revision=913572
2009-01-19 14:25:08 +00:00
Peter Penz
be1298d9aa Provide a search box for the nepomuksearch:/ KIO slave. This is just an initial prototype to get some feedback, the search box and the URL navigator still need some love for this usecase...
CCMAIL: sebastian@trueg.de

svn path=/trunk/KDE/kdebase/apps/; revision=913451
2009-01-19 13:17:33 +00:00
Peter Penz
8acb68ed28 Relayout of the settings dialog, so that all Dolphin KPart relevant settings can be made available in Konqueror's settings dialog too. Further cleanups and layout fixes are required and will be done during the next week.
svn path=/trunk/KDE/kdebase/apps/; revision=912587
2009-01-17 18:42:06 +00:00
Peter Penz
6d6ac58d3f provide icons for "Places", "Folders", "Information" and "Terminal" actions, so that they can be added to the toolbar
BUG: 180847

svn path=/trunk/KDE/kdebase/apps/; revision=911845
2009-01-16 09:54:55 +00:00
Peter Penz
f37ecd6ecf Cleanup panel related class names: The terms "sidebar"/"sidebarpage" are relicts from the KDE 3 version of Dolphin and are called "Panels" in the KDE 4 version of Dolphin. Yes, renaming classes may take more than 1 year ;-)
svn path=/trunk/KDE/kdebase/apps/; revision=911089
2009-01-14 20:14:36 +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
86d9c40ab7 prevent that the user can open more than one instance of the settings dialog
svn path=/trunk/KDE/kdebase/apps/; revision=910588
2009-01-13 18:06:15 +00:00
Peter Penz
6d2904ec48 add action "Close Tab" to the file menu, so that users get the chance to discover the key shortcut
svn path=/trunk/KDE/kdebase/apps/; revision=909450
2009-01-11 16:28:42 +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
e931b21216 there is no reason that the settings dialog is modal...
BUG: 179757

svn path=/trunk/KDE/kdebase/apps/; revision=908577
2009-01-09 22:56:24 +00:00
Peter Penz
3b4e44d6da if "split view" is used as startup setting, also open new tabs in the split view mode
BUG: 176980

svn path=/trunk/KDE/kdebase/apps/; revision=896206
2008-12-12 20:30:23 +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
fe06efe734 open the tab in the background when "Open in new tab" is selected with the context menu (-> consistent behavior with middle click)
svn path=/trunk/KDE/kdebase/apps/; revision=891716
2008-12-02 18:36:42 +00:00
Peter Penz
da5f59b3bb * assure that the keyboard focus is in the view when switching between tabs
* assure that the URL navigator gets the focus when it is editable and a new tab is opened by File -> New Tab 

BUG: 174594

svn path=/trunk/KDE/kdebase/apps/; revision=891367
2008-12-01 20:56:00 +00:00
Peter Penz
f542da84a2 Disable the "quick view" feature: I like the Previewer plasmoid, but I think after a few months of trying to use it there is no need for having a separate menu entry (shortcut: CTRL+Return) in Dolphin: Doing a drag & drop operation to the previewer plasmoid is faster than selecting a file and pressing CTRL+Return (or selecting the menu entry). Using "Space" as shortcut conflicts with the Terminal and is still slower than simply just opening the file...
The i18n() string is still part of the code, so that it could be reactivated during the 4.2 cycle.

svn path=/trunk/KDE/kdebase/apps/; revision=886672
2008-11-19 20:09:51 +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
c0fd7f2a19 * show an error message instead of an information message when an invalid dragging is done
* show an error message if a folder is dropped on to itself

svn path=/trunk/KDE/kdebase/apps/; revision=883836
2008-11-13 17:22:35 +00:00
Peter Penz
a7838db28e * implement the DragAndDropHelper as singleton derived from QObject, so that emitting of signals is possible
* show an information message in the statusbar, if items are dragged into the same directory

TODO: although the signal seems to get connected correctly, the slot DolphinMainWindow::showInformationMessage() is not invoked when the signal is emitted -> will debug this later, it is important that the new string is added before the message freeze

svn path=/trunk/KDE/kdebase/apps/; revision=881627
2008-11-08 16:22:30 +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
5d69f066db * renamed "[x] Show Full Location" to "[x] Editable Location"
* renamed "Edit Location" to "Replace Location"

svn path=/trunk/KDE/kdebase/apps/; revision=875699
2008-10-25 09:41:39 +00:00
Peter Penz
6efdfda500 SVN_SILENT: minor coding style fixes
svn path=/trunk/KDE/kdebase/apps/; revision=875696
2008-10-25 09:21:20 +00:00
Mathias Soeken
75bf8edaeb You can now switch the tabs in dolphin via keyboard shortcuts like in konqueror
svn path=/trunk/KDE/kdebase/apps/; revision=875689
2008-10-25 09:00:28 +00:00
Peter Penz
e7bd514a39 * Move code from DolphinDropController to DragAndDropHelper.
* Move code which checks whether the dragging of a MIME type is supported to DragAndDropHelper. This allows adding an improved support for dropping compressed files from Ark to Dolphin later...

CCMAIL: haraldhv@stud.ntnu.no

svn path=/trunk/KDE/kdebase/apps/; revision=875611
2008-10-24 22:19:23 +00:00
Peter Penz
e0bef260da Assure that the docks get informed about an URL change before the GUI is setup (thanks to Frank Reininghaus for the patch!). This prevents that slots from the docks are called with invalid URLs.
BUG: 169103
CCMAIL: frankreininghaus@web.de>

svn path=/trunk/KDE/kdebase/apps/; revision=871525
2008-10-15 06:03:41 +00:00
Peter Penz
c617050efb improvement to previous commit: check whether the URL can be listed by asking the protocol manager (thanks to David Faure for the hint)
svn path=/trunk/KDE/kdebase/apps/; revision=869022
2008-10-07 22:05:55 +00:00
Peter Penz
0ee9ee0ea8 If an URL cannot be listed, just let the view and the panels show the last listable URL. This prevents having an empty view and empty panels when typing a wrong URL.
BUG: 170695

svn path=/trunk/KDE/kdebase/apps/; revision=868984
2008-10-07 20:29:18 +00:00
Peter Penz
84f25c4503 when changing the settings it is necessary to refresh all tabs, not only the active tab
svn path=/trunk/KDE/kdebase/apps/; revision=868952
2008-10-07 18:37:59 +00:00
Peter Penz
d89548a828 allow to configure whether the zoom slider and/or the space information should be shown in the statusbar
svn path=/trunk/KDE/kdebase/apps/; revision=868596
2008-10-06 18:15:53 +00:00
Peter Penz
aa0b09dac4 * adjusted Dolphin to use KonqOperations::doDrop() instead of using a custom implementation
* used new signals jobRecordingStarted() and jobRecordingFinished from FileUndoManager to inform the user in the statusbar when a recorded command has been finished

svn path=/trunk/KDE/kdebase/apps/; revision=866777
2008-10-01 21:39:35 +00:00
David Faure
62afe1570e Fix connect.
But the one in dolphinviewcontainer (connecting to the kurlnavigator slot urlsDropped) still fails,
since it has no QDropEvent. Not sure what's the plan there.
CCMAIL: peter.penz@gmx.at

svn path=/trunk/KDE/kdebase/apps/; revision=866046
2008-09-29 21:00:34 +00:00
Peter Penz
0382f24544 Use KonqOperations::doDrop() instead of a custom dropping code. Still some minor issues are open (Dolphin currently gets no feedback anymore when the operations have been finished), but they will be solved during the next week.
BUG: 168154

svn path=/trunk/KDE/kdebase/apps/; revision=865708
2008-09-28 18:38:00 +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
5babb62366 don't use SPACE as shortcut for Quick View, as this conflicts with the Terminal Panel
svn path=/trunk/KDE/kdebase/apps/; revision=857151
2008-09-04 20:11:14 +00:00
Rafael Fernández López
0bca190b0e Booo... false alarm. After going to the XMLGUI code this is perfect. I also wonder why call to setAutoSaveSettings when using Save flag, and why createGUI when using Create flag, is what setupGUI
internally is doing indeed. So nah, going back and removing those unnecessary calls. Now user preferences on toolbar places and sizes of icons are obeyed.

CCMAIL: peter.penz@gmx.at
CCMAIL: faure@kde.org

svn path=/trunk/KDE/kdebase/apps/; revision=853002
2008-08-26 23:51:05 +00:00
Rafael Fernández López
78b45e3d6a Do not create with Save flag. OMG, this is a very bad problem of XMLGUI... if you set that flag (which needs to be done
before createGUI, it will go to setAutoSaveSettings from KMainWindow, which will apply the personal preferences of
toolbars etc... of a NON EXISTANT GUI !. So take out this parameter from here... since we are calling anyway
setAutoSaveSettings couple lines after. I wonder if we should encourage people to not use Save flag, or we should fix
this into XMLGUI.

CCMAIL: peter.penz@gmx.at
CCMAIL: faure@kde.org

svn path=/trunk/KDE/kdebase/apps/; revision=852998
2008-08-26 23:42:53 +00:00
Sascha Peilicke
817f3952e2 Fix for show_filter_bar action of tools-menu, which is not correctly set (when the corresponding option is checked in the startupsettingsview) at application start-up.
svn path=/trunk/KDE/kdebase/apps/; revision=846896
2008-08-14 10:12:32 +00:00
Peter Penz
00afeea5f5 Activate the tab when an item is dragged above an inactive tab. Thanks to Dmitry Khlystov for the patch!
BUG: 164312

svn path=/trunk/KDE/kdebase/apps/; revision=846009
2008-08-12 19:22:38 +00:00
Peter Penz
b354c7503d Assure that the "Close Tab" action gets disabled when only one tab is open.
BUG: 168904

svn path=/trunk/KDE/kdebase/apps/; revision=845995
2008-08-12 18:59:25 +00:00
Alex Merry
c167ffbb4f We want to change the tab, not just the view.
Fixes the issue: open three tabs.  Select the second one and close it.  Now right tab is active, but content for left tab is shown.

Will backport to 4.1.

CCMAIL: peter.penz@gmx.at


svn path=/trunk/KDE/kdebase/apps/; revision=839877
2008-07-31 01:02:52 +00:00
Peter Penz
4759321fdd forgot to remove unused variable in last commit
svn path=/trunk/KDE/kdebase/apps/; revision=838119
2008-07-26 19:23:20 +00:00
Peter Penz
8d189f44c4 use DBus interface instead of KRun::runCommand()
svn path=/trunk/KDE/kdebase/apps/; revision=838112
2008-07-26 19:09:17 +00:00
Peter Penz
a07ea82381 Provide a "Quick View" in the Tools menu, which uses the Previewer plasmoid.
TODO 1: use the D-Bus interface directly instead of using KRun::runCommand() as workaround.

TODO 2: a new icon would be necessary

CCMAIL: alediaferia@gmail.com

svn path=/trunk/KDE/kdebase/apps/; revision=838039
2008-07-26 13:49:50 +00:00
Peter Penz
5d7de69ae6 fixed issue that the close-action for the split view has been applied to the inactive view instead of the active view
BUG: 167209

svn path=/trunk/KDE/kdebase/apps/; revision=836643
2008-07-22 17:36:52 +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
3bc3ca1458 Move the "Find File..." action from DolphinMainWindow to DolphinViewActionHandler, so that is used in DolphinPart and hence also in Konqueror. Thanks to Bram for the patch!
CCMAIL: bramschoenmakers@kde.nl
CCMAIL: faure@kde.org

svn path=/trunk/KDE/kdebase/apps/; revision=826383
2008-06-30 16:37:08 +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
cb32d720d1 provide Ctrl+T as alternative shortcut to Ctrl+Shift+N for "New Tab" like Konqueror
BUG: 165309

svn path=/trunk/KDE/kdebase/apps/; revision=825833
2008-06-29 13:36:53 +00:00
Peter Penz
c446e29bc3 Don't check for "kompare" each time 2 items are selected (thanks to Andreas Scherf). As Albert Astals Cid pointed out it might be nicer to use a menu plugin instead of hardcoding "kompare" (> KDE 4.1).
CCMAIL: scherfa@arcor.de

svn path=/trunk/KDE/kdebase/apps/; revision=825587
2008-06-28 18:42:51 +00:00
Peter Penz
c4f8d95a60 Move code for disabling the paste action into DolphinView::pasteInfo() -> Dolphin KPart now also is aware about the disabled paste action.
@David: Konqueror hides the paste action in the context menu now, but still the action in the edit menu stays enabled

CCMAIL: faure@kde.org

svn path=/trunk/KDE/kdebase/apps/; revision=819116
2008-06-10 16:23:46 +00:00
Peter Penz
ffe9bbacd9 disable the paste action if no writing is supported for the paste-destination
BUG: 161639

svn path=/trunk/KDE/kdebase/apps/; revision=818445
2008-06-08 15:20:19 +00:00
David Faure
3d28c53564 When "move_to_trash" is disabled and "delete" is enabled (e.g. non-local files),
enable a hidden action with Key_Del as shortcut, so that the user can press Del to delete the file.
BUG: 76016

svn path=/trunk/KDE/kdebase/apps/; revision=817389
2008-06-05 22:25:07 +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
Peter Penz
70d1cb86e0 increase the readability of the code
svn path=/trunk/KDE/kdebase/apps/; revision=815420
2008-06-01 18:44:35 +00:00
George Goldberg
08dfefec38 Fix dolphin to only enable the Cut context menu option if the file capabilites supportsMoving().
CCBUGS: 161594

Still need to fix Send to trash Context Option in Konqueror

svn path=/trunk/KDE/kdebase/apps/; revision=815362
2008-06-01 15:16:27 +00:00
Peter Penz
d326c746bc Assure that tabs always have a text. If the file name is empty, use the protocol instead. This fixes the issue that for "trash://" no text is shown in the tab.
svn path=/trunk/KDE/kdebase/apps/; revision=813844
2008-05-28 20:48:40 +00:00
James Richard Tyrer
8a891082f4 Adding icon name "tab-close-other" to replace "tab-close" where the action is to close other tabs.
svn path=/trunk/KDE/kdebase/apps/; revision=809235
2008-05-18 15:31:24 +00:00
Peter Penz
95ac842f29 A middle click on an item of the tree view panel should open the URL inside a new tab.
TODO: cleanup some obsolete signals/structure inside SidebarPage and TreeviewSidebarPage.

svn path=/trunk/KDE/kdebase/apps/; revision=806635
2008-05-11 21:51:04 +00:00
Peter Penz
57e3503e2f If the middle mouse button is pressed above an item of the places panel, open the URL inside a new tab.
svn path=/trunk/KDE/kdebase/apps/; revision=806606
2008-05-11 20:14:50 +00:00
David Faure
fd98230020 Move "Adjust view properties" to dolphinviewactionhandler so that it's available in dolphinpart (konqueror) too.
Bug reported by kde-bug-hunter "lemma".

svn path=/trunk/KDE/kdebase/apps/; revision=804037
2008-05-04 21:16:30 +00:00
Peter Penz
5e36288789 Assure that after "Split View" has been executed, that the second view gets the focus instead of the first view.
BUG: 161365

svn path=/trunk/KDE/kdebase/apps/; revision=803984
2008-05-04 18:40:06 +00:00
David Faure
06e9ece821 KonqFileUndoManager moved to kdelibs, as KIO::FileUndoManager. Ported the code in libkonq+dolphin+konqueror.
svn path=/trunk/KDE/kdebase/apps/; revision=802881
2008-04-30 23:32:33 +00:00
Peter Penz
a593ad0b99 let a double-click on the empty tab-area open a new tab (-> consistent with konsole behavior)
svn path=/trunk/KDE/kdebase/apps/; revision=800241
2008-04-23 18:28:23 +00:00
David Faure
d1aaeab617 Fix bug with the UndoUiInterface usage: if more than one mainwindow was used, the statusbar of the wrong window could be used for displaying error messages from the undo manager.
svn path=/trunk/KDE/kdebase/apps/; revision=799250
2008-04-20 22:07:44 +00:00
Peter Penz
4e58afa1fd fixed some stupid bugs I did not see in the previous commit -> after 9 hours in the office and 3 hours Dolphin it seems I'm too tired :-(
svn path=/trunk/KDE/kdebase/apps/; revision=798677
2008-04-18 20:31:31 +00:00
Peter Penz
6ba12bacc7 consider the protocol and directory capabilities for file actions like Rename, Delete and Move To Trash
svn path=/trunk/KDE/kdebase/apps/; revision=798674
2008-04-18 20:21:21 +00:00
Peter Penz
50acc2d6ec fix possible crash when selecting "New Tab" from the tab context menu of an inactive tab
svn path=/trunk/KDE/kdebase/apps/; revision=797843
2008-04-16 21:27:39 +00:00
Peter Penz
12c1feb0c5 * provide context menu for tabs
* assure that the tab name is set to "/" for the root URL instead of using an empty string

svn path=/trunk/KDE/kdebase/apps/; revision=797725
2008-04-16 20:03:05 +00:00
Peter Penz
8cb8b51909 let Dolphin use the new tab-close-buttons
svn path=/trunk/KDE/kdebase/apps/; revision=797061
2008-04-14 20:19:17 +00:00
Peter Penz
ac9e01f789 implemented functionality for closing tabs
svn path=/trunk/KDE/kdebase/apps/; revision=796587
2008-04-13 20:20:30 +00:00
Peter Penz
9d394f7a4a prevent flickering when switching between tabs having a split view
svn path=/trunk/KDE/kdebase/apps/; revision=796566
2008-04-13 19:18:54 +00:00
Peter Penz
9d1a8d98dd fixes for tabs:
* remember active view when having a split view inside a tab
* prevent a possible recursion when returning into a tab having a split view

svn path=/trunk/KDE/kdebase/apps/; revision=796563
2008-04-13 19:12:52 +00:00
Peter Penz
030a5d5433 when clicking with the middle mouse button on a directory, a new tab should be opened
svn path=/trunk/KDE/kdebase/apps/; revision=796116
2008-04-12 16:12:57 +00:00
Peter Penz
3b06c2120d "New Tab" menu + some related code ;-)
BUG: 143995

svn path=/trunk/KDE/kdebase/apps/; revision=796101
2008-04-12 15:09:46 +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
Luboš Luňák
2328577ac6 Append # to the object name (window role), KWin uses it for better
window grouping.


svn path=/trunk/KDE/kdebase/apps/; revision=788492
2008-03-21 17:24:06 +00:00
Peter Penz
a47758bae5 show the Information Panel per default as discussed in core-devel
CCMAIL: jriddell@ubuntu.com

svn path=/trunk/KDE/kdebase/apps/; revision=788150
2008-03-20 21:10:27 +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
Peter Penz
e83c309781 remove unused signal
svn path=/trunk/KDE/kdebase/apps/; revision=784855
2008-03-12 17:07:42 +00:00
Peter Penz
74541a5d48 menu actions have not been updated correctly when changing between the split views (regression from KDE 4.0.1 to KDE 4.0.2)
BUG: 158317

svn path=/trunk/KDE/kdebase/apps/; revision=784853
2008-03-12 16:58:11 +00:00
Jeff Mitchell
e8f247159e Don't try to show the terminal in dolphin when in Windows
svn path=/trunk/KDE/kdebase/apps/; revision=784126
2008-03-10 17:33:30 +00:00
Peter Penz
eb7294fa10 minor cleanup: no need to create a slot which just invokes another method, just use the other method as slot
svn path=/trunk/KDE/kdebase/apps/; revision=778423
2008-02-23 15:48:56 +00:00
Peter Penz
98497a639a let F6 also select the whole text of the URL navigator to stay consistent with Konqueror and Firefox
BUG: 157589

svn path=/trunk/KDE/kdebase/apps/; revision=775977
2008-02-16 22:05:34 +00:00
Peter Penz
f70b85b4ca Initially I thought it's better not having code as default value inside dolphin_generalsettings.kcfg. But the check for an empty home URL in DolphinMainWindow::init() must also be done when invoking GeneralSettings::setDefaults() in StartupSettingsPage, otherwise the home URL would get empty... Using QDir::homePath() as default-value inside the *.kcfg file prevents such issues.
CCMAIL: michael.a.oshea@gmail.com

svn path=/trunk/KDE/kdebase/apps/; revision=775494
2008-02-15 23:13:47 +00:00
Peter Penz
e43bc5a6f6 minor code cleanup
svn path=/trunk/KDE/kdebase/apps/; revision=775094
2008-02-14 21:25:36 +00:00
Peter Penz
57e2cd9ae9 ~ is no useful home folder in a Windows environment (thanks to Michael O'Shea for the patch!)
BUG: 156463
CCMAIL: michael.a.oshea@gmail.com

svn path=/trunk/KDE/kdebase/apps/; revision=775056
2008-02-14 20:11:51 +00:00
David Faure
a8a050952d Provide the "sort by" actions in dolphinpart (konqueror); share and simplify the code by connecting to the actiongroup's signal.
svn path=/trunk/KDE/kdebase/apps/; revision=774699
2008-02-13 20:52:21 +00:00
David Faure
804a196700 Provide the dolphinpart view modes (Icons, Details, Columns) in konqueror's View Modes menu.
(this is done using a Q_PROPERTY in the dolphin part and a signal; the available view modes for creating the menu in the first place are listed in dolphinpart.desktop)
Konqueror: cleaned up the old (complex) handling of view modes as N toolbar buttons from M services grouped by library (240 lines less!).
Dolphin: moved view mode handling to DolphinViewActionHandler, removes duplication between part and mainwindow.

svn path=/trunk/KDE/kdebase/apps/; revision=774646
2008-02-13 18:45:20 +00:00
David Faure
846b21edf5 Forwardport 773570:
Factorize all the view-related action handling to DolphinViewActionHandler, to remove code duplication between mainwindow and part, and to remove my code-splitting with the static createFooAction methods in the view.

svn path=/trunk/KDE/kdebase/apps/; revision=773572
2008-02-11 12:44:46 +00:00
David Faure
45a1074b0a Factorize all the view-related action handling to DolphinViewActionHandler, to remove code duplication between mainwindow and part, and to remove my code-splitting with the static createFooAction methods in the view.
svn path=/branches/KDE/4.0/kdebase/apps/; revision=773570
2008-02-11 12:34:48 +00:00
Peter Penz
368e7d615a Fixed issue that the "Show Full Location" action is not synchronized with the editable state of the URL navigator (thanks to David Benjamin for the patch).
BUG: 156891

svn path=/trunk/KDE/kdebase/apps/; revision=771918
2008-02-07 07:27:06 +00:00
Peter Penz
9a944644e9 allow dropping items above a place inside the Places panel
BUG: 154014

svn path=/trunk/KDE/kdebase/apps/; revision=768921
2008-01-30 22:22:46 +00:00
David Faure
a6f5c499ef keep in sync with 4.0 branch (767566)
svn path=/trunk/KDE/kdebase/apps/; revision=767567
2008-01-28 11:37:08 +00:00
David Faure
cdc40d4398 Centralize three more actions so that they are available in DolphinPart: 'Show preview' 'Show hidden files' 'Categorized sorting'
Found a way of sharing the actions with even less code duplication, discussed it with Peter, but this will be for after 4.0.1

svn path=/branches/KDE/4.0/kdebase/apps/; revision=767566
2008-01-28 11:33:49 +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
David Faure
494f522b91 svn merge -r764536:HEAD from 4.0 branch: refactor "additional info" actions and provide them in the part
svn path=/trunk/KDE/kdebase/apps/; revision=764550
2008-01-22 01:38:45 +00:00
David Faure
13706a2952 Move the code handling the additional-info-actions to DolphinView; simplify signal from DolphinView (it has the info anyway).
The fact that the last additional-info doesn't show up in the icon view is in fact a KFileItemDelegate bug, not a bug in this code :)

svn path=/branches/KDE/4.0/kdebase/apps/; revision=764544
2008-01-22 01:22:56 +00:00
David Faure
d34f1d1b46 Use a QActionGroup and save 6 slots (and the duplication of the action names in the code).
svn path=/branches/KDE/4.0/kdebase/apps/; revision=764537
2008-01-22 00:39:52 +00:00
David Faure
3c1efcb738 Make sort/descending available in dolphinpart
svn path=/trunk/KDE/kdebase/apps/; revision=764445
2008-01-21 19:44:36 +00:00
David Faure
af333d9c7a Make sort/descending available in dolphinpart
svn path=/branches/KDE/4.0/kdebase/apps/; revision=764444
2008-01-21 19:42:16 +00:00
David Faure
e3da86af95 forwardport 764429:
Revert the moving of the action to the DolphinView instance, this doesn't work with splitted views.
(Each view would need its own action collection, but then DolphinView would have to become
a KXMLGUIClient, and the GUI would flicker when switching views).

Instead, use the same solution as the other shared actions: static method in DolphinView (for now),
slot in the mainwindow (and for the more complex actions than this one, shared code in DolphinView)

svn path=/trunk/KDE/kdebase/apps/; revision=764436
2008-01-21 19:31:07 +00:00
David Faure
c00478bbc1 Revert the moving of the action to the DolphinView instance, this doesn't work with splitted views.
(Each view would need its own action collection, but then DolphinView would have to become
a KXMLGUIClient, and the GUI would flicker when switching views).

Instead, use the same solution as the other shared actions: static method in DolphinView (for now),
slot in the mainwindow (and for the more complex actions than this one, shared code in DolphinView)

svn path=/branches/KDE/4.0/kdebase/apps/; revision=764429
2008-01-21 19:08:52 +00:00
Peter Penz
1daef0dc52 Cleanup: let the DolphinView be aware about the used action collection. This will allow us cleaning up some code in DolphinMainWindow and will make it easier sharing code with DolphinPart.
CCMAIL: faure@kde.org

svn path=/trunk/KDE/kdebase/apps/; revision=764347
2008-01-21 14:16:31 +00:00
Peter Penz
aeec659530 stay consistent with Konqueror: F10 creates a new directory
svn path=/trunk/KDE/kdebase/apps/; revision=763500
2008-01-19 16:59:10 +00:00
Peter Penz
09c62f7c6a use F3 for "Split View" instead of F10, as F10 is used for "new directory" since KDE 3... (thanks to Aaron for the hint)
svn path=/trunk/KDE/kdebase/apps/; revision=759633
2008-01-10 23:42:34 +00:00
Peter Penz
fb00dfe15f Backport: use F3 for "Split View" instead of F10
svn path=/branches/KDE/4.0/kdebase/apps/; revision=759573
2008-01-10 21:35:03 +00:00
Peter Penz
0e58c734c1 Backport of bugfix 154434 (trunk revision 757791): Remember the additional-info property (size, date, type, ...) for each view mode (icons view, details view, column view) individually.
svn path=/branches/KDE/4.0/kdebase/apps/; revision=758210
2008-01-07 07:38:09 +00:00
Peter Penz
e3ed05b372 Remember the additional-info property (size, date, type, ...) for each view mode (icons view, details view, column view) individually.
BUG: 154434
CCMAIL: hein@kde.org

svn path=/trunk/KDE/kdebase/apps/; revision=757791
2008-01-05 22:09:07 +00:00
Jakob Petsovits
05c8b55c73 Icon renaming (code changes - KDE/):
consolidate the fileview-* icons to view-*

svn path=/trunk/KDE/kdebase/apps/; revision=755384
2008-01-01 12:25:48 +00:00
Rafael Fernández López
73fbb1a3d1 Now the konsole part is autodestructed when no tabs do exist. This makes the desired effect on dolphin when typing "exit" on the terminal, the dock will be hidden.
BUG: 153648

svn path=/trunk/KDE/kdebase/apps/; revision=750276
2007-12-19 01:35:09 +00:00
David Faure
bdb91e85ec Disable the action that launches kompare if kompare is not installed.
svn path=/trunk/KDE/kdebase/apps/; revision=750038
2007-12-18 15:08:59 +00:00
Peter Penz
ae44181e5e If the URL navigator is editable and has the focus, Ctrl+A should select the URL and not all items (thanks to Morton O. Hansen for the patch!)
BUG: 153697

svn path=/trunk/KDE/kdebase/apps/; revision=749188
2007-12-16 19:25:59 +00:00
David Faure
609ce09292 Moving code around in dolphin fixes DnD support in konqueror :)
svn path=/trunk/KDE/kdebase/apps/; revision=748476
2007-12-14 15:53:40 +00:00
Peter Penz
5690330220 Allow turning off the feature that additional information might be shown in the icons view. Per default the setting is still on, but for people who prefer browsing with the details view and only temporary switch to the icons view (e. g. for having a larger preview), this feature gets a showstopper (discussed with Eike Hein).
Got the OK from the translator team for adding the new string.

CCMAIL: hein@kde.org

svn path=/trunk/KDE/kdebase/apps/; revision=744901
2007-12-04 20:56:42 +00:00
John Tapsell
a818e555cb Make file properties dialog box non-modal
svn path=/trunk/KDE/kdebase/apps/; revision=743617
2007-12-01 14:06:07 +00:00
Peter Penz
d6488887ec Hide the "Sort by Rating" and "Sort by Tags" menu entries for KDE 4.0, as currently the performance is too slow. Nepomuk will support caching in future versions, so hopefully we can provide those entries again in KDE 4.1.
svn path=/trunk/KDE/kdebase/apps/; revision=743363
2007-11-30 19:19:38 +00:00
Peter Penz
0e6e4bf391 enable session management
CCMAIL: faure@kde.org

svn path=/trunk/KDE/kdebase/apps/; revision=743357
2007-11-30 18:42:17 +00:00
Peter Penz
a26eda8d38 there's no need having 2-liners inside their own method when this method is only invoked once...
svn path=/trunk/KDE/kdebase/apps/; revision=741371
2007-11-25 14:51:41 +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
36c5344dbd Check whether the shift key is pressed when the "Move to Trash" action is executed. If this is the case, perform the "Delete" action instead (-> works like in Konqi now, thanks to David for the hint)
CCMAIL: faure@kde.org

svn path=/trunk/KDE/kdebase/apps/; revision=738259
2007-11-18 13:33:16 +00:00
David Faure
8578ad1e75 Fix "delete" and "move to trash" actions in dolphinpart; moved all logic for those out of konqueror.
Inside dolphin, the usual: moving code to DolphinView.
Pressing shift while clicking on "Move to Trash" in konq (dolphinpart) offers to delete, as in kde3 (this bit of logic might be good for dolphin itself too? see DolphinPart::slotTrashActivated)
CCMAIL: peter.penz@gmx.at

svn path=/trunk/KDE/kdebase/apps/; revision=737682
2007-11-17 00:08:54 +00:00
David Faure
f8302197da Implement cut/copy/paste in dolphinpart.
Had to move more code to DolphinView, to use it from the part.

svn path=/trunk/KDE/kdebase/apps/; revision=737203
2007-11-15 20:04:05 +00:00
David Faure
53d65e6392 Implement renaming in dolphinpart.
No more rename action provided by konqueror, the part provides it now.
Had to move a bit of code around in dolphin, as discussed with Peter.

svn path=/trunk/KDE/kdebase/apps/; revision=737121
2007-11-15 14:59:02 +00:00
David Faure
205bf2035d KonqUndoManager -> KonqFileUndoManager, to prepare for a KonqUndoManager in konqueror,
Taking this opportunity for filename==classname and a .cpp extension, as well.

svn path=/trunk/KDE/kdebase/apps/; revision=737032
2007-11-15 10:10:42 +00:00
Fathi Boudra
4c3dbbb628 Replace file-find icon by edit-find
svn path=/trunk/KDE/kdebase/apps/; revision=732843
2007-11-04 21:54:49 +00:00
Peter Penz
7f94bd6520 KrushDays-fix: fixed issue that F6 does not apply the focus to the URL navigator when the navigator is already in the editable mode
svn path=/trunk/KDE/kdebase/apps/; revision=732773
2007-11-04 18:50:22 +00:00
Andreas Pakulat
87ba6b6e04 Fix the conflict between cut and delete shortcuts
BUG:151601

svn path=/trunk/KDE/kdebase/apps/; revision=732119
2007-11-02 20:50:05 +00:00
Hamish Rodda
65c11d72c9 Results of setShortcut() auditing (QAction::setShortcut() gets called without this patch)
svn path=/trunk/KDE/kdebase/apps/; revision=730698
2007-10-29 11:03:37 +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
Peter Penz
f11c699fa2 due to the recent tagging freeze this commit contains several fixes in one:
* the filterbar now also filters directories (works also in the column-view :-))

* The "Additional Information" menu entry now also works for showing/hiding the columns of the details view. This also implies that the columns for the details view can now be adjusted per directory -> we have now a consistent behavior between the icons view and details view. Still open: the view properties dialog must be fixed

* Don't show a "Nepomuk not available" error message when starting Dolphin and Nepomuk is not available.

* Fix issue that the information panel blocked the application because of parsing the full meta data of a huge file.

svn path=/trunk/KDE/kdebase/apps/; revision=729704
2007-10-26 17:36:16 +00:00
Peter Penz
6c1153092e * don't show a horizontal scrollbar in the places panel
* minor coding style update: replace 'listView' by 'placesView'

svn path=/trunk/KDE/kdebase/apps/; revision=728988
2007-10-24 20:28:28 +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
Kevin Ottens
45c3d6e9ac Reverts commit 726516. We have to report the URL changed to the outside
so that panels can react to the change correctly.

svn path=/trunk/KDE/kdebase/apps/; revision=727475
2007-10-20 17:05:16 +00:00
Rafael Fernández López
5c4420b28a This fixes the problem that when you click the first time on a place
bookmarked it is not shown as selected, but if you click the second time 
it is. Now this is fixed.

CCMAIL: peter.penz@gmx.at

svn path=/trunk/KDE/kdebase/apps/; revision=726516
2007-10-17 21:58:52 +00:00
David Faure
8d4fb36089 DolphinPart: provide a way to switch between view modes in konqueror.
Factorized those actions between dolphinmainwindow and dolphinpart (see new methods in dolphinview), and simplified mainwindow code by using the signal from the action group and the QVariant data of the actions (standard Qt4 solution for a group of actions).

svn path=/trunk/KDE/kdebase/apps/; revision=723871
2007-10-10 23:01:35 +00:00
Peter Penz
3c1c185400 Allow showing additional information like type, size and date in parallel for the icons view (thanks to Fredrik for the extension of KFileItemDelegate!).
svn path=/trunk/KDE/kdebase/apps/; revision=720283
2007-10-02 22:04:36 +00:00
Peter Penz
ba150e5735 replace QList<KFileItem> by KFileItemList, as KFileItemList is not QList<KFileItem*> anymore since todays update of kfileitem.* in kdelibs
svn path=/trunk/KDE/kdebase/apps/; revision=720234
2007-10-02 19:03:03 +00:00
Fredrik Höglund
dbc8874c00 Port dolphin to the KFileItemDelegate API changes.
svn path=/trunk/KDE/kdebase/apps/; revision=719796
2007-10-01 22:06:49 +00:00
Tobias Koenig
29a1b26421 Making KFileItemList value based.
svn path=/trunk/KDE/kdebase/apps/; revision=719514
2007-10-01 08:00:48 +00:00
Peter Penz
d78fe954ab drag and drop fixes for the column view (implied a signal changed which affected other views too)
svn path=/trunk/KDE/kdebase/apps/; revision=713430
2007-09-17 14:36:41 +00:00
Peter Penz
d13a840148 provide backspace as alternative shortcut for "go back"
svn path=/trunk/KDE/kdebase/apps/; revision=710364
2007-09-09 19:02:22 +00:00
Peter Penz
31e0dfb6fe change shortcut from the information sidebar to F11 for having a common setting like in the file dialog
svn path=/trunk/KDE/kdebase/apps/; revision=710257
2007-09-09 12:54:24 +00:00
Peter Penz
f470de267c F9 opens the places panel (-> consistent with file-dialog), F7 the folders panel ("tree-view")
svn path=/trunk/KDE/kdebase/apps/; revision=706369
2007-08-30 06:20:24 +00:00
Peter Penz
33f7cf63cb use new icons for closing the inactive view
svn path=/trunk/KDE/kdebase/apps/; revision=704543
2007-08-25 09:54:31 +00:00
Peter Penz
ce35ec9f3d The inactive view gets closed, no joining is done -> fix text
svn path=/trunk/KDE/kdebase/apps/; revision=700674
2007-08-16 06:59:36 +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
c349180c08 * fixed issue that when having a split view, that both views get the same color after OK or Apply has been pressed inside the Dolphin settings dialog
* prepare for toggling the view icon depending from the activation state

svn path=/trunk/KDE/kdebase/apps/; revision=699311
2007-08-12 17:48:29 +00:00
Peter Penz
e12944d443 Don't add the terminal to the right docking area, if it may only get aligned on the top and bottom.
svn path=/trunk/KDE/kdebase/apps/; revision=692484
2007-07-25 17:32:37 +00:00
Peter Penz
d5b2e29be3 apply shortcuts for docks
svn path=/trunk/KDE/kdebase/apps/; revision=687484
2007-07-13 18:25:36 +00:00
Peter Penz
09860f7cf4 instead of "Sort" -> "By Name", "By Date", "By Size", ...
use "Sort By" -> "Name", Date", "Size", ...

svn path=/trunk/KDE/kdebase/apps/; revision=687480
2007-07-13 18:14:41 +00:00
Peter Penz
ea3e000501 KUIT adaptions
svn path=/trunk/KDE/kdebase/apps/; revision=685432
2007-07-08 21:09:48 +00:00
David Faure
d89f43f66b Change signature of requestItemInfo signal, to avoid fileitem -> url -> index -> fileitem roundtrip in dolphin,
and to match the BrowserExtension mouseOverInfo() signal.
Started to implement more of the part (e.g. spinning wheel in konq).

svn path=/trunk/KDE/kdebase/apps/; revision=682440
2007-07-02 17:24:54 +00:00
Peter Penz
6b42e7ba3b KUIT adaptions
svn path=/trunk/KDE/kdebase/apps/; revision=681920
2007-06-30 20:10:50 +00:00
Peter Penz
afc732d220 Fix the following reproducible crash in a slightly different way (reported + initial fix done by Rafael):
* Open Dolphin. Enable categorization.
* Split the view. Disable categorization on the right one.
* Join the views.

CCMAIL: ereslibre@gmail.com

svn path=/trunk/KDE/kdebase/apps/; revision=680956
2007-06-27 15:15:29 +00:00
Rafael Fernández López
14a666ce8d Fix crash. Steps to reproduce:
* Open Dolphin. Enable categorization.
* Split the view. Disable categorization on the right one.
* Join the views.

I am not sure if this is the best way to proceed for this small bug. Please Peter, take a look.

CCMAIL: peter.penz@gmx.at

svn path=/trunk/KDE/kdebase/apps/; revision=680499
2007-06-26 11:50:54 +00:00
Rafael Fernández López
66f4c8b3c8 Fix compile problems on systems that don't want nepomuk. eeek !
svn path=/trunk/KDE/kdebase/apps/; revision=679265
2007-06-23 13:12:21 +00:00
Peter Penz
4062c4cf2d Allow to sort by rating, which can be quite useful in combination with the "Show in Groups" feature. Although still slow, it basically works. All the code is based on Rafael Fernández López patch available at http://media.ereslibre.es/2007/06/dolphin-21062007.diff.
svn path=/trunk/KDE/kdebase/apps/; revision=678801
2007-06-22 10:18:46 +00:00
Peter Penz
9f81672476 split view on startup if it is defined by the settings
svn path=/trunk/KDE/kdebase/apps/; revision=678063
2007-06-20 15:46:57 +00:00
Rafael Fernández López
7cd33328af EBN fixes
svn path=/trunk/KDE/kdebase/apps/; revision=677715
2007-06-19 19:17:32 +00:00
Peter Penz
5926d0fddd * fixed issue that some view properties like "show in groups" are ignored when a new DolphinViewContainer has been created (happens on startup or when a view is split)
* get rid of redundant parameter in constructors of DolphinView and DolphinViewContainer

svn path=/trunk/KDE/kdebase/apps/; revision=677654
2007-06-19 16:35:52 +00:00
Peter Penz
d79282c14c * move the "[ ] Show in Groups" checkbox from "View->Sort By" directly to "View"
* same for the viewproperties dialog: don't hide "Show in Groups" under "Sorting"

svn path=/trunk/KDE/kdebase/apps/; revision=677641
2007-06-19 16:00:21 +00:00
Kevin Ottens
2b8e67d7f2 Make use of the error messages coming from the places model.
svn path=/trunk/KDE/kdebase/apps/; revision=675760
2007-06-15 00:52:25 +00:00
Peter Penz
862ceee323 fixed some activation issues in combination with split views
svn path=/trunk/KDE/kdebase/apps/; revision=674980
2007-06-13 17:08:39 +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
Sebastian Trueg
b2547cf9a4 Adapt Dolphin Nepomuk support to namespace changes.
svn path=/trunk/KDE/kdebase/apps/; revision=674158
2007-06-11 21:46:04 +00:00
Peter Penz
ce4dd84c27 assure that the view actions are updated when the split view is activated
svn path=/trunk/KDE/kdebase/apps/; revision=672702
2007-06-07 21:41: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
e4dddba6b6 Don't use a toggle action for "Split/Join" if the text and icon is changed dynamically.
svn path=/trunk/KDE/kdebase/apps/; revision=671043
2007-06-03 15:50:52 +00:00
Peter Penz
be17fe5a35 David Vignoni recommended to exchange the icon for "Preview"... Fixed now :-)
svn path=/trunk/KDE/kdebase/apps/; revision=671034
2007-06-03 15:19:52 +00:00
Peter Penz
19dadee2cf also toggle the text between "Split" and "Join" for the split action
svn path=/trunk/KDE/kdebase/apps/; revision=671018
2007-06-03 14:07:45 +00:00
Peter Penz
2d8209f072 update to David's suggestion for split view (http://davigno.oxygen-icons.org/?p=43)
svn path=/trunk/KDE/kdebase/apps/; revision=671011
2007-06-03 13:56:06 +00:00
Peter Penz
144c3d0f7c use "fileview-icon" instead of "view-icon" (thanks to David Vignoni for the update!)
svn path=/trunk/KDE/kdebase/apps/; revision=671004
2007-06-03 13:31:16 +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
Peter Penz
5c1e93481a EBN fixes + minor coding guideline fixes (thanks to Max Blazejak!).
svn path=/trunk/KDE/kdebase/apps/; revision=666164
2007-05-18 23:51:03 +00:00
Peter Penz
2ed4d8dcc4 information sidebar fixes:
- provide meta information when hovering items
- don't increase the sidebar width, if the item name is longer than the available width

svn path=/trunk/KDE/kdebase/apps/; revision=665646
2007-05-17 14:51:54 +00:00
Peter Penz
c35843f38c when the column view is used, then 'Split view' should take the root URL of the column view as new base for the secondary view
svn path=/trunk/KDE/kdebase/apps/; revision=665630
2007-05-17 13:29:13 +00:00
Peter Penz
8e4e7ce5b2 when having split views: darken the background color of the inactive view
svn path=/trunk/KDE/kdebase/apps/; revision=665612
2007-05-17 12:00:50 +00:00
Robert Knight
09224b911a Better choice of phrase: 'Categorized' -> 'Show in Groups'
svn path=/trunk/KDE/kdebase/apps/; revision=665189
2007-05-16 05:52:03 +00:00
Peter Penz
6ab84fbd61 don't lose the history of the URL navigator if the settings of the Icons View, Details View or Columns View have been changed
svn path=/trunk/KDE/kdebase/apps/; revision=663282
2007-05-10 18:27:32 +00:00
Dirk Mueller
a333c0d744 include cleanup
svn path=/trunk/KDE/kdebase/apps/; revision=663054
2007-05-09 22:23:52 +00:00
Luboš Luňák
dfe4a7598a Compile.
svn path=/trunk/KDE/kdebase/libkonq/; revision=662159
2007-05-07 15:10:51 +00:00
Peter Penz
87d2df39b5 don't use '/' as shortcut for filtering, this conflicts with the usage of the embedded terminal
svn path=/trunk/KDE/kdebase/apps/; revision=661959
2007-05-07 05:33:20 +00:00
Peter Penz
35ee348c45 Initial step for showing the terminal embedded inside Dolphin instead of opening a separate window. This allows to synchronize the current directory of the terminal with the shown directory in Dolphin.
svn path=/trunk/KDE/kdebase/apps/; revision=661890
2007-05-06 21:50:24 +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
5f87a8130e revert last commit, it leads to the uncommon behavior that the last state of the settings dialog is remembered (grmpf - I should do more testing... ;-))
svn path=/trunk/KDE/kdebase/apps/; revision=661511
2007-05-05 21:02:04 +00:00
Peter Penz
d00a895131 let the settings dialog be a singleton (thanks to Max Blazejak for the patch!)
svn path=/trunk/KDE/kdebase/apps/; revision=661508
2007-05-05 20:53:14 +00:00
Peter Penz
7b286a5463 let the information sidebar react on selection changes
svn path=/trunk/KDE/kdebase/apps/; revision=660580
2007-05-03 05:52:54 +00:00
Peter Penz
11c836057b don't connect each sidebar page with all available signals per default
svn path=/trunk/KDE/kdebase/apps/; revision=660258
2007-05-02 05:15:03 +00:00
Peter Penz
0c05681708 reactivated info sidebar again and temporary removed the code which resets the URL after starting Dolphin
svn path=/trunk/KDE/kdebase/apps/; revision=656979
2007-04-22 21:27:40 +00:00
Peter Penz
a195131147 allow sorting by type
svn path=/trunk/KDE/kdebase/apps/; revision=656971
2007-04-22 21:04:46 +00:00
Simon Hausmann
931d9cc75a Merging branches/work/kmainwindow-decoupling-branch from Kevin and me which
separates the xmlgui stuff from KMainWindow

svn path=/trunk/KDE/kdebase/apps/; revision=654728
2007-04-16 20:44:36 +00:00
Peter Penz
c0ec582ae7 use new "column view" icon (thanks to David Vignoni)
svn path=/trunk/KDE/kdebase/apps/; revision=654713
2007-04-16 20:08:09 +00:00
Peter Penz
c927a2a290 fixed shortcut for "Find"
svn path=/trunk/KDE/kdebase/apps/; revision=653948
2007-04-14 17:21:53 +00:00
Peter Penz
b72bd12276 allow to turn on/off the places panel by the menu
svn path=/trunk/KDE/kdebase/apps/; revision=653936
2007-04-14 16:50:51 +00:00
Kevin Ottens
4216e814d4 Those hacks are not needed anymore for autosaving.
svn path=/trunk/KDE/kdebase/apps/; revision=653522
2007-04-13 14:44:18 +00:00
Peter Penz
b42bd8c69d minor coding style cleanups
svn path=/trunk/KDE/kdebase/apps/; revision=653127
2007-04-12 17:37:53 +00:00
Peter Penz
a2ad1ba4cc use "folder" instead of "directory" for all visible strings
svn path=/trunk/KDE/kdebase/apps/; revision=652471
2007-04-11 05:42:11 +00:00
Peter Penz
6422ae393e allow to enable the categorization feature for sorting
svn path=/trunk/KDE/kdebase/apps/; revision=652200
2007-04-10 11:22:56 +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
Peter Penz
714d08f17c adaptions to the cleaned up interface of KUrlNavigator
svn path=/trunk/KDE/kdebase/apps/; revision=651675
2007-04-08 21:07:41 +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
Pino Toscano
0c0f0d8f72 Qt::Ascending -> Qt::AscendingOrder
Qt::Descending -> Qt::DescendingOrder

svn path=/trunk/KDE/kdebase/apps/; revision=650398
2007-04-04 13:02:52 +00:00
Kevin Ottens
03713b0ab4 Rename all the URL navigator related classes to prepare their migration
in kdelibs.

svn path=/trunk/KDE/kdebase/apps/; revision=649514
2007-04-02 19:20:07 +00:00
Kevin Ottens
c6d0d2b92d Introduce KFilePlacesView which is a list view adding the navigation
logic. Suitable to interface it in Dolphin or the KFileDialog.


svn path=/trunk/KDE/kdebase/apps/; revision=649204
2007-04-02 08:51:57 +00:00
Peter Penz
55f6f1d411 don't force a confirmation for deleting in Dolphin if the user has turned it off globally for KDE
svn path=/trunk/KDE/kdebase/apps/; revision=649112
2007-04-02 05:26:01 +00:00
Kevin Ottens
056ac9a271 Add the KFilePlacesModel class. It allows to list user's "places" (a mix
of bookmarks and volume devices). Still incomplete, for now it simply 
list the places (drag and drop, and more interaction needs to be 
implemented). It's supposed to move into kdelibs/kio soon.

svn path=/trunk/KDE/kdebase/apps/; revision=649038
2007-04-01 22:28:03 +00:00
Peter Penz
9d0718ad39 use default 'do you really want to delete...' dialog from libkonq
svn path=/trunk/KDE/kdebase/apps/; revision=648962
2007-04-01 19:08:49 +00:00
Peter Penz
4908c5e60c changed EOL from windows to unix
svn path=/trunk/KDE/kdebase/apps/; revision=648942
2007-04-01 18:36:23 +00:00
Peter Penz
05fe35c4e8 reload view when the settings are applied
svn path=/trunk/KDE/kdebase/apps/; revision=648929
2007-04-01 18:08:24 +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
Peter Penz
fd060ce7f6 Initial version for a column view support (thanks a lot to Benjamin Meyer for QColumnView in Qt4.3!). Currently there is a problem when using the DolphinSortFilterProxyModel: some items get duplicated, but I doubt it's an issue in QColumnView (the same issue occurs when using QTreeView) -> further investigations necessary...
svn path=/trunk/KDE/kdebase/apps/; revision=647234
2007-03-27 19:08:44 +00:00
David Faure
85bc196887 Ported to KBookmarkManager::closestBookmark - which even solves another TODO about code duplication.
Improved urlnavigator API to avoid exposing the full QList (api independent from implementation now).

svn path=/trunk/KDE/kdebase/apps/; revision=646954
2007-03-26 23:04:43 +00:00
David Faure
ad6c01d200 Using a QLinkedList mostly for "accessing element at index i" is not the best solution performance-wise... use a QList instead.
svn path=/trunk/KDE/kdebase/apps/; revision=646813
2007-03-26 18:34:52 +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
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
Sebastian Trueg
4af3a2dcb4 Improved KMetaData integration. The Dolphin info sidebar now uses KMetaData to allow file rating, commenting, and tagging.
This commit is indended to show what can be done with KMetaData in an easy way. The GUI is not perfect yet.

svn path=/trunk/KDE/kdebase/apps/; revision=644510
2007-03-20 09:01:22 +00:00
Peter Penz
242bda1ead let the context menu be aware about the trash
svn path=/trunk/KDE/kdebase/apps/; revision=642935
2007-03-15 21:24:41 +00:00
Peter Penz
d9ac44e08f Allow renaming of items (note that currently the "rename multiple files" dialog is temporary used for this until KFileItemDelegate offers editing functionality).
svn path=/trunk/KDE/kdebase/apps/; revision=642219
2007-03-13 17:31:54 +00:00
Peter Penz
a6d59a1381 replaced string "MIME Type" by "Type"
svn path=/trunk/KDE/kdebase/apps/; revision=641540
2007-03-11 18:28:59 +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
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
175f629b69 fix internationalization issue
svn path=/trunk/KDE/kdebase/apps/; revision=641301
2007-03-10 20:45:07 +00:00
Peter Penz
bfcf764b69 Fixed icon-names so that they match to the new Oxygen naming scheme (erase all Dolphin config files to see the effect). Although Oxygen is not finished yet, it looks very beautiful already, kudos to the Oxygen team :-)
svn path=/trunk/KDE/kdebase/apps/; revision=641285
2007-03-10 19:41:49 +00:00
Aaron J. Seigo
3759f51a13 oxygen icon naming fixes from Luca Gugelmann
svn path=/trunk/KDE/kdebase/libkonq/; revision=640669
2007-03-08 19:32:19 +00:00
Peter Penz
9470a816eb Per default turn off the information panel and the tree view panel for the first start of Dolphin, only show the bookmarks panel.
svn path=/trunk/KDE/kdebase/apps/; revision=639007
2007-03-04 00:39:21 +00:00
Peter Penz
fe8b349bce It seems some people cannot live without a tree view ;-) So Dolphin will provide a dock which contains the directory hierarchy, which will be synchronized with the active view. It does not clutter the UI (the dock can be turned off), but makes happy a lot of users -> kind of win-win-situation. This commit provides only a rough initial version, which shows the current URL as tree. I'll work on the interaction during the next week(s)...
svn path=/trunk/KDE/kdebase/apps/; revision=638628
2007-03-02 18:59:09 +00:00