~ubuntu-branches/ubuntu/lucid/kdebase/lucid

« back to all changes in this revision

Viewing changes to kmenuedit/kcontrol_main.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Ana Beatriz Guerrero Lopez
  • Date: 2009-04-05 05:22:13 UTC
  • mfrom: (0.4.2 experimental) (0.2.2 upstream)
  • mto: This revision was merged to the branch mainline in revision 235.
  • Revision ID: james.westby@ubuntu.com-20090405052213-39thr4l6p2ss07uj
Tags: 4:4.2.2-1
* New upstream release:
  - khtml fixes. (Closes: #290285, #359680)
  - Default konsole sessions can be deleted. (Closes: #286342)
  - Tag widget uses standard application palette. (Closes: #444800)
  - ... and surely many more but we have lost track...

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
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>
5
 
 *
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.
10
 
 *
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.
15
 
 *
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.
19
 
 *
20
 
 */
21
 
 
22
 
#include <unistd.h>
23
 
 
24
 
#include <kuniqueapplication.h>
25
 
#include <klocale.h>
26
 
#include <kcmdlineargs.h>
27
 
#include <kaboutdata.h>
28
 
#include <kstandarddirs.h>
29
 
 
30
 
#include "kmenuedit.h"
31
 
 
32
 
static const char description[] = I18N_NOOP("KDE control center editor");
33
 
static const char version[] = "1.0";
34
 
 
35
 
extern "C" int KDE_EXPORT kdemain( int argc, char **argv )
36
 
{
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");
44
 
 
45
 
    KCmdLineArgs::init( argc, argv, &aboutData );
46
 
    KUniqueApplication::addCmdLineOptions();
47
 
 
48
 
    if (!KUniqueApplication::start()) 
49
 
        return 1;
50
 
 
51
 
    KUniqueApplication app;
52
 
 
53
 
    KMenuEdit *menuEdit = new KMenuEdit(true);
54
 
    menuEdit->show();
55
 
 
56
 
    app.setMainWidget(menuEdit);
57
 
    return  app.exec();
58
 
}