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

kgoldrunner

  • sources
  • kde-4.14
  • kdegames
  • kgoldrunner
  • src
main.cpp
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright 2003 Marco Krüger <grisuji@gmx.de> *
3  * Copyright 2003 Ian Wadham <iandw.au@gmail.com> *
4  * Copyright 2009 Ian Wadham <iandw.au@gmail.com> *
5  * *
6  * This program is free software; you can redistribute it and/or *
7  * modify it under the terms of the GNU General Public License as *
8  * published by the Free Software Foundation; either version 2 of *
9  * the License, or (at your option) any later version. *
10  * *
11  * This program is distributed in the hope that it will be useful, *
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14  * GNU General Public License for more details. *
15  * *
16  * You should have received a copy of the GNU General Public License *
17  * along with this program. If not, see <http://www.gnu.org/licenses/>. *
18  ****************************************************************************/
19 
20 #include <QDebug>
21 #include <kapplication.h>
22 #include <kaboutdata.h>
23 #include <kcmdlineargs.h>
24 #include <klocale.h>
25 #include "kgoldrunner.h"
26 
27 static const char description[] =
28  I18N_NOOP ("KGoldrunner is a game of action and puzzle solving");
29 
30 // The intention is to keep the KGoldrunner version number in line with KDE.
31 static const char version[] = "4.10";
32 
33 static bool gameDataOK();
34 static void addCredits (KAboutData & about);
35 
36 int main (int argc, char **argv)
37 {
38  // Check data integrity and find base directories.
39  if (! gameDataOK()) {
40  // Error message;
41  return 2;
42  }
43 
44  KAboutData about ("kgoldrunner", 0, ki18n ("KGoldrunner"),
45  version, ki18n (description),
46  KAboutData::License_GPL,
47  ki18n ("(C) 2003 Ian Wadham and Marco Krüger"),
48  KLocalizedString(), "http://games.kde.org/kgoldrunner" );
49  addCredits (about);
50 
51  KCmdLineArgs::init (argc, argv, &about);
52 
53  KApplication app;
54  // See if we are starting with session management.
55  if (app.isSessionRestored()) {
56  // New RESTORE (KGrController);
57  RESTORE (KGoldrunner);
58  }
59  else {
60  // New KGrController * controller = new KGrController();
61  // New KGrView * view = new KGrView (controller);
62  // New KGrGame * game = new KGrGame (view);
63  // New controller->makeConnections (game, view);
64  KGoldrunner * controller = new KGoldrunner();
65  controller->show();
66  }
67  return app.exec();
68 }
69 
70 void addCredits (KAboutData & about)
71 {
72  about.addAuthor (ki18n ("Ian Wadham"), ki18n ("Current author"),
73  "iandw.au@gmail.com");
74  about.addAuthor (ki18n ("Marco Krüger"), ki18n ("Original author"),
75  "grisuji@gmx.de");
76  about.addCredit (ki18n ("Mauricio Piacentini"),
77  ki18n ("Port to KDE4, Qt4 and KGameCanvas classes"),
78  "mauricio@tabuleiro.com");
79  about.addCredit (ki18n ("Maurizio Monge"),
80  ki18n ("KGameCanvas classes for KDE4"),
81  "maurizio.monge@gmail.com");
82  about.addCredit (ki18n ("Mauricio Piacentini"),
83  ki18n ("Artwork for runners and default theme"),
84  "mauricio@tabuleiro.com");
85  about.addCredit (ki18n ("Johann Ollivier Lapeyre"),
86  ki18n ("Artwork for bars and ladders"),
87  "johann.ollivierlapeyre@gmail.com");
88  about.addCredit (ki18n ("Eugene Trounev"),
89  ki18n ("Artwork for background of Geek City theme"),
90  "irs_me@hotmail.com");
91  about.addCredit (ki18n ("Luciano Montanaro"),
92  ki18n ("Nostalgia themes, improvements to runners, "
93  "multiple-backgrounds feature, fade-in/fade-out "
94  "feature and several other ideas"),
95  "mikelima@cirulla.net");
96  about.addCredit (ki18n ("Eugene Trounev"),
97  ki18n ("Artwork for the Treasure of Egypt theme"),
98  "irs_me@hotmail.com");
99 }
100 
101 bool gameDataOK()
102 {
103  return true;
104 }
main
int main(int argc, char **argv)
Definition: main.cpp:36
addCredits
static void addCredits(KAboutData &about)
Definition: main.cpp:70
gameDataOK
static bool gameDataOK()
Definition: main.cpp:101
kgoldrunner.h
description
static const char description[]
Definition: main.cpp:27
KGoldrunner
This class serves as the main window for KGoldrunner.
Definition: kgoldrunner.h:42
version
static const char version[]
Definition: main.cpp:31
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:24 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kgoldrunner

Skip menu "kgoldrunner"
  • 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