X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdialogs%2Fdeviceoptions.h;h=059d336e78e246328c933ad8f0e762fe592fe155;hp=20f6b6b65205a67d61c88c43851898d12cff8fb1;hb=ed773982d53396e94266288a8fcd87846706f1e4;hpb=d755562ad376fc95184ff996ff8f1391c5f32b6b diff --git a/pv/dialogs/deviceoptions.h b/pv/dialogs/deviceoptions.h index 20f6b6b6..059d336e 100644 --- a/pv/dialogs/deviceoptions.h +++ b/pv/dialogs/deviceoptions.h @@ -23,6 +23,10 @@ #include #include +#include +#include +#include +#include #include #include @@ -32,6 +36,8 @@ namespace dialogs { class DeviceOptions : public QDialog { + Q_OBJECT + public: DeviceOptions(QWidget *parent, struct sr_dev_inst *sdi); @@ -39,7 +45,29 @@ protected: void accept(); private: + void setup_probes(); + + void set_all_probes(bool set); + +private slots: + void enable_all_probes(); + void disable_all_probes(); + +private: + struct sr_dev_inst *const _sdi; + QVBoxLayout _layout; + + QGroupBox _probes_box; + QVBoxLayout _probes_box_layout; + QListWidget _probes; + QToolBar _probes_bar; + QToolButton _enable_all_probes; + QToolButton _disable_all_probes; + + QGroupBox _props_box; + QVBoxLayout _props_box_layout; + QDialogButtonBox _button_box; pv::prop::binding::DeviceOptions _device_options_binding;