main.cpp 2 KB
Newer Older
1 2 3 4 5 6
/***************************************************************************
                          main.cpp  -  description
                             -------------------
    begin                : Mon Feb  4 23:40:41 EST 2002
    copyright            : (C) 2002 by Scott Wheeler
    email                : scott@slackorama.net
7
***************************************************************************/
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24

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

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

#include "juk.h"

static const char *description =
25 26 27 28 29 30
I18N_NOOP("JuK is a jukebox and tagger for KDE. \n"
          "It supports id3v1 and id3v2 tags.\n"
          "It is based on QTagger 0.2, also by\n"
          "Scott Wheeler.  It makes use of id3lib\n"
          "to handle the low level aspects of tagging.");

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 40 41
    KAboutData aboutData("juk", I18N_NOOP("JuK"),
                         VERSION, description, KAboutData::License_GPL,
                         "(c) 2002, Scott Wheeler", 0, 0, "scott@slackorama.net");
42

43
    aboutData.addAuthor("Scott Wheeler", 0, "scott@slackorama.net");
44 45
    KCmdLineArgs::init(argc, argv, &aboutData);
    KCmdLineArgs::addCmdLineOptions(options);
46

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

52
    return a.exec();
53
}