diff options
author | Treeki <treeki@gmail.com> | 2010-10-07 15:56:13 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2010-10-07 15:56:13 +0200 |
commit | 5f6dad55d75cbe146ff7fefc899a02ccd39078ba (patch) | |
tree | 0822df14cc6d2c0329810c9ae7b4a4a638fe82b1 /lyt/window.h | |
download | LayoutStudio-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 '')
-rw-r--r-- | lyt/window.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/lyt/window.h b/lyt/window.h new file mode 100644 index 0000000..dbd3c1a --- /dev/null +++ b/lyt/window.h @@ -0,0 +1,63 @@ +#ifndef LYTWINDOW_H +#define LYTWINDOW_H + +#include <QtGui/QColor> +#include <QtCore/QVector> + +#include "common.h" +#include "pane.h" + + +class LYTWindow; // forward declaration + +class LYTWindowFrame { +public: + LYTWindowFrame(LYTWindow &window); + + + void writeToDataStream(QDataStream &out); + void readFromDataStream(QDataStream &in); + + void dumpToDebug(); + + quint8 type; // 0-5; controls texture flipping; must investigate this more + QString materialName; + +protected: + LYTWindow &m_window; +}; + + +class LYTWindow : public LYTPane { +public: + LYTWindow(LYTLayout &layout); + ~LYTWindow(); + + + void writeToDataStream(QDataStream &out); + void readFromDataStream(QDataStream &in); + + void dumpToDebug(bool showHeading=true); + + + float contentOverflowLeft; + float contentOverflowRight; + float contentOverflowTop; + float contentOverflowBottom; + + QColor contentVtxColours[4]; + QString contentMaterialName; + QVector<LYTTexCoords> contentTexCoords; + + QList<LYTWindowFrame *> frames; + + +protected: + void writeContentInfo(QDataStream &out); + void readContentInfo(QDataStream &in); + + friend class LYTWindowFrame; +}; + + +#endif // LYTWINDOW_H |