34#include <NDEVR/TranslatedString.h>
35#include <NDEVR/UUID.h>
void tryLock()
Attempts to acquire the lock without blocking.
CommandLockObject(DesignCommandManager *manager, const TranslatedString &title=TranslatedString())
Constructs a CommandLockObject associated with the given command manager.
void unlock()
Releases the lock so other operations may proceed.
bool isLocked() const
Checks whether this lock is currently held.
~CommandLockObject()
Destroys the CommandLockObject, releasing the lock if held.
void lock()
Acquires the lock, blocking until it is available.
const TranslatedString title() const
Returns the title string for this lock.
void setTitle(const TranslatedString &title)
Sets the user-facing title describing the locked operation.
const TranslatedString hint() const
Returns the hint string for this lock.
TranslatedString m_title
User-facing title describing the locked operation.
void setHint(const TranslatedString &hint)
Sets a hint string providing additional context about the locked operation.
UUID m_id
Unique identifier for this lock instance.
DesignCommandManager * m_manager
The command manager that owns and coordinates this lock.
TranslatedString m_hint
Additional hint text providing context about the locked operation.
Stores logic for performing, undoing, or redoing DesignCommands.
Any text displayed to the user should be defined as a TranslatedString which allows the program to lo...
A universally unique identifier (UUID) is a 128-bit number used to identify information in computer s...
Used to lock a particular variable for writing.
The primary namespace for the NDEVR SDK.