summaryrefslogtreecommitdiffstats
path: root/src/app/main.cpp
blob: 299df889f7156bb479fff63f0c897391668299ba (plain)
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
// (c) 2004 Max Howell ([email protected])
// See COPYING file for licensing information

#include "../codeine.h"
#include <tdeaboutdata.h>
#include <tdeapplication.h>
#include <tdecmdlineargs.h>
#include "mainWindow.h"
#include <X11/Xlib.h>


static TDEAboutData aboutData( APP_NAME,
      I18N_NOOP(PRETTY_NAME), APP_VERSION,
      I18N_NOOP("A video player that has a usability focus"), TDEAboutData::License_GPL_V2,
      I18N_NOOP("Copyright 2006, Max Howell"), 0,
      "https://mirror.git.trinitydesktop.org/gitea/TDE/codeine",
      0 );

static const TDECmdLineOptions options[] = {
   { "+[URL]", I18N_NOOP( "Play 'URL'" ), 0 },
   { "play-dvd", I18N_NOOP( "Play DVD Video" ), 0 },
   { 0, 0, 0 } };

int
main( int argc, char **argv )
{
   //we need to do this, says adrianS from SuSE
   if( !XInitThreads() )
      return 1;

   aboutData.addCredit( "Mike Diehl", I18N_NOOP("Handbook") );
   aboutData.addCredit( "The Kaffeine Developers", I18N_NOOP("Great reference code") );
   aboutData.addCredit( "Eric Prydz", I18N_NOOP("The video for \"Call on Me\" encouraged plenty of debugging! ;)") );
   aboutData.addCredit( "David Vignoni", I18N_NOOP("The current Codeine icon") );
   aboutData.addCredit( "Ian Monroe", I18N_NOOP("Patches, advice and moral support") );


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

   TDEApplication application;
   int returnValue;

   {
      Codeine::MainWindow mainWindow;
      mainWindow.show();

      returnValue = application.exec();
   }

   return returnValue;
}