示例#1
0
文件: Vendor.c 项目: Distrotech/Xaw3d
static void
XawVendorShellClassInitialize(void)
{
    static XtConvertArgRec screenConvertArg[] = {
        {XtWidgetBaseOffset, (XtPointer) XtOffsetOf(WidgetRec, core.screen),
	     sizeof(Screen *)}
    };
#ifdef XAW_MULTIPLANE_PIXMAPS
    static XtConvertArgRec _XawCvtStrToPix[] = {
	{XtWidgetBaseOffset, (XtPointer)XtOffsetOf(WidgetRec, core.screen),
	     sizeof(Screen *)},
	{XtWidgetBaseOffset, (XtPointer)XtOffsetOf(WidgetRec, core.colormap),
	     sizeof(Colormap)},
	{XtWidgetBaseOffset,
	     (XtPointer)XtOffsetOf(WidgetRec, core.background_pixel),
	     sizeof(Pixel)}
    };
#endif

    XtAddConverter(XtRString, XtRCursor, XmuCvtStringToCursor,
		   screenConvertArg, XtNumber(screenConvertArg));

#ifdef XAW_MULTIPLANE_PIXMAPS
    XtSetTypeConverter(XtRString, XtRBitmap,
		       (XtTypeConverter)_XawCvtStringToPixmap,
		       _XawCvtStrToPix, XtNumber(_XawCvtStrToPix),
		       XtCacheByDisplay, (XtDestructor)NULL);
#else
    XtAddConverter(XtRString, XtRBitmap, XmuCvtStringToBitmap,
		   screenConvertArg, XtNumber(screenConvertArg));
#endif

    XtSetTypeConverter("CompoundText", XtRString, XawCvtCompoundTextToString,
			NULL, 0, XtCacheNone, NULL);
}
示例#2
0
static void XawVendorShellClassInitialize()
{
    static XtConvertArgRec screenConvertArg[] = {
        {XtWidgetBaseOffset, (XtPointer) XtOffsetOf(WidgetRec, core.screen),
	     sizeof(Screen *)}
    };

    XtAddConverter(XtRString, XtRCursor, XmuCvtStringToCursor,      
		   screenConvertArg, XtNumber(screenConvertArg));

    XtAddConverter(XtRString, XtRBitmap, XmuCvtStringToBitmap,
		   screenConvertArg, XtNumber(screenConvertArg));
}
示例#3
0
文件: Vendor.c 项目: mjhsieh/oldstuff
static void _VendorShellClassInitialize()
{
    static XtConvertArgRec screenConvertArg[] = {
        {XtWidgetBaseOffset, (caddr_t) XtOffset(Widget, core.screen),
	     sizeof(Screen *)}
    };

    XtAddConverter("String", "Cursor", XmuCvtStringToCursor,      
		   screenConvertArg, XtNumber(screenConvertArg));

    XtAddConverter("String", "Bitmap", XmuCvtStringToBitmap,
		   screenConvertArg, XtNumber(screenConvertArg));
}
static void ClassInitialize(void) {
  /*************************************************************************
   * ClassInitialize: This method initializes the BarGraph widget class.   *
   *   It registers resource value converter functions with Xt.            *
   *************************************************************************/
    XtAddConverter(XtRString, XcROrient, CvtStringToOrient, NULL, 0);
}
示例#5
0
文件: gui_at_sb.c 项目: 11liju/macvim
    static void
ClassInitialize()
{
    XawInitializeWidgetSet();
    XtAddConverter( XtRString, XtROrientation, XmuCvtStringToOrientation,
	    (XtConvertArgList)NULL, (Cardinal)0 );
}
示例#6
0
文件: Form.c 项目: dimkr/tinyxlib
static void
XawFormClassInitialize(void)
{
    static XtConvertArgRec parentCvtArgs[] = {
	{XtBaseOffset, (XtPointer)XtOffsetOf(WidgetRec, core.parent),
	 sizeof(Widget)}
    };

    char name[12];

    XawInitializeWidgetSet();
    XmuNCopyISOLatin1Lowered(name, XtEchainLeft, sizeof(name));
    QchainLeft = XrmStringToQuark(name);
    XmuNCopyISOLatin1Lowered(name, XtEchainRight, sizeof(name));
    QchainRight = XrmStringToQuark(name);
    XmuNCopyISOLatin1Lowered(name, XtEchainTop, sizeof(name));
    QchainTop = XrmStringToQuark(name);
    XmuNCopyISOLatin1Lowered(name, XtEchainBottom, sizeof(name));
    QchainBottom = XrmStringToQuark(name);
    XmuNCopyISOLatin1Lowered(name, XtErubber, sizeof(name));
    Qrubber = XrmStringToQuark(name);

    XtAddConverter(XtRString, XtREdgeType, _CvtStringToEdgeType, NULL, 0);
    XtSetTypeConverter(XtREdgeType, XtRString, CvtEdgeTypeToString,
		       NULL, 0, XtCacheNone, NULL);
    XtSetTypeConverter(XtRString, XtRWidget, XmuNewCvtStringToWidget,
		       parentCvtArgs, XtNumber(parentCvtArgs), XtCacheNone,
		       NULL);
    XtSetTypeConverter(XtRWidget, XtRString, XmuCvtWidgetToString,
		       NULL, 0, XtCacheNone, NULL);
}
示例#7
0
static void
ClassInitialize()
{
  XawInitializeWidgetSet();
  XtAddConverter( XtRString, XtRAsciiType, CvtStringToAsciiType,
		 NULL, (Cardinal) 0);
}
示例#8
0
static void
ClassInitialize(void)
{
    XawInitializeWidgetSet();
    XtAddConverter(XtRString, XtRGravity, XmuCvtStringToGravity,
		   (XtConvertArgList) NULL, (Cardinal) 0);
}
示例#9
0
文件: SmeBSB.c 项目: aosm/X11libs
/*
 * Function:
 *	XawSmeBSBClassInitialize
 *
 * Description:
 *	Initializes the SmeBSBObject.
 */
static void 
XawSmeBSBClassInitialize(void)
{
    XawInitializeWidgetSet();
    XtAddConverter(XtRString, XtRJustify, XmuCvtStringToJustify, NULL, 0);
    XtSetTypeConverter(XtRJustify, XtRString, XmuCvtJustifyToString,
		       NULL, 0, XtCacheNone, NULL);
}
示例#10
0
static void
ClassInitialize()
{
  XawInitializeWidgetSet();
  XtAddConverter( XtRString, XtRBackingStore, XmuCvtStringToBackingStore,
		 (XtConvertArgList)NULL, (Cardinal)0 );
  XmuAddInitializer( AddPositionAction, NULL);
}
示例#11
0
文件: Tree.c 项目: aosm/X11libs
static void
XawTreeClassInitialize(void)
{
    XawInitializeWidgetSet();
  XtAddConverter(XtRString, XtRGravity, XmuCvtStringToGravity, NULL, 0);
  XtSetTypeConverter(XtRGravity, XtRString, XmuCvtGravityToString,
		     NULL, 0, XtCacheNone, NULL);
}
示例#12
0
文件: Vendor.c 项目: idunham/tinyxlib
static void
XawVendorShellClassInitialize(void)
{
    static XtConvertArgRec screenConvertArg[] = {
        {XtWidgetBaseOffset, (XtPointer) XtOffsetOf(WidgetRec, core.screen),
	     sizeof(Screen *)}
    };

    XtAddConverter(XtRString, XtRCursor, XmuCvtStringToCursor,      
		   screenConvertArg, XtNumber(screenConvertArg));

    XtAddConverter(XtRString, XtRBitmap, XmuCvtStringToBitmap,
		   screenConvertArg, XtNumber(screenConvertArg));

    XtSetTypeConverter("CompoundText", XtRString, XawCvtCompoundTextToString,
			NULL, 0, XtCacheNone, NULL);
}
/*
 * Implementation
 */
static void
XawScrollbarClassInitialize(void)
{
    XawInitializeWidgetSet();
    XtAddConverter(XtRString, XtROrientation, XmuCvtStringToOrientation,
		   NULL, 0);
    XtSetTypeConverter(XtROrientation, XtRString, XmuCvtOrientationToString,
		       NULL, 0, XtCacheNone, NULL);
}
示例#14
0
/*
 * Function:
 *	XawAsciiSrcClassInitialize()
 *
 * Description:
 *	  Initializes the asciiSrcObjectClass and install the converters for
 *	AsciiType <-> String.
 */
static void
XawAsciiSrcClassInitialize(void)
{
    XawInitializeWidgetSet();
    Qstring = XrmPermStringToQuark(XtEstring);
    Qfile = XrmPermStringToQuark(XtEfile);
    XtAddConverter(XtRString, XtRAsciiType, CvtStringToAsciiType, NULL, 0);
    XtSetTypeConverter(XtRAsciiType, XtRString, CvtAsciiTypeToString,
		       NULL, 0, XtCacheNone, NULL);
}
示例#15
0
static void ClassInitialize (void)
{
	int len1 = strlen(default_font_map_1);
	int len2 = strlen(default_font_map_2);
	int len3 = strlen(default_font_map_3);
	char *dfm = XtMalloc(len1 + len2 + len3 + 1);
	char *ptr = dfm;
	strcpy(ptr, default_font_map_1); ptr += len1;
	strcpy(ptr, default_font_map_2); ptr += len2;
	strcpy(ptr, default_font_map_3);
	resources[0].default_addr = dfm;

	XtAddConverter( XtRString, XtRBackingStore, XmuCvtStringToBackingStore,
			NULL, 0 );
}
示例#16
0
文件: Balloon.c 项目: Gilles86/afni
static void
ClassInitialize(void)
{
	static char *corners[] = {"straight", "beveled", "slant", "round"};
	static char *balloons[] = {"square", "shaped"};

#if 0
	XtAddConverter(XmRString, XmRBackingStore, XmuCvtStringToBackingStore,
		NULL, 0);
#endif

	XmRepTypeRegister(XmCCornerStyle, corners, NULL, 4);
	corner_style_repid = XmRepTypeGetId(XmCCornerStyle);

	XmRepTypeRegister(XmCBalloonStyle, balloons, NULL, 2);
	balloon_style_repid = XmRepTypeGetId(XmCBalloonStyle);
}
示例#17
0
文件: Eyes.c 项目: aosm/X11
static void ClassInitialize(void)
{
    XtAddConverter( XtRString, XtRBackingStore, XmuCvtStringToBackingStore,
		    NULL, 0 );
}
示例#18
0
int main (unsigned int argc, char **argv)
{
  process_arguments(argc, argv); /* g_module, db_name side-effected */

#ifdef _DBG_PRINT
  dbrecftos("/tmp/msg");
#endif

  dbproc = mydblogin();		
  if (dbproc == NULL) {
    fprintf(stderr, "Unable to log into DB.  Exiting.\n");
    exit(1);
  }
  initialize_message_system("UTL", dbproc);	/* a lie, but... */
  if(em_initialize_severity_codes(dbproc) == FAILURE)
  {
	fprintf(stderr,"Severity codes initialization failed.  Exiting.\n");
	exit(1);
  }
  if((nmodule_names = initialize_module_names(dbproc, &module_names)) < 0)
  {
	fprintf(stderr,"Module names initialization failed.  Exiting.\n");
	exit(1);
  }
  if (!g_module[0])		/* No module given.  Select "All". */
    strcpy(g_module, ALL);
  else {			/* module name not specified */
    /* 
     * Check if module name given is legal.  
     * If not, issue a message and exit.
     */
    int i;
    for (i = 0; i < nmodule_names; i++)
      if (!strcmp(g_module, module_names[i])) break;
    if (i == nmodule_names) {	/* module not found */
      fprintf(stderr, "Unknown module name '%s.'  Allowed modules are:\n\t", 
	      g_module);
      for (i = 0; i < nmodule_names; i++) 
	if (strcmp(module_names[i], ALL))
	  fprintf(stderr, " %s ", module_names[i]);
      fputc('\n', stderr);
      exit(1);
    }
  }
  XtToolkitInitialize ();
  app_context = XtCreateApplicationContext();
  display = XtOpenDisplay(app_context, NULL, argv[0], "EditMessage",
			   NULL, 0, &argc, argv);
  if (!display) {
    fprintf(stderr, "%s: can't open display, exiting...\n", argv[0]);
    exit (1);
  }
  XmRegisterConverters();
  XtAddConverter (XmRString, XmRUnitType, XmCvtStringToUnitType, NULL, 0);
  create_appShell ( display, argv[0], argc, argv );
  /* Cache the chosen module, for callbacks. 
     We could just use the set_module() callback, but that swaps labels etc.
     and we're cheap. */
  initialize_default_module(g_module);
  XtRealizeWidget(appShell);
  XtAppMainLoop(app_context);
  exit(0);			/* never get here */
}
static void ClassInitialize(void)
{
    XtAddConverter(XtRString, XcROrient, CvtStringToOrient, NULL, 0);
}
示例#20
0
文件: Axes.c 项目: gwowen/seismicunix
/* class functions */
static void ClassInitialize (void)
{
    /* add type converters */
    XtAddConverter(XtRString,XtcwpRAxesGrid, (XtConverter) XtcwpStringToAxesGrid,NULL,0);
    XtAddConverter(XtRString,XtcwpRAxesStyle,(XtConverter) XtcwpStringToAxesStyle,NULL,0);
}
示例#21
0
static void
ClassInitialize(void)
{
    XawInitializeWidgetSet();
    XtAddConverter(XtRString, XtREditMode, CvtStringToEditMode, NULL, 0);
}
示例#22
0
static void ClassInitialize()
{
    XawInitializeWidgetSet();
    XtAddConverter( XtRString, XtRBackingStore, XmuCvtStringToBackingStore,
		    NULL, 0 );
}
示例#23
0
int main (unsigned int argc, char **argv)
{
  FILE *fp;
  
  /* check for existance of ARBOR_GUI_LANGUAGE, exit if absent */
  if (getenv("ARBOR_GUI_LANGUAGE") == NULL)
    {
      printf("Environment variable ARBOR_GUI_LANGUAGE not set.  Exiting...\n");
      exit(1) ;
    }

  /* Add Xt support for i18n: locale */
  XtSetLanguageProc(NULL, NULL, NULL);
  
  XtToolkitInitialize ();
  app_context = XtCreateApplicationContext ();
  display = XtOpenDisplay (app_context, 
			   NULL, 
			   argv[0], 
			   "SysAdmin",
			   NULL, 
			   0, 
			   (int *) &argc, 
			   argv);
  if (!display)
    {
      printf("%s: can't open display, exiting...\n", argv[0]);
      exit (-1);
    }
  
  if ( argc == 2)
    {
      fp = fopen(argv[1],"r");
      if ( fp == (FILE *) NULL)
	{
	  printf ("\007Unable to open password file \"%s\".\n", argv[1]);
	  exit(-1);
	}

      if (fgets(gsSybase_User,80,fp) != NULL)
	gsSybase_User[strlen(gsSybase_User)-1] = 0;
      else
	{
	  printf("\007\nERROR -- Unable to read password file; exiting.") ;
	  exit(1) ;
	}
      if (fgets(gsSybase_Pass,80,fp) != NULL)
	gsSybase_Pass[strlen(gsSybase_Pass)-1] = 0;
      else
	{
	  printf("\007\nERROR -- Unable to read password file; exiting.") ;
	  exit(1) ;
	}

      fclose(fp);
      if ( unlink(argv[1]) )
	{
	  printf("\007WARNING -- Unable to remove password file.\n");
	}
      gintAutoLogin = 1;
    }

  /* Register converters, just in case you are really unlucky !! */
  XmRegisterConverters();
  
  /* String to unit type doesn't get added !! */
  XtAddConverter ( XmRString, XmRUnitType, XmCvtStringToUnitType, NULL, 0 );
  
  strcpy(gstrProcessname, "SysAdmin");
  gLoginMethod1 = GUI_DSQUERY_ONLY;
  create_gCIloginwindow ( display, "SysAdmin", argc, argv );

  XtRealizeWidget (gCIloginwindow);
  XmProcessTraversal(gCIpassword,XmTRAVERSE_CURRENT);
 
  if ( gintAutoLogin )
    {
      XWithdrawWindow(display, XtWindow(gCIloginwindow), 0);
      XmTextSetString(gCIusername,gsSybase_User);
      CI_sybase_login_cb(okloginbtn, NULL, NULL);
    }

  XtAppMainLoop (app_context);

  return(0);
}
示例#24
0
文件: Label.c 项目: TidyHuang/vizgems
static void ClassInitialize()
{
    XawInitializeWidgetSet();
    XtAddConverter( XtRString, XtRJustify, XmuCvtStringToJustify, 
		    (XtConvertArgList)NULL, 0 );
}
示例#25
0
文件: xmcvt.c 项目: juddy/edcde
void
DtkshRegisterNamedIntConverters( void )
{
	XtConvertArgRec args[1];

#define SETARGS(X) args[0].address_mode = XtAddress; args[0].address_id = (caddr_t)&X[0]; args[0].size = sizeof(X);

        /* Special!! Converts string to named value */
	SETARGS(NI_TraversalDirection);
	XtAddConverter(XmRString, "TraversalDirection", 
		DtkshCvtStringToNamedValue, 
		args, 1);
	SETARGS(NI_CommandChild);
	XtAddConverter(XmRString, "CommandChildType", 
		DtkshCvtStringToNamedValue, 
		args, 1);
	SETARGS(NI_MessageBoxChild);
	XtAddConverter(XmRString, "MessageBoxChildType", 
		DtkshCvtStringToNamedValue, 
		args, 1);
	SETARGS(NI_FileSelChild);
	XtAddConverter(XmRString, "FileSelChildType", 
		DtkshCvtStringToNamedValue, 
		args, 1);
	SETARGS(NI_SelBoxChild);
	XtAddConverter(XmRString, "SelBoxChildType", 
		DtkshCvtStringToNamedValue, 
		args, 1);
	SETARGS(NI_QuickHelpChildType);
	XtAddConverter(XmRString, "QuickHelpChildType", 
		DtkshCvtStringToNamedValue, 
		args, 1);
	SETARGS(NI_HelpType);
	XtAddConverter(XmRString, "HelpType", 
		DtkshCvtStringToNamedValue, 
		args, 1);
	SETARGS(NI_HelpScrollBarDisplayPolicy);
	XtAddConverter(XmRString, "HelpScrollBarDisplayPolicy", 
		DtkshCvtStringToNamedValue, 
		args, 1);
	SETARGS(NI_TextHighlightMode);
	XtAddConverter(XmRString, "TextHighlightMode", 
		DtkshCvtStringToNamedValue, 
		args, 1);
	SETARGS(NI_TextSearchDirection);
	XtAddConverter(XmRString, "TextSearchDirection", 
		DtkshCvtStringToNamedValue, 
		args, 1);
	SETARGS(NI_TextFormat);
	XtAddConverter(XmRString, "TextFormat", 
		DtkshCvtStringToNamedValue, 
		args, 1);
	SETARGS(NI_TT_OP);
	XtAddConverter(XmRString, "TtOp", DtkshCvtStringToNamedValue, 
                       args, 1);
	SETARGS(NI_TT_SCOPE);
	XtAddConverter(XmRString, "TtScope", DtkshCvtStringToNamedValue, 
		       args, 1);
	SETARGS(NI_TT_STATUS);
	XtAddConverter(XmRString, "TtStatus", DtkshCvtStringToNamedValue, 
		       args, 1);
	SETARGS(NI_TEAR_OFF);
	XtAddConverter(XmRString, XmRTearOffModel, DtkshCvtStringToNamedValue, 
		       args, 1);
	SETARGS(NI_WIN_GRAVITY);
	XtAddConverter(XmRString, "XWinGravity", DtkshCvtStringToNamedValue, 
		       args, 1);
	SETARGS(NI_MWMInputMode);
	XtAddConverter(XmRString, "MWMInputMode", DtkshCvtStringToNamedValue, 
		       args, 1);

        /* The rest of these convert named values into strings */
	SETARGS(NI_ArrowDirection);
	XtAddConverter(XmRArrowDirection, XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_MultiClick);
	XtAddConverter(XmRMultiClick, XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_DialogStyle);
	XtAddConverter(XmRDialogStyle, XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_MWMInputMode);
	XtAddConverter("MWMInputMode", XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_ResizePolicy);
	XtAddConverter(XmRResizePolicy, XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_FileTypeMask);
	XtAddConverter(XmRFileTypeMask, XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_ShadowType);
	XtAddConverter(XmRShadowType, XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_Attachment);
	XtAddConverter(XmRAttachment, XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_ChildType);
	XtAddConverter(XmRChildType, XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_Alignment);
	XtAddConverter(XmRChildHorizontalAlignment, XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_ChildVerticalAlignment);
	XtAddConverter(XmRChildVerticalAlignment, XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_UnitType);
	XtAddConverter(XmRUnitType, XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_NavigationType);
	XtAddConverter(XmRNavigationType, XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_Alignment);
	XtAddConverter(XmRAlignment, XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_LabelType);
	XtAddConverter(XmRLabelType, XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_StringDirection);
	XtAddConverter(XmRStringDirection, XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_SelectionPolicy);
	XtAddConverter(XmRSelectionPolicy, XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_ScrollBarPlacement);
	XtAddConverter(XmRScrollBarPlacement, XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_ScrollBarDisplayPolicy);
	XtAddConverter(XmRScrollBarDisplayPolicy, XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_ScrollingPolicy);
	XtAddConverter(XmRScrollingPolicy, XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_VisualPolicy);
	XtAddConverter(XmRVisualPolicy, XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_ListSizePolicy);
	XtAddConverter(XmRListSizePolicy, XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_EditMode);
	XtAddConverter(XmREditMode, XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_CommandWindowLocation);
	XtAddConverter(XmRCommandWindowLocation, XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_DefaultButtonType);
	XtAddConverter(XmRDefaultButtonType, XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_DialogType);
	XtAddConverter(XmRDialogType, XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_EntryVerticalAlignment);
	XtAddConverter(XmRVerticalAlignment, XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_Orientation);
	XtAddConverter(XmROrientation, XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_Packing);
	XtAddConverter(XmRPacking, XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_RowColumnType);
	XtAddConverter(XmRRowColumnType, XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_ProcessingDirection);
	XtAddConverter(XmRProcessingDirection, XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_ChildPlacement);
	XtAddConverter(XmRChildPlacement, XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_SelectionDialogType);
	XtAddConverter(XmRSelectionType, XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_SeparatorType);
	XtAddConverter(XmRSeparatorType, XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_IndicatorType);
	XtAddConverter(XmRIndicatorType, XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_AudibleWarning);
	XtAddConverter(XmRAudibleWarning, XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_DeleteResponse);
	XtAddConverter(XmRDeleteResponse, XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_KeyboardFocusPolicy);
	XtAddConverter(XmRKeyboardFocusPolicy, XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_InitialState);
	XtAddConverter(XmRInitialState, XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_HelpReturnSelectedWidgetResultType);
	XtAddConverter("HelpReturnSelectedWidgetResultType", XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_HelpType);
	XtAddConverter("HelpType", XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_HelpScrollBarDisplayPolicy);
	XtAddConverter("HelpScrollBarDisplayPolicy", XtRString, 
		DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_Button);
	XtAddConverter("XE_Button", XtRString, 
                DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_EventType);
	XtAddConverter("XE_EventType", XtRString, 
                DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_XBool);
	XtAddConverter("X_Bool", XtRString, 
                DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_TraversalDirection);
	XtAddConverter("TraversalDirection", XtRString, 
                DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_VisibilityType);
	XtAddConverter("VisibilityType", XtRString,
                DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_ListSelectionType);
	XtAddConverter("ListSelectionType", XtRString, 
                DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_TextFormat);
	XtAddConverter("TextFormat", XtRString, 
                DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_HelpHyperType);
	XtAddConverter("HelpHyperType", XtRString, 
                DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_TT_STATUS);
	XtAddConverter("TtStatus", XtRString, DtkshCvtNamedValueToString, 
		        args, 1);
	SETARGS(NI_TT_OP);
	XtAddConverter("TtOp", XtRString, DtkshCvtNamedValueToString, args, 1);
	SETARGS(NI_TEAR_OFF);
	XtAddConverter(XmRTearOffModel, XtRString, DtkshCvtNamedValueToString, 
		args, 1);
	SETARGS(NI_WIN_GRAVITY);
	XtAddConverter("XWinGravity", XtRString, DtkshCvtNamedValueToString, 
		args, 1);
}