home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 February: Tool Chest / Dev.CD Feb 95 / Dev.CD Feb 95.toast / Sample Code / Pascal Sample 3.0B10 / Source / SampleDialog.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-10-13  |  3.3 KB  |  84 lines  |  [TEXT/MPS ]

  1. /******************************************************************************
  2. *
  3. * SampleDialog.h -- constants for the SampleDialog code and resources
  4. *
  5. * Developer Support Center
  6. * Apple Computer, Inc.
  7. * Copyright 1988-1993, Apple Computer, Inc.  All rights reserved.
  8. *
  9. * This file contains constant definitions for the SampleDialog code, including
  10. * dialog IDs, resource IDs and the like.
  11. *
  12. ******************************************************************************/
  13.  
  14. /* Constants for the dialogs we use */
  15.  
  16. #define circleDialogID    130
  17. #define prefsID            132
  18.  
  19. /* Constants for alerts for errors these dialogs may encounter */
  20.  
  21. #define rSizeTooBigAlert    131        /* You entered a text size that's too large */
  22.  
  23. #define rOnlyTenCirclesID    4000    /* Can't have more than ten circles per
  24.                                        document in the preferences             */
  25. #define rLessThan500Please    4001    /* Circles must be <=500 pixels wide    */
  26. #define rInsetTooMuch        4002    /* The inset value is too big            */
  27. #define rInsetMustBeChanged    4003    /* The inset value was too big for the
  28.                                        rectangles you specified when you
  29.                                        dismissed the dialog                    */
  30.                                        
  31. /* Dialog item numbers for both dialogs */
  32.  
  33. #define dialogTitle        3            /* item number of title of the dialog */
  34.  
  35. /* Dialog item numbers for the modify circle dialog */
  36.  
  37. #define fontTitle        4            /* title of the font pop-up menu */
  38. #define fontPopUp        5            /* The font pop-up user item      */
  39. #define sizeTitle        6            /* title of the size pop-up menu */
  40. #define sizeEditText    7            /* Type-in item for size pop-up  */
  41. #define sizePopUp        8            /* The size pop-up user item     */
  42. #define styleTitle        9            /* title of group of "style" checkboxes */
  43.  
  44. /* These items are the "style" checkbox items.  They must be in this order,
  45.    and the "plain" box must be the last in the list.  The routines which
  46.    change these items back and forth between checkbox items and a Style
  47.    data type depend on the ordering.                                        */
  48.  
  49. #define boldBox            10            /* These are the style checkbox items */
  50. #define italicBox        11
  51. #define underlineBox    12
  52. #define outlineBox        13
  53. #define shadowBox        14
  54. #define condensedBox    15
  55. #define extendedBox        16
  56. #define plainBox        17
  57.  
  58. /* more modify item numbers */
  59.  
  60. #define textTitle        18            /* title for user-entered text             */
  61. #define textEditText    19            /* Type-in item for user-entered text     */
  62. #define colorButton        20            /* "color..." Button for color systems    */
  63. #define circleUserItem    21            /* User item for sample circle            */
  64. #define defaultUserItem    22            /* User item to frame default Button    */
  65.                                        
  66. /* Dialog item numbers for the preferences dialog */
  67.  
  68. #define numCirclesEditText    4        /* Type-in item for max number of circles    */
  69. #define maxCirclesTitle        5        /* title for max number of circles item     */
  70. #define rectSizeEditText    6        /* Type-in item for circle size                */
  71. #define rectSizeTitle        7        /* title for circle size item                */
  72. #define circleInsetEditText    8        /* Type-in item for each circle's inset        */
  73. #define circleInsetTitle    9        /* title for circle inset item                */
  74. #define prefsUserItem        10        /* User item to frame default Button        */
  75. #define forNewDocsTitle        11        /* title showing which prefs are for new docs */
  76.  
  77. /* Constants for the menus these dialogs use */
  78.  
  79. #define mFonts    132            /* the "Fonts" menu resource ID */
  80. #define mSize    133            /* the "Size" menu resource ID     */
  81.  
  82. /* Miscellaneous resource IDs */
  83.  
  84. #define rPopDownArrowID    1000    /* 'SICN' ID of the pop-up down triangle */