1 /***************************************************************************
2 * Copyright (C) 2007 David Cuadrado *
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. *
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. *
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 *
18 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *
19 ***************************************************************************/
21 #ifndef YAMF_COMMANDADDOBJECT_H
22 #define YAMF_COMMANDADDOBJECT_H
24 #include <yamf/model/command/base.h>
25 #include <yamf/common/inthash.h>
26 #include <yamf/common/yamf_exports.h>
39 * @brief Esta clase provee de un comando para añadir un objeto grafico a una colección de objetos.
40 * @author David Cuadrado <krawek@gmail.com>
42 class YAMF_EXPORT AddObject
: public YAMF::Command::Base
45 AddObject(Model::Object
*object
, Common::IntHash
<Model::Object
*> *objects
);
48 QString
toXml() const;
51 virtual void execute();
52 virtual void unexecute();