interfaces
popupmenuinterface.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 __ktexteditor_popupmenuinterface_h__
00020 #define __ktexteditor_popupmenuinterface_h__
00021
00022 #include <kdelibs_export.h>
00023
00024 class QCString;
00025 class QPopupMenu;
00026
00027 namespace KTextEditor
00028 {
00029
00033 class KTEXTEDITOR_EXPORT PopupMenuInterface
00034 {
00035 friend class PrivatePopupMenuInterface;
00036
00037 public:
00038 PopupMenuInterface ();
00039 virtual ~PopupMenuInterface ();
00040
00041 unsigned int popupMenuInterfaceNumber () const;
00042
00043 protected:
00044 void setPopupMenuInterfaceDCOPSuffix (const QCString &suffix);
00045
00046
00047
00048
00049 public:
00054 virtual void installPopup (QPopupMenu *rmb_Menu) = 0;
00055
00056 private:
00057 class PrivatePopupMenuInterface *d;
00058 static unsigned int globalPopupMenuInterfaceNumber;
00059 unsigned int myPopupMenuInterfaceNumber;
00060 };
00061
00062 KTEXTEDITOR_EXPORT PopupMenuInterface *popupMenuInterface (class View *view);
00063
00064 }
00065
00066 #endif