PulseView  unreleased development snapshot
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 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_
 

Detailed Description

Definition at line 41 of file property.hpp.

Member Typedef Documentation

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.

Constructor & Destructor Documentation

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

Definition at line 25 of file property.cpp.

Member Function Documentation

virtual void pv::prop::Property::commit ( )
pure virtual
const QString & pv::prop::Property::desc ( ) const

Definition at line 38 of file property.cpp.

Here is the caller graph for this function:

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 43 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:

virtual void pv::prop::Property::update_widget ( )
pure virtual

Member Data Documentation

QString pv::prop::Property::desc_
protected

Definition at line 68 of file property.hpp.

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

Definition at line 63 of file property.hpp.

QString pv::prop::Property::name_
protected

Definition at line 67 of file property.hpp.

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

Definition at line 64 of file property.hpp.


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