Changes in src/UIElements/Menu/Menu.hpp [163110:56f73b]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Menu/Menu.hpp
r163110 r56f73b 61 61 62 62 protected: 63 // !>Unique name of the menu for identification.63 // Unique name of the menu for identification. 64 64 const std::string name; 65 65 66 /** populater function that adds all menu items. 67 * 68 */ 66 // populater function that adds all menu items 69 67 void populate(); 70 71 /** Populater function for all Actions in this menu.72 *73 */74 68 void populateActions(); 75 69 76 70 private: 77 /** Adds an action to this menu. 78 * 79 * @param ActionName name of action 80 * @param ActionDescription of the action (e.g. for tooltips) 81 */ 82 void addAction(const std::string &ActionName, const std::string &ActionDescription); 83 84 /** Adds a separator (e.g. horizontal line) to menu. 85 * 86 */ 71 void addAction(const std::string &ActionName); 87 72 void addSeparator(); 88 89 /** Adds a submenu to this menu.90 *91 * @param MenuName name of submenu92 * @param MenuPosition position in sequence of items of submenu93 */94 73 void addSubmenu(const std::string &MenuName, const int MenuPosition); 95 96 /** Checks whether an item named \a token exists in this menu.97 *98 * @param token name of action of submenu99 * @return true - item exists, false - item does not exist in this menu100 */101 74 bool isPresent(const std::string &token); 102 75 103 //!> enumeration of all valid item types104 76 enum ItemType {ActionItem, MenuItem, SeparatorItem, NoItem}; 105 77 106 //!> current position to add 107 int TopPosition; 108 //!> check whether separator followed separator 109 enum ItemType LastItem; 110 //!> is used to check for duplicates 111 std::set <std::string> DuplicatesList; 78 int TopPosition; // current position to add 79 enum ItemType LastItem; // check whether separator followed separator 80 std::set <std::string> DuplicatesList; // is used to check for duplicates 112 81 }; 113 82
Note:
See TracChangeset
for help on using the changeset viewer.