summaryrefslogtreecommitdiff
path: root/lyt/pane.h
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2010-10-07 15:56:13 +0200
committerTreeki <treeki@gmail.com>2010-10-07 15:56:13 +0200
commit5f6dad55d75cbe146ff7fefc899a02ccd39078ba (patch)
tree0822df14cc6d2c0329810c9ae7b4a4a638fe82b1 /lyt/pane.h
downloadLayoutStudio-5f6dad55d75cbe146ff7fefc899a02ccd39078ba.tar.gz
LayoutStudio-5f6dad55d75cbe146ff7fefc899a02ccd39078ba.zip
initial commit -- everything compiles except for material.cpp. the material system still needs quite a bit of work; this will come in due time
Diffstat (limited to 'lyt/pane.h')
-rw-r--r--lyt/pane.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/lyt/pane.h b/lyt/pane.h
new file mode 100644
index 0000000..7b2f37b
--- /dev/null
+++ b/lyt/pane.h
@@ -0,0 +1,58 @@
+#ifndef LYTPANE_H
+#define LYTPANE_H
+
+#include <QtCore/QList>
+#include <QtCore/QString>
+#include <QtCore/QDataStream>
+#include <QtCore/QDebug>
+
+#include "common.h"
+
+class LYTLayout;
+
+class LYTPane {
+public:
+ LYTPane(LYTLayout &layout);
+ virtual ~LYTPane();
+
+
+ virtual void writeToDataStream(QDataStream &out);
+ virtual void readFromDataStream(QDataStream &in);
+
+ virtual void dumpToDebug(bool showHeading=true);
+
+ LYTPane *findPaneByName(QString name, bool recursive);
+
+ LYTLayout &layout() const;
+
+ LYTPane *parent;
+ QList<LYTPane *> children;
+
+ quint8 flags;
+ quint8 origin;
+ quint8 alpha;
+
+ QString name;
+ QString userdata;
+
+ float xTrans;
+ float yTrans;
+ float zTrans;
+
+ float xRot;
+ float yRot;
+ float zRot;
+
+ float xScale;
+ float yScale;
+
+ float width;
+ float height;
+
+protected:
+ LYTLayout &m_layout;
+};
+
+
+
+#endif // LYTPANE_H