diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-04-13 15:44:09 +0300 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-04-13 15:44:09 +0300 |
commit | 396bc0c1721af8d3ee970228e7df457f6b2c73d5 (patch) | |
tree | 5aee4f0faec3fdfe616e1684dcb1736be9126bc1 /src/browser.h | |
parent | Add singleapplication.wrap (diff) | |
download | smolbote-396bc0c1721af8d3ee970228e7df457f6b2c73d5.tar.xz |
Rewrite Session backend
Add session.hpp, containing structs that describe session data
MainWindow, SubWindow and WebView can be created from
Session::structs
Opening new window will automatically open a default subwindow and tab
if none were specified
Add lib/session_formats
Add JsonSession, to serialize/deserialize Session structs into JSON
- add some tests
clang-tidy:
- fix various warnings
- disable modernize-use-trailing-return-type check
Diffstat (limited to 'src/browser.h')
-rw-r--r-- | src/browser.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/browser.h b/src/browser.h index 646d57e..95ce936 100644 --- a/src/browser.h +++ b/src/browser.h @@ -9,7 +9,7 @@ #ifndef SMOLBOTE_BROWSER_H #define SMOLBOTE_BROWSER_H -#include "session/session.h" +#include "session.hpp" #include <QJsonObject> #include <QMenu> #include <QPluginLoader> @@ -60,7 +60,7 @@ public: public slots: void showWidget(QWidget *widget, MainWindow *where) const; - MainWindow *createWindow(); + void open(const QVector<Session::MainWindow> &data, bool merge = true); private: struct PluginInfo { |