src/menu/internet_menu.h

Go to the documentation of this file.
00001 /******************************************************************************
00002  *  Wormux is a convivial mass murder game.
00003  *  Copyright (C) 2001-2004 Lawrence Azzoug.
00004  *
00005  *  This program is free software; you can redistribute it and/or modify
00006  *  it under the terms of the GNU General Public License as published by
00007  *  the Free Software Foundation; either version 2 of the License, or
00008  *  (at your option) any later version.
00009  *
00010  *  This program is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *  GNU General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU General Public License
00016  *  along with this program; if not, write to the Free Software
00017  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
00018  ******************************************************************************
00019  * Network connection menu: this menu allows the user to choose between
00020  * hosting a game or connecting to a server.
00021  *****************************************************************************/
00022 
00023 #ifndef INTERNET_MENU_H
00024 #define INTERNET_MENU_H
00025 
00026 #include <list>
00027 #include "menu.h"
00028 #include "../gui/button_text.h"
00029 
00030 class InternetMenu : public Menu
00031 {
00032    Font * normal_font;
00033    Font * big_font;
00034 
00035    VBox* connection_box;
00036    ListBox* connect_lst;
00037    ButtonText* refresh;
00038    ButtonText* connect;
00039 
00040    void OnClic(const Point2i &mousePosition, int button);
00041    void Draw(const Point2i &mousePosition);
00042    void RefreshList();
00043 
00044    void __sig_ok();
00045    void __sig_cancel();
00046 
00047 public:
00048    InternetMenu(); 
00049    ~InternetMenu();
00050 };
00051 
00052 #endif

Generated on Mon Jan 1 13:10:58 2007 for Wormux by  doxygen 1.4.7