|
wex v24.04.0
|
Offers an stc as a dialog (like wxTextEntryDialog). More...
#include <wex/stc/entry-dialog.h>

Public Member Functions | |
| stc_entry_dialog (const std::string &text=std::string(), const std::string &prompt=std::string(), const data::window &data=data::window()) | |
| Default constructor. | |
| auto * | get_stc () |
| Returns stc component. | |
| bool | set_validator (const std::string ®ex, bool ic=false) |
| Sets a validator regular expression (case sensitive) for the stc contents. | |
Public Member Functions inherited from wex::dialog | |
| dialog (const data::window &data=data::window()) | |
| Default constructor. | |
| const auto & | data () const |
| Returns the window data. | |
Additional Inherited Members | |
Protected Member Functions inherited from wex::dialog | |
| wxSizerItem * | add_user_sizer (wxWindow *window, const wxSizerFlags &flags=wxSizerFlags().Expand()) |
| Adds to the user sizer using the sizer flags. | |
| wxSizerItem * | add_user_sizer (wxSizer *sizer, const wxSizerFlags &flags=wxSizerFlags().Expand()) |
| Adds to the user sizer using the sizer flags. | |
| void | layout_sizers (bool add_separator_line=true) |
| layouts the sizers. | |
Offers an stc as a dialog (like wxTextEntryDialog).
The prompt (if not empty) is first added as a text sizer to the user sizer. Then the stc component is added to the user sizer.
| wex::stc_entry_dialog::stc_entry_dialog | ( | const std::string & | text = std::string(), |
| const std::string & | prompt = std::string(), | ||
| const data::window & | data = data::window() ) |
Default constructor.
| text | initial text |
| prompt | prompt (as with wxTextEntryDialog) |
| data | data |
| bool wex::stc_entry_dialog::set_validator | ( | const std::string & | regex, |
| bool | ic = false ) |
Sets a validator regular expression (case sensitive) for the stc contents.
The validator is cleared after each valid wxID_OK, or after wxID_CANCEL.
| regex | the regex |
| ic | default the regex is case sensitive, set ic to override this |