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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [itcl/] [iwidgets3.0.0/] [doc/] [timeentry.n] - Blame information for rev 578

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

Line No. Rev Author Line
1 578 markom
'\"
2
'\" Copyright (c) 1997 DSC Technologies Corporation
3
'\"
4
'\" See the file "license.terms" for information on usage and redistribution
5
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
6
'\"
7
'\" @(#) timeentry.n 1.0 97/04/30 16:04:44
8
'/"
9
.so man.macros
10
.HS timeentry iwid
11
.BS
12
'\" Note:  do not modify the .SH NAME line immediately below!
13
.SH NAME
14
timeentry \- Create and manipulate a timeentry widget
15
.SH SYNOPSIS
16
\fBtimeentry\fI \fIpathName \fR?\fIoptions\fR?
17
.SH "INHERITANCE"
18
itk::Widget <- LabeledWidget <- Timefield <- Timeentry
19
.SH "STANDARD OPTIONS"
20
.LP
21
.nf
22
.ta 4c 8c 12c
23
\fBbackground\fR        \fBborderWidth\fR       \fBcursor\fR    \fBexportSelection\fR
24
\fBforeground\fR        \fBhighlightColor\fR    \fBhighlightThickness\fR        \fBinsertBackground\fR
25
\fBjustify\fR   \fBrelief\fR
26
.fi
27
.LP
28
See the "options" manual entry for details on the standard options.
29
.SH "INHERITED OPTIONS"
30
.LP
31
.nf
32
.ta 4c 8c 12c
33
\fBdisabledForeground\fR        \fBlabelBitmap\fR       \fBlabelFont\fR \fBlabelImage\fR
34
\fBlabelMargin\fR       \fBlabelPos\fR  \fBlabelText\fR \fBlabelVariable\fR
35
\fBstate\fR
36
.fi
37
.LP
38
See the "labeledwidget" class manual entry for details on these
39
inherited options.
40
.LP
41
.nf
42
.ta 4c 8c 12c
43
\fBcommand\fR   \fBformat\fR    \fBseconds\fR   \fBtextBackground\fR
44
\fBtextFont\fR
45
.fi
46
.LP
47
See the "timefield" class manual entry for details on these
48
inherited options.
49
.SH "ASSOCIATED OPTIONS"
50
.LP
51
.nf
52
.ta 4c 8c 12c
53
\fBhourRadius\fR        \fBhourColor\fR \fBminuteRadius\fR      \fBminuteColor\fR
54
\fBpivotRadius\fR       \fBpivotColor\fR        \fBsecondRadius\fR      \fBsecondColor\fR
55
\fBclockColor\fR        \fBclockStipple\fR      \fBtickColor\fR \fBwatchHeight\fR
56
\fBwatchWidth\fR
57
.fi
58
.LP
59
See the "watch" manual entry for details on the associated options.
60
.SH "WIDGET-SPECIFIC OPTIONS"
61
.LP
62
.nf
63
Name:   \fBcloseText\fR
64
Class:  \fBText\fR
65
Command-Line Switch:    \fB-closetext\fR
66
.fi
67
.IP
68
Specifies the text to be displayed on the close button of the watch
69
popup.  The default is Close.
70
.LP
71
.nf
72
Name:   \fBgrab\fR
73
Class:  \fBGrab\fR
74
Command-Line Switch:    \fB-grab\fR
75
.fi
76
.IP
77
Specifies the grab level, \fBlocal\fR or \fBglobal\fR, to be obtained before
78
bringing up the popup watch.  The default is global.  For more information
79
concerning grab levels, consult the documentation for Tk's \fBgrab\fR command.
80
.LP
81
.nf
82
Name:   \fBicon\fR
83
Class:  \fBIcon\fR
84
Command-Line Switch:    \fB-icon\fR
85
.fi
86
.IP
87
Specifies the watch icon image to be used in the timeentry.
88
This image must have been created previously with
89
the \fBimage create\fR command.  Should one not be provided,
90
then one will be generated, pixmap if possible, bitmap otherwise.
91
.LP
92
.nf
93
Name:   \fBstate\fR
94
Class:  \fBState\fR
95
Command-Line Switch:    \fB-state\fR
96
.fi
97
.IP
98
Specifies the state of the widget which may be \fBdisabled\fR or
99
\fBnormal\fR.  A disabled state prevents selection of the timefield
100
or time icon button.
101
.LP
102
.BE
103
 
104
.SH DESCRIPTION
105
.PP
106
The \fBtimeentry\fR command creates a time entry field
107
with a popup watch by combining the timefield and watch
108
widgets together.  This allows a user to enter the time via the
109
keyboard or by using the mouse and selecting the watch icon
110
which brings up a popup watch.
111
.DE
112
 
113
.SH "METHODS"
114
.PP
115
The \fBtimeentry\fR command creates a new Tcl command whose
116
name is \fIpathName\fR.  This
117
command may be used to invoke various
118
operations on the widget.  It has the following general form:
119
.DS C
120
\fIpathName option \fR?\fIarg arg ...\fR?
121
.DE
122
\fIOption\fR and the \fIarg\fRs
123
determine the exact behavior of the command.  The following
124
commands are possible for timeentry widgets:
125
.SH "INHERITED METHODS"
126
.LP
127
.nf
128
.ta 4c 8c 12c
129
\fBget\fR       \fBisvalid\fR   \fBshow\fR
130
.fi
131
.LP
132
See the "timefield" manual entry for details on the associated methods.
133
.SH "WIDGET-SPECIFIC METHODS"
134
.TP
135
\fIpathName \fBcget\fR \fIoption\fR
136
Returns the current value of the configuration option given
137
by \fIoption\fR.
138
\fIOption\fR may have any of the values accepted by the \fBtimeentry\fR
139
command.
140
.TP
141
\fIpathName\fR \fBconfigure\fR ?\fIoption\fR? ?\fIvalue option value ...\fR?
142
Query or modify the configuration options of the widget.
143
If no \fIoption\fR is specified, returns a list describing all of
144
the available options for \fIpathName\fR (see \fBTk_ConfigureInfo\fR for
145
information on the format of this list).  If \fIoption\fR is specified
146
with no \fIvalue\fR, then the command returns a list describing the
147
one named option (this list will be identical to the corresponding
148
sublist of the value returned if no \fIoption\fR is specified).  If
149
one or more \fIoption\-value\fR pairs are specified, then the command
150
modifies the given widget option(s) to have the given value(s);  in
151
this case the command returns an empty string.
152
\fIOption\fR may have any of the values accepted by the \fBtimeentry\fR
153
command.
154
 
155
.SH "COMPONENTS"
156
.LP
157
.nf
158
Name:   \fBlabel\fR
159
Class:  \fBLabel\fR
160
.fi
161
.IP
162
The label component provides a label component to used to identify the time.
163
See the "label" widget manual entry for details on the label component item.
164
.LP
165
.nf
166
Name:   \fBiconbutton\fR
167
Class:  \fBLabel\fR
168
.fi
169
.IP
170
The iconbutton component provides a labelbutton component to act as a
171
lightweight button
172
displaying the watch icon.  Upon pressing the labelbutton, the watch
173
appears.  See the "label" widget manual entry for details on the
174
labelbutton component item.
175
.LP
176
.nf
177
Name:   \fBtime\fR
178
Class:  \fBEntry\fR
179
.fi
180
.IP
181
The time component provides the entry field for time input and display.
182
See the "entry" widget manual entry for details on the time component item.
183
.fi
184
 
185
.SH EXAMPLE
186
.DS
187
 timeentry .te
188
 pack .te
189
.DE
190
.SH AUTHOR
191
Mark L. Ulferts
192
.LP
193
.SH KEYWORDS
194
timeentry, widget

powered by: WebSVN 2.1.0

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