#include "plugincobrar.h"#include "funcaux.h"#include "empresatpv.h"#include "cobrar.h"#include "plugins.h"#include "ticket.h"#include "qapplication2.h"Go to the source code of this file.
Typedefs | |
| typedef QMap< QString, Fixed > | base |
Functions | |
| int | entryPoint (BulmaTPV *tpv) |
| int | EmpresaTPV_createMainWindows_Post (EmpresaTPV *etpv) |
Variables | |
| Cobrar * | g_cobrar |
| QDockWidget * | g_doc1 |
Una factura puede tener multiples bases imponibles. Por eso definimos el tipo base como un QMap.
Definition at line 34 of file plugincobrar.cpp.
| int EmpresaTPV_createMainWindows_Post | ( | EmpresaTPV * | etpv | ) |
Definition at line 59 of file plugincobrar.cpp.
References g_cobrar, and g_doc1.
00059 { 00060 g_cobrar = new Cobrar(etpv, g_doc1); 00061 // etpv->pWorkspace()->addWindow(g_cobrar); 00062 g_doc1->setWidget(g_cobrar); 00063 00064 // ((BulmaTPV *)etpv->parent())->addDockWidget(Qt::LeftDockWidgetArea, g_cobrar); 00065 return 0; 00066 }
| int entryPoint | ( | BulmaTPV * | tpv | ) |
Vamos a probar con un docwindow.
Definition at line 43 of file plugincobrar.cpp.
References _depura(), and g_doc1.
00043 { 00044 _depura("entryPoint", 0); 00045 00047 g_doc1 = new QDockWidget("Cobrar", tpv); 00048 g_doc1->setFeatures(QDockWidget::AllDockWidgetFeatures); 00049 00050 g_doc1->setGeometry(100, 100, 100, 500); 00051 g_doc1->resize(330, 400); 00052 tpv->addDockWidget(Qt::LeftDockWidgetArea, g_doc1); 00053 g_doc1->show(); 00054 00055 _depura("END entryPoint", 0); 00056 return 0; 00057 }
Definition at line 38 of file plugincobrar.cpp.
1.5.1