1 /*
2  * src/editBoard.h, part of Complete Goban (game program)
3  * Copyright (C) 1995-1996 William Shubert.
4  * See "configure.h.in" for more copyright information.
5  */
6 
7 
8 #ifndef  _EDITBOARD_H_
9 
10 #ifndef  _CGOBAN_H_
11 #include "cgoban.h"
12 #endif
13 #ifndef  _SGF_H_
14 #include "sgf.h"
15 #endif
16 #ifndef  _GOGAME_H_
17 #include "goGame.h"
18 #endif
19 #ifndef  _GOBAN_H_
20 #include "goban.h"
21 #endif
22 #ifndef  _EDITTOOL_H_
23 #include "editTool.h"
24 #endif
25 #ifndef  _ABUT_FSEL_H_
26 #include <abut/fsel.h>
27 #endif
28 #ifndef  _EDITINFO_H_
29 #include "editInfo.h"
30 #endif
31 #ifdef  _EDITBOARD_H_
32   Levelization Error.
33 #endif
34 #define  _EDITBOARD_H_  1
35 
36 
37 /**********************************************************************
38  * Data types
39  **********************************************************************/
40 typedef struct EditBoard_struct  {
41   Cgoban  *cg;
42   Str  fName;
43   bool  modified;
44   AbutFsel  *fsel;
45   AbutMsg  *reallyQuit;
46   Sgf  *sgf;
47   int  currentNodeNum;
48   GoGame  *game;
49   Goban  *goban;
50   SgfElem  *lastComment;
51 
52   EditToolWin  tools;
53   EditTool  oldTool;
54   But  *shiftKeytrap, *prevVar, *nextVar;
55   bool  invertShift;  /* Kludgey.  :-( */
56   EditInfo  *info;
57 
58   MAGIC_STRUCT
59 } EditBoard;
60 
61 
62 /**********************************************************************
63  * Functions
64  **********************************************************************/
65 EditBoard  *editBoard_create(Cgoban *cg, const char *fName);
66 EditBoard  *editBoard_createSgf(Cgoban *cg, const Sgf *sgf);
67 void  editBoard_destroy(EditBoard *eb);
68 
69 
70 #endif  /* _EDITBOARD_H_ */
71