#include "deviceoptions.h"
-#include <boost/foreach.hpp>
-
#include <QFormLayout>
#include <QListWidget>
#include <pv/prop/property.h>
-using namespace boost;
-using namespace std;
+using std::shared_ptr;
namespace pv {
namespace popups {
-DeviceOptions::DeviceOptions(sr_dev_inst *sdi, QWidget *parent) :
+DeviceOptions::DeviceOptions(shared_ptr<device::DevInst> dev_inst,
+ QWidget *parent) :
Popup(parent),
- _sdi(sdi),
+ _dev_inst(dev_inst),
_layout(this),
- _binding(sdi)
+ _binding(dev_inst)
{
setLayout(&_layout);
_layout.addWidget(_binding.get_property_form(this, true));
}
+pv::prop::binding::DeviceOptions& DeviceOptions::binding()
+{
+ return _binding;
+}
+
} // namespace popups
} // namespace pv