Bug 52150 - Poorly chosen placement of '...' in long file names in Quick Browser
Summary: Poorly chosen placement of '...' in long file names in Quick Browser
Status: RESOLVED FIXED
Alias: None
Product: kicker
Classification: Plasma
Component: quicklauncher (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: John Firebaugh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-20 19:27 UTC by Morten Hustveit
Modified: 2003-01-15 06:02 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Morten Hustveit 2002-12-20 19:27:59 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

Expected behaviour is that no more characters are hidden than is needed to make the name fit in the available space.  This is however not the case, and a lot of space is wasted.  See http://www.ping.uio.no/~mortehu/kde/quickbrowser.png for an example of this.
Comment 1 Stephan Kulow 2002-12-22 12:25:04 UTC
Subject: Re:  New: Poorly chosen placement of '...' in long file names in Quick Browser

On Freitag, 20. Dezember 2002 19:28, Morten Hustveit wrote:
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug, or are watching someone who is.
>
> http://bugs.kde.org/show_bug.cgi?id=52150
>            Summary: Poorly chosen placement of '...' in long file names in
>                     Quick Browser
>            Product: kicker
>            Version: unspecified
>           Platform: Compiled Sources
>         OS/Version: Linux
>             Status: NEW
>           Severity: normal
>           Priority: NOR
>          Component: general
>         AssignedTo: jfirebaugh@kde.org
>         ReportedBy: morten@debian.org
>
>
> Version:            (using KDE Devel)
> Installed from:    Compiled sources
>
> Expected behaviour is that no more characters are hidden than is needed to
> make the name fit in the available space.  This is however not the case,
> and a lot of space is wasted.  See
> http://www.ping.uio.no/~mortehu/kde/quickbrowser.png for an example of
> this.

I fail to see what you see as bug here. What would you have expected to see
instead?

Greetings, Stephan

Comment 2 Morten Hustveit 2002-12-30 15:50:05 UTC
Subject: Re:  Poorly chosen placement of '...' in long file names in Quick Browser

http://www.ping.uio.no/~mortehu/kde/quickbrowser2.png shows what I think it 
should look like.  The diff is available at 
http://www.ping.uio.no/~mortehu/kde/quickbrowser-diff

In the original screenshot, the width of the names that got '...' in them 
varies heavily.  Specifically, look at "Little Star -...olly mix).ogg" and 
the following "Los Ladrones ...blas mix).ogg".  In the patched version, the 
maximum length of a string is 20 em (20 widths of the character 'm') rather 
than 30 characters, so all names with '...' occupy almost the same amount of 
horizontal space.

Comment 3 Aaron J. Seigo 2003-01-03 00:49:09 UTC
i agree that it looks quite a bit nicer like this. i've taken the patch and added methods to 
KStringHandler for em and pixel based (which the em based methods use) squeezing of 
strings. i have concerns for really large strings being passed through these methods as 
they aren't very efficient (though they could be improved upon by taking out larger chunks 
of text, or just calling fontmetrics.width() on substrings, etc). i don't notice a speed issue 
here with a quickbrowser showing my mp3 collection on my pII 400, though, so it can't be 
all that bad =) 
 
coolo: what do you think? worth committing? 
Comment 4 Aaron J. Seigo 2003-01-15 06:02:49 UTC
this is now fixed in HEAD. due to requiring additions to the KDE API it won't appear 
until KDE3.2