]> sigrok.org Git - pulseview.git/blobdiff - pv/popups/deviceoptions.cpp
Make member variable underscores a suffix instead of a prefix
[pulseview.git] / pv / popups / deviceoptions.cpp
index 353dfcfedfe941df0ded87663eae7bf28bc2913d..bdc0ab23ed48366353fc14c0b01daaa899d1fbdd 100644 (file)
 
 #include <pv/prop/property.h>
 
-using boost::shared_ptr;
+#include <libsigrok/libsigrok.hpp>
+
+using std::shared_ptr;
+
+using sigrok::Device;
 
 namespace pv {
 namespace popups {
 
-DeviceOptions::DeviceOptions(shared_ptr<device::DevInst> dev_inst,
-       QWidget *parent) :
+DeviceOptions::DeviceOptions(shared_ptr<Device> device, QWidget *parent) :
        Popup(parent),
-       _dev_inst(dev_inst),
-       _layout(this),
-       _binding(dev_inst)
+       device_(device),
+       layout_(this),
+       binding_(device)
 {
-       setLayout(&_layout);
+       setLayout(&layout_);
 
-       _layout.addWidget(_binding.get_property_form(this, true));
+       layout_.addWidget(binding_.get_property_form(this, true));
 }
 
 pv::prop::binding::DeviceOptions& DeviceOptions::binding()
 {
-       return _binding;
+       return binding_;
 }
 
 } // namespace popups