00001 /*************************************************************************** 00002 * Copyright (C) 2005 by Tomeu Borras * 00003 * tborras@conetxia.com * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 * This program is distributed in the hope that it will be useful, * 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00013 * GNU General Public License for more details. * 00014 * * 00015 * You should have received a copy of the GNU General Public License * 00016 * along with this program; if not, write to the * 00017 * Free Software Foundation, Inc., * 00018 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 00019 ***************************************************************************/ 00020 00021 #include "msgerror.h" 00022 00023 00025 00027 void msgError::hideFrame() { 00028 m_framedetalles->hide(); 00029 } 00030 00031 00033 00035 void msgError::showFrame() { 00036 m_framedetalles->show(); 00037 } 00038 00039 00041 00043 void msgError::s_mostrarDetalles() { 00044 if (m_framedetalles->isVisible()) { 00045 hideFrame(); 00046 } else { 00047 showFrame(); 00048 } // end if 00049 } 00050 00051 00053 00056 msgError::msgError(QWidget *parent) : QDialog(parent) { 00057 setupUi(this); 00058 QObject::connect(pushButton1, SIGNAL(clicked(bool)), this, SLOT(close())); 00059 QObject::connect(pushButton2, SIGNAL(clicked(bool)), this, SLOT(s_mostarDetalles())); 00060 } 00061 00062 00064 00068 msgError::msgError(QString mensaje, QString descripcion) { 00069 setupUi(this); 00070 hideFrame(); 00071 m_mensaje->setText(mensaje); 00072 m_detalles->setPlainText(descripcion); 00073 exec(); 00074 } 00075 00076 00078 00080 msgError::~msgError() {} 00081
1.5.1