KDevelop API Documentation

QEditorPart Class Reference

This is a KTextEditor interface for Qeditor. More...

#include <qeditor_part.h>

Inheritance diagram for QEditorPart:

KTextEditor::ConfigInterface KTextEditor::MarkInterfaceExtension KTextEditor::MarkInterface KTextEditor::SearchInterface KTextEditor::HighlightingInterface KTextEditor::SelectionInterface KTextEditor::CursorInterface KTextEditor::UndoInterface KTextEditor::EditInterface KTextEditor::Document List of all members.

Public Slots

virtual void readConfig ()
 Read/Write the config to the standard place where this editor part saves it config, say: read/save default values for that editor part.

virtual void writeConfig ()
virtual void readConfig (KConfig *)
 Read/Write the config of the part to a given kconfig object to store the settings in a different place than the standard.

virtual void writeConfig (KConfig *)
virtual void readSessionConfig (KConfig *)
 Read/Write session config of only this document/view/plugin.

virtual void writeSessionConfig (KConfig *)
virtual void configDialog ()
 Shows a config dialog for the part.

virtual void undo ()
virtual void redo ()
void fileReload ()

Signals

void fileNameChanged ()
void configWidget (KDialogBase *)
void marksChanged ()
virtual void markChanged (KTextEditor::Mark mark, KTextEditor::MarkInterfaceExtension::MarkChangeAction action)
void hlChanged ()
void undoChanged ()
void textChanged ()
void newStatus ()
void charactersInteractivelyInserted (int, int, const QString &)
void selectionChanged ()

Public Member Functions

 QEditorPart (QWidget *parentWidget, const char *widgetName, QObject *parent, const char *name, const QStringList &args)
 Default constructor.

virtual ~QEditorPart ()
 Destructor.

virtual void setReadWrite (bool rw)
 This is a virtual function inherited from KParts::ReadWritePart.

virtual void setModified (bool modified)
 Reimplemented to disable and enable Save action.

QSourceColorizercolorizer () const
QEditorIndenterindenter () const
virtual uint mark (uint line)
virtual void setMark (uint line, uint markType)
virtual void clearMark (uint line)
virtual void addMark (uint line, uint markType)
virtual void removeMark (uint line, uint markType)
virtual QPtrList< KTextEditor::Mark > marks ()
virtual void clearMarks ()
virtual void setPixmap (MarkInterface::MarkTypes, const QPixmap &)
virtual void setDescription (MarkInterface::MarkTypes, const QString &)
virtual void setMarksUserChangable (uint markMask)
virtual bool searchText (unsigned int startLine, unsigned int startCol, const QString &text, unsigned int *foundAtLine, unsigned int *foundAtCol, unsigned int *matchLen, bool casesensitive=true, bool backwards=false)
virtual bool searchText (unsigned int startLine, unsigned int startCol, const QRegExp &regexp, unsigned int *foundAtLine, unsigned int *foundAtCol, unsigned int *matchLen, bool backwards=false)
QEditorViewcurrentView () const
virtual KTextEditor::ViewcreateView (QWidget *parent, const char *name=0)
 Create a view that will display the document data.

virtual QPtrList< KTextEditor::Viewviews () const
virtual unsigned int hlMode ()
 returns the current active highlighting mode

virtual bool setHlMode (unsigned int mode)
 set the current active highlighting mode

virtual unsigned int hlModeCount ()
 returns the number of available highlightings

virtual QString hlModeName (unsigned int mode)
 returns the name of the highlighting with number "mode"

virtual QString hlModeSectionName (unsigned int mode)
 returns the sectionname of the highlighting with number "mode"

virtual void clearUndo ()
virtual void clearRedo ()
virtual unsigned int undoCount () const
virtual unsigned int redoCount () const
virtual unsigned int undoSteps () const
virtual void setUndoSteps (unsigned int steps)
virtual QString text () const
virtual QString text (unsigned int startLine, unsigned int startCol, unsigned int endLine, unsigned int endCol) const
virtual QString textLine (unsigned int line) const
virtual unsigned int numLines () const
virtual unsigned int length () const
virtual int lineLength (unsigned int line) const
virtual bool setText (const QString &text)
 Set the given text into the view.

virtual bool clear ()
 clears the document Warning: This will overwrite any data currently held in this view.

virtual bool insertText (unsigned int line, unsigned int col, const QString &text)
 Inserts text at line "line", column "col" returns true if success.

virtual bool removeText (unsigned int startLine, unsigned int startCol, unsigned int endLine, unsigned int endCol)
 remove text at line "line", column "col" returns true if success

virtual bool insertLine (unsigned int line, const QString &text)
 Insert line(s) at the given line number.

virtual bool removeLine (unsigned int line)
 Insert line(s) at the given line number.

virtual KTextEditor::CursorcreateCursor ()
 Create a new cursor object.

virtual QPtrList< KTextEditor::Cursorcursors () const
virtual bool setSelection (unsigned int startLine, unsigned int startCol, unsigned int endLine, unsigned int endCol)
virtual bool clearSelection ()
 removes the current Selection (not Text)

virtual bool hasSelection () const
virtual QString selection () const
virtual bool removeSelectedText ()
 removes the selected Text

virtual bool selectAll ()
 select the whole text


Protected Slots

void fileOpen ()
void fileSaveAs ()

Protected Member Functions

virtual bool openFile ()
 This must be implemented by each part.

virtual bool saveFile ()
 This must be implemented by each read-write part.


Private Member Functions

void setupHighlighting ()
int findMode (const QString &)

Private Attributes

QPtrList< HLModem_modes
unsigned int m_currentMode
QEditorViewm_currentView
QPtrList< KTextEditor::Viewm_views
QPtrList< KTextEditor::Cursorm_cursors
QPtrList< KTextEditor::Mark > m_marks
QEditorBrowserExtensionm_extension

Detailed Description

This is a KTextEditor interface for Qeditor.

Author(s):
Roberto Raggi

Maintainer(s):
Roberto Raggi

Feature(s):
A KTextEditor interface for Qeditor

Highlight code:

  • Ada ( and indentation )
  • bash
  • c#
  • c++
  • javascript
  • jsp
  • Pascal ( and indentation )
  • python ( and indentation )
  • ocaml
  • SQL

code folding: C#, c++ and java

Reload action

Notify KDevelop if the status of the file has changed

QEditorBrowserExtension

emacs like wordwrap mode and indent mode

breakpoint support

problem reporter marker widget

keyboard macro support

find/replace dialogs

Take a look at Editors Support Status (doc/api/EditorsSupportStatus.dox file) to see the current status/features of this editor.

Bug:
bugs in qeditor component at Bugzilla database

Requirement(s):
QT 3.0.3

Definition at line 57 of file qeditor_part.h.


Constructor & Destructor Documentation

QEditorPart::QEditorPart QWidget parentWidget,
const char *  widgetName,
QObject parent,
const char *  name,
const QStringList args
 

Default constructor.

Definition at line 104 of file qeditor_part.cpp.

References createView(), endl(), kdDebug(), m_cursors, m_extension, m_marks, m_views, QEditorPart(), KParts::ReadWritePart::setModified(), setReadWrite(), and setupHighlighting().

Referenced by QEditorPart().

QEditorPart::~QEditorPart  )  [virtual]
 

Destructor.

Definition at line 132 of file qeditor_part.cpp.


Member Function Documentation

void QEditorPart::addMark uint  line,
uint  markType
[virtual]
 

Implements KTextEditor::MarkInterface.

Definition at line 742 of file qeditor_part.cpp.

References addMark(), QEditor::document(), QEditorView::editor(), m_currentView, ParagData::mark(), marksChanged(), and ParagData::setMark().

Referenced by addMark().

void QEditorPart::charactersInteractivelyInserted int  ,
int  ,
const QString
[virtual, signal]
 

Implements KTextEditor::EditInterface.

bool QEditorPart::clear  )  [virtual]
 

clears the document Warning: This will overwrite any data currently held in this view.

Implements KTextEditor::EditInterface.

Definition at line 309 of file qeditor_part.cpp.

References QEditorView::editor(), and m_currentView.

void QEditorPart::clearMark uint  line  )  [virtual]
 

Implements KTextEditor::MarkInterface.

Definition at line 737 of file qeditor_part.cpp.

References clearMark(), and setMark().

Referenced by clearMark().

void QEditorPart::clearMarks  )  [virtual]
 

Implements KTextEditor::MarkInterface.

Definition at line 791 of file qeditor_part.cpp.

References QEditor::document(), QEditorView::editor(), m_currentView, and ParagData::setMark().

void QEditorPart::clearRedo  )  [virtual]
 

Implements KTextEditor::UndoInterface.

Definition at line 370 of file qeditor_part.cpp.

References endl(), and kdDebug().

bool QEditorPart::clearSelection  )  [virtual]
 

removes the current Selection (not Text)

Implements KTextEditor::SelectionInterface.

Definition at line 431 of file qeditor_part.cpp.

References QEditorView::editor(), and m_currentView.

void QEditorPart::clearUndo  )  [virtual]
 

Implements KTextEditor::UndoInterface.

Definition at line 364 of file qeditor_part.cpp.

References endl(), and kdDebug().

QSourceColorizer * QEditorPart::colorizer  )  const
 

Definition at line 894 of file qeditor_part.cpp.

References QEditor::colorizer(), QEditorView::editor(), and m_currentView.

Referenced by configDialog().

void QEditorPart::configDialog  )  [virtual, slot]
 

Shows a config dialog for the part.

Implements KTextEditor::ConfigInterface.

Definition at line 852 of file qeditor_part.cpp.

References KDialogBase::addVBoxPage(), colorizer(), QEditorSettings::config(), QEditorView::configChanged(), configWidget(), QEditorIndenter::createConfigPage(), indenter(), m_currentView, QEditorSettings::self(), HighlightingConfigPage::setEditor(), GeneralConfigPage::setPart(), and KConfigBase::sync().

void QEditorPart::configWidget KDialogBase  )  [signal]
 

Referenced by configDialog().

KTextEditor::Cursor * QEditorPart::createCursor  )  [virtual]
 

Create a new cursor object.

Implements KTextEditor::CursorInterface.

Definition at line 412 of file qeditor_part.cpp.

References QEditor::document(), QEditorView::editor(), m_currentView, and m_cursors.

KTextEditor::View * QEditorPart::createView QWidget parent,
const char *  name = 0
[virtual]
 

Create a view that will display the document data.

You can create as many views as you like. When the user modifies data in one view then all other views will be updated as well.

Implements KTextEditor::Document.

Definition at line 342 of file qeditor_part.cpp.

References createView(), endl(), kdDebug(), m_currentView, and m_views.

Referenced by createView(), and QEditorPart().

QEditorView* QEditorPart::currentView  )  const [inline]
 

Definition at line 167 of file qeditor_part.h.

References m_currentView.

Referenced by QEditorBrowserExtension::copy().

QPtrList< KTextEditor::Cursor > QEditorPart::cursors  )  const [virtual]
 

Implements KTextEditor::CursorInterface.

Definition at line 419 of file qeditor_part.cpp.

References m_cursors.

void QEditorPart::fileNameChanged  )  [signal]
 

Referenced by openFile(), and saveFile().

void QEditorPart::fileOpen  )  [protected, slot]
 

Definition at line 242 of file qeditor_part.cpp.

void QEditorPart::fileReload  )  [slot]
 

Definition at line 234 of file qeditor_part.cpp.

References newStatus(), KParts::ReadWritePart::setModified(), and KParts::ReadOnlyPart::url().

void QEditorPart::fileSaveAs  )  [protected, slot]
 

Definition at line 253 of file qeditor_part.cpp.

Referenced by saveFile().

int QEditorPart::findMode const QString  )  [private]
 

Definition at line 591 of file qeditor_part.cpp.

References HLMode::extensions, findMode(), and m_modes.

Referenced by findMode(), openFile(), and saveFile().

bool QEditorPart::hasSelection  )  const [virtual]
 

Returns:
true if there is a selection

Implements KTextEditor::SelectionInterface.

Definition at line 437 of file qeditor_part.cpp.

References QEditorView::editor(), and m_currentView.

Referenced by QEditorBrowserExtension::slotSelectionChanged().

void QEditorPart::hlChanged  )  [virtual, signal]
 

Implements KTextEditor::HighlightingInterface.

Referenced by setHlMode().

unsigned int QEditorPart::hlMode  )  [virtual]
 

returns the current active highlighting mode

Implements KTextEditor::HighlightingInterface.

Definition at line 556 of file qeditor_part.cpp.

References m_currentMode.

unsigned int QEditorPart::hlModeCount  )  [virtual]
 

returns the number of available highlightings

Implements KTextEditor::HighlightingInterface.

Definition at line 574 of file qeditor_part.cpp.

References m_modes.

QString QEditorPart::hlModeName unsigned int  mode  )  [virtual]
 

returns the name of the highlighting with number "mode"

Implements KTextEditor::HighlightingInterface.

Definition at line 579 of file qeditor_part.cpp.

References hlModeName(), m_modes, and HLMode::name.

Referenced by hlModeName().

QString QEditorPart::hlModeSectionName unsigned int  mode  )  [virtual]
 

returns the sectionname of the highlighting with number "mode"

Implements KTextEditor::HighlightingInterface.

Definition at line 585 of file qeditor_part.cpp.

References hlModeSectionName(), m_modes, and HLMode::section.

Referenced by hlModeSectionName().

QEditorIndenter * QEditorPart::indenter  )  const
 

Definition at line 899 of file qeditor_part.cpp.

References QEditorView::editor(), QEditor::indenter(), and m_currentView.

Referenced by configDialog().

bool QEditorPart::insertLine unsigned int  line,
const QString text
[virtual]
 

Insert line(s) at the given line number.

If the line number is -1 (the default) then the line is added to end of the document

Definition at line 330 of file qeditor_part.cpp.

References QEditorView::editor(), insertLine(), m_currentView, and text().

Referenced by insertLine().

bool QEditorPart::insertText unsigned int  line,
unsigned int  col,
const QString text
[virtual]
 

Inserts text at line "line", column "col" returns true if success.

Definition at line 315 of file qeditor_part.cpp.

References QEditorView::editor(), insertText(), m_currentView, and text().

Referenced by insertText().

unsigned int QEditorPart::length  )  const [virtual]
 

Returns:
the number of characters in the document

Implements KTextEditor::EditInterface.

Definition at line 290 of file qeditor_part.cpp.

References QEditorView::editor(), and m_currentView.

int QEditorPart::lineLength unsigned int  line  )  const [virtual]
 

Returns:
the number of characters in the line (-1 if no line "line")

Definition at line 295 of file qeditor_part.cpp.

References QEditorView::editor(), lineLength(), and m_currentView.

Referenced by lineLength().

uint QEditorPart::mark uint  line  )  [virtual]
 

Implements KTextEditor::MarkInterface.

Definition at line 711 of file qeditor_part.cpp.

References QEditor::document(), QEditorView::editor(), m_currentView, ParagData::mark(), and mark().

Referenced by mark(), and marks().

virtual void QEditorPart::markChanged KTextEditor::Mark  mark,
KTextEditor::MarkInterfaceExtension::MarkChangeAction  action
[virtual, signal]
 

Implements KTextEditor::MarkInterfaceExtension.

QPtrList< KTextEditor::Mark > QEditorPart::marks  )  [virtual]
 

Implements KTextEditor::MarkInterface.

Definition at line 768 of file qeditor_part.cpp.

References QEditor::document(), QEditorView::editor(), m_currentView, mark(), ParagData::mark(), and marks().

Referenced by marks().

void QEditorPart::marksChanged  )  [virtual, signal]
 

Implements KTextEditor::MarkInterface.

Referenced by addMark(), removeMark(), and setMark().

void QEditorPart::newStatus  )  [signal]
 

Referenced by fileReload(), and setModified().

unsigned int QEditorPart::numLines  )  const [virtual]
 

Returns:
The current number of lines in the document

Implements KTextEditor::EditInterface.

Definition at line 285 of file qeditor_part.cpp.

References QEditorView::editor(), and m_currentView.

Referenced by searchText().

bool QEditorPart::openFile  )  [protected, virtual]
 

This must be implemented by each part.

Implements KParts::ReadOnlyPart.

Definition at line 177 of file qeditor_part.cpp.

References QEditorView::editor(), file, fileNameChanged(), findMode(), m_currentView, setHlMode(), KParts::ReadWritePart::setModified(), and QEditor::setText().

void QEditorPart::readConfig KConfig  )  [virtual, slot]
 

Read/Write the config of the part to a given kconfig object to store the settings in a different place than the standard.

Implements KTextEditor::ConfigInterface.

Definition at line 832 of file qeditor_part.cpp.

References endl(), and kdDebug().

void QEditorPart::readConfig  )  [virtual, slot]
 

Read/Write the config to the standard place where this editor part saves it config, say: read/save default values for that editor part.

Implements KTextEditor::ConfigInterface.

Definition at line 821 of file qeditor_part.cpp.

References QEditorView::configChanged(), m_currentView, QEditorSettings::readConfig(), and QEditorSettings::self().

void QEditorPart::readSessionConfig KConfig  )  [virtual, slot]
 

Read/Write session config of only this document/view/plugin.

Implements KTextEditor::ConfigInterface.

Definition at line 842 of file qeditor_part.cpp.

References endl(), kdDebug(), and readSessionConfig().

Referenced by readSessionConfig().

void QEditorPart::redo  )  [virtual, slot]
 

Implements KTextEditor::UndoInterface.

Definition at line 407 of file qeditor_part.cpp.

References QEditorView::editor(), and m_currentView.

unsigned int QEditorPart::redoCount  )  const [virtual]
 

Implements KTextEditor::UndoInterface.

Definition at line 383 of file qeditor_part.cpp.

References endl(), and kdDebug().

bool QEditorPart::removeLine unsigned int  line  )  [virtual]
 

Insert line(s) at the given line number.

If the line number is -1 (the default) then the line is added to end of the document

Definition at line 336 of file qeditor_part.cpp.

References QEditorView::editor(), m_currentView, and removeLine().

Referenced by removeLine().

void QEditorPart::removeMark uint  line,
uint  markType
[virtual]
 

Implements KTextEditor::MarkInterface.

Definition at line 755 of file qeditor_part.cpp.

References QEditor::document(), QEditorView::editor(), m_currentView, ParagData::mark(), marksChanged(), removeMark(), and ParagData::setMark().

Referenced by removeMark().

bool QEditorPart::removeSelectedText  )  [virtual]
 

removes the selected Text

Implements KTextEditor::SelectionInterface.

Definition at line 447 of file qeditor_part.cpp.

References QEditorView::editor(), and m_currentView.

bool QEditorPart::removeText unsigned int  startLine,
unsigned int  startCol,
unsigned int  endLine,
unsigned int  endCol
[virtual]
 

remove text at line "line", column "col" returns true if success

Definition at line 321 of file qeditor_part.cpp.

References QEditorView::editor(), m_currentView, and removeText().

Referenced by removeText().

bool QEditorPart::saveFile  )  [protected, virtual]
 

This must be implemented by each read-write part.

Implements KParts::ReadWritePart.

Definition at line 203 of file qeditor_part.cpp.

References QEditorView::editor(), file, fileNameChanged(), fileSaveAs(), findMode(), KParts::ReadWritePart::isReadWrite(), m_currentView, setHlMode(), and KParts::ReadWritePart::setModified().

bool QEditorPart::searchText unsigned int  startLine,
unsigned int  startCol,
const QRegExp regexp,
unsigned int *  foundAtLine,
unsigned int *  foundAtCol,
unsigned int *  matchLen,
bool  backwards = false
[virtual]
 

Implements KTextEditor::SearchInterface.

Definition at line 681 of file qeditor_part.cpp.

References numLines(), searchText(), and textLine().

bool QEditorPart::searchText unsigned int  startLine,
unsigned int  startCol,
const QString text,
unsigned int *  foundAtLine,
unsigned int *  foundAtCol,
unsigned int *  matchLen,
bool  casesensitive = true,
bool  backwards = false
[virtual]
 

Implements KTextEditor::SearchInterface.

Definition at line 606 of file qeditor_part.cpp.

References endl(), kdDebug(), numLines(), searchText(), text(), and textLine().

Referenced by searchText().

bool QEditorPart::selectAll  )  [virtual]
 

select the whole text

Implements KTextEditor::SelectionInterface.

Definition at line 453 of file qeditor_part.cpp.

References QEditorView::editor(), and m_currentView.

QString QEditorPart::selection  )  const [virtual]
 

Returns:
a QString for the selected text

Implements KTextEditor::SelectionInterface.

Definition at line 442 of file qeditor_part.cpp.

References QEditorView::editor(), and m_currentView.

void QEditorPart::selectionChanged  )  [virtual, signal]
 

Implements KTextEditor::SelectionInterface.

void QEditorPart::setDescription MarkInterface::MarkTypes  ,
const QString
[virtual]
 

Implements KTextEditor::MarkInterfaceExtension.

Definition at line 809 of file qeditor_part.cpp.

References m_currentView, QEditorView::markerWidget(), MarkerWidget::setDescription(), and setDescription().

Referenced by setDescription().

bool QEditorPart::setHlMode unsigned int  mode  )  [virtual]
 

set the current active highlighting mode

Implements KTextEditor::HighlightingInterface.

Definition at line 561 of file qeditor_part.cpp.

References hlChanged(), m_currentMode, m_currentView, m_modes, HLMode::name, setHlMode(), and QEditorView::setLanguage().

Referenced by openFile(), saveFile(), and setHlMode().

void QEditorPart::setMark uint  line,
uint  markType
[virtual]
 

Implements KTextEditor::MarkInterface.

Definition at line 724 of file qeditor_part.cpp.

References QEditor::document(), QEditorView::editor(), m_currentView, marksChanged(), ParagData::setMark(), and setMark().

Referenced by clearMark(), and setMark().

void QEditorPart::setMarksUserChangable uint  markMask  )  [virtual]
 

Implements KTextEditor::MarkInterfaceExtension.

Definition at line 814 of file qeditor_part.cpp.

References m_currentView, QEditorView::markerWidget(), MarkerWidget::setMarksUserChangable(), and setMarksUserChangable().

Referenced by setMarksUserChangable().

void QEditorPart::setModified bool  modified  )  [virtual]
 

Reimplemented to disable and enable Save action.

Reimplemented from KParts::ReadWritePart.

Definition at line 152 of file qeditor_part.cpp.

References KActionCollection::action(), KXMLGUIClient::actionCollection(), QEditorView::editor(), m_currentView, and newStatus().

void QEditorPart::setPixmap MarkInterface::MarkTypes  ,
const QPixmap
[virtual]
 

Implements KTextEditor::MarkInterfaceExtension.

Definition at line 804 of file qeditor_part.cpp.

References m_currentView, QEditorView::markerWidget(), MarkerWidget::setPixmap(), and setPixmap().

Referenced by setPixmap().

void QEditorPart::setReadWrite bool  rw  )  [virtual]
 

This is a virtual function inherited from KParts::ReadWritePart.

A shell will use this to inform this Part if it should act read-only

Reimplemented from KParts::ReadWritePart.

Definition at line 137 of file qeditor_part.cpp.

References QEditorView::editor(), m_currentView, KParts::ReadWritePart::setModified(), setReadWrite(), and textChanged().

Referenced by QEditorPart(), and setReadWrite().

bool QEditorPart::setSelection unsigned int  startLine,
unsigned int  startCol,
unsigned int  endLine,
unsigned int  endCol
[virtual]
 

Returns:
set the selection from line_start,col_start to line_end,col_end

Implements KTextEditor::SelectionInterface.

Definition at line 424 of file qeditor_part.cpp.

References QEditorView::editor(), m_currentView, and setSelection().

Referenced by setSelection().

bool QEditorPart::setText const QString text  )  [virtual]
 

Set the given text into the view.

Warning: This will overwrite any data currently held in this view.

Implements KTextEditor::EditInterface.

Definition at line 303 of file qeditor_part.cpp.

References QEditorView::editor(), m_currentView, QEditor::setText(), setText(), and text().

Referenced by setText().

void QEditorPart::setUndoSteps unsigned int  steps  )  [virtual]
 

Implements KTextEditor::UndoInterface.

Definition at line 396 of file qeditor_part.cpp.

References QEditor::document(), QEditorView::editor(), m_currentView, and setUndoSteps().

Referenced by setUndoSteps().

void QEditorPart::setupHighlighting  )  [private]
 

Definition at line 459 of file qeditor_part.cpp.

References HLMode::extensions, m_currentMode, m_modes, HLMode::name, and HLMode::section.

Referenced by QEditorPart().

QString QEditorPart::text unsigned int  startLine,
unsigned int  startCol,
unsigned int  endLine,
unsigned int  endCol
const [virtual]
 

Returns:
a QString

Definition at line 267 of file qeditor_part.cpp.

References QEditor::document(), QEditorView::editor(), and m_currentView.

QString QEditorPart::text  )  const [virtual]
 

Returns:
the complete document as a single QString

Implements KTextEditor::EditInterface.

Definition at line 262 of file qeditor_part.cpp.

References QEditorView::editor(), and m_currentView.

void QEditorPart::textChanged  )  [virtual, signal]
 

Implements KTextEditor::EditInterface.

Referenced by setReadWrite().

QString QEditorPart::textLine unsigned int  line  )  const [virtual]
 

Returns:
All the text from the requested line.

Definition at line 280 of file qeditor_part.cpp.

References QEditorView::editor(), m_currentView, QEditor::textLine(), and textLine().

Referenced by QEditorArgHint::cursorPositionChanged(), searchText(), and textLine().

void QEditorPart::undo  )  [virtual, slot]
 

Implements KTextEditor::UndoInterface.

Definition at line 402 of file qeditor_part.cpp.

References QEditorView::editor(), and m_currentView.

void QEditorPart::undoChanged  )  [virtual, signal]
 

Implements KTextEditor::UndoInterface.

unsigned int QEditorPart::undoCount  )  const [virtual]
 

Implements KTextEditor::UndoInterface.

Definition at line 376 of file qeditor_part.cpp.

References endl(), and kdDebug().

unsigned int QEditorPart::undoSteps  )  const [virtual]
 

Implements KTextEditor::UndoInterface.

Definition at line 390 of file qeditor_part.cpp.

References QEditor::document(), QEditorView::editor(), and m_currentView.

QPtrList< KTextEditor::View > QEditorPart::views  )  const [virtual]
 

Implements KTextEditor::Document.

Definition at line 358 of file qeditor_part.cpp.

References m_views.

void QEditorPart::writeConfig KConfig  )  [virtual, slot]
 

Implements KTextEditor::ConfigInterface.

Definition at line 837 of file qeditor_part.cpp.

References endl(), and kdDebug().

void QEditorPart::writeConfig  )  [virtual, slot]
 

Implements KTextEditor::ConfigInterface.

Definition at line 827 of file qeditor_part.cpp.

References endl(), and kdDebug().

void QEditorPart::writeSessionConfig KConfig  )  [virtual, slot]
 

Implements KTextEditor::ConfigInterface.

Definition at line 847 of file qeditor_part.cpp.

References endl(), kdDebug(), and writeSessionConfig().

Referenced by writeSessionConfig().


Member Data Documentation

unsigned int QEditorPart::m_currentMode [private]
 

Definition at line 219 of file qeditor_part.h.

Referenced by hlMode(), setHlMode(), and setupHighlighting().

QEditorView* QEditorPart::m_currentView [private]
 

Definition at line 376 of file qeditor_part.h.

Referenced by addMark(), clear(), clearMarks(), clearSelection(), colorizer(), configDialog(), createCursor(), createView(), currentView(), hasSelection(), indenter(), insertLine(), insertText(), length(), lineLength(), mark(), marks(), numLines(), openFile(), readConfig(), redo(), removeLine(), removeMark(), removeSelectedText(), removeText(), saveFile(), selectAll(), selection(), setDescription(), setHlMode(), setMark(), setMarksUserChangable(), setModified(), setPixmap(), setReadWrite(), setSelection(), setText(), setUndoSteps(), text(), textLine(), undo(), and undoSteps().

QPtrList<KTextEditor::Cursor> QEditorPart::m_cursors [private]
 

Definition at line 378 of file qeditor_part.h.

Referenced by createCursor(), cursors(), and QEditorPart().

QEditorBrowserExtension* QEditorPart::m_extension [private]
 

Definition at line 380 of file qeditor_part.h.

Referenced by QEditorPart().

QPtrList<KTextEditor::Mark> QEditorPart::m_marks [private]
 

Definition at line 379 of file qeditor_part.h.

Referenced by QEditorPart().

QPtrList<HLMode> QEditorPart::m_modes [private]
 

Definition at line 218 of file qeditor_part.h.

Referenced by findMode(), hlModeCount(), hlModeName(), hlModeSectionName(), setHlMode(), and setupHighlighting().

QPtrList<KTextEditor::View> QEditorPart::m_views [private]
 

Definition at line 377 of file qeditor_part.h.

Referenced by createView(), QEditorPart(), and views().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Oct 19 08:02:06 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003