00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include <QMenu>
00022 #include <QAction>
00023 #include <QObject>
00024 #include <QMessageBox>
00025 #include <QToolButton>
00026
00027 #include <stdio.h>
00028
00029 #include "efacturabf.h"
00030 #include "efactura.h"
00031
00032 #include "efacturarecepcion.h"
00033 #include "company.h"
00034 #include "funcaux.h"
00035
00036 #include "facturaview.h"
00037 #include "efqtoolbutton.h"
00038
00039 #include "facturasplist.h"
00040 #include "efqtoolbutton_importar.h"
00041
00042
00044
00046 efacturabf::efacturabf() {
00047 _depura("efacturabf::efacturabf", 0);
00048 _depura("END efacturabf::efacturabf", 0);
00049 }
00050
00051
00053
00055 efacturabf::~efacturabf() {
00056 _depura("efacturabf::~efacturabf", 0);
00057 _depura("efacturabf::~efacturabf", 0);
00058 }
00059
00060
00062
00064 void efacturabf::elslot() {
00065 _depura("efacturabf::elslot", 0);
00066 EFactura *ef = new EFactura((Company *)empresaBase());
00067 ef->show();
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081 _depura("END efacturabf::elslot", 0);
00082 }
00083
00084
00086
00088 void efacturabf::elslot1() {
00089 _depura("efacturabf::elslot1", 0);
00090 EFacturaRecepcion *efr = new EFacturaRecepcion((Company *)empresaBase());
00091 efr->show();
00092 _depura("END efacturabf::elslot1", 0);
00093 }
00094
00095
00097
00100 void efacturabf::inicializa(Bulmafact *bges) {
00101 _depura("efacturabf::inicializa", 0);
00103 setEmpresaBase(bges->getcompany());
00104
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125 _depura("END efacturabf::inicializa", 0);
00126 }
00127
00128
00130
00133 void entryPoint(Bulmafact *bges) {
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 }
00144
00145
00147
00151 int FacturaView_FacturaView(FacturaView *fac) {
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 }
00169
00170 m_hboxLayout1->addWidget(mui_exporta_efactura);
00171
00172 _depura("END FacturaView_FacturaView", 0);
00173
00174 return 0;
00175 }
00176
00177
00179
00183 int FacturasProveedorList_FacturasProveedorList_Post(FacturasProveedorList *listfac) {
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 }
00201 m_hboxLayout1->addWidget(mui_importa_efactura);
00202
00203 _depura("END FacturasProveedorList_FacturasProveedorList_Post", 0);
00204
00205 return 0;
00206 }