1
/***************************************************************************
2
* Project TUPI: Magia 2D *
3
* Project Contact: info@maefloresta.com *
4
* Project Website: http://www.maefloresta.com *
5
* Project Leader: Gustav Gonzalez <info@maefloresta.com> *
9
* Gustavo Gonzalez / xtingray *
20
* Copyright (C) 2010 Gustav Gonzalez - http://www.maefloresta.com *
22
* This program is free software; you can redistribute it and/or modify *
23
* it under the terms of the GNU General Public License as published by *
24
* the Free Software Foundation; either version 3 of the License, or *
25
* (at your option) any later version. *
27
* This program is distributed in the hope that it will be useful, *
28
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
29
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
30
* GNU General Public License for more details. *
32
* You should have received a copy of the GNU General Public License *
33
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
34
***************************************************************************/
36
#include "tupstoryboardupdatepackage.h"
38
// <project_storyboard_update version="0">
40
// <title>Storyboard title</title>
41
// <author>Artist name</author>
42
// <topics>#topic1 #topic2 #topicN</topics>
43
// <summary>Storyboard Summary</summary>
45
// <title>Scene title</title>
46
// <duration>Scene time</duration>
47
// <description>Scene description</description>
50
// <title>Scene title</title>
51
// <duration>Scene time</duration>
52
// <description>Scene description</description>
56
// </project_storyboard>
58
TupStoryboardUpdatePackage::TupStoryboardUpdatePackage(const QDomElement storyboard, int sceneIndex): QDomDocument()
60
QDomElement root = createElement("project_storyboard_update");
61
root.setAttribute("version", "0");
64
QDomText sceneDom = createTextNode(QString::number(sceneIndex));
65
root.appendChild(createElement("sceneIndex")).appendChild(sceneDom);
66
root.appendChild(storyboard);
69
TupStoryboardUpdatePackage::~TupStoryboardUpdatePackage()