Added files
[yamf.git] / src / command / groupitem.h
blobc9420d8f84f1b255698e2a06699b7caab3185cec
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 ***************************************************************************/
22 #ifndef YAMF_COMMANDGROUPITEM_H
23 #define YAMF_COMMANDGROUPITEM_H
25 #include <command/base.h>
27 class QGraphicsItem;
29 namespace YAMF {
31 namespace Model {
32 class Frame;
35 namespace Command {
37 /**
38 * @author Jorge Cuadrado <kuadrosxx@gmail.com>
40 class GroupItem : public Base
42 public:
43 GroupItem(const QList<QGraphicsItem *> &items, Model::Frame *frame);
44 ~GroupItem();
46 QString toString() const;
48 protected:
49 void execute();
50 void unexecute();
52 private:
53 struct Private;
54 Private *const d;
61 #endif