COPASI API
4.16.103
|
#include <scrollbar.h>
Public Slots | |
virtual void | moveSlider (double min, double max) |
virtual void | setBase (double min, double max) |
Signals | |
void | sliderMoved (Qt::Orientation, double, double) |
void | valueChanged (Qt::Orientation, double, double) |
Public Member Functions | |
int | extent () const |
bool | isInverted () const |
bool | isLogScale () const |
double | maxBaseValue () const |
double | maxSliderValue () const |
double | minBaseValue () const |
double | minSliderValue () const |
ScrollBar (QWidget *parent=NULL) | |
ScrollBar (Qt::Orientation, QWidget *parent=NULL) | |
ScrollBar (double minBase, double maxBase, bool logscale, Qt::Orientation o, QWidget *parent=NULL) | |
void | setInverted (bool) |
void | setLogScale (bool l) |
Protected Member Functions | |
double | mapFromTick (int) const |
int | mapToTick (double) const |
void | sliderRange (int value, double &min, double &max) const |
Private Slots | |
void | catchSliderMoved (int value) |
void | catchValueChanged (int value) |
Private Member Functions | |
void | init () |
Private Attributes | |
int | d_baseTicks |
bool | d_inverted |
double | d_maxBase |
double | d_minBase |
bool | mLogScale |
Definition at line 28 of file scrollbar.h.
ScrollBar::ScrollBar | ( | QWidget * | parent = NULL | ) |
ScrollBar::ScrollBar | ( | Qt::Orientation | o, |
QWidget * | parent = NULL |
||
) |
ScrollBar::ScrollBar | ( | double | minBase, |
double | maxBase, | ||
bool | logscale, | ||
Qt::Orientation | o, | ||
QWidget * | parent = NULL |
||
) |
|
privateslot |
Definition at line 211 of file scrollbar.cpp.
References max, min, sliderMoved(), and sliderRange().
Referenced by init().
|
privateslot |
Definition at line 204 of file scrollbar.cpp.
References max, min, sliderRange(), and valueChanged().
Referenced by init().
int ScrollBar::extent | ( | ) | const |
Definition at line 218 of file scrollbar.cpp.
Referenced by ScrollZoomer::layoutScrollBars(), and ScrollZoomer::updateScrollBars().
|
private |
Definition at line 56 of file scrollbar.cpp.
References catchSliderMoved(), catchValueChanged(), d_baseTicks, d_inverted, d_maxBase, d_minBase, moveSlider(), sliderMoved(), and valueChanged().
Referenced by ScrollBar().
bool ScrollBar::isInverted | ( | ) | const |
Definition at line 77 of file scrollbar.cpp.
References d_inverted.
Referenced by moveSlider(), and sliderRange().
bool ScrollBar::isLogScale | ( | ) | const |
Definition at line 248 of file scrollbar.cpp.
References mLogScale.
|
protected |
Definition at line 199 of file scrollbar.cpp.
References d_baseTicks, d_maxBase, and d_minBase.
Referenced by sliderRange().
|
protected |
Definition at line 194 of file scrollbar.cpp.
References d_baseTicks, d_maxBase, and d_minBase.
Referenced by moveSlider().
double ScrollBar::maxBaseValue | ( | ) | const |
double ScrollBar::maxSliderValue | ( | ) | const |
Definition at line 186 of file scrollbar.cpp.
References max, and sliderRange().
Referenced by setBase(), and setInverted().
double ScrollBar::minBaseValue | ( | ) | const |
double ScrollBar::minSliderValue | ( | ) | const |
Definition at line 178 of file scrollbar.cpp.
References min, and sliderRange().
Referenced by setBase(), and setInverted().
|
virtualslot |
Definition at line 99 of file scrollbar.cpp.
References d_baseTicks, d_maxBase, d_minBase, isInverted(), mapToTick(), and mLogScale.
Referenced by init(), ScrollBar(), setBase(), setInverted(), and ScrollZoomer::updateScrollBars().
|
virtualslot |
Definition at line 82 of file scrollbar.cpp.
References d_maxBase, d_minBase, max, maxSliderValue(), min, minSliderValue(), mLogScale, and moveSlider().
Referenced by ScrollBar(), and ScrollZoomer::updateScrollBars().
void ScrollBar::setInverted | ( | bool | inverted | ) |
Definition at line 68 of file scrollbar.cpp.
References d_inverted, maxSliderValue(), minSliderValue(), and moveSlider().
Referenced by ScrollZoomer::updateScrollBars().
void ScrollBar::setLogScale | ( | bool | l | ) |
Definition at line 243 of file scrollbar.cpp.
References mLogScale.
Referenced by ScrollZoomer::updateScrollBars().
|
signal |
Referenced by catchSliderMoved(), and init().
|
protected |
Definition at line 161 of file scrollbar.cpp.
References d_baseTicks, isInverted(), mapFromTick(), and mLogScale.
Referenced by catchSliderMoved(), catchValueChanged(), maxSliderValue(), and minSliderValue().
|
signal |
Referenced by catchValueChanged(), and init().
|
private |
Definition at line 75 of file scrollbar.h.
Referenced by init(), mapFromTick(), mapToTick(), moveSlider(), and sliderRange().
|
private |
Definition at line 72 of file scrollbar.h.
Referenced by init(), isInverted(), and setInverted().
|
private |
Definition at line 74 of file scrollbar.h.
Referenced by init(), mapFromTick(), mapToTick(), maxBaseValue(), moveSlider(), and setBase().
|
private |
Definition at line 73 of file scrollbar.h.
Referenced by init(), mapFromTick(), mapToTick(), minBaseValue(), moveSlider(), and setBase().
|
private |
Definition at line 76 of file scrollbar.h.
Referenced by isLogScale(), maxBaseValue(), minBaseValue(), moveSlider(), setBase(), setLogScale(), and sliderRange().