modelosps.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2003 by Josep Burcion                                   *
00003  *   josep@burcion.com                                                     *
00004  *   http://www.iglues.org Asociación Iglues -- Contabilidad Linux         *
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 
00022 #ifndef MODGEN_H
00023 #define MODGEN_H
00024 
00025 #include <QFile>
00026 #include <QThread>
00027 #include <QProgressDialog>
00028 #include <QEvent>
00029 #include <QTextStream>
00030 
00031 #include "funcaux.h"
00032 
00033 
00034 enum {
00035     sleep10 = 1001,
00036     sleep3 = 1002,
00037     acabado = 1003
00038 };
00039 
00040 
00042 class Genps_thread : public QThread {
00043 public:
00044     Genps_thread(QString, QString, QProgressDialog *);
00045     void run();
00046     QString m_pdfname, m_tempname;
00047     QProgressDialog *m_progressdia;
00048 };
00049 
00050 
00051 class Psprogressdialog : public QProgressDialog {
00052 public:
00053     Psprogressdialog(QString etiqueta, QString btcancelar, int minimo, int maximo, QWidget *widget, Qt::WFlags bandera);
00054     //void customEvent(QCustomEvent *);
00055 };
00056 
00057 
00059 
00062 class Modgenps : public QObject {
00063 public:
00064     Modgenps();
00065     ~Modgenps();
00066     void download_form(QWidget *, QString, QString);
00067     Genps_thread *convierte_a_postscript;
00069     void formatdigits(QString *, QString *, float);
00071     void escrizq(QString, int, int);
00073     void escrizq(float, int, int);
00075     void escrder(QString, int, int);
00077     void escrder(float, int, int);
00079     void escrizqder(QString, QString, int, int);
00081     void escrizqder(float, int, int);
00083     void marca_casilla(QString, int, int);
00086     void marcadeagua_borrador();
00087     QFile m_fichlec;
00088     QFile m_fich;
00089     QTextStream m_output;
00092     bool m_es_borrador;
00093 };
00094 
00095 #endif
00096 

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