Opened 17 years ago
Last modified 17 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)
Change History (8)
comment:1 by , 17 years ago
by , 17 years ago
Attachment: | getpathellipsis CPP.patch added |
---|
by , 17 years ago
Attachment: | getpathellipsis H.patch added |
---|
comment:6 by , 17 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.
File Added: fileexistsdlg.h