1 //GPL2 cod : siraj@kde.org
6 #include <QGraphicsItemGroup>
7 #include <QGraphicsItem>
8 #include <QListIterator>
10 #include "raptorclaw.h"
13 * This takes keeps a pre-defined number of elements
14 * and it there per view
17 class RaptorSlide
: public QObject
,
18 public QGraphicsItemGroup
23 //typedef QMap <int,QGraphicsItem*> ItemList;
24 typedef enum {Verticle
,Horizontal
,Grid
} Direction
;
25 typedef QList
<RaptorClaw
*> CList
;
26 typedef QListIterator
<RaptorClaw
> CListIter
;
28 RaptorSlide(QGraphicsItem
* parent
= 0);
29 virtual ~RaptorSlide();
30 bool addItem(RaptorClaw
*);
31 bool deleteItem(RaptorClaw
*);
32 RaptorClaw
* find(const QString
&);
34 void setItemLimit(int);
38 void setDirection(Direction d
);
39 Direction
direction();
41 void setName(const QString
& name
);
43 void move(float x
, float y
, float z
= 0);
60 // typedef QMap<RaptorClaw*,RaptorSlide*> GroupMap;
61 // static GroupMap& groupMap();