home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / x / xtici.zip / xtici / widgets / xticiSD.h < prev    next >
C/C++ Source or Header  |  1991-08-28  |  7KB  |  213 lines

  1. /*
  2.  * Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
  3.  *     All Rights Reserved
  4.  * 
  5.  * This file is a component of an X Window System client which uses the Xcms 
  6.  * Color Management System.  TekColor is a trademark of Tektronix, Inc.  The
  7.  * TekColor Editor is the subject of U.S. and foreign patents pending.  The
  8.  * term "TekHVC" designates a particular color space that is the subject of
  9.  * U.S. Patent No. 4,985,853 (equivalent foreign patents pending).
  10.  * Permission is hereby granted to use, copy, modify, sell, and otherwise
  11.  * distribute this software and its documentation for the X Window System
  12.  * environment, for any purpose and without fee, provided that:
  13.  * 
  14.  * 1.    The code and documentation are only used to implement a 
  15.  *      TekColor Editor in an X Window System environment; and
  16.  * 2.    This copyright and permission notice is reproduced in all copies
  17.  *     of the code and in supporting documentation.
  18.  * 
  19.  * Permission is granted to modify this code as required to allow it to
  20.  * be compiled on any host computer, provided that the functionality of
  21.  * the TekColor Editor is not modified in any way.  A description of any 
  22.  * modifications must be sent to Tektronix, Inc.  Contact 
  23.  * Tektronix Inc., P.O. Box 1000, Mail Station 60-850, 
  24.  * Network Displays Division Engineering, Wilsonville, OR 97070.
  25.  * 
  26.  * Tektronix makes no representation about the suitability of this software
  27.  * for any purpose.  It is provided "as is" and with all faults.
  28.  * 
  29.  * TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
  30.  * INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
  31.  * PARTICULAR PURPOSE.  IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
  32.  * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
  33.  * RESULTING FROM LOSS OF USE, DATA, OR PROFITS, WHETHER IN AN ACTION OF
  34.  * CONTRACT, NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  35.  * CONNECTION WITH THE USE OR THE PERFORMANCE OF THIS SOFTWARE.
  36.  *  
  37.  *    NAME
  38.  *        xticiSD.h -- String definitions and miscellaneous for xtici_mit
  39.  *
  40.  *    DESCRIPTION
  41.  *        
  42.  *
  43.  *    HISTORY
  44.  *
  45.  *    HISTORY END
  46.  *
  47.  */
  48.  
  49. #ifndef LINT
  50. #ifdef RCS_ID
  51. static char *rcsid=  "$Header: xticiSD.h,v 1.1 91/08/22 11:22:26 adamsc Exp $";
  52. #endif /* RCS_ID */
  53. #endif /* LINT */
  54.  
  55. #ifndef _XTICISD_h
  56. #define _XTICISD_h
  57.  
  58. #include <X11/Xcms.h>
  59.  
  60. #define XtNactivateCallback    "activateCallback"
  61. #define XtNarmCallback    "armCallback"
  62. #define XtNarrowDirection    "arrowDirection"
  63. #define XtNbase        "base"
  64. #define XtNbitsRgb    "bitsRgb"
  65. #define XtNblinkRate    "blinkRate"
  66. #define XtNblueMask    "blueMask"
  67. #define XtNcmapSize    "cmapSize"
  68. #define XtNcolumns    "columns"
  69. #define XtNdisarmCallback    "disarmCallback"
  70. #define XtNfacing    "facing"
  71. #define XtNfloatList    "floatList"
  72. #define XtNfocusCallback    "focusCallback"
  73. #define XtNformat    "format"
  74. #define XtNgreenMask    "greenMask"
  75. #define XtNhvc        "hvc"
  76. #define XtNincrement    "increment"
  77. #define    XtNlabelList    "labelList"
  78. #define XtNlosingFocusCallback    "losingFocusCallback"
  79. #define XtNmaximum    "maximum"
  80. #define XtNminimum    "minimum"
  81. #define XtNmodifyVerifyCallback    "modifyVerifyCallback"
  82. #define XtNpixelInc    "pixelInc"
  83. #ifndef MIT
  84. #define XtNprinter    "printer"
  85. #endif /* MIT */
  86. #define XtNredMask    "redMask"
  87. #define XtNsingleSelectionCallback    "singleSelectionCallback"
  88. #define XtNsliderExtent    "sliderExtent"
  89. #define XtNvalueChangedCallback        "valueChangedCallback"
  90. /* #define XtNvisual    "visual" */
  91. #define XtNzoom        "zoom"
  92.  
  93. #define XtCActivateCallback    "ActivateCallback"
  94. #define XtCArmCallback    "ArmCallback"
  95. #define XtCArrowDirection    "ArrowDirection"
  96. #define XtCBase        "Base"
  97. #define XtCBitsRgb    "BitsRgb"
  98. #define XtCBlinkRate    "BlinkRate"
  99. #define XtCBlueMask    "BlueMask"
  100. #define XtCCmapSize    "CmapSize"
  101. #define XtCColumns    "Columns"
  102. #define XtCDisarmCallback    "DisarmCallback"
  103. #define XtCFacing    "Facing"
  104. #define XtCFloatList    "FloatList"
  105. #define XtCFocusCallback    "FocusCallback"
  106. #define XtCFormat    "Format"
  107. #define XtCGreenMask    "GreenMask"
  108. #define XtCHvc        "Hvc"
  109. #define XtCIncrement    "Increment"
  110. #define    XtCLabelList    "LabelList"
  111. #define XtCLosingFocusCallback    "LosingFocusCallback"
  112. #define XtCMaximum    "Maximum"
  113. #define XtCMinimum    "Minimum"
  114. #define XtCModifyVerifyCallback    "ModifyVerifyCallback"
  115. #define XtCPixelInc    "PixelInc"
  116. #ifndef MIT
  117. #define XtCPrinter    "Printer"
  118. #endif /* MIT */
  119. #define XtCRedMask    "RedMask"
  120. #define XtCSliderExtent    "SliderExtent"
  121. #define    XtCXtStringList    "XtStringList"
  122. /* #define XtCVisual    "Visual" */
  123. #define XtCZoom        "Zoom"
  124.  
  125. #define XtRFloatList    "FloatList"
  126. #define    XtRLabelList    "LabelList"
  127. #define XtRHvc        "Hvc"
  128. #ifndef MIT
  129. #define XtRPrinter    "Printer"
  130. #endif /* MIT */
  131. #define    XtRXtStringList    "XtStringList"
  132.  
  133. /* legal facing values */
  134. #define XtNormalFacing        0
  135. #define XtReverseFacing        1
  136. #define XtSwizzledFacing    2
  137. #define XtSwizzledReverseFacing    3
  138. #define XtTopFacing        4
  139.  
  140. /*
  141.  * The practical chroma limit for most devices is less than 100,
  142.  * but it might be > 100 for some device - white point - hue combinations.
  143.  * Using the theoretical maximum is not a good idea because that will squash
  144.  * all leaves into a tiny portion of the graph, making it harder to use.
  145.  * This is a tradeoff between practical and theoretical limits.
  146.  */
  147. #define LeafMaxChroma 120.0
  148.  
  149. /*
  150.  * A series of callback reasons.
  151.  */
  152. #define    CR_NO_CALLBACK                0
  153. #define CR_SINGLE_SELECT            1
  154. #define CR_ACTIVATE                2
  155. #define CR_DISARM                3
  156. #define CR_INCREMENT                4
  157. #define CR_DECREMENT                5
  158. #define CR_ARM                    6
  159. #define CR_VALUE_CHANGED            7
  160. #define CR_FOCUS                8
  161. #define CR_LOSING_FOCUS                9
  162. #define CR_DRAG                    10
  163. #define CR_MODIFYING_TEXT_VALUE            11
  164.  
  165. /*
  166.  * A series of defines to tell what events interested in
  167.  */
  168. #define NO_EVENT                0x00
  169. #define ARM_EVENT                0x1 << 0
  170. #define ACTIVATE_EVENT                0x1 << 1
  171. /*
  172.  * A callback structure returned by Hvcleaf activate callback.
  173.  */
  174. typedef struct {
  175.     int reason;
  176.     XEvent *event;
  177.     XcmsColor *hvc;
  178. } HvcCallbackStruct;
  179.  
  180. /*
  181.  * A callback structure returned by TriText activate callback.
  182.  */
  183. typedef struct {
  184.     int reason;
  185.     XEvent *event;
  186.     int index;
  187.     XcmsFloat value;
  188. } TriCallbackStruct;
  189.  
  190. /*
  191.  *  Callback structure for colorbar and colorscale
  192.  */
  193. typedef struct {
  194.     int        reason;
  195.     XEvent    *event;
  196.     int        value;
  197. } ScaleCallbackStruct;
  198.  
  199. /* Callback structure for text modifications */
  200. typedef struct {
  201.     int        reason;
  202.     XEvent    *event;
  203.     int        doit;
  204.     String    text;
  205. } TextCallbackStruct;
  206.  
  207. #define XtorientationUp            0
  208. #define XtorientationDown        1
  209. #define XtorientationLeft        2
  210. #define XtorientationRight        3
  211.  
  212. #endif /* _XTICISD_h */
  213.