summaryrefslogtreecommitdiffstats
path: root/kblackbox/main.cpp
blob: 1a0180ebfee9304e9388fd4964b4f5ca8e3461e6 (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
//
// KBlackbox
//
// A simple game inspired by an emacs module
//
// File: main.cpp
//
// The main() function
//


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

#include "kbbgame.h"
#include "version.h"


static const char description[] = I18N_NOOP("TDE Blackbox Game");

/*
  The program starts here.
*/

int main( int argc, char **argv )
{
  TDEAboutData aboutData( "kblackbox", I18N_NOOP("KBlackBox"),
    KBVERSION, description, TDEAboutData::License_GPL,
    "(c) 1999-2000, Robert Cimrman");
  aboutData.addAuthor("Robert Cimrman",0, "cimrman3@students.zcu.cz");
  TDECmdLineArgs::init( argc, argv, &aboutData );

  TDEApplication a;
  KGlobal::locale()->insertCatalogue("libtdegames");

  if (a.isRestored())
      RESTORE(KBBGame)
  else {
      KBBGame *w = new KBBGame;
      a.setMainWidget(w);
      w->show();
  }
  return a.exec();
}