home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / sun / volume1 / contool2.2 / part01 / entry.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-10-26  |  1.7 KB  |  50 lines

  1. /************************************************************************/
  2. /*    Copyright 1988, 1989 by Chuck Musciano and Harris Corporation    */
  3. /*                                    */
  4. /*    Permission to use, copy, modify, and distribute this software    */
  5. /*    and its documentation for any purpose and without fee is    */
  6. /*    hereby granted, provided that the above copyright notice    */
  7. /*    appear in all copies and that both that copyright notice and    */
  8. /*    this permission notice appear in supporting documentation, and    */
  9. /*    that the name of Chuck Musciano and Harris Corporation not be    */
  10. /*    used in advertising or publicity pertaining to distribution    */
  11. /*    of the software without specific, written prior permission.    */
  12. /*    Chuck Musciano and Harris Corporation make no representations    */
  13. /*    about the suitability of this software for any purpose.  It is    */
  14. /*    provided "as is" without express or implied warranty.  This     */
  15. /*    software may not be sold without the prior explicit permission    */
  16. /*    of Harris Corporation.                        */
  17. /************************************************************************/
  18.  
  19. #define        eliminate(x)        panel_set(x, PANEL_SHOW_ITEM, FALSE, 0), panel_destroy_item(x)
  20.  
  21. #define        MAX_ENTRIES        128
  22.  
  23. #define        ROW_HEIGHT        16
  24. #define        ROW_MARGIN        4
  25.  
  26. #define        ITEM_WIDTH        642
  27.  
  28. #define        SHORT_TEXT_LENGTH    25
  29. #define        LONG_TEXT_LENGTH    54
  30.  
  31. typedef    struct    e_data    e_rec, *e_ptr;
  32.  
  33. struct    e_data    {Panel_item    handle;
  34.          Panel_item    save;
  35.          Panel_item    stamp;
  36.          Panel_item    open;
  37.          Panel_item    flash;
  38.          Panel_item    beep;
  39.          Panel_item    lines;
  40.          Panel_item    start;
  41.          Panel_item    end;
  42.          boolean    created;
  43.         };
  44.  
  45. PUBLIC    e_rec    entry[MAX_ENTRIES];
  46. PUBLIC    int    entries;
  47. PUBLIC    f_ptr    clipboard;
  48. PUBLIC    int    cb_size;
  49. PUBLIC    Pixfont    *bold, *regular;
  50.