equal
deleted
inserted
replaced
23 |
23 |
24 class HSDOMAINMODEL_EXPORT HsSceneData |
24 class HSDOMAINMODEL_EXPORT HsSceneData |
25 { |
25 { |
26 public: |
26 public: |
27 HsSceneData() |
27 HsSceneData() |
28 : id(-1), defaultPageId(-1), maximumPageCount(-1) |
28 : id(-1), defaultPageId(-1), maximumPageCount(-1), |
|
29 maximumWidgetHeight(-1), maximumWidgetWidth(-1), |
|
30 minimumWidgetHeight(-1), minimumWidgetWidth(-1) |
29 {} |
31 {} |
30 |
32 |
31 int id; |
33 int id; |
32 QString portraitWallpaper; |
34 QString portraitWallpaper; |
33 QString landscapeWallpaper; |
35 QString landscapeWallpaper; |
34 int defaultPageId; |
36 int defaultPageId; |
35 int maximumPageCount; |
37 int maximumPageCount; |
|
38 int maximumWidgetHeight; |
|
39 int maximumWidgetWidth; |
|
40 int minimumWidgetHeight; |
|
41 int minimumWidgetWidth; |
36 }; |
42 }; |
37 |
43 |
38 class HSDOMAINMODEL_EXPORT HsPageData |
44 class HSDOMAINMODEL_EXPORT HsPageData |
39 { |
45 { |
40 public: |
46 public: |
61 |
67 |
62 class HSDOMAINMODEL_EXPORT HsWidgetPresentationData |
68 class HSDOMAINMODEL_EXPORT HsWidgetPresentationData |
63 { |
69 { |
64 public: |
70 public: |
65 HsWidgetPresentationData() |
71 HsWidgetPresentationData() |
66 : x(0), y(0), width(0), height(0), zValue(0), |
72 : x(0), y(0), zValue(0), |
67 widgetId(-1) |
73 widgetId(-1) |
68 {} |
74 {} |
69 |
|
70 QRectF geometry() const |
|
71 { |
|
72 return QRectF(x, y, width, height); |
|
73 } |
|
74 |
|
75 void setGeometry(const QRectF &geometry) |
|
76 { |
|
77 x = geometry.x(); |
|
78 y = geometry.y(); |
|
79 width = geometry.width(); |
|
80 height = geometry.height(); |
|
81 } |
|
82 |
75 |
83 void setPos(const QPointF &pos) |
76 void setPos(const QPointF &pos) |
84 { |
77 { |
85 x = pos.x(); |
78 x = pos.x(); |
86 y = pos.y(); |
79 y = pos.y(); |
87 } |
80 } |
88 |
81 |
89 void setSize(const QSizeF &size) |
|
90 { |
|
91 width = size.width(); |
|
92 height = size.height(); |
|
93 } |
|
94 |
|
95 QString key; |
82 QString key; |
96 qreal x; |
83 qreal x; |
97 qreal y; |
84 qreal y; |
98 qreal width; |
|
99 qreal height; |
|
100 qreal zValue; |
85 qreal zValue; |
101 int widgetId; |
86 int widgetId; |
102 }; |
87 }; |
103 |
88 |
104 #endif // HSDOMAINMODELDATASTRUCTURES_H |
89 #endif // HSDOMAINMODELDATASTRUCTURES_H |