00001 /*************************************************************************** 00002 * Copyright (C) 2004 by Tomeu Borrás Riera * 00003 * tborras@conetxia.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 #ifndef BUDGETSLIST_H 00021 #define BUDGETSLIST_H 00022 00023 // Listado de presupuestos. 00024 00025 #include "budgetslistbase.h" 00026 00027 00028 class company; 00029 00030 00031 class BudgetsList : public BudgetsListBase { 00032 Q_OBJECT 00033 private: 00034 company *companyact; 00035 int m_modo; // == 0 es modo edición 00036 // ==1 es modo selector. 00037 QString m_idpresupuesto; 00038 00039 public: 00040 BudgetsList(company *, QWidget *parent = 0, const char *name = 0, int flag = 0); 00041 ~BudgetsList(); 00042 void inicializa(); 00043 void modoseleccion() {m_modo=1;}; 00044 void modoedicion() {m_modo=0;}; 00045 QString idpresupuesto() {return m_idpresupuesto;}; 00046 00047 public slots: 00048 virtual void doubleclicked(int, int, int, const QPoint &); 00049 virtual void s_contextMenu(int, int, int, const QPoint &); 00050 virtual void newBudget(); 00051 virtual void s_removeBudget(); 00052 00053 /* 00054 virtual void boton_editar(); 00055 00056 virtual void boton_duplicar(); 00057 virtual void boton_borrar(); 00058 virtual void boton_imprimir(); 00059 virtual void boton_filtrar(); 00060 */ 00061 }; 00062 00063 #endif