Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

YadaLog Class Reference

Inheritance diagram for YadaLog:

Inheritance graph
[legend]
Collaboration diagram for YadaLog:

Collaboration graph
[legend]
List of all members.

Detailed Description

YadaLog - a text output widget. This class defines a scrollable text window used to display the informations, warnings and errors that occure during YADA.

Author:
Michael Daum
Id
YadaLog.tcl,v 1.9 2004/02/25 14:42:09 micha Exp

Definition at line 20 of file YadaLog.tcl.

Public Member Functions

 autotag (TclString pattern, TclList args)
 clear ()
 print (TclString message)
 YadaLog (TclList args)

Public Attributes

TclNumber followData = 1

Private Attributes

TclNumber _needsLineFeed = 0
TclList _tagging = {}


Constructor & Destructor Documentation

YadaLog::YadaLog TclList  args  ) 
 

constructor

Definition at line 46 of file YadaLog.tcl.


Member Function Documentation

YadaLog::autotag TclString  pattern,
TclList  args
 

configure syntax highlightning. This method lets you define a pattern as a regular expression and associate tag configurations (see tk::text).

Parameters:
pattern a regular expression matching a part of printed text.
args list of tag configurations in the text widget
Definition at line 125 of file YadaLog.tcl.

YadaLog::clear  ) 
 

clear the text. This simply deletes all previousply printed text. Definition at line 114 of file YadaLog.tcl.

YadaLog::print TclString  message  ) 
 

print a message on the widget. The text is added to the end of the already printed text and highlightened according to the configured autotags.

See also:
autotag(). After inserting the text tcltk is given an update loop to refresh its widges.
Parameters:
message the text to be displayed.
Definition at line 57 of file YadaLog.tcl.


Member Data Documentation

TclNumber YadaLog::_needsLineFeed = 0 [private]
 

flag used in print().

Definition at line 29 of file YadaLog.tcl.

TclList YadaLog::_tagging = {} [private]
 

list of highlightened patterns in the text.

Definition at line 26 of file YadaLog.tcl.

TclNumber YadaLog::followData = 1
 

flag indicating whether new text should be focused or not.

Definition at line 33 of file YadaLog.tcl.


The documentation for this class was generated from the following file:
YADA 2.0-alpha (20 Oct 2004)