30 #ifdef G4VIS_BUILD_OPENGLXM_DRIVER
37 #include <Xm/RowColumn.h>
39 G4OpenGLXmTopLevelShell::G4OpenGLXmTopLevelShell (G4OpenGLXmViewer*
v,
45 toplevel = XtVaCreatePopupShell
47 topLevelShellWidgetClass,
52 XmNdeleteResponse, XmDO_NOTHING,
53 XmNisHomogeneous, False,
58 XtNborderColor, borcol,
62 frame = XtVaCreateManagedWidget (
name,
69 XtNborderColor, borcol,
76 top_box = XtVaCreateManagedWidget (
name,
77 xmRowColumnWidgetClass,
80 XmNadjustMargin, True,
81 XmNisHomogeneous, False,
86 XtNborderColor, borcol,
93 G4OpenGLXmTopLevelShell::~G4OpenGLXmTopLevelShell ()
95 XtDestroyWidget (toplevel);
98 void G4OpenGLXmTopLevelShell::AddChild (G4OpenGLXmVWidgetContainer* container)
100 container->AddYourselfTo (
this);
103 void G4OpenGLXmTopLevelShell::Realize ()
105 Cardinal num_children;
106 XtVaGetValues (toplevel,
107 XmNnumChildren, &num_children,
110 XtManageChild (toplevel);
111 XtRealizeWidget (toplevel);
112 XtPopup (toplevel, XtGrabNonexclusive);
115 Widget* G4OpenGLXmTopLevelShell::GetPointerToWidget ()
120 char* G4OpenGLXmTopLevelShell::GetName ()