Commit graph

3220 commits

Author SHA1 Message Date
Matthias Fuchs e508685bae DolphinColumnView navigation works more intuitively.
If no item is selected then pressing right moves to a column view with child url, instead of the first index.
BUG:263110
REVIEW:101449
2011-05-28 01:10:37 +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
Peter Penz 744cc7a824 Tooltips: Use tooltip-text-color for the filename
Thanks to Jacopo De Simoi for the patch!

CCMAIL: wilderkde@gmail.com
2011-05-28 00:04:24 +02:00
Script Kiddy bac383aa63 SVN_SILENT made messages (.desktop file) 2011-05-27 09:00:13 +02:00
Frank Reininghaus 34fec35b56 Don't try to build dolphinsearchboxtest if Nepomuk isn't found. 2011-05-26 09:03:50 +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
Alex Merry f192c0d663 Compile with QT_USE_FAST_OPERATOR_PLUS 2011-05-23 19:57:44 +01:00
Montel Laurent de3e167cf9 It compiles fine with "-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS" 2011-05-22 13:04:33 +02:00
Frank Reininghaus be4b787e8e Fix DolphinView regression in 4.6: Keep renamed items visible
Commit 78669f2a57 introduced a regression
in DolphinView which disabled the automatic scrolling after a rename
operation to keep the renamed item visible. This commit reverts a part
of that change to re-enable the feature.
CCBUG: 273600
FIXED-IN: 4.6.4
(cherry picked from commit 54f34a941f)
2011-05-19 14:15:33 +02:00
Script Kiddy 6f802671ff SVN_SILENT made messages (.desktop file) 2011-05-17 10:47:38 +02:00
Andreas Hartmetz 01fc5c9cd8 Fix build: Only compile code using Nepomuk #ifdef HAVE_NEPOMUK.
Actually HAVE_NEPOMUK should be defined here, but it isn't. This seems
to be some bug in the buildsystem.

CCMAIL: peter.penz19@gmail.com
2011-05-11 18:47:44 +02:00
Script Kiddy 3b82962f49 SVN_SILENT made messages (.desktop file) 2011-05-11 09:15:34 +02:00
Script Kiddy 982987f465 SVN_SILENT made messages (.desktop file) 2011-05-09 09:30:57 +02:00
Raphael Kubo da Costa 38bf441922 Use pathOrUrl() instead of path() for application/x-kde-dndextract.
This makes it possible to extract to remote locations or, say, trash:/
when everything is properly set up in Ark's side.

CCMAIL: peter.penz19@gmail.com
(cherry picked from commit 5307f8ee24)
2011-05-01 23:44:58 -03:00
Oswald Buddenhagen 7772f6f804 adapt to INSTALLed permissions 2011-05-01 20:26:46 +02:00
Peter Penz 38cf4f8f43 Use special zoom-icons for the zoom-widget in the statusbar 2011-04-29 20:07:26 +02:00
Peter Penz a2d3ac3ec0 Don't ask twice whether the trash should get emptied
Thanks to Casey Jones for the patch!

BUG: 265785
FIXED-IN: 4.7.0
2011-04-26 16:11:50 +02:00
Andreas Hartmetz b3bf5886b4 Move add_subdirectory(tests) to where Nepomuk has been found.
The tests were using NEPOMUK_FOO_LIBRARIES variables that were, at least
partially, not defined. Didn't link with gold linker.
2011-04-23 16:12:15 +02:00
Peter Penz 371e718ec5 Fix enabled/disabled issue of Search Panel 2011-04-20 22:11:22 +02:00
Peter Penz 27a8c55ec9 Search improvements
Use Query::titleFromQueryUrl() to give a hint what kind of information
is shown to the user.
2011-04-20 21:21:26 +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 f551f73ae6 Center tooltips horizontally in relation to the item
Patch has been written by Aaron J. Seigo.
2011-04-19 18:03:04 +02:00
Peter Penz 5ed647c7de When renaming one item don't replace # by numbers
BUG: 271094
FIXED-IN: 4.7.0
2011-04-16 14:51:19 +02:00
Peter Penz d4be11f205 Assure that the startup-settings are applied immediately 2011-04-15 20:53:13 +02:00
Peter Penz 14bae32f37 Details view: Fix jumping column-widths
If the view has a width where a horizontal scrollbar is required to
show all columns, an endless loop might get triggered that results in a
periodic jumping of the column-widths.

BUG: 270954
FIXED-IN: 4.7.0
2011-04-15 20:38:24 +02:00
Frank Reininghaus c7ef72de55 SVN_SILENT Remove trailing white space. 2011-04-14 13:27:33 +02:00
Frank Reininghaus 6d7e993c26 Improve stability of unit tests when running them with Valgrind
I noticed unexpected unit test failures when running the tests with
Valgrind. The reason was that test execution was slowed down a lot,
such that that TestBase::waitForFinishedPathLoading() did not receive
the view's signal within the default timeout of 2 seconds, and that
this failure was not detected in every test -> the tests failed later
on because not all expected items had been loaded yet.

To fix this, I changed two things:
1. Added an assert in TestBase::waitForFinishedPathLoading() that checks
if the signal has been received. Continuing does not make much sense if
that is not the case.
2. Increased the default timeout to 20 seconds. The reason why there is
a finite timeout at all is that I didn't want to waste too much time on
machines where the file kioslave seems to have problems loading a
directory (I've seen corresponding test logs at cdash.org). However, with
the first change I mentioned above, the waiting time is lost only once
(due to the assert) rather than every time a directory is loaded
-> I think that the timeout increase does not lead to an increased waste
of time on such machines.
2011-04-14 13:10:33 +02:00
Frank Reininghaus e152885d94 Implement a cut/copy/paste unit test for DolphinView. 2011-04-12 21:44:31 +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
Raphael Kubo da Costa a19e78d75b Fix directory navigation in Dolphin::Terminal.
When navigating in Dolphin it attempts to keep any open Terminal (F4)
in sync by changing the directory in the shell.  It does this by
sending a "^C; cd $DIRECTORY" however shells under FreeBSD treat "^C"
as a literal string and not SIGINT.  Fix this by sending SIGINT to the
shell instead of "^C".

It appears Linux does not exhibit this behaviour.

Patch originally written by David Naylor, from the KDE-FreeBSD team.

CCMAIL: naylor.b.david@gmail.com

(cherry picked from commit 5f78219e18)
2011-04-12 11:18:22 -03:00
Frank Reininghaus 2784a14b76 Add unit test for bug 270437
Verify that the current item and the scroll position of the view do not
change if previews are turned off. Actually, the bug was in
KFilePreviewGenerator, but it's easier to test this here.
2011-04-10 21:27:15 +02:00
Peter Penz 529da98645 Column View: Keep wheel-behavior consistent with other views
Using the wheel in the column view resulted in too big jumps. Keep it
consistent with the details view and icons view.

BUG: 269942
FIXED-IN: 4.7.0
2011-04-10 19:24:02 +02:00
Peter Penz 4263d56b16 Folders Panel: Don't open the properties dialog modal
BUG: 270484
FIXED-IN: 4.7.0
2011-04-10 18:56:08 +02:00
Peter Penz 41d8b21ede DolphinContextMenu: Set the properties action from actionCollection
Patch has been provided by Alex Fiestas at
https://git.reviewboard.kde.org/r/101076/

CCMAIL: alex@eyeos.org
2011-04-10 18:49:55 +02:00
Peter Penz 426aac2eab Readd KFind shortcut for the Dolphin KPart
When the searching has been integrated into Dolphin the "Find File..."
entry had been removed from the Tools menu. Readd it into the Dolphin
KPart so that it is still available for Konqueror.

BUG: 270072
FIXED-IN: 4.7.0
2011-04-10 18:36:24 +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
Frank Reininghaus a9ecea7cd1 Do not reload the DolphinView in the tests' initView() members
Rather than reloading the view after it is initilised, we just wait
until the view emits its finishedPathLoading() signal. This saves some
time when running the tests (at least on my system).
2011-04-06 11:44:01 +02:00
Frederik Schwarzer 33635cd40c Add missing i18n call 2011-04-06 00:36:39 +02:00
Frank Reininghaus f1e69dce8a Remove a qWait(2000) which has been committed accidentally.
This has been committed by accident in 06dd174f.
2011-04-05 23:02:32 +02:00
Frank Reininghaus c58d84c261 Add function TestBase::waitForFinishedPathLoading()
Many tests have to wait until this signal is received from the
DolphinView, so it is convenient to have a function that wraps
the QTest::kWaitForSignal() call.
2011-04-05 22:12:51 +02:00
Frank Reininghaus 7148704d72 Remove comment which is obsolete after the recent refactoring. 2011-04-05 21:34:07 +02:00
Frank Reininghaus 95cb8ffe01 Dolphin unit test refactoring
This commit changes mainly two things:
1. The functionality related to the handling of temporary files and
folders is moved to a new class TestDir.
2. The setup of a temporary folder and of DolphinView instances is
now done in each unit test function. A benefit of this change is that
there are no unwanted interactions between different unit test functions
any more. Moreover, different test functions could now share a test
folder more easily.

Additionally, the reference arguments of all functions are changed to
pointers for consistency.
2011-04-03 15:32:12 +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 2dcc433ab2 DolphinContextMenu: Show "Show menubar" entry if necessary
If the user has hidden the menubar and the toolbar there is no way to
get back the menu (at least not without knowing the Ctrl+M shortcut).
Show an entry in the context-menu to bring back the menubar.
2011-03-27 19:29:23 +02:00
Peter Penz 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
Sebastian Dörner 4b0dc69070 Make cursor keys always trigger a statusbar update
When the selection is changed using the cursor keys, the statusbar
should be updated. Until now, this didn't actually happen directly after
an operation ending in a OperationCompletedMessage, because the
OperationCompletedMessage was protected.

This patch changes the behaviour to only protect ErrorMessages in the
ViewContainer. When an OperationCompletedMessage was issued very
recently, it keeps being protected by DolphinStatusbar itself.

Statusbar updates in the ViewContainer are only triggered by
a) user actions (move keyboard focus, enter something in the filter bar)
b) finished filed jobs

In case a), the update is desired, also overriding
OperationCompletedMessages.
In case b), the OperationCompletedMessage issued by the file command is
issues so shortly before the call to updateStatusBar, that the
DolphinStatusBar skips the message anyway (see
DolphinStatusBar::setMessage).

BUG: 193847
FIXED-IN: 4.7.0
REVIEW: 100939
2011-03-24 22:43:45 +01:00