40 void setGuiObjectEnabled(
bool _enabled,
int _counter = 1);
43 void resetGuiObjectDisabledCounter(
void);
45 void lockGuiObject(
const LockTypeFlags& _flags,
int _lockCount = 1);
47 void unlockGuiObject(
const LockTypeFlags& _flags,
int _unlockCount = 1);
49 void resetGuiObjectLockCounter(
void);
56 void lockGuiObjectFlag(
LockTypeFlag _flag,
int _lockCount);
57 void unlockGuiObjectFlag(
LockTypeFlag _flag,
int _unlockCount);
59 void evaluateEnabledState(
void);
65 int m_disabledCounter;
66 std::map<LockTypeFlag, int> m_lockCounter;
This file contains defines that may be used simplyfy class creation.
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14
Definition ManagedGuiObject.h:20
const BasicServiceInformation & getGuiObjectOwner(void) const
Definition ManagedGuiObject.h:31
void setGuiObjectOwner(const BasicServiceInformation &_owner)
Definition ManagedGuiObject.h:30
const std::string & getGuiObjectKey(void) const
Definition ManagedGuiObject.h:34
virtual void updateGuiObjectEnabledState(bool _enabled)=0
This method is called whenever the enabled state should be updated (e.g. setEnabled or setReadOnly).
void setGuiObjectKey(const std::string &_key)
Definition ManagedGuiObject.h:33
LockTypeFlag
Describes the object type to lock in the UI.
Definition GuiTypes.h:156