1 /* Copyright (c) 2008, 2009
2  *      Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de)
3  *      Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de)
4  *      Micah Cowan (micah@cowan.name)
5  *      Sadrul Habib Chowdhury (sadrul@users.sourceforge.net)
6  * Copyright (c) 1993-2002, 2003, 2005, 2006, 2007
7  *      Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de)
8  *      Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de)
9  * Copyright (c) 1987 Oliver Laumann
10  *
11  * This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 3, or (at your option)
14  * any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program (see the file COPYING); if not, see
23  * https://www.gnu.org/licenses/, or contact Free Software Foundation, Inc.,
24  * 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
25  *
26  ****************************************************************
27  * $Id$ GNU
28  */
29 
30 #ifndef SCREEN_LAYOUT_H
31 #define SCREEN_LAYOUT_H
32 
33 #include "canvas.h"
34 
35 #define MAXLAY 10
36 
37 struct layout
38 {
39   struct layout   *lay_next;
40   char            *lay_title;
41   int              lay_number;
42   struct canvas    lay_canvas;
43   struct canvas   *lay_forecv;
44   struct canvas   *lay_cvlist;
45   int              lay_autosave;
46 };
47 
48 extern void  AutosaveLayout __P((struct layout *));
49 extern void  LoadLayout __P((struct layout *, struct canvas *));
50 extern void  NewLayout __P((char *, int));
51 extern void  SaveLayout __P((char *, struct canvas *));
52 extern void  ShowLayouts __P((int));
53 extern struct layout *FindLayout __P((char *));
54 extern void  UpdateLayoutCanvas __P((struct canvas *, struct win *));
55 extern struct layout *CreateLayout __P((char *, int));
56 extern void  RemoveLayout __P((struct layout *));
57 extern int   LayoutDumpCanvas __P((struct canvas *, char *));
58 
59 extern void RenameLayout __P((struct layout *, const char *));
60 extern int RenumberLayout __P((struct layout *, int));
61 
62 #endif /* SCREEN_LAYOUT_H */
63 
64