update year in copyright info
[xboard.git] / interface.h
1 /*
2  * interface.h -- gtk-interface
3  *
4  * Copyright 2009, 2010 Free Software Foundation, Inc.
5  *
6  * GNU XBoard is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or (at
9  * your option) any later version.
10  *
11  * GNU XBoard is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program. If not, see http://www.gnu.org/licenses/.  *
18  *
19  *------------------------------------------------------------------------
20  ** See the file ChangeLog for a revision history.  */
21
22 /* GTK widgets */
23 GtkBuilder              *builder=NULL;
24
25 GtkWidget               *GUI_Window=NULL;
26 GtkWidget               *GUI_Aspect=NULL;
27 GtkWidget               *GUI_History=NULL;
28 GtkWidget               *GUI_GameList=NULL;
29 GtkWidget               *GUI_Board=NULL;
30 GtkWidget               *GUI_Whiteclock=NULL;
31 GtkWidget               *GUI_Blackclock=NULL;
32 GtkWidget               *GUI_Error=NULL;
33 GtkWidget               *GUI_Menubar=NULL;
34 GtkWidget               *GUI_Timer=NULL;
35 GtkWidget               *GUI_Buttonbar=NULL;
36 GtkWidget               *GUI_EditTags=NULL;
37 GtkWidget               *GUI_EditTagsTextArea=NULL;
38
39 GtkListStore            *LIST_MoveHistory=NULL;
40 GtkListStore            *LIST_GameList=NULL;
41
42 GtkTreeView             *TREE_History=NULL;
43 GtkTreeView             *TREE_Game=NULL;
44
45 gint                     boardWidth;
46 gint                     boardHeight;
47
48
49 GdkPixbuf               *WindowIcon=NULL;
50 GdkPixbuf               *WhiteIcon=NULL;
51 GdkPixbuf               *BlackIcon=NULL;
52 #define MAXPIECES 100
53 GdkPixbuf               *SVGpieces[MAXPIECES];
54 GdkPixbuf               *SVGLightSquare=NULL;
55 GdkPixbuf               *SVGDarkSquare=NULL;
56 GdkPixbuf               *SVGNeutralSquare=NULL;
57
58 GdkCursor               *BoardCursor=NULL;
59
60
61 GdkPixbuf *load_pixbuf P((char *filename,int size));
62 void FileNamePopUp P((char *label, char *def,
63                       FileProc proc, char *openMode));