projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename ViewItem::point() to ViewItem::drag_point() for clarity
[pulseview.git]
/
pv
/
mainwindow.hpp
diff --git
a/pv/mainwindow.hpp
b/pv/mainwindow.hpp
index ab0f871e924ad7d90c7203ab91a502f32ea3344d..71cad57817a0554ad832b8710e0dc39dbe8fcc91 100644
(file)
--- a/
pv/mainwindow.hpp
+++ b/
pv/mainwindow.hpp
@@
-70,9
+70,6
@@
private:
public:
explicit MainWindow(DeviceManager &device_manager,
public:
explicit MainWindow(DeviceManager &device_manager,
- string open_file_name = string(),
- string open_file_format = string(),
- bool restore_sessions = true,
QWidget *parent = nullptr);
~MainWindow();
QWidget *parent = nullptr);
~MainWindow();
@@
-88,12
+85,18
@@
public:
void remove_session(shared_ptr<Session> session);
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();
private:
void setup_ui();
void save_ui_settings();
-
- void restore_ui_settings(bool restore_sessions);
+ void restore_ui_settings();
shared_ptr<Session> get_tab_session(int index) const;
shared_ptr<Session> get_tab_session(int index) const;