]> ruin.nu Git - hbs.git/blob - bs/main.cpp
The last commit before backup
[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 <qplatinumstyle.h>
22 #include <qtranslator.h>
23
24 #include "../config.h"
25 #include "bs.h"
26
27 int main(int argc, char *argv[])
28 {
29         QApplication a(argc, argv);
30         a.setStyle(new QPlatinumStyle);
31         
32         //QStyle* s = new QCDEStyle();
33         //QTranslator translator( 0 );
34         //translator.load( "se_SE.qm", "/home/whale/src/hbs" );
35         //a.installTranslator( &translator );
36         
37         a.setFont(QFont("times", 12));
38         /* uncomment the following line, if you want a Windows 95 look*/
39         // a.setStyle(WindowsStyle);
40         //a.setStyle(s);
41         BSApp *bs=new BSApp();
42         a.setMainWidget(bs);
43
44         bs->setCaption("Harv's BattleSystem" VERSION);
45         //eonsl->showMaximized();
46         bs->resize(800,600);
47         bs->show();
48
49         return a.exec();
50 }