Script
Public Slots | Public Member Functions | Public Attributes | Properties | Private Attributes | List of all members
Slider Class Reference

Simplified slider widget. More...

#include <qswidget.h>

Inheritance diagram for Slider:
Inheritance graph
[legend]
Collaboration diagram for Slider:
Collaboration graph
[legend]

Public Slots

void valueChanged (int value)
 set the value in the slider, triggering the callback
 

Public Member Functions

QString orientation () const
 
void setOrientation (const QString &o)
 
int value () const
 
void setValue (int v)
 
int minimum () const
 
void setMinimum (int m)
 
int maximum () const
 
void setMaximum (int m)
 
QString callback () const
 
void setCallback (const QString &s)
 
 Slider (SCR_ScriptEngine *engine)
 

Public Attributes

QLabel * labelWidget
 
QSlider * sliderWidget
 
QString callbackString
 

Properties

int value
 value of the slider
 
int minimum
 minimum value of the slider
 
int maximum
 maximum value of the slider
 
QString orientation
 horizontal or vertical
 
QString callback
 use this to assign the name of another function. This function will be triggered automatically when the slider value is modified
 

Private Attributes

SCR_ScriptEngine * _engine
 

Detailed Description

Simplified slider widget.

Constructor & Destructor Documentation

Slider::Slider ( SCR_ScriptEngine *  engine)

Member Function Documentation

QString Slider::callback ( ) const
inline
int Slider::maximum ( ) const
inline
int Slider::minimum ( ) const
inline
QString Slider::orientation ( ) const
void Slider::setCallback ( const QString &  s)
inline
void Slider::setMaximum ( int  m)
void Slider::setMinimum ( int  m)
void Slider::setOrientation ( const QString &  o)
void Slider::setValue ( int  v)
int Slider::value ( ) const
inline
void Slider::valueChanged ( int  value)
slot

set the value in the slider, triggering the callback

Member Data Documentation

SCR_ScriptEngine* Slider::_engine
private
QString Slider::callbackString
QLabel* Slider::labelWidget
QSlider* Slider::sliderWidget

Property Documentation

QString Slider::callback
readwrite

use this to assign the name of another function. This function will be triggered automatically when the slider value is modified

int Slider::maximum
readwrite

maximum value of the slider

int Slider::minimum
readwrite

minimum value of the slider

QString Slider::orientation
readwrite

horizontal or vertical

int Slider::value
readwrite

value of the slider


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