Opened 12 years ago

Last modified 12 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 12 years ago.
getpathellipsis H.patch (471 bytes) - added by xalspaero 12 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 12 years ago by xalspaero

File Added: fileexistsdlg.h

comment:2 Changed 12 years ago by xalspaero

File Added: getpathellipsis CPP.patch

comment:3 Changed 12 years ago by xalspaero

File Added: getpathellipsis H.patch

Changed 12 years ago by xalspaero

Attachment: getpathellipsis CPP.patch added

comment:4 Changed 12 years ago by xalspaero

File Added: getpathellipsis CPP.patch

Changed 12 years ago by xalspaero

Attachment: getpathellipsis H.patch added

comment:5 Changed 12 years ago by xalspaero

File Added: getpathellipsis H.patch

comment:6 Changed 12 years ago by Tim Kosse

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.