OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tix/] [man/] [Grid.n] - Blame information for rev 1767

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
'\"
2
'\" Copyright (c) 1996, Expert Interface Technologies
3
'\"
4
'\" See the file "license.terms" for information on usage and
5
'\" redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
6
'\"
7
'\" The file man.macros and some of the macros used by this file are
8
'\" copyrighted: (c) 1990 The Regents of the University of California.
9
'\"              (c) 1994-1995 Sun Microsystems, Inc.
10
'\" The license terms of the Tcl/Tk distrobution are in the file
11
'\" license.tcl.
12
'\" The definitions below are for supplemental macros used in Tix
13
'\" manual entries.
14
'\"
15
'\" .HS name section [date [version]]
16
'\"     Replacement for .TH in other man pages.  See below for valid
17
'\"     section names.
18
'\"
19
'\" .AP type name in/out [indent]
20
'\"     Start paragraph describing an argument to a library procedure.
21
'\"     type is type of argument (int, etc.), in/out is either "in", "out",
22
'\"     or "in/out" to describe whether procedure reads or modifies arg,
23
'\"     and indent is equivalent to second arg of .IP (shouldn't ever be
24
'\"     needed;  use .AS below instead)
25
'\"
26
'\" .AS [type [name]]
27
'\"     Give maximum sizes of arguments for setting tab stops.  Type and
28
'\"     name are examples of largest possible arguments that will be passed
29
'\"     to .AP later.  If args are omitted, default tab stops are used.
30
'\"
31
'\" .BS
32
'\"     Start box enclosure.  From here until next .BE, everything will be
33
'\"     enclosed in one large box.
34
'\"
35
'\" .BE
36
'\"     End of box enclosure.
37
'\"
38
'\" .VS
39
'\"     Begin vertical sidebar, for use in marking newly-changed parts
40
'\"     of man pages.
41
'\"
42
'\" .VE
43
'\"     End of vertical sidebar.
44
'\"
45
'\" .DS
46
'\"     Begin an indented unfilled display.
47
'\"
48
'\" .DE
49
'\"     End of indented unfilled display.
50
'\"
51
.\"
52
'\"     # Heading for Tix man pages
53
.de HS
54
.ds ^3 \\0
55
.if !"\\$3"" .ds ^3 \\$3
56
.if '\\$2'cmds'      .TH "\\$1" 1 "\\*(^3" "\\$4" "\\$5"
57
.if '\\$2'lib'       .TH "\\$1" 3 "\\*(^3" "\\$4" "\\$5"
58
.if '\\$2'ncmds'     .TH "\\$1" n "\\*(^3" "\\$4" "\\$5"
59
.if '\\$2'tcl'       .TH "\\$1" n "\\*(^3"  Tcl   "Tcl Built-In Commands"
60
.if '\\$2'tk'        .TH "\\$1" n "\\*(^3"  Tk    "Tk Commands"
61
.if '\\$2'tclc'      .TH "\\$1" 3 "\\*(^3"  Tcl   "Tcl Library Procedures"
62
.if '\\$2'tkc'       .TH "\\$1" 3 "\\*(^3"  Tk    "Tk Library Procedures"
63
.if '\\$2'tclcmds'   .TH "\\$1" 1 "\\*(^3"  Tcl    "Tcl Applications"
64
.if '\\$2'tkcmds'    .TH "\\$1" 1 "\\*(^3"  Tk    "Tk Applications"
65
.if '\\$2'tix'        .TH "\\$1" n "\\*(^3"  Tix    "Tix Commands"
66
.if '\\$2'tixcmds'    .TH "\\$1" 1 "\\*(^3"  Tix    "Tix Applications"
67
.if t .wh -1.3i ^B
68
.nr ^l \\n(.l
69
.ad b
70
..
71
'\"     # Start an argument description
72
.de AP
73
.ie !"\\$4"" .TP \\$4
74
.el \{\
75
.   ie !"\\$2"" .TP \\n()Cu
76
.   el          .TP 15
77
.\}
78
.ie !"\\$3"" \{\
79
.ta \\n()Au \\n()Bu
80
\&\\$1  \\fI\\$2\\fP    (\\$3)
81
.\".b
82
.\}
83
.el \{\
84
.br
85
.ie !"\\$2"" \{\
86
\&\\$1  \\fI\\$2\\fP
87
.\}
88
.el \{\
89
\&\\fI\\$1\\fP
90
.\}
91
.\}
92
..
93
'\"     # define tabbing values for .AP
94
.de AS
95
.nr )A 10n
96
.if !"\\$1"" .nr )A \\w'\\$1'u+3n
97
.nr )B \\n()Au+15n
98
.\"
99
.if !"\\$2"" .nr )B \\w'\\$2'u+\\n()Au+3n
100
.nr )C \\n()Bu+\\w'(in/out)'u+2n
101
..
102
'\"     # BS - start boxed text
103
'\"     # ^y = starting y location
104
'\"     # ^b = 1
105
.de BS
106
.br
107
.mk ^y
108
.nr ^b 1u
109
.if n .nf
110
.if n .ti 0
111
.if n \l'\\n(.lu\(ul'
112
.if n .fi
113
..
114
'\"     # BE - end boxed text (draw box now)
115
.de BE
116
.nf
117
.ti 0
118
.mk ^t
119
.ie n \l'\\n(^lu\(ul'
120
.el \{\
121
.\"     Draw four-sided box normally, but don't draw top of
122
.\"     box if the box started on an earlier page.
123
.ie !\\n(^b-1 \{\
124
\h'-1.5n'\L'|\\n(^yu-1v'\l'\\n(^lu+3n\(ul'\L'\\n(^tu+1v-\\n(^yu'\l'|0u-1.5n\(ul'
125
.\}
126
.el \}\
127
\h'-1.5n'\L'|\\n(^yu-1v'\h'\\n(^lu+3n'\L'\\n(^tu+1v-\\n(^yu'\l'|0u-1.5n\(ul'
128
.\}
129
.\}
130
.fi
131
.br
132
.nr ^b 0
133
..
134
'\"     # VS - start vertical sidebar
135
'\"     # ^Y = starting y location
136
'\"     # ^v = 1 (for troff;  for nroff this doesn't matter)
137
.de VS
138
.mk ^Y
139
.ie n 'mc \s12\(br\s0
140
.el .nr ^v 1u
141
..
142
'\"     # VE - end of vertical sidebar
143
.de VE
144
.ie n 'mc
145
.el \{\
146
.ev 2
147
.nf
148
.ti 0
149
.mk ^t
150
\h'|\\n(^lu+3n'\L'|\\n(^Yu-1v\(bv'\v'\\n(^tu+1v-\\n(^Yu'\h'-|\\n(^lu+3n'
151
.sp -1
152
.fi
153
.ev
154
.\}
155
.nr ^v 0
156
..
157
'\"     # Special macro to handle page bottom:  finish off current
158
'\"     # box/sidebar if in box/sidebar mode, then invoked standard
159
'\"     # page bottom macro.
160
.de ^B
161
.ev 2
162
'ti 0
163
'nf
164
.mk ^t
165
.if \\n(^b \{\
166
.\"     Draw three-sided box if this is the box's first page,
167
.\"     draw two sides but no top otherwise.
168
.ie !\\n(^b-1 \h'-1.5n'\L'|\\n(^yu-1v'\l'\\n(^lu+3n\(ul'\L'\\n(^tu+1v-\\n(^yu'\h'|0u'\c
169
.el \h'-1.5n'\L'|\\n(^yu-1v'\h'\\n(^lu+3n'\L'\\n(^tu+1v-\\n(^yu'\h'|0u'\c
170
.\}
171
.if \\n(^v \{\
172
.nr ^x \\n(^tu+1v-\\n(^Yu
173
\kx\h'-\\nxu'\h'|\\n(^lu+3n'\ky\L'-\\n(^xu'\v'\\n(^xu'\h'|0u'\c
174
.\}
175
.bp
176
'fi
177
.ev
178
.if \\n(^b \{\
179
.mk ^y
180
.nr ^b 2
181
.\}
182
.if \\n(^v \{\
183
.mk ^Y
184
.\}
185
..
186
'\"     # DS - begin display
187
.de DS
188
.RS
189
.nf
190
.sp
191
..
192
'\"     # DE - end display
193
.de DE
194
.fi
195
.RE
196
.sp
197
..
198
 
199
 
200
.HS tixGrid tix 4.1
201
.BS
202
.SH NAME
203
tixGrid \- Create and manipulate Tix Grid widgets
204
.SH "STANDARD OPTIONS"
205
.LP
206
.nf
207
.ta 5c 11c
208
\fBbackground\fR        \fBborderWidth\fR       \fBcursor\fR
209
\fBfont\fR      \fBforeground\fR        \fBheight\fR
210
\fBhighlightColor\fR    \fBhighlightThickness\fR        \fBrelief\fR
211
\fBselectBackground\fR  \fBselectForeground\fR  \fBwidth\fR
212
\fBxScrollCommand\fR    \fByScrollCommand\fR    \fB\fR
213
.fi
214
.LP
215
See the \fBoptions(n)\fR manual entry for details on the standard options.
216
.SH "STANDARD OPTIONS"
217
.ta 5c
218
.LP
219
.nf
220
Name:   \fBeditDoneCmd\fR
221
Class:  \fBEditDoneCmd\fR
222
Command-line switch:    \fB\-editdonecmd\fR
223
.fi
224
.IP
225
If non-empty, gives a Tcl command to be executed when the user has edited grid cell. When this command is called, it is passed with two additional parameters: \fIx\fR \fIy\fR, where (\fIx\fR,\fIy\fR) is the location of the cell that has just been edited.
226
.LP
227
.nf
228
Name:   \fBeditNotifyCmd\fR
229
Class:  \fBEditNotifyCmd\fR
230
Command-line switch:    \fB\-editnotifycmd\fR
231
.fi
232
.IP
233
If non-empty, gives a Tcl command to be executed when the user tries to edit a grid cell. When this command is called, it is passed with two additional parameters: \fIx\fR \fIy\fR, where (\fIx\fR,\fIy\fR,) is the location of the cell. This command should return a boolean value: \fBtrue\fR indicates that the cells is editable and \fBfalse\fR otherwise.
234
.LP
235
.nf
236
Name:   \fBformatCmd\fR
237
Class:  \fBFormatCmd\fR
238
Command-line switch:    \fB\-formatcmd\fR
239
.fi
240
.IP
241
If non-empty, gives a Tcl command to be executed when the grid cells need to be formatted on the screen. Normally, this command calls the \fBformat\fR widget command (see below). When this command is called, it is passed with five additional parameters: \fItype\fR \fIx1\fR \fIy1\fR \fIx2\fR \fIy2\fR. \fItype\fR gives the logical type of the region in the grid. It may be one of the following. \fBx-region\fR: the horizontal margin; \fBy-region\fR: the vertical margin; \fBs-region\fR, the area where the the horizontal and vertical margins are joined; \fBmain\fR: all the cells that do not fall into the above three types.  \fIx1\fR \fIy1\fR \fIx2\fR \fIy2\fR gives the extent of the region that needs formatting.
242
.LP
243
.nf
244
Name:   \fBleftMargin\fR
245
Class:  \fBLeftMargin\fR
246
Command-line switch:    \fB\-leftmargin\fR
247
.fi
248
.IP
249
In the number of cells, gives the width of vertical margin. A zero indicates that no vertical should be drawn.
250
.LP
251
.nf
252
Name:   \fBselectMode\fR
253
Class:  \fBSelectMode\fR
254
Command-line switch:    \fB\-selectmode\fR
255
.fi
256
.IP
257
Specifies one of several styles for manipulating the selection. The value of the option may be arbitrary, but the default bindings expect it to be either \fBsingle\fR, \fBbrowse\fR, \fBmultiple\fR, or \fBextended\fR; the default value is \fBsingle\fR.
258
.LP
259
.nf
260
Name:   \fBselectUnit\fR
261
Class:  \fBSelectUnit\fR
262
Command-line switch:    \fB\-selectunit\fR
263
.fi
264
.IP
265
Specifies the selection unit. Valid values are \fBcell\fR, \fBcolumn\fR or \fBrow\fR.
266
.LP
267
.nf
268
Name:   \fBtopMargin\fR
269
Class:  \fBTopMargin\fR
270
Command-line switch:    \fB\-topmargin\fR
271
.fi
272
.IP
273
In the number of cells, gives the height of horizontal margin. A zero indicates that no horizontal should be drawn.
274
.BE
275
.SH DESCRIPTION
276
The \fBtixGrid\fR command creates a new window (given by the \fIpathName\fR argument) and makes it into a \fBtixGrid\fR widget.  Additional options, described above, may be specified on the command line or in the option database to configure aspects of the \fBtixGrid\fR widget such as its cursor and relief.
277
.PP
278
A Grid widget displays its contents in a two dimensional grid of cells. Each cell may contain one Tix \fBdisplay\fR \fBitem\fR, which may be in text, graphics or other formats. See the \fBtixItemType(n)\fR manual page for more information about Tix display items. Individual cells, or groups of cells, can be formatted with a wide range of attributes, such as its color, relief and border.
279
.SH "WIDGET COMMAND"
280
.PP
281
The \fBtixGrid\fR command creates a new Tcl command whose name is the same as the path name of the \fBtixGrid\fR widget's window. This command may be used to invoke various operations on the widget. It has the following general form:
282
.DS C
283
\fIpathName option \fR?\fIarg arg ...\fR?
284
.PP
285
.DE
286
\fIPathName\fR is the name of the command, which is the same as the \fBtixGrid\fR widget's path name. \fIOption\fR and the \fIarg\fRs determine the exact behavior of the command. The following commands are possible for \fBtixGrid\fR widgets:
287
.TP
288
\fIpathName\fR \fBanchor\fR \fIoption\fR \fR?\fIargs\fR \fI...\fR\fR?
289
Manipulates the \fBanchor cell\fR of the \fBtixGrid\fR widget. The anchor cell is the end of the selection that is fixed while the user is dragging out a selection with the mouse.
290
.TP
291
\fIpathName\fR \fBbdtype\fR
292
.TP
293
\fIpathName\fR \fBcget\fR \fIoption\fR
294
Returns the current value of the configuration option given by \fIoption\fR. \fIOption\fR may have any of the values accepted by the \fBtixGrid\fR command.
295
.TP
296
\fIpathName\fR \fBconfigure\fR \fR?\fIoption\fR\fR? \fR?\fIvalue\fR \fIoption\fR \fIvalue\fR \fI...\fR\fR?
297
Query or modify the configuration options of the widget.  If no \fIoption\fR is specified, returns a list describing all of the available options for \fIpathName\fR (see \fBTk_ConfigureInfo(n)\fR for information on the format of this list.) If \fIoption\fR is specified with no \fIvalue\fR, then the command returns a list describing the one named option (this list will be identical to the corresponding sublist of the value returned if no \fIoption\fR is specified). If one or more \fIoption\-value\fR pairs are specified, then the command modifies the given widget option(s) to have the given value(s); in this case the command returns an empty string. \fIOption\fR may have any of the values accepted by the \fBtixGrid\fR command.
298
.TP
299
\fIpathName\fR \fBdelete\fR \fIdim\fR \fIfrom\fR \fR?\fIto\fR\fR?
300
\fIDim\fR may be \fBrow\fR or \fBcolumn\fR. If \fIto\fR is not given, deletes a single row (or column) at the position \fIfrom\fR. If \fIto\fR is given, deletes the range of rows (or columns) from position \fIfrom\fR through \fIto\fR.
301
.TP
302
\fIpathName\fR \fBedit apply\fR
303
If any cell is being edited, de-highlight the cell and applies the changes.
304
.TP
305
\fIpathName\fR \fBedit set\fR \fIx\fR \fIy\fR
306
Highlights the cell at (\fIx\fR,\fIy\fR) for editing, if the \fB-editnotify\fR command returns true for this cell.
307
.TP
308
\fIpathName\fR \fBentrycget\fR \fIx\fR \fIy\fR \fIoption\fR
309
Returns the current value of the configuration option given by \fIoption\fR of the cell at (\fIx\fR,\fIy\fR). \fIOption\fR may have any of the values accepted by the \fBset\fR widget command.
310
.TP
311
\fIpathName\fR \fBentryconfigure\fR \fIx\fR \fIy\fR \fR?\fIoption\fR\fR? \fR?\fIvalue\fR \fIoption\fR \fIvalue\fR \fI...\fR\fR?
312
Query or modify the configuration options of the cell at (\fIx\fR,\fIy\fR).  If no \fIoption\fR is specified, returns a list describing all of the available options for the cell (see \fBTk_ConfigureInfo(n)\fR for information on the format of this list.)  If \fIoption\fR is specified with no \fIvalue\fR, then the command returns a list describing the one named option (this list will be identical to the corresponding sublist of the value returned if no \fIoption\fR is specified.) If one or more \fIoption\-value\fR pairs are specified, then the command modifies the given widget option(s) to have the given value(s); in this case the command returns an empty string.  \fIOption\fR may have any of the values accepted by the \fBset\fR widget command.
313
.TP
314
\fIpathName\fR \fBformat\fR
315
.TP
316
\fIpathName\fR \fBindex\fR
317
.TP
318
\fIpathName\fR \fBmove\fR \fIdim\fR \fIfrom\fR \fIto\fR \fIoffset\fR
319
\fIDim\fR may be \fBrow\fR or \fBcolumn\fR. Moves the the range of rows (or columns) from position \fIfrom\fR through \fIto\fR by the distance indicated by \fIoffset\fR. For example, \fBmove\fR \fBrow\fR \fB2\fR \fB4\fR \fB1\fR moves the rows 2,3,4 to rows 3,4,5.
320
.TP
321
\fIpathName\fR \fBset\fR \fIx\fR \fIy\fR \fR?\fI\fB-itemtype\fR\fR \fItype\fR\fR? \fR?\fIoption\fR \fIvalue...\fR\fR?
322
Creates a new display item at the cell at (\fIx\fR,\fIy\fR). The optional \fB-itemtype\fR parameter gives the type of the display item. An additional list of \fIoption-value\fR pairs specify options of the display item. If a display item already exists at this cell, the old item will be deleted automatically.
323
.TP
324
\fIpathName\fR \fBsize\fR \fIdim\fR \fIindex\fR \fR?\fIoption\fR \fIvalue\fR \fI...\fR\fR?
325
Queries or sets the size of the row or column given by \fIdim\fR and \fIindex\fR. \fIDim\fR may be \fBrow\fR or \fBcolumn\fR.  \fIIndex\fR may be any non-negative integer that gives the position of a given row (or column). \fIIndex\fR can also be the string \fBdefault\fR; in this case, this command queries or sets the default size of all rows (or columns).
326
 
327
When no \fIoption\fR-\fIvalue\fR pair is given, this command returns a list containing the current size setting of the given row (or column). When \fIoption\fR-\fIvalue\fR pairs are given, the corresponding options of the size setting of the given row are changed. \fIOption\fR may be one of the follwing:
328
.RS
329
.TP
330
\fB-pad0\fR \fIpixels\fR
331
Specifies the paddings to the left or a column or the top of a row.
332
.TP
333
\fB-pad1\fR \fIpixels\fR
334
Specifies the paddings to the right or a column or the bottom of a row.
335
.TP
336
\fB-size\fR \fIval\fR
337
Specifies the width of a column or the height of a row. \fIVal\fR may be: \fBauto\fR -- the width of the column is set the the widest cell in the column; a valid Tk screen distance unit (see \fBTk_GetPixels(n)\fR); or a real number following by the word \fBchars\fR (e.g. \fB3.4chars\fR) that sets the width of the column to the given number of characters.
338
.RE
339
.TP
340
\fIpathName\fR \fBunset\fR \fIx\fR \fIy\fR
341
Clears the cell at (\fIx\fR,\fIy\fR) by removing its display item.
342
.TP
343
\fIpathName\fR \fBxview\fR
344
.TP
345
\fIpathName\fR \fByview\fR
346
.DE
347
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.