]> sigrok.org Git - pulseview.git/blobdiff - pv/views/decoder_output/view.hpp
DecoderOutputView: Directly use DecodeBinaryClass as data source
[pulseview.git] / pv / views / decoder_output / view.hpp
index 79dfe234aac4751827d233352a8528328cf1761f..58aec954f24a855c7a49b1657b44a2d9c66be0ce 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 <pv/data/decodesignal.hpp>
+
+#include "QHexView.hpp"
 
 namespace pv {
 
@@ -56,9 +62,26 @@ public:
        virtual void save_settings(QSettings &settings) const;
        virtual void restore_settings(QSettings &settings);
 
-private Q_SLOTS:
-       void on_signal_name_changed();
+private:
+       void update_data();
 
+private Q_SLOTS:
+       void on_selected_decoder_changed(int index);
+       void on_selected_class_changed(int index);
+       void on_signal_name_changed(const QString &name);
+       void on_new_binary_data(unsigned int segment_id, void* decoder, unsigned int bin_class_id);
+
+       void on_decoder_stacked(void* decoder);
+       void on_decoder_removed(void* decoder);
+
+private:
+       QComboBox *decoder_selector_, *format_selector_, *class_selector_;
+       QStackedWidget *stacked_widget_;
+       QHexView *hex_view_;
+
+       data::DecodeSignal *signal_;
+       const data::decode::Decoder *decoder_;
+       uint8_t bin_class_id_;
 };
 
 } // namespace decoder_output