• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

libkmahjongg

kmahjonggconfigdialog.cpp

Go to the documentation of this file.
00001 /*
00002     Copyright (C) 2006 Mauricio Piacentini  <mauricio@tabuleiro.com>
00003 
00004     Libkmahjongg is free software; you can redistribute it and/or modify
00005     it under the terms of the GNU General Public License as published by
00006     the Free Software Foundation; either version 2 of the License, or
00007     (at your option) any later version.
00008 
00009     This program is distributed in the hope that it will be useful,
00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012     GNU General Public License for more details.
00013 
00014     You should have received a copy of the GNU General Public License
00015     along with this program; if not, write to the Free Software
00016     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00017 */
00018 
00019 #include "kmahjonggconfigdialog.h"
00020 
00021 #include <klocale.h>
00022 #include <kstandarddirs.h>
00023 #include <krandom.h>
00024 #include <kconfig.h>
00025 #include <kdebug.h>
00026 
00027 #include "kmahjonggtilesetselector.h"
00028 #include "kmahjonggbackgroundselector.h"
00029 
00030 class KMahjonggConfigDialogPrivate
00031 {
00032 public:
00033     KConfigSkeleton * m_config;
00034 };
00035 
00036 KMahjonggConfigDialog::KMahjonggConfigDialog( QWidget *parent, const QString& name,
00037                  KConfigSkeleton *config)
00038     : KConfigDialog(parent, name, config),
00039       d(new KMahjonggConfigDialogPrivate)
00040 {
00041     setFaceType(List);
00042     setButtons(Ok | Apply | Cancel | Help);
00043     setDefaultButton(Ok);
00044     setModal(true);
00045     d->m_config = config;
00046 }
00047 
00048 KMahjonggConfigDialog::~KMahjonggConfigDialog()
00049 {
00050     delete d;
00051 }
00052 
00053 void KMahjonggConfigDialog::addTilesetPage()
00054 {
00055   KMahjonggTilesetSelector * ts = new KMahjonggTilesetSelector(this, d->m_config);
00056   //TODO: Use the cards icon for our page for now, need to get one for tilesets made
00057   addPage(ts, i18n("Tiles"), "games-config-tiles");
00058 }
00059 
00060 void KMahjonggConfigDialog::addBackgroundPage()
00061 {
00062   KMahjonggBackgroundSelector * ts = new KMahjonggBackgroundSelector(this, d->m_config);
00063   //TODO: need icon
00064   addPage(ts, i18n("Background"), "games-config-background");
00065 }
00066 
00067 void KMahjonggConfigDialog::updateWidgetsDefault()
00068 {
00069     kDebug() << "updateWidgetsDefault";
00070 }
00071 /*void KMahjonggConfigDialog::updateWidgets()
00072 {
00073     kDebug() << "updateWidgets";
00074 }
00075 void KMahjonggConfigDialog::updateSettings()
00076 {
00077     kDebug() << "updateSettings";
00078 }*/
00079 
00080 #include "kmahjonggconfigdialog.moc"

libkmahjongg

Skip menu "libkmahjongg"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

API Reference

Skip menu "API Reference"
  • kblackbox
  • kgoldrunner
  • kmahjongg
  • ksquares
  • libkdegames
  •   highscore
  •   kgame
  •   kggzgames
  •   kggzmod
  •   kggznet
  • libkmahjongg
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal