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. | |
| DtSliderBox * | startBox () |
| Get the start box. | |
| const DtSliderBox * | startBox () const |
| Get the start box. | |
| DtSliderBox * | endBox () |
| Get the end box. | |
| const DtSliderBox * | endBox () const |
| Get the end box. | |
Protected Attributes | |
| QColor | myColor |
| float | myStartPosition |
| float | myEndPosition |
| DtSliderBox * | myStartBox |
| DtSliderBox * | myEndBox |
| QString | myName |
| QPixmap * | myImage |
| bool | mySelected |
| bool | myPressed |
| bool | myFixedSize |
Used to manage a bar between a start and an end of a slider bar.