Back to index

plt-scheme  4.2.1
Message.h
Go to the documentation of this file.
00001 /*                                                      -*- C++ -*-
00002  *
00003  * Purpose: message panel item
00004  *
00005  * Authors: Markus Holzem and Julian Smart
00006  *
00007  * Copyright: (C) 2004-2009 PLT Scheme Inc.
00008  * Copyright: (C) 1995, AIAI, University of Edinburgh (Julian)
00009  * Copyright: (C) 1995, GNU (Markus)
00010  *
00011  * This program is free software; you can redistribute it and/or modify
00012  * it under the terms of the GNU General Public License as published by
00013  * the Free Software Foundation; either version 2 of the License, or
00014  * (at your option) any later version.
00015  *
00016  * This program is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU General Public License
00022  * along with this program; if not, write to the Free Software
00023  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00024  * 02110-1301 USA.
00025  */
00026 
00027 #ifndef Message_h
00028 #define Message_h
00029 
00030 #ifdef __GNUG__
00031 #pragma interface
00032 #endif
00033 
00034 class wxBitmap;
00035 class wxPanel;
00036 
00037 class wxMessage: public wxItem {
00038 public:
00039     ~wxMessage(void);
00040 
00041     wxMessage(wxPanel *panel, char *label, int x=-1, int y=-1,
00042             long style=0, wxFont *_font = NULL, char *name="message");
00043     wxMessage(wxPanel *panel, wxBitmap *bitmap, int x=-1, int y=-1,
00044             long style=0, wxFont *_font = NULL, char *name = "message");
00045     wxMessage(wxPanel *panel, int iconID, int x=-1, int y=-1,
00046             long style=0, wxFont *_font = NULL, char *name = "message");
00047     
00048     Bool Create(wxPanel *panel, char *label, int x=-1, int y=-1,
00049               long style=0, char *name="message");
00050     Bool Create(wxPanel *panel, wxBitmap *bitmap, int x=-1, int y=-1,
00051               long style=0, char *name="message");
00052 
00053     Bool Create(wxPanel *panel, char *label, wxBitmap *bitmap, int iconID, int x, int y,
00054               long style, char *name);
00055 
00056     void AllowResize(Bool allow);
00057     void SetAlignment(long alignment);
00058     void SetLabel(char *message);
00059     void SetLabel(wxBitmap *bitmap);
00060 
00061     virtual char  *GetLabel(void);
00062 
00063 private:
00064   wxBitmap *bm_label, *bm_label_mask;
00065 };
00066 
00067 #define wxMSGICON_APP 1
00068 #define wxMSGICON_WARNING 2
00069 #define wxMSGICON_ERROR 3
00070 
00071 #endif // Message_h