Home · All Classes · Main Classes · Deprecated
Public Member Functions | Protected Member Functions | Protected Attributes

MSliderView Class Reference

Standard view is used to visualize sliders and seekbars. More...

Inherits MWidgetView.

List of all members.

Public Member Functions

 MSliderView (MSlider *controller)
virtual ~MSliderView ()

Protected Member Functions

virtual void applyStyle ()
virtual void mousePressEvent (QGraphicsSceneMouseEvent *event)
virtual void mouseReleaseEvent (QGraphicsSceneMouseEvent *event)
virtual void mouseMoveEvent (QGraphicsSceneMouseEvent *event)
virtual void cancelEvent (MCancelEvent *event)
virtual void swipeGestureEvent (QGestureEvent *event, QSwipeGesture *gesture)
virtual void panGestureEvent (QGestureEvent *event, QPanGesture *gesture)
virtual void setupModel ()
virtual void updateData (const QList< const char * > &modifications)
virtual void timerEvent (QTimerEvent *event)
virtual void hideEvent (QHideEvent *event)

Protected Attributes

MSliderViewPrivate *const d_ptr

Detailed Description

Standard view is used to visualize sliders and seekbars.

Overview

Slider view class renders slider and seekbars.

Outlook of sliders and seekbars can be changed using the styling attributes defined in MSliderStyle and MWidgetStyle.

Interactions

A slider (seekbar) can be in one of the following functional states:

Open issues

See also:
MSliderStyle MWidgetView

Constructor & Destructor Documentation

MSliderView::MSliderView ( MSlider controller  ) 

Constructs toolbar view.

Parameters:
controller Pointer to the controller.
MSliderView::~MSliderView (  )  [virtual]

Destructs the view.


Member Function Documentation

void MSliderView::applyStyle (  )  [protected, virtual]

Updates MSliderView class instance when current style is changed.

Called when MSliderStyle class instance is changed (usually) during initialization.

Reimplemented from MWidgetView.

void MSliderView::cancelEvent ( MCancelEvent event  )  [protected, virtual]

Cancel event handler.

Sets slider back to Released state.

Reimplemented from MWidgetView.

void MSliderView::hideEvent ( QHideEvent event  )  [protected, virtual]

Timer event handler.

Called when timer event occures.

void MSliderView::mouseMoveEvent ( QGraphicsSceneMouseEvent event  )  [protected, virtual]

Mouse move event handler.

If slider is in pressed State drags slider thumb. As slider handle is dragged MSlider::valueChanged(int) signal is emitted.

Reimplemented from MWidgetView.

void MSliderView::mousePressEvent ( QGraphicsSceneMouseEvent event  )  [protected, virtual]

Mouse press event handler.

Accepted when clicking onto slider groove. Ignored clicking outside of slider groove. Timer event will be generated which set slider state to Pressed

Reimplemented from MWidgetView.

void MSliderView::mouseReleaseEvent ( QGraphicsSceneMouseEvent event  )  [protected, virtual]

Mouse press event handler.

Releases slider handle. Slider falls back into Released state and MSlider::sliderReleased() signal is emitted.

Reimplemented from MWidgetView.

void MSliderView::panGestureEvent ( QGestureEvent event,
QPanGesture gesture 
) [protected, virtual]

This event handler is designed to allow widgets to react to the pan gesture event. Default implementation does nothing.

Gesture events are ignored by default. If you want to specifically accept a gesture state, you need to call QGestureEvent::accept(QGesture*) or similar.

Reimplemented from MWidgetView.

void MSliderView::setupModel (  )  [protected, virtual]

Updates MSliderView class instance when current model is changed.

Called when MSliderModel (MSeekBarModel) class instance is changed (usually) during initialization.

Reimplemented from MWidgetView.

void MSliderView::swipeGestureEvent ( QGestureEvent event,
QSwipeGesture gesture 
) [protected, virtual]

Swipe gesture event handler.

Accepts swipe events, so they are not sent to the parent widgets while the user is dragging the slider..

Reimplemented from MWidgetView.

void MSliderView::timerEvent ( QTimerEvent event  )  [protected, virtual]

Timer event handler.

Called when timer event occures.

Reimplemented from QObject.

void MSliderView::updateData ( const QList< const char * > &  modifications  )  [protected, virtual]

Updates MSliderView class instance when some component of underlying model is modified.

Parameters:
modifications List containing the names of modified model components.

Called when some field of underlying MSliderModel (MSeekBarModel) class instance is modified and view shuold reflect that modification.

Reimplemented from MWidgetView.


Member Data Documentation

MSliderViewPrivate* const MSliderView::d_ptr [protected]

Reimplemented from MWidgetView.


Copyright © 2010 Nokia Corporation
MeeGo Touch