Changed my email in the copyright statements.
[tagua/yd.git] / src / newgame.h
blobd23dad3a14d436488c64f52abf26f8db00afa64b
1 /*
2 Copyright (c) 2006 Paolo Capriotti <p.capriotti@gmail.com>
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.
9 */
11 #ifndef NEWGAME_H
12 #define NEWGAME_H
14 #include "ui_newgamedialog.h"
15 #include "option.h"
17 class QHBoxLayout;
19 class NewGame : public QDialog, public Ui::NewGameDialog {
20 Q_OBJECT
21 bool m_allow_current;
22 OptList m_custom_options;
23 OptionWidget *m_custom_opt_widget;
24 QHBoxLayout *m_custom_opt_layout;
25 public:
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; }
31 private Q_SLOTS:
32 void variantChanged(const QString&);
35 #endif