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

kblackbox

  • sources
  • kde-4.14
  • kdegames
  • kblackbox
main.cpp
Go to the documentation of this file.
1 //
2 // KBlackBox
3 //
4 // A simple game inspired by an emacs module
5 //
6 /***************************************************************************
7  * Copyright (c) 1999-2000, Robert Cimrman *
8  * cimrman3@students.zcu.cz *
9  * *
10  * Copyright (c) 2007, Nicolas Roffet *
11  * nicolas-kde@roffet.com *
12  * *
13  * *
14  * This program is free software; you can redistribute it and/or modify *
15  * it under the terms of the GNU General Public License as published by *
16  * the Free Software Foundation; either version 2 of the License, or *
17  * (at your option) any later version. *
18  * *
19  * This program is distributed in the hope that it will be useful, *
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
22  * GNU General Public License for more details. *
23  * *
24  * You should have received a copy of the GNU General Public License *
25  * along with this program; if not, write to the *
26  * Free Software Foundation, Inc., *
27  * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA *
28  ***************************************************************************/
29 
30 
31 
32 #include <kapplication.h>
33 #include <klocale.h>
34 #include <kcmdlineargs.h>
35 #include <kaboutdata.h>
36 #include <kglobal.h>
37 
38 
39 #include "kbbmainwindow.h"
40 
41 
42 
43 int main( int argc, char **argv )
44 {
45  KAboutData aboutData( "kblackbox", 0, ki18n("KBlackBox"), "0.4.0", ki18n("Find the balls hidden in the black box by shooting laser beams!"), KAboutData::License_GPL, ki18n("(c) 2007, Nicolas Roffet\n(c) 1999-2000, Robert Cimrman"), KLocalizedString(), "http://games.kde.org/kblackbox" );
46  aboutData.addAuthor(ki18n("Nicolas Roffet"),ki18n("Developer of version 0.4."), "nicolas-kde@roffet.com");
47  aboutData.addAuthor(ki18n("Robert Cimrman"),ki18n("Original developer"), "cimrman3@students.zcu.cz");
48  aboutData.addCredit(ki18n("Johann Ollivier Lapeyre"), ki18n("Artist"), "johann.ollivierlapeyre@gmail.com");
49  KCmdLineArgs::init( argc, argv, &aboutData );
50 
51  KApplication application;
52  KGlobal::locale()->insertCatalog( QLatin1String( "libkdegames" ));
53 
54  if (application.isSessionRestored())
55  kRestoreMainWindows<KBBMainWindow>();
56  else {
57  KBBMainWindow *mainWindow = new KBBMainWindow;
58  mainWindow->show();
59  }
60 
61  return application.exec();
62 }
main
int main(int argc, char **argv)
Definition: main.cpp:43
kbbmainwindow.h
KBBMainWindow
Main window of the game KBlackBox.
Definition: kbbmainwindow.h:49
QLatin1String
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kblackbox

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