2 Copyright (c) 2006 Paolo Capriotti <p.capriotti@sns.it>
3 (c) 2006 Maurizio Monge <maurizio.monge@kdemail.net>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
14 #include "ui_newgamedialog.h"
19 class NewGame
: public QDialog
, public Ui::NewGameDialog
{
22 OptList m_custom_options
;
23 OptionWidget
*m_custom_opt_widget
;
24 QHBoxLayout
*m_custom_opt_layout
;
26 NewGame(QWidget
* parent
= 0, bool allowCurrent
= false);
27 QString
variant() const;
28 bool playFromCurrent() const;
29 bool isCustom() const;
30 OptList
customOptions() { return m_custom_options
; }
32 void variantChanged(const QString
&);