X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fsubwindows%2Fdecoder_selector%2Fsubwindow.hpp;h=dba6f6deed8f72515d58bcd15df5fa0175e2f836;hb=a6fab02455b3d9910fe1bcc51ab644f224ee52e1;hp=1b75a6c7d3bc30fd59eed491c3ff59b1bf1f40c7;hpb=97378470ded88af84edaa0f1063d10d834475665;p=pulseview.git diff --git a/pv/subwindows/decoder_selector/subwindow.hpp b/pv/subwindows/decoder_selector/subwindow.hpp index 1b75a6c..dba6f6d 100644 --- a/pv/subwindows/decoder_selector/subwindow.hpp +++ b/pv/subwindows/decoder_selector/subwindow.hpp @@ -23,6 +23,8 @@ #include #include +#include +#include #include #include @@ -83,6 +85,17 @@ private: }; +class QCustomTreeView : public QTreeView +{ + Q_OBJECT + +public: + void currentChanged(const QModelIndex& current, const QModelIndex& previous); + +Q_SIGNALS: + void currentChanged(const QModelIndex& current); +}; + class SubWindow : public SubWindowBase { Q_OBJECT @@ -111,12 +124,18 @@ Q_SIGNALS: void new_decoders_selected(vector decoders); public Q_SLOTS: - void on_item_double_clicked(const QModelIndex& index); + void on_item_changed(const QModelIndex& index); + void on_item_activated(const QModelIndex& index); private: QSplitter* splitter_; - QTreeView* tree_view_; + QCustomTreeView* tree_view_; + QWidget* info_box_; + QLabel* info_label_header_; + QLabel* info_label_body_; + QLabel* info_label_footer_; DecoderCollectionModel* model_; + QSortFilterProxyModel* sort_filter_model_; }; } // decoder_selector