Commit graph

705 commits

Author SHA1 Message Date
David Faure
8bbddb3b63 Merge remote-tracking branch 'origin/KDE/4.11' 2013-10-15 09:08:47 +02:00
Frank Reininghaus
96ba990d86 Fix crash when triggereing the "Compare files" action via D-Bus
If the number of selected items is not two, Dolphin disables this
action. However, it is still possible to trigger it via D-Bus, and this
could cause a crash in DolphinMainWindow::compareFiles() because this
function did not test at all if there are really two items selected.

This patch adds such a check and simplifies the code in that function.

BUG: 325517
FIXED-IN: 4.11.3
2013-10-13 10:55:21 +02:00
Erik Hahn
0c55297ce4 Files passed as arguments: Ignore unsupported files
With this patch, Dolphin ignores all files passed to it that it can't

Also, archives are now opened inside Dolphin so it can be used as an
archive manager at least for local files. If the user tries to open a
remote archive Dolphin still opens it externally; I have observed that
if it receives one as an argument, it will display a pseudo-folder that
contains only said archive. So having it set as the archive handler is
still broken, but in a less annoying way.

CCBUG: 318683
REVIEW: 113191
FIXED-IN: 4.11.3
2013-10-13 10:48:00 +02: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
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
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
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
Simeon Bird
72de114a94 Merge branch 'KDE/4.10' 2013-01-15 11:11:11 -05:00
Kai Uwe Broulik
dde672ac94 Don't delay popup menus of "Create New" and "Recently Closed Tabs" toolbar buttons
REVIEW: 108397
2013-01-14 10:42:03 +01:00
Emmanuel Pescosta
804d8119b3 Fix Bug 233335 - Wrong icons selected after pasting files and renaming them (because there exists items with it's names
Fixed the "same" buggy behavior when dropping files/folders

Select also putted files (PUT operation - SimpleJob) - e.g. Paste content from clipboard

BUG: 233335
REVIEW: 107351
2013-01-09 15:16:30 +01:00
Frank Reininghaus
1353c92cce Fix some indentation issues 2012-10-30 08:25:21 +01:00
Dawit Alemayehu
bc66254304 Merge branch '4.9' 2012-10-03 15:09:58 -04:00
Frank Reininghaus
0e49df9214 Find out the main window by calling the parent widget's window() member
KFileItemModel calls the dir lister's setMainWindow() method to make
sure that the dir lister caches authentication data. However, the method
used to determine the main window (qApp->activeWindow()) is not
guaranteed to yield the DolphinMainWindow or the KonqMainWindow. In
particular, if "Split View" is enabled in Dolphin's settings dialog, the
active window is the dialog, and when it is closed, any later access to
the stored pointer leads to a crash.

A better method is to verify that the model's parent is a QWidget and
then use this widget's window(). I had to make a small modification in
DolphinMainWindow to make sure that it also works correctly when the
view is split (the new view container had been created with a 0 parent
previously).

I tested it in Dolphin and Konqueror and verified that the "main window"
passed to the dir lister is really the application's main window.

BUG: 306459
FIXED-IN: 4.9.3
2012-09-29 19:53:14 +02:00
Emmanuel Pescosta
e280e7f68c Fixes Bug 242007 - "Open Folder during Drag operation" cannot go into different partition using "Places Panel"
BUG: 242007
REVIEW: 106380
2012-09-11 20:09:01 +02:00
Emmanuel Pescosta
9e203ab2b9 Changed the behaviour when middle clicking folders in places- and folders-dockwidget. Now it opens the folders in a new background tab (General behaviour of Dolphin)
BUG: 196263
REVIEW: 106069
2012-08-23 21:14:56 +02:00
David Faure
5fbe52c151 Fix open-in-new-window to work with remote URLs
FIXED-IN: 4.9.0
BUGS: 274655, 292822
2012-08-13 22:25:28 +02:00
Jekyll Wu
db54a5800e Swap shortcuts of "editable_location" and "replace_location" actions
That makes "Ctrl+L" less surprising to users who use it frequently in
web browsers

BUG: 183821
FIXED-IN: 4.10.0
REVIEW: 105994
2012-08-13 13:12:11 +08:00
David Faure
4a0454ff88 Fix open-in-new-window to work with remote URLs
FIXED-IN: 4.9.0
BUGS: 274655, 292822
2012-07-18 20:41:38 +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
cb1f42a1eb Places Panel: Minor fixes/improvements
- Determine group of a new entry dependent from the protocol
- Allow panels to forward error-messages to the view-container
  (also applied to Folders Panel)
2012-04-30 18:27:56 +02:00
Frank Reininghaus
12c239ae14 Update the view when changing the directory using 'cd' in the terminal
Thanks to Jekyll Wu for helping to implement this feature!

FEATURE: 156732
FIXED-IN: 4.9.0
2012-04-26 08:31:59 +02:00
Peter Penz
640696db72 Places panel: Internal cleanup
Move the bookmark handling into a custom model, so that the
PlacesPanel only contains UI + controller code.
2012-04-25 23:02:40 +02:00
Peter Penz
67f58d5082 Fix search-UI issues in combination with the new places entries
The places-entries for searching revealed some serious issues in
combination with the search-panel. Move the filtering away from
QDockWidget and bring it back below the search-bar.
2012-04-25 02:20:25 +02:00
Peter Penz
007907be20 Bring back basic bookmark support for the Places Panel
The folders-panel signals have been adjusted too for consistency.
2012-04-21 23:29:11 +02:00
Peter Penz
ae4d11d918 Prepare view-engine for non-KFileItem usecase
Up to now the view-engine only provided a model-implementation that
supports file-items. The view-engine always had been designed to be able
to work with any kind of model, so now a KStandardItemModel is available.
The plan is to convert the places panel to the new view-engine. It should
be no problem to fix this until the feature freeze - in the worst case
the places-panel code could be reverted while still keeping the
KStandardItemModel changes.
2012-04-21 21:32:42 +02:00
Peter Penz
beeb9078f5 Ensure authentication data is cached properly
The attached patch sets the main window on the main directory
lister in DolphinView and KIO jobs in DolphinMainWindow to ensure
that login data for remote protocols such as sftp, ftp are cached
properly for the duration of the application. Otherwise, the end
user is going to end up being unnecessarily re-prompted to enter
password login information.

Thanks to Dawit Alemayehu for the patch!

REVIEW: 104614
FIXED-IN: 4.9.0
2012-04-17 22:21:55 +02:00
Peter Penz
b2e54c3a31 Implement inline-renaming for the new view-engine
BUG: 286893
FIXED-IN: 4.9.0
2012-04-17 18:15:12 +02:00
Peter Penz
31ee4085c2 Use KMessageWidget for error- and information-messages
See http://agateau.com/2011/04/21/kde-ux-2011/ for more details.
This simplifies the statusbar in Dolphin a lot and allows to
do a proper eliding in case if status-messages are too long: In
this case a tooltip will show the whole status-message (thanks
to Wolfgang Mader for the initial patch!).

There is still missing some finetuning but the general approach
seems to work quite nice.

BUG: 249638
BUG: 245618
BUG: 146533
FIXED-IN: 4.9.0
2012-04-13 00:11:36 +02:00
Peter Penz
40c71d5ce0 KFileItemModel: interface cleanups
Fix some naming inconsistencies regarding the usage of 'dir' vs.
'directory' vs. 'folder'.
2012-04-11 21:53:45 +02:00
Peter Penz
b28a5a6248 Minor API-cleanups for DolphinView 2012-04-11 16:43:11 +02:00
Peter Penz
6c3d9acbc2 KItemViews: Internal directory restructuration
- Move all private headers from the kitemviews-directory into
the 'private' subdirectory.

- Get rid of DolphinDirLister and just use a directory-lister
  internally in KFileItemModel.

- Minor interface-cleanups for signals
2012-04-11 16:08:32 +02:00
Peter Penz
d90da9a85e Remove toolbar-spacer if the menu has been disabled
Aligning the control-button to the right of Dolphin has the problem
that sub-menus might be opened on the left of the menu if the Dolphin
window reaches the right of the desktop. So the toolbar-spacer has
been removed and a default label has been applied to the control-button
to increase the target-area for opening the menu.
2012-04-08 00:11:17 +02:00
Peter Penz
5798e081f5 Let additional mouse buttons trigger history navigation
Thanks to Sebastian Dörner for the patch!

REVIEW: 101335
BUG: 181823
FIXED-IN: 4.9
2012-03-19 16:53:53 +01:00
Peter Penz
21a5a890b3 Whitespace cleanups and documentation fixes 2012-02-23 17:28:03 +01:00
Peter Penz
e283a9f7d9 Synchronize view-mode settings before the settings dialog gets opened
BUG: 292698
FIXED-IN: 4.8.1
2012-01-30 16:38:24 +01:00
Peter Penz
1d7088b1ad Fix drag & drop issues with non-local URLs
BUG: 292821
BUG: 292355
FIXED-IN: 4.8.1
2012-01-30 12:09:36 +01:00
Peter Penz
a4553c9747 Fix regression: Allow dragging items on a tab
BUG: 292505
FIXED-IN: 4.8.1
2012-01-27 22:01:05 +01:00
Peter Penz
329f6009a8 Don't crash when opening a tab with enabled split view
BUG: 292470
FIXED-IN: 4.8.1
2012-01-27 22:01:04 +01:00
Jekyll Wu
f3a38fc51a Middle clicking the 'Home' button should open home folder in a new tab
The general idea is to make it behave consistently with other navigating
buttons.

BUG: 278194
FIXED-IN:4.8.0
REVIEW:103659
2012-01-10 20:06:26 +08:00
Peter Penz
1d27156cdc Prevent unwanted item animations (#2)
Use a cleaner approach to prevent item animations when showing
a hidden tab the first time. For Dolphin > 2.0 the tab-code should
be refactored from DolphinMainWindow and encapsulated into an
own module (but well, this is on my TODO-list since KDE SC 4.4...)
2011-12-07 23:49:58 +01:00
Peter Penz
5a3e79e4ed Prevent unwanted item animations
When splitting the view or opening a new tab there should not be
any animation of the items due to a wrong initial viewport size.
2011-12-07 21:57:12 +01:00
Peter Penz
36b8989179 Fix shortcut issue with panels
The KAction instance of the panels is added to the menu instance
now instead of the QDock-actions. It is assured that the state
between the actions gets synchronized. Now it's possible for
the user to apply custom shortcuts and the shortcuts are also
shown in the menu as expected.

CCMAIL: lueck@hube-lueck.de
2011-11-21 11:08:26 +01:00
Peter Penz
3c079ee3f9 Show panel shortcuts in menu 2011-11-20 20:03:59 +01:00
Peter Penz
dc8ec1bf01 Fix crash when toggling the menu-bar visibility
Use a queued connection to prevent that the menu
gets hidden during it is still open. Thanks to
Christoph Feck for the hint!

Frank and I could not reproduce the issue in our
environments even when following the steps from
bug 278366, however Christoph's hint sounds sane
and let's hope it works (leaves a bad gut feeling
to "fix" bugs without being able to verify them).

CCBUG: 286822
CCBUG: 278366
FIXED-IN: 4.7.4
2011-11-19 06:51:31 +01:00
Peter Penz
3c77ffe832 Delete obsolete class DolphinSettings 2011-11-06 11:59:26 +01:00
Peter Penz
4fcb5662a7 Fix issues with applying wrong view-mode
- The view properties dialog mixed the details-view with
  the compact-view (#285848).

- The view properties have been reset when applying a
  setting from the "Dolphin Preferences" dialog. The rootcause
  was that the obsolete DolphinSettings class implemented
  the saving in a wrong way because of the recent refactoring
  (will remove this class completely now to prevent such
  issues in future).

BUG: 285848
FIXED-IN: 4.8.0
2011-11-06 09:56:14 +01:00
Peter Penz
90e39e3116 Allow changing shortcuts for the Panel actions
Until now the shortcuts of the Panel actions could not be changed
as they did not show up in the "Configure shortcuts..." dialog.

The patch is based on the work of "SiegeLord" and Fabian Henze
attached to bug 273050.

BUG: 273050
FIXED-IN: 4.8.0
2011-10-10 22:08:23 +02:00
Jaime Torres
c9156fdaf9 avoid two possible null pointer dereferences
move the setToolTip lines outside the if(action) inside it.
do not crash if there is no action.
2011-10-09 11:12:22 +02: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
Chirag Anand
9ca11175a4 Fixed bug for selecting files with --select parameter.
Files selected via --select parameter did not get current item focus.
And if files were deleted while being current item, updating the view
would select the next item instead of the first item in the list.

BUG: 257805
CCMAIL: peter.penz19@gmail.com
CCMAIL: frank78ac@googlemail.com
2011-09-22 18:08:49 +05:30
Peter Penz
8266e456a1 Simplified code for the viewmode settings 2011-09-02 19:49:49 +02:00
Peter Penz
e57bef0261 Remove "FirstRun" property
The property got obsoleted by the "Version" property.
2011-08-14 15:31:58 +02:00
Peter Penz
d11de1855f Don't enable the search panel per default
Assure that the search panel also stays disabled when updating
from an older Dolphin version.

BUG: 279348
FIXED-IN: 4.7.1
2011-08-13 12:45:14 +02:00
Kai Uwe Broulik
6e76582694 Add missing separators to the "Help" sub-menu of Dolphin's menubar replacement like all KDE apps have
BUG: 276560
2011-08-01 18:26:18 +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
Burkhard Lück
7ca4e389be Add missing actions to report bug + switch language to Help menu in dolphin whithout menubar
Using Dolphin in default mode in master/4.7 whithout menubar the user has no actions to report a bug or switch language.
Add these missing actions the Help menu launched from the toolbar button Configure and control Dolphin.
REVIEW: 101597
2011-06-13 08:26:07 +02:00
Peter Penz
8f6045bac7 Fix position of toolbar-menu
CCBUG: 274495
2011-06-10 16:27:39 +02:00
Sebastian Dörner
0a7c5997df Fix problems with commit 8d789f2626
- fix crash when Ctrl-D-ing in the terminal
 - don't respond to window manager actions, only when the dock itself is
   hidden

Refers to commit 8d789f2626
2011-06-01 21:53:44 +01:00
Peter Penz
2fcd3dd788 Fix position of Dolphin menu with multiple-screens setup
BUG: 274495
FIXED-IN: 4.7.0
2011-05-30 16:33:35 +02:00
Frank Reininghaus
009535d910 Fix build failure if Nepomuk is not available.
Thanks to Krzysztof Nowicki for the patch!
BUG: 274297
2011-05-28 00:17:17 +02:00
Sebastian Dörner
603ec47b8b Don't let hidden terminals prevent unmounting
Previous state: When the terminal is hidden, the cwd is not updated
anymore. If it was on a removable device when hiding, the hidden
terminal might prevent unmounting this device.
This patch fixes that bug by changing the cwd to "/" when hiding the panel.

REVIEW: 101387
BUG: 158264
FIXED-IN: 4.7.0
2011-05-25 22:19:11 +01:00
Peter Penz
371e718ec5 Fix enabled/disabled issue of Search Panel 2011-04-20 22:11:22 +02:00
Peter Penz
ae488b1318 Improve usability of Search Panel
If the Search Panel is shown outside the context of the "Find" mode it
will be always enabled and does a global search. Only if the user is in
the "Find" mode and the searching is restricted to the current directory
the Search Panel might get disabled if the current directory is not
indexed. This solves the major usability issue that it was not clear
for the users whether a global or restricted search is done.
2011-04-20 20:09:08 +02:00
Peter Penz
d4be11f205 Assure that the startup-settings are applied immediately 2011-04-15 20:53:13 +02:00
Peter Penz
de077f8477 Let each DolphinMainWindow run in a custom process
A possible crash in one Dolphin window should not result in crashing
other Dolphin windows. Beside this it also prevents issues with
modal dialogs or notifications.

BUG: 269950
BUG: 206053
BUG: 196034
FIXED-IN: 4.7.0
2011-04-12 20:08:08 +02:00
Peter Penz
2baa9ec45a Optimize alignment of toolbar menu
Try to align the toolbar menu within the Dolphin window to
reduce the cases where the sub-menus overlap with the right
screen border.
2011-04-08 19:38:37 +02:00
Frederik Schwarzer
33635cd40c Add missing i18n call 2011-04-06 00:36:39 +02:00
Peter Penz
5ff682d852 Readd the "go home" action
It got accidently lost during the menu-button changes. Also the
clearStatusBar() calls have been removed as this is handled in the
DolphinViewContainer internally since a long time already.
2011-03-29 18:37:40 +02:00
Peter Penz
c80b261505 Update the size of the menu toolbar-item
If the icon size of the toolbar has been changed, the manually added
menu toolbar-item must be updated.
2011-03-27 19:07:14 +02:00
Peter Penz
5647aab1e3 Minor optimizations for the menu toolbar-item 2011-03-27 18:46:08 +02:00
Peter Penz
bbef0013a1 Don't use a submenu for the settings
If the toolbar-menu is used just put the settings-related entries
directly to the root instead of collecting them in a sub-menu.
2011-03-27 17:43:02 +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
a90938c414 Show places selector of URL navigator only when required
The places selector of the URL navigator only needs to get shown
if the Places panel is invisible.
2011-03-26 16:38:34 +01:00
Peter Penz
984c20161b Add search modes for the Search Panel
The search panel must get a hint whether clicking on the facets should result in searching everywhere or from the current folder. It is not sufficient to check the search-settings of the "Find:"-box, as when the "Find:"-box is invisible there is no hint for the user what kind of searching is done and the setting must be ignored.
2011-03-10 23:21:42 +01:00
Peter Penz
65b5d7d8e3 Rename the "Filter Panel" to "Search Panel"
Bug reports indicate that users are confused by the term "filter" for this.
2011-03-09 19:19:54 +01:00
Peter Penz
39911cad18 Prevent unnecessary reloading of KDirLister on startup
When Dolphin is started with a directory as argument unnecessary reload operations of KDirListers are done. The patch improves this by just letting the DolphinView internally do a loading as soon as it gets visible (and without reloading). Also in case if only one directory is passed as argument the current tab gets reused instead of creating new tabs and removing the current tab.

Thanks a lot to David Faure for pointing out this unefficient handling.
2011-03-08 22:32:49 +01:00
Sebastian Dörner
2a5b3ec615 Consistently use binary operators to connect QFlags 2011-02-27 23:06:14 +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
Peter Penz
fd74aa8e20 Update e-mail address from peter.penz@gmx.at to peter.penz19@gmail.com 2011-02-04 15:57:33 +01:00
Peter Penz
8eb9b508ca Use capitalized KDE includes 2011-02-04 15:43:21 +01:00
Peter Penz
7045a25e3a Fix visibility- and enabled-issues for the filter-panel
The filter-panel should be disabled if the current folder is not indexed at all. Also when triggering a "Find" the filter-panel should stay invisible per default when the current folder is not indexed.

CCBUG: 264969
2011-02-02 19:36:08 +01:00
Sebastian Doerner
aef40807d1 Fix crash when detaching a tab with "Split View Mode" setting enabled
svn path=/trunk/KDE/kdebase/apps/; revision=1217560
2011-01-27 21:30:45 +00:00
Peter Penz
75a6e8fb2a Fix regression introduced by SVN commit 1214916: The navigator should get the focus when "Replace Location" is invoked.
CCMAIL: sebastian@sebastian-doerner.de

svn path=/trunk/KDE/kdebase/apps/; revision=1215110
2011-01-17 17:39:36 +00:00
Sebastian Doerner
f5f6c89c3f Simplify DolphinMainWindow::replaceLocation()
svn path=/trunk/KDE/kdebase/apps/; revision=1214916
2011-01-16 21:18:18 +00:00
Peter Penz
eaf7c9ab2b SVN_SILENT: Remove unused method
svn path=/trunk/KDE/kdebase/apps/; revision=1212992
2011-01-08 23:11:34 +00:00
Sebastian Doerner
6866686dd2 Fix sanity check in toggleViews()
svn path=/trunk/KDE/kdebase/apps/; revision=1212950
2011-01-08 19:08:49 +00:00
Peter Penz
d257bcb21c Add the "Lock Panels"/"Unlock Panels"-action to the context-menu of the Places Panel.
svn path=/trunk/KDE/kdebase/apps/; revision=1211709
2011-01-04 17:54:58 +00:00
Peter Penz
a5c75b52fe SVN_SILENT: Don't connect to non-existing signal/slot
svn path=/trunk/KDE/kdebase/apps/; revision=1210426
2010-12-31 11:06:49 +00:00
Peter Penz
9481509325 Lock panels per default and allow to unlock them like in Amarok.
BUG: 229811
FIXED-IN: 4.7.0

svn path=/trunk/KDE/kdebase/apps/; revision=1210424
2010-12-31 10:59:46 +00:00
Peter Penz
f7bbe21b5b Fix regression introduced in 4.5 and allow to add the menu actions "Show Information Panel", "Show Folders Panel", "Show Terminal Panel", "Show Places Panel" and "Show Places Panel" to the toolbar like in KDE SC 4.4.
BUG: 250847
FIXED-IN: 4.6.0

svn path=/trunk/KDE/kdebase/apps/; revision=1207728
2010-12-19 12:48:24 +00:00
Peter Penz
4422dfd5fa Fix build-issue if no Nepomuk is available
svn path=/trunk/KDE/kdebase/apps/; revision=1196022
2010-11-12 12:34:51 +00:00
Peter Penz
1629b2ee29 Currently the Filter Panel does only work with enabled Nepomuk. Don't show it when Nepomuk is disabled.
svn path=/trunk/KDE/kdebase/apps/; revision=1195652
2010-11-11 17:43:32 +00:00
Peter Penz
b1c5243645 Also allow to show/hide the Filter Panel if Nepomuk is disabled
svn path=/trunk/KDE/kdebase/apps/; revision=1195360
2010-11-10 22:20:02 +00:00
Aurélien Gâteau
1a13fffbd9 Revert "showMenuBar is deprecated, use showHideMenuBar instead."
This reverts commit f20cd7fd1836d0f16bc1dec2204bd4356a9f2802.

svn path=/trunk/KDE/kdebase/apps/; revision=1194446
2010-11-09 00:15:14 +00:00
Peter Penz
456d529295 Make the filter-behavior similar to applications like Kate, where activating the filter lets focus it again.
BUG: 256160
FIXED-IN: 4.6.0

svn path=/trunk/KDE/kdebase/apps/; revision=1193912
2010-11-07 14:55:33 +00:00
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