3
* $Id: mensajes.h 3698 2011-04-14 12:38:49Z carlos $
6
* Copyright 2008-10 MetaEmotion S.L. All rights reserved.
7
* http://ginkgo-cadx.com
9
* This file is licensed under LGPL v3 license.
10
* See License.txt for details
19
//este evento servir� para lanzar mensajes al usuario, en el status bar y en un futuro en el popup window q sea
20
class EXTAPI EventoMensajes : public GNC::GCS::Eventos::IEvento
34
EventoMensajes(GNC::GCS::IVista* pVista, TipoEventoMensajes tipo = StatusMessage, TipoGravedad gravedad = Informacion): GNC::GCS::Eventos::IEvento(ginkgoEVT_Core_MensajesUsuario,0,100,pVista){
35
m_Nombre = "Mensajes";
37
m_gravedad = gravedad;
41
EventoMensajes(GNC::GCS::IVista* pVista,const std::string& mensaje, TipoEventoMensajes tipo = StatusMessage, bool sincrono = true, TipoGravedad gravedad = Informacion) : GNC::GCS::Eventos::IEvento(ginkgoEVT_Core_MensajesUsuario,0,100,pVista)
43
m_Nombre = "Mensajes";
46
m_gravedad = gravedad;
47
m_sincrono = sincrono;
54
std::string& GetMensaje(){
58
TipoEventoMensajes GetTipo(){
62
void SetGravedad(TipoGravedad gravedad) {
63
m_gravedad = gravedad;
66
TipoGravedad GetGravedad() {
70
bool IsSincronoConLaInterfaz() {
74
virtual void pushInfo(std::ostream& out) const {
75
out << "Mensaje: " << m_Mensaje;
79
std::string m_Mensaje;
80
TipoEventoMensajes m_tipo;
81
TipoGravedad m_gravedad;