WAITTARGET = .WAIT
#endif /* SunArchitecture */
+XCOMM On Linux once you link against a C++ library the whole program
+XCOMM has to be linked with the C++ linker
+#if defined(LinuxDistribution)
+CCLINK = $(CXX)
+#endif
+
PROGRAMS = dtbuilder
LINTLIBS = $(XINPUTLIB) $(DTHELPLIB) $(DTSVCLIB) $(XMLIB) $(XTOOLLIB) $(XLIB)
/* Window is iconified, unmap it so we can change its
* initial state and remap it as Opened
*/
- ui_win_show(widget, False, NULL);
+ ui_win_show(widget, False, XtGrabNone);
}
else /* Window is already Open */
{
XtPointer call_data
)
{
- ui_win_show(shell, False, NULL);
+ ui_win_show(shell, False, XtGrabNone);
}
static void
)
{
DTB_MODAL_ANSWER op = (DTB_MODAL_ANSWER) client_data;
- DTB_MODAL_ANSWER *answerp = (DTB_MODAL_ANSWER) NULL;
+ DTB_MODAL_ANSWER *answerp = NULL;
XtVaGetValues(widget, XmNuserData, &answerp, NULL);
* Do Apply and pop down dialog
*/
appfw_editor_apply(proj_get_project());
- ui_win_show(AB_appfw_dialog, False, NULL);
+ ui_win_show(AB_appfw_dialog, False, XtGrabNone);
}
}
else
/*
* Pop down dialog if no edits pending
*/
- ui_win_show(AB_appfw_dialog, False, NULL);
+ ui_win_show(AB_appfw_dialog, False, XtGrabNone);
}
/*** DTB_USER_CODE_END
XtVaGetValues(widget, XmNuserData, &dismiss, NULL);
if (dismiss)
- ui_win_show(widget, False, NULL);
+ ui_win_show(widget, False, XtGrabNone);
/*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
XtVaGetValues(widget, XmNuserData, &dismiss, NULL);
if (dismiss)
- ui_win_show(widget, False, NULL);
+ ui_win_show(widget, False, XtGrabNone);
/*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
* No pending changes OR applied existing changes, so just
* dismiss the Attachments Editor
*/
- ui_win_show(AB_attch_ed_dialog, False, NULL);
+ ui_win_show(AB_attch_ed_dialog, False, XtGrabNone);
}
static DTB_MODAL_ANSWER
AttchEditorSettingsRec *ats = &attch_editor_settings_rec;
attch_editor_apply(ats->cur_object);
- ui_win_show(AB_attch_ed_dialog, False, NULL);
+ ui_win_show(AB_attch_ed_dialog, False, XtGrabNone);
/*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
AttchEditorSettingsRec *ats = &attch_editor_settings_rec;
attch_editor_load(ats->cur_object);
- ui_win_show(AB_attch_ed_dialog, False, NULL);
+ ui_win_show(AB_attch_ed_dialog, False, XtGrabNone);
/*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
if (!shell)
return;
- ui_win_show(shell, False, NULL);
+ ui_win_show(shell, False, XtGrabNone);
}
/*
#define BRWS_DASH_WIDTH 3
#define BRWS_NUM_DASHES 3
+#if !defined(linux)
/*
* Somehow the compiler is not picking up strdup()
* from string.h properly...
*/
extern char *strdup();
+#endif
/*
* Misc functions used only in this file
/*** DTB_USER_CODE_START vvv Add C code below vvv ***/
cgenP_apply_propsCB(widget, clientData, callData);
- ui_win_show(dtb_cgen_props_cgen_props_dlg.cgen_props_dlg_shellform,False,NULL);
+ ui_win_show(dtb_cgen_props_cgen_props_dlg.cgen_props_dlg_shellform,False,XtGrabNone);
/*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
}
DtbCgenWinMainwindowInfo cgen_win =
(DtbCgenWinMainwindowInfo)clientData;
- ui_win_show(cgen_win->mainwindow, False, NULL);
+ ui_win_show(cgen_win->mainwindow, False, XtGrabNone);
/*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
{
answer = do_auto_apply(widget, dds->curObj, dds->curObj);
if (answer == DTB_ANSWER_ACTION1)
- ui_win_show(AB_dnd_dialog, False, NULL);
+ ui_win_show(AB_dnd_dialog, False, XtGrabNone);
}
else
{
/* Nope, no pending changes, so just dismiss the Dnd Editor */
- ui_win_show(AB_dnd_dialog, False, NULL);
+ ui_win_show(AB_dnd_dialog, False, XtGrabNone);
}
}
/*** DTB_USER_CODE_START vvv Add C code below vvv ***/
dnd_applyCB(widget, clientData, callData);
- ui_win_show(dtb_dnd_ed_dialog.dialog, False, NULL);
+ ui_win_show(dtb_dnd_ed_dialog.dialog, False, XtGrabNone);
/*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
}
/*** DTB_USER_CODE_START vvv Add C code below vvv ***/
dnd_resetCB(widget, clientData, callData);
- ui_win_show(dtb_dnd_ed_dialog.dialog, False, NULL);
+ ui_win_show(dtb_dnd_ed_dialog.dialog, False, XtGrabNone);
/*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
}
{
answer = do_auto_apply(widget, HelpObj, HelpObj);
if (answer == DTB_ANSWER_ACTION1)
- ui_win_show(AB_help_dialog, False, NULL);
+ ui_win_show(AB_help_dialog, False, XtGrabNone);
}
else
{
/* Nope, no pending changes, so just dismiss the Help Editor */
- ui_win_show(AB_help_dialog, False, NULL);
+ ui_win_show(AB_help_dialog, False, XtGrabNone);
}
}
prop_changebars_cleared(hes->prop_sheet);
/* Dismiss the dialog */
- ui_win_show(AB_help_dialog, False, NULL);
+ ui_win_show(AB_help_dialog, False, XtGrabNone);
/*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
clear_editor_fields();
/* Dismiss the dialog */
- ui_win_show(AB_help_dialog, False, NULL);
+ ui_win_show(AB_help_dialog, False, XtGrabNone);
/*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
* applied successfully. Otherwise, keep it up.
*/
if (ChangesApplied)
- ui_win_show(AB_msgEd_dialog, False, NULL);
+ ui_win_show(AB_msgEd_dialog, False, XtGrabNone);
/*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
}
msg_editor_clear();
/* Dismiss the Message Editor */
- ui_win_show(AB_msgEd_dialog, False, NULL);
+ ui_win_show(AB_msgEd_dialog, False, XtGrabNone);
/*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
}
answer = msgEdP_do_auto_apply(widget, mes->current_obj,
mes->current_obj);
if (answer == DTB_ANSWER_ACTION1)
- ui_win_show(AB_msgEd_dialog, False, NULL);
+ ui_win_show(AB_msgEd_dialog, False, XtGrabNone);
}
else
{
/* No pending changes. Just dismiss the
* Message Editor.
*/
- ui_win_show(AB_msgEd_dialog, False, NULL);
+ ui_win_show(AB_msgEd_dialog, False, XtGrabNone);
}
}
** **
**************************************************************************/
+#if !defined(linux)
extern char *sys_errlist[];
+#endif
static Widget HelpDialog;
static XRectangle *rband_rect = NULL;
static Boolean mselect_adjust = False;
+#if !defined(linux)
extern char *sys_errlist[];
+#endif
char Buf[MAXPATHLEN]; /* Work buffer */
/*************************************************************************
XtPointer call_data
)
{
- ui_win_show(widget, False, NULL);
+ ui_win_show(widget, False, XtGrabNone);
}
static void
** **
**************************************************************************/
+#if !defined(linux)
extern char *sys_errlist[];
+#endif
char Buf[MAXPATHLEN]; /* Work buffer */
/*************************************************************************
** **
**************************************************************************/
+#if !defined(linux)
extern char *sys_errlist[];
+#endif
/*************************************************************************
** **
* answerp, because that will cause ui_popup_modal_prompt() to
* return to the routine which is calling it.
*/
- ui_win_show(widget, False, NULL);
+ ui_win_show(widget, False, XtGrabNone);
*answerp = UI_ANSWER_OK;
}
}
* answerp, because that will cause ui_popup_modal_prompt() to
* return to the routine which is calling it.
*/
- ui_win_show(widget, False, NULL);
+ ui_win_show(widget, False, XtGrabNone);
*answerp = UI_ANSWER_CANCEL;
}
")\n"
"{\n"
" DTB_MODAL_ANSWER op = (DTB_MODAL_ANSWER) client_data;\n"
- " DTB_MODAL_ANSWER *answerp = (DTB_MODAL_ANSWER) NULL;\n"
+ " DTB_MODAL_ANSWER *answerp = NULL;\n"
" \n"
" XtVaGetValues(widget, XmNuserData, &answerp, NULL);\n"
" \n"
typedef struct
{
STRING name; /* name */
- STRING proto; /* prototype */
- STRING def; /* actual code */
+ char proto[512]; /* prototype */
+ char def[4096]; /* actual code */
} LibFuncRec, *LibFunc;