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

AllConstraints Class Reference

Inheritance diagram for AllConstraints:

Inheritance graph
[legend]
Collaboration diagram for AllConstraints:

Collaboration graph
[legend]
List of all members.

Detailed Description

AllConstraints - manage all constraints.

Author:
Michael Daum (see also AUTHORS and THANKS for more)
Id
allconstraints.tcl,v 1.33 2004/10/11 13:50:05 micha Exp

Definition at line 18 of file allconstraints.tcl.

Public Member Functions

public method getAllConstraintIds AllConstraints (TclList args)
 getCData (TclString id)
 getSelection ()
 init_data ()
 refreshid (TclString id)
 refreshrow (TclNumber row, Constraint constraint)
 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)
 refreshrow (TclNumber row, TclString item)

Protected Attributes

TclString _idColumnIndex = ""
TclString _selection = ""

Private Member Functions

 _init_data ()
 editbutton_action ()
 showbutton_action ()
 usebutton_action ()
 usegroupbutton_action ()
 uselevelbutton_action ()
 weightbutton_action ()

Private Attributes

TclArray constraints


Constructor & Destructor Documentation

AllConstraints::AllConstraints TclList  args  ) 
 

constructor

Definition at line 54 of file allconstraints.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.

AllConstraints::_init_data  )  [private]
 

get data from the cdg tool.

Definition at line 149 of file allconstraints.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.

AllConstraints::editbutton_action  )  [private]
 

call an editor to view the constraint source

Definition at line 350 of file allconstraints.tcl.

AllConstraints::getCData TclString  id  ) 
 

replaces getconstraint

Reimplemented from DataBrowser.

Definition at line 387 of file allconstraints.tcl.

DataBrowser::getSelection  )  [inherited]
 

return a list of selected ids

Definition at line 292 of file databrowser.tcl.

References DataBrowser::setSelection().

AllConstraints::init_data  ) 
 

call _init_data() if necessary.

Reimplemented from DataBrowser.

Definition at line 136 of file allconstraints.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.

AllConstraints::refreshrow TclNumber  row,
Constraint  constraint
 

fill a row with the values from a specific constraint.

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

AllConstraints::showbutton_action  )  [private]
 

display the constraint in the shell.

Definition at line 376 of file allconstraints.tcl.

AllConstraints::usebutton_action  )  [private]
 

toggle usage of selected constraints.

Definition at line 340 of file allconstraints.tcl.

AllConstraints::usegroupbutton_action  )  [private]
 

toggle usage of groups of selected constraints .

Definition at line 258 of file allconstraints.tcl.

AllConstraints::uselevelbutton_action  )  [private]
 

toggle usage of level of selected constraints.

Definition at line 283 of file allconstraints.tcl.

AllConstraints::weightbutton_action  )  [private]
 

Set new weight for the selected constraint.

Definition at line 313 of file allconstraints.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.

TclArray AllConstraints::constraints [private]
 

hash mapping constraint ids to Constraint structures

Definition at line 48 of file allconstraints.tcl.


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