pluginticketbasico.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 #include <QLineEdit>
00024 #include <QTableWidget>
00025 
00026 #include "pluginticketbasico.h"
00027 #include "funcaux.h"
00028 #include "ticket.h"
00029 #include "empresatpv.h"
00030 #include "mticket.h"
00031 
00032 
00033 QDockWidget *g_doc1;
00034 QDockWidget *g_doc2;
00035 
00036 MTicket *g_bud;
00037 QTextBrowser *g_browser;
00038 
00039 
00041 
00044 int entryPoint(BulmaTPV *tpv) {
00045     _depura("entryPoint", 0);
00046 
00047     myplugin *plug = new myplugin();
00048     plug->inicializa(tpv);
00049 
00050 
00051 
00053     g_doc1 = new QDockWidget("Total", tpv);
00054     g_doc1->setFeatures(QDockWidget::AllDockWidgetFeatures);
00055 
00056     g_doc1->setGeometry(100, 100, 100, 500);
00057     g_doc1->resize(330, 400);
00058     tpv->addDockWidget(Qt::RightDockWidgetArea, g_doc1);
00059     g_doc1->show();
00060 
00061 
00063     g_doc2 = new QDockWidget("Total", tpv);
00064     g_doc2->setFeatures(QDockWidget::AllDockWidgetFeatures);
00065 
00066     g_doc2->setGeometry(100, 100, 100, 500);
00067     g_doc2->resize(330, 400);
00068     tpv->addDockWidget(Qt::LeftDockWidgetArea, g_doc2);
00069     g_doc2->show();
00070 
00071     _depura("END entryPoint", 0);
00072     return 0;
00073 }
00074 
00075 int EmpresaTPV_createMainWindows_Post(EmpresaTPV *etpv) {
00076     g_bud =  new MTicket(etpv, g_doc1);
00077         g_doc1->setWidget((QWidget *)g_bud);
00078 
00079         g_browser = new QTextBrowser(g_doc2);
00080         g_doc2->setWidget(g_browser);
00081 
00082         return 0;
00083 }
00084 
00085 int Ticket_pintar(Ticket *) {
00086         g_bud->pintar();
00087         return 0;
00088 }
00089 

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