2#pragma warning(disable : 4251)
7 class __declspec(dllexport) MenuButtonDescription
10 MenuButtonDescription(
const std::string& pageName,
const std::string& groupName,
const std::string& buttonName)
11 : _pageName(pageName), _groupName(groupName), _buttonName(buttonName)
13 MenuButtonDescription(
const std::string& pageName,
const std::string& groupName,
const std::string& subgroupName,
const std::string& buttonName)
14 : _pageName(pageName), _groupName(groupName), _buttonName(buttonName), _subgroupName(subgroupName)
16 MenuButtonDescription() {};
18 void SetDescription(
const std::string& pageName,
const std::string& groupName,
const std::string& buttonName,
const std::string& buttonText =
"",
const std::string& subgroupName =
"")
21 _groupName = groupName;
22 _buttonName = buttonName;
23 _subgroupName = subgroupName;
26 _buttonText = buttonName;
30 _buttonText = buttonText;
34 const std::string GetPageName(
void) {
return _pageName; }
35 const std::string GetGroupName(
void) {
return _groupName; }
36 const std::string GetSubgroupName(
void) {
return _subgroupName; }
37 const std::string GetButtonName(
void) {
return _buttonName; }
38 const std::string GetButtonText(
void) {
return _buttonText; }
40 const std::string GetFullDescription()
42 if (_subgroupName ==
"")
44 return _pageName +
":" + _groupName +
":" + _buttonName;
48 return _pageName +
":" + _groupName +
":" + _subgroupName +
":" + _buttonName;
52 std::string _pageName =
"";
53 std::string _groupName =
"";
54 std::string _subgroupName =
"";
55 std::string _buttonName =
"";
56 std::string _buttonText =
"";