]> sigrok.org Git - pulseview.git/blobdiff - pv/view/decodetrace.hpp
Allow users to set initial pin states for decoders.
[pulseview.git] / pv / view / decodetrace.hpp
index c4cb6fa553015b48a3f977d49629a3fe8b08830e..619c7327b7ba838663340e270f5e61dbb7012234 100644 (file)
@@ -74,6 +74,7 @@ private:
        struct ChannelSelector
        {
                const QComboBox *combo_;
+               const QComboBox *combo_initial_pin_;
                const shared_ptr<pv::data::decode::Decoder> decoder_;
                const srd_channel *pdch_;
        };
@@ -182,6 +183,10 @@ private:
                const shared_ptr<pv::data::decode::Decoder> &dec,
                const srd_channel *const pdch);
 
+       QComboBox* create_channel_selector_initial_pin(QWidget *parent,
+               const shared_ptr<pv::data::decode::Decoder> &dec,
+               const srd_channel *const pdch);
+
        void commit_decoder_channels(shared_ptr<data::decode::Decoder> &dec);
 
        void commit_channels();
@@ -196,6 +201,8 @@ private Q_SLOTS:
 
        void on_channel_selected(int);
 
+       void on_initial_pin_selected(int);
+
        void on_stack_decoder(srd_decoder *decoder);
 
        void on_delete_decoder(int index);