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 COMPANY_H 00021 #define COMPANY_H 00022 00023 #include <qworkspace.h> 00024 #include "postgresiface2.h" 00025 #include <qobject.h> 00026 00027 #include "listventanas.h" 00028 00034 class providerslist; 00035 class ClientsList; 00036 class ClientEdit; 00037 class articleslist; 00038 class orderslist; 00039 class delivnoteslist; 00040 class BudgetsList; 00041 class ClientDelivNotesList; 00042 class linorderslist; 00043 00044 00045 class company : public postgresiface2 { 00046 private: 00047 providerslist *m_providerslist; 00048 ClientsList *m_clientsList; 00049 ClientEdit *m_clientEdit; 00050 articleslist *m_articleslist; 00051 orderslist *m_orderslist; 00052 delivnoteslist *m_delivnoteslist; 00053 linorderslist *m_linorderslist; 00054 BudgetsList *m_budgetsList; 00055 ClientDelivNotesList *m_clientDelivNotesList; 00056 listventanas *m_listventanas; 00057 public: 00058 QWidget *m_pWorkspace; 00059 public: 00060 company(); 00061 ~company(); 00062 void init(QString); 00063 void setListVentanas(listventanas *doc) {m_listventanas= doc;}; 00064 void listproviders(); 00065 void listClients(); 00066 void newClient(); 00067 void listarticles(); 00068 void listorders(); 00069 void listdelivnotes(); 00070 void listBudgets(); 00071 void listClientDelivNotes(); 00072 void setWorkspace(QWidget *qw) {m_pWorkspace=qw;} 00073 void newBudget(); 00074 void newClientDelivNote(); 00075 void newOrder(); 00076 void createMainWindows(); 00077 void refreshOrders(); 00078 void refreshArticles(); 00079 void refreshBudgets(); 00080 void refreshClientDelivNotes(); 00081 void meteWindow(QString nom, QObject *obj) {m_listventanas->meteWindow(nom, obj);}; 00082 void sacaWindow(QObject *nom) {m_listventanas->sacaWindow(nom);}; 00083 void s_FPago(); 00084 void s_Familias(); 00085 QString searchCompany(); 00086 }; 00087 00088 #endif