From 7a183cfa367db01413c001306741d06e1826d077 Mon Sep 17 00:00:00 2001 From: Treeki Date: Fri, 3 Aug 2012 05:16:52 +0200 Subject: might as well push all this. a massive amount of changes --- lyt/packagebase.cpp | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'lyt/packagebase.cpp') 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(); +} -- cgit v1.2.3