00001 /*************************************************************************** 00002 * Copyright (C) 2007 by Tomeu Borras Riera * 00003 * tborras@conetxia.com * 00004 * http://www.iglues.org * 00005 * * 00006 * This program is free software; you can redistribute it and/or modify * 00007 * it under the terms of the GNU General Public License as published by * 00008 * the Free Software Foundation; either version 2 of the License, or * 00009 * (at your option) any later version. * 00010 * * 00011 * This program is distributed in the hope that it will be useful, * 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00014 * GNU General Public License for more details. * 00015 * * 00016 * You should have received a copy of the GNU General Public License * 00017 * along with this program; if not, write to the * 00018 * Free Software Foundation, Inc., * 00019 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 00020 ***************************************************************************/ 00021 00022 #ifndef MTICKET_H 00023 #define MTICKET_H 00024 00025 #include <QLabel> 00026 #include <QTableWidget> 00027 #include "ticket.h" 00028 #include "empresatpv.h" 00029 #include "ui_mticketbase.h" 00030 #include "subform2bt.h" 00031 00032 00033 class MTicket : public BLWidget, public Ui_MTicketBase { 00034 Q_OBJECT 00035 public: 00036 MTicket(EmpresaTPV *emp, QWidget *parent); 00037 virtual ~MTicket(); 00038 virtual void pintar(); 00039 public slots: 00040 virtual void on_mui_subir_clicked(); 00041 virtual void on_mui_bajar_clicked(); 00042 virtual void on_mui_borrar_clicked(); 00043 }; 00044 00045 00046 00047 class myplugin : public QObject { 00048 Q_OBJECT 00049 private: 00050 BulmaTPV *m_tpv; 00051 SubForm2Bt *m_lan; 00052 00053 public: 00054 myplugin(); 00055 ~myplugin(); 00056 void inicializa(BulmaTPV *tpv); 00057 00058 public slots: 00059 virtual void elslot(QTableWidgetItem *); 00060 00061 }; 00062 00063 #endif 00064
1.5.1