From 7a183cfa367db01413c001306741d06e1826d077 Mon Sep 17 00:00:00 2001 From: Treeki Date: Fri, 3 Aug 2012 05:16:52 +0200 Subject: might as well push all this. a massive amount of changes --- lyt/pane.h | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'lyt/pane.h') 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 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; }; -- cgit v1.2.3