kde30x_markinterfaceextension.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 __KDE30X_MARKINTERFACEEXTENSION_H__
00020 #define __KDE30X_MARKINTERFACEEXTENSION_H__
00021
00022 #include <ktexteditor/markinterface.h>
00023 #include <kdeversion.h>
00024
00025 #if !(KDE_VERSION > 305)
00026
00027 #include <ktexteditor/document.h>
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049 #include <qptrlist.h>
00050 #include <qpixmap.h>
00051 #include <qstring.h>
00052
00053 class QCString;
00054
00055 namespace KTextEditor
00056 {
00057
00058
00059
00060
00061
00062
00063
00064 class MarkInterfaceExtension
00065 {
00066 friend class PrivateMarkInterfaceExtension;
00067
00068 public:
00069 MarkInterfaceExtension ();
00070 virtual ~MarkInterfaceExtension ();
00071
00072 unsigned int markInterfaceExtensionNumber () const;
00073
00074 protected:
00075 void setMarkInterfaceExtensionDCOPSuffix (const QCString &suffix);
00076
00077 public:
00078 virtual void setPixmap(MarkInterface::MarkTypes, const QPixmap &)=0;
00079 virtual void setDescription(MarkInterface::MarkTypes, const QString &)=0;
00080 virtual void setMarksUserChangable(uint markMask)=0;
00081
00082 enum MarkChangeAction {
00083 MarkAdded=0,
00084 MarkRemoved=1
00085 };
00086
00087
00088
00089 public:
00090
00091
00092
00093
00094 public:
00095 virtual void markChanged (KTextEditor::Mark mark,
00096 KTextEditor::MarkInterfaceExtension::MarkChangeAction action) = 0;
00097
00098 private:
00099 class PrivateMarkInterfaceExtension *d;
00100 static unsigned int globalMarkInterfaceExtensionNumber;
00101 unsigned int myMarkInterfaceExtensionNumber;
00102 };
00103
00104 MarkInterfaceExtension *markInterfaceExtension (Document *doc);
00105
00106 };
00107
00108
00109
00110 #endif // !(KDE_VERSION > 305)
00111
00112 #endif // __KDE30X_MARKINTERFACEEXTENSION_H__
This file is part of the documentation for KDevelop Version 3.1.2.