|
wex v25.10.0
|
Offers a ex commandline control related to a syntax::stc object, allowing you to enter ex commands for that stc object in the commandline. More...
#include <wex/ui/ex-commandline.h>
Public Member Functions | |
| ex_commandline (frame *frame, wxControl *prefix, const data::window &data) | |
| Constructor. Creates empty control. | |
| ex_commandline (frame *frame, const std::string &value=std::string(), const data::window &data=data::window()) | |
| Constructor. Skips prefix. | |
| virtual | ~ex_commandline ()=default |
| Destructor. | |
| virtual bool | find (bool user_input=true) |
| Finds current text on the component, default the stc component is used. | |
| virtual bool | find_on_enter () |
| Processes the enter key pressed on the component, default (when returning false) performs ex action, when returning true skips the default. | |
| syntax::stc * | control () |
| Returns the stc control window for the component, the commandline itself is just another stc, just as the one it is related to (through set_stc and stc). | |
| auto * | get_frame () |
| Returns frame. | |
| const std::string | get_text () const |
| Get string value. | |
| void | on_key_down (wxKeyEvent &event) |
| Handles keydown event. | |
| void | select_all () const |
| Selects all text. | |
| void | set_stc (wex::syntax::stc *stc) |
| Sets stc component. | |
| bool | set_stc (wex::syntax::stc *stc, const std::string &command) |
| Sets stc component and handles string command. | |
| bool | set_stc (wex::syntax::stc *stc, char command) |
| Sets stc component and handles char command to enter the input mode (a or c or i). | |
| void | set_text (const std::string &text) |
| Sets text. | |
| auto * | stc () |
| Returns stc component. | |
Offers a ex commandline control related to a syntax::stc object, allowing you to enter ex commands for that stc object in the commandline.
| bool wex::ex_commandline::set_stc | ( | wex::syntax::stc * | stc, |
| char | command ) |
Sets stc component and handles char command to enter the input mode (a or c or i).
Returns false if command not supported.
| bool wex::ex_commandline::set_stc | ( | wex::syntax::stc * | stc, |
| const std::string & | command ) |
Sets stc component and handles string command.
Returns false if command not supported.