Merge branch 'central-widget'
[krunner.git] / scroller.h
blob0d69e8fc3f9d479b4ab1f2abc1f7c362099a4cde
1 #ifndef SCROLLER_H
2 #define SCROLLER_H
4 #include <QGraphicsItemGroup>
5 // #include <QGraphicsItem>
6 // #include <QGraphicsScene>
7 // #include <QHash>
8 #include "raptorslide.h"
9 // #include "raptorclaw.h"
10 // #include "raptorscrollhandler.h"
12 class QRectF;
14 /**
15 * This class is meant to easily handle a complete
16 * "scroller" view, with slides, items and scrollhandlers.
19 class Scroller : public QObject,
20 public QGraphicsItem
22 Q_OBJECT
24 public:
25 Scroller(QGraphicsItem *parent);
26 ~Scroller();
28 void setMode(RaptorSlide::Direction mode);
29 void addItem(RaptorClaw *item);
30 void clearItems();
31 virtual QRectF boundingRect();
32 virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
33 // typedef QHash <int,RaptorSlide*> stackHash;
35 // RaptorSlidersliderViewGroup(QGraphicsScene *scene);
36 // virtual ~RaptorSlidersliderViewGroup();
37 // QGraphicsScene* getDefaultScene() { return canvas; }
38 // bool addItem(RaptorClaw*);
39 // bool deleteItem(QGraphicsItem*);
40 // QGraphicsItem* find(const QString&);
41 // void setMode(RaptorSlide::Direction);
42 // int slideCount();
43 // void sliderView(int id);
44 // void move(float x , float y);
45 // float height();
47 public slots:
48 // void swapNext();
49 // void swapPrevious();
50 //TODO
51 //swap by Name :
52 //Swap by Integer ID
54 //protected:
55 // void addScrolls();
57 private:
58 class Private;
59 Private *d;
62 #endif