PulseView  0.3.0
A Qt-based sigrok GUI
pv::prop::Enum Class Reference

#include <enum.hpp>

Inheritance diagram for pv::prop::Enum:
Collaboration diagram for pv::prop::Enum:

Public Member Functions

 Enum (QString name, std::vector< std::pair< Glib::VariantBase, QString > > values, Getter getter, Setter setter)
 
virtual ~Enum ()
 
QWidget * get_widget (QWidget *parent, bool auto_commit)
 
void commit ()
 
- Public Member Functions inherited from pv::prop::Property
const QString & name () const
 
virtual bool labeled_widget () const
 

Private Slots

void on_current_item_changed (int)
 

Private Attributes

const std::vector< std::pair< Glib::VariantBase, QString > > values_
 
QComboBox * selector_
 

Additional Inherited Members

- Public Types inherited from pv::prop::Property
typedef std::function< Glib::VariantBase()> Getter
 
typedef std::function< void(Glib::VariantBase)> Setter
 
- Protected Member Functions inherited from pv::prop::Property
 Property (QString name, Getter getter, Setter setter)
 
- Protected Attributes inherited from pv::prop::Property
const Getter getter_
 
const Setter setter_
 

Detailed Description

Definition at line 38 of file enum.hpp.

Constructor & Destructor Documentation

pv::prop::Enum::Enum ( QString  name,
std::vector< std::pair< Glib::VariantBase, QString > >  values,
Getter  getter,
Setter  setter 
)

Definition at line 33 of file enum.cpp.

pv::prop::Enum::~Enum ( )
virtual

Definition at line 42 of file enum.cpp.

Member Function Documentation

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

Implements pv::prop::Property.

Definition at line 73 of file enum.cpp.

Here is the caller graph for this function:

QWidget * pv::prop::Enum::get_widget ( QWidget *  parent,
bool  auto_commit 
)
virtual

Implements pv::prop::Property.

Definition at line 46 of file enum.cpp.

Here is the call graph for this function:

void pv::prop::Enum::on_current_item_changed ( int  )
privateslot

Definition at line 87 of file enum.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

QComboBox* pv::prop::Enum::selector_
private

Definition at line 58 of file enum.hpp.

const std::vector< std::pair<Glib::VariantBase, QString> > pv::prop::Enum::values_
private

Definition at line 56 of file enum.hpp.


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