30#ifdef G4VIS_BUILD_OPENGLXM_DRIVER
37#include <Xm/RowColumn.h>
39G4OpenGLXmTopLevelShell::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,
93G4OpenGLXmTopLevelShell::~G4OpenGLXmTopLevelShell ()
95 XtDestroyWidget (toplevel);
98void G4OpenGLXmTopLevelShell::AddChild (G4OpenGLXmVWidgetContainer* container)
100 container->AddYourselfTo (
this);
103void G4OpenGLXmTopLevelShell::Realize ()
105 Cardinal num_children;
106 XtVaGetValues (toplevel,
107 XmNnumChildren, &num_children,
110 XtManageChild (toplevel);
111 XtRealizeWidget (toplevel);
112 XtPopup (toplevel, XtGrabNonexclusive);
115Widget* G4OpenGLXmTopLevelShell::GetPointerToWidget ()
120char* G4OpenGLXmTopLevelShell::GetName ()
const char * name(G4int ptype)