diff options
author | Treeki <treeki@gmail.com> | 2010-10-14 20:17:20 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2010-10-14 20:17:20 +0200 |
commit | ebcc95da4c26369511caa90d89c5ed06e1e4853a (patch) | |
tree | 6ed445f0204a6e6615088d135c4b29c4309077a4 /lyt/layout.h | |
parent | fdf8cfec2b795393d7ee901abaf747575067068b (diff) | |
download | LayoutStudio-ebcc95da4c26369511caa90d89c5ed06e1e4853a.tar.gz LayoutStudio-ebcc95da4c26369511caa90d89c5ed06e1e4853a.zip |
brlyt packing added, plus some changes in the existing API (mostly for const correctness). brlyt writing may still need some testing (especially for the material structs)
Diffstat (limited to '')
-rw-r--r-- | lyt/layout.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lyt/layout.h b/lyt/layout.h index 88e62dd..092be44 100644 --- a/lyt/layout.h +++ b/lyt/layout.h @@ -20,6 +20,7 @@ #include "packagebase.h" #include "materials/material.h" +#include "materials/materialcontainer.h" #include "group.h" #include "pane.h" #include "textbox.h" @@ -44,10 +45,14 @@ public: void clear(); LYTPackageBase &package() const; + QByteArray pack(); + + quint8 flags; + float width; float height; - QMap<QString, LYTMaterial *> materials; + LYTMaterialContainer materials; LYTPane *rootPane; QList<LYTGroup *> groups; @@ -72,6 +77,13 @@ protected: LYTPane *createPaneObj(LYTBinaryFileSection §ion); + QStringList generateTextureRefs() const; + QStringList generateFontRefs() const; + + void writeMat1(LYTBinaryFileSection §ion) const; + void writePane(LYTBinaryFile &file, LYTPane *pane) const; + void writeGroups(LYTBinaryFile &file) const; + friend class LYTPane; friend class LYTTextBox; friend class LYTPicture; |