MAK Data Logger API Documentation for DIS
List of all members | Public Member Functions | Protected Attributes
MAKLogger::DtSliderBar Class Reference

Used to manage a bar between a start and an end of a slider bar. More...

+ Inheritance diagram for MAKLogger::DtSliderBar:
+ Collaboration diagram for MAKLogger::DtSliderBar:

Public Member Functions

 DtSliderBar ()
 CTOR.
 DtSliderBar (float start, float end)
 CTOR define the start and end positions as percentages.
virtual ~DtSliderBar ()
 DTOR.
float start () const
 Get the start position.
float end () const
 Get the end position.
float width () const
 Get the distance between the start and end positions.
const QString & name () const
 Get the name of the slider bar.
void setName (const QString &aName)
 Set the name of the slider bar.
const QPixmap * image () const
 Get the background image of the slider bar.
void setImage (QPixmap *)
 Set the background image of the slider bar.
QColor color () const
 Get the background color of the slider bar.
void setColor (QColor c)
 Set the background color of the slider bar.
bool selected () const
void setSelected (bool value)
bool pressed () const
void setPressed (bool value)
void setFixedSize (bool)
bool fixedSize () const
void setStartEnd (float start, float end)
QRectF bounds (QRectF viewport) const
 Return the bounds between end boxes.
QRectF boundsWithBoxes (QRectF viewport) const
 Return the bounds containing end boxes.
DtSliderBoxstartBox ()
 Get the start box.
const DtSliderBoxstartBox () const
 Get the start box.
DtSliderBoxendBox ()
 Get the end box.
const DtSliderBoxendBox () const
 Get the end box.

Protected Attributes

QColor myColor
float myStartPosition
float myEndPosition
DtSliderBoxmyStartBox
DtSliderBoxmyEndBox
QString myName
QPixmap * myImage
bool mySelected
bool myPressed
bool myFixedSize

Detailed Description

Used to manage a bar between a start and an end of a slider bar.

Constructor & Destructor Documentation

MAKLogger::DtSliderBar::DtSliderBar ( )

CTOR.

MAKLogger::DtSliderBar::DtSliderBar ( float  start,
float  end 
)

CTOR define the start and end positions as percentages.

virtual MAKLogger::DtSliderBar::~DtSliderBar ( )
virtual

DTOR.

Member Function Documentation

QRectF MAKLogger::DtSliderBar::bounds ( QRectF  viewport) const

Return the bounds between end boxes.

QRectF MAKLogger::DtSliderBar::boundsWithBoxes ( QRectF  viewport) const

Return the bounds containing end boxes.

QColor MAKLogger::DtSliderBar::color ( ) const

Get the background color of the slider bar.

float MAKLogger::DtSliderBar::end ( ) const

Get the end position.

DtSliderBox* MAKLogger::DtSliderBar::endBox ( )

Get the end box.

const DtSliderBox* MAKLogger::DtSliderBar::endBox ( ) const

Get the end box.

bool MAKLogger::DtSliderBar::fixedSize ( ) const
const QPixmap* MAKLogger::DtSliderBar::image ( ) const

Get the background image of the slider bar.

const QString& MAKLogger::DtSliderBar::name ( ) const

Get the name of the slider bar.

bool MAKLogger::DtSliderBar::pressed ( ) const
bool MAKLogger::DtSliderBar::selected ( ) const
void MAKLogger::DtSliderBar::setColor ( QColor  c)

Set the background color of the slider bar.

void MAKLogger::DtSliderBar::setFixedSize ( bool  )
void MAKLogger::DtSliderBar::setImage ( QPixmap *  )

Set the background image of the slider bar.

void MAKLogger::DtSliderBar::setName ( const QString &  aName)

Set the name of the slider bar.

void MAKLogger::DtSliderBar::setPressed ( bool  value)
void MAKLogger::DtSliderBar::setSelected ( bool  value)
void MAKLogger::DtSliderBar::setStartEnd ( float  start,
float  end 
)
float MAKLogger::DtSliderBar::start ( ) const

Get the start position.

DtSliderBox* MAKLogger::DtSliderBar::startBox ( )

Get the start box.

const DtSliderBox* MAKLogger::DtSliderBar::startBox ( ) const

Get the start box.

float MAKLogger::DtSliderBar::width ( ) const

Get the distance between the start and end positions.

Member Data Documentation

QColor MAKLogger::DtSliderBar::myColor
protected
DtSliderBox* MAKLogger::DtSliderBar::myEndBox
protected
float MAKLogger::DtSliderBar::myEndPosition
protected
bool MAKLogger::DtSliderBar::myFixedSize
protected
QPixmap* MAKLogger::DtSliderBar::myImage
protected
QString MAKLogger::DtSliderBar::myName
protected
bool MAKLogger::DtSliderBar::myPressed
protected
bool MAKLogger::DtSliderBar::mySelected
protected
DtSliderBox* MAKLogger::DtSliderBar::myStartBox
protected
float MAKLogger::DtSliderBar::myStartPosition
protected

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

Document ID: Generated on Sun Dec 15 18:04:30 EST 2013 from SVN revision 134418
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)