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

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
 

Detailed Description

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 .

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

Member Function Documentation

◆ ClearTics()

void KSliderCtrl::ClearTics ( bool bRedraw = false)

Removes the current tick marks from a slider control.

◆ GetLineSize()

int KSliderCtrl::GetLineSize ( ) const

Retrieves the size of the line for a slider control.

◆ GetPageSize()

int KSliderCtrl::GetPageSize ( ) const

Retrieves the size of the page for a slider control.

◆ GetPos()

int KSliderCtrl::GetPos ( ) const

Retrieves the current position of the slider.

◆ GetRangeMax()

int KSliderCtrl::GetRangeMax ( ) const

Retrieves the maximum position for the slider in a slider control.

◆ GetRangeMin()

int KSliderCtrl::GetRangeMin ( ) const

Retrieves the minimum position for the slider in a slider control.

◆ SetLineSize()

int KSliderCtrl::SetLineSize ( int nSize)

Sets the size of the line for a slider control.

◆ SetPageSize()

int KSliderCtrl::SetPageSize ( int nSize)

Sets the size of the page for a slider control.

◆ SetPos()

void KSliderCtrl::SetPos ( int nPos)

Sets the current position of the slider.

◆ SetRange()

void KSliderCtrl::SetRange ( int nMin,
int nMax,
bool bRedraw = false )

Sets the minimum and maximum positions for a slider.

◆ SetRangeMax()

void KSliderCtrl::SetRangeMax ( int nMax,
bool bRedraw = false )

Sets the maximum range for the slider in a slider control.

◆ SetRangeMin()

void KSliderCtrl::SetRangeMin ( int nMin,
bool bRedraw = false )

Sets the minimum range for the slider in a slider control.

◆ SetTicFreq()

void KSliderCtrl::SetTicFreq ( int nFreq)

Sets the frequency with which tick marks are displayed in a slider.

◆ setWidget()

void KSliderCtrl::setWidget ( QSlider * slider)

Sets the widget the class is proxying.

◆ widget()

QSlider * KSliderCtrl::widget ( ) const

Returns the underlying widget the class is proxying.


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