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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
/***************************************************************************
begin : Mon Feb 4 23:40:41 EST 2002
copyright : (C) 2002 - 2004 by Scott Wheeler
: (C) 2006 - 2007 by Michael Pyne
email : [email protected]
: [email protected]
***************************************************************************/
/***************************************************************************
* *
* 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 <tdeuniqueapplication.h>
#include <tdecmdlineargs.h>
#include <tdeaboutdata.h>
#include <dcopclient.h>
#include <tdeconfigbase.h>
#include <tdeconfig.h>
#include "juk.h"
static const char description[] = I18N_NOOP("Jukebox and music manager for TDE");
static const char scott[] = I18N_NOOP("Author, chief dork and keeper of the funk");
static const char michael[] = I18N_NOOP("Assistant super-hero, fixer of many things");
static const char daniel[] = I18N_NOOP("System tray docking, \"inline\" tag editing,\nbug fixes, evangelism, moral support");
static const char tim[] = I18N_NOOP("GStreamer port");
static const char stefan[] = I18N_NOOP("Global keybindings support");
static const char stephen[] = I18N_NOOP("Track announcement popups");
static const char frerich[] = I18N_NOOP("Automagic track data guessing, bugfixes");
static const char zack[] = I18N_NOOP("More automagical things, now using MusicBrainz");
static const char adam[] = I18N_NOOP("Co-conspirator in MusicBrainz wizardry");
static const char matthias[] = I18N_NOOP("Friendly, neighborhood aRts guru");
static const char maks[] = I18N_NOOP("Making JuK friendlier to people with\nterabytes of music");
static const char antonio[] = I18N_NOOP("DCOP interface");
static const char allan[] = I18N_NOOP("FLAC and MPC support");
static const char nathan[] = I18N_NOOP("Album cover manager");
static const char pascal[] = I18N_NOOP("Gimper of splash screen");
static TDECmdLineOptions options[] =
{
{ "+[file(s)]", I18N_NOOP("File(s) to open"), 0 },
TDECmdLineLastOption
};
int main(int argc, char *argv[])
{
TDEAboutData aboutData("juk", I18N_NOOP("JuK"),
"2.3.5", description, TDEAboutData::License_GPL,
"© 2002 - 2007, Scott Wheeler", 0,
"http://developer.kde.org/~wheeler/juk.html");
aboutData.addAuthor("Scott Wheeler", scott, "[email protected]");
aboutData.addAuthor("Michael Pyne", michael, "[email protected]");
aboutData.addCredit("Daniel Molkentin", daniel, "[email protected]");
aboutData.addCredit("Tim Jansen", tim, "[email protected]");
aboutData.addCredit("Stefan Asserhäll", stefan, "[email protected]");
aboutData.addCredit("Stephen Douglas", stephen, "[email protected]");
aboutData.addCredit("Frerich Raabe", frerich, "[email protected]");
aboutData.addCredit("Zack Rusin", zack, "[email protected]");
aboutData.addCredit("Adam Treat", adam, "[email protected]");
aboutData.addCredit("Matthias Kretz", matthias, "[email protected]");
aboutData.addCredit("Maks Orlovich", maks, "[email protected]");
aboutData.addCredit("Antonio Larrosa Jimenez", antonio, "[email protected]");
aboutData.addCredit("Allan Sandfeld Jensen", allan, "[email protected]");
aboutData.addCredit("Nathan Toone", nathan, "[email protected]");
aboutData.addCredit("Pascal Klein", pascal, "[email protected]");
TDECmdLineArgs::init(argc, argv, &aboutData);
TDECmdLineArgs::addCmdLineOptions(options);
TDEUniqueApplication::addCmdLineOptions();
TDEUniqueApplication a;
// Here we do some DCOP locking of sorts to prevent incoming DCOP calls
// before JuK has finished its initialization.
a.dcopClient()->suspend();
JuK *juk = new JuK;
a.dcopClient()->resume();
a.setMainWidget(juk);
bool startDocked;
TDEConfigGroup config(TDEGlobal::config(), "Settings");
startDocked = config.readBoolEntry("StartDocked", false);
if(!startDocked)
juk->show();
return a.exec();
}
|