////////////////////////////////////////////////////////////// // // Source file for RmDialog // // This file is generated by RapidApp 1.2 // // This class is a ViewKit VkDialogManager subclass // See the VkDialogManager man page for info on the API // // Restrict changes to those sections between // the "//--- Start/End editable code block" markers // This will allow RapidApp to integrate changes more easily // // This class is a ViewKit user interface "component". // For more information on how ViewKit dialogs are used, see the // "ViewKit Programmers' Manual" // ////////////////////////////////////////////////////////////// #include "RmDialog.h" #include "stdio.h" #include #include // Externally defined classes referenced by this class: #include "RmBD.h" extern void VkUnimplemented ( Widget, const char * ); //---- Start editable code block: headers and declarations //---- End editable code block: headers and declarations RmDialog::RmDialog(Widget parent, const char * name) : VkGenericDialog( name ) { //---- Start editable code block: constructor VkDialogManager::postBlocked(); //---- End editable code block: constructor } Widget RmDialog::createDialog ( Widget parent ) { Widget rmBaseWidget = VkGenericDialog::createDialog ( parent ); _rmBD = new RmBD("rmBD",rmBaseWidget); XtVaSetValues ( _rmBD->baseWidget(), XmNwidth, 347, XmNheight, 38, (XtPointer) NULL ); _rmBD->show(); //---- Start editable code block: createDialog //---- End editable code block: createDialog return (rmBaseWidget); } RmDialog::~RmDialog() { //---- Start editable code block: RmDialog destructor //---- End editable code block: RmDialog destructor } const char *RmDialog::className() { return ("RmDialog"); } Widget RmDialog::prepost ( const char *msg, XtCallbackProc okCB, XtCallbackProc cancelCB, XtCallbackProc applyCB, XtPointer clientData, const char *helpString, VkSimpleWindow *parentWindow) { Widget dialog = VkGenericDialog::prepost ( msg, okCB, cancelCB, applyCB, clientData, helpString, parentWindow); // This function is called each time this dialog is posted. The dialog Widget // is the actual Motif dialog widget being displayed, which may vary from // call to call as opposed to this object, which is the same // unless an application deliberately creates multiple instances //---- Start editable code block: RmDialog prepost //---- End editable code block: RmDialog prepost return dialog; } /////////////////////////////////////////////////////////////// // The following functions are called from the dialog buttons // and routed to the object contained by this dialog class. /////////////////////////////////// void RmDialog::apply ( Widget w, XtPointer callData ) { // Pass this function on to the contained object _rmBD->apply ( w, callData ); } void RmDialog::cancel ( Widget w, XtPointer callData ) { // Pass this function on to the contained object _rmBD->cancel ( w, callData ); // Must also call base class to handle dismissal VkDialogManager::cancel ( w, callData ); } void RmDialog::ok ( Widget w, XtPointer callData ) { // Pass this function on to the contained object _rmBD->ok ( w, callData ); // Must also call base class to handle dismissal VkDialogManager::ok ( w, callData ); } /////////////////////////////////////////////////////////////// // The following functions are static member functions used to // interface with Motif. /////////////////////////////////// //---- Start editable code block: End of generated code //---- End editable code block: End of generated code