|
wex v25.10.0
|
This class contains a single menu command. More...
#include <wex/core/menu-command.h>

Public Types | |
| enum | include { INCLUDE_SUBCOMMAND = 0 , INCLUDE_ACCELL } |
| The command flags as used by get_command. More... | |
| enum | { IS_LINES = 0 , IS_ASKED , IS_POPUP , IS_MAIN , IS_SELECTED , IS_VISUAL , SEPARATOR , ELLIPSES } |
| The command type flags as read from xml file. More... | |
| typedef std::bitset< 2 > | include_t |
| A typedef containing command flags. | |
| typedef std::bitset< 8 > | type_t |
| A typedef containing type flags. | |
Public Member Functions | |
| menu_command (const pugi::xml_node &node=pugi::xml_node()) | |
| Default constructor using xml node. | |
| bool | ask_flags () const |
| Returns true if flags are requested for this command. | |
| const std::string & | control () const |
| Returns the control key. | |
| const std::string & | flags () const |
| Returns the flags. | |
| const std::string | get_command (include_t type=include_t().set(INCLUDE_SUBCOMMAND)) const |
| Returns the command (and subcommand and accelerators if necessary). | |
| const std::string & | submenu () const |
| Returns the submenu. | |
| bool | is_help () const |
| Returns true if this is a help like command. | |
| const type_t & | type () const |
| Returns the type. | |
| const std::string & | text () const |
| Returns the menu text. | |
| bool | use_subcommand () const |
| Returns true if a subcommand can be used for this command. | |
This class contains a single menu command.
The menu command is meant to be used as command as e.g. vcs or debug command directly.
| anonymous enum |
The command type flags as read from xml file.
|
inline |
Returns true if flags are requested for this command.
All commands, except help, and if the flags are present in menus.xml, support flags.