Fix typo in license headers
[oweals/cde.git] / cde / programs / dtstyle / ColorEdit.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these libraries and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /* $XConsortium: ColorEdit.h /main/4 1995/10/30 13:08:12 rswiston $ */
24 /************************************<+>*************************************
25  ****************************************************************************
26  **
27  **   File:        ColorEdit.h
28  **
29  **   Project:     DT 3.0
30  **
31  **  This file contains function definitions for the corresponding .c
32  **  file
33  **
34  **
35  **  (c) Copyright Hewlett-Packard Company, 1990.  
36  **
37  **
38  **
39  ****************************************************************************
40  ************************************<+>*************************************/
41 #ifndef _coloredit_h
42 #define _coloredit_h
43
44 /*  Global structure for Color Editor */
45
46 typedef struct _EditData {
47   Widget      DialogShell;
48   Widget      main_form;
49   Widget      sliderForm;
50   Widget      oldButton;
51   Widget      newButton;
52   Widget      grabColor;
53   Widget      redLabel;
54   Widget      greenLabel;
55   Widget      blueLabel;
56   Widget      hueLabel;
57   Widget      satLabel;
58   Widget      valLabel;
59   Widget      redScale;
60   Widget      greenScale;
61   Widget      blueScale;
62   Widget      hueScale;
63   Widget      satScale;
64   Widget      valScale;
65   int         current_scale;
66   ColorSet    *color_set;
67   ColorSet    oldButtonColor;
68   XmColorProc calcRGB;
69   Pixmap      pixmap25;
70   Pixmap      pixmap75;
71
72 } EditData;
73
74 extern EditData edit;
75
76 /* External Interface */
77
78
79 extern void ColorEditor( 
80                         Widget parent,
81                         ColorSet *color_set) ;
82 extern void RGBtoHSV( 
83 #if NeedWidePrototypes
84                         unsigned int r,
85                         unsigned int g,
86                         unsigned int b,
87 #else
88                         unsigned short r,
89                         unsigned short g,
90                         unsigned short b,
91 #endif
92                         int *h,
93                         int *s,
94                         int *v) ;
95 extern void restoreColorEdit( 
96                         Widget shell,
97                         XrmDatabase db) ;
98 extern void saveColorEdit( 
99                         int fd) ;
100
101
102
103 #endif /* _coloredit_h */
104 /* DON'T ADD ANYTHING AFTER THIS #endif */