wex v24.10.0
|
This class contains a single vcs command. More...
#include <wex/core/vcs-command.h>
Public Member Functions | |
vcs_command (const pugi::xml_node &node=pugi::xml_node()) | |
Default constructor using xml node. | |
bool | is_add () const |
Returns true if this is a add like command. | |
bool | is_blame () const |
Returns true if this is a blame like command. | |
bool | is_checkout () const |
Returns true if this is a checkout like command. | |
bool | is_commit () const |
Returns true if this is a commit like command. | |
bool | is_diff () const |
Returns true if this is a diff like command. | |
bool | is_history () const |
Returns true if this is a history like command. | |
bool | is_open () const |
Returns true if this command can behave like opening a file. | |
Public Member Functions inherited from wex::menu_command | |
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. | |
Additional Inherited Members | |
Public Types inherited from wex::menu_command | |
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. | |
This class contains a single vcs command.