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

« back to all changes in this revision

Viewing changes to kcontrol/randr/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) 2007      Gustavo Pichorim Boiko <gustavo.boiko@kdemail.net>
 
3
 * Copyright (c) 2002,2003 Hamish Rodda <rodda@kde.org>
 
4
 *
 
5
 *  This program 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
 *  This program 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 this program; if not, write to the Free Software
 
17
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
18
 */
 
19
 
 
20
#include <stdlib.h>
 
21
#include <kdebug.h>
 
22
 
 
23
#include <klocale.h>
 
24
#include <kcmdlineargs.h>
 
25
#include <kaboutdata.h>
 
26
#include <kglobal.h>
 
27
 
 
28
#include "krandrapp.h"
 
29
 
 
30
static const char krandrtrayVersion[] = "0.5";
 
31
int main(int argc, char **argv)
 
32
{
 
33
        KAboutData aboutData("display-randr", "krandr", ki18n("Resize and Rotate"), krandrtrayVersion, 
 
34
                        ki18n("X Resize and Rotate System Tray App"), KAboutData::License_GPL, 
 
35
                        ki18n("(c) 2007 Gustavo Pichorim Boiko, 2002-2003 Hamish Rodda"), ki18n(0L));
 
36
        aboutData.addAuthor(ki18n("Gustavo Pichorim Boiko"),ki18n("Maintainer"), "gustavo.boiko@kdemail.net");
 
37
        aboutData.addAuthor(ki18n("Hamish Rodda"),ki18n("Original Author"), "rodda@kde.org");
 
38
        aboutData.addCredit(ki18n("Lubos Lunak"),ki18n("Many fixes"), "l.lunak@suse.cz");
 
39
        aboutData.addCredit(ki18n("Harry Bock"),ki18n("Many fixes, multi-head support"), "hbock@providence.edu");
 
40
        aboutData.setProductName("krandr/krandrtray");
 
41
        aboutData.setProgramIconName("preferences-desktop-display-randr");
 
42
 
 
43
        KCmdLineArgs::init(argc,argv,&aboutData);
 
44
 
 
45
        KCmdLineOptions options;
 
46
        options.add("login", ki18n("Application is being auto-started at KDE session start"), 0L);
 
47
        KCmdLineArgs::addCmdLineOptions(options);
 
48
        KCmdLineArgs::addStdCmdLineOptions();
 
49
 
 
50
        KRandRApp app;
 
51
        return app.exec();
 
52
}