X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fprop%2Fproperty.h;h=b3aa1a690b00c3e29e74140317169bc5b2ac195e;hb=f896568baff2904ef2a26ee082321f4f689a86b2;hp=6ab83193963c3d0a8f6b470c2bd551c41ad625ac;hpb=9b25892767cee1d871ac18beb025033e905b28ae;p=pulseview.git diff --git a/pv/prop/property.h b/pv/prop/property.h index 6ab8319..b3aa1a6 100644 --- a/pv/prop/property.h +++ b/pv/prop/property.h @@ -21,10 +21,9 @@ #ifndef PULSEVIEW_PV_PROP_PROPERTY_H #define PULSEVIEW_PV_PROP_PROPERTY_H -#include - -#include +#include +#include #include #include @@ -33,11 +32,13 @@ class QWidget; namespace pv { namespace prop { -class Property +class Property : public QObject { + Q_OBJECT; + public: - typedef boost::function Getter; - typedef boost::function Setter; + typedef std::function Getter; + typedef std::function Setter; protected: Property(QString name, Getter getter, Setter setter); @@ -45,7 +46,9 @@ protected: public: const QString& name() const; - virtual QWidget* get_widget(QWidget *parent) = 0; + virtual QWidget* get_widget(QWidget *parent, + bool auto_commit = false) = 0; + virtual bool labeled_widget() const; virtual void commit() = 0;