|
Public Member Functions |
| | editorctrl (wxWindow *parent, wxString fname, config *settings) |
| | The editor constructor.
|
| | ~editorctrl () |
| | The editor destructor.
|
| wxString | getFilename () |
| | Return this buffers file name.
|
| wxString | getDirectory () |
| | Return the path to this buffers file.
|
| wxString | getPath () |
| void | setFilename (wxString fname) |
| | Set this buffers file name.
|
| void | setMtime (long mt) |
| long | getMtime () |
| void | onRightDown (wxMouseEvent &evt) |
| | Called when user right-clicks in window.
|
| void | onMarginClick (wxStyledTextEvent &evt) |
| | Called when user clicks on a margin.
|
| void | onKeyDown (wxKeyEvent &evt) |
| | Process a key down event when user presses a key.
|
| void | onCharAdded (wxStyledTextEvent &evt) |
| | Called when a character is added to the buffer.
|
| void | onProcessPopup (wxCommandEvent &evt) |
| | Catch-all to process a popup menu command.
|
| void | indentBlock (bool toLeft=true) |
| | Indent the current selection to the left or right.
|
| void | findBrace () |
| | Find the brace matching the brace on or near the current position.
|
| bool | setAutoIndent (bool isOn) |
| | Turn on/off autoindent mode.
|
| bool | getAutoIndent () |
| | Return the current state of auto indent.
|
| void | forwardWord () |
| | Move caret forward one word.
|
| void | backWord () |
| | Move caret backward one word.
|
| void | forwardChar () |
| | Move caret forward on char.
|
| void | backChar () |
| | Move caret backward one char.
|
| void | begOfLine () |
| | Move caret to the beginning of the current line.
|
| void | endOfLine () |
| | Move caret to the end of the current line.
|
| void | prevLine () |
| | Move caret to the line above.
|
| void | nextLine () |
| | Move caret to the line below.
|
| void | toggleBookmark (int pos) |
| | Toggle a bookmark on the line of pos.
|
| void | prevBookmark () |
| | Move to the previous bookmark, if any.
|
| void | nextBookmark () |
| | Move to the next bookmark, if any.
|
| void | initFromConfig () |
| | Read the values from config and initialize.
|
| int | findString (const wxString &str, int startpos, int flags) |
| | Find a string within the buffer.
|
| void | guessFileType () |
| | Attempt to guess the file type and set the syntax highlighting by calling the appropriate script.
|
| void | autocomplete () |
| | Popup an auto-completion list if appropriate.
|
| void | calltip () |
| | Popup a call tip window if appropriate.
|
| void | setTipsList (wxArrayString *t) |
| wxString | getCurrentWordPart () |
| | Return the current word part before the cursor.
|
Protected Member Functions |
| void | buildAutoCompleteList () |
| | Generate an auto-completion list for the popup.
|