#include <vtkKWWidget.h>
Inheritance diagram for vtkKWWidget:
[NOHEADER] | |
virtual void | AddBalloonHelpBindings () |
char * | BalloonHelpString |
vtkKWIcon * | BalloonHelpIcon |
vtkKWBalloonHelpManager * | BalloonHelpManager |
Public Member Functions | |
vtkTypeRevisionMacro (vtkKWWidget, vtkKWObject) | |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | Create (vtkKWApplication *app) |
virtual int | IsCreated () |
virtual int | IsAlive () |
virtual int | IsMapped () |
virtual void | Focus () |
vtkKWWindowBase * | GetParentWindow () |
virtual void | UpdateEnableState () |
virtual void | UnRegister (vtkObjectBase *o) |
virtual int | GetNetReferenceCount () |
virtual void | SetParent (vtkKWWidget *p) |
virtual vtkKWWidget * | GetParent () |
virtual const char * | GetWidgetName () |
virtual void | SetWidgetName (const char *) |
virtual void | SetEnabled (int) |
virtual void | EnabledOn () |
virtual void | EnabledOff () |
virtual int | GetEnabled () |
virtual void | SetBinding (const char *event, vtkObject *object, const char *method) |
virtual void | SetBinding (const char *event, const char *command) |
virtual void | AddBinding (const char *event, vtkObject *object, const char *method) |
virtual void | AddBinding (const char *event, const char *command) |
virtual void | RemoveBinding (const char *event) |
virtual void | RemoveBinding (const char *event, vtkObject *object, const char *method) |
virtual int | IsPacked () |
virtual int | GetNumberOfPackedChildren () |
virtual void | Unpack () |
virtual void | UnpackSiblings () |
virtual void | UnpackChildren () |
virtual void | SetBalloonHelpString (const char *str) |
virtual char * | GetBalloonHelpString () |
virtual void | SetBalloonHelpIcon (vtkKWIcon *icon) |
virtual vtkKWIcon * | GetBalloonHelpIcon () |
virtual vtkKWBalloonHelpManager * | GetBalloonHelpManager () |
virtual void | SetBalloonHelpManager (vtkKWBalloonHelpManager *mgr) |
virtual int | HasDragAndDropTargetSet () |
virtual vtkKWDragAndDropTargetSet * | GetDragAndDropTargetSet () |
virtual void | Grab () |
virtual void | ReleaseGrab () |
virtual int | IsGrabbed () |
virtual int | HasChild (vtkKWWidget *w) |
virtual int | GetNumberOfChildren () |
virtual vtkKWWidget * | GetNthChild (int rank) |
virtual vtkKWWidget * | GetChildWidgetWithName (const char *) |
virtual void | RemoveAllChildren () |
virtual int | CreateSpecificTkWidget (vtkKWApplication *app, const char *type, const char *args=NULL) |
Static Public Member Functions | |
vtkKWWidget * | New () |
Protected Member Functions | |
vtkKWWidget () | |
~vtkKWWidget () | |
virtual void | PropagateEnableState (vtkKWWidget *widget) |
virtual void | AddChild (vtkKWWidget *w) |
virtual void | RemoveChild (vtkKWWidget *w) |
Protected Attributes | |
char * | WidgetName |
vtkKWWidget * | Parent |
vtkKWWidgetInternals * | Internals |
This class is the superclass of all UI based objects in the Kitware toolkit. It contains common methods such as specifying the parent widget, generating and returning the Tcl widget name for an instance, and managing children. It overrides the Unregister method to handle circular reference counts between child and parent widgets.
Definition at line 36 of file vtkKWWidget.h.
|
|
|
|
|
|
|
|
|
Set/Get the parent widget for this widget |
|
Set/Get the parent widget for this widget |
|
|
Get the name of the underlying Tk widget being used. The Create() method should be called before invoking this method. Note that setting the widget name manually is *not* recommended ; use it only if you know what you are doing, say, for example, if you have to map an external Tk widget to a vtkKWWidget object. |
|
Get the name of the underlying Tk widget being used. The Create() method should be called before invoking this method. Note that setting the widget name manually is *not* recommended ; use it only if you know what you are doing, say, for example, if you have to map an external Tk widget to a vtkKWWidget object. |
|
Query if the widget was created successfully. |
|
Query if the widget is "alive" (i.e. IsCreated()) and has not been deleted as far as Tk is concerned. |
|
Query if the widget is mapped (i.e, on screen) |
|
Set focus to this widget. Reimplemented in vtkKWTkcon. |
|
Set/Get the enabled state. Reimplemented in vtkKWMenu. |
|
Set/Get the enabled state. |
|
Set/Get the enabled state. |
|
Set/Get the enabled state. Reimplemented in vtkPVWindow. |
|
Set/add/remove a binding to a widget. Whenever the 'event' is triggered on the widget, the 'method' is invoked on the 'object' (or called like a regular command if 'object' is NULL) SetBinding will replace any old bindings, whereas AddBinding will add the binding to the list of bindings already defined for that event. RemoveBinding can remove a specific binding or all bindings for an event. |
|
Set/add/remove a binding to a widget. Whenever the 'event' is triggered on the widget, the 'method' is invoked on the 'object' (or called like a regular command if 'object' is NULL) SetBinding will replace any old bindings, whereas AddBinding will add the binding to the list of bindings already defined for that event. RemoveBinding can remove a specific binding or all bindings for an event. |
|
Set/add/remove a binding to a widget. Whenever the 'event' is triggered on the widget, the 'method' is invoked on the 'object' (or called like a regular command if 'object' is NULL) SetBinding will replace any old bindings, whereas AddBinding will add the binding to the list of bindings already defined for that event. RemoveBinding can remove a specific binding or all bindings for an event. |
|
Set/add/remove a binding to a widget. Whenever the 'event' is triggered on the widget, the 'method' is invoked on the 'object' (or called like a regular command if 'object' is NULL) SetBinding will replace any old bindings, whereas AddBinding will add the binding to the list of bindings already defined for that event. RemoveBinding can remove a specific binding or all bindings for an event. |
|
Set/add/remove a binding to a widget. Whenever the 'event' is triggered on the widget, the 'method' is invoked on the 'object' (or called like a regular command if 'object' is NULL) SetBinding will replace any old bindings, whereas AddBinding will add the binding to the list of bindings already defined for that event. RemoveBinding can remove a specific binding or all bindings for an event. |
|
Set/add/remove a binding to a widget. Whenever the 'event' is triggered on the widget, the 'method' is invoked on the 'object' (or called like a regular command if 'object' is NULL) SetBinding will replace any old bindings, whereas AddBinding will add the binding to the list of bindings already defined for that event. RemoveBinding can remove a specific binding or all bindings for an event. |
|
Convenience method to get the parent vtkKWWindowBase for this Widget if there is one. NOTE: this may return NULL if the Widget is not in a window. Reimplemented in vtkKWView. |
|
Query if widget is packed |
|
Query if widget is packed |
|
Unpack widget, unpack siblings (slave's of parent widget), unpack children |
|
Unpack widget, unpack siblings (slave's of parent widget), unpack children |
|
Unpack widget, unpack siblings (slave's of parent widget), unpack children |
|
|
Set the balloon help string or icon for this widget. This will popup a small tooltip window over the widget after some delay. The tooltip settings are common to all widgets within the application and can be accessed by retrieving the balloon help manager using the GetBalloonHelpManager method. In some very specific case, a new tooltip manager can be set specifically for a widget instance. |
|
Set the balloon help string or icon for this widget. This will popup a small tooltip window over the widget after some delay. The tooltip settings are common to all widgets within the application and can be accessed by retrieving the balloon help manager using the GetBalloonHelpManager method. In some very specific case, a new tooltip manager can be set specifically for a widget instance. |
|
Set the balloon help string or icon for this widget. This will popup a small tooltip window over the widget after some delay. The tooltip settings are common to all widgets within the application and can be accessed by retrieving the balloon help manager using the GetBalloonHelpManager method. In some very specific case, a new tooltip manager can be set specifically for a widget instance. |
|
Set/Get the balloon help manager. If the widget has been created, this returns the application balloon help manager. Be aware that changing its settings will affect all widgets. Setting the manager to a different instance allows a widget to use specific balloon help settings (say, a different delay or color) without affecting the other widgets. This has to be done before calling Create(). This is an advanced feature, SetBalloonHelpString or SetBalloonHelpIcon are the only methods that are really needed to setup a proper tooltip 99% of the time. |
|
Set/Get the balloon help manager. If the widget has been created, this returns the application balloon help manager. Be aware that changing its settings will affect all widgets. Setting the manager to a different instance allows a widget to use specific balloon help settings (say, a different delay or color) without affecting the other widgets. This has to be done before calling Create(). This is an advanced feature, SetBalloonHelpString or SetBalloonHelpIcon are the only methods that are really needed to setup a proper tooltip 99% of the time. |
|
Query if there are drag and drop targets between this widget and other widgets. Get the targets. IMPORTANT: the vtkKWDragAndDropTargetSet object is lazy-allocated, i.e. allocated only when it is needed, as GetDragAndDropTargetSet() is called. Therefore, to check if the instance *has* drag and drop targets, use HasDragAndDropTargetSet(), not GetDragAndDropTargetSet(). |
|
Query if there are drag and drop targets between this widget and other widgets. Get the targets. IMPORTANT: the vtkKWDragAndDropTargetSet object is lazy-allocated, i.e. allocated only when it is needed, as GetDragAndDropTargetSet() is called. Therefore, to check if the instance *has* drag and drop targets, use HasDragAndDropTargetSet(), not GetDragAndDropTargetSet(). Reimplemented in vtkKWFrameWithLabel. |
|
Grab the widget (locally) |
|
Grab the widget (locally) |
|
Grab the widget (locally) |
|
|
Override Unregister since widgets have loops. Reimplemented in vtkKWRenderWidget, and vtkKWView. |
|
Get the net reference count of this widget. That is the reference count of this widget minus its children. |
|
Query children from this widget |
|
Query children from this widget |
|
Query children from this widget |
|
Query children from this widget |
|
Query children from this widget |
|
Create a specific Tk widget of type 'type', with optional arguments 'args' and map it to this instance. Use the Create() method to create this widget instance instead, do *not* use the CreateSpecificTkWidget() method unless you are calling from a subclass to implement a specific kind of Tk widget as a vtkKWWidget subclass, or unless you have to map an external pure Tk widget into a vtkKWWidget. This method should be called by all subclasses to ensure that flags are set correctly (typically from the subclass's Create() method). If 'type' is NULL, this method will still perform some checkings and set the proper flags indicating that the widget has been created. It will then be up to the subclass to create the appropriate Tk widget after calling the superclass's Create(). Please do* refrain from using 'args' to pass arbitrary Tk option settings, let the user call SetConfigurationOption() instead, or much better, create C++ methods as front-ends to those settings. For example, the SetBackgroundColor() method can/should be used to set the corresponding -bg Tk option. Ideally, the 'args' parameter should only be used to specify options that can *not* be changed using Tk's 'configure' (i.e. SetConfigurationOptions()), and therefore that have to be passed at widget's creation time. For example the -visual and -class options of the 'toplevel' widget. Return 1 on success, 0 otherwise. |
|
Add/Remove a child to/from this widget |
|
Add/Remove a child to/from this widget |
|
|
|
Convenience function to that propagates the Enabled state of the instance to another subwidget (preferably a sub-widget). It calls SetEnabled(this->GetEnabled()) on the 'widget' parameter |
|
The name of the underlying Tk widget being used. Definition at line 230 of file vtkKWWidget.h. |
|
The parent of the widget Definition at line 233 of file vtkKWWidget.h. |
|
The tooltip associated to the widget, and the balloon help manager Definition at line 237 of file vtkKWWidget.h. |
|
Definition at line 238 of file vtkKWWidget.h. |
|
Definition at line 239 of file vtkKWWidget.h. |
|
PIMPL Encapsulation for STL containers Reimplemented in vtkKWColorPresetSelector, vtkKWMaterialPropertyWidget, vtkKWMultiColumnList, vtkKWNotebook, vtkKWPresetSelector, vtkKWSelectionFrame, vtkKWSelectionFrameLayoutManager, vtkKWText, vtkKWTkcon, vtkKWToolbar, vtkKWToolbarSet, vtkKWWidgetSet, vtkPVActiveTrackSelector, vtkPVAnimationManager, vtkPVInteractorStyleControl, vtkPVVectorEntry, vtkPVXDMFParameters, and vtkXDMFReaderModule. Definition at line 244 of file vtkKWWidget.h. |