Opened 17 years ago

Last modified 16 years ago

#1526 closed Patch

GetPathEllipsis()

Reported by: xalspaero Owned by:
Priority: normal Component: FileZilla Client
Keywords: Cc: xalspaero, Tim Kosse
Component version: Operating system type:
Operating system version:

Description

This function takes excessively large path strings in the "File already exists" dialog box and removes characters from the middle of the path until its short enough, and replaces the middle with an ellipsis.

also updated fileexistsdlg.h with the prototype.

Attachments (2)

getpathellipsis CPP.patch (1.9 KB ) - added by xalspaero 16 years ago.
getpathellipsis H.patch (471 bytes ) - added by xalspaero 16 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 by xalspaero, 17 years ago

File Added: fileexistsdlg.h

comment:2 by xalspaero, 16 years ago

File Added: getpathellipsis CPP.patch

comment:3 by xalspaero, 16 years ago

File Added: getpathellipsis H.patch

by xalspaero, 16 years ago

Attachment: getpathellipsis CPP.patch added

comment:4 by xalspaero, 16 years ago

File Added: getpathellipsis CPP.patch

by xalspaero, 16 years ago

Attachment: getpathellipsis H.patch added

comment:5 by xalspaero, 16 years ago

File Added: getpathellipsis H.patch

comment:6 by Tim Kosse, 16 years ago

Thanks.

I've committed a modified version to SVN which tries to balance the position of the ellipsis to be roughly in the middle of the string (pixel-wise).
I've also removed most of the floating point operations, it's enough to calculate the maximum width once.

Note: See TracTickets for help on using tickets.