Logo Search packages:      
Sourcecode: rosegarden version File versions  Download package

Rosegarden::RosegardenScrollView Class Reference

#include <RosegardenScrollView.h>

Inherited by Rosegarden::CompositionView.

List of all members.

Detailed Description

A QScrollView with more elaborate auto-scrolling capabilities and the ability to have a "fixed" (non-scrolling) widget at its bottom, just above the bottom scrollbar.

Definition at line 44 of file RosegardenScrollView.h.

Public Types

enum  { NoFollow = 0x0, FollowHorizontal = 0x1, FollowVertical = 0x2 }

Public Slots

void doAutoScroll ()
bool isAutoScrolling () const
void slotScrollHoriz (int hpos)
void slotScrollHorizSmallSteps (int hpos)
void slotScrollVertSmallSteps (int vpos)
void slotScrollVertToTop (int vpos)
void slotSetScrollPos (const QPoint &)
void startAutoScroll (int directionConstraint)
void startAutoScroll ()
void stopAutoScroll ()


void bottomWidgetHeightChanged (int)
void zoomIn ()
void zoomOut ()

Public Member Functions

int getDeltaScroll ()
bool isTimeForSmoothScroll ()
 RosegardenScrollView (QWidget *parent=0, const char *name=0, WFlags f=0)
void setBottomFixedWidget (QWidget *)
void setScrollDirectionConstraint (int d)
void setSmoothScroll (bool s)
 Map a point with the inverse world matrix.
void updateBottomWidgetGeometry ()
virtual void wheelEvent (QWheelEvent *)

Protected Types

enum  ScrollDirection {
  None, Top, Bottom, Left,

Protected Member Functions

virtual QScrollBar * getMainHorizontalScrollBar ()
virtual void resizeEvent (QResizeEvent *)
virtual void setHBarGeometry (QScrollBar &hbar, int x, int y, int w, int h)

Protected Attributes

int m_autoScrollAccel
bool m_autoScrolling
int m_autoScrollTime
QTimer m_autoScrollTimer
int m_autoScrollXMargin
int m_autoScrollYMargin
QWidget * m_bottomWidget
int m_currentBottomWidgetHeight
ScrollDirection m_currentScrollDirection
float m_minDeltaScroll
QPoint m_previousP
QTime m_scrollAccelerationTimer
int m_scrollDirectionConstraint
QTime m_scrollTimer
bool m_smoothScroll
int m_smoothScrollTimeInterval

Static Protected Attributes

static const int AutoscrollMargin = 16
static const double DefaultMinDeltaScroll = 1.2
static const int DefaultSmoothScrollTimeInterval = 10
static const int InitialScrollAccel = 5
static const int InitialScrollTime = 30
static const int MaxScrollDelta = 100
static const double ScrollAccelValue = 1.04

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

Generated by  Doxygen 1.6.0   Back to index