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

#include <int.hpp>

Inheritance diagram for pv::prop::Int:
Collaboration diagram for pv::prop::Int:

Public Member Functions

 Int (QString name, QString suffix, boost::optional< std::pair< int64_t, int64_t > > range, Getter getter, Setter setter)
 
virtual ~Int ()
 
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 (int)
 

Private Attributes

const QString suffix_
 
const boost::optional< std::pair< int64_t, int64_t > > range_
 
Glib::VariantBase value_
 
QSpinBox * 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 int.hpp.

Constructor & Destructor Documentation

pv::prop::Int::Int ( QString  name,
QString  suffix,
boost::optional< std::pair< int64_t, int64_t > >  range,
Getter  getter,
Setter  setter 
)

Definition at line 36 of file int.cpp.

pv::prop::Int::~Int ( )
virtual

Definition at line 48 of file int.cpp.

Member Function Documentation

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

Implements pv::prop::Property.

Definition at line 123 of file int.cpp.

Here is the caller graph for this function:

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

Implements pv::prop::Property.

Definition at line 52 of file int.cpp.

Here is the call graph for this function:

void pv::prop::Int::on_value_changed ( int  )
privateslot

Definition at line 161 of file int.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

const boost::optional< std::pair<int64_t, int64_t> > pv::prop::Int::range_
private

Definition at line 55 of file int.hpp.

QSpinBox* pv::prop::Int::spin_box_
private

Definition at line 58 of file int.hpp.

const QString pv::prop::Int::suffix_
private

Definition at line 54 of file int.hpp.

Glib::VariantBase pv::prop::Int::value_
private

Definition at line 57 of file int.hpp.


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