~ubuntu-branches/ubuntu/quantal/linpsk/quantal

« back to all changes in this revision

Viewing changes to linpsk/main.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Bruce Walker
  • Date: 2002-02-06 11:43:38 UTC
  • Revision ID: james.westby@ubuntu.com-20020206114338-xqmjmhh01lpjm0g4
Tags: upstream-0.6.2
ImportĀ upstreamĀ versionĀ 0.6.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                          main.cpp  -  description
 
3
                             -------------------
 
4
    begin                : Die Mai  8 21:20:50 CEST 2001
 
5
    copyright            : (C) 2001 by Volker Schroer
 
6
    email                : dl1ksv@gmx.de
 
7
 ***************************************************************************/
 
8
 
 
9
/***************************************************************************
 
10
 *                                                                         *
 
11
 *   This program is free software; you can redistribute it and/or modify  *
 
12
 *   it under the terms of the GNU General Public License as published by  *
 
13
 *   the Free Software Foundation; either version 2 of the License, or     *
 
14
 *   (at your option) any later version.                                   *
 
15
 *                                                                         *
 
16
 ***************************************************************************/
 
17
 
 
18
#include <qapplication.h>
 
19
#include <qfont.h>
 
20
#include <qstring.h>
 
21
#include <qtextcodec.h>
 
22
#include <qtranslator.h>
 
23
 
 
24
#include "linpsk.h"
 
25
 
 
26
#include "parameter.h"
 
27
Parameter settings;
 
28
 
 
29
int main(int argc, char *argv[])
 
30
{
 
31
QString c;
 
32
 
 
33
c="LinPsk Version ";
 
34
c +=VERSION;
 
35
        if (settings.DemoMode)
 
36
        c += " -- DemoMode";
 
37
        else
 
38
        c += " -- "+settings.callsign;
 
39
  QApplication a(argc, argv);
 
40
  a.setFont(QFont("helvetica", 12));
 
41
  QTranslator tor( 0 );
 
42
  // set the location where your .qm files are in load() below as the last parameter instead of "."
 
43
  // for development, use "/" to use the english original as
 
44
  // .qm files are stored in the base project directory.
 
45
  tor.load( QString("linpsk.") + QTextCodec::locale(), "/" );
 
46
 
 
47
  a.installTranslator( &tor );
 
48
  /* uncomment the following line, if you want a Windows 95 look*/
 
49
  // a.setStyle(WindowsStyle);
 
50
    
 
51
  LinPskApp *LinPsk=new LinPskApp();
 
52
  a.setMainWidget(LinPsk);
 
53
        LinPsk->setCaption(c);
 
54
 
 
55
  LinPsk->show();
 
56
 
 
57
  return a.exec();
 
58
}
 
59
 
 
60