X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fmainwindow.hpp;h=42462d22a7cca0d9ff13ab844897e240a51f8968;hb=7c65709437184b09753d1bcacc02467b8f6171f1;hp=eee1d855d072c561e123c935aca1301bb0168c56;hpb=4e7f5ba834f5bafd9fb5c7a6edb30748b2f93c59;p=pulseview.git diff --git a/pv/mainwindow.hpp b/pv/mainwindow.hpp index eee1d855..42462d22 100644 --- a/pv/mainwindow.hpp +++ b/pv/mainwindow.hpp @@ -26,19 +26,23 @@ #include -#include "sigsession.hpp" +#include "session.hpp" struct srd_decoder; class QVBoxLayout; +namespace sigrok { +class Device; +} + namespace pv { class DeviceManager; namespace toolbars { class ContextBar; -class SamplingBar; +class MainBar; } namespace view { @@ -60,6 +64,8 @@ public: void run_stop(); + void select_device(std::shared_ptr device); + private: void setup_ui(); @@ -120,14 +126,14 @@ private: DeviceManager &device_manager_; - SigSession session_; + Session session_; pv::view::View *view_; QWidget *central_widget_; QVBoxLayout *vertical_layout_; - toolbars::SamplingBar *sampling_bar_; + toolbars::MainBar *main_bar_; }; } // namespace pv