Use libsigrok C++ bindings (patch version 7).
[pulseview.git] / pv / prop / int.h
index ef6fb1df699d006440fb7237c010ce1095fd54db..1de99d6765cc6394164989303c8ebf3330156d5a 100644 (file)
@@ -34,19 +34,27 @@ namespace prop {
 
 class Int : public Property
 {
+       Q_OBJECT;
+
 public:
        Int(QString name, QString suffix,
                boost::optional< std::pair<int64_t, int64_t> > range,
                Getter getter, Setter setter);
 
-       QWidget* get_widget(QWidget *parent);
+       virtual ~Int();
+
+       QWidget* get_widget(QWidget *parent, bool auto_commit);
 
        void commit();
 
+private Q_SLOTS:
+       void on_value_changed(int);
+
 private:
        const QString _suffix;
        const boost::optional< std::pair<int64_t, int64_t> > _range;
 
+       Glib::VariantBase _value;
        QSpinBox *_spin_box;
 };