Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Games
KGoldrunner
Commits
312a6609
Commit
312a6609
authored
Jan 07, 2015
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kdelibs4support--
parent
e426caac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
28 deletions
+37
-28
src/main.cpp
src/main.cpp
+37
-28
No files found.
src/main.cpp
View file @
312a6609
...
...
@@ -18,10 +18,13 @@
****************************************************************************/
#include <QDebug>
#include <kapplication.h>
#include <K
4
AboutData>
#include <kcmdlineargs.h>
#include <KAboutData>
#include <klocale.h>
#include <QApplication>
#include <KLocalizedString>
#include <QCommandLineParser>
#include "kgoldrunner.h"
static
const
char
description
[]
=
...
...
@@ -31,7 +34,7 @@ static const char description[] =
static
const
char
version
[]
=
"4.10"
;
static
bool
gameDataOK
();
static
void
addCredits
(
K
4
AboutData
&
about
);
static
void
addCredits
(
KAboutData
&
about
);
int
main
(
int
argc
,
char
**
argv
)
{
...
...
@@ -41,16 +44,22 @@ int main (int argc, char **argv)
return
2
;
}
K
4
AboutData
about
(
"kgoldrunner"
,
0
,
k
i18n
(
"KGoldrunner"
),
version
,
k
i18n
(
description
),
K
4
About
Data
::
License
_
GPL
,
k
i18n
(
"(C) 2003 Ian Wadham and Marco Krüger"
),
KLocalizedString
(),
"http://games.kde.org/kgoldrunner"
);
KAboutData
about
(
"kgoldrunner"
,
i18n
(
"KGoldrunner"
),
version
,
i18n
(
description
),
KAboutLicense
::
GPL
,
i18n
(
"(C) 2003 Ian Wadham and Marco Krüger"
),
"http://games.kde.org/kgoldrunner"
);
addCredits
(
about
);
KCmdLineArgs
::
init
(
argc
,
argv
,
&
about
);
QApplication
app
(
argc
,
argv
);
QCommandLineParser
parser
;
KAboutData
::
setApplicationData
(
about
);
parser
.
addVersionOption
();
parser
.
addHelpOption
();
about
.
setupCommandLine
(
&
parser
);
parser
.
process
(
app
);
about
.
processCommandLine
(
&
parser
);
KApplication
app
;
// See if we are starting with session management.
if
(
app
.
isSessionRestored
())
{
// New RESTORE (KGrController);
...
...
@@ -67,34 +76,34 @@ int main (int argc, char **argv)
return
app
.
exec
();
}
void
addCredits
(
K
4
AboutData
&
about
)
void
addCredits
(
KAboutData
&
about
)
{
about
.
addAuthor
(
k
i18n
(
"Ian Wadham"
),
k
i18n
(
"Current author"
),
about
.
addAuthor
(
i18n
(
"Ian Wadham"
),
i18n
(
"Current author"
),
"iandw.au@gmail.com"
);
about
.
addAuthor
(
k
i18n
(
"Marco Krüger"
),
k
i18n
(
"Original author"
),
about
.
addAuthor
(
i18n
(
"Marco Krüger"
),
i18n
(
"Original author"
),
"grisuji@gmx.de"
);
about
.
addCredit
(
k
i18n
(
"Mauricio Piacentini"
),
k
i18n
(
"Port to KDE4, Qt4 and KGameCanvas classes"
),
about
.
addCredit
(
i18n
(
"Mauricio Piacentini"
),
i18n
(
"Port to KDE4, Qt4 and KGameCanvas classes"
),
"mauricio@tabuleiro.com"
);
about
.
addCredit
(
k
i18n
(
"Maurizio Monge"
),
k
i18n
(
"KGameCanvas classes for KDE4"
),
about
.
addCredit
(
i18n
(
"Maurizio Monge"
),
i18n
(
"KGameCanvas classes for KDE4"
),
"maurizio.monge@gmail.com"
);
about
.
addCredit
(
k
i18n
(
"Mauricio Piacentini"
),
k
i18n
(
"Artwork for runners and default theme"
),
about
.
addCredit
(
i18n
(
"Mauricio Piacentini"
),
i18n
(
"Artwork for runners and default theme"
),
"mauricio@tabuleiro.com"
);
about
.
addCredit
(
k
i18n
(
"Johann Ollivier Lapeyre"
),
k
i18n
(
"Artwork for bars and ladders"
),
about
.
addCredit
(
i18n
(
"Johann Ollivier Lapeyre"
),
i18n
(
"Artwork for bars and ladders"
),
"johann.ollivierlapeyre@gmail.com"
);
about
.
addCredit
(
k
i18n
(
"Eugene Trounev"
),
k
i18n
(
"Artwork for background of Geek City theme"
),
about
.
addCredit
(
i18n
(
"Eugene Trounev"
),
i18n
(
"Artwork for background of Geek City theme"
),
"irs_me@hotmail.com"
);
about
.
addCredit
(
k
i18n
(
"Luciano Montanaro"
),
k
i18n
(
"Nostalgia themes, improvements to runners, "
about
.
addCredit
(
i18n
(
"Luciano Montanaro"
),
i18n
(
"Nostalgia themes, improvements to runners, "
"multiple-backgrounds feature, fade-in/fade-out "
"feature and several other ideas"
),
"mikelima@cirulla.net"
);
about
.
addCredit
(
k
i18n
(
"Eugene Trounev"
),
k
i18n
(
"Artwork for the Treasure of Egypt theme"
),
about
.
addCredit
(
i18n
(
"Eugene Trounev"
),
i18n
(
"Artwork for the Treasure of Egypt theme"
),
"irs_me@hotmail.com"
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment