kigo
Go to the documentation of this file.
24 #include <KCmdLineArgs>
26 #include <KApplication>
39 int main(
int argc,
char *argv[])
41 KAboutData aboutData(
"kigo", 0, ki18n(
"Kigo"),
"0.5.6",
42 ki18n(
"KDE Go Board Game"), KAboutData::License_GPL_V2,
43 ki18n(
"Copyright (c) 2008-2010 Sascha Peilicke"));
44 aboutData.addAuthor(ki18n(
"Sascha Peilicke (saschpe)"), ki18n(
"Original author"),
45 "sasch.pe@gmx.de",
"http://saschpe.wordpress.com");
46 aboutData.addCredit(ki18n(
"Yuri Chornoivan"), ki18n(
"Documentation editor"),
48 aboutData.addCredit(ki18n(
"Arturo Silva"), ki18n(
"Default theme designer"),
49 "jasilva28@gmail.com");
50 aboutData.setHomepage(
"http://games.kde.org/kigo");
52 KCmdLineArgs::init(argc, argv, &aboutData);
54 KCmdLineOptions options;
55 const KLocalizedString& gameToLoad = ki18nc(
"@info:shell",
"Game to load (SGF file)");
56 options.add(
"game", gameToLoad);
57 options.add(
"+[Url]", gameToLoad);
58 KCmdLineArgs::addCmdLineOptions(options);
61 KGlobal::locale()->insertCatalog(
QLatin1String(
"libkdegames" ));
63 if (app.isSessionRestored()) {
66 KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
69 if (args->isSet(
"game")) {
70 game = args->getOption(
"game");
72 if (args->count() == 1) {
The MainWindow class acts as the main window for the Kigo graphical user interface.
int main(int argc, char *argv[])
The standard C/C++ program entry point.
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:29 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.