X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fpopups%2Fchannels.hpp;h=344d21a824e7bb79e27bc28f0f44054e78d6b24c;hp=b23af57046d808252ac7e8b6594c470926bcd87c;hb=7ceb2376de956f72e2055467efe0a16a68da4bd8;hpb=b5d20c6d003d853ad0828d15b365988519e73e88 diff --git a/pv/popups/channels.hpp b/pv/popups/channels.hpp index b23af57..344d21a 100644 --- a/pv/popups/channels.hpp +++ b/pv/popups/channels.hpp @@ -20,24 +20,26 @@ #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 +71,8 @@ public: private: void set_all_channels(bool set); + void enable_channels_conditionally( + function)> cond_func); void populate_group(shared_ptr group, const vector< shared_ptr > sigs); @@ -84,6 +88,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_; @@ -98,8 +106,9 @@ private: map< shared_ptr, QLabel*> group_label_map_; QHBoxLayout buttons_bar_; - QPushButton enable_all_channels_; - QPushButton disable_all_channels_; + 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_; };