]> ruin.nu Git - hbs.git/blob - bs/main.cpp
Some changes
[hbs.git] / bs / main.cpp
1 /***************************************************************************
2                           main.cpp  -  description
3                              -------------------
4     begin     : mån okt 23 17:11:28 CEST 2000
5     copyright : (C) 2000 by Michael Andreen
6     email     : whale@linux.nu
7     changes   :
8  ***************************************************************************/
9
10 /***************************************************************************
11  *                                                                         *
12  *   This program is free software; you can redistribute it and/or modify  *
13  *   it under the terms of the GNU General Public License as published by  *
14  *   the Free Software Foundation; either version 2 of the License, or     *
15  *   (at your option) any later version.                                   *
16  *                                                                         *
17  ***************************************************************************/
18 #include <qapplication.h>
19 #include <qfont.h>
20 #include <qcdestyle.h>
21 #include <qtranslator.h>
22
23 #include "../config.h"
24 #include "bs.h"
25
26 int main(int argc, char *argv[])
27 {
28         QApplication a(argc, argv);
29         
30         //QStyle* s = new QCDEStyle();
31         //QTranslator translator( 0 );
32         //translator.load( "se_SE.qm", "/home/whale/src/hbs" );
33         //a.installTranslator( &translator );
34         
35         //a.setFont(QFont("times", 12));
36         /* uncomment the following line, if you want a Windows 95 look*/
37         // a.setStyle(WindowsStyle);
38         //a.setStyle(s);
39         BSApp *bs=new BSApp();
40         a.setMainWidget(bs);
41
42         bs->setCaption("Harv's BattleSystem" VERSION);
43         //eonsl->showMaximized();
44         bs->resize(800,600);
45         bs->show();
46
47         return a.exec();
48 }