Commit graph

34 commits

Author SHA1 Message Date
Frank Reininghaus
4fe788f115 Keep the "free space" information updated in all visible views
The old code would watch the free space on a mount point, i.e.,
determine the free space again, in 10-second intervals, only until the
view became invisible once (even if it was invisible only for a very
short moment, i.e., while splitting the view).

This commit ensures that the mount point is watched again as soon as
the corresponding view becomes visible again.

Moreover, the object that watches the free space for a mount point is
shared among all views that show URLs that belong to this mount point.
To achieve this, there is a central cache which can be used to obtain
an existing MountPointObserver for a certain path. If necessary, a new
MountPointObserver is created and added to the cache.

The MountPointObserver is removed from the cache and destroyed only if
no views use it any more, and no new users appear until the next update
(which happens every 10 seconds). This prevents that the free space is
measured repeatedly when changing the current directory on the same
mount point.

Many thanks to Emmanuel Pescosta for the initial ideas to factor out
the "free space" code and to establish a central storage for the
"observer" objects, and for providing many good suggestions how to
improve the code!

BUG: 327708
REVIEW: 118208
FIXED-IN: 4.14.0
2014-05-22 18:42:17 +02:00
Emmanuel Pescosta
c5d9791ad3 Show the correct icon size in the zoom slider tooltip.
BUG: 305694
FIXED-IN: 4.12.3
REVIEW: 111197
2014-02-25 19:41:45 +01:00
Kai Uwe Broulik
53c8c76cee Remove "Copy text" statusbar contextmenu entry
REVIEW: 112355
2013-09-12 18:45:41 +02:00
Fabio D'Urso
87f8303023 dolphin: Escape text in statusbar tooltip
This fixes the same issue as 4450f8449a,
but for the status bar's tooltip text.

BUG: 323170
FIXED-IN: 4.11.0
REVIEW: 111836
2013-08-05 02:12:09 +02:00
Fabio D'Urso
29013ed214 Don't let HTML-like filenames be interpreted as HTML strings
So that filenames that look like HTML don't get fancy-formatted when
we show info about them (i.e. on hover)

This patch fixes the same issue in two places:
 - dolphin, by setting Qt::PlainText on the status bar's label
 - konqueror, by escaping setStatusBarText strings emitted by
   DolphinPart

BUG: 321778
FIXED-IN: 4.11.0
REVIEW: 111746
2013-07-29 11:21:55 +02:00
Frank Reininghaus
030acf4f11 Do not use fixed widths for the widgets in the status bar
This fixes the problem that the Dolphin window has a rather large
minimum size. A side effect of this was that splitting the view could
resize the window (because twice the minimum status bar width was
needed then).

BUG: 319373
REVIEW: 110966
FIXED-IN: 4.10.5
2013-06-18 17:46:51 +02:00
Frederik Gladhorn
c914273feb Do not include role name in acc name, add desc.
The role is already known. Including it in the
accName means a screen reader will read
"zoom slider slider".
2012-09-25 12:50:06 +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
1ea09b24e1 Minor statusbar fixes
- Don't show information messages as KMessageWidget
- Assure that a set text in a statusbar will be shown for at least
  one second
2012-04-15 11:46:07 +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
d9dbd3398a Improvements for slow sorting roles
If the sorting is done for data which is resolved asynchronously
(e.g. rating), it is important to give a visual feedback about
the state of the sorting. This is done now by a progress
indication in the statusbar.

Also optimizations for "Sort by type" have been done: Although
resolving a type can be expensive in the most often case it is a
very cheap operation. So it the sorting is done by type, try
to resolve the type synchronously for at least 200 ms to prevent
a asynchronous resorting. This is usually sufficient to have
resolved types even for directories with several thousands of
items.

BUG: 292733
FIXED-IN: 4.9.0
2012-04-10 16:36:26 +02: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
David Faure
dec1a1b29d KDiskFreeSpace already uses KMountPoint internally, we can give it any path. 2011-12-29 09:49:12 +01:00
Frank Reininghaus
0dce0b3bef Update the zoom slider if the previews setting is changed
This is important if the zoom levels are different with previews
enabled/disabled.
2011-12-04 17:44:59 +01:00
Peter Penz
3c77ffe832 Delete obsolete class DolphinSettings 2011-11-06 11:59:26 +01:00
José Millán Soto
6e0d247d31 Setting accessible name to zoom slider in Dolphin 2011-08-24 14:25:40 +02:00
José Millán Soto
1ebef909f2 Making KonqStatusBarMessageLabel accessible 2011-08-24 14:25:40 +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
Peter Penz
38cf4f8f43 Use special zoom-icons for the zoom-widget in the statusbar 2011-04-29 20:07:26 +02:00
Peter Penz
8eb9b508ca Use capitalized KDE includes 2011-02-04 15:43:21 +01:00
Peter Penz
51a4c273a0 SVN_SILENT: Coding style updates
svn path=/trunk/KDE/kdebase/apps/; revision=1216293
2011-01-22 14:08:11 +00:00
Peter Penz
0da54e5c1b Show an undetermined progress indication within one second after changing an URL.
svn path=/trunk/KDE/kdebase/apps/; revision=1205329
2010-12-10 21:54:53 +00:00
Peter Penz
6ec1a1eb36 Allow to cancel the loading of search results.
BUG: 257421
FIXED-IN: 4.6.0


svn path=/trunk/KDE/kdebase/apps/; revision=1199112
2010-11-20 17:17:35 +00:00
David Faure
12f15322b3 Move dolphin's statusbar message-label (the one with support for errors and a close button) to libkonq
so that it can be used in konqueror as well. Fix its sizeHint. Reviewed by Peter Penz.

svn path=/trunk/KDE/kdebase/apps/; revision=1169901
2010-08-30 08:56:19 +00:00
Peter Penz
652d08c924 Sourcecode hierarchy cleanup: Create folder "views" and move view related sources to it
svn path=/trunk/KDE/kdebase/apps/; revision=1154146
2010-07-24 21:45:49 +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
7b810daee7 Add progress-text label to the layout
svn path=/trunk/KDE/kdebase/apps/; revision=1111461
2010-04-05 18:32:10 +00:00
Peter Penz
7ae94915f7 Cleanup of statusbar widgets:
- Provide proper size hints instead of hiding extensions on small widths
- Provide context menu, which allows to enable/disable the zoom level extension and the space info extension. Also copying the status bar text is possible (useful e. g. for error messages).

BUG: 188980

svn path=/trunk/KDE/kdebase/apps/; revision=1110498
2010-04-03 08:48:35 +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
136e2ae3d7 - fixed issue that the horizontal progress bar and the space info bar get hidden sometimes when changing the setting
- use less vertical space for the capacity bar (thanks to Rafael Fernández López for the patch!)

svn path=/trunk/KDE/kdebase/apps/; revision=1017172
2009-08-29 20:26:29 +00:00
Peter Penz
bcc439dd66 Fix infinite recursion if the default text is empty.
BUG: 203455
 

svn path=/trunk/KDE/kdebase/apps/; revision=1010911
2009-08-13 15:38:24 +00:00
Peter Penz
52478842e3 Assure that non-default messages don't get hidden after a very short time by default messages.
svn path=/trunk/KDE/kdebase/apps/; revision=1005712
2009-08-01 20:30:23 +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