]> cloud.milkyroute.net Git - dolphin.git/log
dolphin.git
14 years agoTwo small selection improvements in DolphinView
Frank Reininghaus [Sun, 14 Aug 2011 09:05:19 +0000 (11:05 +0200)]
Two small selection improvements in DolphinView

1. Implement DolphinView::clearSelection().
2. Simplify DolphinView::invertSelection().
   I found, fixed, and unit-tested a bug in the selection
   manager which was uncovered by this change.

14 years agoImplement basic keyboard navigation in Icons and Compact View
Frank Reininghaus [Sat, 13 Aug 2011 16:24:02 +0000 (18:24 +0200)]
Implement basic keyboard navigation in Icons and Compact View

Things that are still missing:
1. Moving to the previous/next row with Up/Down in Icons View,
   moving to the previous/next columns in Compact View.
2. Navigation in Details View.
Note that scrolling to the current item doesn't work yet, and
that the view does not have keyboard focus initially, so one has
to click the view before keyboard navigation and seleciton works.

14 years agoKItemListContainer: show only the scroll bar that is needed
Frank Reininghaus [Sat, 13 Aug 2011 12:34:17 +0000 (14:34 +0200)]
KItemListContainer: show only the scroll bar that is needed

Up to now, KItemListContainer would show both a vertical and
horizontal scroll bar after a view mode change. This commit
fixes that by setting the maximum and the value of the scroll
bar that is not needed to 0 in
KItemListContainer::updateScrollBars().

14 years agoFix typo
Peter Penz [Sat, 13 Aug 2011 11:14:31 +0000 (13:14 +0200)]
Fix typo

14 years agoAdd a TODO-proposal for a cleaner solution of the PendingThreadsMaintainer
Peter Penz [Sat, 13 Aug 2011 11:09:02 +0000 (13:09 +0200)]
Add a TODO-proposal for a cleaner solution of the PendingThreadsMaintainer

Thanks to Andre Wöbbeking for giving me a pointer to fix this ;-)

CCMAIL: woebbeking@kde.org

14 years agoFixes for "krazy"
Peter Penz [Sat, 13 Aug 2011 11:00:12 +0000 (13:00 +0200)]
Fixes for "krazy"

14 years agoDon't enable the search panel per default
Peter Penz [Sat, 13 Aug 2011 10:42:53 +0000 (12:42 +0200)]
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

14 years agoImplement selection of items using mouse clicks.
Frank Reininghaus [Sat, 13 Aug 2011 09:40:17 +0000 (11:40 +0200)]
Implement selection of items using mouse clicks.

14 years agoTest signal emission on selection changes
Frank Reininghaus [Thu, 11 Aug 2011 12:20:12 +0000 (14:20 +0200)]
Test signal emission on selection changes

This commit adds a unit test that changes the selection in various
ways, verifies the result and checks that the selection manager's
selectionChanged signal has been emitted correctly. The test is
data-driven, so I hope that most further testing needs can be
fulfilled by adding new test data.

Moreover, I changed selectedItems() such that the anchored
selection is only taken into account if anchor and current item
are different. The reason is that in some situation the anchor
should not be selected initially (i.e., if an already selected
item is Control-clicked). If the anchor should be selected from
the beginning, it must be selected manually.

14 years agoEmit KitemListSelectionManager's selectionChanged signal correctly
Frank Reininghaus [Thu, 11 Aug 2011 10:23:21 +0000 (12:23 +0200)]
Emit KitemListSelectionManager's selectionChanged signal correctly

This commit makes sure that the signal is emitted with the correct
current and previous selection after a selection change, and
that the signal is emitted exactly once in
KItemListSelectionManager::itemsInserted and
KItemListSelectionManager::itemsRemoved.

14 years agoImplement beginAnchoredSelection() and endAnchoredSelection().
Frank Reininghaus [Wed, 10 Aug 2011 13:21:26 +0000 (15:21 +0200)]
Implement beginAnchoredSelection() and endAnchoredSelection().

Unit test included.

14 years agoMake sure that key presses are handled in KItemListController
Frank Reininghaus [Wed, 10 Aug 2011 12:30:32 +0000 (14:30 +0200)]
Make sure that key presses are handled in KItemListController

Key press events are forwarded from KItemListContainer to
KItemListController. Right now, only the 'Home' and 'End' keys
are handled (arrow keys require some more work because their action
depends on the view mode).
Note:
1. Before key presses are handled, the view has to be clicked with
   the mouse. It seems that the view does not have the keyboard
   focus initially.
2. The view does not scroll to the new current item yet.

14 years agoAlways use the 'Select' mode for anchored selections
Frank Reininghaus [Wed, 10 Aug 2011 11:53:41 +0000 (13:53 +0200)]
Always use the 'Select' mode for anchored selections

In Dolphin, we don't actually use the 'Deselect' and 'Toggle'
modes for anchored selections, so we can just remove these
modes and always use 'Select' to reduce code complexity.

14 years agoInitial support for anchored selections in the selection manager
Frank Reininghaus [Wed, 10 Aug 2011 09:43:05 +0000 (11:43 +0200)]
Initial support for anchored selections in the selection manager

14 years agoUpdate the anchor item when items are added or removed
Frank Reininghaus [Wed, 10 Aug 2011 08:38:24 +0000 (10:38 +0200)]
Update the anchor item when items are added or removed

If items are added or removed in the model, not only the
current item, but also the anchor item, which is the
starting point for any selections via Shift+Click or
Shift+Key, needs to be updated.
BUG: 262638
FIXED-IN: 4.8.0

14 years agoTest setting the current item and anchor item
Frank Reininghaus [Tue, 9 Aug 2011 17:44:49 +0000 (19:44 +0200)]
Test setting the current item and anchor item

14 years agoImprovements for selections, smooth scrolling, tooltips and info-panel
Peter Penz [Mon, 8 Aug 2011 21:41:18 +0000 (23:41 +0200)]
Improvements for selections, smooth scrolling, tooltips and info-panel

14 years agoSVN_SILENT made messages (.desktop file)
Script Kiddy [Mon, 8 Aug 2011 06:18:53 +0000 (08:18 +0200)]
SVN_SILENT made messages (.desktop file)

14 years agoSVN_SILENT made messages (.desktop file)
Script Kiddy [Thu, 4 Aug 2011 08:39:16 +0000 (10:39 +0200)]
SVN_SILENT made messages (.desktop file)

14 years agoUnderline the current item in KFileItemListView
Frank Reininghaus [Wed, 3 Aug 2011 16:54:10 +0000 (18:54 +0200)]
Underline the current item in KFileItemListView

It still looks a bit ugly, but at least we can see the current
item now :-) It is only updated by mouse clicks at the moment.

14 years agoShift-clicks and Control-clicks should not open the item
Frank Reininghaus [Tue, 2 Aug 2011 22:37:38 +0000 (00:37 +0200)]
Shift-clicks and Control-clicks should not open the item

14 years agoUpdate current item and anchor item on mouse clicks
Frank Reininghaus [Tue, 2 Aug 2011 22:35:03 +0000 (00:35 +0200)]
Update current item and anchor item on mouse clicks

14 years agoInform the selection manager about model changes.
Frank Reininghaus [Tue, 2 Aug 2011 21:56:46 +0000 (23:56 +0200)]
Inform the selection manager about model changes.

14 years agoMinor cleanups
Peter Penz [Tue, 2 Aug 2011 17:56:00 +0000 (19:56 +0200)]
Minor cleanups

- Cleanup whitespaces after signal-normalization patch
- Cleanup DolphinView::Mode numbering

14 years agoImprove performance for creating previews
Peter Penz [Tue, 2 Aug 2011 17:47:06 +0000 (19:47 +0200)]
Improve performance for creating previews

The overall time for creating previews is faster the more items
are passed to KIO::previewJob() in parallel instead of passing
e.g. only 100 items once and start several KIO::previewJobs
sequentially.

However in the worst case KIO::previewJob() might
block the application for several seconds if the
MIME-type of the passed KFileItems are unknown and e.g. 10000 items
are forwarded.

So KFileItemModelRolesUpdater will now take care to resolve as many
MIME-types as possible until a timeout is reached and will only pass
those items to KIO::previewJob().

For huge image folders, where the MIME-type can be determined very
fast, this means that the overall time for creating previews will
decrease without blocking the application. For "worst case" directories
where resolving the MIME-type can get very expensive this approach
assures no blocking of the user-interface although the overall time
until all previews are generated might slightly increase.

14 years agoFix unwanted triggering of items
Frank Reininghaus [Tue, 2 Aug 2011 07:24:17 +0000 (09:24 +0200)]
Fix unwanted triggering of items

An item should only be triggered after a mouse release
event if the mouse press has been done at the same position.

14 years agoSome small API docs fixes in DolphinView.
Frank Reininghaus [Mon, 1 Aug 2011 19:06:38 +0000 (21:06 +0200)]
Some small API docs fixes in DolphinView.

14 years agoAdd missing separators to the "Help" sub-menu of Dolphin's menubar replacement like...
Kai Uwe Broulik [Mon, 1 Aug 2011 16:26:18 +0000 (18:26 +0200)]
Add missing separators to the "Help" sub-menu of Dolphin's menubar replacement like all KDE apps have

BUG: 276560

14 years agonormalize signals/slots
Montel Laurent [Sun, 31 Jul 2011 11:33:56 +0000 (13:33 +0200)]
normalize signals/slots

14 years agoMerged very early alpha-version of Dolphin 2.0
Peter Penz [Sat, 30 Jul 2011 18:13:09 +0000 (20:13 +0200)]
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.

14 years agoFix Dolphin session management regression
Frank Reininghaus [Sun, 17 Jul 2011 17:25:49 +0000 (19:25 +0200)]
Fix Dolphin session management regression

The commit fff7573ebb910712ad97951bf1762e6a7bb0bdc7 introduced a
regression concerning restoration of saved Dolphin sessions. The
main window numbers which can be passed to KMainWindow::restore()
start with 1, and not with 0.

CCBUG:275649
(cherry picked from commit b4091809beedf0e373ac2f497634cc0bedf77a8f)

14 years agoSVN_SILENT made messages (.desktop file)
Script Kiddy [Tue, 12 Jul 2011 08:35:32 +0000 (10:35 +0200)]
SVN_SILENT made messages (.desktop file)

14 years agoRevert "Use isEmpty()" - the original code asked for a size > 1 and not >= 1...
Peter Penz [Mon, 11 Jul 2011 22:33:09 +0000 (00:33 +0200)]
Revert "Use isEmpty()" - the original code asked for a size > 1 and not >= 1...

This reverts commit fa73fbfb84792d16dd56ebdeca1667ca12a597bd.
CCMAIL: neoclust.kde@free.fr

14 years agoUse isEmpty()
Nicolas Lécureuil [Mon, 11 Jul 2011 20:47:01 +0000 (22:47 +0200)]
Use isEmpty()

14 years agoSVN_SILENT made messages (.desktop file)
Script Kiddy [Mon, 11 Jul 2011 08:55:04 +0000 (10:55 +0200)]
SVN_SILENT made messages (.desktop file)

14 years agoPreviewSettingsPage: update JPG preview plugin settings if needed
Frank Reininghaus [Sun, 10 Jul 2011 13:33:16 +0000 (15:33 +0200)]
PreviewSettingsPage: update JPG preview plugin settings if needed

In KDE <= 4.6, the 'jpegrotatedthumbnail' plugin was used to provide
thumbnails for JPG images which are rotated correctly. In KDE 4.7, this
is done by the usual 'jpegthumbnail' plugin if it is configured
accordingly. The update of the settings is done in KFilePreviewGenerator.
However, if Konqueror is run in web browsing mode and the settings dialog
is opened, KFilePreviewGenerator does not have a chance to do the update.
To make sure that the correct plugins are shown in the settings, this
commit adds a plugin update to PreviewSettingsPage.

The old code that just removed the 'jpegrotatedthumbnail' plugin without
enabling the 'jpegthumbnail' plugin is removed.

CCBUG:277251
(cherry picked from commit 626fb3cf58dc12d4a8d219c12e7663881a1246e7)

14 years agoUse QToolButtons instead of QPushButtons for the searchbar
Peter Penz [Thu, 7 Jul 2011 09:49:51 +0000 (11:49 +0200)]
Use QToolButtons instead of QPushButtons for the searchbar

Thanks to Hugo Pereira Da Costa for the patch.

BUG: 277227
FIXED-IN: 4.7.0

14 years agoSVN_SILENT made messages (.desktop file)
Script Kiddy [Wed, 6 Jul 2011 08:40:22 +0000 (10:40 +0200)]
SVN_SILENT made messages (.desktop file)

14 years agoSqueeze the filename shown in the rename dialog when it is too long
Dawit Alemayehu [Wed, 22 Jun 2011 03:00:28 +0000 (23:00 -0400)]
Squeeze the filename shown in the rename dialog when it is too long
and show the full name in a tool tip instead.

14 years agoShow icon overlays in the Informationen Panel.
Matthias Fuchs [Fri, 10 Jun 2011 19:49:38 +0000 (21:49 +0200)]
Show icon overlays in the Informationen Panel.

BUG:190579
REVIEW:101573

14 years agoSVN_SILENT made messages (.desktop file)
Script Kiddy [Tue, 21 Jun 2011 09:00:18 +0000 (11:00 +0200)]
SVN_SILENT made messages (.desktop file)

14 years agoAdd missing actions to report bug + switch language to Help menu in dolphin whithout...
Burkhard Lück [Mon, 13 Jun 2011 06:26:07 +0000 (08:26 +0200)]
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

14 years agoReturn the url of the view instead of the url of the url navigator.
Matthias Fuchs [Fri, 10 Jun 2011 22:09:21 +0000 (00:09 +0200)]
Return the url of the view instead of the url of the url navigator.

That way if a wrong protocol had been entered the currently watched directory will be returned.
BUG:274890
REVIEW:101580

14 years agoFix position of toolbar-menu
Peter Penz [Fri, 10 Jun 2011 14:26:28 +0000 (16:26 +0200)]
Fix position of toolbar-menu

CCBUG: 274495

14 years agoWait longer for the selectionChanged signal
Frank Reininghaus [Thu, 9 Jun 2011 12:50:33 +0000 (14:50 +0200)]
Wait longer for the selectionChanged signal

The timeout for the selectionChanged signal is increased in
DolphinViewTest_AllViewModes::verifySelectedItemsCount().
I hope that this will fix a part of the failures seen in
http://my.cdash.org/testDetails.php?test=6350150&build=196639

14 years agoImprove stability of DolphinView tests
Frank Reininghaus [Thu, 9 Jun 2011 12:41:53 +0000 (14:41 +0200)]
Improve stability of DolphinView tests

1. Fix possible test failure if hidden files are shown initially.
2. Fix possible test failure if a .directory file is created in
the test directory. I think that this fixes the test failure from
http://my.cdash.org/testDetails.php?test=6350151&build=196639

14 years agoKeeps the selection after showing/hiding hidden files.
Matthias Fuchs [Wed, 1 Jun 2011 22:56:54 +0000 (00:56 +0200)]
Keeps the selection after showing/hiding hidden files.

Still only files that are shown will be selected, thus selecting hidden files and then hiding hidden files will deselect those.
BUG:177215
REVIEW:101487

14 years agoFix problems with commit 8d789f2626243d
Sebastian Dörner [Wed, 1 Jun 2011 20:51:22 +0000 (21:51 +0100)]
Fix problems with commit 8d789f2626243d

 - 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 8d789f2626243ddc6c763c84e582e8e20afe7689

14 years agoImproves 79ccd0202d106a9c16b79a20cd79831a60dc5393 by allowing "/" in file names.
Matthias Fuchs [Tue, 31 May 2011 21:42:46 +0000 (23:42 +0200)]
Improves 79ccd0202d106a9c16b79a20cd79831a60dc5393 by allowing "/" in file names.

Though here "/" is not the ascii char '/' but the "unicode fraction slash" one, thus it is not taken as directory command.
CCBUG:211751
REVIEW:101454

14 years agoFix position of Dolphin menu with multiple-screens setup
Peter Penz [Mon, 30 May 2011 14:32:03 +0000 (16:32 +0200)]
Fix position of Dolphin menu with multiple-screens setup

BUG: 274495
FIXED-IN: 4.7.0

14 years agoSet the window on the directory lister created in ViewAccessor so that password
Dawit Alemayehu [Sun, 29 May 2011 18:47:24 +0000 (14:47 -0400)]
Set the window on the directory lister created in ViewAccessor so that password
management can be handled properly.

REVIEW: 101469

14 years agoSVN_SILENT made messages (.desktop file)
Script Kiddy [Sun, 29 May 2011 08:08:26 +0000 (10:08 +0200)]
SVN_SILENT made messages (.desktop file)

14 years agoImproved query creation. There is absolutely no point in using a
Sebastian Trueg [Sat, 28 May 2011 19:23:05 +0000 (21:23 +0200)]
Improved query creation. There is absolutely no point in using a
regular expression in addition to the query created by the query
parser. All it does is majorly slowing down the query execution.

REVIEW: 101462

14 years agoDisallow renaming to names containing '/', names being equal to "." or "..".
Matthias Fuchs [Fri, 27 May 2011 22:15:45 +0000 (00:15 +0200)]
Disallow renaming to names containing '/', names being equal to "." or "..".
BUG:211751
REVIEW:101454

14 years agoDolphinColumnView navigation works more intuitively.
Matthias Fuchs [Fri, 27 May 2011 16:00:00 +0000 (18:00 +0200)]
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

14 years agoFix build failure if Nepomuk is not available.
Frank Reininghaus [Fri, 27 May 2011 22:17:17 +0000 (00:17 +0200)]
Fix build failure if Nepomuk is not available.

Thanks to Krzysztof Nowicki for the patch!
BUG: 274297

14 years agoTooltips: Use tooltip-text-color for the filename
Peter Penz [Fri, 27 May 2011 22:04:24 +0000 (00:04 +0200)]
Tooltips: Use tooltip-text-color for the filename

Thanks to Jacopo De Simoi for the patch!

CCMAIL: wilderkde@gmail.com

14 years agoSVN_SILENT made messages (.desktop file)
Script Kiddy [Fri, 27 May 2011 07:00:13 +0000 (09:00 +0200)]
SVN_SILENT made messages (.desktop file)

14 years agoDon't try to build dolphinsearchboxtest if Nepomuk isn't found.
Frank Reininghaus [Thu, 26 May 2011 07:02:21 +0000 (09:02 +0200)]
Don't try to build dolphinsearchboxtest if Nepomuk isn't found.

14 years agoDon't let hidden terminals prevent unmounting
Sebastian Dörner [Wed, 25 May 2011 21:14:14 +0000 (22:14 +0100)]
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

14 years agoCompile with QT_USE_FAST_OPERATOR_PLUS
Alex Merry [Mon, 23 May 2011 18:57:44 +0000 (19:57 +0100)]
Compile with QT_USE_FAST_OPERATOR_PLUS

14 years agoIt compiles fine with "-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS"
Montel Laurent [Sun, 22 May 2011 11:04:04 +0000 (13:04 +0200)]
It compiles fine with "-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS"

14 years agoFix DolphinView regression in 4.6: Keep renamed items visible
Frank Reininghaus [Thu, 19 May 2011 12:09:37 +0000 (14:09 +0200)]
Fix DolphinView regression in 4.6: Keep renamed items visible

Commit 78669f2a57ecfb547019383deadf4aeac7d20070 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 54f34a941f85efa659392a06b14fee86f1420bf5)

14 years agoSVN_SILENT made messages (.desktop file)
Script Kiddy [Tue, 17 May 2011 08:47:38 +0000 (10:47 +0200)]
SVN_SILENT made messages (.desktop file)

14 years agoFix build: Only compile code using Nepomuk #ifdef HAVE_NEPOMUK.
Andreas Hartmetz [Wed, 11 May 2011 16:47:44 +0000 (18:47 +0200)]
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

14 years agoSVN_SILENT made messages (.desktop file)
Script Kiddy [Wed, 11 May 2011 07:15:34 +0000 (09:15 +0200)]
SVN_SILENT made messages (.desktop file)

14 years agoSVN_SILENT made messages (.desktop file)
Script Kiddy [Mon, 9 May 2011 07:30:57 +0000 (09:30 +0200)]
SVN_SILENT made messages (.desktop file)

14 years agoUse pathOrUrl() instead of path() for application/x-kde-dndextract.
Raphael Kubo da Costa [Mon, 2 May 2011 02:42:55 +0000 (23:42 -0300)]
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 5307f8ee2457387361e85517df38979bceeafb2a)

14 years agoadapt to INSTALLed permissions
Oswald Buddenhagen [Sat, 30 Apr 2011 17:14:20 +0000 (19:14 +0200)]
adapt to INSTALLed permissions

14 years agoUse special zoom-icons for the zoom-widget in the statusbar
Peter Penz [Fri, 29 Apr 2011 18:06:35 +0000 (20:06 +0200)]
Use special zoom-icons for the zoom-widget in the statusbar

14 years agoDon't ask twice whether the trash should get emptied
Peter Penz [Tue, 26 Apr 2011 14:10:15 +0000 (16:10 +0200)]
Don't ask twice whether the trash should get emptied

Thanks to Casey Jones for the patch!

BUG: 265785
FIXED-IN: 4.7.0

14 years agoMove add_subdirectory(tests) to where Nepomuk has been found.
Andreas Hartmetz [Sat, 23 Apr 2011 14:12:15 +0000 (16:12 +0200)]
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.

14 years agoFix enabled/disabled issue of Search Panel
Peter Penz [Wed, 20 Apr 2011 20:10:18 +0000 (22:10 +0200)]
Fix enabled/disabled issue of Search Panel

14 years agoSearch improvements
Peter Penz [Wed, 20 Apr 2011 19:19:46 +0000 (21:19 +0200)]
Search improvements

Use Query::titleFromQueryUrl() to give a hint what kind of information
is shown to the user.

14 years agoImprove usability of Search Panel
Peter Penz [Wed, 20 Apr 2011 18:03:51 +0000 (20:03 +0200)]
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.

14 years agoCenter tooltips horizontally in relation to the item
Peter Penz [Tue, 19 Apr 2011 16:01:48 +0000 (18:01 +0200)]
Center tooltips horizontally in relation to the item

Patch has been written by Aaron J. Seigo.

14 years agoWhen renaming one item don't replace # by numbers
Peter Penz [Sat, 16 Apr 2011 12:50:22 +0000 (14:50 +0200)]
When renaming one item don't replace # by numbers

BUG: 271094
FIXED-IN: 4.7.0

14 years agoAssure that the startup-settings are applied immediately
Peter Penz [Fri, 15 Apr 2011 18:52:27 +0000 (20:52 +0200)]
Assure that the startup-settings are applied immediately

14 years agoDetails view: Fix jumping column-widths
Peter Penz [Fri, 15 Apr 2011 18:35:25 +0000 (20:35 +0200)]
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

14 years agoSVN_SILENT Remove trailing white space.
Frank Reininghaus [Thu, 14 Apr 2011 11:27:33 +0000 (13:27 +0200)]
SVN_SILENT Remove trailing white space.

14 years agoImprove stability of unit tests when running them with Valgrind
Frank Reininghaus [Thu, 14 Apr 2011 10:57:46 +0000 (12:57 +0200)]
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.

14 years agoImplement a cut/copy/paste unit test for DolphinView.
Frank Reininghaus [Tue, 12 Apr 2011 19:44:31 +0000 (21:44 +0200)]
Implement a cut/copy/paste unit test for DolphinView.

14 years agoLet each DolphinMainWindow run in a custom process
Peter Penz [Tue, 12 Apr 2011 18:01:31 +0000 (20:01 +0200)]
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

14 years agoFix directory navigation in Dolphin::Terminal.
Raphael Kubo da Costa [Tue, 12 Apr 2011 14:14:25 +0000 (11:14 -0300)]
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 5f78219e18073e475ed1f1865a1a2be1fafd60cf)

14 years agoAdd unit test for bug 270437
Frank Reininghaus [Sun, 10 Apr 2011 19:27:15 +0000 (21:27 +0200)]
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.

14 years agoColumn View: Keep wheel-behavior consistent with other views
Peter Penz [Sun, 10 Apr 2011 17:21:54 +0000 (19:21 +0200)]
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

14 years agoFolders Panel: Don't open the properties dialog modal
Peter Penz [Sun, 10 Apr 2011 16:54:55 +0000 (18:54 +0200)]
Folders Panel: Don't open the properties dialog modal

BUG: 270484
FIXED-IN: 4.7.0

14 years agoDolphinContextMenu: Set the properties action from actionCollection
Peter Penz [Sun, 10 Apr 2011 16:47:25 +0000 (18:47 +0200)]
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

14 years agoReadd KFind shortcut for the Dolphin KPart
Peter Penz [Sun, 10 Apr 2011 16:32:53 +0000 (18:32 +0200)]
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

14 years agoOptimize alignment of toolbar menu
Peter Penz [Fri, 8 Apr 2011 17:37:11 +0000 (19:37 +0200)]
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.

14 years agoDo not reload the DolphinView in the tests' initView() members
Frank Reininghaus [Tue, 5 Apr 2011 21:55:37 +0000 (23:55 +0200)]
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).

14 years agoAdd missing i18n call
Frederik Schwarzer [Tue, 5 Apr 2011 22:36:39 +0000 (00:36 +0200)]
Add missing i18n call

14 years agoRemove a qWait(2000) which has been committed accidentally.
Frank Reininghaus [Tue, 5 Apr 2011 21:02:32 +0000 (23:02 +0200)]
Remove a qWait(2000) which has been committed accidentally.

This has been committed by accident in 06dd174f.

14 years agoAdd function TestBase::waitForFinishedPathLoading()
Frank Reininghaus [Tue, 5 Apr 2011 20:12:51 +0000 (22:12 +0200)]
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.

14 years agoRemove comment which is obsolete after the recent refactoring.
Frank Reininghaus [Tue, 5 Apr 2011 19:34:07 +0000 (21:34 +0200)]
Remove comment which is obsolete after the recent refactoring.

14 years agoDolphin unit test refactoring
Frank Reininghaus [Sun, 3 Apr 2011 13:31:27 +0000 (15:31 +0200)]
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.

14 years agoReadd the "go home" action
Peter Penz [Tue, 29 Mar 2011 16:35:50 +0000 (18:35 +0200)]
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.

14 years agoDolphinContextMenu: Show "Show menubar" entry if necessary
Peter Penz [Sun, 27 Mar 2011 17:27:27 +0000 (19:27 +0200)]
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.

14 years agoUpdate the size of the menu toolbar-item
Peter Penz [Sun, 27 Mar 2011 17:07:14 +0000 (19:07 +0200)]
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.

14 years agoMinor optimizations for the menu toolbar-item
Peter Penz [Sun, 27 Mar 2011 16:45:17 +0000 (18:45 +0200)]
Minor optimizations for the menu toolbar-item