]> sigrok.org Git - pulseview.git/blobdiff - pv/views/decoder_output/view.hpp
DecoderOutput: Add selector box and fix signal handling
[pulseview.git] / pv / views / decoder_output / view.hpp
index a4db819e50f1f883fbaf38f67f7c509b70f23a3d..4f772c822d01c99d30cb2cd17742a68345b7b5a6 100644 (file)
@@ -20,6 +20,8 @@
 #ifndef PULSEVIEW_PV_VIEWS_DECODEROUTPUT_VIEW_HPP
 #define PULSEVIEW_PV_VIEWS_DECODEROUTPUT_VIEW_HPP
 
+#include <QComboBox>
+
 #include <pv/views/viewbase.hpp>
 
 namespace pv {
@@ -39,6 +41,8 @@ public:
 
        ~View();
 
+       virtual ViewType get_type() const;
+
        /**
         * Resets the view to its default state after construction. It does however
         * not reset the signal bases or any other connections with the session.
@@ -55,8 +59,10 @@ public:
        virtual void restore_settings(QSettings &settings);
 
 private Q_SLOTS:
-       void on_signal_name_changed();
+       void on_signal_name_changed(const QString &name);
 
+private:
+       QComboBox *signal_selector_;
 };
 
 } // namespace decoder_output