~mixxxdevelopers/mixxx/features_library_scanner

« back to all changes in this revision

Viewing changes to mixxx/mixxx/main.cpp

  • Committer: tuehaste
  • Date: 2002-02-26 11:12:07 UTC
  • Revision ID: vcs-imports@canonical.com-20020226111207-5rly26cj9gdd19ba
Initial revision

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                          main.cpp  -  description
 
3
                             -------------------
 
4
    begin                : Mon Feb 18 09:48:17 CET 2002
 
5
    copyright            : (C) 2002 by Tue and Ken Haste Andersen
 
6
    email                : 
 
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 "mixxx.h"
 
25
 
 
26
int main(int argc, char *argv[])
 
27
{
 
28
  QApplication a(argc, argv);
 
29
  a.setFont(QFont("helvetica", 12));
 
30
  QTranslator tor( 0 );
 
31
  // set the location where your .qm files are in load() below as the last parameter instead of "."
 
32
  // for development, use "/" to use the english original as
 
33
  // .qm files are stored in the base project directory.
 
34
  tor.load( QString("mixxx.") + QTextCodec::locale(), "." );
 
35
  a.installTranslator( &tor );
 
36
  /* uncomment the following line, if you want a Windows 95 look*/
 
37
  // a.setStyle(WindowsStyle);
 
38
    
 
39
  MixxxApp *mixxx=new MixxxApp();
 
40
  a.setMainWidget(mixxx);
 
41
  mixxx->resize( 150+310, 310+210+70);
 
42
  mixxx->show();
 
43
  return a.exec();
 
44
}
 
45
 
 
46