1 /* Hexxagon board game.
2  * Copyright (C) 2001 Erik Jonsson.
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version 2
7  * of the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
17  *
18  * Email hexxagon@nesqi.se
19  *
20  */
21 
22 
23 #ifndef INC_GTKGAMEOVERDIALOG_H
24 #define INC_GTKGAMEOVERDIALOG_H
25 
26 #include <gtkmm.h>
27 #include <libhexx/libhexx.h>
28 #include "gamemodel.h"
29 
30 class GtkGameOverDialog : public Gtk::Dialog, public libhexx::View
31 {
32     public:
33         GtkGameOverDialog(GameModel *g);
34 
35         virtual void updateView();
setGame(GameModel * g)36         void setGame(GameModel *g) { game = g; };
37 
38         void close();
39 
40     private:
41         GtkGameOverDialog();
42 
43         void hideInvisibles();
44 
45         Gtk::VBox vbox;
46             Gtk::Image imgComputerWins;
47             Gtk::Image imgYouWin;
48             Gtk::Image imgDraw;
49 
50             Gtk::Label text;
51 
52         GameModel *game;
53 };
54 
55 #endif //_GAMEOVERDIALOG_H
56