1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 *
3 * ***** BEGIN LICENSE BLOCK *****
4 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
5 *
6 * The contents of this file are subject to the Mozilla Public License Version
7 * 1.1 (the "License"); you may not use this file except in compliance with
8 * the License. You may obtain a copy of the License at
9 * http://www.mozilla.org/MPL/
10 *
11 * Software distributed under the License is distributed on an "AS IS" basis,
12 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13 * for the specific language governing rights and limitations under the
14 * License.
15 *
16 * The Original Code is the Microline Widget Library, originally made available under the NPL by Neuron Data <http://www.neurondata.com>.
17 *
18 * The Initial Developer of the Original Code is
19 * Netscape Communications Corporation.
20 * Portions created by the Initial Developer are Copyright (C) 1998
21 * the Initial Developer. All Rights Reserved.
22 *
23 * Contributor(s):
24 *
25 * Alternatively, the contents of this file may be used under the terms of
26 * either the GNU General Public License Version 2 or later (the "GPL"), or
27 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
28 * in which case the provisions of the GPL or the LGPL are applicable instead
29 * of those above. If you wish to allow use of your version of this file only
30 * under the terms of either the GPL or the LGPL, and not to allow others to
31 * use your version of this file under the terms of the MPL, indicate your
32 * decision by deleting the provisions above and replace them with the notice
33 * and other provisions required by the GPL or the LGPL. If you do not delete
34 * the provisions above, a recipient may use your version of this file under
35 * the terms of any one of the MPL, the GPL or the LGPL.
36 *
37 * In addition, as a special exception to the GNU GPL, the copyright holders
38 * give permission to link the code of this program with the Motif and Open
39 * Motif libraries (or with modified versions of these that use the same
40 * license), and distribute linked combinations including the two. You
41 * must obey the GNU General Public License in all respects for all of
42 * the code used other than linking with Motif/Open Motif. If you modify
43 * this file, you may extend this exception to your version of the file,
44 * but you are not obligated to do so. If you do not wish to do so,
45 * delete this exception statement from your version.
46 *
47 * ***** END LICENSE BLOCK ***** */
48
49
50 ! Common Resources
51
52 value
53 XmNblankBackground : argument ('blankBackground', color);
54 XmNautoSelect : argument ('autoSelect', boolean);
55 XmNdebugLevel : argument ('debugLevel', integer);
56
57 ! Folder Widget
58
59 procedure
60 XmLCreateFolder();
61
62 ! Folder Resources
63
64 value
65 XmNcornerDimension : argument ('cornerDimension', integer);
66 XmNcornerStyle : argument ('cornerStyle', integer);
67 CornerNone : 0;
68 CornerLine : 1;
69 CornerArc : 2;
70 XmNinactiveBackground : argument ('inactiveBackground', color);
71 XmNinactiveForeground : argument ('inactiveForeground', color);
72 XmNpixmapMargin : argument ('pixmapMargin', integer);
73 ResizeStatic : 10;
74 ResizeDynamic : 11;
75 XmNrotateWhenLeftRight : argument ('rotateWhenRightLeft', boolean);
76 XmNtabPlacement : argument ('tabPlacement', integer);
77 FolderTop : 0;
78 FolderLeft : 1;
79 FolderBottom : 2;
80 FolderRight : 3;
81 XmNtabsPerRow : argument ('tabsPerRow', integer);
82
83 ! Folder Constraint resources
84
85 XmNtabFreePixmaps : argument ('tabFreePixmaps', boolean);
86 XmNtabManagedName : argument ('tabManagedName', string);
87 XmNtabManagedWidget : argument ('tabManagedWidget', any);
88
89 ! Grid Widget
90
91 procedure
92 XmLCreateGrid();
93
94 ! Grid Resources
95
96 value
97 XmNallowColumnHide : argument ('allowColumnHide', boolean);
98 XmNallowColumnResize : argument ('allowColumnResize', boolean);
99 XmNallowDragSelected : argument ('allowDragSelected', boolean);
100 XmNallowDrop : argument ('allowDrop', boolean);
101 XmNallowRowHide : argument ('allowRowHide', boolean);
102 XmNallowRowResize : argument ('allowRowResize', boolean);
103 XmNbottomFixedCount : argument ('bottomFixedCount', integer);
104 XmNbottomFixedMargin : argument ('bottomFixedMargin', integer);
105 XmNfooterColumns : argument ('footerColumns', integer);
106 XmNfooterRows : argument ('footerRows', integer);
107 XmNglobalPixmapHeight : argument ('globalPixmapHeight', integer);
108 XmNglobalPixmapWidth : argument ('globalPixmapWidth', integer);
109 XmNheadingColumns : argument ('headingColumns', integer);
110 XmNheadingRows : argument ('headingRows', integer);
111 XmNhighlightRowMode : argument ('highlightRowMode', boolean);
112 XmNhorizontalSizePolicy : argument ('horizontalSizePolicy', integer);
113 XmNhsbDisplayPolicy : argument ('hsbDisplayPolicy', integer);
114 XmNimmediateDraw : argument ('immediateDraw', boolean);
115 XmNleftFixedCount : argument ('leftFixedCount', integer);
116 XmNleftFixedMargin : argument ('leftFixedMargin', integer);
117 XmNrightFixedCount : argument ('rightFixedCount', integer);
118 XmNrightFixedMargin : argument ('rightFixedMargin', integer);
119 XmNscrollBarMargin : argument ('scrollBarMargin', integer);
120 SelectNone : 1;
121 SelectSingleRow : 2;
122 SelectBrowseRow : 3;
123 SelectMultipleRow : 4;
124 SelectCell : 5;
125 XmNselectBackground : argument ('selectBackground', color);
126 XmNselectForeground : argument ('selectForeground', color);
127 XmNshadowRegions : argument ('shadowRegions', integer);
128 XmNsimpleHeadings : argument ('simpleHeadings', string);
129 XmNsimpleWidths : argument ('simpleWidths', string);
130 XmNtopFixedCount : argument ('topFixedCount', integer);
131 XmNtopFixedMargin : argument ('topFixedMargin', integer);
132 XmNuseAverageFontWidth : argument ('useAverageFontWidth', boolean);
133 XmNverticalSizePolicy : argument ('verticalSizePolicy', integer);
134 XmNvisibleColumns : argument ('visibleColumns', integer);
135 XmNvisibleRows : argument ('visibleRows', integer);
136 XmNvsbDisplayPolicy : argument ('vsbDisplayPolicy', integer);
137
138 ! Grid Callbacks
139
140 value
141 XmNaddCallback : reason ('addCallback');
142 XmNcellDrawCallback : reason ('cellDrawCallback');
143 XmNcellDropCallback : reason ('cellDropCallback');
144 XmNcellFocusCallback : reason ('cellFocusCallback');
145 XmNcellPasteCallback : reason ('cellPasteCallback');
146 XmNdeleteCallback : reason ('deleteCallback');
147 XmNdeselectCallback : reason ('deselectCallback');
148 XmNeditCallback : reason ('editCallback');
149 XmNscrollCallback : reason ('scrollCallback');
150 XmNselectCallback : reason ('selectCallback');
151
152 ! Progress Widget
153
154 procedure
155 XmLCreateProgress();
156
157 ! Progress Resources
158
159 value
160 XmNcompleteValue : argument ('completeValue', integer);
161 XmNmeterStyle : argument ('meterStyle', integer);
162 MeterBar : 0;
163 MeterBoxes : 1;
164 XmNnumBoxes : argument ('numBoxes', integer);
165 XmNshowTime : argument ('showTime', boolean);
166 XmNshowPercentage : argument ('showPercentage', boolean);
167
168 ! Tree Widget
169
170 procedure
171 XmLCreateTree();
172
173 ! Tree Resources
174
175 value
176 XmNconnectingLineColor : argument ('connectingLineColor', color);
177 XmNlevelSpacing : argument ('levelSpacing', integer);
178 XmNplusMinusColor : argument ('plusMinusColor', color);
179
180 ! Tree Callbacks
181
182 value
183 XmNexpandCallback : reason ('expandCallback');
184 XmNcollapseCallback : reason ('collapseCallback');
185