diff options
author | Karel Kočí <cynerd@email.cz> | 2018-01-05 16:24:29 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2018-01-05 16:30:23 +0100 |
commit | 6528cdb58abcbe432dd387d565c9a1157f90795a (patch) | |
tree | b686944f40fca86523435320369d9bbf73cb709f /qtmips_gui/programdock.h | |
parent | 799dcddc2420ce1450ac2bdd0d69bccf4a2f2e1f (diff) | |
download | qtmips-6528cdb58abcbe432dd387d565c9a1157f90795a.tar.gz qtmips-6528cdb58abcbe432dd387d565c9a1157f90795a.tar.bz2 qtmips-6528cdb58abcbe432dd387d565c9a1157f90795a.zip |
Implement initial dialog for program memory dock
I am missing memory view for now.
Diffstat (limited to 'qtmips_gui/programdock.h')
-rw-r--r-- | qtmips_gui/programdock.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/qtmips_gui/programdock.h b/qtmips_gui/programdock.h new file mode 100644 index 0000000..033cf54 --- /dev/null +++ b/qtmips_gui/programdock.h @@ -0,0 +1,32 @@ +#ifndef PROGRAMDOCK_H +#define PROGRAMDOCK_H + +#include <QDockWidget> +#include <QBoxLayout> +#include <QComboBox> +#include <QLabel> +#include <QLineEdit> +#include "qtmipsmachine.h" + +class ProgramDock : public QDockWidget { + Q_OBJECT +public: + ProgramDock(QWidget *parent); + ~ProgramDock(); + + void setup(machine::QtMipsMachine *machine); + +private slots: + void ctlbox_single_changed(int index); + void ctlbox_pipelined_changed(int index); + +private: + QWidget *widg; + QBoxLayout *widg_layout; + + //QLineEdit *ctlline; + QComboBox *ctlbox_single; + QComboBox *ctlbox_pipelined; +}; + +#endif // PROGRAMDOCK_H |