{
DtComboBoxWidget combo;
XtPointer data;
- Widget new;
Arg args[1];
/* Get combo-box off list data */
{
DtComboBoxPart *new_p = (DtComboBoxPart*)
&(XmField(new,ipot,DtComboBox,arrow,Widget));
- DtComboBoxPart *cur_p = (DtComboBoxPart*)
- &(XmField(current,ipot,DtComboBox,arrow,Widget));
Boolean label_size_changed = FALSE;
Boolean force_label_string = FALSE;
Arg args[10];
Position root_x, root_y, root_y0;
Arg args[5];
int n;
- XmStringTable list_items;
unsigned char unit_type = XmPIXELS;
/* Resolution Independent Handling */
short center_w;
short center_h;
XPoint points[10];
- short min;
Arg args[3];
GC gc;
Dimension arrow_width, arrow_height;
* the user if they requested it. Our losing-focus callback
* is just a convenience callback, so that the user doesn't
* have to get the text-field first. This make our integration
- * with XDesigner a little easier.
+ * with XDesigner a little easier.d
*/
static void
text_losing_focus_cb( Widget w,
CheckFile(
DtControlGadget g )
{
- Boolean result;
Boolean file_changed;
long file_size = 0;
struct stat stat_buf;
XtAppContext app_context =
XtWidgetToApplicationContext ((Widget) g);
char sTime[128];
- _Xltimeparams localtime_buf;
struct tm *timeptr;
time_t tse;
String s1, s2, s3;
unsigned long tilMidnight;
- Boolean old_format = False;
XtExposeProc expose;
/* Get time string.
{
DtControlGadget request = (DtControlGadget) request_w,
new = (DtControlGadget) new_w;
- XmManagerWidget mw = (XmManagerWidget) XtParent (new);
XtAppContext app_context =
XtWidgetToApplicationContext (new_w);
- String str;
- int file_name_size;
- XrmValue pixVal;
+ String str;
UpdateGCsProc update_gcs;
G_MonitorTimer (new) = 0;
{
- DtControlGadget request_c = (DtControlGadget) request_w,
- current_c = (DtControlGadget) current_w,
+ DtControlGadget current_c = (DtControlGadget) current_w,
new_c = (DtControlGadget) new_w;
#if 0
String file_name = G_FileName (new);
XRectangle clip;
Position p_x, p_y, s_x, s_y;
Dimension width = 0, height = 0;
- unsigned char behavior = G_Behavior (g);
- Position adj_x, adj_y;
Pixmap pix;
Pixmap mask;
int index;
Widget w )
{
DtControlGadget g = (DtControlGadget) w;
- XtAppContext app_context = XtWidgetToApplicationContext (w);
if ((G_NumPushImages (g) > 0) && (G_PushImagePosition (g) == 0))
{
int delay )
{
DtControlGadget g = (DtControlGadget) w;
- XmManagerWidget mw = (XmManagerWidget) XtParent (w);
int i;
- XGCValues values;
- XtGCMask value_mask;
/* Allocate blocks of animation data.
*/
Widget w )
{
DtControlGadget g = (DtControlGadget) w;
- XtAppContext app_context = XtWidgetToApplicationContext (w);
if ((G_NumDropImages (g) > 0) && (G_DropImagePosition (g) == 0))
{
int delay )
{
DtControlGadget g = (DtControlGadget) w;
- XmManagerWidget mw = (XmManagerWidget) XtParent (w);
int i;
- XGCValues values;
- XtGCMask value_mask;
/* Allocate blocks of animation data.
*/
Widget request_w,
Widget new_w )
{
- DtDialogBoxWidget request = (DtDialogBoxWidget) request_w,
- new = (DtDialogBoxWidget) new_w;
- Widget sep;
-
- Arg al[20]; /* arg list */
- register int ac; /* arg count */
+ DtDialogBoxWidget new = (DtDialogBoxWidget) new_w;
XtWidgetProc create_children;
if (M_ButtonCount (new) > 0)
Widget request_w,
Widget new_w )
{
- DtDialogBoxWidget current = (DtDialogBoxWidget) current_w,
- request = (DtDialogBoxWidget) request_w,
- new = (DtDialogBoxWidget) new_w;
-
Boolean redraw_flag = False;
/* Superclass does all the work so far; checks for redisplay, etc.
i;
Boolean min_btns = M_MinimizeButtons (mgr);
Dimension sep_h = 0,
- b_h, offset = OFFSET, pad,
+ offset = OFFSET, pad,
max_w = 0, max_h = 0,
s_t = M_ShadowThickness (mgr);
XtWidgetGeometry request, reply;
XmTextPosition beginInsert,
XmTextPosition endInsert)
{
- char *textData;
DtEditorErrorCode status = DtEDITOR_NULL_ITEM, loadError;
/*
int accessType )
{
struct stat statbuf; /* Information on a file. */
- unsigned short tmpMode;
DtEditorErrorCode error = DtEDITOR_INVALID_FILENAME;
XmTextPosition endReplace )
{
- DtEditorWidget editor = (DtEditorWidget) w;
DtEditorContentRec cr; /* Structure for passing data to widget */
struct stat statbuf; /* Information on a file. */
int file_length; /* Length of file. */
Boolean addNewlines)
{
register XmTextLineTable line_table = widget->text.line_table;
- int last_line_index, currLine, firstLine;
+ int currLine, firstLine;
char *pString, *pCurrChar, *pLastChar;
int numToCopy;
char *buf,
Boolean addNewlines)
{
- XmTextPosition curCharNum;
- DtEditorWidget editor = M_editor(tw);
-
buf = CopySubstring(tw, 0, tw->text.last_position, buf, addNewlines);
return buf;
Boolean markContentsAsSaved )
{
- struct stat statbuf; /* Information on a file. */
FILE *pFile;
DtEditorContentRec cr; /* Structure for retrieving contents of widget */
DtEditorWidget editor = (DtEditorWidget) widget;
Time set_time )
{
XmSourceData data = source->data;
- int i;
Widget widget;
XmTextWidget tw;
DtEditorWidget editor;
- DtEditorSelectCallbackStruct select_cb;
/*
DtDndTransferCallbackStruct *transferInfo =
(DtDndTransferCallbackStruct *) call_data;
- DtEditorWidget editor = (DtEditorWidget) client_data;
transferInfo->status = DtDND_SUCCESS;
String pixmap )
{
- Display * display = XtDisplay(new);
unsigned int int_h, int_w;
Screen *s = XtScreen(new);
Pixmap pm = XmGetPixmap(s, pixmap, G_PixmapForeground(new),
XtPointer clientData,
XtPointer callData )
{
- DtDndDropAnimateCallback call_data = (DtDndDropAnimateCallback) callData;
DtIconGadget g = (DtIconGadget) w;
if (G_DropCallback(g)) {
DtMenuButtonWidget mb = (DtMenuButtonWidget) wid ;
XmRowColumnWidget submenu = (XmRowColumnWidget) MB_SMENU(mb);
Widget shell;
- Display *dpy = XtDisplay(wid);
XtRemoveAllCallbacks ((Widget) mb, DtNcascadingCallback);
Boolean adjustWidth = FALSE;
Boolean adjustHeight = FALSE;
unsigned char rowcol_type = 0;
- Display *dpy = XtDisplay(nw);
Boolean menu_glyph_changed = FALSE;
if (MB_SMENU(new_w) != (Widget)NULL) {
caddr_t client_data,
caddr_t call_data )
{
- Arg al[10]; /* arg list */
DtEditorWidget pPriv = (DtEditorWidget) client_data;
/*
caddr_t client_data,
caddr_t call_data )
{
- XmListCallbackStruct *cb = (XmListCallbackStruct *)call_data;
-
_DtEditorMisspelledSelectCB(w, client_data, call_data );
_DtEditorDialogSearchCB(w, client_data, call_data );
} /* end _DtEditorMisspelledDblClickCB */
{ /* MotifBc */
DtSpinBoxPart *spin_p = (DtSpinBoxPart*)
&(XmField(new,ipot,DtSpinBox,label,Widget));
- Widget parent;
char *widget_name;
Arg args[20];
int n;
{
Dimension available_height, available_width, arrow_width;
/* MotifBc & Resolution Independent */
- Dimension width, height, border_width;
Arg args[3];
unsigned char unit_type = XmPIXELS;
Boolean do_items)
{
XmStringTable table;
- XmFontList font_list;
- Dimension width, height;
- Dimension longest = 0;
- Dimension highest = 0;
int i, base = 1;
if (do_items && spin_p->items) {
DtSpinBoxWidget spin = (DtSpinBoxWidget)client_data;
DtSpinBoxPart *spin_p = (DtSpinBoxPart*)
&(XmField(spin,ipot,DtSpinBox,label,Widget));
- XmArrowButtonCallbackStruct *arrow_data;
- XEvent *last_event = NULL;
- int repeat_delay = RepeatDelay(spin);
Boolean crossed_boundary = FALSE;
int new_position = Position(spin);
float new_current = Current(spin);
DtSpinBoxWidget spin = (DtSpinBoxWidget)spinw;
DtSpinBoxPart *spin_p;
XmString old, new_str, tmp;
- int total_items, i;
+ int total_items;
_DtWidgetToAppContext(spinw);
_DtAppLock(app);
h = M_Height (manager),
s_t = M_ShadowThickness (manager);
- GC top_gc = NULL,
- bottom_gc = NULL,
- fill_gc = NULL;
- Boolean s_out = False,
- s_etched = False;
- Drawable drawable = XtWindow (manager);
Position x = 0,
y = title_height / 2 - s_t / 2;
XtWidgetGeometry *request,
XtWidgetGeometry *reply )
{
- Position x = M_X (manager),
- y = M_Y (manager);
Dimension w = M_Width (manager),
h = M_Height (manager),
- bw = M_BorderWidth (manager),
new_w = 0,
new_h = 0;
- Boolean x_req = request->request_mode & CWX,
- y_req = request->request_mode & CWY,
- width_req = request->request_mode & CWWidth,
- height_req = request->request_mode & CWHeight,
- bw_req = request->request_mode & CWBorderWidth;
+ Boolean width_req = request->request_mode & CWWidth,
+ height_req = request->request_mode & CWHeight;
/* Compute preferred size if preferred width or height requested.
*/
XtWidgetGeometry *reply )
{
DtTitleBoxWidget manager = (DtTitleBoxWidget) XtParent (kid);
- Widget title_area = M_TitleArea (manager),
- work_area = M_WorkArea (manager);
+ Widget title_area = M_TitleArea (manager);
Dimension ta_w = 0, ta_h = 0, ta_bw = 0,
wa_w = 0, wa_h = 0,
w = M_Width (manager),
- h = M_Height (manager),
- sp = M_TitleSpacing (manager);
+ h = M_Height (manager);
Boolean query_only = request->request_mode & XtCWQueryOnly,
x_req = request->request_mode & CWX,
y_req = request->request_mode & CWY,
DtTitleBoxWidget w;
XmManagerWidgetClass mc = (XmManagerWidgetClass)
xmManagerWidgetClass;
- unsigned char child_type;
XtWidgetProc insert_child;
_DtProcessLock();