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

vtkKWListBox Class Reference

List Box. More...

#include <vtkKWListBox.h>

Inheritance diagram for vtkKWListBox:

Inheritance graph
[legend]
Collaboration diagram for vtkKWListBox:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 vtkTypeRevisionMacro (vtkKWListBox, vtkKWCoreWidget)
void PrintSelf (ostream &os, vtkIndent indent)
virtual void Create (vtkKWApplication *app)
virtual void InsertEntry (int index, const char *name)
virtual int AppendUnique (const char *name)
virtual int Append (const char *name)
virtual int GetNumberOfItems ()
virtual const char * GetItem (int index)
virtual int GetItemIndex (const char *item)
virtual void DeleteRange (int start, int end)
virtual void DeleteAll ()
virtual void UpdateEnableState ()
virtual void SetSelectionMode (int)
virtual int GetSelectionMode ()
virtual void SetSelectionModeToSingle ()
virtual void SetSelectionModeToBrowse ()
virtual void SetSelectionModeToMultiple ()
virtual void SetSelectionModeToExtended ()
virtual void SetExportSelection (int)
virtual int GetExportSelection ()
virtual void ExportSelectionOn ()
virtual void ExportSelectionOff ()
virtual const char * GetSelection ()
virtual int GetSelectionIndex ()
virtual void SetSelectionIndex (int)
virtual void SetSelectState (int idx, int state)
virtual int GetSelectState (int idx)
virtual void SetDoubleClickCommand (vtkObject *obj, const char *method)
virtual void SetSingleClickCommand (vtkObject *obj, const char *method)
virtual void SetWidth (int)
virtual int GetWidth ()
virtual void SetHeight (int)
virtual int GetHeight ()

Static Public Member Functions

vtkKWListBoxNew ()

Protected Member Functions

 vtkKWListBox ()
 ~vtkKWListBox ()

Protected Attributes

char * CurrentSelection
char * Item

Detailed Description

List Box.

A widget that can have a list of items. Use vtkKWListBoxWithScrollbars if you need scrollbars.

See also:
vtkKWListBoxWithScrollbars

Definition at line 30 of file vtkKWListBox.h.


Constructor & Destructor Documentation

vtkKWListBox::vtkKWListBox  )  [protected]
 

vtkKWListBox::~vtkKWListBox  )  [protected]
 


Member Function Documentation

vtkKWListBox* vtkKWListBox::New  )  [static]
 

Reimplemented from vtkKWCoreWidget.

vtkKWListBox::vtkTypeRevisionMacro vtkKWListBox  ,
vtkKWCoreWidget 
 

void vtkKWListBox::PrintSelf ostream &  os,
vtkIndent  indent
 

Reimplemented from vtkKWCoreWidget.

virtual void vtkKWListBox::Create vtkKWApplication app  )  [virtual]
 

Create the widget.

Reimplemented from vtkKWCoreWidget.

virtual void vtkKWListBox::SetSelectionMode int   )  [virtual]
 

Set/Get the one of several styles for manipulating the selection. Valid constants can be found in vtkKWTkOptions::SelectionModeType.

virtual int vtkKWListBox::GetSelectionMode  )  [virtual]
 

Set/Get the one of several styles for manipulating the selection. Valid constants can be found in vtkKWTkOptions::SelectionModeType.

virtual void vtkKWListBox::SetSelectionModeToSingle  )  [inline, virtual]
 

Set/Get the one of several styles for manipulating the selection. Valid constants can be found in vtkKWTkOptions::SelectionModeType.

Definition at line 45 of file vtkKWListBox.h.

virtual void vtkKWListBox::SetSelectionModeToBrowse  )  [inline, virtual]
 

Set/Get the one of several styles for manipulating the selection. Valid constants can be found in vtkKWTkOptions::SelectionModeType.

Definition at line 47 of file vtkKWListBox.h.

virtual void vtkKWListBox::SetSelectionModeToMultiple  )  [inline, virtual]
 

Set/Get the one of several styles for manipulating the selection. Valid constants can be found in vtkKWTkOptions::SelectionModeType.

Definition at line 49 of file vtkKWListBox.h.

virtual void vtkKWListBox::SetSelectionModeToExtended  )  [inline, virtual]
 

Set/Get the one of several styles for manipulating the selection. Valid constants can be found in vtkKWTkOptions::SelectionModeType.

Definition at line 51 of file vtkKWListBox.h.

virtual void vtkKWListBox::SetExportSelection int   )  [virtual]
 

Specifies whether or not a selection in the widget should also be the X selection. If the selection is exported, then selecting in the widget deselects the current X selection, selecting outside the widget deselects any widget selection, and the widget will respond to selection retrieval requests when it has a selection.

virtual int vtkKWListBox::GetExportSelection  )  [virtual]
 

Specifies whether or not a selection in the widget should also be the X selection. If the selection is exported, then selecting in the widget deselects the current X selection, selecting outside the widget deselects any widget selection, and the widget will respond to selection retrieval requests when it has a selection.

virtual void vtkKWListBox::ExportSelectionOn  )  [virtual]
 

Specifies whether or not a selection in the widget should also be the X selection. If the selection is exported, then selecting in the widget deselects the current X selection, selecting outside the widget deselects any widget selection, and the widget will respond to selection retrieval requests when it has a selection.

virtual void vtkKWListBox::ExportSelectionOff  )  [virtual]
 

Specifies whether or not a selection in the widget should also be the X selection. If the selection is exported, then selecting in the widget deselects the current X selection, selecting outside the widget deselects any widget selection, and the widget will respond to selection retrieval requests when it has a selection.

virtual const char* vtkKWListBox::GetSelection  )  [virtual]
 

Get the current selected string in the list. This is used when Select mode is single or browse.

virtual int vtkKWListBox::GetSelectionIndex  )  [virtual]
 

Get the current selected string in the list. This is used when Select mode is single or browse.

virtual void vtkKWListBox::SetSelectionIndex int   )  [virtual]
 

Get the current selected string in the list. This is used when Select mode is single or browse.

virtual void vtkKWListBox::SetSelectState int  idx,
int  state
[virtual]
 

When selectmode is multiple or extended, then these methods can be used to set and query the selection.

virtual int vtkKWListBox::GetSelectState int  idx  )  [virtual]
 

When selectmode is multiple or extended, then these methods can be used to set and query the selection.

virtual void vtkKWListBox::InsertEntry int  index,
const char *  name
[virtual]
 

Add an entry.

virtual int vtkKWListBox::AppendUnique const char *  name  )  [virtual]
 

Append a unique string to the list. If the string exists, it will not be appended

virtual int vtkKWListBox::Append const char *  name  )  [virtual]
 

Append a string to the list. This call does not check if the string is unique.

virtual void vtkKWListBox::SetDoubleClickCommand vtkObject *  obj,
const char *  method
[virtual]
 

Set callback for single and double click on a list item.

virtual void vtkKWListBox::SetSingleClickCommand vtkObject *  obj,
const char *  method
[virtual]
 

Set callback for single and double click on a list item.

virtual int vtkKWListBox::GetNumberOfItems  )  [virtual]
 

Get number of items in the list.

virtual const char* vtkKWListBox::GetItem int  index  )  [virtual]
 

Get the item at the given index.

virtual int vtkKWListBox::GetItemIndex const char *  item  )  [virtual]
 

Returns the index of the first given item.

virtual void vtkKWListBox::DeleteRange int  start,
int  end
[virtual]
 

Delete a range of items in the list.

virtual void vtkKWListBox::DeleteAll  )  [virtual]
 

Delete all items from the list.

virtual void vtkKWListBox::SetWidth int   )  [virtual]
 

Set the width of the list box. If the width is less than or equal to 0, then the width is set to the size of the largest string.

virtual int vtkKWListBox::GetWidth  )  [virtual]
 

Set the width of the list box. If the width is less than or equal to 0, then the width is set to the size of the largest string.

virtual void vtkKWListBox::SetHeight int   )  [virtual]
 

Set the height of the list box. If the height is less than or equal to 0, then the height is set to the size of the number of items in the listbox.

virtual int vtkKWListBox::GetHeight  )  [virtual]
 

Set the height of the list box. If the height is less than or equal to 0, then the height is set to the size of the number of items in the listbox.

virtual void vtkKWListBox::UpdateEnableState  )  [virtual]
 

Update the "enable" state of the object and its internal parts. Depending on different Ivars (this->Enabled, the application's Limited Edition Mode, etc.), the "enable" state of the object is updated and propagated to its internal parts/subwidgets. This will, for example, enable/disable parts of the widget UI, enable/disable the visibility of 3D widgets, etc.

Reimplemented from vtkKWWidget.


Member Data Documentation

char* vtkKWListBox::CurrentSelection [protected]
 

Definition at line 140 of file vtkKWListBox.h.

char* vtkKWListBox::Item [protected]
 

Definition at line 141 of file vtkKWListBox.h.


The documentation for this class was generated from the following file:
Generated on Tue May 30 12:39:51 2006 for ParaView by doxygen 1.3.5