equal
deleted
inserted
replaced
84 ActionAddLinearLayoutStretch, |
84 ActionAddLinearLayoutStretch, |
85 ActionSetLayoutContentsMargins, |
85 ActionSetLayoutContentsMargins, |
86 ActionCreateStackedLayout, |
86 ActionCreateStackedLayout, |
87 ActionAddStackedLayoutItem, |
87 ActionAddStackedLayoutItem, |
88 ActionCreateNullLayout, |
88 ActionCreateNullLayout, |
|
89 ActionSetBackground, |
89 ActionEnd |
90 ActionEnd |
90 }; |
91 }; |
91 |
92 |
92 struct Element { |
93 struct Element { |
93 ElementType type; |
94 ElementType type; |
99 class HbXmlLoaderAbstractActions; |
100 class HbXmlLoaderAbstractActions; |
100 class HbWidget; |
101 class HbWidget; |
101 |
102 |
102 struct HB_CORE_PRIVATE_EXPORT HbXmlLengthValue |
103 struct HB_CORE_PRIVATE_EXPORT HbXmlLengthValue |
103 { |
104 { |
104 enum Type { |
105 QList<int> mValues; |
105 None = 0, |
|
106 PlainNumber, |
|
107 Pixel, |
|
108 Unit, |
|
109 Millimeter, |
|
110 Variable, |
|
111 VariableNegative, |
|
112 Expression, |
|
113 ExpressionNegative |
|
114 }; |
|
115 |
|
116 HbXmlLengthValue() : mValue(0), mHashValue(0), mString(QString()), mType(None) {}; |
|
117 HbXmlLengthValue(qreal value, Type type) : mValue(value), mHashValue(0), mString(QString()), mType(type) {}; |
|
118 |
|
119 qreal mValue; |
|
120 quint32 mHashValue; |
|
121 QString mString; |
|
122 Type mType; |
|
123 }; |
106 }; |
124 |
107 |
125 HB_CORE_PRIVATE_EXPORT QDataStream &operator<<(QDataStream &, const HbXmlLengthValue &); |
108 HB_CORE_PRIVATE_EXPORT QDataStream &operator<<(QDataStream &, const HbXmlLengthValue &); |
126 HB_CORE_PRIVATE_EXPORT QDataStream &operator>>(QDataStream &, HbXmlLengthValue &); |
109 HB_CORE_PRIVATE_EXPORT QDataStream &operator>>(QDataStream &, HbXmlLengthValue &); |
127 |
110 |
305 |
288 |
306 SL_STACKITEM, |
289 SL_STACKITEM, |
307 SL_ITEMNAME, |
290 SL_ITEMNAME, |
308 SL_INDEX, |
291 SL_INDEX, |
309 |
292 |
|
293 TYPE_BACKGROUND, |
|
294 |
310 NUMBER_OF_LEXEMS // Keep this last! |
295 NUMBER_OF_LEXEMS // Keep this last! |
311 }; |
296 }; |
312 |
297 |
313 public: |
298 public: |
314 HbXmlLoaderAbstractSyntax( HbXmlLoaderAbstractActions *actions ); |
299 HbXmlLoaderAbstractSyntax( HbXmlLoaderAbstractActions *actions ); |