viewcursordcopinterface.cpp
#include "viewcursordcopinterface.h"
#include "viewcursorinterface.h"
#include <qpoint.h>
#include <dcopclient.h>
using namespace KTextEditor;
ViewCursorDCOPInterface::ViewCursorDCOPInterface( ViewCursorInterface *Parent, const char *name)
: DCOPObject(name)
{
m_parent = Parent;
}
ViewCursorDCOPInterface::~ViewCursorDCOPInterface()
{
}
uint ViewCursorDCOPInterface::viewCursorInterfaceNumber ()
{
return m_parent->viewCursorInterfaceNumber ();
}
::QPoint ViewCursorDCOPInterface::cursorCoordinates ()
{
return m_parent->cursorCoordinates ();
}
void ViewCursorDCOPInterface::cursorPosition (uint line, uint col)
{
m_parent->cursorPosition (&line, &col);
}
void ViewCursorDCOPInterface::cursorPositionReal (uint line, uint col)
{
m_parent->cursorPositionReal (&line, &col);
}
bool ViewCursorDCOPInterface::setCursorPosition (uint line, uint col)
{
return m_parent->setCursorPosition ( line, col);
}
bool ViewCursorDCOPInterface::setCursorPositionReal (uint line, uint col)
{
return m_parent->setCursorPositionReal ( line, col);
}
uint ViewCursorDCOPInterface::cursorLine ()
{
return m_parent->cursorLine ();
}
uint ViewCursorDCOPInterface::cursorColumn ()
{
return m_parent->cursorColumn ();
}
uint ViewCursorDCOPInterface::cursorColumnReal ()
{
return m_parent->cursorColumnReal ();
}
void ViewCursorDCOPInterface::cursorPositionChanged ()
{
m_parent->cursorPositionChanged ();
}
KTextEditor::ViewCursorDCOPInterface::cursorPosition
void cursorPosition(uint line, uint col)
Get the cursor position.
Definition: viewcursordcopinterface.cpp:30
KTextEditor::ViewCursorInterface
This is an interface to access the text cursor of a View class.
Definition: viewcursorinterface.h:33
KTextEditor::ViewCursorInterface::setCursorPositionReal
virtual bool setCursorPositionReal(unsigned int line, unsigned int col)=0
Set the cursor position, use 1 character per tab.
KTextEditor::ViewCursorDCOPInterface::cursorPositionReal
void cursorPositionReal(uint line, uint col)
Get the cursor position, calculated with 1 character per tab.
Definition: viewcursordcopinterface.cpp:35
KTextEditor::ViewCursorInterface::cursorPosition
virtual void cursorPosition(unsigned int *line, unsigned int *col)=0
Get the cursor position.
KTextEditor::ViewCursorDCOPInterface::cursorCoordinates
class QPoint cursorCoordinates()
Get the current cursor coordinates in pixels.
Definition: viewcursordcopinterface.cpp:25
KTextEditor::ViewCursorDCOPInterface::ViewCursorDCOPInterface
ViewCursorDCOPInterface(ViewCursorInterface *Parent, const char *name)
Construct a new interface object for the text editor.
Definition: viewcursordcopinterface.cpp:9
KTextEditor::ViewCursorInterface::cursorPositionReal
virtual void cursorPositionReal(unsigned int *line, unsigned int *col)=0
Get the cursor position, calculated with 1 character per tab.
KTextEditor::ViewCursorDCOPInterface::setCursorPosition
bool setCursorPosition(uint line, uint col)
Set the cursor position.
Definition: viewcursordcopinterface.cpp:40
KTextEditor::ViewCursorDCOPInterface::~ViewCursorDCOPInterface
virtual ~ViewCursorDCOPInterface()
Destructor Cleans up the object.
Definition: viewcursordcopinterface.cpp:15
KTextEditor::ViewCursorDCOPInterface::setCursorPositionReal
bool setCursorPositionReal(uint line, uint col)
Set the cursor position, use 1 character per tab.
Definition: viewcursordcopinterface.cpp:45
KTextEditor::ViewCursorInterface::cursorCoordinates
virtual class QPoint cursorCoordinates()=0
Get the current cursor coordinates in pixels.
KTextEditor::ViewCursorInterface::setCursorPosition
virtual bool setCursorPosition(unsigned int line, unsigned int col)=0
Set the cursor position.

KDE Home | KDE Accessibility Home | Description of Access Keys