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

AllWordgraphs Class Reference

Inheritance diagram for AllWordgraphs:

Inheritance graph
[legend]
Collaboration diagram for AllWordgraphs:

Collaboration graph
[legend]
List of all members.

Detailed Description

AllWordgraphs - manage all grammar wordgraphs.

Author:
Michael Daum (see also AUTHORS and THANKS for more)
Id
allwordgraphs.tcl,v 1.70 2004/10/13 06:57:13 micha Exp

Definition at line 17 of file allwordgraphs.tcl.

Public Member Functions

 AllWordgraphs (TclList args)
 getAllLatticeIds ()
 getCData (TclString id)
 getNext (TclString latticeId)
 getPrev (TclString latticeId)
 getSelection ()
 init_data ()
 refreshid (TclString id)
 refreshrow (TclNumber row, TclString id)
 setIndexedSelection (TclList args)
 setSelection (TclList args)

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)

Protected Attributes

TclString _idColumnIndex = ""
TclString _selection = ""

Private Member Functions

 _init_data ()
 annobutton_action ()
 icbutton_action ()
 interactivebutton_action ()
 newbutton_action ()
 newnet ()

Private Attributes

TclRef allsorted
TclArray wordgraph


Constructor & Destructor Documentation

AllWordgraphs::AllWordgraphs TclList  args  ) 
 

constructor

Definition at line 63 of file allwordgraphs.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.

AllWordgraphs::_init_data  )  [private]
 

get the data from the cdg-tool

Definition at line 176 of file allwordgraphs.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.

AllWordgraphs::annobutton_action  )  [private]
 

actions to take place on pressing the annobutton

Definition at line 229 of file allwordgraphs.tcl.

AllWordgraphs::getAllLatticeIds  ) 
 

Return list of all lattices' names.

Definition at line 352 of file allwordgraphs.tcl.

AllWordgraphs::getCData TclString  id  ) 
 

get pointer to a lattice_id, cache it in array wordgraph

Reimplemented from DataBrowser.

Definition at line 303 of file allwordgraphs.tcl.

AllWordgraphs::getNext TclString  latticeId  ) 
 

get the lattice next after $id.

Definition at line 320 of file allwordgraphs.tcl.

AllWordgraphs::getPrev TclString  latticeId  ) 
 

Show the annotation for the lattice above $id.

Definition at line 336 of file allwordgraphs.tcl.

DataBrowser::getSelection  )  [inherited]
 

return a list of selected ids

Definition at line 292 of file databrowser.tcl.

References DataBrowser::setSelection().

AllWordgraphs::icbutton_action  )  [private]
 

actions to take place on pressing the icbutton

Definition at line 253 of file allwordgraphs.tcl.

AllWordgraphs::init_data  ) 
 

call _init_data if necessary

Reimplemented from DataBrowser.

Definition at line 162 of file allwordgraphs.tcl.

AllWordgraphs::interactivebutton_action  )  [private]
 

actions to take place on pressing the interactivebutton

Definition at line 268 of file allwordgraphs.tcl.

AllWordgraphs::newbutton_action  )  [private]
 

actions to take place on pressing the newbutton

Definition at line 222 of file allwordgraphs.tcl.

AllWordgraphs::newnet  )  [private]
 

actions taking place when the newnetbutton is pressed

Definition at line 293 of file allwordgraphs.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().

AllWordgraphs::refreshrow TclNumber  row,
TclString  ptr
 

fill a row with the values from a specific wordgraph.

Parameters:
row row index to insert data
ptr Pointer to lattice_id

Reimplemented from DataBrowser.

Definition at line 140 of file allwordgraphs.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.

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().


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.

TclRef AllWordgraphs::allsorted [private]
 

list of ids sorted as in the table

Definition at line 54 of file allwordgraphs.tcl.

TclArray AllWordgraphs::wordgraph [private]
 

hash mapping wordgraph ids to their C structure

Definition at line 51 of file allwordgraphs.tcl.


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