X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fpopups%2Fdeviceoptions.cpp;h=df9113679d2d5ddddd67c169778ea4820166cddc;hp=30d5f579422a37517aa689cae30dc1a88fe98262;hb=09f55d9665efb3b17ba7de4bae47be6989e884fe;hpb=819f4c25391a9c74d3d2f528d462142d5c4aad4d diff --git a/pv/popups/deviceoptions.cpp b/pv/popups/deviceoptions.cpp index 30d5f579..df911367 100644 --- a/pv/popups/deviceoptions.cpp +++ b/pv/popups/deviceoptions.cpp @@ -14,31 +14,39 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * along with this program; if not, see . */ -#include "deviceoptions.h" - -#include +#include "deviceoptions.hpp" #include #include -#include +#include + +#include + +using std::shared_ptr; + +using sigrok::Device; namespace pv { namespace popups { -DeviceOptions::DeviceOptions(sr_dev_inst *sdi, QWidget *parent) : +DeviceOptions::DeviceOptions(shared_ptr 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