NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
An implementation of a generic terminal, which has to be specialized in the child classes. More...
#include <gterm.hpp>
Public Types | |
enum | { BOLD =0x1 , BLINK =0x2 , UNDERLINE =0x4 , INVERSE =0x8 , NOEOLWRAP =0x10 , CURSORAPPMODE =0x20 , CURSORRELATIVE =0x40 , NEWLINE =0x80 , INSERT =0x100 , KEYAPPMODE =0x200 , DEFERUPDATE =0x400 , DESTRUCTBS =0x800 , TEXTONLY =0x1000 , LOCALECHO =0x2000 , CURSORINVISIBLE =0x4000 , PC =0x8000 , SELECTED =0x8000 } |
enum | { RESETTAB =0x1 , RESETCURSOR =0x2 } |
Public Member Functions | |
GenericTerminal (int w, int h) | |
Constructor. More... | |
virtual | ~GenericTerminal () |
Empty destructor. More... | |
NumeReSyntax * | getSyntax () |
NumeRe::CallTipProvider * | getProvider () |
virtual void | ProcessInput (int len, const std::string &sData) |
virtual void | ProcessOutput (int len, const std::string &sData) |
Processes output returned from the kernel and hands it over to the internal buffer. More... | |
virtual void | ResizeTerminal (int _width, int _height) |
int | Width () const |
int | Height () const |
virtual void | Update () |
Simple wrapper around update_changes() More... | |
virtual void | Reset () |
Simple wrapper around reset(). More... | |
bool | Scroll (int numLines, bool scrollUp) |
int | GetScrollHeight () |
int | GetScrollPosition () |
Returns the current scroll position. More... | |
TextManager * | GetTM () |
Get a pointer to the internal text buffer. More... | |
void | SetTerminalHistory (int size) |
Set the terminal buffer size (not the length of the input history). The length of the history (i.e. the terminal length) is determined by the width of the terminal and the number of calculated line breaks. More... | |
bool | IsScrolledUp () |
Determine, whether the terminal is scrolled up. More... | |
int | GetMode () const |
void | SetMode (int mode) |
void | set_mode_flag (int flag) |
Sets a mode flag (only used to make the cursor invisble). More... | |
void | clear_mode_flag (int flag) |
Clears a mode flag (mainly used to make the cursor visible again). More... | |
virtual void | DrawText (int fg_color, int bg_color, int flags, int x, int y, const std::string &sText)=0 |
virtual void | DrawCursor (int fg_color, int bg_color, int flags, int x, int y, unsigned char c)=0 |
virtual void | Calltip (int x, int y, NumeRe::CallTip &_cTip) |
virtual void | CalltipCancel () |
virtual void | ClearChars (int bg_color, int x, int y, int w, int h) |
virtual void | SendBack (int len, char *data) |
virtual void | SendBack (char *data) |
virtual void | ModeChange (int state) |
virtual void | Bell () |
virtual int | IsSelected (int x, int y) |
virtual void | Select (int x, int y, int select) |
virtual unsigned char | GetChar (int x, int y) |
Gets the character at the selected location. More... | |
std::string | get_selected_text () |
Gets the selected text (if any). More... | |
Public Attributes | |
enum GenericTerminal:: { ... } | MODES |
Protected Member Functions | |
void | move_cursor_editable_area (int x, int y) |
Moves the cursor to a location, if this location is editable. More... | |
void | update_changes () |
void | normal_input () |
void | normal_output () |
This member function is for printing the kernel's output to the console. More... | |
void | resetAutoComp (int mode) |
Reset the current autocompletion list and the corresponding variables. More... | |
std::string | getProcNameSpace () |
This member function evalutes the procedure signature and returns its namespace. Will only be called from GTerm::tab(). More... | |
void | cr () |
Insert a carriage return. More... | |
void | lf () |
Insert a line feed. More... | |
void | ff () |
Insert a form feed (not used). More... | |
void | bell () |
Perform a bell sound (not used). More... | |
void | tab () |
Evaluate the tab key (do not insert a tab character but try to autocomplete the current input). More... | |
bool | bs () |
Perform a backspace operation. More... | |
bool | del () |
Perform a delete key operation. More... | |
bool | delSelected () |
Delete a selected block. More... | |
void | reset () |
Resets the terminal, so that it starts with an empty buffer. More... | |
bool | cursor_left () |
Moves the cursor to the left. More... | |
bool | cursor_down () |
Either moves the cursor down or performs a history jump. More... | |
bool | cursor_right () |
Moves the cursor to the right. More... | |
bool | cursor_up () |
Either moves the cursor up or performs a history jump. More... | |
bool | ctrl_left () |
Moves the cursor one word to the left. More... | |
bool | ctrl_right () |
Moves the cursor one word to the right. More... | |
bool | home () |
Moves the cursor to the leftmost position in the current line. More... | |
bool | end () |
Moves the cursor to the rightmost position in the current line. More... | |
bool | front () |
Moves the cursor to the leftmost position in the whole input. More... | |
bool | back () |
Moves the cursor to the rightmost position in the whole input. More... | |
void | erase_line () |
Erases the current line in the internal buffer. More... | |
void | erase_usercontent_line () |
Erases alle user-written contents from the current line. More... | |
Protected Attributes | |
int | doing_update |
int | nTabStartPos |
int | nCursorUpDownStartPos |
std::string | sAutoCompWordStart |
std::string | sAutoCompList |
bool | m_useSmartSense |
Private Member Functions | |
void | clear_area (int start_x, int start_y, int end_x, int end_y) |
int | calc_color (int fg, int bg, int flags) |
Returns the encoded color bitlist. More... | |
void | move_cursor (int x, int y) |
void | handle_calltip (int x, int y) |
Check, whether a calltip is needed and select the corresponding text from the CallTipProvider. More... | |
Private Attributes | |
int | width |
int | height |
int | scroll_top |
int | scroll_bot |
TextManager | tm |
NumeRe::CallTipProvider | m_tipProvider |
ViewCursor | termCursor |
int | fg_color |
int | bg_color |
int | mode_flags |
int | nparam |
int | param [30] |
std::string | sInput_Data |
int | data_len |
NumeReSyntax | _syntax |
An implementation of a generic terminal, which has to be specialized in the child classes.
anonymous enum |
GenericTerminal::GenericTerminal | ( | int | w, |
int | h | ||
) |
Constructor.
w | int |
h | int |
Definition at line 154 of file gterm.cpp.
References _syntax, doing_update, NumeReSyntax::loadSyntax(), MAXHEIGHT, MAXWIDTH, mode_flags, reset(), resetAutoComp(), RESETCURSOR, RESETTAB, termCursor, and tm.
|
virtual |
|
protected |
Moves the cursor to the rightmost position in the whole input.
Definition at line 748 of file actions.cpp.
References TextManager::IsEditableLogical(), move_cursor(), termCursor, tm, TextManager::toLogicalCursor(), TextManager::toViewCursor(), ViewCursor::x, and ViewCursor::y.
Referenced by end(), and erase_usercontent_line().
|
protected |
Perform a bell sound (not used).
Definition at line 396 of file actions.cpp.
References Bell().
|
inlinevirtual |
|
protected |
Perform a backspace operation.
Definition at line 292 of file actions.cpp.
References TextManager::backspace(), TextManager::getCurrentViewPos(), handle_calltip(), TextManager::IsEditable(), termCursor, tm, TextManager::toLogicalCursor(), TextManager::toViewCursor(), update_changes(), ViewCursor::x, and ViewCursor::y.
Referenced by NumeReTerminal::filterKeyCodes().
|
private |
|
inlinevirtual |
Reimplemented in NumeReTerminal.
Definition at line 188 of file gterm.hpp.
Referenced by handle_calltip().
|
inlinevirtual |
Reimplemented in NumeReTerminal.
Definition at line 189 of file gterm.hpp.
Referenced by handle_calltip(), and ProcessOutput().
|
private |
private clear_area Clears out a given area on the screen
start_x | int The starting x coordinate |
start_y | int The starting y coordinate |
end_x | int The ending x coordinate |
end_y | int The ending y coordinate |
Definition at line 117 of file utils.cpp.
References TextManager::clearRange(), and tm.
Referenced by ff(), reset(), and tab().
void GenericTerminal::clear_mode_flag | ( | int | flag | ) |
Clears a mode flag (mainly used to make the cursor visible again).
flag | int |
Definition at line 336 of file utils.cpp.
References mode_flags, and ModeChange().
Referenced by NumeReTerminal::OnGainFocus(), and reset().
|
inlinevirtual |
Reimplemented in NumeReTerminal.
Definition at line 192 of file gterm.hpp.
Referenced by update_changes().
|
protected |
Insert a carriage return.
Definition at line 179 of file actions.cpp.
References move_cursor(), termCursor, and ViewCursor::y.
Referenced by NumeReTerminal::filterKeyCodes().
|
protected |
Moves the cursor one word to the left.
Definition at line 599 of file actions.cpp.
References TextManager::GetCharLogical(), handle_calltip(), TextManager::IsEditableLogical(), termCursor, tm, TextManager::toLogicalCursor(), TextManager::toViewCursor(), ViewCursor::x, and ViewCursor::y.
Referenced by NumeReTerminal::filterKeyCodes().
|
protected |
Moves the cursor one word to the right.
Definition at line 637 of file actions.cpp.
References TextManager::GetCharLogical(), handle_calltip(), TextManager::IsEditableLogical(), termCursor, tm, TextManager::toLogicalCursor(), TextManager::toViewCursor(), ViewCursor::x, and ViewCursor::y.
Referenced by NumeReTerminal::filterKeyCodes().
|
protected |
Either moves the cursor down or performs a history jump.
Definition at line 535 of file actions.cpp.
References data_len, erase_usercontent_line(), TextManager::getCurrentInputLine(), TextManager::GetInputHistory(), height, TextManager::IsEditable(), move_cursor(), nCursorUpDownStartPos, normal_input(), param, LogicalCursor::pos, sInput_Data, termCursor, tm, TextManager::toLogicalCursor(), ViewCursor::x, and ViewCursor::y.
Referenced by NumeReTerminal::filterKeyCodes().
|
protected |
Moves the cursor to the left.
Definition at line 432 of file actions.cpp.
References handle_calltip(), TextManager::IsEditableLogical(), termCursor, tm, TextManager::toLogicalCursor(), TextManager::toViewCursor(), ViewCursor::x, and ViewCursor::y.
Referenced by NumeReTerminal::filterKeyCodes().
|
protected |
Moves the cursor to the right.
Definition at line 456 of file actions.cpp.
References handle_calltip(), TextManager::IsEditableLogical(), termCursor, tm, TextManager::toLogicalCursor(), TextManager::toViewCursor(), ViewCursor::x, and ViewCursor::y.
Referenced by NumeReTerminal::filterKeyCodes().
|
protected |
Either moves the cursor up or performs a history jump.
Definition at line 480 of file actions.cpp.
References data_len, erase_usercontent_line(), TextManager::getCurrentInputLine(), TextManager::GetInputHistory(), TextManager::IsEditable(), move_cursor(), nCursorUpDownStartPos, normal_input(), param, LogicalCursor::pos, sInput_Data, termCursor, tm, TextManager::toLogicalCursor(), ViewCursor::x, and ViewCursor::y.
Referenced by NumeReTerminal::filterKeyCodes().
|
protected |
Perform a delete key operation.
Definition at line 329 of file actions.cpp.
References TextManager::backspace(), handle_calltip(), TextManager::IsEditable(), termCursor, tm, TextManager::toLogicalCursor(), update_changes(), ViewCursor::x, and ViewCursor::y.
Referenced by NumeReTerminal::filterKeyCodes().
|
protected |
Delete a selected block.
Definition at line 360 of file actions.cpp.
References TextManager::clearRange(), TextManager::getCurrentLogicalPos(), handle_calltip(), TextManager::IsEditable(), TextManager::IsEditableLogical(), TextManager::isSelected(), TextManager::isSelectedLogical(), LogicalCursor::pos, termCursor, tm, TextManager::toLogicalCursor(), TextManager::toViewCursor(), update_changes(), ViewCursor::x, and ViewCursor::y.
Referenced by NumeReTerminal::cutText(), NumeReTerminal::OnChar(), and NumeReTerminal::ProcessInput().
|
pure virtual |
Implemented in NumeReTerminal.
Referenced by update_changes().
|
pure virtual |
Implemented in NumeReTerminal.
Referenced by update_changes().
|
protected |
Moves the cursor to the rightmost position in the current line.
Definition at line 692 of file actions.cpp.
References back(), TextManager::IsEditable(), move_cursor(), termCursor, tm, ViewCursor::x, and ViewCursor::y.
Referenced by NumeReTerminal::filterKeyCodes().
|
protected |
Erases the current line in the internal buffer.
Definition at line 779 of file actions.cpp.
References TextManager::eraseLine(), and tm.
Referenced by NumeReTerminal::EndKernelTask(), and NumeReTerminal::pass_command().
|
protected |
Erases alle user-written contents from the current line.
Definition at line 792 of file actions.cpp.
References back(), TextManager::backspace(), TextManager::getCurrentViewPos(), handle_calltip(), TextManager::IsEditable(), TextManager::IsEditableLogical(), LogicalCursor::pos, termCursor, tm, TextManager::toLogicalCursor(), TextManager::toViewCursor(), ViewCursor::x, and ViewCursor::y.
Referenced by cursor_down(), cursor_up(), and NumeReTerminal::OnKeyDown().
|
protected |
Insert a form feed (not used).
Definition at line 208 of file actions.cpp.
References clear_area(), move_cursor(), scroll_bot, scroll_top, and width.
|
protected |
Moves the cursor to the leftmost position in the whole input.
Definition at line 717 of file actions.cpp.
References TextManager::IsEditableLogical(), move_cursor(), termCursor, tm, TextManager::toLogicalCursor(), TextManager::toViewCursor(), ViewCursor::x, and ViewCursor::y.
Referenced by home().
std::string GenericTerminal::get_selected_text | ( | ) |
Gets the selected text (if any).
Definition at line 248 of file gterm.cpp.
References TextManager::getSelectedText(), and tm.
Referenced by NumeReTerminal::GetSelection().
|
virtual |
|
inline |
Definition at line 171 of file gterm.hpp.
References mode_flags.
Referenced by NumeReTerminal::OnChar(), NumeReTerminal::OnKeyDown(), and NumeReTerminal::OnTimer().
|
protected |
This member function evalutes the procedure signature and returns its namespace. Will only be called from GTerm::tab().
Definition at line 148 of file actions.cpp.
References TextManager::GetCharAdjusted(), TextManager::GetColorAdjusted(), TextManager::GetTextRange(), nTabStartPos, sAutoCompWordStart, NumeReSyntax::SYNTAX_PROCEDURE, termCursor, tm, toLowerCase(), and ViewCursor::y.
Referenced by tab().
|
inline |
Definition at line 146 of file gterm.hpp.
References m_tipProvider.
Referenced by NumeReEditor::HandleFunctionCallTip(), and NumeReEditor::OnMouseDwell().
int GenericTerminal::GetScrollHeight | ( | ) |
public GetScrollHeight Calculates and returns a value used to determine what the size of the scrollbar thumb should be
Definition at line 312 of file gterm.cpp.
References TextManager::GetLinesReceived(), TextManager::GetMaxSize(), and tm.
Referenced by wxTermContainer::OnUpdateUI(), and wxTermContainer::updateThumbPosition().
int GenericTerminal::GetScrollPosition | ( | ) |
Returns the current scroll position.
Definition at line 331 of file gterm.cpp.
References TextManager::GetNumLinesScrolled(), and tm.
Referenced by wxTermContainer::OnUpdateUI(), and wxTermContainer::updateThumbPosition().
|
inline |
Definition at line 145 of file gterm.hpp.
References _syntax.
Referenced by EditorNotebook::createEditor(), NumeReWindow::createLaTeXFile(), NumeReWindow::CreateProcedureTree(), NumeReWindow::NumeReWindow(), NumeReTerminal::OnThreadUpdate(), NumeReWindow::runLaTeX(), DebugViewer::setExpression(), EditorNotebook::split(), and TextManager::updateColors().
TextManager * GenericTerminal::GetTM | ( | ) |
Get a pointer to the internal text buffer.
Definition at line 261 of file gterm.cpp.
References tm.
Referenced by NumeReTerminal::ClearSelection(), NumeReTerminal::clearTerminal(), NumeReTerminal::filterKeyCodes(), NumeReTerminal::MarkSelection(), NumeReTerminal::OnThreadUpdate(), and NumeReTerminal::scrollToInput().
|
private |
Check, whether a calltip is needed and select the corresponding text from the CallTipProvider.
x | int |
y | int |
Definition at line 193 of file utils.cpp.
References Calltip(), CalltipCancel(), NumeRe::CallTipProvider::getCommand(), NumeRe::CallTipProvider::getConstant(), NumeRe::CallTipProvider::getFunction(), getMatchingParenthesis(), NumeRe::CallTipProvider::getMethod(), NumeRe::CallTipProvider::getOption(), NumeRe::CallTipProvider::getProcedure(), TextManager::getRenderedColors(), TextManager::getRenderedString(), hasContextToolTip(), hasNonContextToolTip(), IsScrolledUp(), m_tipProvider, NumeRe::CallTip::sDefinition, NumeReSyntax::SYNTAX_COMMAND, NumeReSyntax::SYNTAX_CONSTANT, NumeReSyntax::SYNTAX_FUNCTION, NumeReSyntax::SYNTAX_METHODS, NumeReSyntax::SYNTAX_OPERATOR, NumeReSyntax::SYNTAX_OPTION, NumeReSyntax::SYNTAX_PROCEDURE, and tm.
Referenced by bs(), ctrl_left(), ctrl_right(), cursor_left(), cursor_right(), del(), delSelected(), erase_usercontent_line(), move_cursor(), normal_input(), and Scroll().
|
inline |
Definition at line 156 of file gterm.hpp.
References height.
Referenced by GetChar(), IsSelected(), NumeReTerminal::OnMouseMove(), wxTermContainer::OnScrollbarScrollPageDown(), wxTermContainer::OnScrollbarScrollPageUp(), wxTermContainer::OnUpdateUI(), Select(), wxTermContainer::SetTerminal(), and wxTermContainer::updateThumbPosition().
|
protected |
Moves the cursor to the leftmost position in the current line.
Definition at line 667 of file actions.cpp.
References front(), TextManager::IsEditable(), move_cursor(), termCursor, tm, ViewCursor::x, and ViewCursor::y.
Referenced by NumeReTerminal::filterKeyCodes().
bool GenericTerminal::IsScrolledUp | ( | ) |
Determine, whether the terminal is scrolled up.
Definition at line 298 of file gterm.cpp.
References TextManager::GetNumLinesScrolled(), and tm.
Referenced by NumeReTerminal::DoDrawCursor(), handle_calltip(), ResizeTerminal(), and NumeReTerminal::scrollToInput().
|
virtual |
public virtual IsSelected Checks if a given character is selected
x | int The x coordinate of the character to check |
y | int The y coordinate of the character to check |
Definition at line 194 of file gterm.cpp.
References Height(), TextManager::isSelected(), tm, and Width().
|
protected |
Insert a line feed.
Definition at line 191 of file actions.cpp.
References move_cursor(), TextManager::newLine(), scroll_bot, termCursor, tm, ViewCursor::x, and ViewCursor::y.
Referenced by NumeReTerminal::filterKeyCodes().
|
inlinevirtual |
Reimplemented in NumeReTerminal.
Definition at line 198 of file gterm.hpp.
Referenced by clear_mode_flag(), NumeReTerminal::ModeChange(), and set_mode_flag().
|
private |
private move_cursor Moves the cursor to a new location
x | int The new x coordinate |
y | int The new y coordinate |
Definition at line 134 of file utils.cpp.
References TextManager::getCurrentViewPos(), handle_calltip(), ViewCursor::move(), termCursor, tm, TextManager::toLogicalCursor(), width, ViewCursor::x, and ViewCursor::y.
Referenced by back(), cr(), cursor_down(), cursor_up(), end(), ff(), front(), home(), lf(), move_cursor_editable_area(), reset(), and tab().
|
protected |
Moves the cursor to a location, if this location is editable.
x | int |
y | int |
Definition at line 305 of file utils.cpp.
References TextManager::IsEditable(), move_cursor(), and tm.
Referenced by NumeReTerminal::OnLeftUp().
|
protected |
private normal_input Handles most of the input stuff for the GenericTerminal
Definition at line 21 of file actions.cpp.
References TextManager::getCurrentLogicalPos(), TextManager::getCurrentViewPos(), handle_calltip(), TextManager::insertInput(), LogicalCursor::pos, sInput_Data, termCursor, tm, TextManager::toLogicalCursor(), TextManager::toViewCursor(), ViewCursor::x, and ViewCursor::y.
Referenced by cursor_down(), cursor_up(), ProcessInput(), and tab().
|
protected |
This member function is for printing the kernel's output to the console.
Definition at line 59 of file actions.cpp.
References TextManager::eraseLine(), TextManager::getCurrentViewPos(), TextManager::newLine(), TextManager::printOutput(), sInput_Data, TextManager::tab(), termCursor, and tm.
Referenced by ProcessOutput().
|
virtual |
public virtual ProcessInput Processes the input of the GenericTerminal and hands it over to the internal buffer
len | int The number of characters to process. |
data | unsigned char * The text to process. |
Reimplemented in NumeReTerminal.
Definition at line 36 of file gterm.cpp.
References data_len, DESTRUCTBS, INSERT, mode_flags, normal_input(), sInput_Data, and update_changes().
Referenced by NumeReTerminal::OnChar(), and NumeReTerminal::ProcessInput().
|
virtual |
Processes output returned from the kernel and hands it over to the internal buffer.
len | int |
sData | const string& |
Reimplemented in NumeReTerminal.
Definition at line 63 of file gterm.cpp.
References CalltipCancel(), data_len, normal_output(), sInput_Data, and update_changes().
Referenced by NumeReTerminal::ProcessOutput().
|
protected |
Resets the terminal, so that it starts with an empty buffer.
Definition at line 409 of file actions.cpp.
References bg_color, BLINK, clear_area(), clear_mode_flag(), CURSORAPPMODE, CURSORINVISIBLE, CURSORRELATIVE, fg_color, height, INSERT, KEYAPPMODE, move_cursor(), NEWLINE, NOEOLWRAP, TextManager::Reset(), scroll_bot, scroll_top, tm, UNDERLINE, and width.
Referenced by GenericTerminal(), and Reset().
|
virtual |
|
protected |
Reset the current autocompletion list and the corresponding variables.
Definition at line 120 of file actions.cpp.
References nCursorUpDownStartPos, nTabStartPos, RESETCURSOR, RESETTAB, TextManager::ResetVirtualCursorLine(), sAutoCompList, sAutoCompWordStart, and tm.
Referenced by NumeReTerminal::filterKeyCodes(), GenericTerminal(), NumeReTerminal::OnChar(), NumeReTerminal::OnKeyDown(), and tab().
|
virtual |
public virtual ResizeTerminal Resizes the terminal's display. This ONLY changes what's being displayed, and does NOT change the size as far as the server is concerned!
_width | int The new width, in characters |
_height | int The new height, in characters |
Reimplemented in NumeReTerminal.
Definition at line 101 of file gterm.cpp.
References TextManager::getCurrentViewPos(), height, IsScrolledUp(), LogicalCursor::line, LogicalCursor::pos, TextManager::Resize(), scroll_bot, scroll_top, termCursor, tm, TextManager::toLogicalCursor(), TextManager::toViewCursor(), update_changes(), and width.
Referenced by NumeReTerminal::ResizeTerminal().
bool GenericTerminal::Scroll | ( | int | numLines, |
bool | scrollUp | ||
) |
public Scroll Scrolls the terminal a given number of lines
numLines | int How many lines to scroll |
scrollUp | bool True to scroll up, false to scroll down |
Definition at line 278 of file gterm.cpp.
References handle_calltip(), TextManager::Scroll(), termCursor, tm, update_changes(), ViewCursor::x, and ViewCursor::y.
Referenced by NumeReTerminal::ScrollTerminal(), and NumeReTerminal::scrollToInput().
|
virtual |
public virtual Select Selects a given character
x | int The x coordinate of the character |
y | int The y coordinate of the character |
select | int Effectively a boolean |
Definition at line 215 of file gterm.cpp.
References Height(), TextManager::selectText(), tm, and Width().
Referenced by NumeReTerminal::MarkSelection().
|
inlinevirtual |
Definition at line 194 of file gterm.hpp.
References SendBack().
|
inlinevirtual |
Definition at line 193 of file gterm.hpp.
Referenced by SendBack().
void GenericTerminal::set_mode_flag | ( | int | flag | ) |
Sets a mode flag (only used to make the cursor invisble).
flag | int |
Definition at line 320 of file utils.cpp.
References mode_flags, and ModeChange().
Referenced by NumeReWindow::NumeReWindow(), and NumeReTerminal::OnLoseFocus().
|
inline |
Definition at line 175 of file gterm.hpp.
References mode_flags.
void GenericTerminal::SetTerminalHistory | ( | int | size | ) |
Set the terminal buffer size (not the length of the input history). The length of the history (i.e. the terminal length) is determined by the width of the terminal and the number of calculated line breaks.
size | int |
Definition at line 348 of file gterm.cpp.
References TextManager::SetMaxSize(), and tm.
Referenced by wxTermContainer::SetTerminalHistory().
|
protected |
Evaluate the tab key (do not insert a tab character but try to autocomplete the current input).
Definition at line 224 of file actions.cpp.
References _syntax, clear_area(), data_len, NumeReSyntax::getAutoCompList(), TextManager::GetCharAdjusted(), TextManager::GetColorAdjusted(), NumeReSyntax::getProcAutoCompList(), getProcNameSpace(), TextManager::GetWordStartAt(), m_useSmartSense, move_cursor(), normal_input(), nTabStartPos, resetAutoComp(), RESETCURSOR, RESETTAB, sAutoCompList, sAutoCompWordStart, sInput_Data, NumeReSyntax::SYNTAX_PROCEDURE, termCursor, tm, toLowerCase(), ViewCursor::x, and ViewCursor::y.
Referenced by NumeReTerminal::filterKeyCodes().
|
virtual |
Simple wrapper around update_changes()
Definition at line 19 of file gterm.cpp.
References update_changes().
Referenced by NumeReTerminal::OnGainFocus(), NumeReTerminal::OnLoseFocus(), and NumeReTerminal::scrollToInput().
|
protected |
private update_changes The main update function. Is responsible for preparing the text, which shall be printed on screen
Definition at line 37 of file utils.cpp.
References bg_color, ClearChars(), CURSORINVISIBLE, doing_update, DrawCursor(), DrawText(), TextManager::GetCharAdjusted(), TextManager::GetColorAdjusted(), TextManager::getRenderedColors(), TextManager::getRenderedString(), height, mode_flags, termCursor, tm, width, ViewCursor::x, and ViewCursor::y.
Referenced by bs(), del(), delSelected(), NumeReTerminal::OnPaint(), ProcessInput(), ProcessOutput(), ResizeTerminal(), Scroll(), Update(), and NumeReTerminal::UpdateColors().
|
inline |
Definition at line 152 of file gterm.hpp.
References width.
Referenced by GetChar(), IsSelected(), NumeReTerminal::MarkSelection(), NumeReTerminal::OnMouseMove(), and Select().
|
private |
Definition at line 99 of file gterm.hpp.
Referenced by GenericTerminal(), getSyntax(), and tab().
|
private |
Definition at line 86 of file gterm.hpp.
Referenced by NumeReTerminal::ClearChars(), NumeReTerminal::DoDrawCursor(), NumeReTerminal::DrawCursor(), NumeReTerminal::DrawText(), reset(), and update_changes().
|
private |
Definition at line 98 of file gterm.hpp.
Referenced by cursor_down(), cursor_up(), ProcessInput(), ProcessOutput(), and tab().
|
protected |
Definition at line 103 of file gterm.hpp.
Referenced by GenericTerminal(), and update_changes().
|
private |
Definition at line 86 of file gterm.hpp.
Referenced by NumeReTerminal::DoDrawCursor(), NumeReTerminal::DrawCursor(), NumeReTerminal::DrawText(), and reset().
|
private |
Definition at line 77 of file gterm.hpp.
Referenced by cursor_down(), Height(), reset(), ResizeTerminal(), NumeReTerminal::ResizeTerminal(), and update_changes().
|
private |
Definition at line 82 of file gterm.hpp.
Referenced by getProvider(), and handle_calltip().
|
protected |
Definition at line 117 of file gterm.hpp.
Referenced by NumeReTerminal::setKernelSettings(), and tab().
|
private |
Definition at line 87 of file gterm.hpp.
Referenced by clear_mode_flag(), GenericTerminal(), GetMode(), ProcessInput(), set_mode_flag(), SetMode(), and update_changes().
enum { ... } GenericTerminal::MODES |
|
protected |
Definition at line 112 of file gterm.hpp.
Referenced by cursor_down(), cursor_up(), and resetAutoComp().
|
protected |
Definition at line 111 of file gterm.hpp.
Referenced by getProcNameSpace(), resetAutoComp(), and tab().
|
private |
Definition at line 96 of file gterm.hpp.
Referenced by cursor_down(), and cursor_up().
|
protected |
Definition at line 114 of file gterm.hpp.
Referenced by resetAutoComp(), and tab().
|
protected |
Definition at line 113 of file gterm.hpp.
Referenced by getProcNameSpace(), resetAutoComp(), and tab().
|
private |
|
private |
Definition at line 77 of file gterm.hpp.
Referenced by ff(), reset(), and ResizeTerminal().
|
private |
Definition at line 97 of file gterm.hpp.
Referenced by cursor_down(), cursor_up(), normal_input(), normal_output(), ProcessInput(), ProcessOutput(), and tab().
|
private |
Definition at line 85 of file gterm.hpp.
Referenced by back(), bs(), cr(), ctrl_left(), ctrl_right(), cursor_down(), cursor_left(), cursor_right(), cursor_up(), del(), delSelected(), end(), erase_usercontent_line(), front(), GenericTerminal(), getProcNameSpace(), home(), lf(), move_cursor(), normal_input(), normal_output(), ResizeTerminal(), Scroll(), tab(), and update_changes().
|
private |
Definition at line 80 of file gterm.hpp.
Referenced by back(), bs(), clear_area(), ctrl_left(), ctrl_right(), cursor_down(), cursor_left(), cursor_right(), cursor_up(), del(), delSelected(), end(), erase_line(), erase_usercontent_line(), front(), GenericTerminal(), get_selected_text(), GetChar(), getProcNameSpace(), GetScrollHeight(), GetScrollPosition(), GetTM(), handle_calltip(), home(), IsScrolledUp(), IsSelected(), lf(), move_cursor(), move_cursor_editable_area(), normal_input(), normal_output(), reset(), resetAutoComp(), ResizeTerminal(), Scroll(), Select(), SetTerminalHistory(), tab(), and update_changes().
|
private |
Definition at line 77 of file gterm.hpp.
Referenced by ff(), move_cursor(), reset(), ResizeTerminal(), NumeReTerminal::ResizeTerminal(), update_changes(), and Width().