home *** CD-ROM | disk | FTP | other *** search
/ pc.louisiana.edu/pub/unix/ / Louisiana_UNIX.tar / Louisiana_UNIX / xspread3.0.zoo / graphic_gvar.h < prev    next >
C/C++ Source or Header  |  1994-06-02  |  4KB  |  91 lines

  1. /*
  2.  * Copyright (C) 1992  Board of Regents of the University of Wisconsin
  3.  * on behalf of the Department of Electrical Engineering and Computer
  4.  * Science, University of Wisconsin-Milwaukee, Milwaukee, WI 53201.
  5.  *
  6.  * This program is free software; you can redistribute it and/or modify
  7.  * it under the terms of the GNU General Public License as published by
  8.  * the Free Software Foundation; either version 2 of the License, or
  9.  * (at your option) any later version.
  10.  *
  11.  * This program is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  * GNU General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * a copy of which is included here in file "GNU_GENERAL",
  18.  * along with this program; if not, write to the Free Software
  19.  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  *
  21.  * The programs in this directory were developed by software engineering 
  22.  * teams as part of the course "Introduction to Software Engineering" 
  23.  * under the supervision of Professor G. Davida.
  24.  * This is a modification of a program written or modified by
  25.  * others.  The original copyrights, as per GNU General Public License,
  26.  * may still be applicable.  The UWM copyright is applicable only
  27.  * the those parts generated at UWM.
  28.  *
  29.  * Please send all changes, enhancements, and other comments about this
  30.  * software to
  31.  *             soft-eng@cs.uwm.edu
  32.  *
  33.  * No Warranty, expressed or implied, comes with this software.
  34.  * This software is intended to be used by not-for-profit
  35.  * organizations or by individuals for personal HOME use. 
  36.  * This software, or any of its parts, may not be used by for-profit
  37.  * organization, regardless of application or intended product or
  38.  * customer, without the permission of the Board of Regents of the 
  39.  * University  of Wisconsin is strictly forbidden. 
  40.  *
  41.  * Contact:    soft-eng@cs.uwm.edu
  42.  *            or
  43.  *        
  44.  *        Software Engineering Coordinator
  45.  *        Computer Science
  46.  *            Department of EECS
  47.  *        University of Wisconsin - Milwaukee
  48.  *        Milwaukee, WI  53201
  49.  *        414-229-4677
  50.  *
  51.  *        HISTORY,CLAIMS and CONTRIBUTIONS
  52.  */
  53. /* ****************************************************************** */
  54. /* Programer: <Tuan Tang>     Date: July 24, 1990                     */
  55. /* ------------------------------------------------------------------ */
  56. /* This header file declares all the variables and arrays used by     */
  57. /* spread sheet to store the parameters for graphics program.         */
  58. /* ------------------------------------------------------------------ */
  59.  
  60. #define GRAPHITEMS   12  /* items in the main menu */
  61. #define GRAPHOPTIONS  5  /* number of items in graph options */
  62. #define GRAPHTYPES    5  /* five different types of graphs */
  63. #define GRAPHRANGES   7  /* different types of data range */
  64. #define GRAPHRESETS   8  /* reset options = 8 */
  65. #define GRAPHLEGENDS  6  /* one legend for each data type */
  66. #define GRAPHSAMPLES 10  /* intems in the sample menu */
  67. #define GRAPHFORMATS  7  /* ways to set the format of XY & line graphs */
  68. #define GRAPHSYMBOLS  4  /* different output format of XY & line graphs */ 
  69. #define GRAPHTITLES   4  /* labels for xy axes and titles */
  70. #define GRAPHSCALES   3  /* one for x and one for y scale */
  71. #define GRAPHXYSCALES 4  /* no. of items of XY scale */
  72.  
  73. char  graphic_type;      /* store the type of the graph */
  74. char  graphic_legend[GRAPHLEGENDS][100];  /* symbol use for each graph */
  75. char  graphic_format[GRAPHFORMATS];      /* output format of each graph */
  76. char  graphic_title[GRAPHTITLES][50];   /* labels for the graph */
  77.  
  78. char  graphic_grid;  /* condition for drawing line parallel to axes */
  79. char  g_auto_man[2]; /* for auto or manual scaling for x and y axes */
  80. unsigned int graphic_skip;  /* skip factor */               
  81. unsigned int curves_n;                    
  82.  
  83. double graphic_scale[GRAPHSCALES-1][2];   /* 1st element for min. & 2nd for max. */
  84.  
  85. struct g_range {
  86.        char col[3];     /* name of column */
  87.        int r1, r2, c;   /* start row, end row, column number */
  88.        };
  89. struct g_range graphic_range[GRAPHRANGES];
  90.  
  91.