#include <cuteview.h>
Public Types | |
| enum | { CUTE_MARGIN = 0, CUTE_LINENUMBER_MARGIN = 1, CUTE_FOLD_MARGIN = 2 } |
Signals | |
| void | save () |
| void | closed (CUTEView *view=0) |
| void | setTabCaption (QWidget *view, QString name) |
Public Member Functions | |
| CUTEView (QWidget *parent=0, QString title="Document", tagFile *tags=0) | |
| void | configure () |
| void | sendEditor (unsigned int msg, unsigned long wParam=0, long lParam=0) |
| bool | loadFile (const char *file) |
| bool | reloadFile () |
| bool | saveFile (const char *file=0, bool force=false) |
| void | toggleBookmark (int line) |
| void | addError (int line) |
| int | addBookmark (int line) |
| void | deleteAllErrors () |
| void | findNextBookmark () |
| void | findPrevBookmark () |
| void | insertCommand (QString) |
| void | filter (QString) |
| void | startMacroRecording () |
| void | stopMacroRecording () |
| void | runMacro () |
| void | loadMacro (QString &file) |
| void | saveMacro (QString &file) |
| bool | setMacro (QString) |
| QString | macroString () |
| bool | findFirst (const QString &expr, bool re=false, bool cs=false, bool wo=false, bool wrap=true, bool forward=TRUE, int line=-1, int index=-1) |
| bool | findNext () |
| bool | findPrev () |
| void | setupLexer (const QString &) |
| void | replaceAll (const QString &expr, const QString &replaceStr, bool re, bool cs, bool wo, bool wrap, bool forward=TRUE, bool confirm=false) |
| bool | edited () |
| bool | canUndo () |
| bool | canRedo () |
| void | undo () |
| void | redo () |
| QString | line (int l) |
| CUTEScintilla * | scintilla () |
| void | setActions (QMap< int, QAction * >) |
| char * | fileName () |
| Config::Lexer * | lexer () |
| void | setLexer (Config::Lexer *l) |
| void | getCursorPosition (int &line, int &index) |
| void | getSelection (int &lineFrom, int &indexFrom, int &lineTo, int &indexTo) |
| void | clear () |
| QValueList< int > | bookmarks () |
| void | removeAllBookmarks () |
| QString | langName () |
| void | setFocus () |
Protected Slots | |
| void | slotDocumentChanged () |
| void | slotMarginClicked (int margin, int line, Qt::ButtonState state) |
| void | insertStdout () |
| void | processExited () |
| void | recordMacro (unsigned int, unsigned long, long) |
| void | slotCharAdded (int) |
Protected Member Functions | |
| void | closeEvent (QCloseEvent *e) |
|
|
displays a bookmark in a line |
|
|
displays an error in a line |
|
|
return all bookmarks handles |
|
|
if redo function is available |
|
|
if undo function is available |
|
|
clear text and all markers |
|
|
called when view is about to be closed |
|
|
sets all settings of view from global config |
|
|
deletes all errors in view |
|
|
weather text has been modified |
|
|
retrieves file name |
|
|
filters selection and insert output of filter at current cursor pos |
|
||||||||||||||||||||||||||||||||||||
|
finds first occurence of string with some options |
|
|
finds next occurence |
|
|
jumps to next found bookmark |
|
|
find previous occurence |
|
|
jumps to previous found bookmark |
|
||||||||||||
|
get the current line/index of cursor |
|
||||||||||||||||||||
|
get the line/index of selected text |
|
|
inserts output of a command at current cursor pos |
|
|
called from insertCommand and filter in order to insert program output |
|
|
return language name |
|
|
returns chosen lexer of view |
|
|
retrieves a line |
|
|
loads file from disk |
|
|
loads macro from file |
|
|
retrieves the current macro as a string |
|
|
called when child process has finished |
|
||||||||||||||||
|
handle macro recording |
|
|
redo last action |
|
|
rereads fiel from disk |
|
|
deletes all Bookmarks in view |
|
||||||||||||||||||||||||||||||||||||
|
replaces all occurence of string in view |
|
|
runs last recorded or loaded macro |
|
||||||||||||
|
saves text of view to file, if forced then an empty file will also be created |
|
|
save macro to file |
|
|
returns wrapped QScintilla text widget |
|
||||||||||||||||
|
sends scintilla command |
|
|
set shortcuts, defined in QActions |
|
|
the scintilla widget has the focus |
|
|
sets lexer for highlighting and folding |
|
|
sets the macro in QString to be the current one |
|
|
choose lexer by a file name |
|
|
called when char has been typed |
|
|
called when text has been changed |
|
||||||||||||||||
|
sets markers |
|
|
starts macro recording if none is be recorded |
|
|
stops macro recording |
|
|
toggles bookmark at given line |
|
|
undo last action |
1.3.2