main.cpp 2.54 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
static const char *stephan = I18N_NOOP("Track announcement popups");
31

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

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

    aboutData.addAuthor("Scott Wheeler", scott, "wheeler@kde.org");
    aboutData.addCredit("Daniel Molkentin", daniel, "molkentin@kde.org");
46
    aboutData.addCredit("Tim Jansen", tim, "tim@tjansen.de");
Scott Wheeler's avatar
Scott Wheeler committed
47
    aboutData.addCredit("Stefan Asserhäll", stefan, "stefan.asserhall@telia.com");
48
    aboutData.addCredit("Stephan Douglas", stephan, "stephen_douglas@yahoo.com");
49 50 51

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

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

58
    return a.exec();
59
}