199 lines
5.8 KiB
C
199 lines
5.8 KiB
C
|
|
/////////////////////////////////////////////////////////////
|
|
//
|
|
// Source file for RmBD
|
|
//
|
|
// This file is generated by RapidApp 1.2
|
|
//
|
|
// This class is derived from RmBDUI which
|
|
// implements the user interface created in
|
|
// RapidApp. This class contains virtual
|
|
// functions that are called from the user interface.
|
|
//
|
|
// When you modify this source, limit your changes to
|
|
// modifying the 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 components are used, see the
|
|
// "ViewKit Programmers' Manual", and the RapidApp
|
|
// User's Guide.
|
|
/////////////////////////////////////////////////////////////
|
|
|
|
#include "RmBD.h"
|
|
#include "RestartUI.h"
|
|
#include <Vk/VkEZ.h>
|
|
#include <Xm/BulletinB.h>
|
|
#include <Xm/Label.h>
|
|
#include <Vk/VkResource.h>
|
|
#include <Vk/VkDialogManager.h>
|
|
|
|
|
|
extern void VkUnimplemented ( Widget, const char * );
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
// The following non-container elements are created by RmBDUI and are
|
|
// available as protected data members inherited by this class
|
|
//
|
|
// XmLabel _rmlabel
|
|
//
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
//---- Start editable code block: headers and declarations
|
|
|
|
//---- End editable code block: headers and declarations
|
|
|
|
//---- RmBD Constructor
|
|
|
|
RmBD::RmBD(const char *name, Widget parent) :
|
|
RmBDUI(name, parent)
|
|
{
|
|
// This constructor calls RmBDUI(parent, name)
|
|
// which calls RmBDUI::create() to create
|
|
// the widgets for this component. Any code added here
|
|
// is called after the component's interface has been built
|
|
|
|
//---- Start editable code block: RmBD constructor
|
|
|
|
//---- End editable code block: RmBD constructor
|
|
} // End Constructor
|
|
|
|
RmBD::RmBD(const char *name) :
|
|
RmBDUI(name)
|
|
{
|
|
// This constructor calls RmBDUI(name)
|
|
// which does not create any widgets. Usually, this
|
|
// constructor is not used
|
|
|
|
//---- Start editable code block: RmBD constructor 2
|
|
|
|
//---- End editable code block: RmBD constructor 2
|
|
} // End Constructor
|
|
|
|
RmBD::~RmBD()
|
|
{
|
|
// The base class destructors are responsible for
|
|
// destroying all widgets and objects used in this component.
|
|
// Only additional items created directly in this class
|
|
// need to be freed here.
|
|
|
|
//---- Start editable code block: RmBD destructor
|
|
|
|
//---- End editable code block: RmBD destructor
|
|
} // End Destructor
|
|
|
|
|
|
const char * RmBD::className() // classname
|
|
{
|
|
return ("RmBD");
|
|
} // End className()
|
|
|
|
|
|
void RmBD::apply( Widget w, XtPointer callData )
|
|
{
|
|
//---- Start editable code block: RmBD apply
|
|
//--- Comment out this line when this function is implemented:
|
|
::VkUnimplemented ( NULL, "RmBD::apply" );
|
|
|
|
//---- End editable code block: RmBD apply
|
|
} // End RmBD::apply()
|
|
|
|
|
|
void RmBD::cancel( Widget w, XtPointer callData )
|
|
{
|
|
//---- Start editable code block: RmBD cancel
|
|
|
|
//---- End editable code block: RmBD cancel
|
|
} // End RmBD::cancel()
|
|
|
|
|
|
void RmBD::ok( Widget w, XtPointer callData )
|
|
{
|
|
//---- Start editable code block: RmBD ok
|
|
|
|
RestFlags |= CKPT_CONFIRM_REMOVE;
|
|
|
|
//---- End editable code block: RmBD ok
|
|
} // End RmBD::ok()
|
|
|
|
///////////////////////////////////////////////////////////////////
|
|
// static creation function, for importing class into rapidapp
|
|
// or dynamically loading, using VkComponent::loadComponent
|
|
///////////////////////////////////////////////////////////////////
|
|
|
|
VkComponent *RmBD::CreateRmBD( const char *name, Widget parent )
|
|
{
|
|
VkComponent *obj = new RmBD ( name, parent );
|
|
return ( obj );
|
|
} // End CreateRmBD
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////
|
|
// Function for accessing a description of the dynamic interface
|
|
// to this class.
|
|
///////////////////////////////////////////////////////////////////
|
|
|
|
|
|
// WARNING: This structure is different than that used with 1.1 RapidApp.
|
|
// See the RapidApp release notes for details
|
|
|
|
struct InterfaceMap {
|
|
char *resourceName;
|
|
char *methodName;
|
|
char *argType;
|
|
char *definingClass; // Optional, if not this class
|
|
void (VkCallbackObject::*method)(...); // Reserved, do not set
|
|
};
|
|
|
|
|
|
void *RmBD::RegisterRmBDInterface()
|
|
{
|
|
// This structure registers information about this class
|
|
// that allows RapidApp to create and manipulate an instance.
|
|
// Each entry provides a resource name that will appear in the
|
|
// resource manager palette when an instance of this class is
|
|
// selected, the name of the member function as a string,
|
|
// the type of the single argument to this function, and an.
|
|
// optional argument indicating the class that defines this function.
|
|
// All member functions must have the form
|
|
//
|
|
// void memberFunction ( Type );
|
|
//
|
|
// where "Type" is one of:
|
|
// const char * (Use XmRString)
|
|
// Boolean (Use XmRBoolean)
|
|
// int (Use XmRInt)
|
|
// float (Use XmRFloat)
|
|
// No argument (Use VkRNoArg or "NoArg"
|
|
// A filename (Use VkRFilename or "Filename")
|
|
// An enumeration (Use "Enumeration:ClassName:Type: VALUE1, VALUE2, VALUE3")
|
|
// A callback (Use XmRCallback)
|
|
|
|
|
|
static InterfaceMap map[] = {
|
|
//---- Start editable code block: RmBDUI resource table
|
|
|
|
// { "resourceName", "setAttribute", XmRString},
|
|
//---- End editable code block: RmBDUI resource table
|
|
{ NULL }, // MUST be NULL terminated
|
|
};
|
|
|
|
return map;
|
|
} // End RegisterRmBDInterface()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//---- End of generated code
|
|
|
|
//---- Start editable code block: End of generated code
|
|
|
|
|
|
//---- End editable code block: End of generated code
|
|
|
|
|