Make the fact that the time is shown in hours and minutes more explicit.
[kdegames.git] / libkmahjongg / kmahjonggconfigdialog.cpp
blob3e6cd14b64a3020b055804e67be6998c40a9c21d
1 /*
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"
21 #include <klocale.h>
22 #include <kstandarddirs.h>
23 #include <krandom.h>
24 #include <kconfig.h>
25 #include <kdebug.h>
27 #include "kmahjonggtilesetselector.h"
28 #include "kmahjonggbackgroundselector.h"
30 class KMahjonggConfigDialogPrivate
32 public:
33 KConfigSkeleton * m_config;
36 KMahjonggConfigDialog::KMahjonggConfigDialog( QWidget *parent, const QString& name,
37 KConfigSkeleton *config)
38 : KConfigDialog(parent, name, config),
39 d(new KMahjonggConfigDialogPrivate)
41 setFaceType(List);
42 setButtons(Ok | Apply | Cancel | Help);
43 setDefaultButton(Ok);
44 setModal(true);
45 d->m_config = config;
48 KMahjonggConfigDialog::~KMahjonggConfigDialog()
50 delete d;
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);
63 //TODO: need icon
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";
78 }*/
80 #include "kmahjonggconfigdialog.moc"