BreakpointDialog.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #ifndef BREAKPOINTDIALOG_OPENMSX_H
  2. #define BREAKPOINTDIALOG_OPENMSX_H
  3. #include "ui_BreakpointDialog.h"
  4. #include "DebuggerData.h"
  5. #include <QDialog>
  6. struct MemoryLayout;
  7. class DebugSession;
  8. class Symbol;
  9. class BreakpointDialog : public QDialog, private Ui::BreakpointDialog
  10. {
  11. Q_OBJECT
  12. public:
  13. BreakpointDialog(const MemoryLayout& ml, DebugSession *session = 0, QWidget* parent = 0);
  14. ~BreakpointDialog();
  15. Breakpoints::Type type();
  16. int address();
  17. int addressEndRange();
  18. int slot();
  19. int subslot();
  20. int segment();
  21. QString condition();
  22. void setData(Breakpoints::Type type, int address = -1,
  23. int ps = -1, int ss = -1, int segment = -1,
  24. int addressEnd = -1, QString condition = QString());
  25. private:
  26. const MemoryLayout& memLayout;
  27. DebugSession *debugSession;
  28. Symbol *currentSymbol;
  29. int idxSlot, idxSubSlot;
  30. int value, valueEnd;
  31. int conditionHeight;
  32. QCompleter *jumpCompleter, *allCompleter;
  33. private slots:
  34. void addressChanged(const QString& text);
  35. void typeChanged(int i);
  36. void slotChanged(int i);
  37. void subslotChanged(int i);
  38. void hasCondition(int state);
  39. };
  40. #endif // BREAKPOINTDIALOG_OPENMSX_H