Home · All Namespaces · All Classes
Signals | Public Member Functions | Protected Member Functions

PagedPanning Class Reference

This class extends the MPhysics2DPanning to provide a paged effect to the viewport. More...

#include <pagedpanning.h>

List of all members.

Signals

void pageChanged (int page)
 
void pageIsPanning (bool panning)
void pageWrapped ()

Public Member Functions

 PagedPanning (QObject *parent)
virtual ~PagedPanning ()
void setPageCount (int pageCount)
int pageCount () const
void panToPage (int page)
void setPage (uint page)
void setVelocityThreshold (qreal value)
void setDragThreshold (qreal value)
void setSlideLimit (int value)
void setPageSnapSpringK (qreal value)
void setPageSnapFriction (qreal value)
void setPanThreshold (qreal value)
int activePage () const
int targetPage () const
float pageWidth () const
void setPageWrapMode (bool enable)
bool pageWrapMode () const
virtual void pointerPress (const QPointF &pos)
 REIMPLEMENTATION
virtual void pointerMove (const QPointF &pos)
virtual void pointerRelease ()

Protected Member Functions

virtual void integrateAxis (Qt::Orientation orientation, qreal &position, qreal &velocity, qreal &acceleration, qreal &pointerDifference, bool pointerPressed)
 

Detailed Description

This class extends the MPhysics2DPanning to provide a paged effect to the viewport.

The paging is only supported in the horizontal direction.


Constructor & Destructor Documentation

PagedPanning::PagedPanning ( QObject *  parent  ) 

Constructs a PagedPanning

Parameters:
parent The parent object
PagedPanning::~PagedPanning (  )  [virtual]

Destroys a PagedPanning


Member Function Documentation

int PagedPanning::activePage (  )  const
Returns:
the currently active page
void PagedPanning::integrateAxis ( Qt::Orientation  orientation,
qreal &  position,
qreal &  velocity,
qreal &  acceleration,
qreal &  pointerDifference,
bool  pointerPressed 
) [protected, virtual]

REIMPLEMENTATION

void PagedPanning::pageChanged ( int  page  )  [signal]

Indicates that the page has changed

Parameters:
page The new page
int PagedPanning::pageCount (  )  const
Returns:
the current page count
void PagedPanning::pageIsPanning ( bool  panning  )  [signal]

Indicates that the page is panning

Parameters:
panning true is page is panning. false otherwise
float PagedPanning::pageWidth (  )  const

Returns the page width

bool PagedPanning::pageWrapMode (  )  const

Queries the current page wrap mode.

void PagedPanning::pageWrapped (  )  [signal]

A signal that gets emitted when a page wrap happens.

See also:
setPageWrapMode
void PagedPanning::panToPage ( int  page  ) 

Pans the view automatically to the given item index

void PagedPanning::pointerMove ( const QPointF &  pos  )  [virtual]
void PagedPanning::pointerPress ( const QPointF &  pos  )  [virtual]

REIMPLEMENTATION

void PagedPanning::pointerRelease (  )  [virtual]
void PagedPanning::setDragThreshold ( qreal  value  ) 

Sets the snap activation drag threshold

void PagedPanning::setPage ( uint  page  ) 

Sets the specified page immediately

Parameters:
page The page to set
void PagedPanning::setPageCount ( int  pageCount  ) 

Sets the number of pages.

Parameters:
pageCount The page count
void PagedPanning::setPageSnapFriction ( qreal  value  ) 

Sets the page snapping spring damping friction factor

void PagedPanning::setPageSnapSpringK ( qreal  value  ) 

Sets the page snapping spring stiffness factor

void PagedPanning::setPageWrapMode ( bool  enable  ) 

Enables or disables the page wrapping mode.

Parameters:
enable enables or disables the mode
See also:
pageWrapped
void PagedPanning::setPanThreshold ( qreal  value  ) 

Sets the pan treshold value

void PagedPanning::setSlideLimit ( int  value  ) 

Sets the maximum number of pages to change per gesture

void PagedPanning::setVelocityThreshold ( qreal  value  ) 

Sets the snap activation velocity threshold

int PagedPanning::targetPage (  )  const

Gets the target page where the panning is going to if there is panning going on. If panning is not going on, then this returns the current page.


The documentation for this class was generated from the following files:

Copyright © 2011 Nokia Corporation Generated on Thu Jul 7 2011 22:14:50
Doxygen 1.7.1
MeeGo Touch