PulseView  unreleased development snapshot
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, QString desc, int decimals, QString suffix, boost::optional< pair< double, double > > range, boost::optional< double > step, Getter getter, Setter setter)
 
virtual ~Double ()=default
 
QWidget * get_widget (QWidget *parent, bool auto_commit)
 
void update_widget ()
 
void commit ()
 
- Public Member Functions inherited from pv::prop::Property
const QString & name () const
 
const QString & desc () const
 
virtual bool labeled_widget () const
 

Private Slots

void on_value_changed (double)
 

Private Attributes

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

Additional Inherited Members

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

Detailed Description

Definition at line 36 of file double.hpp.

Constructor & Destructor Documentation

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

Definition at line 35 of file double.cpp.

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

Member Function Documentation

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

Implements pv::prop::Property.

Definition at line 107 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 52 of file double.cpp.

Here is the call graph for this function:

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

Definition at line 117 of file double.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Implements pv::prop::Property.

Definition at line 86 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 58 of file double.hpp.

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

Definition at line 60 of file double.hpp.

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

Definition at line 63 of file double.hpp.

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

Definition at line 61 of file double.hpp.

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

Definition at line 59 of file double.hpp.


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