Dialog.h revision eaef79e5
1/* $Xorg: Dialog.h,v 1.4 2001/02/09 02:05:28 xorgcvs Exp $ */ 2/* 3 4Copyright 1989, 1998 The Open Group 5 6Permission to use, copy, modify, distribute, and sell this software and its 7documentation for any purpose is hereby granted without fee, provided that 8the above copyright notice appear in all copies and that both that 9copyright notice and this permission notice appear in supporting 10documentation. 11 12The above copyright notice and this permission notice shall be included 13in all copies or substantial portions of the Software. 14 15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 16OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 18IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 19OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 20ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 21OTHER DEALINGS IN THE SOFTWARE. 22 23Except as contained in this notice, the name of The Open Group shall 24not be used in advertising or otherwise to promote the sale, use or 25other dealings in this Software without prior written authorization 26from The Open Group. 27 28*/ 29/* $XFree86: xc/programs/bitmap/Dialog.h,v 1.3 2001/01/17 23:44:51 dawes Exp $ */ 30 31/* 32 * Author: Davor Matic, MIT X Consortium 33 */ 34 35 36/*#define None 0*/ 37#define Yes 1<<1 38#define No 1<<2 39#define Maybe 1<<3 /* :-) */ 40#define Okay 1<<4 41#define Abort 1<<5 42#define Cancel 1<<6 43#define Retry 1<<7 44 45typedef struct { 46 Widget top_widget, shell_widget, dialog_widget; 47 unsigned long options; 48} _Dialog, *Dialog; 49 50typedef struct { 51 String name; 52 unsigned long flag; 53} DialogButton; 54 55extern Dialog CreateDialog(Widget, String, unsigned long); 56extern unsigned long PopupDialog(Dialog, String, String, String *, XtGrabKind); 57extern void PopdownDialog(Dialog, String *); 58