plugintecladonumerico.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 
00023 #include <QDockWidget>
00024 
00025 #include "plugintecladonumerico.h"
00026 #include "funcaux.h"
00027 #include "empresatpv.h"
00028 #include "tecladonumerico.h"
00029 
00030 
00031 
00032 QDockWidget *g_doc1;
00033 
00034 TecladoNumerico *g_tecl;
00036 
00039 int entryPoint(BulmaTPV *tpv) {
00040     _depura("entryPoint", 0);
00042     g_doc1 = new QDockWidget("Teclado", tpv);
00043     g_doc1->setFeatures(QDockWidget::AllDockWidgetFeatures);
00044 
00045     g_doc1->setGeometry(100, 100, 100, 500);
00046     g_doc1->resize(330, 400);
00047     tpv->addDockWidget(Qt::LeftDockWidgetArea, g_doc1);
00048     g_doc1->show();
00049 
00050     _depura("END entryPoint", 0);
00051     return 0;
00052 }
00053 
00054 int EmpresaTPV_createMainWindows_Post(EmpresaTPV *etpv) {
00055         g_tecl = new TecladoNumerico(etpv, g_doc1);
00056 //      etpv->pWorkspace()->addWindow(g_tecl);
00057         g_doc1->setWidget(g_tecl);
00058         return 0;
00059 }
00060 
00061 int Input_keyPressEvent_Post(Input *in) {
00062     g_tecl->mui_display->setText(in->valorInput());
00063 }
00064 

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