diff options
author | Treeki <treeki@gmail.com> | 2012-08-03 05:16:52 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-08-03 05:16:52 +0200 |
commit | 7a183cfa367db01413c001306741d06e1826d077 (patch) | |
tree | e50e2e222ddf924e4d868e79ed87a0ced85d01e1 /lyt/pane.h | |
parent | ebcc95da4c26369511caa90d89c5ed06e1e4853a (diff) | |
download | LayoutStudio-7a183cfa367db01413c001306741d06e1826d077.tar.gz LayoutStudio-7a183cfa367db01413c001306741d06e1826d077.zip |
might as well push all this. a massive amount of changes
Diffstat (limited to 'lyt/pane.h')
-rw-r--r-- | lyt/pane.h | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -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; }; |