diff options
author | Karel Kočí <cynerd@email.cz> | 2018-01-25 15:40:50 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2018-01-25 15:40:50 +0100 |
commit | 92c7fd220506df5f7997d27dbbcdb513e66932a7 (patch) | |
tree | 387da2cffe29d48cb6894070c8dcdd9900bce2a9 /qtmips_gui/programdock.h | |
parent | eb75bba956fb13e156a89406f5928a55e7b66fc4 (diff) | |
download | qtmips-92c7fd220506df5f7997d27dbbcdb513e66932a7.tar.gz qtmips-92c7fd220506df5f7997d27dbbcdb513e66932a7.tar.bz2 qtmips-92c7fd220506df5f7997d27dbbcdb513e66932a7.zip |
Implement memoryview
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 |