Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

HexEdit plugin

(1/11) > >>

byo:
Looks like number of plugins is increasing :)

Here's my proposal: HexEditor.

I really missed that feature in C::B and hope that other will find it usefull :)

It's also good excercise to write such code (I've already found some bugs in wx and/or wxSmith while writing this plugin). It's not yet perfect so do not expect some superb features - only simple edition for now but some features have already been put onto my task list.

Regards
   BYO



[attachment deleted by admin]

killerbot:
Thanks.

Some feedback :

* ctrl-z (undo) does not work
* selecting (ctrl or mouse) does not work
* tab heading shows different as regular files
   Example : I open a regular cpp file --> tab header says : src\MyFile.cpp, but hexeditor just says : Myfile.cpp
* when I have a file open in the internal editor and the hexeditor : changes are not communicated (not while editing, but also not after saving the changes) [change in hexeditor save --> other tab has no clue of change, you first need to remove focus from CB], the other way : change in internal editor, even having CB loose focus will not trigger the hexeditor to reload.

byo:

--- Quote from: killerbot on July 11, 2008, 12:41:39 pm ---* ctrl-z (undo) does not work

--- End quote ---

Currently no undo yet :)


--- Quote ---* selecting (ctrl or mouse) does not work
* tab heading shows different as regular files
   Example : I open a regular cpp file --> tab header says : src\MyFile.cpp, but hexeditor just says : Myfile.cpp

--- End quote ---

Should be easy :)


--- Quote ---* when I have a file open in the internal editor and the hexeditor : changes are not communicated (not while editing, but also not after saving the changes) [change in hexeditor save --> other tab has no clue of change, you first need to remove focus from CB], the other way : change in internal editor, even having CB loose focus will not trigger the hexeditor to reload.

--- End quote ---

Opening hexeditor should be either forbidden when the file is opened in other editor or it should ask for closing first. I thought about some synchronization but it's rather hard task, especially when dealing with different encodings.

BTW. I forgot to mention that this editor is available in project manager - just right click on ther file and select "Open With" from the popup menu.

Regards
   BYO

byo:
Uploaded version 0.2 :)

Features added:
* Mouse selection support
* Preview of value under cursor (byte, word, dword, float, double, long double)
* Use settings of base editor to produce tab title (don't know how to update after config changes yet)
* Prevent from opening hex editor when file is already open in any other editor

Regards
  BYO

MortenMacFly:

--- Quote from: byo on July 11, 2008, 10:57:54 pm ---Uploaded version 0.2 :)

--- End quote ---
Not sure if this was intended, but navigating using the cursor keys seems now to be broken to me.

Other than that: GREAT work again, byo...

Navigation

[0] Message Index

[#] Next page

Go to full version