QEditor Class Reference
#include <qeditor.h>
Inheritance diagram for QEditor:


Public Slots | |
void | doGotoLine (int line) |
virtual void | configChanged () |
virtual void | refresh () |
virtual void | startMacro () |
virtual void | stopMacro () |
virtual void | executeMacro () |
Signals | |
void | parsed () |
void | ensureTextIsVisible (QTextParagraph *) |
Public Member Functions | |
QEditor (QWidget *parent=0, const char *name=0) | |
virtual | ~QEditor () |
bool | isRecording () const |
void | setIsRecording (bool b) |
QEditorIndenter * | indenter () const |
QTextCursor * | textCursor () const |
QTextDocument * | document () const |
void | setDocument (QTextDocument *) |
void | drawCursor (bool visible) |
void | updateStyles () |
void | repaintChanged () |
virtual void | zoomIn () |
virtual void | zoomOut () |
virtual QString | electricKeys () const |
virtual void | setElectricKeys (const QString &keys) |
virtual int | tabStop () const |
virtual void | setTabStop (int) |
virtual bool | tabIndentEnabled () const |
virtual void | setTabIndentEnabled (bool b) |
virtual bool | backspaceIndentEnabled () const |
virtual void | setBackspaceIndentEnabled (bool b) |
virtual bool | replace (const QString &find, const QString &replace, bool cs, bool wo, bool forward, bool startAtCursor, bool replaceAll) |
virtual QString | textLine (uint) const |
virtual void | setLanguage (const QString &) |
virtual QString | language () const |
virtual void | setText (const QString &) |
virtual int | level (int) const |
virtual void | setLevel (int, int) |
virtual void | setApplicationMenu (QPopupMenu *menu) |
virtual QPopupMenu * | createPopupMenu (const QPoint &) |
virtual void | indent () |
QSourceColorizer * | colorizer () const |
Protected Member Functions | |
virtual bool | event (QEvent *) |
virtual void | keyPressEvent (QKeyEvent *) |
virtual void | backspaceIndent (QKeyEvent *) |
int | backspace_indentation (const QString &s) |
int | backspace_indentForLine (int line) |
void | contentsMouseDoubleClickEvent (QMouseEvent *e) |
bool | isDelimiter (const QChar &c) |
Private Slots | |
void | doMatch (QTextCursor *) |
void | slotCursorPositionChanged (int, int) |
Private Attributes | |
ParenMatcher * | parenMatcher |
bool | m_tabIndent |
bool | m_completion |
bool | m_backspaceIndent |
QString | m_language |
int | m_currentLine |
int | m_tabStop |
QString | m_electricKeys |
QPopupMenu * | m_applicationMenu |
bool | m_recording |
QPtrList< QEditorKey > | m_keys |
Constructor & Destructor Documentation
|
Definition at line 136 of file qeditor.cpp. References document(), doMatch(), m_applicationMenu, m_backspaceIndent, m_currentLine, m_keys, m_recording, m_tabIndent, m_tabStop, and parenMatcher. |
|
Definition at line 167 of file qeditor.cpp. References m_keys. |
Member Function Documentation
|
Definition at line 84 of file qeditor.cpp. References tabStop(). Referenced by backspace_indentForLine(), and backspaceIndent(). |
|
Definition at line 104 of file qeditor.cpp. References backspace_indentation(), and text(). Referenced by backspaceIndent(). |
|
Definition at line 382 of file qeditor.cpp. References backspace_indentation(), backspace_indentForLine(), drawCursor(), indenter(), QEditorIndenter::indentLine(), KTextEdit::keyPressEvent(), repaintChanged(), text(), and textCursor(). Referenced by keyPressEvent(). |
|
Definition at line 96 of file qeditor.h. Referenced by keyPressEvent(). |
|
Definition at line 574 of file qeditor.cpp. References document(). Referenced by QEditorPart::colorizer(), and updateStyles(). |
|
Definition at line 338 of file qeditor.cpp. References refresh(), QEditorSettings::self(), updateStyles(), and QEditorSettings::wordWrap(). Referenced by QEditorView::configChanged(), and setLanguage(). |
|
Definition at line 653 of file qeditor.cpp. References document(), isDelimiter(), repaintChanged(), and textCursor(). |
|
Definition at line 173 of file qeditor.cpp. References KTextEdit::createPopupMenu(), and m_applicationMenu. |
|
|
Definition at line 306 of file qeditor.cpp. References document(), and ensureTextIsVisible(). |
|
Definition at line 299 of file qeditor.cpp. References ParenMatcher::match(), parenMatcher, and repaintChanged(). Referenced by QEditor(). |
|
Definition at line 333 of file qeditor.cpp. Referenced by backspaceIndent(). |
|
|
|
Referenced by doGotoLine(). |
|
Definition at line 593 of file qeditor.cpp. References QEditorKey::ascii, QEditorKey::autorep, QEditorKey::count, isRecording(), QEditorKey::key, m_keys, QEditorKey::state, and QEditorKey::text. |
|
Definition at line 622 of file qeditor.cpp. References QEditorKey::ascii, QEditorKey::autorep, QEditorKey::count, QEditorKey::key, m_keys, QEditorKey::state, and QEditorKey::text. |
|
Definition at line 646 of file qeditor.cpp. References text(), and textCursor(). Referenced by QEditorView::indent(), and keyPressEvent(). |
|
Definition at line 641 of file qeditor.cpp. References document(). Referenced by backspaceIndent(), and QEditorPart::indenter(). |
|
Definition at line 689 of file qeditor.cpp. Referenced by contentsMouseDoubleClickEvent(), and keyPressEvent(). |
|
Definition at line 70 of file qeditor.h. Referenced by event(). |
|
Definition at line 196 of file qeditor.cpp. References backspaceIndent(), backspaceIndentEnabled(), indent(), isDelimiter(), KTextEdit::keyPressEvent(), m_electricKeys, tabIndentEnabled(), text(), and textCursor(). |
|
Definition at line 536 of file qeditor.cpp. Referenced by QEditorView::language(). |
|
Definition at line 556 of file qeditor.cpp. References document(), and ParagData::level(). Referenced by LevelWidget::paintEvent(). |
|
|
|
Definition at line 579 of file qeditor.cpp. References document(), and QSourceColorizer::format(). Referenced by QEditorView::collapseAllBlocks(), QEditorView::collapseBlock(), configChanged(), QEditorView::ensureTextIsVisible(), QEditorView::expandAllBlocks(), QEditorView::expandBlock(), zoomIn(), and zoomOut(). |
|
Definition at line 458 of file qeditor.cpp. Referenced by backspaceIndent(), contentsMouseDoubleClickEvent(), and doMatch(). |
|
Definition at line 413 of file qeditor.cpp. References text(), and textCursor(). |
|
Definition at line 112 of file qeditor.h. References m_applicationMenu. Referenced by QEditorView::installPopup(). |
|
Definition at line 97 of file qeditor.h. References m_backspaceIndent. |
|
Definition at line 453 of file qeditor.cpp. |
|
Definition at line 88 of file qeditor.h. References m_electricKeys. Referenced by setLanguage(). |
|
Definition at line 71 of file qeditor.h. References m_recording. Referenced by startMacro(), and stopMacro(). |
|
Definition at line 468 of file qeditor.cpp. References configChanged(), document(), kdDebug(), m_language, and setElectricKeys(). Referenced by QEditorView::setLanguage(). |
|
Definition at line 566 of file qeditor.cpp. References document(), and ParagData::setLevel(). |
|
Definition at line 94 of file qeditor.h. References m_tabIndent. |
|
Definition at line 189 of file qeditor.cpp. References m_tabStop. Referenced by QEditorView::setTabStop(). |
|
Definition at line 541 of file qeditor.cpp. Referenced by QEditorPart::openFile(), and QEditorPart::setText(). |
|
Definition at line 550 of file qeditor.cpp. |
|
Definition at line 611 of file qeditor.cpp. References m_keys, and setIsRecording(). |
|
Definition at line 617 of file qeditor.cpp. References setIsRecording(). |
|
Definition at line 93 of file qeditor.h. Referenced by keyPressEvent(). |
|
Definition at line 184 of file qeditor.cpp. Referenced by backspace_indentation(), CIndent::CIndent(), QEditorIndenter::indentation(), QEditorIndenter::tabify(), QEditorView::tabStop(), and updateStyles(). |
|
Definition at line 323 of file qeditor.cpp. Referenced by backspaceIndent(), contentsMouseDoubleClickEvent(), QEditorView::cursorCoordinates(), indent(), keyPressEvent(), QEditorView::proceed(), replace(), and QEditorCodeCompletion::updateBox(). |
|
Definition at line 463 of file qeditor.cpp. References text(). Referenced by QEditorPart::textLine(). |
|
Definition at line 369 of file qeditor.cpp. References colorizer(), document(), QSourceColorizer::format(), and tabStop(). Referenced by configChanged(), zoomIn(), and zoomOut(). |
|
Definition at line 355 of file qeditor.cpp. References refresh(), and updateStyles(). |
|
Definition at line 362 of file qeditor.cpp. References refresh(), and updateStyles(). |
Member Data Documentation
|
Definition at line 153 of file qeditor.h. Referenced by createPopupMenu(), QEditor(), and setApplicationMenu(). |
|
Definition at line 148 of file qeditor.h. Referenced by QEditor(), and setBackspaceIndentEnabled(). |
|
|
|
Definition at line 150 of file qeditor.h. Referenced by QEditor(). |
|
Definition at line 152 of file qeditor.h. Referenced by keyPressEvent(), and setElectricKeys(). |
|
Definition at line 155 of file qeditor.h. Referenced by event(), executeMacro(), QEditor(), startMacro(), and ~QEditor(). |
|
Definition at line 149 of file qeditor.h. Referenced by setLanguage(). |
|
Definition at line 154 of file qeditor.h. Referenced by QEditor(), and setIsRecording(). |
|
Definition at line 146 of file qeditor.h. Referenced by QEditor(), and setTabIndentEnabled(). |
|
Definition at line 151 of file qeditor.h. Referenced by QEditor(), and setTabStop(). |
|
|
The documentation for this class was generated from the following files:
- editors/qeditor/qeditor.h
- editors/qeditor/qeditor.cpp