X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fpopups%2Fchannels.hpp;h=eb1e029773f1d9204c7845270e0605033b0932a2;hb=1f419596224bd8f73fc8c59b52b8775685249a07;hp=3701325bc704572758831b8781d800a56cc39065;hpb=870ea3dbf35b182e120c5d84ab89bf9cb7691232;p=pulseview.git diff --git a/pv/popups/channels.hpp b/pv/popups/channels.hpp index 3701325b..eb1e0297 100644 --- a/pv/popups/channels.hpp +++ b/pv/popups/channels.hpp @@ -20,24 +20,25 @@ #ifndef PULSEVIEW_PV_POPUPS_CHANNELS_HPP #define PULSEVIEW_PV_POPUPS_CHANNELS_HPP +#include #include #include #include +#include #include -#include +#include +#include #include #include #include +using std::function; using std::map; using std::shared_ptr; using std::vector; -class QCheckBox; -class QGridLayout; - namespace sigrok { class ChannelGroup; } @@ -69,6 +70,8 @@ public: private: void set_all_channels(bool set); + void set_all_channels_conditionally( + function)> cond_func); void populate_group(shared_ptr group, const vector< shared_ptr > sigs); @@ -84,6 +87,10 @@ private Q_SLOTS: void enable_all_channels(); void disable_all_channels(); + void enable_all_logic_channels(); + void enable_all_analog_channels(); + void enable_all_named_channels(); + void enable_all_changing_channels(); private: pv::Session &session_; @@ -95,10 +102,12 @@ private: vector< shared_ptr > group_bindings_; map< QCheckBox*, shared_ptr > check_box_signal_map_; + map< shared_ptr, QLabel*> group_label_map_; - QHBoxLayout buttons_bar_; - QPushButton enable_all_channels_; - QPushButton disable_all_channels_; + QGridLayout buttons_bar_; + QPushButton enable_all_channels_, disable_all_channels_; + QPushButton enable_all_logic_channels_, enable_all_analog_channels_; + QPushButton enable_all_named_channels_, enable_all_changing_channels_; QSignalMapper check_box_mapper_; };