2
* Copyright (C) 2000 Matthias Elter <elter@kde.org>
3
* Copyright (C) 2001-2002 Raffaele Sandrini <sandrini@kde.org>
4
* Copyright (C) 2004 Waldo Bastian <bastian@kde.org>
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24
#include <kuniqueapplication.h>
26
#include <kcmdlineargs.h>
27
#include <kaboutdata.h>
28
#include <kstandarddirs.h>
30
#include "kmenuedit.h"
32
static const char description[] = I18N_NOOP("KDE control center editor");
33
static const char version[] = "1.0";
35
extern "C" int KDE_EXPORT kdemain( int argc, char **argv )
37
KLocale::setMainCatalogue("kmenuedit");
38
KAboutData aboutData("kcontroledit", I18N_NOOP("KDE Control Center Editor"),
39
version, description, KAboutData::License_GPL,
40
"(C) 2000-2004, Waldo Bastian, Raffaele Sandrini, Matthias Elter");
41
aboutData.addAuthor("Waldo Bastian", I18N_NOOP("Maintainer"), "bastian@kde.org");
42
aboutData.addAuthor("Raffaele Sandrini", I18N_NOOP("Previous Maintainer"), "sandrini@kde.org");
43
aboutData.addAuthor("Matthias Elter", I18N_NOOP("Original Author"), "elter@kde.org");
45
KCmdLineArgs::init( argc, argv, &aboutData );
46
KUniqueApplication::addCmdLineOptions();
48
if (!KUniqueApplication::start())
51
KUniqueApplication app;
53
KMenuEdit *menuEdit = new KMenuEdit(true);
56
app.setMainWidget(menuEdit);