]> sigrok.org Git - pulseview.git/blobdiff - pv/dialogs/decoder.h
Implemented decoder options binding
[pulseview.git] / pv / dialogs / decoder.h
index 08af38cb71bf6a655218deed04b7fc62e551f020..2277f987c23e4b0250ec715b1882949d4f4a43fd 100644 (file)
@@ -33,6 +33,8 @@
 #include <QLabel>
 #include <QVBoxLayout>
 
+#include <pv/prop/binding/decoderoptions.h>
+
 struct srd_decoder;
 
 namespace pv {
@@ -47,7 +49,10 @@ class Decoder : public QDialog
 {
 public:
        Decoder(QWidget *parent, const srd_decoder *decoder,
-               const std::vector< boost::shared_ptr<view::Signal> > &sigs);
+               const std::vector< boost::shared_ptr<view::Signal> > &sigs,
+               GHashTable *options);
+
+       void accept();
 
        std::map<const srd_probe*, boost::shared_ptr<view::Signal> >
                get_probes();
@@ -62,6 +67,9 @@ private:
 
        std::map<const srd_probe*, QComboBox*> _probe_selector_map;
 
+       GHashTable *const _options;
+       pv::prop::binding::DecoderOptions _binding;
+
        QVBoxLayout _layout;
 
        QWidget _form;