QtPdWidgets  2.3.1
Classes | Signals | Public Member Functions | Public Attributes | Protected Member Functions | Properties | Private Slots | Private Attributes | List of all members
Pd::Dial Class Reference

#include <Dial.h>

Inheritance diagram for Pd::Dial:
Inheritance graph
[legend]
Collaboration diagram for Pd::Dial:
Collaboration graph
[legend]

Classes

struct  Impl
 
class  Value
 
class  Value
 

Signals

void setpointChanged (double)
 

Public Member Functions

 Dial (QWidget *=0)
 
 ~Dial ()
 
QString getTitle () const
 
void setTitle (const QString &)
 
void resetTitle ()
 
QString getUnit () const
 
void setUnit (const QString &)
 
void resetUnit ()
 
double getSpan () const
 
void setSpan (double)
 
void resetSpan ()
 
double getScaleMin () const
 
void setScaleMin (double)
 
void resetScaleMin ()
 
double getMajorStep () const
 
void setMajorStep (double)
 
void resetMajorStep ()
 
unsigned int getMajorStops () const
 
void setMajorStops (unsigned int)
 
void resetMajorStops ()
 
unsigned int getMinorStops () const
 
void setMinorStops (unsigned int)
 
void resetMinorStops ()
 
const QColor & getPieColor () const
 
void setPieColor (const QColor &)
 
void resetPieColor ()
 
void setNeedle (const QString &)
 
void setNeedleCenterX (int)
 
void setSetpoint (const QString &)
 
void setGradientStops (const QGradientStops &)
 

Public Attributes

Pd::Dial::Value currentValue
 
Pd::Dial::Value setpointValue
 

Protected Member Functions

QSize sizeHint () const override
 Gives a hint aboute the optimal size. More...
 
bool event (QEvent *) override
 
void paintEvent (QPaintEvent *) override
 

Properties

QString title
 
QString unit
 
double span
 
double scaleMin
 
double majorStep
 
unsigned int majorStops
 
unsigned int minorStops
 
QColor pieColor
 

Private Slots

PD_PRIVATE void redrawEvent ()
 Redraw event slot, that is called by the redraw timer. More...
 

Private Attributes

struct PD_PRIVATE Impl
 
std::unique_ptr< Implimpl
 

Constructor & Destructor Documentation

◆ Dial()

Dial::Dial ( QWidget *  parent = 0)

◆ ~Dial()

Dial::~Dial ( )

Member Function Documentation

◆ event()

bool Dial::event ( QEvent *  event)
overrideprotected

References impl, and setpointValue.

Referenced by paintEvent().

◆ getMajorStep()

double Dial::getMajorStep ( ) const

References impl.

◆ getMajorStops()

unsigned int Dial::getMajorStops ( ) const

References impl.

◆ getMinorStops()

unsigned int Dial::getMinorStops ( ) const

References impl.

◆ getPieColor()

const QColor & Dial::getPieColor ( ) const

References impl.

◆ getScaleMin()

double Dial::getScaleMin ( ) const

References impl.

◆ getSpan()

double Dial::getSpan ( ) const

References impl.

◆ getTitle()

QString Dial::getTitle ( ) const

References impl.

◆ getUnit()

QString Dial::getUnit ( ) const

References impl.

◆ paintEvent()

void Dial::paintEvent ( QPaintEvent *  event)
overrideprotected

◆ redrawEvent

void Dial::redrawEvent ( )
privateslot

Redraw event slot, that is called by the redraw timer.

References impl.

Referenced by Dial().

◆ resetMajorStep()

void Dial::resetMajorStep ( )

◆ resetMajorStops()

void Dial::resetMajorStops ( )

◆ resetMinorStops()

void Dial::resetMinorStops ( )

◆ resetPieColor()

void Dial::resetPieColor ( )

References DEFAULT_PIECOLOR, and setPieColor().

◆ resetScaleMin()

void Dial::resetScaleMin ( )

References DEFAULT_SCALEMIN, and setScaleMin().

◆ resetSpan()

void Dial::resetSpan ( )

References DEFAULT_SPAN, and setSpan().

◆ resetTitle()

void Dial::resetTitle ( )

References DEFAULT_TITLE, and setTitle().

◆ resetUnit()

void Dial::resetUnit ( )

References DEFAULT_UNIT, and setUnit().

◆ setGradientStops()

void Dial::setGradientStops ( const QGradientStops &  stops)

References impl.

◆ setMajorStep()

void Dial::setMajorStep ( double  s)

References impl.

Referenced by resetMajorStep().

◆ setMajorStops()

void Dial::setMajorStops ( unsigned int  s)

References impl.

Referenced by resetMajorStops().

◆ setMinorStops()

void Dial::setMinorStops ( unsigned int  s)

References impl.

Referenced by resetMinorStops().

◆ setNeedle()

void Dial::setNeedle ( const QString &  path)

References impl.

◆ setNeedleCenterX()

void Dial::setNeedleCenterX ( int  x)

References impl.

◆ setPieColor()

void Dial::setPieColor ( const QColor &  c)

References impl.

Referenced by resetPieColor().

◆ setpointChanged

void Pd::Dial::setpointChanged ( double  )
signal

◆ setScaleMin()

void Dial::setScaleMin ( double  s)

References impl.

Referenced by resetScaleMin().

◆ setSetpoint()

void Dial::setSetpoint ( const QString &  path)

References impl.

◆ setSpan()

void Dial::setSpan ( double  s)

References impl.

Referenced by resetSpan().

◆ setTitle()

void Dial::setTitle ( const QString &  t)

References impl.

Referenced by resetTitle().

◆ setUnit()

void Dial::setUnit ( const QString &  u)

References impl.

Referenced by resetUnit().

◆ sizeHint()

QSize Dial::sizeHint ( ) const
overrideprotected

Gives a hint aboute the optimal size.

Member Data Documentation

◆ currentValue

Pd::Dial::Value Pd::Dial::currentValue

Referenced by paintEvent().

◆ Impl

struct PD_PRIVATE Pd::Dial::Impl
private

◆ impl

std::unique_ptr<Impl> Pd::Dial::impl
private

◆ setpointValue

Pd::Dial::Value Pd::Dial::setpointValue

Referenced by event().

Property Documentation

◆ majorStep

double Pd::Dial::majorStep
readwrite

◆ majorStops

unsigned int Pd::Dial::majorStops
readwrite

◆ minorStops

unsigned int Pd::Dial::minorStops
readwrite

◆ pieColor

QColor Pd::Dial::pieColor
readwrite

◆ scaleMin

double Pd::Dial::scaleMin
readwrite

◆ span

double Pd::Dial::span
readwrite

◆ title

QString Pd::Dial::title
readwrite

◆ unit

QString Pd::Dial::unit
readwrite

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