Merge branch 'central-widget'
[krunner.git] / raptorsliderviewgroup.h
blob9df39abda26c81c642db75b193d0de82bc0f7f68
1 //GPL2 cod : siraj@kde.org
3 #ifndef RAPTOR_SLIDER_VIEW_GROUP_H
4 #define RAPTOR_SLIDER_VIEW_GROUP_H
6 #include <QGraphicsItemGroup>
7 #include <QGraphicsItem>
8 #include <QGraphicsScene>
9 #include <QHash>
10 #include "raptorslide.h"
11 #include "raptorclaw.h"
12 #include "raptorscrollhandler.h"
15 class RaptorSliderViewGroup : public QObject,
16 public QGraphicsItemGroup
18 Q_OBJECT
20 public:
21 typedef QHash <int,RaptorSlide*> stackHash;
23 RaptorSliderViewGroup(QGraphicsScene *scene);
24 virtual ~RaptorSliderViewGroup();
25 QGraphicsScene* getDefaultScene() { return canvas; }
26 bool addItem(RaptorClaw *);
27 void clearItems();
28 QGraphicsItem* find(const QString&);
29 void setMode(RaptorSlide::Direction);
30 int slideCount();
31 void view(int id);
32 void move(float x , float y);
33 float height();
35 public slots:
36 void swapNext();
37 void swapPrevious();
38 //TODO
39 //swap by Name :
40 //Swap by Integer ID
42 //protected:
43 // void addScrolls();
45 private:
46 class Private;
47 Private *d;
48 QGraphicsScene *canvas;
51 #endif