00001 #ifndef TEXTBLOCK_H 00002 #define TEXTBLOCK_H 00003 00004 #include "textblockattributes.h" 00005 #include <QXmlStreamWriter> 00006 #include "scitem.h" 00007 00018 class SCDATAMODELSHARED_EXPORT TextBlock : public SCItem 00019 { 00020 Q_OBJECT 00021 00022 public: 00023 TextBlock(); 00024 virtual IAttributeContainer * getAttributes(); // reimplemented from base SCItem 00025 TextBlockAttributes attributes; 00026 QString getText(); 00027 void setText(QString); 00028 void writeSCVXML(QXmlStreamWriter & sw); 00029 00030 signals: 00031 void textChanged(); 00032 00033 private: 00034 00035 QString _text; 00036 }; 00037 00038 00039 Q_DECLARE_METATYPE (TextBlock*) 00040 00041 00042 #endif // TEXTBLOCK_H