PulseView  unreleased development snapshot
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 desc, QString suffix, boost::optional< pair< int64_t, int64_t > > range, Getter getter, Setter setter, QString special_value_text="")
 
virtual ~Int ()=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 (int)
 

Private Attributes

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

Constructor & Destructor Documentation

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

Definition at line 38 of file int.cpp.

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

Member Function Documentation

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

Implements pv::prop::Property.

Definition at line 161 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 49 of file int.cpp.

Here is the call graph for this function:

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

Definition at line 198 of file int.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Implements pv::prop::Property.

Definition at line 119 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< pair<int64_t, int64_t> > pv::prop::Int::range_
private

Definition at line 57 of file int.hpp.

const QString pv::prop::Int::special_value_text_
private

Definition at line 56 of file int.hpp.

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

Definition at line 60 of file int.hpp.

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

Definition at line 56 of file int.hpp.

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

Definition at line 59 of file int.hpp.


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