aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/programmodel.h
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-12 16:18:58 +0100
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-12 16:18:58 +0100
commitdf292aade4d174a7a5824f463b3a1dccf20e6c54 (patch)
tree85d26d5a0d5101f5caae6dcde20b515f98bcbb06 /qtmips_gui/programmodel.h
parentfc27072b451dd8385401fadf198db69b0e87c72c (diff)
downloadqtmips-df292aade4d174a7a5824f463b3a1dccf20e6c54.tar.gz
qtmips-df292aade4d174a7a5824f463b3a1dccf20e6c54.tar.bz2
qtmips-df292aade4d174a7a5824f463b3a1dccf20e6c54.zip
Make memory and program listing editable.
Instruction parsing is rough and does not support branch offset computation. Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_gui/programmodel.h')
-rw-r--r--qtmips_gui/programmodel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qtmips_gui/programmodel.h b/qtmips_gui/programmodel.h
index a6db493..9beecef 100644
--- a/qtmips_gui/programmodel.h
+++ b/qtmips_gui/programmodel.h
@@ -51,6 +51,8 @@ public:
int columnCount(const QModelIndex &parent = QModelIndex()) const override;
QVariant headerData(int section, Qt::Orientation orientation, int role) const override;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
+ Qt::ItemFlags flags(const QModelIndex &index) const;
+ bool setData(const QModelIndex & index, const QVariant & value, int role);
bool adjustRowAndOffset(int &row, int optimal_row, std::uint32_t address);
void update_all();