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/packagebase.cpp | |
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/packagebase.cpp')
-rw-r--r-- | lyt/packagebase.cpp | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/lyt/packagebase.cpp b/lyt/packagebase.cpp index e186435..5855688 100644 --- a/lyt/packagebase.cpp +++ b/lyt/packagebase.cpp @@ -17,9 +17,31 @@ #include "packagebase.h" -LYTPackageBase::LYTPackageBase() { +LYTPackageBase::LYTPackageBase(QObject *parent) : QObject(parent) { // do nothing } LYTPackageBase::~LYTPackageBase() { } + + + +QString LYTPackageBase::defaultPathForItemType(ItemType type, bool withArc) { + switch (type) { + case Layout: + return withArc ? "arc/blyt" : "blyt"; + case Animation: + return withArc ? "arc/anim" : "anim"; + case Texture: + return withArc ? "arc/timg" : "timg"; + case Font: + return withArc ? "arc/font" : "font"; + default: + return QString(); + } +} + + +QByteArray LYTPackageBase::createSkeletonItem(ItemType type) { + return QByteArray(); +} |