~ubuntu-branches/ubuntu/wily/tupi/wily-proposed

« back to all changes in this revision

Viewing changes to src/net/tupstoryboardupdatepackage.cpp

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2013-06-23 12:48:05 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20130623124805-9xq9kggclxvli7r9
Tags: 0.2+git02-1
* New upstream release [June 2013].
  + ready for "libav9" transition.
* Build-Depends:
  + libquazip-dev
* Packaging updates:
  + added ugly override for broken upstream libav detection;
    "pkg-config" is added to Build-Depends for that matter.
  + rules simplified as upstream introduced support for $(DESTDIR).
  + re-build translations after configure.
  + re-build/re-compress man page.
  + dropped all patches.
  + updated lintian-overrides, new overrides for
    "library-not-linked-against-libc" in private libs.
  + ship all icons and docs in -data package.
  + data de-duplication in -data package.
  + debian/watch to check for tags at github as well.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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>                *
 
6
 *                                                                         *
 
7
 *   Developers:                                                           *
 
8
 *   2010:                                                                 *
 
9
 *    Gustavo Gonzalez / xtingray                                          *
 
10
 *                                                                         *
 
11
 *   KTooN's versions:                                                     * 
 
12
 *                                                                         *
 
13
 *   2006:                                                                 *
 
14
 *    David Cuadrado                                                       *
 
15
 *    Jorge Cuadrado                                                       *
 
16
 *   2003:                                                                 *
 
17
 *    Fernado Roldan                                                       *
 
18
 *    Simena Dinas                                                         *
 
19
 *                                                                         *
 
20
 *   Copyright (C) 2010 Gustav Gonzalez - http://www.maefloresta.com       *
 
21
 *   License:                                                              *
 
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.                                   *
 
26
 *                                                                         *
 
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.                          *
 
31
 *                                                                         *
 
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
 ***************************************************************************/
 
35
 
 
36
#include "tupstoryboardupdatepackage.h"
 
37
 
 
38
// <project_storyboard_update version="0">
 
39
//   <storyboard>
 
40
//     <title>Storyboard title</title>
 
41
//     <author>Artist name</author>
 
42
//     <topics>#topic1 #topic2 #topicN</topics>
 
43
//     <summary>Storyboard Summary</summary>
 
44
//     <scene>
 
45
//       <title>Scene title</title>
 
46
//       <duration>Scene time</duration>
 
47
//       <description>Scene description</description>
 
48
//     </scene>
 
49
//     <scene>
 
50
//       <title>Scene title</title>
 
51
//       <duration>Scene time</duration>
 
52
//       <description>Scene description</description>
 
53
//     </scene>
 
54
//     ... 
 
55
//   </storyboard>
 
56
// </project_storyboard>
 
57
 
 
58
TupStoryboardUpdatePackage::TupStoryboardUpdatePackage(const QDomElement storyboard, int sceneIndex): QDomDocument()
 
59
{
 
60
    QDomElement root = createElement("project_storyboard_update");
 
61
    root.setAttribute("version", "0");
 
62
    appendChild(root);
 
63
 
 
64
    QDomText sceneDom = createTextNode(QString::number(sceneIndex));
 
65
    root.appendChild(createElement("sceneIndex")).appendChild(sceneDom);
 
66
    root.appendChild(storyboard);
 
67
}
 
68
 
 
69
TupStoryboardUpdatePackage::~TupStoryboardUpdatePackage()
 
70
{
 
71
}