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

ListDialog Class Reference

Inheritance diagram for ListDialog:

Inheritance graph
[legend]
Collaboration diagram for ListDialog:

Collaboration graph
[legend]
List of all members.

Detailed Description

ListDialog - a dialog embedding a list. This dialog is used to temporarily display a list of objects. In YadaRanking data files with errors are displayed after a load action.

Author:
Michael Daum
Id
ListDialog.tcl,v 1.7 2004/02/25 14:42:08 micha Exp

Definition at line 26 of file ListDialog.tcl.

Public Member Functions

 activate ()
 get ()
 insert (TclString component, TclList args)
 ListDialog (TclList args)

Public Attributes

TclString title = ""

Private Member Functions

 _cancelAction ()
 _okAction ()
 _selectionAction ()


Constructor & Destructor Documentation

ListDialog::ListDialog TclList  args  ) 
 

constructor

Definition at line 49 of file ListDialog.tcl.


Member Function Documentation

ListDialog::_cancelAction  )  [private]
 

cancel slot. This method is deactivating the dialog returning a value of 0 to the call that opened the dialog.

See also:
activate()
Definition at line 114 of file ListDialog.tcl.

ListDialog::_okAction  )  [private]
 

ok slot. This method is called when the OK button is pressed or a listed item is double-clicked. Afterwards the dialog is deactivated returning a value of 1 to the activating call.

See also:
activate()
Definition at line 104 of file ListDialog.tcl.

Referenced by _selectionAction().

ListDialog::_selectionAction  )  [private]
 

selection slot. When one of the listed items is selected then this action is fired.

Todo:
not yet implemented
Definition at line 94 of file ListDialog.tcl.

References _okAction().

ListDialog::activate  ) 
 

activate the dialog object. This method calls Shell:activate() after centering the dialog on the master of this widget.

Returns:
0 or 1 depending on the users selection.
See also:
_okAction(), _cancelAction()
Definition at line 125 of file ListDialog.tcl.

ListDialog::get  ) 
 

get the current selection. This method returns the selected items from the list component.

Returns:
a list of list items..
Definition at line 147 of file ListDialog.tcl.

ListDialog::insert TclString  component,
TclList  args
 

delegate insert to a component. This method is mainly used to insert an item to the list component of this widget.

Parameters:
component the name of the component, i.e. "list"
args the list of things to be inserted into the component
Definition at line 138 of file ListDialog.tcl.


Member Data Documentation

ListDialog::title = ""
 

title of the dialog

Definition at line 159 of file ListDialog.tcl.


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