diff --git a/conf/user.go b/conf/user.go index 4aedc90..41d2851 100644 --- a/conf/user.go +++ b/conf/user.go @@ -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. diff --git a/conf/users/admin.json b/conf/users/admin.json index e3e21a9..4818c5d 100644 --- a/conf/users/admin.json +++ b/conf/users/admin.json @@ -23,6 +23,10 @@ "LatestSessionContent": { "FileTree": [], "Files": [], - "CurrentFile": "" + "CurrentFile": "", + "FileTreeLayout": null, + "EditorLayout": null, + "OutlineLayout": null, + "BottomLayout": null } } \ No newline at end of file