12 #ifndef CXLAYOUTDATA_H_
13 #define CXLAYOUTDATA_H_
15 #include "cxResourceVisualizationExport.h"
44 pos(r, c), span(rSpan, cSpan) {}
54 cxResourceVisualization_EXPORT LayoutRegion
merge(LayoutRegion a, LayoutRegion b);
68 void addXml(QDomNode node)
const;
82 static const int MaxGridSize = 20;
85 static LayoutData createHeader(QString uid, QString name);
86 static LayoutData create(QString uid, QString name,
int rows,
int cols);
88 QString
getUid()
const {
return mUid; }
92 void setName(
const QString& name) { mName = name; }
93 void resetUid(
const QString& uid);
94 void setView(
int group, PLANE_TYPE type,
LayoutRegion region);
102 bool isEmpty()
const {
return mSize.col == 0 || mSize.row == 0; }
104 void split(iterator iter);
107 void resize(
int rows,
int cols);
110 void addXml(QDomNode node)
const;
111 void parseXml(QDomNode node);
117 std::vector<LayoutViewData> mView;
118 bool mOffScreenRendering;