funcaux.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2003 by Tomeu Borras Riera                              *
00003  *   tborras@conetxia.com                                                  *
00004  *   http://www.iglues.org                                                 *
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                         *
00018  *   Free Software Foundation, Inc.,                                       *
00019  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00020  ***************************************************************************/
00021 
00027 #ifndef FUNCAUX_H
00028 #define FUNCAUX_H
00029 
00030 #include <QDateTime>
00031 #include <QMessageBox>
00032 #include <QDesktopWidget>
00033 
00034 #include <stdio.h>
00035 #include <sstream>
00036 #include <string>
00037 
00038 using std::string;
00039 
00040 #include <QString>
00041 #include <math.h>
00042 
00043 #define __DEBUG__
00044 
00048 #include <QMainWindow>
00049 #include <QStatusBar>
00050 
00051 #include "qapplication2.h"
00052 
00053 extern QMainWindow *g_main;
00054 
00055 extern QApplication2 *theApp;
00056 
00057 
00058 template <typename T>
00059 std::string Ttos(T arg) {
00060     std::ostringstream buffer;
00061     buffer << arg; 
00062     return buffer.str(); 
00063 }
00064 
00066 string extiendecodigo (string, unsigned int);
00068 QString extiendecodigo (QString, unsigned int);
00070 float fround(float, unsigned);
00072 int roundI(double);
00074 QDate normalizafecha(QString);
00076 QString XMLProtect(const QString&);
00078 QString ajustacodigo(QString, unsigned int);
00079 void reemplazaarchivo(QString, QString, QString, QString);
00081 QString editaTexto(QString texto);
00082 void _depura(const QString &cad, int nivel = 0, const QString &param = "");
00083 void mensajeInfo(QString cad);
00084 void mensajeAviso(QString cad);
00085 void mensajeError(QString cad);
00090 void invocaPDF(const QString arch);
00091 void generaPDF(const QString arch);
00092 QString num2texto(QString numero, QString moneda = "euros", QString singular = "euro");
00093 void centrarEnPantalla(QWidget *ventana);
00094 void cargaTraducciones(const QString &traduccion);
00095 QString windowID(const QString &);
00096 
00097 #endif
00098 

Generated on Sat Dec 15 00:01:21 2007 for BulmaGes by  doxygen 1.5.1