diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-02-28 20:38:04 +0100 |
---|---|---|
committer | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-04-07 00:13:35 +0200 |
commit | 1dcc885bb257d6c8c64074f8788b468397c34aaa (patch) | |
tree | 39c987e36b7f0f103dbdf412c582da1b1907a0e1 /dives/test7.xml | |
parent | 1aa06e680230351024c05152aeca9a189c5a8d4f (diff) | |
download | subsurface-1dcc885bb257d6c8c64074f8788b468397c34aaa.tar.gz |
undo/cylinders: Implement editing of the type
This one is tricky, as when browsing through the types-combobox,
the user is presented with presets without actually changing the
dive. We do not want an undo-command for every change-event in
the combo-box.
Therefore, implement a scheme analoguous to the weight-editing:
A temporary row can be set / committed or reset. Sadly, the
code is more complex because we have to consider the planner,
which is not included in the undo system.
Firstly, the planner uses a different model, therefore all
interactions are channeled through setData() with special roles.
Secondly, in the planner we shouldn't place an undo command,
but simply overwrite the dive.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'dives/test7.xml')
0 files changed, 0 insertions, 0 deletions