NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
This class represents the calltip in the terminal. The associated window will only be shown and hidden. No new window is created for eachs calltip. More...
#include <terminalcalltip.hpp>
Public Member Functions | |
TerminalCallTip (wxWindow *parent, const wxSize &s=wxDefaultSize) | |
TerminalCallTip constructor. More... | |
void | PopUp (const wxPoint &pos, const wxString &text) |
Show the calltip at the desired position. This function does not check, whether the calltip is acutally visible. More... | |
void | Dismiss () |
Remove the shown calltip. More... | |
void | Resize (const wxSize &s) |
Change the calltip's size. More... | |
void | ChangeFont (const wxFont &font) |
Changes the font of the calltip. More... | |
void | Highlight (size_t start, size_t len) |
Hightlight the section of the text in the calltip. More... | |
virtual bool | AcceptsFocus () const override |
virtual bool | AcceptsFocusFromKeyboard () const override |
virtual bool | AcceptsFocusRecursively () const override |
Private Attributes | |
wxTextCtrl * | m_text |
This class represents the calltip in the terminal. The associated window will only be shown and hidden. No new window is created for eachs calltip.
Definition at line 31 of file terminalcalltip.hpp.
TerminalCallTip::TerminalCallTip | ( | wxWindow * | parent, |
const wxSize & | s = wxDefaultSize |
||
) |
TerminalCallTip constructor.
parent | wxWindow* |
s | const wxSize& |
Definition at line 30 of file terminalcalltip.cpp.
References m_text.
|
inlineoverridevirtual |
Definition at line 46 of file terminalcalltip.hpp.
|
inlineoverridevirtual |
Definition at line 51 of file terminalcalltip.hpp.
|
inlineoverridevirtual |
Definition at line 56 of file terminalcalltip.hpp.
void TerminalCallTip::ChangeFont | ( | const wxFont & | font | ) |
Changes the font of the calltip.
font | const wxFont& |
Definition at line 97 of file terminalcalltip.cpp.
References m_text.
Referenced by NumeReTerminal::SetFont().
void TerminalCallTip::Dismiss | ( | ) |
Remove the shown calltip.
Definition at line 70 of file terminalcalltip.cpp.
Referenced by NumeReTerminal::CalltipCancel().
void TerminalCallTip::Highlight | ( | size_t | start, |
size_t | len | ||
) |
Hightlight the section of the text in the calltip.
start | size_t |
len | size_t |
Definition at line 112 of file terminalcalltip.cpp.
References m_text.
Referenced by NumeReTerminal::Calltip().
void TerminalCallTip::PopUp | ( | const wxPoint & | pos, |
const wxString & | text | ||
) |
Show the calltip at the desired position. This function does not check, whether the calltip is acutally visible.
pos | const wxPoint& |
text | const wxString& |
Definition at line 52 of file terminalcalltip.cpp.
References m_text.
Referenced by NumeReTerminal::Calltip().
void TerminalCallTip::Resize | ( | const wxSize & | s | ) |
Change the calltip's size.
s | const wxSize& |
Definition at line 83 of file terminalcalltip.cpp.
References m_text.
Referenced by NumeReTerminal::Calltip().
|
private |
Definition at line 34 of file terminalcalltip.hpp.
Referenced by ChangeFont(), Highlight(), PopUp(), Resize(), and TerminalCallTip().