File: editBoard.h

package info (click to toggle)
cgoban 1.9.14-18
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 3,448 kB
  • sloc: ansic: 36,037; sh: 707; makefile: 259
file content (70 lines) | stat: -rw-r--r-- 1,512 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/*
 * src/editBoard.h, part of Complete Goban (game program)
 * Copyright (C) 1995-1996 William Shubert.
 * See "configure.h.in" for more copyright information.
 */


#ifndef  _EDITBOARD_H_

#ifndef  _CGOBAN_H_
#include "cgoban.h"
#endif
#ifndef  _SGF_H_
#include "sgf.h"
#endif
#ifndef  _GOGAME_H_
#include "goGame.h"
#endif
#ifndef  _GOBAN_H_
#include "goban.h"
#endif
#ifndef  _EDITTOOL_H_
#include "editTool.h"
#endif
#ifndef  _ABUT_FSEL_H_
#include <abut/fsel.h>
#endif
#ifndef  _EDITINFO_H_
#include "editInfo.h"
#endif
#ifdef  _EDITBOARD_H_
  Levelization Error.
#endif
#define  _EDITBOARD_H_  1


/**********************************************************************
 * Data types
 **********************************************************************/
typedef struct EditBoard_struct  {
  Cgoban  *cg;
  Str  fName;
  bool  modified;
  AbutFsel  *fsel;
  AbutMsg  *reallyQuit;
  Sgf  *sgf;
  int  currentNodeNum;
  GoGame  *game;
  Goban  *goban;
  SgfElem  *lastComment;

  EditToolWin  tools;
  EditTool  oldTool;
  But  *shiftKeytrap, *prevVar, *nextVar;
  bool  invertShift;  /* Kludgey.  :-( */
  EditInfo  *info;

  MAGIC_STRUCT
} EditBoard;


/**********************************************************************
 * Functions
 **********************************************************************/
EditBoard  *editBoard_create(Cgoban *cg, const char *fName);
EditBoard  *editBoard_createSgf(Cgoban *cg, const Sgf *sgf);
void  editBoard_destroy(EditBoard *eb);


#endif  /* _EDITBOARD_H_ */