#include <vtkKWMenu.h>
Inheritance diagram for vtkKWMenu:
Public Member Functions | |
vtkTypeRevisionMacro (vtkKWMenu, vtkKWCoreWidget) | |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | Create (vtkKWApplication *app) |
const char * | GetItemCommand (int idx) |
int | HasItem (const char *label) |
int | GetNumberOfItems () |
void | DisplayHelp (const char *) |
virtual void | SetState (int state) |
void | ConfigureItem (int index, const char *) |
virtual void | SetEnabled (int) |
virtual void | UpdateEnableState () |
void | AddSeparator () |
void | InsertSeparator (int position) |
void | AddCascade (const char *label, vtkKWMenu *, int underline, const char *help=0) |
void | InsertCascade (int position, const char *label, vtkKWMenu *, int underline, const char *help=0) |
int | GetCascadeIndex (vtkKWMenu *) |
void | SetCascade (int index, vtkKWMenu *) |
void | SetCascade (const char *label, vtkKWMenu *) |
void | SetCascade (int index, const char *menu_name) |
void | SetCascade (const char *label, const char *menu_name) |
char * | CreateCheckButtonVariable (vtkKWObject *Object, const char *name) |
int | GetCheckButtonValue (vtkKWObject *Object, const char *name) |
void | CheckCheckButton (vtkKWObject *Object, const char *name, int val) |
void | AddCheckButton (const char *label, const char *ButtonVar, vtkObject *Object, const char *MethodAndArgString, const char *help=0) |
void | AddCheckButton (const char *label, const char *ButtonVar, vtkObject *Object, const char *MethodAndArgString, int underline, const char *help=0) |
void | InsertCheckButton (int position, const char *label, const char *ButtonVar, vtkObject *Object, const char *MethodAndArgString, const char *help=0) |
void | InsertCheckButton (int position, const char *label, const char *ButtonVar, vtkObject *Object, const char *MethodAndArgString, int underline, const char *help=0) |
void | AddCommand (const char *label, vtkObject *Object, const char *MethodAndArgString, const char *help=0) |
void | AddCommand (const char *label, vtkObject *Object, const char *MethodAndArgString, int underline, const char *help=0) |
void | InsertCommand (int position, const char *label, vtkObject *Object, const char *MethodAndArgString, const char *help=0) |
void | InsertCommand (int position, const char *label, vtkObject *Object, const char *MethodAndArgString, int underline, const char *help=0) |
void | SetEntryCommand (int index, vtkObject *object, const char *MethodAndArgString) |
void | SetEntryCommand (const char *item, vtkObject *object, const char *method) |
void | SetEntryCommand (int item, const char *method) |
void | SetEntryCommand (const char *item, const char *method) |
char * | CreateRadioButtonVariable (vtkKWObject *Object, const char *varname) |
int | GetRadioButtonValue (vtkKWObject *Object, const char *varname) |
void | CheckRadioButton (vtkKWObject *Object, const char *varname, int id) |
int | GetCheckedRadioButtonItem (vtkKWObject *Object, const char *varname) |
void | AddRadioButton (int value, const char *label, const char *buttonVar, vtkObject *Called, const char *MethodAndArgString, const char *help=0) |
void | AddRadioButton (int value, const char *label, const char *buttonVar, vtkObject *Called, const char *MethodAndArgString, int underline, const char *help=0) |
void | AddRadioButtonImage (int value, const char *imgname, const char *buttonVar, vtkObject *Called, const char *MethodAndArgString, const char *help=0) |
void | InsertRadioButton (int position, int value, const char *label, const char *buttonVar, vtkObject *Called, const char *MethodAndArgString, const char *help=0) |
void | InsertRadioButton (int position, int value, const char *label, const char *buttonVar, vtkObject *Called, const char *MethodAndArgString, int underline, const char *help=0) |
void | AddGeneric (const char *addtype, const char *label, vtkObject *Object, const char *MethodAndArgString, const char *extra, const char *help) |
void | InsertGeneric (int position, const char *addtype, const char *label, vtkObject *Object, const char *MethodAndArgString, const char *extra, const char *help) |
void | Invoke (int position) |
void | Invoke (const char *label) |
void | DeleteMenuItem (int position) |
void | DeleteMenuItem (const char *label) |
void | DeleteAllMenuItems () |
int | GetIndexOfItem (const char *label) |
int | GetIndexOfCommand (vtkObject *Object, const char *MethodAndArgString) |
int | GetItemLabel (int position, char *label, int maxlen) |
const char * | GetItemLabel (int position) |
int | HasItemOption (int position, const char *option) |
const char * | GetItemOption (int position, const char *option) |
const char * | GetItemOption (const char *label, const char *option) |
void | SetItemImage (int position, const char *imagename) |
void | SetItemImage (const char *label, const char *imagename) |
void | SetItemImageToPredefinedIcon (int position, int icon_index) |
void | SetItemImageToPredefinedIcon (const char *label, int icon_index) |
void | SetItemSelectImage (int position, const char *imagename) |
void | SetItemSelectImage (const char *label, const char *imagename) |
void | SetItemSelectImageToPredefinedIcon (int position, int icon_index) |
void | SetItemSelectImageToPredefinedIcon (const char *label, int icon_index) |
void | SetItemCompoundMode (int position, int flag) |
void | SetItemCompoundMode (const char *label, int flag) |
void | SetItemMarginVisibility (int position, int flag) |
void | SetItemMarginVisibility (const char *label, int flag) |
void | SetItemIndicatorVisibility (int position, int flag) |
void | SetItemIndicatorVisibility (const char *label, int flag) |
void | SetItemAccelerator (int position, const char *accelerator) |
void | SetItemAccelerator (const char *label, const char *accelerator) |
void | SetTearOff (int val) |
virtual int | GetTearOff () |
virtual void | TearOffOn () |
virtual void | TearOffOff () |
virtual void | SetItemState (int index, int state) |
virtual void | SetItemState (const char *label, int state) |
virtual int | GetItemState (int index) |
virtual int | GetItemState (const char *label) |
Static Public Member Functions | |
vtkKWMenu * | New () |
Protected Member Functions | |
vtkKWMenu () | |
~vtkKWMenu () | |
Protected Attributes | |
int | TearOff |
This class is the Menu abstraction for the Kitware toolkit. It provides a c++ interface to the TK menu widgets used by the Kitware toolkit.
Definition at line 27 of file vtkKWMenu.h.
|
|
|
|
|
Reimplemented from vtkKWCoreWidget. |
|
|
|
Reimplemented from vtkKWCoreWidget. |
|
Create the widget. Reimplemented from vtkKWCoreWidget. |
|
Append/Insert a separator to the menu. |
|
Append/Insert a separator to the menu. |
|
Append/Insert a sub menu to the current menu. |
|
Append/Insert a sub menu to the current menu. |
|
Append/Insert a sub menu to the current menu. |
|
Set cascade menu for menu entry. |
|
Set cascade menu for menu entry. |
|
Set cascade menu for menu entry. |
|
Set cascade menu for menu entry. |
|
Append/Insert a CheckButton menu item to the current menu. |
|
Append/Insert a CheckButton menu item to the current menu. |
|
Append/Insert a CheckButton menu item to the current menu. |
|
Append/Insert a CheckButton menu item to the current menu. |
|
Append/Insert a CheckButton menu item to the current menu. |
|
Append/Insert a CheckButton menu item to the current menu. |
|
Append/Insert a CheckButton menu item to the current menu. |
|
Append/Insert a standard menu item and command to the current menu. |
|
Append/Insert a standard menu item and command to the current menu. |
|
Append/Insert a standard menu item and command to the current menu. |
|
Append/Insert a standard menu item and command to the current menu. |
|
Set command of the menu entry with a given index. |
|
Set command of the menu entry with a given index. |
|
Set command of the menu entry with a given index. |
|
Set command of the menu entry with a given index. |
|
Append a radio menu item and command to the current menu. The radio group is specified by the buttonVar value. |
|
Append a radio menu item and command to the current menu. The radio group is specified by the buttonVar value. |
|
Append a radio menu item and command to the current menu. The radio group is specified by the buttonVar value. |
|
Append a radio menu item and command to the current menu. The radio group is specified by the buttonVar value. |
|
Append a radio menu item and command to the current menu. The radio group is specified by the buttonVar value. |
|
Append a radio menu item and command to the current menu. The radio group is specified by the buttonVar value. |
|
Append a radio menu item and command to the current menu. The radio group is specified by the buttonVar value. |
|
Append a radio menu item and command to the current menu. The radio group is specified by the buttonVar value. |
|
Append a radio menu item and command to the current menu. The radio group is specified by the buttonVar value. |
|
Add a generic menu item (defined by addtype) |
|
Add a generic menu item (defined by addtype) |
|
Call the menu item callback at the given index |
|
Call the menu item callback at the given index |
|
Delete the menu item at the given position. Be careful, there is a bug in tk, that will break other items in the menu below the one being deleted, unless a new item is added. |
|
Delete the menu item at the given position. Be careful, there is a bug in tk, that will break other items in the menu below the one being deleted, unless a new item is added. |
|
Delete the menu item at the given position. Be careful, there is a bug in tk, that will break other items in the menu below the one being deleted, unless a new item is added. |
|
Returns the integer index of the menu item by string, or by the command (object/method) pair associated to it. |
|
Returns the integer index of the menu item by string, or by the command (object/method) pair associated to it. |
|
Get the command for the entry at index. This is what is returned by Script, so you should make a copy if you want to use it in Tcl. |
|
Copies the label of the item at the given position to the given string ( with the given length ). Returns VTK_OK if there is label, VTK_ERROR otherwise. The second version returns a pointer to the result of the Tcl interpreter last evaluation (be careful). |
|
Copies the label of the item at the given position to the given string ( with the given length ). Returns VTK_OK if there is label, VTK_ERROR otherwise. The second version returns a pointer to the result of the Tcl interpreter last evaluation (be careful). |
|
Get the option of an entry |
|
Get the option of an entry |
|
Get the option of an entry |
|
Set the image and select image of an entry. Check the SetItemCompoundMode if you want to display both the image and the text. |
|
Set the image and select image of an entry. Check the SetItemCompoundMode if you want to display both the image and the text. |
|
Set the image and select image of an entry. Check the SetItemCompoundMode if you want to display both the image and the text. |
|
Set the image and select image of an entry. Check the SetItemCompoundMode if you want to display both the image and the text. |
|
Set the select image of an entry. The select image is available only for checkbutton and radiobutton entries. Specifies an image to display in the entry (in place of the regular image) when it is selected. |
|
Set the select image of an entry. The select image is available only for checkbutton and radiobutton entries. Specifies an image to display in the entry (in place of the regular image) when it is selected. |
|
Set the select image of an entry. The select image is available only for checkbutton and radiobutton entries. Specifies an image to display in the entry (in place of the regular image) when it is selected. |
|
Set the select image of an entry. The select image is available only for checkbutton and radiobutton entries. Specifies an image to display in the entry (in place of the regular image) when it is selected. |
|
Set the compound mode of an entry. Set it to 'true' to display both the image and the text. Check the SetItemMarginVisibility method too. |
|
Set the compound mode of an entry. Set it to 'true' to display both the image and the text. Check the SetItemMarginVisibility method too. |
|
Set the visibility of the standard margin of an entry. Hiding the margin is useful when creating palette with images in them, i.e., color palettes, pattern palettes, etc. |
|
Set the visibility of the standard margin of an entry. Hiding the margin is useful when creating palette with images in them, i.e., color palettes, pattern palettes, etc. |
|
Set the visibility of the indicator of an entry. Available only for checkbutton and radiobutton entries. |
|
Set the visibility of the indicator of an entry. Available only for checkbutton and radiobutton entries. |
|
Set/Get the accelerator for a given item. |
|
Set/Get the accelerator for a given item. |
|
Checks if an item is in the menu |
|
Returns the number of items |
|
Call back for active menu item doc line help |
|
Option to make this menu a tearoff menu. By dafault this value is off. |
|
Option to make this menu a tearoff menu. By dafault this value is off. |
|
Option to make this menu a tearoff menu. By dafault this value is off. |
|
Option to make this menu a tearoff menu. By dafault this value is off. |
|
Set/Get state of the menu entry with a given index or name. Valid constants can be found in vtkKWTkOptions::StateType. |
|
Set/Get state of the menu entry with a given index or name. Valid constants can be found in vtkKWTkOptions::StateType. |
|
Set/Get state of the menu entry with a given index or name. Valid constants can be found in vtkKWTkOptions::StateType. |
|
Set/Get state of the menu entry with a given index or name. Valid constants can be found in vtkKWTkOptions::StateType. |
|
Convenience method to set the state of all entries. Valid constants can be found in vtkKWTkOptions::StateType. This should not be used directly, this is done by SetEnabled()/UpdateEnableState(). Overriden to pass to all menu entries Reimplemented from vtkKWCoreWidget. |
|
Configure the item at given index. |
|
Set or get enabled state. This method has been overriden to propagate the state to all its menu entries by calling UpdateEnableState(), even* if the state (this->Enabled) is actually unchanged by the function. This make sure all the menu entries have been enabled/disabled properly. Reimplemented from vtkKWWidget. |
|
This method has been overriden to propagate the state to all its menu entries by calling SetState(). 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. |
|
Definition at line 294 of file vtkKWMenu.h. |