diff options
Diffstat (limited to 'qtmips_gui/programdock.h')
-rw-r--r-- | qtmips_gui/programdock.h | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/qtmips_gui/programdock.h b/qtmips_gui/programdock.h index 4605a7b..9ed0896 100644 --- a/qtmips_gui/programdock.h +++ b/qtmips_gui/programdock.h @@ -9,25 +9,34 @@ #include "qtmipsmachine.h" #include "memoryview.h" -class ProgramDock : public QDockWidget { +class ProgramView : public MemoryView { Q_OBJECT public: - ProgramDock(QWidget *parent); - ~ProgramDock(); + ProgramView(QWidget *parent); - void setup(machine::QtMipsMachine *machine); + void setup(machine::QtMipsMachine*); + +protected: + QList<QWidget*> row_widget(std::uint32_t address, QWidget *parent); private slots: - void ctlbox_single_changed(int index); - void ctlbox_pipelined_changed(int index); + void cb_single_changed(int index); + void cb_pipelined_changed(int index); private: - QWidget *widg; - QBoxLayout *widg_layout; + QComboBox *cb_single; + QComboBox *cb_pipelined; +}; - MemoryView *memory_view; - QComboBox *ctlbox_single; - QComboBox *ctlbox_pipelined; +class ProgramDock : public QDockWidget { + Q_OBJECT +public: + ProgramDock(QWidget *parent); + + void setup(machine::QtMipsMachine *machine); + +private: + ProgramView *view; }; #endif // PROGRAMDOCK_H |