main.cpp 2.39 KB
Newer Older
1 2 3 4 5
/***************************************************************************
                          main.cpp  -  description
                             -------------------
    begin                : Mon Feb  4 23:40:41 EST 2002
    copyright            : (C) 2002 by Scott Wheeler
6
    email                : wheeler@kde.org
7
***************************************************************************/
8 9 10 11 12 13 14 15 16 17

/***************************************************************************
 *                                                                         *
 *   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.                                   *
 *                                                                         *
 ***************************************************************************/

Scott Wheeler's avatar
Scott Wheeler committed
18
#include <kuniqueapplication.h>
19 20 21 22 23 24
#include <kcmdlineargs.h>
#include <kaboutdata.h>
#include <klocale.h>

#include "juk.h"

Scott Wheeler's avatar
Scott Wheeler committed
25 26 27
static const char *description = I18N_NOOP("Jukebox and music manager for KDE");
static const char *scott = I18N_NOOP("Author, cheif dork and keeper of the funk");
static const char *daniel = I18N_NOOP("System tray docking, \"inline\" tag editing,\nbug fixes, evangelism, moral support");
28
static const char *tim = I18N_NOOP("GStreamer port");
29
static const char *stefan = I18N_NOOP("Global keybindings support");
30

31 32
static KCmdLineOptions options[] =
{
33
    { "+[file(s)]", I18N_NOOP("File(s) to open"), 0 },
34
    { 0, 0, 0 }
35 36 37 38
};

int main(int argc, char *argv[])
{
39
    KAboutData aboutData("juk", I18N_NOOP("JuK"),
40
                         "1.90 (2.0 Pre-Alpha)", description, KAboutData::License_GPL,
41
                         "(c) 2002, 2003, Scott Wheeler", 0, "http://www.slackorama.net/oss/juk/");
Scott Wheeler's avatar
Scott Wheeler committed
42 43 44

    aboutData.addAuthor("Scott Wheeler", scott, "wheeler@kde.org");
    aboutData.addCredit("Daniel Molkentin", daniel, "molkentin@kde.org");
45
    aboutData.addCredit("Tim Jansen", tim, "tim@tjansen.de");
46
    aboutData.addCredit("Stefan Asserhäl", stefan, "stefan.asserhall@telia.com");
47 48 49

    KCmdLineArgs::init(argc, argv, &aboutData);
    KCmdLineArgs::addCmdLineOptions(options);
50

Scott Wheeler's avatar
Scott Wheeler committed
51
    KUniqueApplication a;
52 53 54
    JuK *juk = new JuK();
    a.setMainWidget(juk);
    juk->show();
55

56
    return a.exec();
57
}