Basic openoffice.org control, and listening for new presentation documents, still...
[kworship.git] / kworship / main.cpp
blob390c697e6c3beda3d7dcb2cde226b9a4065b1e70
1 /***************************************************************************
2 * This file is part of KWorship. *
3 * Copyright 2008 James Hogan <james@albanarts.com> *
4 * *
5 * KWorship is free software: you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation, either version 2 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * KWorship is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with KWorship. If not, write to the Free Software Foundation, *
17 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
18 ***************************************************************************/
20 #include "KwApplication.h"
22 #include <kaboutdata.h>
23 #include <kcmdlineargs.h>
24 #include <kconfigdialogmanager.h>
25 #include <KDE/KLocale>
27 int KDE_EXPORT main(int argc, char **argv)
29 KAboutData about("kworship", 0,
30 ki18n("KWorship"), "0.1",
31 ki18n("Free/Open source church worship & presentation software"),
32 KAboutData::License_GPL_V2,
33 ki18n("(C) 2008 James Hogan"),
34 KLocalizedString(),
35 "http://kworship.org",
36 "bugs@kworship.org");
37 about.addAuthor( ki18n("James Hogan"), KLocalizedString(), "james@albanarts.com" );
38 KCmdLineArgs::init(argc, argv, &about);
40 KCmdLineOptions options;
41 options.add("+[URL]", ki18n( "Document to open" ));
42 KCmdLineArgs::addCmdLineOptions(options);
44 // Screen number can be managed by a DesktopView widget
45 KConfigDialogManager::changedMap()->insert("DesktopView", SIGNAL(screenChanged(int)));
46 KConfigDialogManager::propertyMap()->insert("DesktopView", "selectedScreen");
48 KwApplication app;
50 return app.exec();