Főoldal | Osztályhierarchia | Osztálylista | Fájllista | Osztálytagok | Fájlelemek | Kapcsolódó lapok

main.cc

Ugrás a fájl dokumentációjához.
00001 /*
00002  * SubTimer source file
00003  *  Copyright (C) 2005 Peter Salvi
00004  *   Last modification: <2005.03.23., 16:16:06>
00005  *
00006  *  This program is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License as published by
00008  *  the Free Software Foundation; either version 2 of the License, or
00009  *  (at your option) any later version.
00010  *
00011  *  This program is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *  GNU General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License
00017  *  along with this program; if not, write to the Free Software
00018  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00019  */
00020 
00023 #include <qapplication.h>
00024 #include <qtextcodec.h>
00025 #include <qtranslator.h>
00026 
00027 #include "subtimerwnd.hh"
00028 
00069 int main(int argc, char **argv)
00070 {
00071     QApplication a(argc, argv);
00072 
00073     QTranslator translator(0);
00074     if(!translator.load(QString("subtimer_") + QTextCodec::locale(), 
00075                         a.applicationDirPath()))
00076       translator.load(QString("subtimer_") + QTextCodec::locale(), 
00077                       "/usr/local/share/subtimer");
00078     a.installTranslator(&translator);
00079 
00080     SubTimerWnd w;
00081     w.show();
00082     a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()));
00083 
00084     return a.exec();
00085 }

Projekt: SubTimer Készült: Wed Mar 23 22:06:52 2005 Készítette: doxygen 1.3.6