Documentation
[yamf.git] / yamf / model / command / movescene.h
blobf93904f237e2afb54387ca0e6864018a744a9288
1 /***************************************************************************
2 * Copyright (C) 2007 Jorge Cuadrado *
3 * kuadrosxx@gmail.com *
4 * *
5 * This library is free software; you can redistribute it and/or *
6 * modify it under the terms of the GNU Lesser General Public *
7 * License as published by the Free Software Foundation; either *
8 * version 2.1 of the License, or (at your option) any later version. *
9 * *
10 * This library is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
13 * Lesser General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU Lesser General Public *
16 * License along with this library; if not, write to the Free Software *
17 * Foundation, Inc., *
18 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *
19 ***************************************************************************/
21 #ifndef YAMF_COMMANDMOVESCENE_H
22 #define YAMF_COMMANDMOVESCENE_H
24 #include <yamf/model/command/base.h>
25 #include <yamf/common/inthash.h>
26 #include <yamf/common/yamf_exports.h>
28 namespace YAMF {
30 namespace Model {
31 class Project;
32 class Scene;
35 namespace Command {
37 /**
38 * @ingroup model
39 * @~spanish
40 * @brief Esta clase provee de un comando para cambiar la posicion de una escena dentro de la colección que la contiene.
41 * @author Jorge Cuadrado <kuadrosxx@gmail.com>
43 class YAMF_EXPORT MoveScene : public YAMF::Command::Base
45 public:
46 MoveScene(int from, int to, Common::IntHash<Model::Scene *> *scenes);
47 ~MoveScene();
49 QString toXml() const;
51 protected:
52 virtual void execute();
53 virtual void unexecute();
55 private:
56 struct Private;
57 Private *const d;
64 #endif