wxMaxima
Loading...
Searching...
No Matches
Data Structures | Public Member Functions | Static Public Member Functions | Protected Member Functions
RegexCtrl Class Reference

A BTextCtrl that allows to input a regex. More...

#include <RegexCtrl.h>

Inheritance diagram for RegexCtrl:
[legend]
Collaboration diagram for RegexCtrl:
[legend]

Public Member Functions

 RegexCtrl (wxWindow *parent, wxWindowID id, Configuration *cfg, const wxString &configName)
 
bool Matches (wxString text)
 
void SetSkipTab (bool skip)
 

Static Public Member Functions

static wxTextCtrl * LastActive ()
 The last BTextCtrl that got the keyboard focus, if it still exists.
 
static void ForgetLastActive ()
 Route sidebar button presses back to the worksheet again.
 

Protected Member Functions

void OnTextChange (wxCommandEvent &ev)
 Is called when the contents of the textbox changes.
 
void OnMouseRightDown (wxMouseEvent &event)
 Called, if the user releases the right mouse button.
 
void OnMenu (wxCommandEvent &event)
 Called, if the user selects a menu item.
 
void OnChange ()
 Called, if the search text or method changes.
 

Detailed Description

A BTextCtrl that allows to input a regex.

Member Function Documentation

◆ LastActive()

static wxTextCtrl * BTextCtrl::LastActive ( )
inlinestaticinherited

The last BTextCtrl that got the keyboard focus, if it still exists.

The symbols sidebars use this to route their button presses: if a text control (e.g. a wizard field) had the focus last, the symbol is inserted there instead of into the worksheet.

Held as a wxWeakRef, which nulls itself when the control is destroyed: a closed wizard can therefore never leave a dangling pointer here, and no destructor needs to unregister the control anywhere (unregistering via the Configuration object crashed on shutdown when the Configuration died first, see issue #2027).


The documentation for this class was generated from the following files: