src/hbwidgets/editors/hbselectioncontrol_p.h
changeset 34 ed14f46c0e55
parent 5 627c4a0fd0e7
equal deleted inserted replaced
31:7516d6d86cf5 34:ed14f46c0e55
    48 
    48 
    49     Q_OBJECT
    49     Q_OBJECT
    50 
    50 
    51 public:
    51 public:
    52 
    52 
    53     enum HandleType {
       
    54         DummyHandle,
       
    55         SelectionStartHandle,
       
    56         SelectionEndHandle
       
    57     };
       
    58 
       
    59     static HbSelectionControl* attachEditor(HbAbstractEdit *edit);
    53     static HbSelectionControl* attachEditor(HbAbstractEdit *edit);
       
    54     static void detachEditor(HbAbstractEdit *edit);
    60     void detachEditor();
    55     void detachEditor();
    61     void detachEditorFromDestructor();
    56     void detachEditorFromDestructor();
    62     void hideHandles();
    57     void hideHandles();
    63     void showHandles();
    58     void showHandles();
    64     bool event(QEvent *event);
    59     bool event(QEvent *event);
       
    60 
       
    61     void setMagnifierEnabled(bool enable);
       
    62     bool isMagnifierEnabled() const;
       
    63 
       
    64     void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
    65 
    65 
    66 public slots:
    66 public slots:
    67     void scrollStarted();
    67     void scrollStarted();
    68     void scrollFinished();
    68     void scrollFinished();
    69     void updatePrimitives();
    69     void updatePrimitives();
    72     
    72     
    73     void timerEvent (QTimerEvent *event);
    73     void timerEvent (QTimerEvent *event);
    74     void polish( HbStyleParameters& params );
    74     void polish( HbStyleParameters& params );
    75     QVariant itemChange(GraphicsItemChange change, const QVariant &value);
    75     QVariant itemChange(GraphicsItemChange change, const QVariant &value);
    76     void gestureEvent(QGestureEvent* event);
    76     void gestureEvent(QGestureEvent* event);
       
    77     bool eventFilter(QObject * watched, QEvent *event);
       
    78 
    77 
    79 
    78 private:
    80 private:
    79     HbSelectionControl();
    81     HbSelectionControl();
    80     Q_DECLARE_PRIVATE_D(d_ptr, HbSelectionControl)
    82     Q_DECLARE_PRIVATE_D(d_ptr, HbSelectionControl)
    81     Q_DISABLE_COPY(HbSelectionControl)
    83     Q_DISABLE_COPY(HbSelectionControl)