X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fpopups%2Fdeviceoptions.h;h=5fb60fc74d081c00e8efe35aeea3f593290d706c;hb=8dbbc7f0b9ea59d0f0d62225772f8a56eee125f5;hp=50fc4fbab39aa2f8e0b217f2dddec83f4c2e97a4;hpb=51d4a9ab96a6bf64a1fcd1700e7e174498d4c118;p=pulseview.git diff --git a/pv/popups/deviceoptions.h b/pv/popups/deviceoptions.h index 50fc4fb..5fb60fc 100644 --- a/pv/popups/deviceoptions.h +++ b/pv/popups/deviceoptions.h @@ -27,6 +27,10 @@ #include #include +namespace sigrok { + class Device; +} + namespace pv { namespace popups { @@ -35,17 +39,17 @@ class DeviceOptions : public pv::widgets::Popup Q_OBJECT public: - DeviceOptions(sr_dev_inst *sdi, QWidget *parent); + DeviceOptions(std::shared_ptr device, + QWidget *parent); -private: - void closeEvent(QCloseEvent*); + pv::prop::binding::DeviceOptions& binding(); private: - sr_dev_inst *const _sdi; + std::shared_ptr device_; - QVBoxLayout _layout; + QVBoxLayout layout_; - pv::prop::binding::DeviceOptions _binding; + pv::prop::binding::DeviceOptions binding_; }; } // namespace popups