~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to systemsettings/app/main.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * Copyright (C) 2009 Ben Cooksley <bcooksley@kde.org>
 
3
 *
 
4
 * This file was sourced from the System Settings package
 
5
 * Copyright (C) 2005 Benjamin C Meyer
 
6
 *                    <ben+systempreferences at meyerhome dot net>
 
7
 *
 
8
 * This program is free software; you can redistribute it and/or modify
 
9
 * it under the terms of the GNU General Public License as published by
 
10
 * the Free Software Foundation; either version 2 of the License, or
 
11
 * (at your option) any later version.
 
12
 *
 
13
 * This library is distributed in the hope that it will be useful,
 
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
16
 * Library General Public License for more details.
 
17
 *
 
18
 * You should have received a copy of the GNU Library General Public License
 
19
 * along with this library; see the file COPYING.LIB.  If not, write to
 
20
 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
21
 * Boston, MA 02110-1301, USA.
 
22
 */
 
23
 
 
24
#include <KLocale>
 
25
#include <KAboutData>
 
26
#include <KCmdLineArgs>
 
27
#include <KUniqueApplication>
 
28
 
 
29
#include "SystemSettingsApp.h"
 
30
#include "SettingsBase.h"
 
31
 
 
32
int main( int argc, char *argv[] )
 
33
{
 
34
    // About data
 
35
    KAboutData aboutData("systemsettings", 0, ki18n("System Settings"), "1.0", ki18n("Central configuration center for KDE."),
 
36
                         KAboutData::License_GPL, ki18n("(c) 2009, Ben Cooksley"));
 
37
    aboutData.addAuthor(ki18n("Ben Cooksley"), ki18n("Maintainer"), "bcooksley@kde.org");
 
38
    aboutData.addAuthor(ki18n("Mathias Soeken"), ki18n("Developer"), "msoeken@informatik.uni-bremen.de");
 
39
    aboutData.addAuthor(ki18n("Will Stephenson"), ki18n("Internal module representation, internal module model"), "wstephenson@kde.org");
 
40
 
 
41
    aboutData.setProgramIconName("preferences-system");
 
42
    KCmdLineArgs::init(argc, argv, &aboutData);
 
43
 
 
44
    SystemSettingsApp application;
 
45
 
 
46
    SettingsBase *mainWindow = new SettingsBase();
 
47
    mainWindow->show();
 
48
    application.setMainWindow(mainWindow);
 
49
    return application.exec();
 
50
}