home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / clients / bitmap / Dialog.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-02-22  |  1.7 KB  |  49 lines

  1. /*
  2.  * $XConsortium: Dialog.h,v 1.5 91/02/22 18:20:14 converse Exp $
  3.  *
  4.  * Copyright 1989 Massachusetts Institute of Technology
  5.  *
  6.  * Permission to use, copy, modify, distribute, and sell this software and its
  7.  * documentation for any purpose is hereby granted without fee, provided that
  8.  * the above copyright notice appear in all copies and that both that
  9.  * copyright notice and this permission notice appear in supporting
  10.  * documentation, and that the name of M.I.T. not be used in advertising or
  11.  * publicity pertaining to distribution of the software without specific,
  12.  * written prior permission.  M.I.T. makes no representations about the
  13.  * suitability of this software for any purpose.  It is provided "as is"
  14.  * without express or implied warranty.
  15.  *
  16.  * M.I.T. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
  17.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL M.I.T.
  18.  * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  19.  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
  20.  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  21.  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  22.  *
  23.  * Author:  Davor Matic, MIT X Consortium
  24.  */
  25.  
  26.  
  27. /*#define None   0*/
  28. #define Yes    1<<1
  29. #define No     1<<2
  30. #define Maybe  1<<3  /* :-) */
  31. #define Okay   1<<4
  32. #define Abort  1<<5
  33. #define Cancel 1<<6
  34. #define Retry  1<<7
  35.  
  36. typedef struct {
  37.   Widget top_widget, shell_widget, dialog_widget;
  38.   unsigned long options;
  39. } _Dialog, *Dialog;
  40.  
  41. typedef struct {
  42.     String name;
  43.     unsigned long flag;
  44. } DialogButton;
  45.  
  46. extern Dialog CreateDialog();
  47. extern unsigned long PopupDialog();
  48. extern void PopdownDialog();
  49.