Pencil2D  ff90c0872e88be3bf81c548cd60f01983012ec49
Pencil2D is an animation software for both bitmap and vector graphics. It is free, multi-platform, and open source.
 All Classes Functions
Public Types | Signals | Public Member Functions | Private Member Functions | Private Attributes | List of all members
SpinSlider Class Reference
+ Inheritance diagram for SpinSlider:

Public Types

enum  GROWTH_TYPE { LINEAR, LOG, EXPONENT }
 
enum  VALUE_TYPE { INTEGER, FLOAT }
 

Signals

void valueChanged (qreal)
 

Public Member Functions

 SpinSlider (QString text, GROWTH_TYPE, VALUE_TYPE, qreal min, qreal max, QWidget *parent=0)
 
void setValue (qreal)
 
void setPixelPos (qreal min, qreal max, int val, int space, bool upsideDown)
 
void setExponent (const qreal)
 

Private Member Functions

void onSliderValueChanged (int)
 
void changeValue (qreal)
 

Private Attributes

QSlider * mSlider = nullptr
 
qreal mValue = 50.0
 
qreal mMin = 0.1
 
qreal mMax = 100.0
 
qreal mExp = 2.0
 
GROWTH_TYPE mGrowthType = LINEAR
 
VALUE_TYPE mValueType = INTEGER
 

Detailed Description

Definition at line 29 of file spinslider.h.


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