kalarm/lib

#include <slider.h>

Inherits TQSlider.

Public Member Functions

 Slider (TQWidget *parent=0, const char *name=0)
 
 Slider (TQt::Orientation orient, TQWidget *parent=0, const char *name=0)
 
 Slider (int minValue, int maxValue, int pageStep, int value, TQt::Orientation orient, TQWidget *parent=0, const char *name=0)
 
bool isReadOnly () const
 
virtual void setReadOnly (bool readOnly)
 

Protected Member Functions

virtual void mousePressEvent (TQMouseEvent *)
 
virtual void mouseReleaseEvent (TQMouseEvent *)
 
virtual void mouseMoveEvent (TQMouseEvent *)
 
virtual void keyPressEvent (TQKeyEvent *)
 
virtual void keyReleaseEvent (TQKeyEvent *)
 

Detailed Description

A TQSlider with read-only option.

The Slider class is a TQSlider with a read-only option.

The widget may be set as read-only. This has the same effect as disabling it, except that its appearance is unchanged.

Author
David Jarvie softw.nosp@m.are@.nosp@m.astro.nosp@m.jar..nosp@m.org.u.nosp@m.k

Definition at line 37 of file slider.h.

Constructor & Destructor Documentation

◆ Slider() [1/3]

Slider::Slider ( TQWidget *  parent = 0,
const char *  name = 0 
)
explicit

Constructor.

Parameters
parentThe parent object of this widget.
nameThe name of this widget.

Definition at line 24 of file slider.cpp.

◆ Slider() [2/3]

Slider::Slider ( TQt::Orientation  orient,
TQWidget *  parent = 0,
const char *  name = 0 
)
explicit

Constructor.

Parameters
orientThe orientation of the slider, either TQt::Horizonal or TQt::Vertical.
parentThe parent object of this widget.
nameThe name of this widget.

Definition at line 29 of file slider.cpp.

◆ Slider() [3/3]

Slider::Slider ( int  minValue,
int  maxValue,
int  pageStep,
int  value,
TQt::Orientation  orient,
TQWidget *  parent = 0,
const char *  name = 0 
)

Constructor.

Parameters
minValueThe minimum value which the slider can have.
maxValueThe maximum value which the slider can have.
pageStepThe page step increment.
valueThe initial value for the slider.
orientThe orientation of the slider, either TQt::Horizonal or TQt::Vertical.
parentThe parent object of this widget.
nameThe name of this widget.

Definition at line 34 of file slider.cpp.

Member Function Documentation

◆ isReadOnly()

bool Slider::isReadOnly ( ) const
inline

Returns true if the slider is read only.

Definition at line 66 of file slider.h.

◆ setReadOnly()

void Slider::setReadOnly ( bool  readOnly)
virtual

Sets whether the slider is read-only for the user.

Parameters
readOnlyTrue to set the widget read-only, false to set it read-write.

Definition at line 43 of file slider.cpp.


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