Changeset 561 for trunk/src/tools/uic/ui4.h
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/tools/uic/ui4.h
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information (qt-info@nokia.com) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation (qt-info@nokia.com) 5 6 ** 6 7 ** This file is part of the tools applications of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you have questions regarding the use of this file, please contact 37 ** Nokia at qt-info@nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 162 162 class DomDesignerData; 163 163 class DomSlots; 164 class DomPropertySpecifications; 165 class DomStringPropertySpecification; 164 166 165 167 /******************************************************************************* … … 1016 1018 void clearElementSlots(); 1017 1019 1020 inline DomPropertySpecifications* elementPropertyspecifications() const { return m_propertyspecifications; } 1021 DomPropertySpecifications* takeElementPropertyspecifications(); 1022 void setElementPropertyspecifications(DomPropertySpecifications* a); 1023 inline bool hasElementPropertyspecifications() const { return m_children & Propertyspecifications; } 1024 void clearElementPropertyspecifications(); 1025 1018 1026 private: 1019 1027 QString m_text; … … 1034 1042 DomProperties* m_properties; 1035 1043 DomSlots* m_slots; 1044 DomPropertySpecifications* m_propertyspecifications; 1036 1045 enum Child { 1037 1046 Class = 1, … … 1045 1054 Script = 256, 1046 1055 Properties = 512, 1047 Slots = 1024 1056 Slots = 1024, 1057 Propertyspecifications = 2048 1048 1058 }; 1049 1059 … … 3687 3697 }; 3688 3698 3699 class QDESIGNER_UILIB_EXPORT DomPropertySpecifications { 3700 public: 3701 DomPropertySpecifications(); 3702 ~DomPropertySpecifications(); 3703 3704 void read(QXmlStreamReader &reader); 3705 #ifdef QUILOADER_QDOM_READ 3706 void read(const QDomElement &node); 3707 #endif 3708 void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const; 3709 inline QString text() const { return m_text; } 3710 inline void setText(const QString &s) { m_text = s; } 3711 3712 // attribute accessors 3713 // child element accessors 3714 inline QList<DomStringPropertySpecification*> elementStringpropertyspecification() const { return m_stringpropertyspecification; } 3715 void setElementStringpropertyspecification(const QList<DomStringPropertySpecification*>& a); 3716 3717 private: 3718 QString m_text; 3719 void clear(bool clear_all = true); 3720 3721 // attribute data 3722 // child element data 3723 uint m_children; 3724 QList<DomStringPropertySpecification*> m_stringpropertyspecification; 3725 enum Child { 3726 Stringpropertyspecification = 1 3727 }; 3728 3729 DomPropertySpecifications(const DomPropertySpecifications &other); 3730 void operator = (const DomPropertySpecifications&other); 3731 }; 3732 3733 class QDESIGNER_UILIB_EXPORT DomStringPropertySpecification { 3734 public: 3735 DomStringPropertySpecification(); 3736 ~DomStringPropertySpecification(); 3737 3738 void read(QXmlStreamReader &reader); 3739 #ifdef QUILOADER_QDOM_READ 3740 void read(const QDomElement &node); 3741 #endif 3742 void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const; 3743 inline QString text() const { return m_text; } 3744 inline void setText(const QString &s) { m_text = s; } 3745 3746 // attribute accessors 3747 inline bool hasAttributeName() const { return m_has_attr_name; } 3748 inline QString attributeName() const { return m_attr_name; } 3749 inline void setAttributeName(const QString& a) { m_attr_name = a; m_has_attr_name = true; } 3750 inline void clearAttributeName() { m_has_attr_name = false; } 3751 3752 inline bool hasAttributeType() const { return m_has_attr_type; } 3753 inline QString attributeType() const { return m_attr_type; } 3754 inline void setAttributeType(const QString& a) { m_attr_type = a; m_has_attr_type = true; } 3755 inline void clearAttributeType() { m_has_attr_type = false; } 3756 3757 inline bool hasAttributeNotr() const { return m_has_attr_notr; } 3758 inline QString attributeNotr() const { return m_attr_notr; } 3759 inline void setAttributeNotr(const QString& a) { m_attr_notr = a; m_has_attr_notr = true; } 3760 inline void clearAttributeNotr() { m_has_attr_notr = false; } 3761 3762 // child element accessors 3763 private: 3764 QString m_text; 3765 void clear(bool clear_all = true); 3766 3767 // attribute data 3768 QString m_attr_name; 3769 bool m_has_attr_name; 3770 3771 QString m_attr_type; 3772 bool m_has_attr_type; 3773 3774 QString m_attr_notr; 3775 bool m_has_attr_notr; 3776 3777 // child element data 3778 uint m_children; 3779 3780 DomStringPropertySpecification(const DomStringPropertySpecification &other); 3781 void operator = (const DomStringPropertySpecification&other); 3782 }; 3783 3689 3784 3690 3785 #ifdef QFORMINTERNAL_NAMESPACE
Note:
See TracChangeset
for help on using the changeset viewer.