pluginticket.cpp

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2005 by Tomeu Borras Riera                              *
00003  *   tborras@conetxia.com                                                  *
00004  *   Copyright (C) 2006 by Fco. Javier M. C.                               *
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 #include <QToolButton>
00023 
00024 #include "pluginticket.h"
00025 #include "funcaux.h"
00026 #include "facturaview.h"
00027 #include "presupuestoview.h"
00028 #include "ticketqtoolbutton.h"
00029 
00030 
00032 
00035 int entryPoint(Bulmafact *) {
00036     _depura("Estoy dentro del plugin de envio de e-mail", 0);
00037     return 0;
00038 }
00039 
00040 
00041 
00042 
00043 /*
00044 int PresupuestoView_PresupuestoView(PresupuestoView *l) {
00045        _depura("PresupuestoView_PresupuestoView", 0);
00046        TicketQToolButton *mui_exporta_efactura2 = new TicketQToolButton(l, NULL, NULL,  NULL, l->mui_plugbotones);
00047        QHBoxLayout *m_hboxLayout1 = new QHBoxLayout(l->mui_plugbotones);
00048        m_hboxLayout1->setSpacing(5);
00049        m_hboxLayout1->setMargin(5);
00050        m_hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1"));
00051        m_hboxLayout1->addWidget(mui_exporta_efactura2);
00052        _depura("END PresupuestoView_PresupuestoView", 0);
00053        return 0;
00054 }
00055 
00056 int PedidoClienteView_PedidoClienteView(PedidoClienteView *l) {
00057        _depura("PedidoClienteView_PedidoClienteView", 0);
00058        TicketQToolButton *mui_exporta_efactura2 = new TicketQToolButton(NULL, l, NULL, NULL, l->mui_plugbotones);
00059        QHBoxLayout *m_hboxLayout1 = new QHBoxLayout(l->mui_plugbotones);
00060        m_hboxLayout1->setSpacing(5);
00061        m_hboxLayout1->setMargin(5);
00062        m_hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1"));
00063        m_hboxLayout1->addWidget(mui_exporta_efactura2);
00064        _depura("END PedidoClienteView_PedidoClienteView", 0);
00065        return 0;
00066 }
00067 */
00068 
00069 
00071 
00075 int AlbaranClienteView_AlbaranClienteView(AlbaranClienteView *l) {
00076        _depura("AlbaranClienteView_AlbaranClienteView", 0);
00077 //================================
00078        TicketQToolButton *mui_exporta_efactura2 = new TicketQToolButton(NULL, NULL, l, NULL, l->mui_plugbotones);
00079 
00080        QHBoxLayout *m_hboxLayout1 = l->mui_plugbotones->findChild<QHBoxLayout *>("hboxLayout1");
00081        if (!m_hboxLayout1) {
00082                 m_hboxLayout1 = new QHBoxLayout(l->mui_plugbotones);
00083                 m_hboxLayout1->setSpacing(5);
00084                 m_hboxLayout1->setMargin(5);
00085                 m_hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1"));
00086        } // end if
00087        m_hboxLayout1->addWidget(mui_exporta_efactura2);
00088 //================================
00089        _depura("END AlbaranClienteView_AlbaranClienteView", 0);
00090        return 0;
00091 }
00092 
00093 
00095 
00099 int FacturaView_FacturaView(FacturaView *l) {
00100        _depura("FacturaView_FacturaView", 0);
00101 //================================
00102        TicketQToolButton *mui_exporta_efactura2 = new TicketQToolButton(NULL, NULL, NULL, l, l->mui_plugbotones);
00103 
00104        QHBoxLayout *m_hboxLayout1 = l->mui_plugbotones->findChild<QHBoxLayout *>("hboxLayout1");
00105        if (!m_hboxLayout1) {
00106                 m_hboxLayout1 = new QHBoxLayout(l->mui_plugbotones);
00107                 m_hboxLayout1->setSpacing(5);
00108                 m_hboxLayout1->setMargin(5);
00109                 m_hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1"));
00110        } // end if
00111        m_hboxLayout1->addWidget(mui_exporta_efactura2);
00112 //================================
00113        _depura("END FacturaView_FacturaView", 0);
00114        return 0;
00115 }

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