Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
Klugier is currently offline  Klugier
Messages: 1077
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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Add "pre-compile" as custom build step
Next Topic: [BUG?] Copy as definition/declaration
Goto Forum:
  


Current Time: Mon Jun 17 16:31:19 CEST 2024

Total time taken to generate the page: 0.02155 seconds