X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fmainwindow.hpp;fp=pv%2Fmainwindow.hpp;h=71cad57817a0554ad832b8710e0dc39dbe8fcc91;hp=ab0f871e924ad7d90c7203ab91a502f32ea3344d;hb=3ed18835d80218df744ec539946c2660fe5de812;hpb=e5cc818627748b95b6a6d14cc4cf509ab4669fa8 diff --git a/pv/mainwindow.hpp b/pv/mainwindow.hpp index ab0f871e..71cad578 100644 --- a/pv/mainwindow.hpp +++ b/pv/mainwindow.hpp @@ -70,9 +70,6 @@ private: public: explicit MainWindow(DeviceManager &device_manager, - string open_file_name = string(), - string open_file_format = string(), - bool restore_sessions = true, QWidget *parent = nullptr); ~MainWindow(); @@ -88,12 +85,18 @@ public: void remove_session(shared_ptr session); + void add_session_with_file(string open_file_name, string open_file_format); + + void add_default_session(); + + void save_sessions(); + void restore_sessions(); + private: void setup_ui(); void save_ui_settings(); - - void restore_ui_settings(bool restore_sessions); + void restore_ui_settings(); shared_ptr get_tab_session(int index) const;