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

AllParses Class Reference

Inheritance diagram for AllParses:

Inheritance graph
[legend]
Collaboration diagram for AllParses:

Collaboration graph
[legend]
List of all members.

Detailed Description

AllParses - manage parser results.

Author:
Dietmar Fünning, Kilian A. Foth (see also AUTHORS and THANKS for more)
Id
allparses.tcl,v 1.63 2004/10/11 13:50:05 micha Exp

Definition at line 17 of file allparses.tcl.

Public Member Functions

 addParse (Parse parse)
 addParsesOfNet (TclString netId)
 deleteparse (TclList args)
 getAllAnnoIds ()
 getAllparseIds ()
 getCData (TclString id)
 getParseForAnno (TclString anno)
 getParseForLattice (TclString id)
 getSelection ()
 handleICinteraction ()
 handlePartialResult (Parse parse_pointer)
 refreshid (TclString id)
 refreshrow (TclNumber row, Parse parse)
 reset ()
 selectIdsOfLattice (TclString netId)
 selectIdsOfNet (TclString netId)
 setIndexedSelection (TclList args)
 setManyWindows (TclNumber x)
 setSelection (TclList args)
 showparse (TclList args)
 verifyparse (TclList args)

Public Attributes

TclString autoshow = "valid"

Protected Member Functions

 _browse_action (TclWidget w)
 _keypress_action (TclWidget w, TclKeyBinding k)
 _motion_action (TclWidget w, TclNumber x, TclNumber y)
 _return_action ()
 _rowtag (TclNumber row)
 _setCount (TclNumber n)
 AllParses (TclList args)
 init_data ()
 refreshrow (TclNumber row, TclString item)

Protected Attributes

TclString _idColumnIndex = ""
TclString _selection = ""

Private Member Functions

 deletebutton_action ()
 treebutton_action ()
 verifybutton_action ()

Private Attributes

TclArray allparses
TclNumber manyWindows = 0


Constructor & Destructor Documentation

AllParses::AllParses TclList  args  )  [protected]
 

constructor

Definition at line 70 of file allparses.tcl.


Member Function Documentation

DataBrowser::_browse_action TclWidget  w  )  [protected, inherited]
 

browse slot. This method adjusts the selected file in AllFiles::_selection.

Parameters:
w the widget bound to this slot.
Definition at line 189 of file databrowser.tcl.

DataBrowser::_keypress_action TclWidget  a,
TclKeyBinding  k
[protected, inherited]
 

React to a keypress into the table.

Keys typed by the user are collected into a string, and the row whose id matches that string is selected. Definition at line 421 of file databrowser.tcl.

DataBrowser::_motion_action TclWidget  w,
TclNumber  x,
TclNumber  y
[protected, inherited]
 

Default motion slot.

Parameters:
w the widget where the motion was detected
x the x coords of the mouse
y the y coords of the mouse

Reimplemented in AllFiles.

Definition at line 390 of file databrowser.tcl.

References DataBrowser::refreshid().

DataBrowser::_return_action  )  [protected, inherited]
 

actions to take place on pressing return in the entryfield.

Definition at line 244 of file databrowser.tcl.

DataBrowser::_rowtag TclNumber  row  )  [protected, inherited]
 

colorize the table rows This method is a callback configured to the table in order to colorize the rows. Definition at line 361 of file databrowser.tcl.

DataBrowser::_setCount TclNumber  n  )  [protected, inherited]
 

display the count-label. This number should reflect the number of items selected

Parameters:
n the number to be set
Definition at line 375 of file databrowser.tcl.

AllParses::addParse Parse  parse  ) 
 

add parse

Definition at line 501 of file allparses.tcl.

AllParses::addParsesOfNet TclString  netId  ) 
 

add all parses of a given net

Definition at line 480 of file allparses.tcl.

AllParses::deletebutton_action  )  [private]
 

action taking place when pressing the deletebutton

Definition at line 210 of file allparses.tcl.

Referenced by verifybutton_action().

AllParses::deleteparse TclList  args  ) 
 

delete given parses

Definition at line 219 of file allparses.tcl.

AllParses::getAllAnnoIds  ) 
 

get names of all known annotations

Definition at line 265 of file allparses.tcl.

Referenced by getAllparseIds().

AllParses::getAllparseIds  ) 
 

get all parseIds

Definition at line 258 of file allparses.tcl.

References getAllAnnoIds().

AllParses::getCData TclString  id  ) 
 

Get parse of a given id by looking it up in allparses().

If no such Parse exists, try to create one from the annotation with the same name and store it there, then return it.

Reimplemented from DataBrowser.

Definition at line 307 of file allparses.tcl.

AllParses::getParseForAnno TclString  anno  ) 
 

Return a parse created from the C annotation ANNO.

Definition at line 280 of file allparses.tcl.

AllParses::getParseForLattice TclString  id  ) 
 

Get a parse from an annotation of lattice ID.

This is the more deperate version of getParseForAnno: instead of annotations with the name ID, it accepts annotations whose lattice's name is ID. You should have tried getParseForAnno first. Definition at line 345 of file allparses.tcl.

DataBrowser::getSelection  )  [inherited]
 

return a list of selected ids

Definition at line 292 of file databrowser.tcl.

References DataBrowser::setSelection().

AllParses::handleICinteraction  ) 
 

This function is called through the hook "IC interaction". It returns another word typed by the user, or "" to denote "stop processing". Definition at line 585 of file allparses.tcl.

AllParses::handlePartialResult Parse  parse_pointer  ) 
 

This function is called whenever a solution method has yielded another partial result. Definition at line 522 of file allparses.tcl.

AllParses::init_data  )  [protected]
 

initialize with all available Parses

Reimplemented from DataBrowser.

Definition at line 140 of file allparses.tcl.

DataBrowser::refreshid TclString  id  )  [inherited]
 

refresh the displayed data for a specific ID

Definition at line 398 of file databrowser.tcl.

Referenced by DataBrowser::_motion_action().

DataBrowser::refreshrow TclNumber  row,
TclString  item
[protected, inherited]
 

abstract method called in refreshid

Reimplemented in AllWordgraphs.

AllParses::refreshrow TclNumber  row,
Parse  parse
 

refresh a row with a specified parse.

Definition at line 120 of file allparses.tcl.

AllParses::reset  ) 
 

Called when the CDG grammar changes and all nets, parses etc. become invalid. It deletes all Tcl parses, their VisParses, the corresponding ParseTrees, etc.

If Tcl ever decides to provide graphical representations of constraint nets or lexicon entries, these must be cleared here as well. Definition at line 626 of file allparses.tcl.

Referenced by setManyWindows().

AllParses::selectIdsOfLattice TclString  latticeId  ) 
 

select parses of a specified Lattice previous selections are cleared Definition at line 384 of file allparses.tcl.

AllParses::selectIdsOfNet TclString  netId  ) 
 

select parses of a specified netId. previous selections are cleared Definition at line 363 of file allparses.tcl.

DataBrowser::setIndexedSelection TclList  args  )  [inherited]
 

Select one or more rows. A previous selection is cleared; without arguemnts, removes all selections.

ARGS is a list of row indices. Definition at line 332 of file databrowser.tcl.

AllParses::setManyWindows TclNumber  x  ) 
 

Switch display of parses in one/many windows.

Definition at line 614 of file allparses.tcl.

References reset().

DataBrowser::setSelection TclList  args  )  [inherited]
 

Select one or more rows. A previous selection is cleared; without arguemnts, removes all selections.

ARGS must be a list of strings without spaces in them. Definition at line 304 of file databrowser.tcl.

Referenced by DataBrowser::getSelection().

AllParses::showparse TclList  args  ) 
 

Display parses graphically.

All parameters are interpreted as the names of parses. If no parse of the given name exists, one is constructed if possible, preferably from an annotation with the same name, or if that fails, from an annotation of the lattice of the same name.

If a parameter has the form parse0:1,2,3 or similar, then not only is parse0 displayed, but the edges 1, 2, and 3 are immediately highlighted. Definition at line 414 of file allparses.tcl.

AllParses::treebutton_action  )  [private]
 

actions to take place on pressing the detailsbutton

Definition at line 196 of file allparses.tcl.

References verifybutton_action().

AllParses::verifybutton_action  )  [private]
 

actions to take place on pressing the detailsbutton

Definition at line 203 of file allparses.tcl.

References deletebutton_action().

Referenced by treebutton_action().

AllParses::verifyparse TclList  args  ) 
 

delete given parses

Definition at line 242 of file allparses.tcl.


Member Data Documentation

TclString DataBrowser::_idColumnIndex = "" [protected, inherited]
 

column index of table that contains selectable ids (used in _browse_action)

Definition at line 87 of file databrowser.tcl.

TclString DataBrowser::_selection = "" [protected, inherited]
 

string of current selected row ids

Definition at line 84 of file databrowser.tcl.


The documentation for this class was generated from the following file:
XCDG 0.95 (20 Oct 2004)