]> 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 a780c2f374d505834298f3a196757d23ef61a12a..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 {
@@ -35,10 +37,12 @@ class View : public ViewBase
        Q_OBJECT
 
 public:
-       explicit View(Session &session, bool is_main_view=false, QWidget *parent = nullptr);
+       explicit View(Session &session, bool is_main_view=false, QMainWindow *parent = nullptr);
 
        ~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