X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fprop%2Fbinding%2Fbinding.h;h=9b63c16214f1fffc9e83bd27245b1600d0a2dedd;hb=e7e57b252765945cbd5d50305ace07a2818b9087;hp=7bb3238b09ffbbf0bfbcefd2f12612d3d6fdcf38;hpb=479bcabe6b4d0b1f51984085d9944ce6b03ed07c;p=pulseview.git diff --git a/pv/prop/binding/binding.h b/pv/prop/binding/binding.h index 7bb3238b..9b63c162 100644 --- a/pv/prop/binding/binding.h +++ b/pv/prop/binding/binding.h @@ -24,6 +24,7 @@ #include #include +class QFormLayout; class QWidget; namespace pv { @@ -38,10 +39,16 @@ class Binding public: const std::vector< boost::shared_ptr >& 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; + protected: std::vector< boost::shared_ptr > _properties; - - QWidget *_form; }; } // binding