listconfiguracionview.cpp

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2004 by Tomeu Borras Riera                              *
00003  *   tborras@conetxia.com                                                  *
00004  *   Copyright (C) 2006 by Fco. Javier M. C. (Porting to QT4)              *
00005  *   fcojavmc@todo-redes.com                                               *
00006  *                                                                         *
00007  *   This program is free software; you can redistribute it and/or modify  *
00008  *   it under the terms of the GNU General Public License as published by  *
00009  *   the Free Software Foundation; either version 2 of the License, or     *
00010  *   (at your option) any later version.                                   *
00011  *                                                                         *
00012  *   This program is distributed in the hope that it will be useful,       *
00013  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00014  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00015  *   GNU General Public License for more details.                          *
00016  *                                                                         *
00017  *   You should have received a copy of the GNU General Public License     *
00018  *   along with this program; if not, write to the                         *
00019  *   Free Software Foundation, Inc.,                                       *
00020  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00021  ***************************************************************************/
00022 
00023 #include <QMessageBox>
00024 #include <QWidget>
00025 #include <QComboBox>
00026 #include <QToolButton>
00027 #include <QTextStream>
00028 #include <QLayout>
00029 #include <QMessageBox>
00030 
00031 #include <fstream>
00032 
00033 #include "listconfiguracionview.h"
00034 #include "company.h"
00035 #include "configuracion.h"
00036 #include "busquedacliente.h"
00037 #include "busquedafecha.h"
00038 
00039 #include "funcaux.h"
00040 
00041 
00048 ListConfiguracionView::ListConfiguracionView(Company *comp, QWidget *parent) : FichaBf(comp, parent) {
00049     _depura("ListConfiguracionView::ListConfiguracionView", 1);
00050     setupUi(this);
00051 
00052     setTitleName(tr("Configuracion"));
00053     setDBTableName("configuracion");
00054     setDBCampoId("nombre");
00055 
00056     this->setAttribute(Qt::WA_DeleteOnClose);
00057     mui_listado->setEmpresaBase(empresaBase());
00058     mui_listado->cargar();
00059 
00060     meteWindow(windowTitle(), this, FALSE);
00061     _depura("END ListConfiguracionView::ListConfiguracionView", 1);
00062 }
00063 
00064 
00069 ListConfiguracionView::~ListConfiguracionView() {
00070     _depura("ListConfiguracionView::~ListConfiguracionView", 0);
00071     _depura("END ListConfiguracionView::~ListConfiguracionView", 0);
00072 }
00073 
00074 
00075 
00077 
00079 
00080 
00083 ListConfiguracionSubForm::ListConfiguracionSubForm(QWidget *parent) : SubForm2Bf(parent) {
00084     _depura("ListConfiguracionSubForm::ListConfiguracionSubForm", 0);
00085     setDBTableName("configuracion");
00086     setDBCampoId("nombre");
00087     addSHeader("nombreorig", DBCampo::DBvarchar, DBCampo::DBDupPrimaryKey | DBCampo::DBNoSave, SHeader::DBNoView | SHeader::DBBlockView, "nombre");
00088     addSHeader("nombre", DBCampo::DBvarchar, DBCampo::DBNotNull, SHeader::DBNoWrite, tr("Nombre"));
00089     addSHeader("valor", DBCampo::DBvarchar, DBCampo::DBNotNull, SHeader::DBNone, tr("Valor"));
00090     setinsercion(FALSE);
00091     setDelete(FALSE);
00092     _depura("END ListConfiguracionSubForm::ListConfiguracionSubForm", 0);
00093 }
00094 

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