[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/games/granatier/src
From:       Mathias Kraus <k.hias () gmx ! de>
Date:       2009-09-23 22:17:54
Message-ID: 1253744274.105232.28902.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1027365 by mkraus:

refactoring main.cpp

 M  +25 -24    main.cpp  


--- trunk/playground/games/granatier/src/main.cpp #1027364:1027365
@@ -1,5 +1,5 @@
 /*
- * Copyright 2008 Mathias Kraus <k.hias@gmx.de>
+ * Copyright 2009 Mathias Kraus <k.hias@gmx.de>
  * Copyright 2007-2008 Thomas Gallinari <tg8187@yahoo.fr>
  * 
  * This program is free software; you can redistribute it and/or
@@ -23,31 +23,32 @@
 #include <KCmdLineArgs>
 #include <KApplication>
 
-int main(int argc, char** argv) {
-	// About Granatier
-	KAboutData about("granatier", 0, ki18n("Granatier"), "0.0.1",
-		ki18n("Granatier : Bomberman Clone !"),
-		KAboutData::License_GPL, ki18n("Copyright (c) 2009 The Granatier Team !"));
-	about.addAuthor(ki18n("Mathias Kraus"), ki18n("Developer"), "k.hias@gmx.de", 0);
-	about.addAuthor(ki18n("Thomas Gallinari"), ki18n("Developer"), "tg8187@yahoo.fr", \
                0);
-	about.addAuthor(ki18n("Pierre-Benoit Besse"), ki18n("Developer"), \
                "besse.pb@gmail.com", 0);
-	about.addAuthor(ki18n("Romain Castan"), ki18n("Developer"), \
                "romaincastan@gmail.com", 0);
-	about.addAuthor(ki18n("Alexandre Galinier"), ki18n("Developer"), \
                "alex.galinier@gmail.com", 0);
-	about.addAuthor(ki18n("Nathalie Liesse"), ki18n("Developer"), \
                "nathalie.liesse@gmail.com", 0);
-	// Command line arguments
-	KCmdLineArgs::init(argc, argv, &about);
-	// Create the application
-	KApplication app;
-	// Insert libkdegames catalog, for translation of libkdegames messages
-	KGlobal::locale()->insertCatalog("libkdegames");
+int main(int argc, char** argv)
+{
+    // About Granatier
+    KAboutData about("granatier", 0, ki18n("Granatier"), "0.0.2",
+        ki18n("Granatier is a Bomberman Clone!"),
+        KAboutData::License_GPL, ki18n("Copyright (c) 2009 The Granatier Team!"));
+    about.addAuthor(ki18n("Mathias Kraus"), ki18n("Maintainer"), "k.hias@gmx.de", \
0); +    about.addCredit(ki18n("Thomas Gallinari"), ki18n("Developer of Kapman, which \
was the base of Granatier"), "tg8187@yahoo.fr", 0); +    \
about.addCredit(ki18n("Pierre-Benoit Besse"), ki18n("Developer of Kapman, which was \
the base of Granatier"), "besse.pb@gmail.com", 0); +    about.addCredit(ki18n("Romain \
Castan"), ki18n("Developer of Kapman, which was the base of Granatier"), \
"romaincastan@gmail.com", 0); +    about.addCredit(ki18n("Alexandre Galinier"), \
ki18n("Developer of Kapman, which was the base of Granatier"), \
"alex.galinier@gmail.com", 0); +    about.addCredit(ki18n("Nathalie Liesse"), \
ki18n("Developer of Kapman, which was the base of Granatier"), \
"nathalie.liesse@gmail.com", 0); +    // Command line arguments
+    KCmdLineArgs::init(argc, argv, &about);
+    // Create the application
+    KApplication app;
+    // Insert libkdegames catalog, for translation of libkdegames messages
+    KGlobal::locale()->insertCatalog("libkdegames");
     #ifndef GRANATIER_USE_GLUON
         qWarning() << "Using Phonon for sound. For better sound experience you have \
to build granatier with gluon.";  #endif
-	// Create the main window
-	MainWindow* window = new MainWindow();
-	// Show the main window
-	window->show();
-	// Execute the application
-	return app.exec();
+    // Create the main window
+    MainWindow* window = new MainWindow();
+    // Show the main window
+    window->show();
+    // Execute the application
+    return app.exec();
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic