aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/newdialog.h
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-01-17 14:47:18 +0100
committerKarel Kočí <cynerd@email.cz>2018-01-17 14:47:18 +0100
commit5feb16d0738f57d220e5f2e6ba85e072c22135ee (patch)
tree73d136af8dba31e004a281c2072521b63a97ae19 /qtmips_gui/newdialog.h
parentd7d9860051a9a9eb2c6f11684535ac65cce38eb8 (diff)
downloadqtmips-5feb16d0738f57d220e5f2e6ba85e072c22135ee.tar.gz
qtmips-5feb16d0738f57d220e5f2e6ba85e072c22135ee.tar.bz2
qtmips-5feb16d0738f57d220e5f2e6ba85e072c22135ee.zip
Update how configuration is handled in newdialog
In previous implementation were dependencies described on two places. In NewDialog and in MachineConfig. Now NewDialog sets options in MachineConfig and configuration is then applied to NewDialog.
Diffstat (limited to 'qtmips_gui/newdialog.h')
-rw-r--r--qtmips_gui/newdialog.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/qtmips_gui/newdialog.h b/qtmips_gui/newdialog.h
index a088777..5b50a41 100644
--- a/qtmips_gui/newdialog.h
+++ b/qtmips_gui/newdialog.h
@@ -7,6 +7,7 @@
#include <QMessageBox>
#include "ui_NewDialog.h"
#include "ui_NewDialogCache.h"
+#include "machineconfig.h"
class NewDialog : public QDialog {
Q_OBJECT
@@ -21,14 +22,24 @@ private slots:
void cancel();
void create();
void browse_elf();
- void preset(bool);
- void set_custom_preset();
+ void set_preset();
+ void pipelined_change(bool);
+ void delay_slot_change(bool);
+ void hazard_unit_change();
+ void mem_protec_exec_change(bool);
+ void mem_protec_write_change(bool);
+
+ void cache_data_change(bool);
+ void cache_program_change(bool);
private:
Ui::NewDialog *ui;
Ui::NewDialogCache *ui_cache_p, *ui_cache_d;
QSettings *settings;
+ machine::MachineConfig *config;
+ void config_gui(); // Apply configuration to gui
+
void load_settings();
void store_settings();
};