Mercurial > hg > xemacs-beta
annotate lwlib/xlwtabs.h @ 5640:e6b5c49f9e13
Add autoload cookie to custom-set-face-bold
author | Vin Shelton <acs@xemacs.org> |
---|---|
date | Sun, 08 Jan 2012 22:29:06 -0500 |
parents | ade4c7e2c6cb |
children |
rev | line source |
---|---|
5422
ade4c7e2c6cb
Migrate lwlib/ to GPLv3.
Mike Sperber <sperber@deinprogramm.de>
parents:
3685
diff
changeset
|
1 /* Tabs Widget for XEmacs. |
398 | 2 Copyright (C) 1999 Edward A. Falk |
5422
ade4c7e2c6cb
Migrate lwlib/ to GPLv3.
Mike Sperber <sperber@deinprogramm.de>
parents:
3685
diff
changeset
|
3 |
398 | 4 This file is part of XEmacs. |
5422
ade4c7e2c6cb
Migrate lwlib/ to GPLv3.
Mike Sperber <sperber@deinprogramm.de>
parents:
3685
diff
changeset
|
5 |
ade4c7e2c6cb
Migrate lwlib/ to GPLv3.
Mike Sperber <sperber@deinprogramm.de>
parents:
3685
diff
changeset
|
6 XEmacs is free software: you can redistribute it and/or modify it |
ade4c7e2c6cb
Migrate lwlib/ to GPLv3.
Mike Sperber <sperber@deinprogramm.de>
parents:
3685
diff
changeset
|
7 under the terms of the GNU General Public License as published by the |
ade4c7e2c6cb
Migrate lwlib/ to GPLv3.
Mike Sperber <sperber@deinprogramm.de>
parents:
3685
diff
changeset
|
8 Free Software Foundation, either version 3 of the License, or (at your |
ade4c7e2c6cb
Migrate lwlib/ to GPLv3.
Mike Sperber <sperber@deinprogramm.de>
parents:
3685
diff
changeset
|
9 option) any later version. |
ade4c7e2c6cb
Migrate lwlib/ to GPLv3.
Mike Sperber <sperber@deinprogramm.de>
parents:
3685
diff
changeset
|
10 |
ade4c7e2c6cb
Migrate lwlib/ to GPLv3.
Mike Sperber <sperber@deinprogramm.de>
parents:
3685
diff
changeset
|
11 XEmacs is distributed in the hope that it will be useful, but WITHOUT |
ade4c7e2c6cb
Migrate lwlib/ to GPLv3.
Mike Sperber <sperber@deinprogramm.de>
parents:
3685
diff
changeset
|
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
ade4c7e2c6cb
Migrate lwlib/ to GPLv3.
Mike Sperber <sperber@deinprogramm.de>
parents:
3685
diff
changeset
|
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
ade4c7e2c6cb
Migrate lwlib/ to GPLv3.
Mike Sperber <sperber@deinprogramm.de>
parents:
3685
diff
changeset
|
14 for more details. |
ade4c7e2c6cb
Migrate lwlib/ to GPLv3.
Mike Sperber <sperber@deinprogramm.de>
parents:
3685
diff
changeset
|
15 |
ade4c7e2c6cb
Migrate lwlib/ to GPLv3.
Mike Sperber <sperber@deinprogramm.de>
parents:
3685
diff
changeset
|
16 You should have received a copy of the GNU General Public License |
ade4c7e2c6cb
Migrate lwlib/ to GPLv3.
Mike Sperber <sperber@deinprogramm.de>
parents:
3685
diff
changeset
|
17 along with XEmacs. If not, see <http://www.gnu.org/licenses/>. */ |
398 | 18 |
19 /* | |
20 * This widget manages one or more child widgets, exactly one of which is | |
21 * visible. Above the child widgets is a graphic that looks like index | |
22 * tabs from file folders. Each tab corresponds to one of the child widgets. | |
23 * By clicking on a tab, the user can bring the corresponding widget to | |
24 * the top of the stack. | |
25 */ | |
26 | |
27 | |
28 #ifndef _Tabs_h | |
29 #define _Tabs_h | |
30 | |
31 #include <X11/Constraint.h> | |
32 | |
33 | |
34 /*********************************************************************** | |
35 * | |
36 * Tabs Widget (subclass of CompositeClass) | |
37 * | |
38 ***********************************************************************/ | |
39 | |
40 /* Parameters: | |
41 | |
42 Name Class RepType Default Value | |
43 ---- ----- ------- ------------- | |
44 font Font XFontStruct* XtDefaultFont | |
3685 | 45 fcFontName FcFontName String NULL *0 |
46 xftFont XftFont String Helvetica-12 *8 | |
3397 | 47 internalWidth Width Dimension 4 *1 |
48 internalHeight Height Dimension 2 *1 | |
49 topWidget TopWidget Widget *2 | |
50 callback Callback XtCallbackList NULL *3 | |
51 popdownCallback Callback XtCallbackList NULL *4 | |
52 selectInsensitive SelectInsensitive Boolean True *5 | |
53 beNiceToColormap BeNiceToColormap Boolean False *6 | |
398 | 54 topShadowContrast TopShadowContrast int 20 |
55 bottomShadowContrast BottomShadowContrast int 40 | |
3397 | 56 insensitiveContrast InsensitiveContrast int 33 *7 |
398 | 57 |
58 background Background Pixel XtDefaultBackground | |
59 border BorderColor Pixel XtDefaultForeground | |
60 borderWidth BorderWidth Dimension 1 | |
61 destroyCallback Callback Pointer NULL | |
62 hSpace HSpace Dimension 4 | |
63 height Height Dimension 0 | |
64 mappedWhenManaged MappedWhenManaged Boolean True | |
65 orientation Orientation XtOrientation vertical | |
66 vSpace VSpace Dimension 4 | |
67 width Width Dimension 0 | |
68 x Position Position 0 | |
69 y Position Position 0 | |
70 | |
71 Notes: | |
72 | |
3397 | 73 0 this is a joke, it will be changed. |
398 | 74 1 internalWidth, internalHeight specify the margins around the text |
75 in the tabs. | |
76 2 topWidget identifies the widget which is currently visible. | |
77 3 callbacks are called whenever the user selects a tab. Call_data is | |
78 the new top widget. | |
79 4 popdownCallbacks are called whenever the user selects a tab. Call_data is | |
80 the old (no longer visible) top widget. Note that popdownCallbacks | |
81 are called before callbacks. | |
82 5 SelectInsensitive determines whether or not insensitive children may | |
83 be selected anyway. | |
84 6 BeNiceToColormap causes the Tabs widget to use fewer colors. | |
85 7 InsensitiveContrast sets the contrast used for labels of insensitive widgets. | |
3397 | 86 8 fcFontName and xftFont are separate resources because there is not yet |
87 registered representation and converter for XftFonts. | |
398 | 88 */ |
89 | |
90 /* Constraint parameters: | |
91 Name Class RepType Default Value | |
92 ---- ----- ------- ------------- | |
93 tabLabel Label String widget name | |
94 tabLeftBitmap LeftBitmap Pixmap None | |
95 tabForeground Foreground Pixel XtDefaultForeground | |
96 resizable Resizable Boolean False | |
97 */ | |
98 | |
99 /* New fields */ | |
100 | |
101 #ifndef XtNtabLabel | |
102 #define XtNtabLabel "tabLabel" | |
103 #define XtNtabForeground "tabForeground" | |
104 #endif | |
105 | |
106 #ifndef XtNtabLeftBitmap | |
107 #define XtNtabLeftBitmap "tabLeftBitmap" | |
108 #endif | |
109 | |
110 #ifndef XtCLeftBitmap | |
111 #define XtCLeftBitmap "LeftBitmap" | |
112 #endif | |
113 | |
114 #ifndef XtCResizable | |
115 #define XtCResizable "Resizable" | |
116 #endif | |
117 | |
118 #ifndef XtNselectInsensitive | |
119 #define XtNselectInsensitive "selectInsensitive" | |
120 #define XtCSelectInsensitive "SelectInsensitive" | |
121 #endif | |
122 | |
123 #ifndef XtNnlabels | |
124 #define XtNnlabels "nlabels" | |
125 #define XtCNLabels "NLabels" | |
126 #endif | |
127 #ifndef XtNlabels | |
128 #define XtNlabels "labels" | |
129 #define XtCLabels "Labels" | |
130 #endif | |
131 | |
132 #ifndef XtNtopWidget | |
133 #define XtNtopWidget "topWidget" | |
134 #define XtCTopWidget "TopWidget" | |
135 #endif | |
136 | |
137 #ifndef XtNhSpace | |
138 #define XtNhSpace "hSpace" | |
139 #define XtCHSpace "HSpace" | |
140 #define XtNvSpace "vSpace" | |
141 #define XtCVSpace "VSpace" | |
142 #endif | |
143 | |
144 #ifndef XtNresizable | |
145 #define XtNresizable "resizable" | |
146 #endif | |
147 | |
148 #ifndef XtNinsensitiveContrast | |
149 #define XtNinsensitiveContrast "insensitiveContrast" | |
150 #define XtCInsensitiveContrast "InsensitiveContrast" | |
151 #endif | |
152 | |
153 #ifndef XtNshadowWidth | |
154 #define XtNshadowWidth "shadowWidth" | |
155 #define XtCShadowWidth "ShadowWidth" | |
156 #define XtNtopShadowPixel "topShadowPixel" | |
157 #define XtCTopShadowPixel "TopShadowPixel" | |
158 #define XtNbottomShadowPixel "bottomShadowPixel" | |
159 #define XtCBottomShadowPixel "BottomShadowPixel" | |
160 #define XtNtopShadowContrast "topShadowContrast" | |
161 #define XtCTopShadowContrast "TopShadowContrast" | |
162 #define XtNbottomShadowContrast "bottomShadowContrast" | |
163 #define XtCBottomShadowContrast "BottomShadowContrast" | |
164 #endif | |
165 | |
166 #ifndef XtNtopShadowPixmap | |
167 #define XtNtopShadowPixmap "topShadowPixmap" | |
168 #define XtCTopShadowPixmap "TopShadowPixmap" | |
169 #define XtNbottomShadowPixmap "bottomShadowPixmap" | |
170 #define XtCBottomShadowPixmap "BottomShadowPixmap" | |
171 #endif | |
172 | |
173 #ifndef XtNbeNiceToColormap | |
174 #define XtNbeNiceToColormap "beNiceToColormap" | |
175 #define XtCBeNiceToColormap "BeNiceToColormap" | |
176 #define XtNbeNiceToColourmap "beNiceToColormap" | |
177 #define XtCBeNiceToColourmap "BeNiceToColormap" | |
178 #endif | |
179 | |
180 /* Class record constants */ | |
181 | |
182 extern WidgetClass tabsWidgetClass; | |
183 | |
184 typedef struct _TabsClassRec *TabsWidgetClass; | |
185 typedef struct _TabsRec *TabsWidget; | |
186 | |
187 _XFUNCPROTOBEGIN | |
188 | |
189 extern void | |
190 XawTabsSetTop( | |
191 #if NeedFunctionPrototypes | |
192 Widget w, | |
193 Bool callCallbacks | |
194 #endif | |
195 ) ; | |
196 | |
197 extern void | |
198 XawTabsSetHighlight( | |
199 #if NeedFunctionPrototypes | |
200 Widget tabs, | |
201 Widget w | |
202 #endif | |
203 ) ; | |
204 | |
205 _XFUNCPROTOEND | |
206 | |
207 #endif /* _Tabs_h */ |