summaryrefslogtreecommitdiffstats
path: root/yakuake/src/main.cpp
blob: 4579d3dbddb699b8d19fe4a4a62023a38b574cce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.
*/

/*
  Copyright (C) 2005 Francois Chazal <neptune3k@free.fr>
  Copyright (C) 2006-2008 Eike Hein <hein@kde.org>
*/


#include "main_window.h"

#include <klocale.h>
#include <kaboutdata.h>
#include <kcmdlineargs.h>
#include <kuniqueapplication.h>
#include <kdebug.h>


static const char version[] = "2.8.1";
static const char description[] = I18N_NOOP("A Quake-style terminal emulator based on TDE Konsole technology. ");
static KCmdLineOptions options[] = { KCmdLineLastOption };

int main(int argc, char ** argv)
{
    TDEAboutData about("yakuake", I18N_NOOP("Yakuake"), version, description,
        TDEAboutData::License_GPL, "(C) 2005-2008 The Yakuake Team", 0, 0, 0);

    about.addAuthor("Eike Hein",          I18N_NOOP("Maintainer"), "hein@kde.org");
    about.addAuthor("Francois Chazal",    I18N_NOOP("Project Founder (Inactive)"), "neptune3k@free.fr");
    about.addCredit("Frank Osterfeld",    0, "frank.osterfeld@kdemail.net");
    about.addCredit("Martin Galpin",      0, "martin@nemohackers.org");
    about.addCredit("Thomas Tischler",    0, "Tischler123@t-online.de");
    about.addCredit("Stefan Bogner",      0, "bochi@kmobiletools.org");
    about.addCredit("Georg Wittenburg",   0, "georg.wittenburg@gmx.net");
    about.addCredit("Dominik Seichter",   0, "domseichter@web.de");
    about.addCredit("Bert Speckels",      0, "bert@speckels.de");
    about.addCredit("Daniel 'suslik' D.", I18N_NOOP("Plastik skin"), "dd@accentsolution.com");
    about.addCredit("Mark Bryan Yu",      I18N_NOOP("Auto-open on pointer touching screen edge"), "vafada@gmail.com");

    TDECmdLineArgs::init(argc, argv, &about);
    TDECmdLineArgs::addCmdLineOptions(options);
    KUniqueApplication::addCmdLineOptions();

    if (!KUniqueApplication::start())
    {
        kdDebug() << "Yakuake is already running!" << endl;
        return(0);
    }

    KUniqueApplication app;
    MainWindow* win = new MainWindow();

    win->hide();
    return app.exec();
}