![]() |
KDWinUtils
Helper library for MFC to Qt migration
|
The KProgressCtrl class is used to replace DDX_Control edit data exchange. More...
#include <kprogressctrl.h>
Public Member Functions | |
| int | GetPos () |
| Retrieves the current position of the progress bar. | |
| void | GetRange (int &nLower, int &nUpper) |
| Gets the current lower and upper limits, or range, of the progress bar control. | |
| int | GetStep () const |
| Retrieves the step increment for the progress bar of the current progress bar control. | |
| void | OffsetPos (int nPos) |
| Advances the progress bar control's current position by the increment specified by nPos and redraws the bar to reflect the new position. | |
| void | SetBarColor (const QColor &clr) |
| Sets the color of the progress indicator bar in the current progress bar control. | |
| void | SetBkColor (const QColor &clr) |
| Sets the background color of the progress bar control. | |
| void | SetPos (int nPos) |
| Sets the progress bar control's current position as specified by nPos and redraws the bar to reflect the new position. | |
| void | SetRange (short nLower, short nUpper) |
| Sets the upper and lower limits of the progress bar control's range and redraws the bar to reflect the new ranges. | |
| void | SetStep (int nStep) |
| Specifies the step increment for a progress bar control. | |
| void | setWidget (QProgressBar *progressBar) |
| int | StepIt () |
| Advances the current position for a progress bar control by the step increment and redraws the bar to reflect the new position. | |
| QProgressBar * | widget () const |
The KProgressCtrl class is used to replace DDX_Control edit data exchange.
This class is the equivalent of CProgressCtrl in MFC. It is a proxy for the widget, and can be used to set and get the value.
| int KProgressCtrl::GetPos | ( | ) |
Retrieves the current position of the progress bar.
| void KProgressCtrl::GetRange | ( | int & | nLower, |
| int & | nUpper ) |
Gets the current lower and upper limits, or range, of the progress bar control.
| int KProgressCtrl::GetStep | ( | ) | const |
Retrieves the step increment for the progress bar of the current progress bar control.
| void KProgressCtrl::OffsetPos | ( | int | nPos | ) |
Advances the progress bar control's current position by the increment specified by nPos and redraws the bar to reflect the new position.
| void KProgressCtrl::SetBarColor | ( | const QColor & | clr | ) |
Sets the color of the progress indicator bar in the current progress bar control.
| void KProgressCtrl::SetBkColor | ( | const QColor & | clr | ) |
Sets the background color of the progress bar control.
| void KProgressCtrl::SetPos | ( | int | nPos | ) |
Sets the progress bar control's current position as specified by nPos and redraws the bar to reflect the new position.
| void KProgressCtrl::SetRange | ( | short | nLower, |
| short | nUpper ) |
Sets the upper and lower limits of the progress bar control's range and redraws the bar to reflect the new ranges.
| void KProgressCtrl::SetStep | ( | int | nStep | ) |
Specifies the step increment for a progress bar control.
| void KProgressCtrl::setWidget | ( | QProgressBar * | progressBar | ) |
Sets the widget the class is proxying.
| int KProgressCtrl::StepIt | ( | ) |
Advances the current position for a progress bar control by the step increment and redraws the bar to reflect the new position.
| QProgressBar * KProgressCtrl::widget | ( | ) | const |
Returns the underlying widget the class is proxying.