Logo    
KDWinUtils
Helper library for MFC to Qt migration
Loading...
Searching...
No Matches
KProgressCtrl Class Reference

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
 

Detailed Description

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.

See also
https://learn.microsoft.com/en-us/cpp/mfc/reference/cprogressctrl-class

Member Function Documentation

◆ GetPos()

int KProgressCtrl::GetPos ( )

Retrieves the current position of the progress bar.

◆ GetRange()

void KProgressCtrl::GetRange ( int & nLower,
int & nUpper )

Gets the current lower and upper limits, or range, of the progress bar control.

◆ GetStep()

int KProgressCtrl::GetStep ( ) const

Retrieves the step increment for the progress bar of the current progress bar control.

◆ OffsetPos()

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.

◆ SetBarColor()

void KProgressCtrl::SetBarColor ( const QColor & clr)

Sets the color of the progress indicator bar in the current progress bar control.

◆ SetBkColor()

void KProgressCtrl::SetBkColor ( const QColor & clr)

Sets the background color of the progress bar control.

◆ SetPos()

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.

◆ SetRange()

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.

◆ SetStep()

void KProgressCtrl::SetStep ( int nStep)

Specifies the step increment for a progress bar control.

◆ setWidget()

void KProgressCtrl::setWidget ( QProgressBar * progressBar)

Sets the widget the class is proxying.

◆ StepIt()

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.

◆ widget()

QProgressBar * KProgressCtrl::widget ( ) const

Returns the underlying widget the class is proxying.


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