2 Copyright (c) 2007 Paolo Capriotti <p.capriotti@gmail.com>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
25 class SimpleMenu
: public QObject
28 WelcomeScreen
* m_screen
;
30 Button
* m_local_game_btn
;
49 void finalize(State
, const QString
& nick
, QTcpSocket
* socket
= 0);
51 SimpleMenu(QWidget
* parent
, WelcomeScreen
* screen
);
53 void setupController(Controller
* controller
, Entity
* old_opponent
,
54 SeaView
* sea
, ChatWidget
* chat
, bool ask
= false);
55 void createClient(const KUrl
& url
);
58 Entity
* player(int p
) { return p
== 0 ? m_player1
: m_player2
; }
60 static const char* iconLocal
;
61 static const char* iconServer
;
62 static const char* iconClient
;
72 #endif // SIMPLEMENU_H