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

#include <scrollbar.h>

Inheritance diagram for ScrollBar:

Public Slots

virtual void setBase (double min, double max)
virtual void moveSlider (double min, double max)


void sliderMoved (Qt::Orientation, double, double)
void valueChanged (Qt::Orientation, double, double)

Public Member Functions

 ScrollBar (QWidget *parent=NULL)
 ScrollBar (Qt::Orientation, QWidget *parent=NULL)
 ScrollBar (double minBase, double maxBase, Qt::Orientation o, QWidget *parent=NULL)
void setInverted (bool)
bool isInverted () const
double minBaseValue () const
double maxBaseValue () const
double minSliderValue () const
double maxSliderValue () const
int extent () const

Protected Member Functions

void sliderRange (int value, double &min, double &max) const
int mapToTick (double) const
double mapFromTick (int) const

Private Slots

void catchValueChanged (int value)
void catchSliderMoved (int value)

Private Member Functions

void init ()

Private Attributes

bool d_inverted
double d_minBase
double d_maxBase
int d_baseTicks

Detailed Description

Definition at line 6 of file scrollbar.h.

Constructor & Destructor Documentation

ScrollBar::ScrollBar(QWidget * parent = NULL)

Definition at line 5 of file scrollbar.cpp.

ScrollBar::ScrollBar(Qt::Orientation o,
QWidget * parent = NULL 

Definition at line 11 of file scrollbar.cpp.

ScrollBar::ScrollBar(double minBase,
double maxBase,
Qt::Orientation o,
QWidget * parent = NULL 

Definition at line 17 of file scrollbar.cpp.

Member Function Documentation

void ScrollBar::catchSliderMoved(int value)

Definition at line 157 of file scrollbar.cpp.

void ScrollBar::catchValueChanged(int value)

Definition at line 149 of file scrollbar.cpp.

int ScrollBar::extent()const

Definition at line 165 of file scrollbar.cpp.

void ScrollBar::init()

Definition at line 27 of file scrollbar.cpp.

bool ScrollBar::isInverted()const

Definition at line 49 of file scrollbar.cpp.

double ScrollBar::mapFromTick(int tick)const

Definition at line 143 of file scrollbar.cpp.

int ScrollBar::mapToTick(double v)const

Definition at line 136 of file scrollbar.cpp.

double ScrollBar::maxBaseValue()const

Definition at line 100 of file scrollbar.cpp.

double ScrollBar::maxSliderValue()const

Definition at line 127 of file scrollbar.cpp.

double ScrollBar::minBaseValue()const

Definition at line 94 of file scrollbar.cpp.

double ScrollBar::minSliderValue()const

Definition at line 118 of file scrollbar.cpp.

void ScrollBar::moveSlider(double min,
double max 

Definition at line 66 of file scrollbar.cpp.

void ScrollBar::setBase(double min,
double max 

Definition at line 55 of file scrollbar.cpp.

void ScrollBar::setInverted(bool inverted)

Definition at line 40 of file scrollbar.cpp.

void ScrollBar::sliderMoved(Qt::Orientation _t1,
double _t2,
double _t3 

Definition at line 155 of file moc_scrollbar.cpp.

void ScrollBar::sliderRange(int value,
double & min,
double & max 

Definition at line 106 of file scrollbar.cpp.

void ScrollBar::valueChanged(Qt::Orientation _t1,
double _t2,
double _t3 

Definition at line 162 of file moc_scrollbar.cpp.

Member Data Documentation

int ScrollBar::d_baseTicks

Definition at line 50 of file scrollbar.h.

bool ScrollBar::d_inverted

Definition at line 47 of file scrollbar.h.

double ScrollBar::d_maxBase

Definition at line 49 of file scrollbar.h.

double ScrollBar::d_minBase

Definition at line 48 of file scrollbar.h.

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