PulseView
0.3.0
A Qt-based sigrok GUI
|
#include <inputoutput.hpp>
Public Member Functions | |
InputOutput (const std::map< std::string, std::shared_ptr< sigrok::Option >> &options) | |
const std::map< std::string, Glib::VariantBase > & | options () const |
Public Member Functions inherited from pv::binding::Binding | |
const std::vector< std::shared_ptr< prop::Property > > & | properties () |
void | commit () |
void | add_properties_to_form (QFormLayout *layout, bool auto_commit=false) const |
QWidget * | get_property_form (QWidget *parent, bool auto_commit=false) const |
Private Member Functions | |
std::shared_ptr< prop::Property > | bind_enum (const QString &name, const std::vector< Glib::VariantBase > &values, prop::Property::Getter getter, prop::Property::Setter setter) |
Private Attributes | |
std::map< std::string, Glib::VariantBase > | options_ |
Additional Inherited Members | |
Static Public Member Functions inherited from pv::binding::Binding | |
static QString | print_gvariant (Glib::VariantBase gvar) |
Protected Attributes inherited from pv::binding::Binding | |
std::vector< std::shared_ptr< prop::Property > > | properties_ |
A binding of glibmm variants for sigrok input and output options.
Definition at line 42 of file inputoutput.hpp.
pv::binding::InputOutput::InputOutput | ( | const std::map< std::string, std::shared_ptr< sigrok::Option >> & | options | ) |
Constructs a new InputOutput
binding.
options | the map of options to use as a template. |
Definition at line 61 of file inputoutput.cpp.
|
private |
A helper function to bind an option list to and enum property.
name | the name of the property. |
values | the list of values. |
getter | the getter that will read the values out of the map. |
setter | the setter that will set the values into the map. |
Definition at line 108 of file inputoutput.cpp.
const map< string, VariantBase > & pv::binding::InputOutput::options | ( | ) | const |
Gets the map of selected options.
Definition at line 103 of file inputoutput.cpp.
|
private |
The current map of options.
Definition at line 75 of file inputoutput.hpp.