]> sigrok.org Git - pulseview.git/blobdiff - pv/mainwindow.hpp
Main(Window): Let the UI and sessions be restored after w.show()
[pulseview.git] / pv / mainwindow.hpp
index 6541ccc6dff181e2cf386ed75657f5c0ecf11d1c..71cad57817a0554ad832b8710e0dc39dbe8fcc91 100644 (file)
@@ -70,8 +70,6 @@ private:
 
 public:
        explicit MainWindow(DeviceManager &device_manager,
-               string open_file_name = string(),
-               string open_file_format = string(),
                QWidget *parent = nullptr);
 
        ~MainWindow();
@@ -87,11 +85,17 @@ public:
 
        void remove_session(shared_ptr<Session> 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();
 
        shared_ptr<Session> get_tab_session(int index) const;