Exemplo n.º 1
0
/*-------------------------------------------------------------------------*/
void QmonRegisterWidgets(void)
{
   QmonInitQuarks();   /* initialize the quarks */
   RegisterDerivedConstructor("XmtInputField", "InputField",
                                 (XmtWidgetConstructor)CreateInputField);
   XmtRegisterWidgetTypes(widgets, XtNumber(widgets));
}
Exemplo n.º 2
0
void XmtRegisterMotifWidgets()
#endif
{
    XmtRegisterWidgetTypes(motif_widgets, XtNumber(motif_widgets));
    XmtRegisterXmText();
    XmtRegisterXmScrolledText();
    XmtRegisterXmTextField();
    XmtRegisterXmToggleButton();
    XmtRegisterXmScale();
#if XmVersion >= 2000
    XmtRegisterXmComboBox();
#endif
#if XmVersion == 2000
    XmtRegisterXmCSText();
    XmtRegisterXmScrolledCSText();
#endif
}
Exemplo n.º 3
0
/*-------------------------------------------------------------------------*/
static void RegisterDerivedConstructor(
String parent_name, 
String name,
XmtWidgetConstructor constructor 
) {
   XmtWidgetType *parent_type;
   XmtWidgetType *type;

   parent_type = XmtLookupWidgetType(parent_name);

   if (!parent_type)
      return;

   type = XtNew(XmtWidgetType);  /* never free'd */
   type->name = name;
   type->wclass = NULL;
   type->constructor = constructor;
   type->set_value_proc = parent_type->set_value_proc;
   type->get_value_proc = parent_type->get_value_proc;
   type->popup = parent_type->popup;

   XmtRegisterWidgetTypes(type, 1);

}
Exemplo n.º 4
0
/*-------------------------------------------------------------------------*/
void QmonRegisterMatrixWidgets(void)
{
   QmonInitQuarks();   /* initialize the quarks */
   XmtRegisterWidgetTypes(widgets, XtNumber(widgets));
}