00001 /*************************************************************************** 00002 * Copyright (C) 2005 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 #ifndef CLIENTDELIVNOTESLIST_H 00021 #define CLIENTDELIVNOTESLIST_H 00022 00023 // Listado de albaranes de clientes. 00024 // Clients delivery notes list. 00025 00026 #include "clientdelivnoteslistbase.h" 00027 00028 00029 class company; 00030 00031 00032 class ClientDelivNotesList : public ClientDelivNotesListBase { 00033 Q_OBJECT 00034 private: 00035 company *companyact; 00036 int m_modo; // == 0 es modo edición 00037 // ==1 es modo selector. 00038 QString m_idclidelivnote; 00039 00040 public: 00041 ClientDelivNotesList(company *, QWidget *parent = 0, const char *name = 0, int flag = 0); 00042 ~ClientDelivNotesList(); 00043 void inicializa(); 00044 void modoseleccion() {m_modo=1;}; 00045 void modoedicion() {m_modo=0;}; 00046 QString idCliDelivNote() {return m_idclidelivnote;}; 00047 00048 public slots: 00049 virtual void s_doubleclicked(int, int, int, const QPoint &); 00050 virtual void s_newClientDelivNote(); 00051 virtual void s_removeClientDelivNote(); 00052 virtual void s_contextMenu(int, int, int, const QPoint &); 00053 00054 /* 00055 virtual void boton_editar(); 00056 00057 virtual void boton_duplicar(); 00058 virtual void boton_borrar(); 00059 virtual void boton_imprimir(); 00060 virtual void boton_filtrar(); 00061 */ 00062 }; 00063 00064 #endif