KDevelop API Documentation

QEditor Class Reference

#include <qeditor.h>

Inheritance diagram for QEditor:

Inheritance graph
[legend]
Collaboration diagram for QEditor:

Collaboration graph
[legend]
List of all members.

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)
QEditorIndenterindenter () 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 QPopupMenucreatePopupMenu (const QPoint &)
virtual void indent ()
QSourceColorizercolorizer () 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

ParenMatcherparenMatcher
bool m_tabIndent
bool m_completion
bool m_backspaceIndent
QString m_language
int m_currentLine
int m_tabStop
QString m_electricKeys
QPopupMenum_applicationMenu
bool m_recording
QPtrList< QEditorKeym_keys

Constructor & Destructor Documentation

QEditor::QEditor QWidget parent = 0,
const char *  name = 0
 

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.

QEditor::~QEditor  )  [virtual]
 

Definition at line 167 of file qeditor.cpp.

References m_keys.


Member Function Documentation

int QEditor::backspace_indentation const QString s  )  [protected]
 

Definition at line 84 of file qeditor.cpp.

References tabStop().

Referenced by backspace_indentForLine(), and backspaceIndent().

int QEditor::backspace_indentForLine int  line  )  [protected]
 

Definition at line 104 of file qeditor.cpp.

References backspace_indentation(), and text().

Referenced by backspaceIndent().

void QEditor::backspaceIndent QKeyEvent  )  [protected, virtual]
 

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().

virtual bool QEditor::backspaceIndentEnabled  )  const [inline, virtual]
 

Definition at line 96 of file qeditor.h.

Referenced by keyPressEvent().

QSourceColorizer * QEditor::colorizer  )  const
 

Definition at line 574 of file qeditor.cpp.

References document().

Referenced by QEditorPart::colorizer(), and updateStyles().

void QEditor::configChanged  )  [virtual, slot]
 

Definition at line 338 of file qeditor.cpp.

References refresh(), QEditorSettings::self(), updateStyles(), and QEditorSettings::wordWrap().

Referenced by QEditorView::configChanged(), and setLanguage().

void QEditor::contentsMouseDoubleClickEvent QMouseEvent e  )  [protected]
 

Definition at line 653 of file qeditor.cpp.

References document(), isDelimiter(), repaintChanged(), and textCursor().

QPopupMenu * QEditor::createPopupMenu const QPoint  )  [virtual]
 

Definition at line 173 of file qeditor.cpp.

References KTextEdit::createPopupMenu(), and m_applicationMenu.

QTextDocument * QEditor::document  )  const
 

Definition at line 328 of file qeditor.cpp.

Referenced by QEditorPart::addMark(), QEditorPart::clearMarks(), QEditorView::collapseAllBlocks(), colorizer(), contentsMouseDoubleClickEvent(), MarkerWidget::contextMenuEvent(), QEditorPart::createCursor(), doGotoLine(), QEditorView::expandAllBlocks(), indenter(), PythonIndent::indentForLine(), PascalIndent::indentForLine(), level(), QEditorPart::mark(), QEditorPart::marks(), QEditorTextHint::maybeTip(), MarkerWidget::mousePressEvent(), LevelWidget::mousePressEvent(), MarkerWidget::paintEvent(), LineNumberWidget::paintEvent(), LevelWidget::paintEvent(), QEditorView::proceed(), QEditor(), refresh(), QEditorPart::removeMark(), QEditorView::setCursorPosition(), QEditorView::setCursorPositionReal(), setLanguage(), setLevel(), QEditorPart::setMark(), QEditorPart::setUndoSteps(), QEditorPart::text(), QEditorPart::undoSteps(), and updateStyles().

void QEditor::doGotoLine int  line  )  [slot]
 

Definition at line 306 of file qeditor.cpp.

References document(), and ensureTextIsVisible().

void QEditor::doMatch QTextCursor *   )  [private, slot]
 

Definition at line 299 of file qeditor.cpp.

References ParenMatcher::match(), parenMatcher, and repaintChanged().

Referenced by QEditor().

void QEditor::drawCursor bool  visible  ) 
 

Definition at line 333 of file qeditor.cpp.

Referenced by backspaceIndent().

virtual QString QEditor::electricKeys  )  const [inline, virtual]
 

Definition at line 87 of file qeditor.h.

void QEditor::ensureTextIsVisible QTextParagraph *   )  [signal]
 

Referenced by doGotoLine().

bool QEditor::event QEvent  )  [protected, virtual]
 

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.

void QEditor::executeMacro  )  [virtual, slot]
 

Definition at line 622 of file qeditor.cpp.

References QEditorKey::ascii, QEditorKey::autorep, QEditorKey::count, QEditorKey::key, m_keys, QEditorKey::state, and QEditorKey::text.

void QEditor::indent  )  [virtual]
 

Definition at line 646 of file qeditor.cpp.

References text(), and textCursor().

Referenced by QEditorView::indent(), and keyPressEvent().

QEditorIndenter * QEditor::indenter  )  const
 

Definition at line 641 of file qeditor.cpp.

References document().

Referenced by backspaceIndent(), and QEditorPart::indenter().

bool QEditor::isDelimiter const QChar c  )  [protected]
 

Definition at line 689 of file qeditor.cpp.

Referenced by contentsMouseDoubleClickEvent(), and keyPressEvent().

bool QEditor::isRecording  )  const [inline]
 

Definition at line 70 of file qeditor.h.

Referenced by event().

void QEditor::keyPressEvent QKeyEvent  )  [protected, virtual]
 

Definition at line 196 of file qeditor.cpp.

References backspaceIndent(), backspaceIndentEnabled(), indent(), isDelimiter(), KTextEdit::keyPressEvent(), m_electricKeys, tabIndentEnabled(), text(), and textCursor().

QString QEditor::language  )  const [virtual]
 

Definition at line 536 of file qeditor.cpp.

Referenced by QEditorView::language().

int QEditor::level int   )  const [virtual]
 

Definition at line 556 of file qeditor.cpp.

References document(), and ParagData::level().

Referenced by LevelWidget::paintEvent().

void QEditor::parsed  )  [signal]
 

void QEditor::refresh  )  [virtual, slot]
 

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().

void QEditor::repaintChanged  ) 
 

Definition at line 458 of file qeditor.cpp.

Referenced by backspaceIndent(), contentsMouseDoubleClickEvent(), and doMatch().

bool QEditor::replace const QString find,
const QString replace,
bool  cs,
bool  wo,
bool  forward,
bool  startAtCursor,
bool  replaceAll
[virtual]
 

Definition at line 413 of file qeditor.cpp.

References text(), and textCursor().

virtual void QEditor::setApplicationMenu QPopupMenu menu  )  [inline, virtual]
 

Definition at line 112 of file qeditor.h.

References m_applicationMenu.

Referenced by QEditorView::installPopup().

virtual void QEditor::setBackspaceIndentEnabled bool  b  )  [inline, virtual]
 

Definition at line 97 of file qeditor.h.

References m_backspaceIndent.

void QEditor::setDocument QTextDocument *   ) 
 

Definition at line 453 of file qeditor.cpp.

virtual void QEditor::setElectricKeys const QString keys  )  [inline, virtual]
 

Definition at line 88 of file qeditor.h.

References m_electricKeys.

Referenced by setLanguage().

void QEditor::setIsRecording bool  b  )  [inline]
 

Definition at line 71 of file qeditor.h.

References m_recording.

Referenced by startMacro(), and stopMacro().

void QEditor::setLanguage const QString  )  [virtual]
 

Definition at line 468 of file qeditor.cpp.

References configChanged(), document(), kdDebug(), m_language, and setElectricKeys().

Referenced by QEditorView::setLanguage().

void QEditor::setLevel int  ,
int 
[virtual]
 

Definition at line 566 of file qeditor.cpp.

References document(), and ParagData::setLevel().

virtual void QEditor::setTabIndentEnabled bool  b  )  [inline, virtual]
 

Definition at line 94 of file qeditor.h.

References m_tabIndent.

void QEditor::setTabStop int   )  [virtual]
 

Definition at line 189 of file qeditor.cpp.

References m_tabStop.

Referenced by QEditorView::setTabStop().

void QEditor::setText const QString  )  [virtual]
 

Definition at line 541 of file qeditor.cpp.

Referenced by QEditorPart::openFile(), and QEditorPart::setText().

void QEditor::slotCursorPositionChanged int  ,
int 
[private, slot]
 

Definition at line 550 of file qeditor.cpp.

void QEditor::startMacro  )  [virtual, slot]
 

Definition at line 611 of file qeditor.cpp.

References m_keys, and setIsRecording().

void QEditor::stopMacro  )  [virtual, slot]
 

Definition at line 617 of file qeditor.cpp.

References setIsRecording().

virtual bool QEditor::tabIndentEnabled  )  const [inline, virtual]
 

Definition at line 93 of file qeditor.h.

Referenced by keyPressEvent().

int QEditor::tabStop  )  const [virtual]
 

Definition at line 184 of file qeditor.cpp.

Referenced by backspace_indentation(), CIndent::CIndent(), QEditorIndenter::indentation(), QEditorIndenter::tabify(), QEditorView::tabStop(), and updateStyles().

QTextCursor * QEditor::textCursor  )  const
 

Definition at line 323 of file qeditor.cpp.

Referenced by backspaceIndent(), contentsMouseDoubleClickEvent(), QEditorView::cursorCoordinates(), indent(), keyPressEvent(), QEditorView::proceed(), replace(), and QEditorCodeCompletion::updateBox().

QString QEditor::textLine uint   )  const [virtual]
 

Definition at line 463 of file qeditor.cpp.

References text().

Referenced by QEditorPart::textLine().

void QEditor::updateStyles  ) 
 

Definition at line 369 of file qeditor.cpp.

References colorizer(), document(), QSourceColorizer::format(), and tabStop().

Referenced by configChanged(), zoomIn(), and zoomOut().

void QEditor::zoomIn  )  [virtual]
 

Definition at line 355 of file qeditor.cpp.

References refresh(), and updateStyles().

void QEditor::zoomOut  )  [virtual]
 

Definition at line 362 of file qeditor.cpp.

References refresh(), and updateStyles().


Member Data Documentation

QPopupMenu* QEditor::m_applicationMenu [private]
 

Definition at line 153 of file qeditor.h.

Referenced by createPopupMenu(), QEditor(), and setApplicationMenu().

bool QEditor::m_backspaceIndent [private]
 

Definition at line 148 of file qeditor.h.

Referenced by QEditor(), and setBackspaceIndentEnabled().

bool QEditor::m_completion [private]
 

Definition at line 147 of file qeditor.h.

int QEditor::m_currentLine [private]
 

Definition at line 150 of file qeditor.h.

Referenced by QEditor().

QString QEditor::m_electricKeys [private]
 

Definition at line 152 of file qeditor.h.

Referenced by keyPressEvent(), and setElectricKeys().

QPtrList<QEditorKey> QEditor::m_keys [private]
 

Definition at line 155 of file qeditor.h.

Referenced by event(), executeMacro(), QEditor(), startMacro(), and ~QEditor().

QString QEditor::m_language [private]
 

Definition at line 149 of file qeditor.h.

Referenced by setLanguage().

bool QEditor::m_recording [private]
 

Definition at line 154 of file qeditor.h.

Referenced by QEditor(), and setIsRecording().

bool QEditor::m_tabIndent [private]
 

Definition at line 146 of file qeditor.h.

Referenced by QEditor(), and setTabIndentEnabled().

int QEditor::m_tabStop [private]
 

Definition at line 151 of file qeditor.h.

Referenced by QEditor(), and setTabStop().

ParenMatcher* QEditor::parenMatcher [private]
 

Definition at line 145 of file qeditor.h.

Referenced by doMatch(), and QEditor().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:46:16 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003