main.cpp 2.2 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.                                   *
 *                                                                         *
 ***************************************************************************/

18
#include <kapplication.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

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

int main(int argc, char *argv[])
{
38 39
    KAboutData aboutData("juk", I18N_NOOP("JuK"),
                         VERSION, description, KAboutData::License_GPL,
Scott Wheeler's avatar
Scott Wheeler committed
40 41 42 43
                         "(c) 2002, 2003, Scott Wheeler", 0, 0, "wheeler@kde.org");

    aboutData.addAuthor("Scott Wheeler", scott, "wheeler@kde.org");
    aboutData.addCredit("Daniel Molkentin", daniel, "molkentin@kde.org");
44
    aboutData.addCredit("Tim Jansen", tim, "tim@tjansen.de");
45 46 47

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

49 50 51 52
    KApplication a;
    JuK *juk = new JuK();
    a.setMainWidget(juk);
    juk->show();
53

54
    return a.exec();
55
}