sdebuggerui.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #ifndef __SIMPLEDEBUGGERUI_H
  2. #define __SIMPLEDEBUGGERUI_H
  3. #include "debuggerui.h"
  4. #include <api/wnd/wndclass/clickwnd.h>
  5. class MakiDisassembler;
  6. class EditWnd;
  7. class String;
  8. class SourceCodeLine;
  9. #define SimpleDebuggerUI_PARENT ClickWnd
  10. enum {
  11. DEBUG_CMD_BREAKPOINT = 0,
  12. DEBUG_CMD_CONTINUE,
  13. DEBUG_CMD_STEPINTO,
  14. DEBUG_CMD_STEPOVER,
  15. DEBUG_CMD_STEPOUT,
  16. DEBUG_CMD_KILL,
  17. DEBUG_CMD_HELP,
  18. };
  19. class MakiJITD;
  20. class SimpleDebuggerUI : public SimpleDebuggerUI_PARENT, public DebuggerUII {
  21. public:
  22. SimpleDebuggerUI();
  23. virtual ~SimpleDebuggerUI();
  24. virtual int onPaint(Canvas *c);
  25. virtual int onLeftButtonDown(int x, int y);
  26. virtual int onResize();
  27. virtual int childNotify(ifc_window *child, int msg, intptr_t p1, intptr_t p2);
  28. virtual void onSetVisible(int show);
  29. virtual int messageLoop();
  30. virtual void setJITD(MakiJITD *jitd);
  31. virtual void disassemble(Canvas *c);
  32. virtual void onCommand(const wchar_t *cmd);
  33. virtual void addBreakPoint(const wchar_t *pointer_ascii);
  34. virtual void continueExecution();
  35. virtual void stepInto();
  36. virtual void stepOver();
  37. virtual void killScript();
  38. virtual void showHelp();
  39. virtual int onGetFocus();
  40. virtual int evaluate(const wchar_t *ascii);
  41. virtual const wchar_t *getLine(const wchar_t *filename, int fileline);
  42. private:
  43. int leave;
  44. MakiJITD *jitd;
  45. EditWnd *edit;
  46. wchar_t cmdbuf[256];
  47. int retcode;
  48. PtrList<StringW> strstack;
  49. };
  50. #endif