Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » Log showing in HEX mode.
Re: Log showing in HEX mode. [message #44599 is a reply to message #44597] |
Tue, 14 April 2015 21:41   |
 |
Klugier
Messages: 1100 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello Mirek,
OK, I see that detection is implemented (and it works correctly), but it is not used by idebar. It means that user can view every file in binary mode even ".cpp" or ".txt".
To prevent that we can check in ide/idebar.cpp (line 182) that file is binary. Code:
if(editfile.GetCount() && editashex.Find(editfile) < 0 && FileIsBinary(editfile))
menu.Add(AK_EDITASHEX, THISBACK(EditAsHex));
Probably, we should check it only once per file. Above solution can slow down edit bar appearance. It mostly depends on how FileIsBinary is implemented.
Sincerely,
Klugier
U++ - one framework to rule them all.
[Updated on: Tue, 14 April 2015 21:51] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sun Jul 06 03:35:27 CEST 2025
Total time taken to generate the page: 0.03545 seconds
|