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

Rosegarden::ControlRuler Class Reference

#include <ControlRuler.h>

Inheritance diagram for Rosegarden::ControlRuler:

Rosegarden::RosegardenCanvasView Rosegarden::ControllerEventsRuler Rosegarden::PropertyControlRuler

List of all members.

Detailed Description

ControlRuler : base class for Control Rulers

Definition at line 57 of file ControlRuler.h.

Public Types

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

Public Slots

void doAutoScroll ()
void slotScrollHoriz (int hpos)
void slotScrollHorizSmallSteps (int hpos)
void slotScrollVertSmallSteps (int vpos)
void slotScrollVertToTop (int vpos)
void slotSetScrollPos (const QPoint &)
virtual void slotUpdate ()
 override RosegardenCanvasView - we don't want to change the main hscrollbar
virtual void slotUpdateElementsHPos ()
void startAutoScroll (int directionConstraint)
void startAutoScroll ()
void stopAutoScroll ()


void bottomWidgetHeightChanged (int)
void stateChange (const QString &, bool)
void zoomIn ()
void zoomOut ()

Public Member Functions

virtual void appearanceChanged (const Segment *)
int applyTool (double x, int val)
void assignEventSelection (EventSelection *)
void clear ()
 ControlRuler (Segment *, RulerScale *, EditViewBase *parentView, QCanvas *, QWidget *parent=0, const char *name=0, WFlags f=0)
virtual void endMarkerTimeChanged (const Segment *, bool)
virtual void eventAdded (const Segment *, Event *)
virtual void eventDeselected (EventSelection *, Event *)
virtual void eventRemoved (const Segment *, Event *)
virtual void eventSelected (EventSelection *, Event *)
virtual void eventSelectionDestroyed (EventSelection *)
void fitWidthToContents ()
void flipBackwards ()
void flipForwards ()
int getMaxItemValue ()
virtual QString getName ()=0
RulerScalegetRulerScale ()
QCanvasRectangle * getSelectionRectangle ()
QPoint inverseMapPoint (const QPoint &p)
 Map a point with the inverse world matrix.
bool isAutoScrolling () const
bool isTimeForSmoothScroll ()
virtual void segmentDeleted (const Segment *)
void setBottomFixedWidget (QWidget *)
void setControlTool (ControlTool *)
void setLeftFixedWidget (QWidget *)
void setMainHorizontalScrollBar (QScrollBar *s)
void setMaxItemValue (int val)
void setScrollDirectionConstraint (int d)
void setSmoothScroll (bool s)
virtual void startChanged (const Segment *, timeT)
void updateBottomWidgetGeometry ()
void updateLeftWidgetGeometry ()
virtual void wheelEvent (QWheelEvent *)

Static Public Attributes

static const int DefaultRulerHeight = 75
static const int ItemHeightRange = 64
static const int MaxItemHeight = 64 + 5
static const int MinItemHeight = 5

Protected Types

enum  ScrollDirection {
  None, Top, Bottom, Left,
typedef std::list< Event * > SelectionSet

Protected Member Functions

void clearSelectedItems ()
virtual void computeStaffOffset ()
virtual void contentsContextMenuEvent (QContextMenuEvent *)
virtual void contentsMouseMoveEvent (QMouseEvent *)
virtual void contentsMousePressEvent (QMouseEvent *)
virtual void contentsMouseReleaseEvent (QMouseEvent *)
virtual void contentsWheelEvent (QWheelEvent *)
void createMenu ()
virtual void drawBackground ()=0
virtual QScrollBar * getMainHorizontalScrollBar ()
std::pair< int, int > getZMinMax ()
long heightToValue (int height)
virtual void init ()=0
virtual void layoutItem (ControlItem *)
virtual void resizeEvent (QResizeEvent *)
virtual void setHBarGeometry (QScrollBar &hbar, int x, int y, int w, int h)
void setMenuName (QString menuName)
void updateSelection ()
QColor valueToColour (int max, int val)
int valueToHeight (long val)

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
ControlItem * m_currentItem
ScrollDirection m_currentScrollDirection
double m_currentX
bool m_hposUpdatePending
bool m_itemMoved
QPoint m_lastEventPos
QWidget * m_leftWidget
QScrollBar * m_mainHorizontalScrollBar
int m_maxItemValue
QPopupMenu * m_menu
QString m_menuName
float m_minDeltaScroll
pthread_mutex_t m_mutex
TextFloat * m_numberFloat
EditViewBase * m_parentEditView
QPoint m_previousP
QTime m_scrollAccelerationTimer
int m_scrollDirectionConstraint
QTime m_scrollTimer
Segment * m_segment
SelectionSet m_selectedEvents
QCanvasItemList m_selectedItems
bool m_selecting
QCanvasRectangle * m_selectionRect
bool m_smoothScroll
int m_smoothScrollTimeInterval
double m_staffOffset
ControlTool * m_tool

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


class ControlItem

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

Generated by  Doxygen 1.6.0   Back to index