#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 {
~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.
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_;
+ uint32_t bin_class_id_;
};
} // namespace decoder_output