KDevelop API Documentation

editors/nedit/view.h

Go to the documentation of this file.
00001 /* This file is part of the KDE libraries 00002 Copyright (C) 2001 Harald Fernengel <harry@kdevelop.org> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License version 2 as published by the Free Software Foundation. 00007 00008 This library is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 Library General Public License for more details. 00012 00013 You should have received a copy of the GNU Library General Public License 00014 along with this library; see the file COPYING.LIB. If not, write to 00015 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00016 Boston, MA 02111-1307, USA. 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 // KTextEditor stuff 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
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Oct 6 17:38:55 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003