summaryrefslogtreecommitdiff
path: root/src/ui/documentwidget.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-08-12 10:28:02 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-08-12 10:28:02 +0300
commit1d54f7b990ea7f676403681577fc4df984cab0be (patch)
tree94a8ac83159f021dbbb354a6d76ecbaf83a63aad /src/ui/documentwidget.h
parent38e09f15ff3e9c4781236016bfbb0b0f9062590b (diff)
Save and load app state (tabs, history)
Diffstat (limited to 'src/ui/documentwidget.h')
-rw-r--r--src/ui/documentwidget.h6
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
5iDeclareType(GmDocument) 6iDeclareType(GmDocument)
6iDeclareType(History) 7iDeclareType(History)
@@ -8,6 +9,9 @@ iDeclareType(History)
8iDeclareWidgetClass(DocumentWidget) 9iDeclareWidgetClass(DocumentWidget)
9iDeclareObjectConstruction(DocumentWidget) 10iDeclareObjectConstruction(DocumentWidget)
10 11
12void serializeState_DocumentWidget (const iDocumentWidget *, iStream *outs);
13void deserializeState_DocumentWidget (iDocumentWidget *, iStream *ins);
14
11iDocumentWidget * duplicate_DocumentWidget (const iDocumentWidget *); 15iDocumentWidget * duplicate_DocumentWidget (const iDocumentWidget *);
12iHistory * history_DocumentWidget (iDocumentWidget *); 16iHistory * history_DocumentWidget (iDocumentWidget *);
13 17
@@ -16,5 +20,5 @@ iBool isRequestOngoing_DocumentWidget (const iDocumentWidget *);
16const iGmDocument * document_DocumentWidget (const iDocumentWidget *); 20const iGmDocument * document_DocumentWidget (const iDocumentWidget *);
17 21
18void setUrl_DocumentWidget (iDocumentWidget *, const iString *url); 22void setUrl_DocumentWidget (iDocumentWidget *, const iString *url);
19void setUrlFromCache_DocumentWidget (iDocumentWidget *d, const iString *url, iBool isFromCache); 23void setUrlFromCache_DocumentWidget (iDocumentWidget *, const iString *url, iBool isFromCache);
20void setInitialScroll_DocumentWidget (iDocumentWidget *, int scrollY); /* set after content received */ 24void setInitialScroll_DocumentWidget (iDocumentWidget *, int scrollY); /* set after content received */