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 resetGuiObjectDisabledCounter(void)
Resets the disabled counter back to 0. (like no disabled was called)
void unlockGuiObject(const LockTypeFlags &_flags, int _unlockCount=1)
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).
virtual ~ManagedGuiObject()
void lockGuiObject(const LockTypeFlags &_flags, int _lockCount=1)
void setGuiObjectKey(const std::string &_key)
Definition ManagedGuiObject.h:33
void setGuiObjectEnabled(bool _enabled, int _counter=1)
void resetGuiObjectLockCounter(void)
LockTypeFlag
Describes the object type to lock in the UI.
Definition GuiTypes.h:156