FACT++  1.0
Widget create_service_dialog ( )

Definition at line 3368 of file didMarkus.c.

References create_label(), create_push_button(), create_str(), Curr_service_print_type, DID_SERVICE, did_small_font, MAX_POP_UPS, Subscribe10Button, SubscribeButton, and toplevel_widget.

Referenced by put_selection().

3369 {
3370 Widget fd, rc, sw, lb, rc1;
3371 XmString xm1;
3372 Arg ar[20];
3373 int n, par;
3374 unsigned long reason;
3375 
3376  n = 0;
3377  XtSetArg(ar[n],XmNborderWidth, 1); n++;
3378  XtSetArg(ar[n],XmNresizePolicy, XmRESIZE_ANY); n++;
3379  fd = XmCreateFormDialog ( toplevel_widget, "Form", ar, n );
3380  XtManageChild(fd);
3381 
3382  /* create rowcolumn */
3383  n = 0;
3384  XtSetArg(ar[n],XmNborderWidth, 1); n++;
3385  XtSetArg(ar[n],XmNentryAlignment, XmALIGNMENT_CENTER); n++;
3386  XtSetArg(ar[n],XmNbottomAttachment, XmATTACH_FORM); n++;
3387  XtSetArg(ar[n],XmNbottomOffset, 0); n++;
3388  XtSetArg(ar[n],XmNrightAttachment, XmATTACH_FORM); n++;
3389  XtSetArg(ar[n],XmNrightOffset, 0); n++;
3390  XtSetArg(ar[n],XmNtopAttachment, XmATTACH_FORM); n++;
3391  XtSetArg(ar[n],XmNtopOffset, 0); n++;
3392  XtSetArg(ar[n],XmNleftAttachment, XmATTACH_FORM); n++;
3393  XtSetArg(ar[n],XmNleftOffset, 0); n++;
3394  rc = XmCreateRowColumn ( fd, "rowcol", ar, n );
3395  XtManageChild(rc);
3396 
3397  /* create scrolled window */
3398  n = 0;
3399  XtSetArg ( ar[n], XmNwidth, 770); n++;
3400  XtSetArg ( ar[n], XmNheight, 350); n++;
3401  XtSetArg ( ar[n], XmNscrollBarDisplayPolicy, XmAS_NEEDED); n++;
3402  XtSetArg ( ar[n], XmNscrollingPolicy, XmAUTOMATIC); n++;
3403 
3404  sw = XmCreateScrolledWindow ( rc, "ScrollWin", ar, n );
3405  XtManageChild ( sw );
3406 
3407  /* create label */
3408  n = 0;
3409  xm1 = create_str(" ");
3410  XtSetArg(ar[n],XmNfontList, did_small_font); n++;
3411  XtSetArg(ar[n],XmNlabelString, xm1); n++;
3412  XtSetArg(ar[n],XmNalignment, XmALIGNMENT_BEGINNING); n++;
3413  lb = XmCreateLabel ( sw, "label", ar, n );
3414  XtManageChild(lb);
3415  XmStringFree(xm1);
3416  par = 1;
3417  reason = 0;
3418  create_label(lb, &par, &reason);
3419 
3420  /* create button rowcolumn */
3421  n = 0;
3422  XtSetArg(ar[n],XmNborderWidth, 0); n++;
3423  XtSetArg(ar[n],XmNentryAlignment, XmALIGNMENT_CENTER); n++;
3424  XtSetArg(ar[n],XmNorientation, XmVERTICAL); n++;
3425  XtSetArg(ar[n],XmNnumColumns, 3); n++;
3426  XtSetArg(ar[n],XmNpacking, XmPACK_COLUMN); n++;
3427  rc1 = XmCreateRowColumn ( rc, "buttons", ar, n );
3428  XtManageChild(rc1);
3429  /*
3430  create_push_button(rc1,"View Standard",MAX_POP_UPS+1);
3431  create_push_button(rc1,"View Float",MAX_POP_UPS+2);
3432  create_push_button(rc1,"View Double",MAX_POP_UPS+3);
3433  */
3434  SubscribeButton = create_push_button(rc1," Subscribe (On Change) ",
3435  MAX_POP_UPS+5);
3436  Subscribe10Button = create_push_button(rc1," Subscribe (Update Rate 10 seconds) ",
3437  MAX_POP_UPS+4);
3438  create_push_button(rc1,"Dismiss",DID_SERVICE);
3440 
3441  return(fd);
3442 }
Widget Subscribe10Button
Definition: didMarkus.c:32
int Curr_service_print_type
Definition: didMarkus.c:14
Widget SubscribeButton
Definition: didMarkus.c:31
void create_label()
Widget create_push_button(Widget parent, char *str, long tag)
Definition: didMarkus.c:3444
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: