KDevelop API Documentation

src/editorproxy.h

Go to the documentation of this file.
00001 #ifndef __EDITORPROXY_H__ 00002 #define __EDITORPROXY_H__ 00003 00004 00005 #include <qobject.h> 00006 #include <qmemarray.h> 00007 00008 class QPopupMenu; 00009 00010 #include <kparts/part.h> 00011 #include <ktexteditor/markinterface.h> 00012 #include <kdeversion.h> 00013 #if (KDE_VERSION > 305) 00014 # include <ktexteditor/markinterfaceextension.h> 00015 #else 00016 # include "kde30x_markinterfaceextension.h" 00017 #endif 00018 00019 class EditorProxy : public QObject 00020 { 00021 Q_OBJECT 00022 00023 public: 00024 00025 static EditorProxy *getInstance(); 00026 00027 void setLineNumber(KParts::Part *part, int lineNum, int col); 00028 00029 void installPopup(KParts::Part *part, QPopupMenu *popup, bool revalidate = false); 00030 00031 private slots: 00032 00033 void popupAboutToShow(); 00034 00035 private: 00036 00037 EditorProxy(); 00038 00039 static EditorProxy *s_instance; 00040 00041 QMemArray<int> m_popupIds; 00042 00043 }; 00044 00045 00046 #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:39:13 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003