KDevelop API Documentation

KNEdit::View Class Reference

The KNedit::View text editor interface. More...

#include <view.h>

Inheritance diagram for KNEdit::View:

Inheritance graph
[legend]
Collaboration diagram for KNEdit::View:

Collaboration graph
[legend]
List of all members.

Public Slots

QPoint cursorCoordinates ()
 Get the current cursor coordinates in pixels.
void cursorPosition (uint *line, uint *col)
 Get the cursor position.
void cursorPositionReal (uint *line, uint *col)
 Get the cursor position, calculated with 1 character per tab.
bool setCursorPosition (uint line, uint col)
 Set the cursor position.
bool setCursorPositionReal (uint line, uint col)
 Set the cursor position, use 1 character per tab.
uint cursorLine ()
uint cursorColumn ()
uint cursorColumnReal ()

Signals

void cursorPositionChanged ()

Public Member Functions

 View (Document *, QWidget *, const char *=0)
virtual ~View ()
void embedNEdit (WId id)
KTextEditor::Documentdocument () const

Private Attributes

Documentm_doc
QXEmbedm_embed

Detailed Description

The KNedit::View text editor interface.

Definition at line 43 of file view.h.


Constructor & Destructor Documentation

KNEdit::View::View Document ,
QWidget ,
const char *  = 0
 

Reimplemented from KTextEditor::View.

Definition at line 33 of file view.cpp.

References KNEdit::Document::addView(), m_doc, m_embed, and KXMLGUIClient::setInstance().

KNEdit::View::~View  )  [virtual]
 

Definition at line 47 of file view.cpp.

References m_doc, and KNEdit::Document::removeView().


Member Function Documentation

uint KNEdit::View::cursorColumn  )  [virtual, slot]
 

Implements KTextEditor::ViewCursorInterface.

Definition at line 100 of file view.cpp.

uint KNEdit::View::cursorColumnReal  )  [virtual, slot]
 

Implements KTextEditor::ViewCursorInterface.

Definition at line 106 of file view.cpp.

QPoint KNEdit::View::cursorCoordinates  )  [virtual, slot]
 

Get the current cursor coordinates in pixels.

Todo:
implement this function

Implements KTextEditor::ViewCursorInterface.

Definition at line 66 of file view.cpp.

uint KNEdit::View::cursorLine  )  [virtual, slot]
 

Implements KTextEditor::ViewCursorInterface.

Definition at line 94 of file view.cpp.

void KNEdit::View::cursorPosition uint *  line,
uint *  col
[slot]
 

Get the cursor position.

Todo:
implement this function

Definition at line 72 of file view.cpp.

void KNEdit::View::cursorPositionChanged  )  [virtual, signal]
 

Implements KTextEditor::ViewCursorInterface.

void KNEdit::View::cursorPositionReal uint *  line,
uint *  col
[slot]
 

Get the cursor position, calculated with 1 character per tab.

Todo:
implement this function

Definition at line 77 of file view.cpp.

KTextEditor::Document * KNEdit::View::document  )  const [virtual]
 

Implements KTextEditor::View.

Definition at line 53 of file view.cpp.

void KNEdit::View::embedNEdit WId  id  ) 
 

Definition at line 58 of file view.cpp.

References QXEmbed::embed(), kdDebug(), and m_embed.

Referenced by KNEdit::Document::serverReady().

bool KNEdit::View::setCursorPosition uint  line,
uint  col
[slot]
 

Set the cursor position.

Definition at line 82 of file view.cpp.

References KNEdit::Document::invokeNC(), and m_doc.

Referenced by setCursorPositionReal().

bool KNEdit::View::setCursorPositionReal uint  line,
uint  col
[slot]
 

Set the cursor position, use 1 character per tab.

Definition at line 89 of file view.cpp.

References setCursorPosition().


Member Data Documentation

Document* KNEdit::View::m_doc [private]
 

Definition at line 80 of file view.h.

Referenced by setCursorPosition(), View(), and ~View().

QXEmbed* KNEdit::View::m_embed [private]
 

Definition at line 81 of file view.h.

Referenced by embedNEdit(), and View().


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:51:33 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003