src/hbwidgets/editors/hbselectioncontrol_p.h
changeset 1 f7ac710697a9
parent 0 16d8024aca5e
child 5 627c4a0fd0e7
--- a/src/hbwidgets/editors/hbselectioncontrol_p.h	Mon Apr 19 14:02:13 2010 +0300
+++ b/src/hbwidgets/editors/hbselectioncontrol_p.h	Mon May 03 12:48:33 2010 +0300
@@ -37,13 +37,13 @@
 #ifndef HBSELECTIONCONTROL_P_H
 #define HBSELECTIONCONTROL_P_H
 
-#include "hbpopup.h"
+#include "hbwidget.h"
 
 class HbSelectionControlPrivate;
 class HbAbstractEdit;
 QT_FORWARD_DECLARE_CLASS(QGraphicsSceneMouseEvent)
 
-class HbSelectionControl : public HbPopup
+class HbSelectionControl : public HbWidget
 {
 
     Q_OBJECT
@@ -56,28 +56,29 @@
         SelectionEndHandle
     };
 
-    explicit HbSelectionControl(HbAbstractEdit *edit);
-
+    static HbSelectionControl* attachEditor(HbAbstractEdit *edit);
+    void detachEditor();
     void hideHandles();
     void showHandles();
+    bool event(QEvent *event);
 
 public slots:
-    void panStarted();
-    void panFinished();
+    void scrollStarted();
+    void scrollFinished();
     void updatePrimitives();
 
-protected:    
+protected:
     
-    void mousePressEvent (QGraphicsSceneMouseEvent *event);
-    void mouseMoveEvent (QGraphicsSceneMouseEvent *event);
-    void mouseReleaseEvent (QGraphicsSceneMouseEvent *event);    
     void timerEvent (QTimerEvent *event);
     void polish( HbStyleParameters& params );
     QVariant itemChange(GraphicsItemChange change, const QVariant &value);
+    void gestureEvent(QGestureEvent* event);
 
 private:
+    HbSelectionControl();
     Q_DECLARE_PRIVATE_D(d_ptr, HbSelectionControl)
     Q_DISABLE_COPY(HbSelectionControl)
+    Q_PRIVATE_SLOT(d_func(), void _q_aboutToChangeView())
 };
 
 #endif // HBSELECTIONCONTROL_P_H