Shed software introduction
One of the most useful tools for a programmer is a good hex editor. So, I decided to throw one in together. There are a lot of places where it could use more functionality, such as the find function, but it's still a good hex editor. This is a great example of how to implement a custom document view.
Shed software features
The application is SDI and the views are based on the scroll view class. The data is loaded into CString objects.
I have used CString because of its ease of memory management (getbuffer() and null() are all I need).
The text data of the landscape class is manually drawn twice. The left side is ASCII and the left side is hexadecimal.
Simple highlighting and cursor control are written into the view class, while data operations are handled by the data interface.
Shed software description
Scrolling may or may not be implemented as expected. I couldn't find good documentation on how to get it to work perfectly, so I set the origin to the top left corner and simply calculated the visible lines myself.
There may be a better way (if there is, tell me), but the end result is that I only draw what I need to make the rendering fast enough to be used. I also managed to avoid everything on the screen except scrolling.
Shed update log
1.Fix BUG, the new version has a better experience
2. Some pages have been changed
Huajun editor recommends:
The editor has also usedMaven,Java2 Runtime Environment,Eclipse IDE for Java EE Developers For Linux(64-bit),GCC For Linux,Free PascalSoftware with similar functions to this software is available in Huajun Software Park and can be downloaded and used!
it works
it works
it works