KDWinUtils
Helper library for MFC to Qt migration
|
The KSliderCtrl class is used to replace DDX_Control slider data exchange. More...
#include <ksliderctrl.h>
Public Member Functions | |
void | ClearTics (bool bRedraw=false) |
Removes the current tick marks from a slider control. | |
int | GetLineSize () const |
Retrieves the size of the line for a slider control. | |
int | GetPageSize () const |
Retrieves the size of the page for a slider control. | |
int | GetPos () const |
Retrieves the current position of the slider. | |
int | GetRangeMax () const |
Retrieves the maximum position for the slider in a slider control. | |
int | GetRangeMin () const |
Retrieves the minimum position for the slider in a slider control. | |
int | SetLineSize (int nSize) |
Sets the size of the line for a slider control. | |
int | SetPageSize (int nSize) |
Sets the size of the page for a slider control. | |
void | SetPos (int nPos) |
Sets the current position of the slider. | |
void | SetRange (int nMin, int nMax, bool bRedraw=false) |
Sets the minimum and maximum positions for a slider. | |
void | SetRangeMax (int nMax, bool bRedraw=false) |
Sets the maximum range for the slider in a slider control. | |
void | SetRangeMin (int nMin, bool bRedraw=false) |
Sets the minimum range for the slider in a slider control. | |
void | SetTicFreq (int nFreq) |
Sets the frequency with which tick marks are displayed in a slider. | |
void | setWidget (QSlider *slider) |
QSlider * | widget () const |
The KSliderCtrl class is used to replace DDX_Control slider data exchange.
This class is the equivalent of CSliderCtrl in MFC. It is a proxy for the widget, and can be used to manage tabs in a tab bar. It's using a QTabBar
widget .
void KSliderCtrl::ClearTics | ( | bool | bRedraw = false | ) |
Removes the current tick marks from a slider control.
int KSliderCtrl::GetLineSize | ( | ) | const |
Retrieves the size of the line for a slider control.
int KSliderCtrl::GetPageSize | ( | ) | const |
Retrieves the size of the page for a slider control.
int KSliderCtrl::GetPos | ( | ) | const |
Retrieves the current position of the slider.
int KSliderCtrl::GetRangeMax | ( | ) | const |
Retrieves the maximum position for the slider in a slider control.
int KSliderCtrl::GetRangeMin | ( | ) | const |
Retrieves the minimum position for the slider in a slider control.
int KSliderCtrl::SetLineSize | ( | int | nSize | ) |
Sets the size of the line for a slider control.
int KSliderCtrl::SetPageSize | ( | int | nSize | ) |
Sets the size of the page for a slider control.
void KSliderCtrl::SetPos | ( | int | nPos | ) |
Sets the current position of the slider.
void KSliderCtrl::SetRange | ( | int | nMin, |
int | nMax, | ||
bool | bRedraw = false ) |
Sets the minimum and maximum positions for a slider.
void KSliderCtrl::SetRangeMax | ( | int | nMax, |
bool | bRedraw = false ) |
Sets the maximum range for the slider in a slider control.
void KSliderCtrl::SetRangeMin | ( | int | nMin, |
bool | bRedraw = false ) |
Sets the minimum range for the slider in a slider control.
void KSliderCtrl::SetTicFreq | ( | int | nFreq | ) |
Sets the frequency with which tick marks are displayed in a slider.
void KSliderCtrl::setWidget | ( | QSlider * | slider | ) |
Sets the widget the class is proxying.
QSlider * KSliderCtrl::widget | ( | ) | const |
Returns the underlying widget the class is proxying.