Back to index

plt-scheme  4.2.1
DialogBox.h
Go to the documentation of this file.
00001 /*                                                      -*- C++ -*-
00002  *
00003  * Purpose: dialog box
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 DialogBox_h
00028 #define DialogBox_h
00029 
00030 #ifdef __GNUG__
00031 #pragma interface
00032 #endif
00033 
00034 class wxDialogBox : public wxFrame {
00035 public:
00036     wxDialogBox(void);
00037     wxDialogBox(wxWindow *parent, char *title, Bool modal=FALSE,
00038               int x=-1, int y=-1, int width=500, int height=500,
00039               long style=wxDEFAULT_DIALOG_STYLE, char *name="dialogBox");
00040 
00041     Bool Create(wxFrame *parent, char *title, Bool modal=FALSE,
00042               int x=-1, int y=-1, int width=500, int height=500,
00043               long style=wxDEFAULT_DIALOG_STYLE, char *name="dialogBox");
00044 
00045     Bool Show(Bool show);
00046 
00047     Bool ModalShowing() { return !!restore_disabled_windows; }
00048 private:
00049     wxList *restore_disabled_windows;
00050 };
00051 
00052 #endif // DialogBox_h
00053