PulseView  0.3.0
A Qt-based sigrok GUI
pv::prop::Double Class Reference

#include <double.hpp>

Inheritance diagram for pv::prop::Double:
Collaboration diagram for pv::prop::Double:

Public Member Functions

 Double (QString name, int decimals, QString suffix, boost::optional< std::pair< double, double > > range, boost::optional< double > step, Getter getter, Setter setter)
 
virtual ~Double ()
 
QWidget * get_widget (QWidget *parent, bool auto_commit)
 
void commit ()
 
- Public Member Functions inherited from pv::prop::Property
const QString & name () const
 
virtual bool labeled_widget () const
 

Private Slots

void on_value_changed (double)
 

Private Attributes

const int decimals_
 
const QString suffix_
 
const boost::optional< std::pair< double, double > > range_
 
const boost::optional< double > step_
 
QDoubleSpinBox * spin_box_
 

Additional Inherited Members

- Public Types inherited from pv::prop::Property
typedef std::function< Glib::VariantBase()> Getter
 
typedef std::function< void(Glib::VariantBase)> Setter
 
- Protected Member Functions inherited from pv::prop::Property
 Property (QString name, Getter getter, Setter setter)
 
- Protected Attributes inherited from pv::prop::Property
const Getter getter_
 
const Setter setter_
 

Detailed Description

Definition at line 35 of file double.hpp.

Constructor & Destructor Documentation

pv::prop::Double::Double ( QString  name,
int  decimals,
QString  suffix,
boost::optional< std::pair< double, double > >  range,
boost::optional< double >  step,
Getter  getter,
Setter  setter 
)

Definition at line 33 of file double.cpp.

pv::prop::Double::~Double ( )
virtual

Definition at line 49 of file double.cpp.

Member Function Documentation

void pv::prop::Double::commit ( )
virtual

Implements pv::prop::Property.

Definition at line 85 of file double.cpp.

Here is the caller graph for this function:

QWidget * pv::prop::Double::get_widget ( QWidget *  parent,
bool  auto_commit 
)
virtual

Implements pv::prop::Property.

Definition at line 53 of file double.cpp.

Here is the call graph for this function:

void pv::prop::Double::on_value_changed ( double  )
privateslot

Definition at line 95 of file double.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

const int pv::prop::Double::decimals_
private

Definition at line 56 of file double.hpp.

const boost::optional< std::pair<double, double> > pv::prop::Double::range_
private

Definition at line 58 of file double.hpp.

QDoubleSpinBox* pv::prop::Double::spin_box_
private

Definition at line 61 of file double.hpp.

const boost::optional<double> pv::prop::Double::step_
private

Definition at line 59 of file double.hpp.

const QString pv::prop::Double::suffix_
private

Definition at line 57 of file double.hpp.


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