1 /***************************************************************************
4 begin : mer jui 11 22:27:28 EDT 2001
5 copyright : (C) 2001 by Gaël de Chalendar
6 email : Gael.de.Chalendar@free.fr
8 This is the standard main function of a KDE application
10 KsirK is free software; you can redistribute it and/or
11 modify it under the terms of the GNU General Public
12 License as published by the Free Software Foundation, version 2.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
24 ***************************************************************************/
26 #include "mainwindow.h"
28 #include <KCmdLineArgs>
32 #include <KApplication>
35 static const char *description
=
36 I18N_NOOP("KsirK Skin Editor");
37 // INSERT A DESCRIPTION FOR YOUR APPLICATION HERE
40 int main(int argc
, char *argv
[])
42 kDebug() << "Hello World!";
43 KAboutData
aboutData( "ksirkskineditor", 0, ki18n("KsirK Skin Editor"),
44 KDE_VERSION_STRING
, ki18n(description
), KAboutData::License_GPL
,
45 ki18n("(c) 2008, Gaël de Chalendar\n"), ki18n("For help and user manuel, please see\nThe KsirK Web site"), "http://games.kde.org/game.php?game=ksirk", "kleag@free.fr");
46 aboutData
.addAuthor(ki18n("Gael de Chalendar aka Kleag"),KLocalizedString(), "kleag@free.fr");
47 KCmdLineArgs::init( argc
, argv
, &aboutData
);
49 KCmdLineOptions options
;
50 options
.add("+[File]", ki18n("file to open"));
51 KCmdLineArgs::addCmdLineOptions( options
); // Add our own options.
55 if (app
.isSessionRestored())
57 RESTORE(KsirkSkinEditor::MainWindow
);
61 kDebug() << "Creating main window";
62 KsirkSkinEditor::MainWindow
*ksirkskineditor
= new KsirkSkinEditor::MainWindow();
63 ksirkskineditor
->show();
64 KCmdLineArgs
*args
= KCmdLineArgs::parsedArgs();
67 kDebug() << "Executing app";