pbd: fairly unconscionable that Undo stuff in libpbd is not namespaced, so now it is

This commit is contained in:
Paul Davis 2023-08-06 13:30:48 -06:00
parent 6b34578dfd
commit 0223be5312
2 changed files with 7 additions and 3 deletions

View File

@ -1060,7 +1060,7 @@ public:
*/
void redo (uint32_t n);
UndoHistory& history() { return _history; }
PBD::UndoHistory& history() { return _history; }
uint32_t undo_depth() const { return _history.undo_depth(); }
uint32_t redo_depth() const { return _history.redo_depth(); }
@ -2108,9 +2108,9 @@ private:
XMLNode* _bundle_xml_node;
int load_bundles (XMLNode const &);
UndoHistory _history;
PBD::UndoHistory _history;
/** current undo transaction, or 0 */
UndoTransaction* _current_trans;
PBD::UndoTransaction* _current_trans;
/** GQuarks to describe the reversible commands that are currently in progress.
* These may be nested, in which case more recently-started commands are toward
* the front of the list.

View File

@ -39,6 +39,8 @@
#include "pbd/command.h"
#include "pbd/libpbd_visibility.h"
namespace PBD {
typedef sigc::slot<void> UndoAction;
class LIBPBD_API UndoTransaction : public PBD::Command
@ -140,4 +142,6 @@ private:
void remove (UndoTransaction*);
};
} /* namespace */
#endif /* __lib_pbd_undo_h__ */