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/session/savesessiondialog.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/session/savesessiondialog.h')
-rw-r--r-- | src/session/savesessiondialog.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/session/savesessiondialog.h b/src/session/savesessiondialog.h index ade1d23..8a162d1 100644 --- a/src/session/savesessiondialog.h +++ b/src/session/savesessiondialog.h @@ -1,7 +1,7 @@ /* * This file is part of smolbote. It's copyrighted by the contributors recorded * in the version control history of the file, available from its original - * location: https://neueland.iserlohn-fortress.net/gitea/aqua/smolbote + * location: https://library.iserlohn-fortress.net/aqua/smolbote.git * * SPDX-License-Identifier: GPL-3.0 */ @@ -22,7 +22,11 @@ class SaveSessionDialog : public QDialog public: explicit SaveSessionDialog(QWidget *parent = nullptr); - ~SaveSessionDialog(); + explicit SaveSessionDialog(const SaveSessionDialog &) = delete; + explicit SaveSessionDialog(SaveSessionDialog &&) = delete; + SaveSessionDialog &operator=(const SaveSessionDialog &) = delete; + SaveSessionDialog &operator=(SaveSessionDialog &&) = delete; + ~SaveSessionDialog() override; public slots: void save(const QString &sessionPath); |