X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fpopups%2Fchannels.hpp;h=344d21a824e7bb79e27bc28f0f44054e78d6b24c;hp=e525b4baad13e83d30357d60a964dde096625016;hb=7ceb2376de956f72e2055467efe0a16a68da4bd8;hpb=6f925ba9d6faf1077b73c5a5808259576081716a diff --git a/pv/popups/channels.hpp b/pv/popups/channels.hpp index e525b4ba..344d21a8 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_; @@ -95,15 +103,17 @@ 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_; + 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_; }; -} // popups -} // pv +} // namespace popups +} // namespace pv #endif // PULSEVIEW_PV_POPUPS_CHANNELS_HPP