RTXI  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ScrollZoomer Class Reference

#include <scrollzoomer.h>

Inheritance diagram for ScrollZoomer:
Zoomer

Public Types

enum  ScrollBarPosition { AttachedToScale, OppositeToScale }
 

Public Member Functions

 ScrollZoomer (QWidget *)
 
virtual ~ScrollZoomer ()
 
ScrollBarhorizontalScrollBar () const
 
ScrollBarverticalScrollBar () const
 
void setHScrollBarMode (Qt::ScrollBarPolicy)
 
void setVScrollBarMode (Qt::ScrollBarPolicy)
 
Qt::ScrollBarPolicy vScrollBarMode () const
 
Qt::ScrollBarPolicy hScrollBarMode () const
 
void setHScrollBarPosition (ScrollBarPosition)
 
void setVScrollBarPosition (ScrollBarPosition)
 
ScrollBarPosition hScrollBarPosition () const
 
ScrollBarPosition vScrollBarPosition () const
 
QWidget * cornerWidget () const
 
virtual void setCornerWidget (QWidget *)
 
virtual bool eventFilter (QObject *, QEvent *)
 
virtual void rescale ()
 

Protected Member Functions

virtual ScrollBarscrollBar (Qt::Orientation)
 
virtual void updateScrollBars ()
 
virtual void layoutScrollBars (const QRect &)
 

Private Slots

void scrollBarMoved (Qt::Orientation o, double min, double max)
 

Private Member Functions

bool needScrollBar (Qt::Orientation) const
 
int oppositeAxis (int) const
 

Private Attributes

QWidget * d_cornerWidget
 
ScrollDatad_hScrollData
 
ScrollDatad_vScrollData
 
bool d_inZoom
 
bool d_alignCanvasToScales [QwtPlot::axisCnt]
 

Detailed Description

Definition at line 11 of file scrollzoomer.h.

Member Enumeration Documentation

Enumerator
AttachedToScale 
OppositeToScale 

Definition at line 15 of file scrollzoomer.h.

Constructor & Destructor Documentation

ScrollZoomer::ScrollZoomer(QWidget * canvas)

Definition at line 26 of file scrollzoomer.cpp.

ScrollZoomer::~ScrollZoomer()
virtual

Definition at line 43 of file scrollzoomer.cpp.

Member Function Documentation

QWidget * ScrollZoomer::cornerWidget()const

Definition at line 204 of file scrollzoomer.cpp.

bool ScrollZoomer::eventFilter(QObject * object,
QEvent * event 
)
virtual

Definition at line 210 of file scrollzoomer.cpp.

ScrollBar * ScrollZoomer::horizontalScrollBar()const

Definition at line 117 of file scrollzoomer.cpp.

Qt::ScrollBarPolicy ScrollZoomer::hScrollBarMode()const

Definition at line 147 of file scrollzoomer.cpp.

ScrollZoomer::ScrollBarPosition ScrollZoomer::hScrollBarPosition()const

Definition at line 177 of file scrollzoomer.cpp.

void ScrollZoomer::layoutScrollBars(const QRect & rect)
protectedvirtual

Definition at line 360 of file scrollzoomer.cpp.

bool ScrollZoomer::needScrollBar(Qt::Orientation orientation)const
private

Definition at line 244 of file scrollzoomer.cpp.

int ScrollZoomer::oppositeAxis(int axis)const
private

Definition at line 432 of file scrollzoomer.cpp.

void ScrollZoomer::rescale()
virtual

Reimplemented in Zoomer.

Definition at line 51 of file scrollzoomer.cpp.

ScrollBar * ScrollZoomer::scrollBar(Qt::Orientation orientation)
protectedvirtual

Definition at line 102 of file scrollzoomer.cpp.

void ScrollZoomer::scrollBarMoved(Qt::Orientation o,
double min,
double max 
)
privateslot

Definition at line 419 of file scrollzoomer.cpp.

void ScrollZoomer::setCornerWidget(QWidget * w)
virtual

Definition at line 189 of file scrollzoomer.cpp.

void ScrollZoomer::setHScrollBarMode(Qt::ScrollBarPolicy mode)

Definition at line 129 of file scrollzoomer.cpp.

void ScrollZoomer::setHScrollBarPosition(ScrollBarPosition pos)

Definition at line 159 of file scrollzoomer.cpp.

void ScrollZoomer::setVScrollBarMode(Qt::ScrollBarPolicy mode)

Definition at line 138 of file scrollzoomer.cpp.

void ScrollZoomer::setVScrollBarPosition(ScrollBarPosition pos)

Definition at line 168 of file scrollzoomer.cpp.

void ScrollZoomer::updateScrollBars()
protectedvirtual

Definition at line 281 of file scrollzoomer.cpp.

ScrollBar * ScrollZoomer::verticalScrollBar()const

Definition at line 123 of file scrollzoomer.cpp.

Qt::ScrollBarPolicy ScrollZoomer::vScrollBarMode()const

Definition at line 153 of file scrollzoomer.cpp.

ScrollZoomer::ScrollBarPosition ScrollZoomer::vScrollBarPosition()const

Definition at line 183 of file scrollzoomer.cpp.

Member Data Documentation

bool ScrollZoomer::d_alignCanvasToScales[QwtPlot::axisCnt]
private

Definition at line 64 of file scrollzoomer.h.

QWidget* ScrollZoomer::d_cornerWidget
private

Definition at line 58 of file scrollzoomer.h.

ScrollData* ScrollZoomer::d_hScrollData
private

Definition at line 60 of file scrollzoomer.h.

bool ScrollZoomer::d_inZoom
private

Definition at line 63 of file scrollzoomer.h.

ScrollData* ScrollZoomer::d_vScrollData
private

Definition at line 61 of file scrollzoomer.h.


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