diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-12 10:28:02 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-12 10:28:02 +0300 |
commit | 1d54f7b990ea7f676403681577fc4df984cab0be (patch) | |
tree | 94a8ac83159f021dbbb354a6d76ecbaf83a63aad /src/ui/documentwidget.h | |
parent | 38e09f15ff3e9c4781236016bfbb0b0f9062590b (diff) |
Save and load app state (tabs, history)
Diffstat (limited to 'src/ui/documentwidget.h')
-rw-r--r-- | src/ui/documentwidget.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ui/documentwidget.h b/src/ui/documentwidget.h index 1e63034b..810c1392 100644 --- a/src/ui/documentwidget.h +++ b/src/ui/documentwidget.h | |||
@@ -1,6 +1,7 @@ | |||
1 | #pragma once | 1 | #pragma once |
2 | 2 | ||
3 | #include "widget.h" | 3 | #include "widget.h" |
4 | #include <the_Foundation/stream.h> | ||
4 | 5 | ||
5 | iDeclareType(GmDocument) | 6 | iDeclareType(GmDocument) |
6 | iDeclareType(History) | 7 | iDeclareType(History) |
@@ -8,6 +9,9 @@ iDeclareType(History) | |||
8 | iDeclareWidgetClass(DocumentWidget) | 9 | iDeclareWidgetClass(DocumentWidget) |
9 | iDeclareObjectConstruction(DocumentWidget) | 10 | iDeclareObjectConstruction(DocumentWidget) |
10 | 11 | ||
12 | void serializeState_DocumentWidget (const iDocumentWidget *, iStream *outs); | ||
13 | void deserializeState_DocumentWidget (iDocumentWidget *, iStream *ins); | ||
14 | |||
11 | iDocumentWidget * duplicate_DocumentWidget (const iDocumentWidget *); | 15 | iDocumentWidget * duplicate_DocumentWidget (const iDocumentWidget *); |
12 | iHistory * history_DocumentWidget (iDocumentWidget *); | 16 | iHistory * history_DocumentWidget (iDocumentWidget *); |
13 | 17 | ||
@@ -16,5 +20,5 @@ iBool isRequestOngoing_DocumentWidget (const iDocumentWidget *); | |||
16 | const iGmDocument * document_DocumentWidget (const iDocumentWidget *); | 20 | const iGmDocument * document_DocumentWidget (const iDocumentWidget *); |
17 | 21 | ||
18 | void setUrl_DocumentWidget (iDocumentWidget *, const iString *url); | 22 | void setUrl_DocumentWidget (iDocumentWidget *, const iString *url); |
19 | void setUrlFromCache_DocumentWidget (iDocumentWidget *d, const iString *url, iBool isFromCache); | 23 | void setUrlFromCache_DocumentWidget (iDocumentWidget *, const iString *url, iBool isFromCache); |
20 | void setInitialScroll_DocumentWidget (iDocumentWidget *, int scrollY); /* set after content received */ | 24 | void setInitialScroll_DocumentWidget (iDocumentWidget *, int scrollY); /* set after content received */ |