]> sigrok.org Git - pulseview.git/blobdiff - pv/binding/binding.hpp
logicsegment.cpp: Add missing config.h #include.
[pulseview.git] / pv / binding / binding.hpp
index 35492e30ec435e9930303f974ada51e30bee0fbd..6e92b08393694af4b593f859af7e449021527abb 100644 (file)
@@ -26,11 +26,14 @@ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
 #include <glibmm.h>
 G_GNUC_END_IGNORE_DEPRECATIONS
 
-#include <vector>
 #include <memory>
+#include <vector>
 
 #include <QString>
 
+using std::shared_ptr;
+using std::vector;
+
 class QFormLayout;
 class QWidget;
 
@@ -45,7 +48,7 @@ namespace binding {
 class Binding
 {
 public:
-       const std::vector< std::shared_ptr<prop::Property> >& properties();
+       const vector< shared_ptr<prop::Property> >& properties();
 
        void commit();
 
@@ -55,13 +58,15 @@ public:
        QWidget* get_property_form(QWidget *parent,
                bool auto_commit = false) const;
 
+       void update_property_widgets();
+
        static QString print_gvariant(Glib::VariantBase gvar);
 
 protected:
-       std::vector< std::shared_ptr<prop::Property> > properties_;
+       vector< shared_ptr<prop::Property> > properties_;
 };
 
-} // binding
-} // pv
+}  // namespace binding
+}  // namespace pv
 
 #endif // PULSEVIEW_PV_BINDING_BINDING_HPP