Add (and install) svg for the new krunner interface.
[kdebase/uwolfer.git] / workspace / systemsettings / main.cpp
blob1d034e9db1825b103ba2243d57ac797db5bca001
1 /**
2 * This file is part of the System Settings package
3 * Copyright (C) 2005 Benjamin C Meyer
4 * <ben+systempreferences at meyerhome dot net>
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 library 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 GNU
14 * Library General Public License for more details.
16 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
22 #include <KAboutData>
23 #include <KCmdLineArgs>
24 #include <KIcon>
25 #include <KLocale>
26 #include <KUniqueApplication>
28 #include "mainwindow.h"
29 #include "version.h"
31 #include <iostream>
33 int main( int argc, char *argv[] )
35 KLocale::setMainCatalog("systemsettings");
36 // About data
37 KAboutData aboutData("systemsettings", 0, ki18n("System Settings"),
38 SYSTEM_SETTINGS_VERSION, ki18n("System Settings"),
39 KAboutData::License_LGPL, ki18n("(c) 2005, Benjamin C. Meyer; (c) 2007, Canonical Ltd"));
40 aboutData.addAuthor(ki18n("Benjamin C. Meyer"), ki18n("Author"),
41 "ben+systempreferences@meyerhome.net");
42 aboutData.addAuthor(ki18n("Jonathan Riddell"), ki18n("Contributor"),
43 "jriddell@ubuntu.com");
44 aboutData.addAuthor(ki18n("Michael D. Stemle"), ki18n("Contributor"),
45 "manchicken@notsosoft.net");
46 aboutData.addAuthor(ki18n("Simon Edwards"), ki18n("Contributor"),
47 "simon@simonzone.com");
48 aboutData.addAuthor(ki18n("Ellen Reitmayr"), ki18n("Usability"),
49 "ellen@kde.org");
50 KCmdLineArgs::init(argc, argv, &aboutData);
52 if (!KUniqueApplication::start()) {
53 std::cerr << "This program is already running." << std::endl;
54 return 0;
56 KUniqueApplication application;
58 QApplication::setWindowIcon(KIcon("preferences-system"));
60 MainWindow *mainWindow = new MainWindow();
62 mainWindow->show();
64 return application.exec();