mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
undo infrastructure: improve undo command texts
For many of the commands it is fairly easy to add information that makes it easier to figure out what actually happened. That's especially true for commands operating on dives. Trip and dive site edits haven't been given these more elaborate undo texts (yet). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
8ce4e10ccb
commit
0212b1b9f7
4 changed files with 63 additions and 20 deletions
|
@ -172,7 +172,12 @@ public:
|
|||
// If nothing is to be done, the command will be deleted and false is returned.
|
||||
bool execute(Base *cmd);
|
||||
|
||||
// helper function to create more meaningful undo/redo texts (and get the list
|
||||
// of those texts for the git storage commit message)
|
||||
QUndoStack *getUndoStack();
|
||||
QString diveNumberOrDate(struct dive *d);
|
||||
QString getListOfDives(const std::vector<dive *> &dives);
|
||||
QString getListOfDives(QVector<struct dive *> dives);
|
||||
|
||||
} // namespace Command
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue