• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegames API Reference
  • KDE Home
  • Contact Us
 

libkmahjongg

  • sources
  • kde-4.14
  • kdegames
  • libkmahjongg
kmahjonggconfigdialog.cpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2006 Mauricio Piacentini <mauricio@tabuleiro.com>
3 
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.
8 
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.
13 
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.
17 */
18 
19 #include "kmahjonggconfigdialog.h"
20 
21 #include <klocale.h>
22 #include <kstandarddirs.h>
23 #include <krandom.h>
24 #include <kconfig.h>
25 #include <kdebug.h>
26 
27 #include "kmahjonggtilesetselector.h"
28 #include "kmahjonggbackgroundselector.h"
29 
30 class KMahjonggConfigDialogPrivate
31 {
32 public:
33  KConfigSkeleton * m_config;
34 };
35 
36 KMahjonggConfigDialog::KMahjonggConfigDialog( QWidget *parent, const QString& name,
37  KConfigSkeleton *config)
38  : KConfigDialog(parent, name, config),
39  d(new KMahjonggConfigDialogPrivate)
40 {
41  setFaceType(List);
42  setButtons(Ok | Apply | Cancel | Help);
43  setDefaultButton(Ok);
44  setModal(true);
45  d->m_config = config;
46 }
47 
48 KMahjonggConfigDialog::~KMahjonggConfigDialog()
49 {
50  delete d;
51 }
52 
53 void KMahjonggConfigDialog::addTilesetPage()
54 {
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"), QLatin1String( "games-config-tiles" ));
58 }
59 
60 void KMahjonggConfigDialog::addBackgroundPage()
61 {
62  KMahjonggBackgroundSelector * ts = new KMahjonggBackgroundSelector(this, d->m_config);
63  //TODO: need icon
64  addPage(ts, i18n("Background"), QLatin1String( "games-config-background" ));
65 }
66 
67 void KMahjonggConfigDialog::updateWidgetsDefault()
68 {
69  kDebug() << "updateWidgetsDefault";
70 }
71 /*void KMahjonggConfigDialog::updateWidgets()
72 {
73  kDebug() << "updateWidgets";
74 }
75 void KMahjonggConfigDialog::updateSettings()
76 {
77  kDebug() << "updateSettings";
78 }*/
79 
80 #include "kmahjonggconfigdialog.moc"
QWidget
KMahjonggConfigDialog::~KMahjonggConfigDialog
~KMahjonggConfigDialog()
Definition: kmahjonggconfigdialog.cpp:48
KMahjonggConfigDialog::updateWidgetsDefault
void updateWidgetsDefault()
Definition: kmahjonggconfigdialog.cpp:67
KMahjonggTilesetSelector
Definition: kmahjonggtilesetselector.h:28
kmahjonggbackgroundselector.h
KMahjonggConfigDialog::addTilesetPage
void addTilesetPage()
Definition: kmahjonggconfigdialog.cpp:53
KConfigDialog
KMahjonggBackgroundSelector
Definition: kmahjonggbackgroundselector.h:28
KMahjonggConfigDialog::KMahjonggConfigDialog
KMahjonggConfigDialog(QWidget *parent, const QString &name, KConfigSkeleton *config)
Definition: kmahjonggconfigdialog.cpp:36
QString
kmahjonggconfigdialog.h
QLatin1String
kmahjonggtilesetselector.h
KMahjonggConfigDialog::addBackgroundPage
void addBackgroundPage()
Definition: kmahjonggconfigdialog.cpp:60
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkmahjongg

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

kdegames API Reference

Skip menu "kdegames API Reference"
  • granatier
  • kapman
  • kblackbox
  • kgoldrunner
  • kigo
  • kmahjongg
  • KShisen
  • ksquares
  • libkdegames
  •   highscore
  •   libkdegamesprivate
  •     kgame
  • libkmahjongg
  • palapeli
  •   libpala

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal