X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fpopups%2Fdeviceoptions.h;fp=pv%2Fpopups%2Fdeviceoptions.h;h=50fc4fbab39aa2f8e0b217f2dddec83f4c2e97a4;hp=0000000000000000000000000000000000000000;hb=51d4a9ab96a6bf64a1fcd1700e7e174498d4c118;hpb=6c32e6c73b3342fc0e191949965fdec7705d515e diff --git a/pv/popups/deviceoptions.h b/pv/popups/deviceoptions.h new file mode 100644 index 00000000..50fc4fba --- /dev/null +++ b/pv/popups/deviceoptions.h @@ -0,0 +1,54 @@ +/* + * This file is part of the PulseView project. + * + * Copyright (C) 2012 Joel Holdsworth + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * 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 + */ + +#ifndef PULSEVIEW_PV_POPUPS_DEVICEOPTIONS_H +#define PULSEVIEW_PV_POPUPS_DEVICEOPTIONS_H + +#include +#include + +#include +#include + +namespace pv { +namespace popups { + +class DeviceOptions : public pv::widgets::Popup +{ + Q_OBJECT + +public: + DeviceOptions(sr_dev_inst *sdi, QWidget *parent); + +private: + void closeEvent(QCloseEvent*); + +private: + sr_dev_inst *const _sdi; + + QVBoxLayout _layout; + + pv::prop::binding::DeviceOptions _binding; +}; + +} // namespace popups +} // namespace pv + +#endif // PULSEVIEW_PV_POPUPS_DEVICEOPTIONS_H