wex v24.10.0
|
Offers tool methods and contains the tool info's. More...
#include <wex/common/tool.h>
Public Member Functions | |
tool (window_id id=ID_LOWEST) | |
Default constructor, specify the toolid to use, default uses ID_LOWEST. | |
auto | id () const |
Returns the tool id. | |
const std::string | info () const |
Returns info about current tool. | |
const std::string | info (const statistics< int > *stat) const |
Returns info about current tool using specified statistics. | |
bool | is_find_type () const |
Is this tool a find type. | |
Static Public Member Functions | |
static void | add_info (window_id tool_id, const std::string &info, const std::string &text=std::string(), const std::string &helptext=std::string()) |
Adds your own info to the tool. | |
static const auto & | get_tool_info () |
Returns all the tool info. | |
Offers tool methods and contains the tool info's.
A tool with non empty text is used by menu::append_tools.
|
inlinestatic |
Adds your own info to the tool.
If you use a d in the info string, it is replaced by get_statistics with the Actions Completed element.