]> sigrok.org Git - pulseview.git/blobdiff - pv/popups/deviceoptions.cpp
Renamed pv::binding::DeviceOptions and DecoderOptions to Device and Decoder
[pulseview.git] / pv / popups / deviceoptions.cpp
index ac7c2b78f3c3eb0245e77e3d6dc248e47264e801..fe7955159990c81f6b6646786636dd965f0a6f8b 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
-#include "deviceoptions.h"
-
-#include <boost/foreach.hpp>
+#include "deviceoptions.hpp"
 
 #include <QFormLayout>
 #include <QListWidget>
 
-#include <pv/prop/property.h>
+#include <pv/prop/property.hpp>
+
+#include <libsigrokcxx/libsigrokcxx.hpp>
+
+using std::shared_ptr;
 
-using namespace boost;
-using namespace std;
+using sigrok::Device;
 
 namespace pv {
 namespace popups {
 
-DeviceOptions::DeviceOptions(sr_dev_inst *sdi, QWidget *parent) :
+DeviceOptions::DeviceOptions(shared_ptr<Device> device, QWidget *parent) :
        Popup(parent),
-       _sdi(sdi),
-       _layout(this),
-       _binding(sdi)
+       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::binding::Device& DeviceOptions::binding()
+{
+       return binding_;
 }
 
 } // namespace popups