X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fviews%2Fdecoder_output%2Fview.hpp;h=16d35e82e2823af56cfe83cd5738798360667e6c;hp=4f4bc4505fe892121acdee849463a82bea167918;hb=HEAD;hpb=e77de61fbc19633c77cc196332ae79c26d9ca35d diff --git a/pv/views/decoder_output/view.hpp b/pv/views/decoder_output/view.hpp deleted file mode 100644 index 4f4bc450..00000000 --- a/pv/views/decoder_output/view.hpp +++ /dev/null @@ -1,92 +0,0 @@ -/* - * This file is part of the PulseView project. - * - * Copyright (C) 2019 Soeren Apel - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, see . - */ - -#ifndef PULSEVIEW_PV_VIEWS_DECODEROUTPUT_VIEW_HPP -#define PULSEVIEW_PV_VIEWS_DECODEROUTPUT_VIEW_HPP - -#include -#include - -#include -#include - -#include "QHexView.hpp" - -namespace pv { - -class Session; - -namespace views { - -namespace decoder_output { - -class View : public ViewBase -{ - Q_OBJECT - -public: - 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. - */ - virtual void reset_view_state(); - - virtual void clear_signals(); - - virtual void clear_decode_signals(); - virtual void add_decode_signal(shared_ptr signal); - virtual void remove_decode_signal(shared_ptr signal); - - virtual void save_settings(QSettings &settings) const; - virtual void restore_settings(QSettings &settings); - -private: - void update_data(); - -private Q_SLOTS: - void on_selected_decoder_changed(int index); - void on_signal_name_changed(const QString &name); - void on_new_binary_data(unsigned int segment_id, 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_; - - QByteArray *merged_data_; -}; - -} // namespace decoder_output -} // namespace views -} // namespace pv - -#endif // PULSEVIEW_PV_VIEWS_DECODEROUTPUT_VIEW_HPP