efacturabf.cpp File Reference

#include <QMenu>
#include <QAction>
#include <QObject>
#include <QMessageBox>
#include <QToolButton>
#include <stdio.h>
#include "efacturabf.h"
#include "efactura.h"
#include "efacturarecepcion.h"
#include "company.h"
#include "funcaux.h"
#include "facturaview.h"
#include "efqtoolbutton.h"
#include "facturasplist.h"
#include "efqtoolbutton_importar.h"

Go to the source code of this file.

Functions

void entryPoint (Bulmafact *bges)
int FacturaView_FacturaView (FacturaView *fac)
 Dibuja el boton de exportar en el formulario de factura a cliente.
int FacturasProveedorList_FacturasProveedorList_Post (FacturasProveedorList *listfac)
 Dibuja el boton de importar en el listado de facturas de proveedor.


Function Documentation

void entryPoint ( Bulmafact bges  ) 

Parameters:
bges 

SOLO A MODO DE EJEMPLO: se modifica el titulo de la ventana principal del programa para indicar que el plugin se ha cargado.

Definition at line 133 of file efacturabf.cpp.

References _depura(), bges, and efacturabf::inicializa().

00133                                  {
00134         _depura("Estoy dentro del plugin de e-factura", 0);
00135         
00136         efacturabf *efact = new efacturabf();
00137         efact->inicializa(bges);
00140         bges->setWindowTitle("Prueba de plugin e-factura.");
00141         
00142         _depura("Acaba el entry point de e-factura", 0);
00143 }

int FacturasProveedorList_FacturasProveedorList_Post ( FacturasProveedorList listfac  ) 

Dibuja el boton de importar en el listado de facturas de proveedor.

Parameters:
listfac 
Returns:

Definition at line 183 of file efacturabf.cpp.

References _depura(), and Ui_FacturasProveedorListBase::mui_plugbotones.

00183                                                                                      {
00184         _depura("FacturasProveedorList_FacturasProveedorList_Post", 0);
00185         
00186         EFQToolButtonImportar *mui_importa_efactura = new EFQToolButtonImportar(listfac, listfac->mui_plugbotones);
00187         mui_importa_efactura->setObjectName(QString::fromUtf8("importa"));
00188         mui_importa_efactura->setMinimumSize(QSize(32, 32));
00189         mui_importa_efactura->setIcon(QIcon(QString::fromUtf8("/usr/share/bulmages/efactura/efactura.png")));
00190         mui_importa_efactura->setIconSize(QSize(22, 22));
00191         mui_importa_efactura->setStatusTip("Importar eFactura");
00192         mui_importa_efactura->setToolTip("Importar eFactura");
00193 
00194        QHBoxLayout *m_hboxLayout1 = listfac->mui_plugbotones->findChild<QHBoxLayout *>("hboxLayout1");
00195        if (!m_hboxLayout1) {
00196                 m_hboxLayout1 = new QHBoxLayout(listfac->mui_plugbotones);
00197                 m_hboxLayout1->setSpacing(5);
00198                 m_hboxLayout1->setMargin(5);
00199                 m_hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1"));
00200        } // end if
00201         m_hboxLayout1->addWidget(mui_importa_efactura);
00202 
00203         _depura("END FacturasProveedorList_FacturasProveedorList_Post", 0);
00204         
00205         return 0;
00206 }

int FacturaView_FacturaView ( FacturaView fac  ) 

Dibuja el boton de exportar en el formulario de factura a cliente.

Parameters:
fac 
Returns:

Definition at line 151 of file efacturabf.cpp.

00151                                               {
00152         _depura("FacturaView_FacturaView", 0);
00153         
00154         EFQToolButton *mui_exporta_efactura = new EFQToolButton(fac, fac->mui_plugbotones);
00155         mui_exporta_efactura->setObjectName(QString::fromUtf8("exporta"));
00156         mui_exporta_efactura->setMinimumSize(QSize(32, 32));
00157         mui_exporta_efactura->setIcon(QIcon(QString::fromUtf8("/usr/share/bulmages/efactura/efactura.png")));
00158         mui_exporta_efactura->setIconSize(QSize(22, 22));
00159         mui_exporta_efactura->setStatusTip("Exportar eFactura");
00160         mui_exporta_efactura->setToolTip("Exportar eFactura");
00161 
00162        QHBoxLayout *m_hboxLayout1 = fac->mui_plugbotones->findChild<QHBoxLayout *>("hboxLayout1");
00163        if (!m_hboxLayout1) {
00164                 m_hboxLayout1 = new QHBoxLayout(fac->mui_plugbotones);
00165                 m_hboxLayout1->setSpacing(5);
00166                 m_hboxLayout1->setMargin(5);
00167                 m_hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1"));
00168        } // end if
00169 
00170         m_hboxLayout1->addWidget(mui_exporta_efactura);
00171         
00172         _depura("END FacturaView_FacturaView", 0);
00173         
00174         return 0;
00175 }


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