tarifaview.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2004 by Alvaro de Miguel                                *
00003  *   alvaro_demiguel@gmail.com                                             *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 
00021 #ifndef TARIFAVIEW_H
00022 #define TARIFAVIEW_H
00023 
00024 #include "ui_tarifabase.h"
00025 #include "postgresiface2.h"
00026 #include "dialogchanges.h"
00027 #include "fichabf.h"
00028 
00029 
00030 
00031 class TarifaView : public FichaBf, public Ui_TarifaBase {
00032     Q_OBJECT
00033 
00034 private:
00035     QString m_idtarifa;
00036     QString m_nomtarifa;
00037     cursor2 *m_cursorcombo;
00038 public:
00039     TarifaView(Company *emp, QWidget *parent = 0);
00040     ~TarifaView();
00041     Company *companyact() {
00042         return empresaBase();
00043     };
00044 
00045 public:
00046     void pintar();
00047     int cargar(QString);
00048     int guardar();
00049     int cargarcomboiva(QString);
00050     void closeEvent(QCloseEvent *);
00051     QString formaQuery(QString);
00052 
00053 public slots:
00054     virtual void on_mui_guardar_clicked() {
00055         guardar();
00056     };
00057     virtual void on_mui_crear_clicked();
00058     virtual void on_mui_borrar_clicked();
00059     virtual void on_mui_aceptar_clicked();
00060     virtual void on_mui_actualizar_clicked();
00061 };
00062 
00063 #endif
00064 

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