예제 #1
0
//
// Create the palette widgets
//
PalMotif::PalMotif(
	void *pal_parent_ctx,
	Widget	pal_parent_wid,
	const char *pal_name,
	ldh_tSesContext pal_ldhses,
	const char *pal_root_name,
	Widget *w,
	pwr_tStatus *status) : 

	Pal( pal_parent_ctx, pal_name, pal_ldhses, pal_root_name, status),
	parent_wid(pal_parent_wid), avoid_deadlock(0)
{
  int i;
  Arg 		args[5];

  form_widget = ScrolledBrowCreate( parent_wid, name, NULL, 0, 
	Pal::init_brow_cb, this, (Widget *)&brow_widget);
  XtManageChild( form_widget);

  i = 0;
  XtSetArg(args[i], XmNborderWidth, 1);i++;
  XtSetValues( form_widget, args,i);
  set_inputfocus(0);

  *w = form_widget;
  *status = 1;
}
예제 #2
0
//
// Create the navigator widget
//
XNavMotif::XNavMotif( void *xn_parent_ctx,
		      Widget	xn_parent_wid,
		      const char *xn_name,
		      Widget *w,
		      xnav_sStartMenu *root_menu,
		      char *xn_opplace_name,
		      int xn_op_close_button,
		      pwr_tStatus *status) :
  XNav( xn_parent_ctx, xn_name, root_menu, xn_opplace_name, xn_op_close_button, status),
  parent_wid(xn_parent_wid)
{

  form_widget = ScrolledBrowCreate( parent_wid, name, NULL, 0, 
	init_brow_base_cb, this, (Widget *)&brow_widget);
  XtManageChild( form_widget);
  displayed = 1;

  // Create the root item
  *w = form_widget;

  menu_tree_build( root_menu);
  gbl.load_config( this);

  for ( int i = 0; i < XNAV_LOGG_MAX; i++)
    logg[i].init( i, (void *)this);

  wow = new CoWowMotif( parent_wid);
  trace_timerid = wow->timer_new();
  *status = 1;
}
예제 #3
0
//
// Create the navigator widget
//
WdaNavMotif::WdaNavMotif(
    void 		*wa_parent_ctx,
    Widget		wa_parent_wid,
    const char     	*wa_name,
    ldh_tSesContext wa_ldhses,
    pwr_tObjid 	wa_objid,
    pwr_tClassId 	wa_classid,
    char            *wa_attribute,
    int 		wa_editmode,
    int 		wa_advanced_user,
    int		wa_display_objectname,
    wb_eUtility	wa_utility,
    Widget 		*w,
    pwr_tStatus 	*status) :
    WdaNav(wa_parent_ctx,wa_name,wa_ldhses,wa_objid,wa_classid,wa_attribute,wa_editmode,
           wa_advanced_user,wa_display_objectname,wa_utility,status),
    parent_wid(wa_parent_wid)
{
    form_widget = ScrolledBrowCreate( parent_wid, name, NULL, 0,
                                      WdaNav::init_brow_cb, this, (Widget *)&brow_widget);
    XtManageChild( form_widget);

    // Create the root item
    *w = form_widget;

    *status = 1;
}
예제 #4
0
CLogNavMotif::CLogNavMotif( void *clog_parent_ctx,
			    Widget clog_parent_wid,
			    Widget *w) :
  CLogNav( clog_parent_ctx), parent_wid(clog_parent_wid)
{
  form_widget = ScrolledBrowCreate( parent_wid, (char*) "CLogNav", NULL, 0, 
	init_brow_cb, this, (Widget *)&brow_widget);
  XtManageChild( form_widget);

  *w = form_widget;
}
예제 #5
0
EvListMotif::EvListMotif(void* ev_parent_ctx, Widget ev_parent_wid,
    ev_eType ev_type, int ev_size, int ev_eventname_seg, Widget* w)
    : EvList(ev_parent_ctx, ev_type, ev_size, ev_eventname_seg),
      parent_wid(ev_parent_wid)
{
  form_widget = ScrolledBrowCreate(parent_wid, (char*)"EvList", NULL, 0,
      init_brow_cb, this, (Widget*)&brow_widget);
  XtManageChild(form_widget);

  *w = form_widget;
}
예제 #6
0
MsgListMotif::MsgListMotif(
	void *ev_parent_ctx,
	Widget	ev_parent_wid,
	Widget *w) :
  MsgList( ev_parent_ctx), parent_wid(ev_parent_wid)
{
  form_widget = ScrolledBrowCreate( parent_wid, (char *)"MsgList", NULL, 0, 
	MsgList::init_brow_cb, this, (Widget *)&brow_widget);
  XtManageChild( form_widget);

  *w = form_widget;
}
예제 #7
0
//
// Create the navigator widget
//
WPkgNavMotif::WPkgNavMotif(
	void 		*wa_parent_ctx,
	Widget		wa_parent_wid,
	const char     	*wa_name,
	wb_eUtility	wa_utility,
	Widget 		*w,
	pwr_tStatus 	*status) :
	WPkgNav(wa_parent_ctx,wa_name,wa_utility,status), parent_wid(wa_parent_wid)
{
  form_widget = ScrolledBrowCreate( parent_wid, name, NULL, 0, 
	init_brow_cb, this, (Widget *)&brow_widget);
  XtManageChild( form_widget);

  *w = form_widget;
  *status = 1;
}
예제 #8
0
//
// Create the navigator widget
//
SubPaletteMotif::SubPaletteMotif(
	void *xn_parent_ctx,
	Widget	xn_parent_wid,
	const char *xn_name,
	Widget *w,
	pwr_tStatus *status) :
  SubPalette( xn_parent_ctx, xn_name, status),
	parent_wid(xn_parent_wid)
{
  form_widget = ScrolledBrowCreate( parent_wid, name, NULL, 0, 
	SubPalette::init_brow_cb, this, (Widget *)&brow_widget);
  XtManageChild( form_widget);

  // Create the root item
  *w = form_widget;

  *status = 1;
}
//
// Create the navigator widget
//
CoXHelpNavMotif::CoXHelpNavMotif(
	void *xn_parent_ctx,
	Widget	xn_parent_wid,
	char *xn_name,
	xhelp_eUtility xn_utility,
	Widget *w,
	pwr_tStatus *status) :
	CoXHelpNav(xn_parent_ctx,xn_name,xn_utility,status),
	parent_wid(xn_parent_wid)
{
  form_widget = ScrolledBrowCreate( parent_wid, name, NULL, 0, 
	CoXHelpNav::init_brow_base_cb, this, (Widget *)&brow_widget);
  XtManageChild( form_widget);
  displayed = 1;

  *w = form_widget;
  *status = 1;
}
예제 #10
0
//
// Create the navigator widget
//
NavMotif::NavMotif(
	void *nav_parent_ctx,
	Widget	nav_parent_wid,
	const char *nav_name,
	ldh_tSesContext nav_ldhses,
	const char *nav_root_name,
	Widget *w,
	pwr_tStatus *status
	) :
  Nav(nav_parent_ctx,nav_name,nav_ldhses,nav_root_name,status), 
  parent_wid(nav_parent_wid)
{
  form_widget = ScrolledBrowCreate( parent_wid, name, NULL, 0, 
	init_brow_cb, this, (Widget *)&brow_widget);
  XtManageChild( form_widget);

  *w = form_widget;
  *status = 1;
}
예제 #11
0
//
// Create the navigator widget
//
AttrNavMotif::AttrNavMotif(
    void *xn_parent_ctx,
    Widget	xn_parent_wid,
    const char *xn_name,
    attr_sItem  *xn_itemlist,
    int xn_item_cnt,
    Widget *w,
    pwr_tStatus *status) :
    AttrNav( xn_parent_ctx, xn_name, xn_itemlist, xn_item_cnt, status),
    parent_wid(xn_parent_wid), trace_timerid(0)
{
    form_widget = ScrolledBrowCreate( parent_wid, name, NULL, 0,
                                      AttrNav::init_brow_cb, this, (Widget *)&brow_widget);
    XtManageChild( form_widget);

    // Create the root item
    *w = form_widget;

    *status = 1;
}
예제 #12
0
//
// Create the navigator widget
//
WNavMotif::WNavMotif(
    void *xn_parent_ctx,
    Widget	xn_parent_wid,
    const char *xn_name,
    const char *xn_layout,
    Widget *w,
    ldh_tSesContext	xn_ldhses,
    wnav_sStartMenu *root_menu,
    wnav_eWindowType xn_type,
    pwr_tStatus *status) :
    WNav( xn_parent_ctx, xn_name, xn_layout, xn_ldhses, root_menu, xn_type, status),
    parent_wid(xn_parent_wid), deadlock_timerid(0), trace_timerid(0), avoid_deadlock(0)
{
    Arg 		args[5];
    int		i;

    if ( window_type == wnav_eWindowType_No)
        return;

    form_widget = ScrolledBrowCreate( parent_wid, name, NULL, 0,
                                      WNav::init_brow_base_cb, this, (Widget *)&brow_widget);
    XtManageChild( form_widget);

    i = 0;
    XtSetArg(args[i], XmNborderWidth, 1);
    i++;
    XtSetValues( form_widget, args,i);

    // Create the root item
    *w = form_widget;

    CoWowMotif::GetAtoms( form_widget, &graph_atom, &objid_atom, &attrref_atom);
    gbl.load_config( this);

    if ( root_menu && !ldhses)
        menu_tree_build( root_menu);

    wow = new CoWowMotif( parent_wid);

    *status = 1;
}
예제 #13
0
//
// Create the navigator widget
//
GsdAttrNavMotif::GsdAttrNavMotif( void *xn_parent_ctx,
				  Widget xn_parent_wid,
				  char *xn_name,
				  pb_gsd *xn_gsd,
				  int xn_edit_mode,
				  Widget *w,
				  pwr_tStatus *status) :
  GsdAttrNav( xn_parent_ctx, xn_name, xn_gsd, xn_edit_mode, status),
  parent_wid(xn_parent_wid)
{

  form_widget = ScrolledBrowCreate( parent_wid, name, NULL, 0, 
	init_brow_cb, this, (Widget *)&brow_widget);
  XtManageChild( form_widget);

  // Create the root item
  *w = form_widget;

  wow = new CoWowMotif( brow_widget);
  trace_timerid = wow->timer_new();
  *status = 1;
}
예제 #14
0
//
// Create the navigator widget
//
XAttNavMotif::XAttNavMotif(
	void 		*xa_parent_ctx,
	Widget		xa_parent_wid,
	xattnav_eType   xa_type,
	const char     	*xa_name,
	pwr_sAttrRef 	*xa_objar,
	int 		xa_advanced_user,
	void		*xa_userdata,
	Widget 		*w,
	pwr_tStatus 	*status) :
  XAttNav( xa_parent_ctx, xa_type, xa_name, xa_objar, xa_advanced_user, xa_userdata, status),
  parent_wid(xa_parent_wid)
{
  form_widget = ScrolledBrowCreate( parent_wid, name, NULL, 0, 
	init_brow_cb, this, (Widget *)&brow_widget);
  XtManageChild( form_widget);

  // Create the root item
  *w = form_widget;

  wow = new CoWowMotif( form_widget);
  trace_timerid = wow->timer_new();
  *status = 1;
}
예제 #15
0
//
// Create the navigator widget
//
SubGraphsMotif::SubGraphsMotif(
	void *xn_parent_ctx,
	Widget	xn_parent_wid,
	const char *xn_name,
	void *xn_growctx,
	Widget *w,
	pwr_tStatus *status) :
  SubGraphs( xn_parent_ctx, xn_name, xn_growctx, status),
  parent_wid(xn_parent_wid), trace_timerid(0)	
{
  char		uid_filename[120] = "pwr_exe:ge_subgraphs.uid";
  char		*uid_filename_p = uid_filename;
  Arg 		args[20];
  pwr_tStatus	sts;
  char 		title[80];
  int		i;
  MrmHierarchy s_DRMh;
  MrmType dclass;
  char		name[] = "Proview/R Navigator";

  static MrmRegisterArg	reglist[] = {
        {(char*) "subgraphs_ctx", 0 },
	{(char*) "subgraphs_activate_exit",(caddr_t)subgraphs_activate_exit },
	{(char*) "subgraphs_activate_attr",(caddr_t)subgraphs_activate_attr },
	{(char*) "subgraphs_activate_set_extern",(caddr_t)subgraphs_activate_set_extern },
	{(char*) "subgraphs_activate_set_intern",(caddr_t)subgraphs_activate_set_intern },
	{(char*) "subgraphs_activate_help",(caddr_t)subgraphs_activate_help },
	{(char*) "subgraphs_create_sg_form",(caddr_t)subgraphs_create_sg_form }
	};
  static int	reglist_num = (sizeof reglist / sizeof reglist[0]);

  dcli_translate_filename( uid_filename, uid_filename);

  // Create object context
  reglist[0].value = (caddr_t) this;

  // Motif
  MrmInitialize();

  strcpy( title, "Loaded SubGraphs");

  // Save the context structure in the widget
  XtSetArg (args[0], XmNuserData, (XtPointer) this);

  sts = MrmOpenHierarchy( 1, &uid_filename_p, NULL, &s_DRMh);
  if (sts != MrmSUCCESS) printf("can't open %s\n", uid_filename);

  MrmRegisterNames(reglist, reglist_num);

  parent_wid = XtCreatePopupShell(title, 
		topLevelShellWidgetClass, parent_wid, args, 0);

  sts = MrmFetchWidgetOverride( s_DRMh, (char*) "subgraphs_window", parent_wid,
			name, args, 1, &toplevel, &dclass);
  if (sts != MrmSUCCESS)  printf("can't fetch %s\n", name);

  MrmCloseHierarchy(s_DRMh);

  i = 0;
  XtSetArg(args[i],XmNwidth,500);i++;
  XtSetArg(args[i],XmNheight,1200);i++;
  XtSetValues( toplevel ,args,i);
    
  XtManageChild( toplevel);

  strcpy( name, xn_name);

  form_widget = ScrolledBrowCreate( subgraphs_form,
	name, NULL, 0, 
	SubGraphs::init_brow_cb, this, (Widget *)&brow_widget);
  XtManageChild( form_widget);


  XtPopup( parent_wid, XtGrabNone);

  // Create the root item
  *w = toplevel;

  // Connect the window manager close-button to exit
  flow_AddCloseVMProtocolCb( parent_wid, 
	(XtCallbackProc)subgraphs_activate_exit, this);

  *status = 1;
}