
/***************************************************************************
 *   Copyright (C) 2008 by Dr Pierre-Marie DESOMBRE   *
 *   pm.desombre@medsyn.fr   *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/

#ifndef LECTUREDIALOG_H
#define LECTUREDIALOG_H

#include <QtGui>
#include <QtSql>
#include <QtCore>

#include "ui_lecturealarmes.h"
#include "modifierdialog.h"
#include "lectlabel.h"
class mylabel;

class Lecturalarme : public QWidget, public Ui::lecture_alarmes
{
  Q_OBJECT
public:
  Lecturalarme(QWidget *parent = 0);
  ~Lecturalarme();
  QSqlTableModel *m_modele;
  mylabel        *m_labelclic;
  QTimer         *m_timer;
  int m_x;
  int m_y;
  bool event(QEvent *event);
//void mousePressEvent(QMouseEvent *event);
protected :
  void afficher();

protected slots:
  void voir_et_changer();
  void effacer();
  void enregistrer();
  void fermer();
  void labelalerte();
  void lanceslot();
  void parametrer();
  //void croitre(int &i);
};

#endif
