Hauptseite | Liste aller Namensbereiche | Klassenhierarchie | Alphabetische Liste | Datenstrukturen | Auflistung der Dateien | Datenstruktur-Elemente | Datei-Elemente

Message.h

gehe zur Dokumentation dieser Datei
00001 /*
00002 Autor: $Author: kunkel $ State: $State: Exp $
00003 Datum: $Date: 2005/05/30 12:35:25 $
00004 Version: $Revision: 1.1 $
00005 */
00006 
00012 #ifndef MESSAGE_H
00013 #define MESSAGE_H
00014 #include "glui/glui.h"
00015 #include <string>
00016 #include <list>
00017 using namespace std;
00018 
00022 class Message {
00023 public:
00027     enum messageType{ ERROR, MSG,WARNING,COLLISION };
00028 
00029 private:
00033     static GLUI_StaticText * txtMessage;
00034 
00038     enum button{CHOOSE_MSG};
00039 
00040     static void MenuCallback(button b);
00041 
00045     enum { MSG_LEN=80,MAX_MSG=100};
00046 
00050     class singleMessage {
00051     public:
00052         char msg[MSG_LEN];
00056         messageType type;
00057     };
00058 
00059     typedef list<singleMessage> listMessages;
00060 
00064     static listMessages messages;
00065 
00069     static GLUI_Spinner * change;
00070 
00071     static void setText(char * text, messageType t);
00072 
00073 public:
00074     static void CreateWindow( int mainWin );
00075 
00076     static void clearMessages();
00077 
00078     static void msg(messageType t, const string & msg1, const string &
00079                     msg2="",const string & msg3="");
00080 };
00081 
00082 
00083 #endif

Erzeugt am Mon May 30 14:31:15 2005 für Sunsystembuildingandsimulation von doxygen 1.3.6