00001 /*************************************************************************** 00002 canalview.h - description 00003 ------------------- 00004 begin : lun mar 24 2003 00005 copyright : (C) 2003 by Tomeu Borrás Riera 00006 email : tborras@conetxia.com 00007 ***************************************************************************/ 00008 /*************************************************************************** 00009 * * 00010 * This program is free software; you can redistribute it and/or modify * 00011 * it under the terms of the GNU General Public License as published by * 00012 * the Free Software Foundation; either version 2 of the License, or * 00013 * (at your option) any later version. * 00014 * * 00015 ***************************************************************************/ 00016 00017 #ifndef CANALVIEW_H 00018 #define CANALVIEW_H 00019 00020 #include <canaldlg.h> 00021 #include <qwidget.h> 00022 #include <ccostedlg.h> 00023 #include <qcombobox.h> 00024 #include <qlineedit.h> 00025 #include <qtextedit.h> 00026 #include "postgresiface2.h" 00027 #include "dialogchanges.h" 00028 00031 class empresa; 00032 00033 class canalview : public canaldlg , dialogChanges { 00034 Q_OBJECT 00035 public: 00036 postgresiface2 *conexionbase; 00037 int canales[100]; 00038 int idcanal; // Indica cual es el canal que se esta visualizando 00039 // Si su valor es 0 entonces es que no se está visualizando ningun centro de coste. 00040 empresa *empresaactual; 00041 public: 00042 canalview(empresa *, QWidget *parent=0, const char *name=0, bool modal=true); 00043 ~canalview(); 00044 void mostrarplantilla(); 00045 void pintar(); 00046 00047 public slots: 00048 virtual void cambiacombo(int); 00049 virtual void boton_guardar(); 00050 virtual void boton_nuevo(); 00051 virtual void boton_borrar(); 00052 virtual void close(); 00053 }; 00054 00055 #endif