Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / tools / perl-5.8.0 / lib / site_perl / 5.8.0 / sun4-solaris / Tk / TextUndo.pod
CommitLineData
86530b38
AT
1
2=head1 NAME
3
4Tk::TextUndo - perl/tk text widget with bindings to undo changes.
5
6=for pm Tk/TextUndo.pm
7
8=for category Derived Widgets
9
10=head1 SYNOPSIS
11
12S< >B<use Tk::TextUndo;>
13
14S< >I<$testundo> = I<$parent>-E<gt>B<TextUndo>(?I<-option>=E<gt>I<value>, ...?);
15
16=head1 DESCRIPTION
17
18This IS-A text widget with an unlimited 'undo' history but without
19a re'undo' capability.
20
21=head2 Bindings
22
23The C<TextUndo> widget has the same bindings as the L<Text|Tk::Text> widget.
24In addition there are the following bindings:
25
26=over 4
27
28=item Event <L4> <<Undo>>
29
30undo the last change. Pressing <L4> several times undo
31step by step the changes made to the text widget.
32
33=back
34
35=head2 Methods
36
37The C<TextUndo> widget has the same methods as C<Text> widget.
38Additional methods for the C<TextUndo> widget are:
39
40=over 4
41
42=item $text->Load($filename);
43
44Loads the contents of the $filename into the text widget. Load()
45delete the previous contents of the text widget as well as it's
46undo history of the previous file.
47
48=item $text->Save(?$otherfilename?)
49
50Save contents of the text widget to a file. If the
51$otherfilename is not specified, the text widget contents
52writes the file of $filename used in the last Load()
53call. If no file was previously Load()'ed an error message
54pops up. The default filename of the last Load() call
55is not overwriten by $otherfilename.
56
57=item $text->FileName(?$otherfilename?)
58
59If passed an argument sets the file name associated with the loaded
60document. Returns the current file name associated with the document.
61
62=back
63
64=head1 KEYS
65
66widget, text, undo
67
68=head1 SEE ALSO
69
70L<Tk::Text>, L<Tk::ROText>
71
72=cut
73