FACT++  1.0
Widget create_selection_dialog ( char *  ok,
char *  apply,
char *  cancel,
char *  list,
char *  sel,
long  tag,
int  items 
)

Definition at line 3218 of file didMarkus.c.

References cancel_pop_up(), create_str(), did_default_font, did_small_font, ok_pop_up(), and toplevel_widget.

Referenced by create_client_dialog(), create_node_selection(), create_send_command(), create_server_dialog(), and create_service_selection().

3220 {
3221 Widget sd;
3222 XmString xmOk, xmApply, xmCancel, xmList, xmSelection;
3223 Arg ar[20];
3224 int n;
3225 
3226  xmList = create_str(list);
3227  xmOk = create_str(ok);
3228  xmApply = create_str(apply);
3229  xmCancel = create_str (cancel);
3230  xmSelection = create_str (sel);
3231 
3232  n = 0;
3233  /*
3234  XtSetArg(ar[n],XmNdialogStyle,XmDIALOG_FULL_APPLICATION_MODAL); n++;
3235  XtSetArg(ar[n],XmNmwmFunctions,MWM_FUNC_MOVE); n++;
3236  */
3237  XtSetArg(ar[n],XmNtitle,"Selection"); n++;
3238  XtSetArg(ar[n],XmNlabelFontList, did_default_font); n++;
3239  XtSetArg(ar[n],XmNbuttonFontList, did_default_font); n++;
3240  XtSetArg(ar[n],XmNtextFontList, did_small_font); n++;
3241  XtSetArg(ar[n],XmNborderWidth, 1); n++;
3242  XtSetArg(ar[n],XmNlistLabelString, xmList); n++;
3243  XtSetArg(ar[n],XmNlistVisibleItemCount,items); n++;
3244  if(ok[0])
3245  {
3246  XtSetArg(ar[n],XmNokLabelString, xmOk); n++;
3247  }
3248  if(apply[0])
3249  {
3250  XtSetArg(ar[n],XmNapplyLabelString, xmApply); n++;
3251  }
3252  if(cancel[0])
3253  {
3254  XtSetArg(ar[n],XmNcancelLabelString, xmCancel); n++;
3255  }
3256  if(sel[0])
3257  {
3258  XtSetArg(ar[n],XmNselectionLabelString, xmSelection); n++;
3259  }
3260  sd = XmCreateSelectionDialog ( toplevel_widget, "Selection", ar, n );
3261  XmStringFree(xmList);
3262  XmStringFree(xmOk);
3263  XmStringFree(xmApply);
3264  XmStringFree(xmCancel);
3265  XmStringFree(xmSelection);
3266  if(tag >= 0)
3267  {
3268  XtAddCallback ( sd, XmNcancelCallback,
3269  (XtCallbackProc)cancel_pop_up, (XtPointer)tag );
3270  XtAddCallback ( sd, XmNapplyCallback,
3271  (XtCallbackProc)ok_pop_up, (XtPointer)tag );
3272  XtAddCallback ( sd, XmNokCallback,
3273  (XtCallbackProc)ok_pop_up, (XtPointer)tag );
3274  }
3275  return(sd);
3276 }
void ok_pop_up()
void cancel_pop_up()
static XmFontList did_default_font
Definition: didMarkus.c:40
Widget toplevel_widget
Definition: did.h:39
static XmFontList did_small_font
Definition: didMarkus.c:40
XmString create_str()

+ Here is the call graph for this function:

+ Here is the caller graph for this function: