a text entry widget with a pull-down menu of values More...
#include <vtkKWComboBox.h>


Public Types | |
| typedef vtkKWEntry | Superclass |
Public Member Functions | |
| virtual const char * | GetClassName () |
| virtual int | IsA (const char *type) |
| void | PrintSelf (ostream &os, vtkIndent indent) |
| virtual const char * | GetValueFromIndex (int idx) |
| virtual void | ReplaceNthValue (int n, const char *value) |
| virtual void | SetValue (const char *) |
| virtual void | SetCommand (vtkObject *object, const char *method) |
| virtual void | UpdateEnableState () |
| virtual void | AddValue (const char *value) |
| virtual void | AddValueAsInt (int value) |
| virtual void | DeleteValue (int idx) |
| virtual int | HasValue (const char *value) |
| virtual int | GetValueIndex (const char *value) |
| virtual int | GetNumberOfValues () |
| virtual void | DeleteAllValues () |
| virtual void | SetListboxWidth (int n) |
| virtual int | GetListboxWidth () |
| virtual void | SetBackgroundColor (double r, double g, double b) |
| virtual void | SetBackgroundColor (double rgb[3]) |
Static Public Member Functions | |
| static vtkKWComboBox * | New () |
| static int | IsTypeOf (const char *type) |
| static vtkKWComboBox * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
| vtkKWComboBox () | |
| ~vtkKWComboBox () | |
| virtual void | CreateWidget () |
a text entry widget with a pull-down menu of values
A simple subclass of entry that adds a pull-down menu where a predefined set of values can be chosed to set the entry field.
Definition at line 34 of file vtkKWComboBox.h.
| typedef vtkKWEntry vtkKWComboBox::Superclass |
Reimplemented from vtkKWEntry.
Definition at line 39 of file vtkKWComboBox.h.
| vtkKWComboBox::vtkKWComboBox | ( | ) | [protected] |
| vtkKWComboBox::~vtkKWComboBox | ( | ) | [protected] |
| static vtkKWComboBox* vtkKWComboBox::New | ( | ) | [static] |
Reimplemented from vtkKWEntry.
| virtual const char* vtkKWComboBox::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkKWEntry.
| static int vtkKWComboBox::IsTypeOf | ( | const char * | type | ) | [static] |
Reimplemented from vtkKWEntry.
| virtual int vtkKWComboBox::IsA | ( | const char * | type | ) | [virtual] |
Reimplemented from vtkKWEntry.
| static vtkKWComboBox* vtkKWComboBox::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkKWEntry.
| void vtkKWComboBox::PrintSelf | ( | ostream & | os, | |
| vtkIndent | indent | |||
| ) | [virtual] |
Reimplemented from vtkKWEntry.
| virtual void vtkKWComboBox::AddValue | ( | const char * | value | ) | [virtual] |
Add and delete values to put in the list.
| virtual void vtkKWComboBox::AddValueAsInt | ( | int | value | ) | [virtual] |
Add and delete values to put in the list.
| virtual void vtkKWComboBox::DeleteValue | ( | int | idx | ) | [virtual] |
Add and delete values to put in the list.
| virtual int vtkKWComboBox::HasValue | ( | const char * | value | ) | [virtual] |
Add and delete values to put in the list.
| virtual int vtkKWComboBox::GetValueIndex | ( | const char * | value | ) | [virtual] |
Add and delete values to put in the list.
| virtual int vtkKWComboBox::GetNumberOfValues | ( | ) | [virtual] |
Add and delete values to put in the list.
| virtual void vtkKWComboBox::DeleteAllValues | ( | ) | [virtual] |
Add and delete values to put in the list.
| virtual const char* vtkKWComboBox::GetValueFromIndex | ( | int | idx | ) | [virtual] |
Get the corresponding value given an index Note that the output of GetValueFromIndex is a pointer to a temporary buffer that should be copied *immediately* to your own storage.
| virtual void vtkKWComboBox::ReplaceNthValue | ( | int | n, | |
| const char * | value | |||
| ) | [virtual] |
Replace the nth value in the combo box with another string value.
| virtual void vtkKWComboBox::SetValue | ( | const char * | ) | [virtual] |
Set/Get the value of the entry in a few different formats. Overriden to comply with the Tk type
Reimplemented from vtkKWEntry.
| virtual void vtkKWComboBox::SetCommand | ( | vtkObject * | object, | |
| const char * | method | |||
| ) | [virtual] |
Specifies a command to associate with the widget. This command is typically invoked when the return key is pressed, or the focus is lost, or a value is picked from the dropdown list. The 'object' argument is the object that will have the method called on it. The 'method' argument is the name of the method to be called and any arguments in string form. If the object is NULL, the method is still evaluated as a simple command. The following parameters are also passed to the command: - current value: const char*
Reimplemented from vtkKWEntry.
| virtual void vtkKWComboBox::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 vtkKWEntry.
| virtual void vtkKWComboBox::SetListboxWidth | ( | int | n | ) | [virtual] |
Set/Get the width of the listbox in the dropdown, in pixels.
| virtual int vtkKWComboBox::GetListboxWidth | ( | ) | [virtual] |
Add and delete values to put in the list.
| virtual void vtkKWComboBox::SetBackgroundColor | ( | double | r, | |
| double | g, | |||
| double | b | |||
| ) | [virtual] |
Set/Get the background color of the widget. Override the super to make sure all elements are set correctly.
Reimplemented from vtkKWEntry.
| virtual void vtkKWComboBox::SetBackgroundColor | ( | double | rgb[3] | ) | [inline, virtual] |
Add and delete values to put in the list.
Reimplemented from vtkKWEntry.
Definition at line 93 of file vtkKWComboBox.h.
| virtual void vtkKWComboBox::CreateWidget | ( | ) | [protected, virtual] |
Create the widget.
Reimplemented from vtkKWEntry.
1.6.1