This commit is contained in:
Liang Ding 2015-01-19 10:19:38 +08:00
parent d39f207c4c
commit 7b62a9b3ed
2 changed files with 16 additions and 2 deletions

View File

@ -1,4 +1,4 @@
// Copyright (c) 2015, B3log
// Copyright (c) 2014-2015, b3log.org
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -28,11 +28,21 @@ import (
"github.com/b3log/wide/util"
)
// Layout represents the layot of a window.
type Layout struct {
State string // min/max/normal
}
// LatestSessionContent represents the latest session content.
type LatestSessionContent struct {
FileTree []string // paths of expanding nodes of file tree
Files []string // paths of files of opening editor tabs
CurrentFile string // path of file of the current focused editor tab
FileTreeLayout *Layout
EditorLayout *Layout
OutlineLayout *Layout
BottomLayout *Layout
}
// User configuration.

View File

@ -23,6 +23,10 @@
"LatestSessionContent": {
"FileTree": [],
"Files": [],
"CurrentFile": ""
"CurrentFile": "",
"FileTreeLayout": null,
"EditorLayout": null,
"OutlineLayout": null,
"BottomLayout": null
}
}