#include <MathBoxWndUser.h>
Inheritance diagram for mgMathBoxWndUser:
Derived classes should, in fact, just use the GetBox() function: mgMathBoxWndUser will provide a working pointer.
Definition at line 51 of file MathBoxWndUser.h.
Public Member Functions | |
mgMathBoxWndUser (mgMathWnd *pWnd, mgMathBox *pBox) | |
The constructor: derived classes should always contain among the parameters of their constructors the two parameters to pass to this function: pBox and pWnd . | |
void | SendKeyEvent (wxObject *p, wxKeyEvent &ev) |
Sets appropriately the ID, event type and the originating object fields of the given wxKeyEvent class and then sends it to the client box. | |
void | SendKeyEvent (wxObject *p, wxChar c) |
void | SendSpecialKeyEvent (wxObject *p, wxKeyEvent &ev) |
void | SendSpecialKeyEvent (wxObject *p, wxChar c) |
Protected Member Functions | |
bool | isUsingMathWnd () |
Returns TRUE if this class has been linked with a mgMathWnd, FALSE if has been linked with a mgMathBox (see the constructors). | |
mgMathBox * | GetBox () |
Returns the box where the commands must be sent. | |
mgMathWnd * | GetWnd () |
Returns the pointer to the eventually previously set mgMathWnd. | |
Protected Attributes | |
mgMathWnd * | m_pMathWnd |
The math window where all the commands are sent. | |
mgMathBox * | m_pMathBox |
The math box where all the commands are sent. |
|
The constructor: derived classes should always contain among the parameters of their constructors the two parameters to pass to this function:
If you want to use a fixed mgMathBox, pass a non-null pointer as Definition at line 86 of file MathBoxWndUser.h. References m_pMathBox, and m_pMathWnd. |
|
Returns the box where the commands must be sent. This function checks which pointer is not NULL: m_pMath or m_pBox, and then use it to return a safe pointer to the mgMathBox which must receive commands. Definition at line 61 of file MathBoxWndUser.cpp. References mgResizeableBox::GetChild(), mgMathWnd::GetSelBox(), isUsingMathWnd(), m_pMathBox, and m_pMathWnd. Referenced by mgExportDlg::BuildCtrls(), SendKeyEvent(), and mgSolvePanel::UpdateSolverList(). |
|
Returns the pointer to the eventually previously set mgMathWnd. The returned value can be NULL (if no mgMathWnd are being used). Definition at line 76 of file MathBoxWndUser.h. References m_pMathWnd. |
|
Sets appropriately the ID, event type and the originating object fields of the given wxKeyEvent class and then sends it to the client box.
Definition at line 70 of file MathBoxWndUser.cpp. References GetBox(). |
|
The math box where all the commands are sent. This variable is used only if m_pMath is NULL. Definition at line 62 of file MathBoxWndUser.h. Referenced by GetBox(), and mgMathBoxWndUser(). |
|
The math window where all the commands are sent.
Commands are sent to this Definition at line 58 of file MathBoxWndUser.h. Referenced by GetBox(), GetWnd(), isUsingMathWnd(), and mgMathBoxWndUser(). |
[ Top ] |