1 
2 /***********************************************************************
3    Widgetklasse: XwHistspectrWidgetClass
4 
5 $Revision: 2.1 $
6 
7 $Log: Whistspectr.h,v $
8 Revision 2.1  2003/12/27 13:41:22  keidel
9 Whistspectr added
10 
11 
12 
13 
14     Copyright 2003,  WizAnt Software
15     		J�rgen Keidel
16    		Bergstrasse 15
17    		D 85080 Gaimersheim
18    		Tel: D  08406 379
19    		E-mail: wizant.keidel@freenet.de
20 
21    Permission to use, copy, modify, and to distribute this software
22    and its documentation for any purpose is hereby granted without
23    fee, provided that the above copyright notice appear in all
24    copies and that both that copyright notice and this permission
25    notice appear in supporting documentation.  There is no
26    representations about the suitability of this software for
27    any purpose.  this software is provided "as is" without express
28    or implied warranty.
29 
30    Date:		Tue Dec  9 08:08:53 CET 2003
31 
32 
33  ***********************************************************************/
34 
35 #ifndef __histspectr_h
36 #define __histspectr_h
37 
38 #include <Xm/Xm.h>
39 #include <WhistspectrP.h>
40 #ifdef __cplusplus
41 extern "C" {
42 #endif
43 
44 #define XwIsHistspectr(w)  (XtIsSubclass (w, XwHistspectrWidgetClass))
45 
46 
47 /* wHistspectr Callackstruct */
48 typedef struct {
49   int 		reason;
50   XEvent 	*event;
51   int 		fd;
52   Dimension	width;
53   Dimension	height;		/* Dimensions of visible Bars Window */
54 }XwHistspectrCallbackStruct;
55 
56 typedef struct {
57     float x;
58     float y;
59 }w3dPoint;
60 
61 externalref WidgetClass XwHistspectrWidgetClass;
62 
63 
64 /* define set/getargs names  */
65 
66 #define  XwHistspectrDefaultHistsize    200	/* Default size of history buffer */
67 #define  XwHistspectrDefaultAngle       45	/* Default angle of Time-Axis */
68 
69 #define  XwCHistspectrLines         "HistspectrLines"
70 #define  XwNhistspectrLines         "histspectrLines"
71 #define  XwCHistspectrAngle         "HistspectrAngle"
72 #define  XwNhistspectrAngle         "histspectrAngle"
73 #define  XwCHistspectrBackground    "HistspectrBackground"   /* curve background */
74 #define  XwNhistspectrBackground    "histspectrBackground"
75 #define  XwCHistspectrAnnotation    "HistspectrAnnotation"
76 #define  XwNhistspectrAnnotation    "histspectrAnnotation"
77 #define  XwCHistspectrAnnotColor    "HistspectrAnnotColor"
78 #define  XwNhistspectrAnnotColor    "histspectrAnnotColor"
79 #define  XwNhistspectrGridScale     "histspectrGridScale"
80 #define  XwCHistspectrGridScale	    "HistspectrGridScale"
81 #define  XwNhistspectrScale         "histspectrScale"
82 #define  XwCHistspectrScale         "HistspectrScale"
83 #define  XwNhistspectrAnnotTNdec    "histspectrAnnotTNdec"
84 #define  XwCHistspectrAnnotTNdec    "HistspectrAnnotTNdec"
85 #define  XwNhistspectrAnnotYNdec    "histspectrAnnotYNdec"
86 #define  XwCHistspectrAnnotYNdec    "HistspectrAnnotYNdec"
87 #define  XwNhistspectrAnnotXNdec    "histspectrAnnotXNdec"
88 #define  XwCHistspectrAnnotXNdec    "HistspectrAnnotXNdec"
89 #define  XwNhistspectrAnnotTNgrid   "histspectrAnnotTNgrid"
90 #define  XwCHistspectrAnnotTNgrid   "HistspectrAnnotTNgrid"
91 #define  XwNhistspectrAnnotYNgrid   "histspectrAnnotYNgrid"
92 #define  XwCHistspectrAnnotYNgrid   "HistspectrAnnotYNgrid"
93 #define  XwNhistspectrAnnotXNgrid   "histspectrAnnotXNgrid"
94 #define  XwCHistspectrAnnotXNgrid   "HistspectrAnnotXNgrid"
95 #define  XwNhistspectrFill	    "histspectrFill"            /* curve fill */
96 #define  XwCHistspectrFill	    "HistspectrFill"
97 #define  XwNhistspectrAddvalue	    "histspectrAddvalue"
98 #define  XwCHistspectrAddvalue	    "HistspectrAddvalue"
99 #define  XwNhistspectrAddtext	    "histspectrAddtext"
100 #define  XwCHistspectrAddtext	    "HistspectrAddtext"
101 #define  XwNhistspectrCurveColor    "histspectrCurveColor"
102 #define  XwCHistspectrCurveColor    "HistspectrCurveColor"
103 #define  XwNhistspectrAutoscale	    "histspectrAutoscale"
104 #define  XwCHistspectrAutoscale	    "HistspectrAutoscale"
105 
106 enum autosc {NoAuto=0 , AutoTime , AutoAbs=2 , AutoAmpl=4 };
107 
108 /********    Public Function Declarations    ********/
109 #ifdef _NO_PROTO
110 
111 extern Widget   XwCreateHistspectr   () ;
112 extern void     XwHistdoscan          ();
113 extern void     XwHistspectrSettext  ();
114 extern void     XwHistspectrSetMarker();
115 #else
116 
117 extern Widget   XwCreateHistspectr    (Widget parent,char *name,ArgList arglist,Cardinal argcount) ;
118 extern void     XwHistdoscan          (Widget w ,  w3dPoint xy[], int npoints , float time );
119 extern void     XwHistspectrSettext   (Widget cw, char *text);
120 extern void     XwHistspectrSetMarker (Widget w ,float x);
121 
122 #endif /* _NO_PROTO */
123 /********    End Public Function Declarations    ********/
124 
125 
126 #ifdef __cplusplus
127 }  /* Close scope of 'extern "C"' declaration which encloses file. */
128 #endif
129 
130 #endif /* _WHistspectr_h */
131 /* DON'T ADD ANYTHING AFTER THIS #endif */
132 
133