1/*
2 KMahjonggLayoutSelector
3 Part of kmahjongg, the classic mahjongg game for KDE
4
5 Copyright (C) 2007 Mauricio Piacentini <mauricio@tabuleiro.com>
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20
21*/
22
23#ifndef _KMAHJONGGLAYOUTSELECTOR_H
24#define _KMAHJONGGLAYOUTSELECTOR_H
25
26#include <QMap>
27#include <KConfigSkeleton>
28#include "ui_gametype.h"
29
30class KMahjonggLayout;
31class BoardWidget;
32
33class KMahjonggLayoutSelector : public QWidget, public Ui::KMahjonggLayoutSelector
34{
35 Q_OBJECT
36 public:
37 explicit KMahjonggLayoutSelector( QWidget* parent, KConfigSkeleton * config );
38
39 void setupData(KConfigSkeleton * config);
40
41 QMap<QString, KMahjonggLayout *> layoutMap;
42 public slots:
43 void layoutChanged();
44 void useRandomLayoutToggled(bool);
45 private:
46 BoardWidget * bw;
47};
48
49#endif
50