X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fdecodetrace.hpp;h=619c7327b7ba838663340e270f5e61dbb7012234;hp=9f5755244bd61cc738a5930734f41a15b22b168d;hb=407c9ebeb13200fb7f28a33cab00e996c018f8dc;hpb=c063290ac7189bdd15221450f598504f43286b43 diff --git a/pv/view/decodetrace.hpp b/pv/view/decodetrace.hpp index 9f575524..619c7327 100644 --- a/pv/view/decodetrace.hpp +++ b/pv/view/decodetrace.hpp @@ -30,8 +30,8 @@ #include #include -#include #include +#include using std::list; using std::map; @@ -74,6 +74,7 @@ private: struct ChannelSelector { const QComboBox *combo_; + const QComboBox *combo_initial_pin_; const shared_ptr decoder_; const srd_channel *pdch_; }; @@ -112,21 +113,21 @@ public: * @param p the QPainter to paint into. * @param pp the painting parameters object to paint with.. */ - void paint_back(QPainter &p, const ViewItemPaintParams &pp); + void paint_back(QPainter &p, ViewItemPaintParams &pp); /** * Paints the mid-layer of the trace with a QPainter * @param p the QPainter to paint into. * @param pp the painting parameters object to paint with. */ - void paint_mid(QPainter &p, const ViewItemPaintParams &pp); + void paint_mid(QPainter &p, ViewItemPaintParams &pp); /** * Paints the foreground layer of the trace with a QPainter * @param p the QPainter to paint into. * @param pp the painting parameters object to paint with. */ - void paint_fore(QPainter &p, const ViewItemPaintParams &pp); + void paint_fore(QPainter &p, ViewItemPaintParams &pp); void populate_popup_form(QWidget *parent, QFormLayout *form); @@ -182,6 +183,10 @@ private: const shared_ptr &dec, const srd_channel *const pdch); + QComboBox* create_channel_selector_initial_pin(QWidget *parent, + const shared_ptr &dec, + const srd_channel *const pdch); + void commit_decoder_channels(shared_ptr &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);