PulseView
unreleased development snapshot
A Qt-based sigrok GUI
|
#include <property.hpp>
Public Types | |
typedef function< Glib::VariantBase()> | Getter |
typedef function< void(Glib::VariantBase)> | Setter |
Public Member Functions | |
const QString & | name () const |
const QString & | desc () const |
virtual QWidget * | get_widget (QWidget *parent, bool auto_commit=false)=0 |
virtual bool | labeled_widget () const |
virtual void | update_widget ()=0 |
virtual void | commit ()=0 |
Protected Member Functions | |
Property (QString name, QString desc, Getter getter, Setter setter) | |
Protected Attributes | |
const Getter | getter_ |
const Setter | setter_ |
QString | name_ |
QString | desc_ |
Definition at line 41 of file property.hpp.
typedef function<Glib::VariantBase ()> pv::prop::Property::Getter |
Definition at line 46 of file property.hpp.
typedef function<void (Glib::VariantBase)> pv::prop::Property::Setter |
Definition at line 47 of file property.hpp.
Definition at line 25 of file property.cpp.
|
pure virtual |
Implemented in pv::prop::Enum, pv::prop::Double, pv::prop::Int, pv::prop::Bool, and pv::prop::String.
const QString & pv::prop::Property::desc | ( | ) | const |
|
pure virtual |
Implemented in pv::prop::Enum, pv::prop::Double, pv::prop::Int, pv::prop::Bool, and pv::prop::String.
|
virtual |
Reimplemented in pv::prop::Bool.
Definition at line 43 of file property.cpp.
const QString & pv::prop::Property::name | ( | ) | const |
|
pure virtual |
Implemented in pv::prop::Enum, pv::prop::Double, pv::prop::Int, pv::prop::Bool, and pv::prop::String.
|
protected |
Definition at line 68 of file property.hpp.
|
protected |
Definition at line 63 of file property.hpp.
|
protected |
Definition at line 67 of file property.hpp.
|
protected |
Definition at line 64 of file property.hpp.