editors/nedit/view.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
#ifndef _KNEDIT_VIEW_INCLUDE_
00020
#define _KNEDIT_VIEW_INCLUDE_
00021
00022
#include <qpoint.h>
00023
00024
#include <ktexteditor/document.h>
00025
#include <ktexteditor/view.h>
00026
#include <ktexteditor/clipboardinterface.h>
00027
#include <ktexteditor/popupmenuinterface.h>
00028
#include <ktexteditor/markinterface.h>
00029
#include <ktexteditor/viewcursorinterface.h>
00030
#include <ktexteditor/codecompletioninterface.h>
00031
#include <ktexteditor/dynwordwrapinterface.h>
00032
00033
class QXEmbed;
00034
00035
namespace KNEdit
00036 {
00037
00038
class Document;
00039
00043 class View :
public KTextEditor::
View, KTextEditor::ViewCursorInterface
00044 {
00045 Q_OBJECT
00046
00047
public:
00048
View (
Document *,
QWidget *,
const char * = 0 );
00049
virtual ~View ();
00050
00051
void embedNEdit( WId
id );
00052
00053
00054
KTextEditor::Document *
document()
const;
00055
00056
public slots:
00058
QPoint cursorCoordinates ();
00059
00061
void cursorPosition (uint *line, uint *col);
00062
00064
void cursorPositionReal (uint *line, uint *col);
00065
00067
bool setCursorPosition (uint line, uint col);
00068
00070
bool setCursorPositionReal (uint line, uint col);
00071
00072 uint
cursorLine ();
00073 uint
cursorColumn ();
00074 uint
cursorColumnReal ();
00075
00076 signals:
00077
void cursorPositionChanged ();
00078
00079
private:
00080 Document *
m_doc;
00081 QXEmbed *
m_embed;
00082 };
00083
00084 };
00085
00086
#endif
This file is part of the documentation for KDevelop Version 3.0.4.