2 Copyright (C) 2006 Mauricio Piacentini <mauricio@tabuleiro.com>
4 Libkmahjongg 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.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 #include "kmahjonggconfigdialog.h"
22 #include <kstandarddirs.h>
27 #include "kmahjonggtilesetselector.h"
28 #include "kmahjonggbackgroundselector.h"
30 class KMahjonggConfigDialogPrivate
33 KConfigSkeleton
* m_config
;
36 KMahjonggConfigDialog::KMahjonggConfigDialog( QWidget
*parent
, const QString
& name
,
37 KConfigSkeleton
*config
)
38 : KConfigDialog(parent
, name
, config
),
39 d(new KMahjonggConfigDialogPrivate
)
42 setButtons(Ok
| Apply
| Cancel
| Help
);
48 KMahjonggConfigDialog::~KMahjonggConfigDialog()
53 void KMahjonggConfigDialog::addTilesetPage()
55 KMahjonggTilesetSelector
* ts
= new KMahjonggTilesetSelector(this, d
->m_config
);
56 //TODO: Use the cards icon for our page for now, need to get one for tilesets made
57 addPage(ts
, i18n("Tiles"), "games-config-tiles");
60 void KMahjonggConfigDialog::addBackgroundPage()
62 KMahjonggBackgroundSelector
* ts
= new KMahjonggBackgroundSelector(this, d
->m_config
);
64 addPage(ts
, i18n("Background"), "games-config-background");
67 void KMahjonggConfigDialog::updateWidgetsDefault()
69 kDebug() << "updateWidgetsDefault";
71 /*void KMahjonggConfigDialog::updateWidgets()
73 kDebug() << "updateWidgets";
75 void KMahjonggConfigDialog::updateSettings()
77 kDebug() << "updateSettings";
80 #include "kmahjonggconfigdialog.moc"