home *** CD-ROM | disk | FTP | other *** search
-
- //////////////////////////////////////////////////////////////////////
- // iglrduck.C
- //
- // This is a subclass of VkApp generated by RapidApp
- //
- // This class instantiates all window classes and serves as a
- // central focal point for application-wide data and services
- //
- //////////////////////////////////////////////////////////////////////
- #include "glrduck.h"
- #include "glrduckMainWindow.h"
-
-
- //---- Start editable code block: headers and declarations
-
-
- //---- End editable code block: headers and declarations
-
-
- // Describe how to parse command line arguments. Edit to add
- // arguments as demonstrated by the entry in comments. See the
- // man page for XrmOptionDescRec for syntax and details
-
- XrmOptionDescRec glrduck::cmdLineOptions[] = {
- {
-
- //---- Start editable code block: option description
-
- // "-flag", "*resourceName", XrmoptionNoArg, "TRUE",
-
- //---- End editable code block: option description
-
- },
- };
-
-
- // Describe any resources to be retrieved and used to initialize data
- // members. Edit to add arguments as demonstrated by the entry in comments.
- // See the ViewKit Programmer's Guide for details
-
- XtResource glrduck::_resources [] = {
- {
-
- //---- Start editable code block: resource description
-
- // "resourceName",
- // "resourceClass",
- // XmRBoolean, // Example type
- // sizeof ( Boolean ), // Example type size
- // XtOffset ( glrduck*, _dataMember ), // Example data member
- // XmRString, // Type of default value
- // (XtPointer) "FALSE", // Example default value
-
- //---- End editable code block: resource description
-
- },
- };
-
-
- ///////////
- // glrduck constructor
- //
- // The constructor just parses command line options and initializes
- // data members from the resource data base. Add any other initialization
- // at the end.
-
- glrduck::glrduck ( char *appClassName,
- int *arg_c,
- char **arg_v,
- XrmOptionDescRec *optionList,
- int sizeOfOptionList) :
- VkApp(appClassName, arg_c, arg_v, optionList, sizeOfOptionList)
- {
- // Parse any command line arguments
-
- *arg_c = parseCommandLine(cmdLineOptions, XtNumber(cmdLineOptions));
-
- // Retrieve resources to initialize class data members
-
- getResources ( _resources, XtNumber(_resources) );
-
-
- //---- Start editable code block: constructor
-
-
- //---- End editable code block: constructor
-
-
- } // End glrduck constructor
-
-
-
-
- // glrduck destructor
-
- glrduck::~glrduck()
- {
-
- //---- Start editable code block: destructor
-
-
- //---- End editable code block: destructor
-
-
- } // End glrduck destructor
-
-
-
-
- ///////////
- // createWindows()
- //
- // The createWindows() member function instantiates the application's
- // top-level windows. This function is called from main()
-
-
- void glrduck::createWindows()
- {
- _vkwindow = new glrduckMainWindow( "igrlduckwindow" );
- _vkwindow->show();
-
-
- //---- Start editable code block: createWindows
-
-
- //---- End editable code block: createWindows
-
-
-
- } // End glrduck::createWindows
-
-
- //---- Start editable code block: End of generated code
-
-
- //---- End editable code block: End of generated code
-
-
-