Kate
kateextendedattribute.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
00020
00021 #ifndef KATEEXTENDEDATTRIBUTE_H
00022 #define KATEEXTENDEDATTRIBUTE_H
00023
00024 #include <ktexteditor/attribute.h>
00025
00026 class KateExtendedAttribute;
00027
00028 typedef QList<KTextEditor::Attribute::Ptr> KateAttributeList;
00029
00035 class KateExtendedAttribute : public KTextEditor::Attribute
00036 {
00037 public:
00038 typedef KSharedPtr<KateExtendedAttribute> Ptr;
00039
00040 explicit KateExtendedAttribute(const QString& name, int defaultStyleIndex = -1);
00041
00042 enum DefaultStyle {
00043 dsNormal,
00044 dsKeyword,
00045 dsDataType,
00046 dsDecVal,
00047 dsBaseN,
00048 dsFloat,
00049 dsChar,
00050 dsString,
00051 dsComment,
00052 dsOthers,
00053 dsAlert,
00054 dsFunction,
00055 dsRegionMarker,
00056 dsError
00057 };
00058
00059 enum InternalProperties {
00060 AttributeName = AttributeInternalProperty,
00061 AttributeDefaultStyleIndex
00062 };
00063
00064 static int indexForStyleName(const QString& name);
00065
00066 QString name() const;
00067 void setName(const QString& name);
00068
00069 bool isDefaultStyle() const;
00070 int defaultStyleIndex() const;
00071 void setDefaultStyleIndex(int index);
00072 };
00073
00074 #endif