]> sigrok.org Git - pulseview.git/blobdiff - pv/views/decoder_output/view.hpp
DecodeSignal: Add binary data callback
[pulseview.git] / pv / views / decoder_output / view.hpp
index a4db819e50f1f883fbaf38f67f7c509b70f23a3d..ff636e03070d3915dca9716fb491bc2b7e990007 100644 (file)
 #ifndef PULSEVIEW_PV_VIEWS_DECODEROUTPUT_VIEW_HPP
 #define PULSEVIEW_PV_VIEWS_DECODEROUTPUT_VIEW_HPP
 
+#include <QComboBox>
+#include <QStackedWidget>
+
 #include <pv/views/viewbase.hpp>
 
+#include "QHexView.hpp"
+
 namespace pv {
 
 class Session;
@@ -39,6 +44,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 +62,12 @@ 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_, *format_selector_;
+       QStackedWidget *stacked_widget_;
+       QHexView *hex_view_;
 };
 
 } // namespace decoder_output