aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/programdock.h
diff options
context:
space:
mode:
Diffstat (limited to 'qtmips_gui/programdock.h')
-rw-r--r--qtmips_gui/programdock.h32
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