00001 /*************************************************************************** 00002 * Copyright (C) 2005 by Tomeu Borras 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 00021 #include <stdio.h> 00022 00023 #include <QObject> 00024 #include "pluginpromedios.h" 00025 #include "company.h" 00026 #include "funcaux.h" 00027 #include "promedioview.h" 00028 //#include "busquedatarifa.h" 00029 // #include "listltarifaview.h" 00030 // #include "tarifalistview.h" 00031 00032 00033 /* 00034 myplugin1::myplugin1() {} 00035 00036 00037 myplugin1::~myplugin1() {} 00038 00039 00040 void myplugin1::elslot() { 00041 00042 // TarifaListView *tar = new TarifaListView(m_companyact, NULL); 00043 // m_companyact->m_pWorkspace->addWindow(tar); 00044 // tar->show(); 00045 } 00046 00047 00048 void myplugin1::inicializa(bulmafact *bges) { 00050 m_companyact = bges->getcompany(); 00051 QAction *planCuentas = new QAction("&Promedios", 0); 00052 planCuentas->setStatusTip("Promedios"); 00053 planCuentas->setWhatsThis("Promedios"); 00054 bges->menuArticulos->addSeparator(); 00055 bges->menuArticulos->addAction(planCuentas); 00056 connect(planCuentas, SIGNAL(activated()), this, SLOT(elslot())); 00057 } 00058 00059 00060 */ 00061 00062 00064 00067 int entryPoint(Bulmafact *) { 00068 _depura("Punto de Entrada del plugin de Promedios", 0); 00069 // myplugin1 *plug = new myplugin1(); 00070 // plug->inicializa(bges); 00071 return 0; 00072 } 00073 00074 00076 00080 int ArticuloView_ArticuloView(ArticuloView *art) { 00081 _depura("ArticuloView_ArticuloView", 0); 00082 PromedioView *l = new PromedioView(art->empresaBase(), art); 00083 l->setObjectName(QString::fromUtf8("lpromedios")); 00084 art->mui_tab->addTab(l, "Promedios"); 00085 _depura("END ArticuloView_ArticuloView", 0); 00086 return 0; 00087 } 00088 00089 00091 00095 int ArticuloView_cargar(ArticuloView *art) { 00096 _depura("ArticuloView_cargar", 0); 00097 PromedioView *l = art->findChild<PromedioView *>("lpromedios"); 00098 l->cargar(art->DBvalue("idarticulo")); 00099 _depura("END ArticuloView_cargar", 0); 00100 return 0; 00101 } 00102 00103 00104
1.5.1