Dominique Dumont > Puppet-VcsTools-File > Puppet::VcsTools::LogEdit

Download:
Puppet-VcsTools-File-1.004.tar.gz

Annotate this POD

View/Report Bugs
Source  

NAME ^

Puppet::VcsTools::LogEdit - Tk composite widget to edit a Vcs Log

SYNOPSIS ^

 my $eh = $widget->LogEditor( name => 'dummy', 
                            revision=> '1.1', 
                            'format' => $logDataFormat) ;

 $eh->Show(info => Storage_object_of_a_VcsTools_Version_object) ;

DESCRIPTION ^

This composite Tk Widget is used to edit the log information of a version of a Vcs file. A version of a Vcs file is implemented in the VcsTools::Version object. And the log information is stored in its associated Puppet::Storage class. This class must be passed to the Show method so that the editor can modify the log informations.

The fields of the editor are set according to the 'format' parameter passed during the widget creation.

Each field feature a 'recall' button which will recall the last archived value of the field. You may click several times on the 'recall' button to get older values.

Constructor ^

LogEditor()

Parameters are :

METHODS ^

Show()

This method displays the dialog, waits for the user to click either 'archive' or 'cancel'. If the user cancels the edition, Show returns 0.

If the user clicked 'archive', Show will store the edited data in the passed 'info' reference and returns 1.

Parameters are :

DESCRIPTION FORMAT ^

See "DESCRIPTION FORMAT" in VcsTools::LogParser

Each item of the description must have a type. According to the type, the LogEditor will create a widget for this type:

AUTHOR ^

Dominique Dumont, Dominique_Dumont@grenoble.hp.com

Copyright (c) 1998-1999 Dominique Dumont. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO ^

perl(1), Tk(3), VcsTools::DataSpec::HpTnd(3)

syntax highlighting: