~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Tina6/tina-tools/tinatool/draw/drawTv_globals.c

Version: ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*********
  2  * Copyright (c) 2003, Division of Imaging Science and Biomedical Engineering,
  3  * University of Manchester, UK.  All rights reserved.
  4  * 
  5  * Redistribution and use in source and binary forms, with or without modification, 
  6  * are permitted provided that the following conditions are met:
  7  * 
  8  *   . Redistributions of source code must retain the above copyright notice, 
  9  *     this list of conditions and the following disclaimer.
 10  *    
 11  *   . Redistributions in binary form must reproduce the above copyright notice,
 12  *     this list of conditions and the following disclaimer in the documentation 
 13  *     and/or other materials provided with the distribution.
 14  * 
 15  *   . Neither the name of the University of Manchester nor the names of its
 16  *     contributors may be used to endorse or promote products derived from this 
 17  *     software without specific prior written permission.
 18  * 
 19  * 
 20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
 21  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
 22  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
 23  * ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 
 24  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
 25  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
 26  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 27  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 
 28  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
 29  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
 30  * POSSIBILITY OF SUCH DAMAGE.
 31  *
 32  **********
 33  *
 34  * Program :    TINA
 35  * File    :  $Source: /home/tina/cvs/tina-tools/tinatool/draw/drawTv_globals.c,v $
 36  * Date    :  $Date: 2003/10/01 16:02:47 $
 37  * Version :  $Revision: 1.2 $
 38  * CVS Id  :  $Id: drawTv_globals.c,v 1.2 2003/10/01 16:02:47 tony Exp $
 39  *
 40  * Author  : Legacy TINA
 41  *
 42  * Notes :
 43  *
 44  *********
 45 */
 46 
 47 #include "drawTv_globals.h"
 48 
 49 #if HAVE_CONFIG_H
 50   #include <config.h>
 51 #endif
 52 
 53 #include <stdio.h>
 54 #include <tina/sys/sysDef.h>
 55 #include <tina/math/mathDef.h>
 56 #include <tinatool/draw/draw_TvDef.h>
 57 
 58 const int overlay;
 59 
 60 /* Fonts are global */
 61 const char tina_default_font[] = "8x13";
 62 const char tina_small_font[] = "6x10";
 63 const char tina_medium_font[] = "8x13";
 64 const char tina_large_font[] = "9x15";
 65 
 66 #ifndef _PCC
 67 /* Names of common colours are global variables */
 68 const int bkgrnd     = CMAPLOOKUPCOLORSBASE ;
 69 const int black      = CMAPLOOKUPCOLORSBASE + 1;
 70 const int blue       = CMAPLOOKUPCOLORSBASE + 2;
 71 const int red        = CMAPLOOKUPCOLORSBASE + 3;
 72 const int yellow     = CMAPLOOKUPCOLORSBASE + 4;
 73 const int green      = CMAPLOOKUPCOLORSBASE + 5;
 74 const int white      = CMAPLOOKUPCOLORSBASE + 6;
 75 const int aubergine  = CMAPLOOKUPCOLORSBASE + 7;
 76 const int avocado    = CMAPLOOKUPCOLORSBASE + 8;
 77 const int baby_blue  = CMAPLOOKUPCOLORSBASE + 9;
 78 const int baby_pink  = CMAPLOOKUPCOLORSBASE + 10;
 79 const int brown      = CMAPLOOKUPCOLORSBASE + 11;
 80 const int chocolate  = CMAPLOOKUPCOLORSBASE + 12;
 81 const int coffee     = CMAPLOOKUPCOLORSBASE + 13;
 82 const int cyan       = CMAPLOOKUPCOLORSBASE + 14;
 83 const int dark_green = CMAPLOOKUPCOLORSBASE + 15;
 84 const int dark_slate = CMAPLOOKUPCOLORSBASE + 16;
 85 const int gold       = CMAPLOOKUPCOLORSBASE + 17;
 86 const int heliotrope = CMAPLOOKUPCOLORSBASE + 18;
 87 const int indian_red = CMAPLOOKUPCOLORSBASE + 19;
 88 const int ivory      = CMAPLOOKUPCOLORSBASE + 20;
 89 const int magenta    = CMAPLOOKUPCOLORSBASE + 21;
 90 const int orange     = CMAPLOOKUPCOLORSBASE + 22;
 91 const int pale_green = CMAPLOOKUPCOLORSBASE + 23;
 92 const int plum       = CMAPLOOKUPCOLORSBASE + 24;
 93 const int salmon     = CMAPLOOKUPCOLORSBASE + 25;
 94 const int slate      = CMAPLOOKUPCOLORSBASE + 26;
 95 const int violet     = CMAPLOOKUPCOLORSBASE + 27;
 96 const int wheat      = CMAPLOOKUPCOLORSBASE + 28;
 97 const int ntina_colors = 29;
 98 #else
 99 
100 /* Names of common colours are global variables */
101 int bkgrnd     = CMAPLOOKUPCOLORSBASE ;
102 int black      = CMAPLOOKUPCOLORSBASE + 1;
103 int blue       = CMAPLOOKUPCOLORSBASE + 2;
104 int red        = CMAPLOOKUPCOLORSBASE + 3;
105 int yellow     = CMAPLOOKUPCOLORSBASE + 4;
106 int green      = CMAPLOOKUPCOLORSBASE + 5;
107 int white      = CMAPLOOKUPCOLORSBASE + 6;
108 int aubergine  = CMAPLOOKUPCOLORSBASE + 7;
109 int avocado   = CMAPLOOKUPCOLORSBASE + 8;
110 int baby_blue  = CMAPLOOKUPCOLORSBASE + 9;
111 int baby_pink  = CMAPLOOKUPCOLORSBASE + 10;
112 int brown      = CMAPLOOKUPCOLORSBASE + 11;
113 int chocolate  = CMAPLOOKUPCOLORSBASE + 12;
114 int coffee     = CMAPLOOKUPCOLORSBASE + 13;
115 int cyan       = CMAPLOOKUPCOLORSBASE + 14;
116 int dark_green = CMAPLOOKUPCOLORSBASE + 15;
117 int dark_slate = CMAPLOOKUPCOLORSBASE + 16;
118 int gold       = CMAPLOOKUPCOLORSBASE + 17;
119 int heliotrope = CMAPLOOKUPCOLORSBASE + 18;
120 int indian_red = CMAPLOOKUPCOLORSBASE + 19;
121 int ivory      = CMAPLOOKUPCOLORSBASE + 20;
122 int magenta    = CMAPLOOKUPCOLORSBASE + 21;
123 int orange     = CMAPLOOKUPCOLORSBASE + 22;
124 int pale_green = CMAPLOOKUPCOLORSBASE + 23;
125 int plum       = CMAPLOOKUPCOLORSBASE + 24;
126 int salmon     = CMAPLOOKUPCOLORSBASE + 25;
127 int slate      = CMAPLOOKUPCOLORSBASE + 26;
128 int violet     = CMAPLOOKUPCOLORSBASE + 27;
129 int wheat      = CMAPLOOKUPCOLORSBASE + 28;
130 
131 int ntina_colors = 29; 
132 #endif
133 
134 /* Dummy function to ensure this file appears in tags files */
135 void tv_globals_dummy()
136 {
137 }
138 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.