QEditorView Class Reference
#include <qeditor_view.h>
Inheritance diagram for QEditorView:


Public Slots | |
void | configChanged () |
void | gotoLine () |
void | setLanguage (const QString &) |
void | doFind () |
void | doReplace () |
void | indent () |
void | ensureTextIsVisible (QTextParagraph *) |
void | expandBlock (QTextParagraph *) |
void | collapseBlock (QTextParagraph *) |
void | expandAllBlocks () |
void | collapseAllBlocks () |
virtual void | copy () const |
copies selected text | |
virtual void | cut () |
copies selected text | |
virtual void | paste () |
copies selected text | |
virtual void | selectAll () |
select all text | |
Signals | |
void | cursorPositionChanged () |
void | completionAborted () |
This signal is emitted when the completion list disappears and no completion has been done. | |
void | completionDone () |
This signal is emitted when the completion list disappears and a completion has been inserted into text. | |
void | completionDone (KTextEditor::CompletionEntry) |
This signal is the same as completionDone(), but additionally it carries the information which completion item was used. | |
void | argHintHidden () |
This signal is emitted when the argument hint disappears. | |
void | filterInsertString (KTextEditor::CompletionEntry *, QString *) |
This signal is emitted just before a completion takes place. | |
void | aboutToShowCompletionBox () |
void | needTextHint (int line, int column, QString &) |
void | newStatus () |
Public Member Functions | |
QEditorView (QEditorPart *, QWidget *=0, const char *=0) | |
find/replace adapted from KOffice KoText Copyright (C) 1998, 1999 Reginald Stadlbauer <reggie@kde.org> Copyright (C) 2001, S.R.Haque <srhaque@iee.org> Copyright (C) 2001, David Faure <david@mandrakesoft.com> | |
virtual | ~QEditorView () |
KTextEditor::Document * | document () const |
QEditorPart * | doc () const |
QEditor * | editor () const |
QString | currentTextLine () const |
void | insertText (const QString &) |
QString | language () const |
bool | isMarkerWidgetVisible () const |
void | setMarkerWidgetVisible (bool) |
MarkerWidget * | markerWidget () |
bool | isLineNumberWidgetVisible () const |
void | setLineNumberWidgetVisible (bool) |
bool | isLevelWidgetVisible () const |
void | setLevelWidgetVisible (bool) |
int | tabStop () const |
void | setTabStop (int) |
virtual QPoint | cursorCoordinates () |
Get the current cursor coordinates in pixels. | |
virtual void | cursorPosition (unsigned int *line, unsigned int *col) |
Get the cursor position. | |
virtual void | cursorPositionReal (unsigned int *line, unsigned int *col) |
Get the cursor position, calculated with 1 character per tab. | |
virtual bool | setCursorPosition (unsigned int line, unsigned int col) |
Set the cursor position. | |
virtual bool | setCursorPositionReal (unsigned int line, unsigned int col) |
Set the cursor position, use 1 character per tab. | |
virtual unsigned int | cursorLine () |
virtual unsigned int | cursorColumn () |
virtual unsigned int | cursorColumnReal () |
virtual void | installPopup (class QPopupMenu *rmb_Menu) |
Install a Popup Menu. | |
virtual void | showArgHint (QStringList functionList, const QString &strWrapping, const QString &strDelimiter) |
This shows an argument hint. | |
virtual void | showCompletionBox (QValueList< KTextEditor::CompletionEntry > complList, int offset=0, bool casesensitive=true) |
This shows a completion list. | |
QString | computeTextHint (int line, int column) |
void | enableTextHints (int timeout) |
void | disableTextHints () |
Protected Slots | |
void | highlight (const QString &, int, int, const QRect &) |
void | replace (const QString &, int, int, int, const QRect &) |
Protected Member Functions | |
void | proceed () |
bool | find_real (QTextParagraph *firstParag, int firstIndex, QTextParagraph *lastParag, int lastIndex) |
bool | process (const QString &) |
void | doRepaint () |
void | internalEnsureVisibleBlock (QTextParagraph *) |
void | internalExpandBlock (QTextParagraph *) |
void | internalCollapseBlock (QTextParagraph *) |
Private Member Functions | |
void | setupActions () |
Private Attributes | |
QTextParagraph * | m_currentParag |
KoFindDialog * | m_findDialog |
KoReplaceDialog * | m_replaceDialog |
KoFind * | m_find |
KoReplace * | m_replace |
long | m_options |
int | m_offset |
QEditorPart * | m_document |
QEditor * | m_editor |
QEditorCodeCompletion * | m_pCodeCompletion |
LineNumberWidget * | m_lineNumberWidget |
MarkerWidget * | m_markerWidget |
LevelWidget * | m_levelWidget |
QEditorTextHint * | m_textHintToolTip |
Constructor & Destructor Documentation
|
find/replace adapted from KOffice KoText Copyright (C) 1998, 1999 Reginald Stadlbauer <reggie@kde.org> Copyright (C) 2001, S.R.Haque <srhaque@iee.org> Copyright (C) 2001, David Faure <david@mandrakesoft.com>
Definition at line 58 of file qeditor_view.cpp. References argHintHidden(), collapseBlock(), completionAborted(), completionDone(), configChanged(), cursorPositionChanged(), doc(), doRepaint(), ensureTextIsVisible(), expandBlock(), filterInsertString(), m_currentParag, m_editor, m_find, m_findDialog, m_levelWidget, m_lineNumberWidget, m_markerWidget, m_offset, m_options, m_pCodeCompletion, m_replace, m_replaceDialog, newStatus(), QEditorPartFactory::registerView(), KXMLGUIClient::setInstance(), setupActions(), and KXMLGUIClient::setXMLFile(). |
|
Definition at line 135 of file qeditor_view.cpp. References QEditorPartFactory::deregisterView(), and m_pCodeCompletion. |
Member Function Documentation
|
Referenced by showCompletionBox(). |
|
This signal is emitted when the argument hint disappears. This is the case e.g. when the user moves the cursor somewhere else. IMPORTANT: Please check if a connect to this signal worked, and implement some fallback when the implementation doesn't support it IMPORTANT FOR IMPLEMENTERS: When you don't support this signal, please just override the inherited function, if you support it, declare it as a signal Implements KTextEditor::CodeCompletionInterface. Referenced by QEditorView(). |
|
Definition at line 771 of file qeditor_view.cpp. References QEditor::document(), doRepaint(), internalCollapseBlock(), ParagData::isBlockStart(), m_editor, and QEditor::refresh(). Referenced by setupActions(). |
|
Definition at line 657 of file qeditor_view.cpp. References doRepaint(), internalCollapseBlock(), m_editor, and QEditor::refresh(). Referenced by QEditorView(). |
|
This signal is emitted when the completion list disappears and no completion has been done. This is the case e.g. when the user presses Escape. IMPORTANT: Please check if a connect to this signal worked, and implement some fallback when the implementation doesn't support it IMPORTANT FOR IMPLEMENTERS: When you don't support this signal, please just override the inherited function, if you support it, declare it as a signal Implements KTextEditor::CodeCompletionInterface. Referenced by QEditorView(). |
|
This signal is the same as completionDone(), but additionally it carries the information which completion item was used. IMPORTANT: Please check if a connect to this signal worked, and implement some fallback when the implementation doesn't support it IMPORTANT: The pointer to the CompleteionEntry, is only valid in the slots connected to this signal when the connected slots are left, the data element may be destroyed, depending on the implementation IMPORTANT FOR IMPLEMENTERS: When you don't support this signal, please just override the inherited function, if you support it, declare it as a signal. |
|
This signal is emitted when the completion list disappears and a completion has been inserted into text. This is the case e.g. when the user presses Return on a selected item in the completion list. IMPORTANT: Please check if a connect to this signal worked, and implement some fallback when the implementation doesn't support it IMPORTANT FOR IMPLEMENTERS: When you don't support this signal, please just override the inherited function, if you support it, declare it as a signal Implements KTextEditor::CodeCompletionInterface. Referenced by QEditorView(). |
|
Definition at line 786 of file qeditor_view.cpp. References needTextHint(). Referenced by QEditorTextHint::maybeTip(). |
|
Definition at line 142 of file qeditor_view.cpp. References QEditor::configChanged(), m_editor, setLevelWidgetVisible(), setLineNumberWidgetVisible(), and setMarkerWidgetVisible(). Referenced by QEditorPart::configDialog(), QEditorView(), and QEditorPart::readConfig(). |
|
copies selected text
Implements KTextEditor::ClipboardInterface. Definition at line 294 of file qeditor_view.cpp. References m_editor. Referenced by QEditorBrowserExtension::copy(), and setupActions(). |
|
Definition at line 329 of file qeditor_view.cpp. References m_editor. Referenced by QEditorCodeCompletion::eventFilter(), and QEditorCodeCompletion::updateBox(). |
|
Implements KTextEditor::ViewCursorInterface. Definition at line 268 of file qeditor_view.cpp. References m_editor, and text(). Referenced by cursorPosition(). |
|
Implements KTextEditor::ViewCursorInterface. Definition at line 287 of file qeditor_view.cpp. References m_editor. Referenced by cursorPositionReal(), QEditorCodeCompletion::eventFilter(), and QEditorCodeCompletion::updateBox(). |
|
Get the current cursor coordinates in pixels.
Implements KTextEditor::ViewCursorInterface. Definition at line 211 of file qeditor_view.cpp. References m_editor, and QEditor::textCursor(). Referenced by QEditorCodeCompletion::showArgHint(). |
|
Implements KTextEditor::ViewCursorInterface. Definition at line 261 of file qeditor_view.cpp. References m_editor. Referenced by cursorPosition(), and cursorPositionReal(). |
|
Get the cursor position.
Implements KTextEditor::ViewCursorInterface. Definition at line 223 of file qeditor_view.cpp. References cursorColumn(), and cursorLine(). |
|
Implements KTextEditor::ViewCursorInterface. Referenced by QEditorView(). |
|
Get the cursor position, calculated with 1 character per tab.
Implements KTextEditor::ViewCursorInterface. Definition at line 229 of file qeditor_view.cpp. References cursorColumnReal(), and cursorLine(). Referenced by QEditorCodeCompletion::showArgHint(), QEditorCodeCompletion::showCompletionBox(), and QEditorCodeCompletion::slotCursorPosChanged(). |
|
copies selected text
Implements KTextEditor::ClipboardInterface. Definition at line 299 of file qeditor_view.cpp. References m_editor. Referenced by setupActions(). |
|
Implements KTextEditor::TextHintInterface. Definition at line 805 of file qeditor_view.cpp. References m_textHintToolTip. |
|
Definition at line 69 of file qeditor_view.h. Referenced by QEditorArgHint::cursorPositionChanged(), QEditorView(), and setupActions(). |
|
Implements KTextEditor::View. Definition at line 206 of file qeditor_view.cpp. |
|
Definition at line 476 of file qeditor_view.cpp. References KoFind::abort(), highlight(), m_editor, m_find, KoFindDialog::m_find, m_findDialog, m_options, KoFindDialog::options(), KoFindDialog::pattern(), proceed(), and KComboBox::setEditURL(). Referenced by setupActions(). |
|
Definition at line 666 of file qeditor_view.cpp. References LevelWidget::doRepaint(), LineNumberWidget::doRepaint(), MarkerWidget::doRepaint(), m_levelWidget, m_lineNumberWidget, and m_markerWidget. Referenced by collapseAllBlocks(), collapseBlock(), ensureTextIsVisible(), expandAllBlocks(), expandBlock(), and QEditorView(). |
|
Definition at line 496 of file qeditor_view.cpp. References KoReplace::abort(), highlight(), m_editor, KoFindDialog::m_find, m_options, m_replace, m_replaceDialog, KoReplaceDialog::options(), KoFindDialog::pattern(), proceed(), replace(), KoReplaceDialog::replacement(), and KComboBox::setEditURL(). Referenced by setupActions(). |
|
|
Implements KTextEditor::TextHintInterface. Definition at line 793 of file qeditor_view.cpp. References m_textHintToolTip. |
|
Definition at line 548 of file qeditor_view.cpp. References doRepaint(), internalEnsureVisibleBlock(), m_editor, and QEditor::refresh(). Referenced by QEditorView(), setCursorPosition(), and setCursorPositionReal(). |
|
Definition at line 756 of file qeditor_view.cpp. References QEditor::document(), doRepaint(), internalExpandBlock(), ParagData::isBlockStart(), m_editor, and QEditor::refresh(). Referenced by setupActions(). |
|
Definition at line 648 of file qeditor_view.cpp. References doRepaint(), internalExpandBlock(), m_editor, and QEditor::refresh(). Referenced by QEditorView(). |
|
This signal is emitted just before a completion takes place. You can use it to modify the KTextEditor::CompletionEntry. The modified entry will not be visible in the completion list (because that has just disappeared) but it will be used when the completion is inserted into the text. IMPORTANT: Please check if a connect to this signal worked, and implement some fallback when the implementation doesn't support it IMPORTANT FOR IMPLEMENTERS: When you don't support this signal, please just override the inherited function, if you support it, declare it as a signal Referenced by QEditorView(). |
|
Definition at line 424 of file qeditor_view.cpp. References m_currentParag, m_offset, m_options, and process(). Referenced by proceed(). |
|
Definition at line 356 of file qeditor_view.cpp. References m_editor, and GotoLineDialog::setEditor(). Referenced by setupActions(). |
|
Definition at line 530 of file qeditor_view.cpp. References m_currentParag, and m_editor. Referenced by doFind(), and doReplace(). |
|
Definition at line 351 of file qeditor_view.cpp. References QEditor::indent(), and m_editor. Referenced by setupActions(). |
|
Definition at line 336 of file qeditor_view.cpp. References m_editor, and text(). Referenced by QEditorCodeCompletion::eventFilter(). |
|
Install a Popup Menu. The Popup Menu will be activated on a right mouse button press event. Implements KTextEditor::PopupMenuInterface. Definition at line 309 of file qeditor_view.cpp. References m_editor, and QEditor::setApplicationMenu(). |
|
Definition at line 621 of file qeditor_view.cpp. References ParagData::level(), and ParagData::setOpen(). Referenced by collapseAllBlocks(), and collapseBlock(). |
|
Definition at line 569 of file qeditor_view.cpp. References internalExpandBlock(), and ParagData::level(). Referenced by ensureTextIsVisible(). |
|
Definition at line 596 of file qeditor_view.cpp. References ParagData::level(), and ParagData::setOpen(). Referenced by expandAllBlocks(), expandBlock(), and internalEnsureVisibleBlock(). |
|
Definition at line 181 of file qeditor_view.cpp. References m_levelWidget. |
|
Definition at line 166 of file qeditor_view.cpp. References m_lineNumberWidget. |
|
Definition at line 151 of file qeditor_view.cpp. References m_markerWidget. |
|
Definition at line 346 of file qeditor_view.cpp. References QEditor::language(), and m_editor. |
|
Definition at line 79 of file qeditor_view.h. Referenced by QEditorPart::setMarksUserChangable(). |
|
Implements KTextEditor::TextHintInterface. Referenced by computeTextHint(). |
|
Referenced by QEditorView(). |
|
copies selected text
Implements KTextEditor::ClipboardInterface. Definition at line 304 of file qeditor_view.cpp. References m_editor. Referenced by setupActions(). |
|
Definition at line 363 of file qeditor_view.cpp. References QEditor::document(), find_real(), m_editor, m_options, and QEditor::textCursor(). Referenced by doFind(), and doReplace(). |
|
Definition at line 519 of file qeditor_view.cpp. References KoFind::find(), m_find, m_replace, KoReplace::replace(), and text(). Referenced by find_real(). |
|
Definition at line 536 of file qeditor_view.cpp. References m_currentParag, m_editor, m_replaceDialog, and KoReplaceDialog::replacement(). Referenced by doReplace(). |
|
select all text
Definition at line 673 of file qeditor_view.cpp. References m_editor. Referenced by setupActions(). |
|
Set the cursor position.
Implements KTextEditor::ViewCursorInterface. Definition at line 235 of file qeditor_view.cpp. References QEditor::document(), ensureTextIsVisible(), kdDebug(), and m_editor. |
|
Set the cursor position, use 1 character per tab.
Implements KTextEditor::ViewCursorInterface. Definition at line 250 of file qeditor_view.cpp. References QEditor::document(), ensureTextIsVisible(), and m_editor. |
|
Definition at line 341 of file qeditor_view.cpp. References m_editor, and QEditor::setLanguage(). Referenced by QEditorPart::setHlMode(). |
|
Definition at line 186 of file qeditor_view.cpp. References LevelWidget::doRepaint(), and m_levelWidget. Referenced by configChanged(). |
|
Definition at line 171 of file qeditor_view.cpp. References LineNumberWidget::doRepaint(), and m_lineNumberWidget. Referenced by configChanged(). |
|
Definition at line 156 of file qeditor_view.cpp. References MarkerWidget::doRepaint(), and m_markerWidget. Referenced by configChanged(). |
|
Definition at line 201 of file qeditor_view.cpp. References m_editor, and QEditor::setTabStop(). |
|
Definition at line 678 of file qeditor_view.cpp. References KXMLGUIClient::actionCollection(), collapseAllBlocks(), copy(), KStdAction::copy(), cut(), KStdAction::cut(), doc(), doFind(), doReplace(), editor(), expandAllBlocks(), KStdAction::find(), gotoLine(), KStdAction::gotoLine(), indent(), KStdAction::open(), paste(), KStdAction::pasteText(), KStdAction::redo(), KStdAction::replace(), KStdAction::save(), KStdAction::saveAs(), selectAll(), KStdAction::selectAll(), and KStdAction::undo(). Referenced by QEditorView(). |
|
This shows an argument hint.
Implements KTextEditor::CodeCompletionInterface. Definition at line 314 of file qeditor_view.cpp. References m_pCodeCompletion, and QEditorCodeCompletion::showArgHint(). |
|
This shows a completion list.
Definition at line 321 of file qeditor_view.cpp. References aboutToShowCompletionBox(), m_pCodeCompletion, and QEditorCodeCompletion::showCompletionBox(). |
|
Definition at line 196 of file qeditor_view.cpp. References m_editor, and QEditor::tabStop(). |
Member Data Documentation
|
Definition at line 121 of file qeditor_view.h. Referenced by find_real(), highlight(), QEditorView(), and replace(). |
|
Definition at line 288 of file qeditor_view.h. |
|
Definition at line 289 of file qeditor_view.h. Referenced by collapseAllBlocks(), collapseBlock(), configChanged(), copy(), currentTextLine(), cursorColumn(), cursorColumnReal(), cursorCoordinates(), cursorLine(), cut(), doFind(), doReplace(), ensureTextIsVisible(), expandAllBlocks(), expandBlock(), gotoLine(), highlight(), indent(), insertText(), installPopup(), language(), paste(), proceed(), QEditorView(), replace(), selectAll(), setCursorPosition(), setCursorPositionReal(), setLanguage(), setTabStop(), and tabStop(). |
|
Definition at line 124 of file qeditor_view.h. Referenced by doFind(), process(), and QEditorView(). |
|
Definition at line 122 of file qeditor_view.h. Referenced by doFind(), and QEditorView(). |
|
Definition at line 293 of file qeditor_view.h. Referenced by doRepaint(), isLevelWidgetVisible(), QEditorView(), and setLevelWidgetVisible(). |
|
Definition at line 291 of file qeditor_view.h. Referenced by doRepaint(), isLineNumberWidgetVisible(), QEditorView(), and setLineNumberWidgetVisible(). |
|
Definition at line 292 of file qeditor_view.h. Referenced by doRepaint(), isMarkerWidgetVisible(), QEditorView(), and setMarkerWidgetVisible(). |
|
Definition at line 127 of file qeditor_view.h. Referenced by find_real(), and QEditorView(). |
|
Definition at line 126 of file qeditor_view.h. Referenced by doFind(), doReplace(), find_real(), proceed(), and QEditorView(). |
|
Definition at line 290 of file qeditor_view.h. Referenced by QEditorView(), showArgHint(), showCompletionBox(), and ~QEditorView(). |
|
Definition at line 125 of file qeditor_view.h. Referenced by doReplace(), process(), and QEditorView(). |
|
Definition at line 123 of file qeditor_view.h. Referenced by doReplace(), QEditorView(), and replace(). |
|
Definition at line 294 of file qeditor_view.h. Referenced by disableTextHints(), and enableTextHints(). |
The documentation for this class was generated from the following files:
- editors/qeditor/qeditor_view.h
- editors/qeditor/qeditor_view.cpp