#include <QStringList>#include <QWidget>#include <QIcon>#include <QApplication>#include <QObject>#include "bulmafact.h"#include "clienteview.h"#include "ficha.h"Go to the source code of this file.
Defines | |
| #define | MY_EXPORT |
Functions | |
| MY_EXPORT int | entryPoint (Bulmafact *) |
| MY_EXPORT int | ClienteView_ClienteView (ClienteView *) |
| MY_EXPORT int | Ficha_cargar (Ficha *) |
| #define MY_EXPORT |
Definition at line 24 of file plugincontratos.h.
| MY_EXPORT int ClienteView_ClienteView | ( | ClienteView * | cli | ) |
| cli |
Para que funcione bien debemos iniciar con SelectMode y luego pasar a EditMode ya que si no se hace un meteWindow y no es deseable.
Definition at line 103 of file plugincontratos.cpp.
00103 { 00104 _depura("ClienteView_ClienteView", 0); 00106 ContratosList *l = new ContratosList(((Company *)art->empresaBase()), art, 0, ContratosList::SelectMode); 00107 l->setObjectName(QString::fromUtf8("ccontratoslist")); 00108 art->mui_tab->addTab(l, "Contratos"); 00109 l->editMode(); 00110 _depura("END ClienteView_ClienteView", 0); 00111 return 0; 00112 }
| MY_EXPORT int entryPoint | ( | Bulmafact * | bges | ) |
| bges |
Añade en el menú del programa la opcióMn para acceder al corrector.
Definition at line 43 of file comercialbf.cpp.
00043 { 00044 _depura("Punto de Entrada del plugin ComercialBF", 0); 00046 QTranslator *traductor = new QTranslator(0); 00047 if (confpr->valor(CONF_TRADUCCION) == "locales") { 00048 traductor->load(QString("comercialbf_") + QLocale::system().name(), 00049 confpr->valor(CONF_DIR_TRADUCCION).toAscii().constData()); 00050 } else { 00051 QString archivo = "comercialbf_" + confpr->valor(CONF_TRADUCCION); 00052 traductor->load(archivo, confpr->valor(CONF_DIR_TRADUCCION).toAscii().constData()); 00053 } // end if 00054 theApp->installTranslator(traductor); 00055 00056 mypluginbf *plug = new mypluginbf(); 00057 plug->inicializa(bges); 00058 _depura("END Punto de Entrada del plugin ComercialBF", 0); 00059 return 0; 00060 }
| MY_EXPORT int Ficha_cargar | ( | Ficha * | fich | ) |
| fich |
Definition at line 113 of file pluginproyectos.cpp.
00113 { 00114 ListProyectosView *l = ficha->findChild<ListProyectosView *>("mui_proyectos"); 00115 if (l) 00116 l->mui_listado->cargar("SELECT * FROM presupuestoc WHERE idc_coste = " + ficha->DBvalue("idc_coste")); 00117 return 0; 00118 }
1.5.1