Support for g++-4.1.
[gf1.git] / callbacks.h
bloba3c77fb2d7925ef076077fdaee1d4072f8b098d3
1 /*
2 ** $Id$
3 */
4 /*
5 ** Copyright (C) 1998 Kurt Van den Branden
6 **
7 ** This program is free software; you can redistribute it and/or modify
8 ** it under the terms of the GNU General Public License as published by
9 ** the Free Software Foundation; either version 2 of the License, or
10 ** (at your option) any later version.
11 **
12 ** This program is distributed in the hope that it will be useful,
13 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ** GNU General Public License for more details.
16 **
17 ** You should have received a copy of the GNU General Public License
18 ** along with this program; if not, write to the Free Software
19 ** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 #ifndef _CALLBACKS_H_
23 #define _CALLBACKS_H_ 1
25 #include <FL/Fl_Window.H>
26 #include <FL/Fl_Button.H>
27 #include <time.h>
28 #include "gipf_ui.H"
29 #include "thegame.h"
31 void show_about (int flag);
32 void remove_about (void * aboutwindow);
34 void gf1_alert (char * message);
35 int gf1_question (char * line1, char * line2);
36 int gf1_questionsave (char * line1, char * line2);
38 void changeinterface (int flag, gamestruct * curgame);
40 enum { /* interface types */
41 INTERFACE_PLAY,
42 INTERFACE_EDIT
45 void setlostcounters (void);
47 extern int interrupt_computer;
48 void stop_thinking (Fl_Button * stopbutton, void * data);
49 Fl_Window * create_thinkwindow (void);
50 void timertostr (float newtimer, char * tempstr);
51 Fl_Window * gf1_help (void);
52 void showhelpsection (void);
53 void setcurrentfilename (const char * str);
54 char * getcurrentfilename (void);
55 const char * file_chooser (char * windowtitle, char * pattern, const char * path);
57 #endif