hex-edit.cpp 894 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #if defined(Hiro_HexEdit)
  2. @implementation CocoaHexEdit : NSScrollView
  3. -(id) initWith:(hiro::mHexEdit&)hexEditReference {
  4. if(self = [super initWithFrame:NSMakeRect(0, 0, 0, 0)]) {
  5. hexEdit = &hexEditReference;
  6. }
  7. return self;
  8. }
  9. @end
  10. namespace hiro {
  11. auto pHexEdit::construct() -> void {
  12. @autoreleasepool {
  13. cocoaView = cocoaHexEdit = [[CocoaHexEdit alloc] initWith:self()];
  14. }
  15. }
  16. auto pHexEdit::destruct() -> void {
  17. @autoreleasepool {
  18. [cocoaView removeFromSuperview];
  19. [cocoaView release];
  20. }
  21. }
  22. auto pHexEdit::setAddress(uint offset) -> void {
  23. }
  24. auto pHexEdit::setBackgroundColor(Color color) -> void {
  25. }
  26. auto pHexEdit::setColumns(uint columns) -> void {
  27. }
  28. auto pHexEdit::setForegroundColor(Color color) -> void {
  29. }
  30. auto pHexEdit::setLength(uint length) -> void {
  31. }
  32. auto pHexEdit::setRows(uint rows) -> void {
  33. }
  34. auto pHexEdit::update() -> void {
  35. }
  36. }
  37. #endif