34 bool setControlEnabled(
const std::string& _controlName,
bool _isEnabled =
true,
bool _sendRequest =
true);
42 bool setControlEnabled(
const std::string& _toolBarPageName,
const std::string& _toolBarGroupName,
const std::string& _controlName,
bool _isEnabled =
true,
bool _sendRequest =
true);
50 bool setControlEnabled(
const std::string& _toolBarPageName,
const std::string& _toolBarGroupName,
const std::string& _toolBarSubGroupName,
const std::string& _controlName,
bool _isEnabled =
true,
bool _sendRequest =
true);
71 inline std::string toolBarControlName(
const std::string& _pageName,
const std::string& _groupName,
const std::string& _controlName)
const {
return _pageName +
":" + _groupName +
":" + _controlName; };
78 inline std::string toolBarControlName(
const std::string& _pageName,
const std::string& _groupName,
const std::string& _subgroupName,
const std::string& _controlName)
const {
return _pageName +
":" + _groupName +
":" + _subgroupName +
":" + _controlName; };
80 inline bool controlExists(
const std::string& _controlName)
const {
return m_controlsEnabledState.find(_controlName) != m_controlsEnabledState.end(); };
82 std::map<std::string, bool> m_controlsEnabledState;
83 std::map<std::string, bool> m_controlsEnabledStateInFrontend;
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14
bool setControlEnabled(const std::string &_controlName, bool _isEnabled=true, bool _sendRequest=true)
Sets the control enabled state.
Definition Frontend.cpp:13