From 5f6dad55d75cbe146ff7fefc899a02ccd39078ba Mon Sep 17 00:00:00 2001 From: Treeki Date: Thu, 7 Oct 2010 15:56:13 +0200 Subject: initial commit -- everything compiles except for material.cpp. the material system still needs quite a bit of work; this will come in due time --- lyt/pane.h | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 lyt/pane.h (limited to 'lyt/pane.h') 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 +#include +#include +#include + +#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 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 -- cgit v1.2.3