PulseView
0.3.0
A Qt-based sigrok GUI
|
#include <property.hpp>
Public Types | |
typedef std::function< Glib::VariantBase()> | Getter |
typedef std::function< void(Glib::VariantBase)> | Setter |
Public Member Functions | |
const QString & | name () const |
virtual QWidget * | get_widget (QWidget *parent, bool auto_commit=false)=0 |
virtual bool | labeled_widget () const |
virtual void | commit ()=0 |
Protected Member Functions | |
Property (QString name, Getter getter, Setter setter) | |
Protected Attributes | |
const Getter | getter_ |
const Setter | setter_ |
Private Attributes | |
QString | name_ |
Definition at line 39 of file property.hpp.
typedef std::function<Glib::VariantBase ()> pv::prop::Property::Getter |
Definition at line 41 of file property.hpp.
typedef std::function<void (Glib::VariantBase)> pv::prop::Property::Setter |
Definition at line 45 of file property.hpp.
Definition at line 26 of file property.cpp.
|
pure virtual |
Implemented in pv::prop::Double, pv::prop::Enum, pv::prop::Int, pv::prop::Bool, and pv::prop::String.
|
pure virtual |
Implemented in pv::prop::Double, pv::prop::Enum, pv::prop::Int, pv::prop::Bool, and pv::prop::String.
|
virtual |
Reimplemented in pv::prop::Bool.
Definition at line 38 of file property.cpp.
const QString & pv::prop::Property::name | ( | ) | const |
|
protected |
Definition at line 60 of file property.hpp.
|
private |
Definition at line 64 of file property.hpp.
|
protected |
Definition at line 61 of file property.hpp.