summaryrefslogtreecommitdiff
path: root/lyt/pane.h
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-08-03 05:16:52 +0200
committerTreeki <treeki@gmail.com>2012-08-03 05:16:52 +0200
commit7a183cfa367db01413c001306741d06e1826d077 (patch)
treee50e2e222ddf924e4d868e79ed87a0ced85d01e1 /lyt/pane.h
parentebcc95da4c26369511caa90d89c5ed06e1e4853a (diff)
downloadLayoutStudio-7a183cfa367db01413c001306741d06e1826d077.tar.gz
LayoutStudio-7a183cfa367db01413c001306741d06e1826d077.zip
might as well push all this. a massive amount of changes
Diffstat (limited to '')
-rw-r--r--lyt/pane.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/lyt/pane.h b/lyt/pane.h
index 8b80029..0d9936b 100644
--- a/lyt/pane.h
+++ b/lyt/pane.h
@@ -35,6 +35,10 @@ public:
virtual Magic magic() const;
+ enum PaneTypes {
+ PaneType = 0, PictureType, TextBoxType, WindowType, BoundingType
+ };
+
virtual void writeToDataStream(QDataStream &out) const;
virtual void readFromDataStream(QDataStream &in);
@@ -50,7 +54,18 @@ public:
QList<LYTPane *> children;
quint8 flags;
- quint8 origin;
+
+ enum OriginType {
+ Left = 0, Top = 0,
+ Center = 1,
+ Right = 2, Bottom = 2
+ };
+ OriginType horzOrigin;
+ OriginType vertOrigin;
+
+ float drawnVertexX() const;
+ float drawnVertexY() const;
+
quint8 alpha;
QString name;
@@ -70,8 +85,11 @@ public:
float width;
float height;
+ PaneTypes type() const { return m_type; }
+
protected:
LYTLayout &m_layout;
+ PaneTypes m_type;
};