VkPromptDialog(3x) VkPromptDialog(3x)
VkPromptDialog - A dialog manager for prompt dialogs
VkDialogManager : VkComponent : VkCallbackObject
#include <Vk/VkPromptDialog.h>
PUBLIC PROTOCOL SUMMARY
Constructor/Destructor
VkPromptDialog(const char*);
virtual ~VkPromptDialog(void);
Information [Toc] [Back]
const char* text(void);
Setting Information [Toc] [Back]
void setText(const char *text);
PROTECTED PROTOCOL SUMMARY [Toc] [Back] Protected Data Members
char* _text;
X RESOURCES ASSOCIATED WITH THIS CLASS [Toc] [Back] No new X resources are added by this class.
This class displays a Motif prompt dialog, using the caching facilities
of VkDialogManager class. Applications typically use the globally
available dialog thePromptDialog to post their errors.
FUNCTION DESCRIPTIONS [Toc] [Back] VkPromptDialog()
VkPromptDialog(const char*);
Page 1
VkPromptDialog(3x) VkPromptDialog(3x)
Initialize a VkPromptDialog. VkPromptDialog is not normally
instantiated by applications. Use the globally-instantiated
thePromptDialog instead.
~VkPromptDialog()
virtual ~VkPromptDialog(void);
Free memory used by the VkPromptDialog class. The global instance
should not be deleted.
void setText()
void setText(const char *text);
Sets the initial contents of the text field. This will be the text
that is returned, unless the user edits it.
char* text()
const char* text(void);
Returns the last text the user entered.
DATA MEMBER DESCRIPTIONS [Toc] [Back] char* _text;
char* _text;
Pointer to the last text the user entered.
INHERITED MEMBER FUNCTIONS [Toc] [Back] Inherited from VkDialogManager
_action, _allowMultipleDialogs, _minimizeMultipleDialogs,
_showApply, _showCancel, _showOK,
apply(), cancel(), centerOnScreen(), className(), hide(),
lastPosted(), post(), postAndWait(), postBlocked(), postModal(),
prepost(), prepostCallback, setButtonLabels(), setTitle(),
setUpWindowManagerProperties(), show(), unpost(), unpostAll(),
waitForDialog()
Inherited from VkComponent [Toc] [Back]
_baseWidget, _extension, _name, _w,
afterRealizeHook(), attributeList(), baseWidget(), deleteCallback,
getAttribute(), getResources(), installDestroyHandler(),
Page 2
VkPromptDialog(3x) VkPromptDialog(3x)
isComponent(), loadObject(), manage(), name(), okToQuit(),
realize(), removeDestroyHandler(), setAttribute(),
setDefaultResources(), unmanage(), widgetDestroyed(), Widget()
Inherited from VkCallbackObject [Toc] [Back]
addCallback(), callCallbacks(), cloneCallback(), cloneCallbacks(),
getMethodArgType(), getMethods(), hasCallbacks(), invokeMethod(),
loadObject(), registerLoadedObject(), removeAllCallbacks(),
removeCallback()
VIEWKIT 2.1 CHANGES
In multi-screen enabled applications or components, references to
thePromptDialog will only be valid for the default screen in the
application. The following new function API will return the
VkPromptDialog associated with the appropriate screen and should be used
instead of thePromptDialog;
VkPromptDialog *getAppPromptDialog(VkComponent *comp);
CLASSES USED BY THIS CLASS
VkDialogManager
KNOWN CLASSES THAT USE THIS CLASS [Toc] [Back] VkLicense
VkCallbackObject, VkComponent, VkDialogManager, VkLicense
PPPPaaaaggggeeee 3333 [ Back ]
|