PulseView  0.3.0
A Qt-based sigrok GUI
pv::prop::Property Class Referenceabstract

#include <property.hpp>

Inheritance diagram for pv::prop::Property:
Collaboration diagram for pv::prop::Property:

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_
 

Detailed Description

Definition at line 39 of file property.hpp.

Member Typedef Documentation

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.

Constructor & Destructor Documentation

pv::prop::Property::Property ( QString  name,
Getter  getter,
Setter  setter 
)
protected

Definition at line 26 of file property.cpp.

Member Function Documentation

virtual void pv::prop::Property::commit ( )
pure virtual
virtual QWidget* pv::prop::Property::get_widget ( QWidget *  parent,
bool  auto_commit = false 
)
pure virtual
bool pv::prop::Property::labeled_widget ( ) const
virtual

Reimplemented in pv::prop::Bool.

Definition at line 38 of file property.cpp.

const QString & pv::prop::Property::name ( ) const

Definition at line 33 of file property.cpp.

Here is the caller graph for this function:

Member Data Documentation

const Getter pv::prop::Property::getter_
protected

Definition at line 60 of file property.hpp.

QString pv::prop::Property::name_
private

Definition at line 64 of file property.hpp.

const Setter pv::prop::Property::setter_
protected

Definition at line 61 of file property.hpp.


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