VkMenuAction(3x) VkMenuAction(3x)
VkMenuAction - Class For all menu actions
VkMenuItem : VkComponent : VkCallbackObject
#include <Vk/VkMenuItem.h>
PUBLIC PROTOCOL SUMMARY
Constructor/Destructor
VkMenuAction(const char *name,
XtCallbackProc callback = NULL,
XtPointer clientData = NULL);
VkMenuAction(const char *name,
XtCallbackProc callback,
XtCallbackProc undoCallback,
XtPointer clientData = NULL);
~VkMenuAction();
Manipulating Menu Items
virtual void undo();
Access Functions [Toc] [Back]
virtual const char* className();
virtual VkMenuItemType menuType();
Boolean hasUndo()
The VkMenuAction class represents a user-selectable command in a menu.
Objects of type VkMenuAction can be placed in any VkMenu subclass. The
VkMenuAction adds an XmPushButton widget into its parent menu pane. Like
all VkMenuItems, VkMenuAction objects can be activated, deactivated,
replaced, and so on.
If an action has an undo callback, the object automatically registers
itself with an instance of the VkUndoManager class when the action is
executed. An undo callback can be specified when the object is
instantiated.
FUNCTION DESCRIPTIONS [Toc] [Back] VkMenuAction
VkMenuAction(const char *name,
XtCallbackProc callback = NULL,
XtPointer clientData = NULL);
VkMenuAction(const char *name,
XtCallbackProc callback,
XtCallbackProc undoCallback,
Page 1
VkMenuAction(3x) VkMenuAction(3x)
XtPointer clientData = NULL);
~VkMenuAction
~VkMenuAction();
Construct a VkMenuAction object. No widgets are built in the
constructor.
undo
virtual void undo();
Undo the action associated with this menu item. This function is
normally called by an instance of VkUndoManager. It invokes any undo
callback specified for this item.
className
virtual const char* className();
The class name of this class is "VkMenuAction".
menuType
virtual VkMenuItemType menuType();
Returns an enumeration that identifies the type of this menu object.
The type of VkMenuAction is ACTION.
hasUndo()
Boolean hasUndo()
See VkMenu.
INHERITED MEMBER FUNCTIONS [Toc] [Back] Inherited from VkMenuItem
show(), hide(), manageAll(), ~VkMenuItem(), setLabel(),
setPosition(), activate(), deactivate(), remove(), show(),
isContainer(), _position, _isBuilt, _sensitive, _parentMenu, _label,
_isHidden, _unmanagedWidgets, _numUnmanagedWidgets,
Page 2
VkMenuAction(3x) VkMenuAction(3x)
Inherited from VkComponent [Toc] [Back]
installDestroyHandler(), removeDestroyHandler(), widgetDestroyed(),
setDefaultResources(), getResources(), manage(), unmanage(),
baseWidget(), okToQuit(), _name, _baseWidget, _w, deleteCallback
Inherited from VkCallbackObject [Toc] [Back]
callCallbacks(), addCallback(), removeCallback(),
removeAllCallbacks()
KNOWN DERIVED CLASSES [Toc] [Back] VkMenuConfirmFirstAction, VkMenuActionObject, VkMenuActionWidget,
VkMenuToggle, VkMenuUndoManager
KNOWN CLASSES THAT USE THIS CLASS [Toc] [Back] VkMenu, VkMenuUndoManager
VkMenuItem, VkComponent, VkMenu, VkMenuAction, VkMenuUndoManager
ViewKit Programmer's Guide
The X Window System, DEC Press, Bob Sheifler and Jim Gettys
The X Window System Toolkit, DEC Press, Paul Asente and Ralph Swick
The OSF/Motif Programmers Reference, Prentice Hall, OSF
PPPPaaaaggggeeee 3333 [ Back ]
|