X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Ftoolbars%2Fmainbar.hpp;h=6e2a706833bc566c687e3d20a6bc7da51919de04;hp=d5d42f5080497840eafc95db258f1ea19e4ca628;hb=9dd888899b1318787ffae6db62f4948b9aee2b84;hpb=87f0df9b4a357ea9e2d838be7663580e94beca68 diff --git a/pv/toolbars/mainbar.hpp b/pv/toolbars/mainbar.hpp index d5d42f50..6e2a7068 100644 --- a/pv/toolbars/mainbar.hpp +++ b/pv/toolbars/mainbar.hpp @@ -18,8 +18,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef PULSEVIEW_PV_TOOLBARS_MAINBAR_H -#define PULSEVIEW_PV_TOOLBARS_MAINBAR_H +#ifndef PULSEVIEW_PV_TOOLBARS_MAINBAR_HPP +#define PULSEVIEW_PV_TOOLBARS_MAINBAR_HPP #include @@ -28,15 +28,18 @@ #include #include +#include #include #include #include +#include #include #include namespace sigrok { - class Device; +class Device; +class InputFormat; } Q_DECLARE_METATYPE(std::shared_ptr) @@ -62,17 +65,10 @@ private: public: MainBar(Session &session, pv::MainWindow &main_window); - void set_device_list( - const std::list< std::shared_ptr > &devices, - std::shared_ptr selected); - - std::shared_ptr get_selected_device() const; + void update_device_list(); void set_capture_state(pv::Session::capture_state state); -Q_SIGNALS: - void run_stop(); - private: void update_sample_rate_selector(); void update_sample_rate_selector_value(); @@ -96,13 +92,13 @@ private: Session &session_; MainWindow &main_window_; - QComboBox device_selector_; - bool updating_device_selector_; + pv::widgets::DeviceToolButton device_selector_; pv::widgets::PopupToolButton configure_button_; QAction *configure_button_action_; pv::widgets::PopupToolButton channels_button_; + QAction *channels_button_action_; pv::widgets::SweepTimingWidget sample_count_; pv::widgets::SweepTimingWidget sample_rate_; @@ -115,6 +111,7 @@ private: QIcon icon_green_; QIcon icon_grey_; QToolButton run_stop_button_; + QAction *run_stop_button_action_; QToolButton menu_button_; }; @@ -122,4 +119,4 @@ private: } // namespace toolbars } // namespace pv -#endif // PULSEVIEW_PV_TOOLBARS_MAINBAR_H +#endif // PULSEVIEW_PV_TOOLBARS_MAINBAR_HPP