Commit graph

3153 commits

Author SHA1 Message Date
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
Peter Penz
e3063e001a Tooltip improvements
- Use the default style for drawing the tooltip background
- Get rid of the workaround to keep only one KFileMetaDataWidget instance. This is not required anymore as internally in KFileMetaDataWidget a process is used to get the metadata instead of a thread.
2011-03-22 18:46:11 +01:00
Kevin Ottens
dfe02a06b5 Make it link 2011-03-21 18:11:51 +01:00
Peter Penz
747a86573f Details view optimization
Constructing a KColorScheme object is very expensive because of a number
of tint computations. When scrolling a big list more than 30 % of the
time was spent here. Instead, we can precompute and store the inactive
text color. (see https://git.reviewboard.kde.org/r/100826/)

Thanks to Samuel Rødal for the patch!
2011-03-12 18:46:24 +01:00
Peter Penz
b9de2cf96f Fix enabled/disabled issue for the Search Panel 2011-03-10 23:49:39 +01:00
Peter Penz
65b2394224 Hide search-mode buttons in the read-only mode
When a searching has been triggered externally (e.g. by clicking on a tag) the search-mode settings like "From here"... are ignored and should not be shown at all. The current patch is only a quick workaround until a clean layout will be provided for this case.
2011-03-10 23:28:33 +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
6e0583f988 Fix some search issues
- Always merge the query from the "Find:"-field with the current facet-query. This assures that the facet-query never gets overwritten if the user changes the "Find:"-field.
- Always trigger a searching if the text of the "Find:"-field has been cleared.

Still a lot of usability issues are left, but this is at least a first step...
2011-03-10 19:58:26 +01:00
Peter Penz
1aa14306fc Remove kDebug() output 2011-03-09 21:16:39 +01:00
Peter Penz
c10af24315 Add (renamed) files searchpanel*
Thanks to Sebastian Dörner for the notification.
2011-03-09 20:58:40 +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
Script Kiddy
8d3b221690 SVN_SILENT made messages (.desktop file) 2011-03-04 08:40:53 +01:00
Sebastian Dörner
3c6ec1b7f9 Adjust text color to new emblem for unstaged files
The new emblem is green, not red, which should be reflected by the text
color. Now, all files that will be part of the next commit
(LocallyModifiedVersion and AddedVersion) are green and unstaged files
darkGreen.
2011-03-03 20:20:13 +01:00
Jonathan Schmidt-Dominé
860011c4c5 Better servicemenu(de)installation 2011-03-02 19:39:45 +01:00
Peter Penz
7df8488125 Fix issue that wrong directory is shown
Commit 680009b522 resulted in a regression when switching from a view in the column-mode to a view in the icon- or details-mode: The wrong content has been shown. This patch reverts commit 680009b522 and solves the performance-issue in combination with previews by triggering the preview-generation in a queued way.
2011-02-28 22:07:06 +01:00
Sebastian Dörner
2a5b3ec615 Consistently use binary operators to connect QFlags 2011-02-27 23:06:14 +01:00
Peter Penz
1b2b63eb3a Allow to configure thumbnail-plugins
Adjust the preview-settings to allow users to configure thumbnail-plugins. For consistency also the service-settings have been adjusted to use the ServiceModel and ServiceItemDelegate.
2011-02-27 20:38:35 +01:00
Peter Penz
96c0153e96 Use the new KIO::PreviewJob API
This makes it unnecessary to manually apply the plugins. See https://git.reviewboard.kde.org/r/100578/ for more details.
2011-02-19 18:47:48 +01:00
Peter Penz
596e07c0f3 Improve performance when turning on the preview mode
If a change from a directory with disabled previews is done to a directory with enabled previews, also previews are generated for the previous directory as the preview-generator still contains the not updated directory lister. Because of this it is important to apply the view-properties after the directory-lister has been updated.
2011-02-13 13:23:46 +01:00
Peter Penz
b9fd6bf649 Open folder in a new tab when a middle-click is done in the column-view
CCBUG: 265859
2011-02-12 18:22:05 +01:00
Peter Penz
1173ca1211 Reset progress of the statusbar when the stop-button has been pressed 2011-02-12 17:47:18 +01:00
Peter Penz
1112fd7cc5 DolphinContextMenu: cleanup includes 2011-02-11 19:33:29 +01:00
Christoph Thielecke
12324da326 revert ed4f9d3e11 2011-02-10 10:59:35 +01:00
Christoph Thielecke
ee0f3435b2 compile fix: includes does only exist with old names, please fix kde headers too 2011-02-10 08:58:24 +01:00
Peter Penz
8ccc71b33f Assure that RETURN emits itemTriggered() for one file
If only one file is selected, pressing RETURN should behave similar like triggering the item with the mouse. For this the signal itemTriggered() must be emitted.

CCBUG: 250475
2011-02-09 22:05:38 +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
Aaron Reichman
6af0a792a2 Fixing krazy spelling errors 2011-02-07 12:58:14 -08:00
David Faure
3250510ba2 Add support for KAbstractFileItemActionPlugin. Requires kdelibs > 4.6.0.
(cherry picked from commit 4caa285c06)
2011-02-07 13:13:02 +01:00
Peter Penz
0b925e0231 Fix issue that filenamesearch: is used instead of nepmuksearch: 2011-02-06 13:44:30 +01:00
Peter Penz
27456a2f73 Provide a hook for externally triggered search queries
In this case the "From Here"/"Everywhere" buttons and the "Filename"/"Content" buttons are useless. Currently they just get disabled but the plan is to provide a better visual indication of the current query and to remove them completely.
2011-02-05 23:33:08 +01:00
Peter Penz
0a9cdfa4ed Fix compilation when Nepomuk is not available
CCBUG: 265547
2011-02-05 21:12:19 +01:00
Andreas Hartmetz
c1e805adf6 dolphinsearchboxtest: link with gold 2011-02-05 06:19:02 +01:00
Peter Penz
17d217b862 Add unittest for DolphinSearchBox
A minor API cleanup in DolphinSearchBox has been done related to the test.
2011-02-04 22:13:50 +01:00
Peter Penz
236eac2ffa Don't clear the search-text when switching between tabs
The clearing of the search-text should only be done when opening the search-box.
2011-02-04 20:55:52 +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
956ebf7115 Don't use the submodule-path for Qt-includes on application-level
Also some KDE-includes have been capitalized
2011-02-04 15:49:45 +01:00
Peter Penz
8eb9b508ca Use capitalized KDE includes 2011-02-04 15:43:21 +01:00
Peter Penz
b184340286 Use KUrl::isParentOf() instead of doing custom QString-operations
This fixes the issue that a directory might be declared as indexed/non-indexed although it just starts with a similar name like another directory.
2011-02-03 17:23:45 +01:00
Peter Penz
687f40b545 Fix 3 issues reported by "krazy" 2011-02-03 16:51:08 +01:00
Script Kiddy
d0ff8aea0b SVN_SILENT made messages (.desktop file) 2011-02-03 07:24:26 +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
Peter Penz
28f00f36d7 Provide a default size-hint for all panels
This fixes the issue that the initial size of the Filter Panel is too small.
2011-02-02 17:30:25 +01:00
Script Kiddy
0981134987 SVN_SILENT made messages (.desktop file) 2011-02-02 08:24:54 +01:00
Peter Penz
4d2e4979c5 Show the pointing-hand cursor also when the selection-toggle is disabled
CCBUG: 264791
2011-01-31 22:35:14 +01:00
Peter Penz
6a8dde1793 Don't show the pointing-hand cursor when double-click is enabled
CCBUG: 264796
2011-01-31 21:29:10 +01:00
Peter Penz
f491c6ff9b Updated copyright information 2011-01-30 18:49:38 +01:00