00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef ITEMPROPERTIES_H
00023 #define ITEMPROPERTIES_H
00024
00025 #include <QString>
00026 #include <QList>
00027
00028
00029 class QVPropertyContainer;
00030
00031 #ifndef DOXYGEN_IGNORE_THIS
00032
00033
00034 class ItemProperties
00035 {
00036 public:
00037 ItemProperties(QString type);
00038 ItemProperties(QString type, QVPropertyContainer *container);
00039
00040 QString getType() const;
00041 QList<QString> getProperties() const;
00042 int propertyType(const uint i) const;
00043 bool isInput(const uint i) const;
00044 bool isOutput(const uint i) const;
00045 QString info(const uint i) const;
00046
00047 void insertProperty(int pos, QString name, int type, bool input, bool output);
00048 void deleteProperty(int pos);
00049 void deleteProperty(QString name);
00050
00051
00052 private:
00053 QString containerType;
00054
00055 QList<QString> properties;
00056 QList<int> types;
00057 QList<bool> inputs;
00058 QList<bool> outputs;
00059 QList<QString> infos;
00060 };
00061
00062 #endif
00063 #endif