30 #ifdef G4VIS_BUILD_OPENGLXM_DRIVER
35 #include <X11/Intrinsic.h>
40 G4OpenGLXmPushButton::G4OpenGLXmPushButton (
const char*
n,
49 G4OpenGLXmPushButton::~G4OpenGLXmPushButton ()
52 void G4OpenGLXmPushButton::SetName (
const char*
n)
55 XmString button_string = XmStringCreateLocalized ((
char*)
name);
56 XtVaSetValues (button,
57 XmNlabelString, button_string,
59 XmStringFree (button_string);
62 const char* G4OpenGLXmPushButton::GetName ()
67 void G4OpenGLXmPushButton::AddYourselfTo (G4OpenGLXmVWidgetContainer* container)
70 pView = container->GetView ();
72 parent = container->GetPointerToWidget ();
74 XmString button_str = XmStringCreateLocalized ((
char*)
name);
75 button = XtVaCreateManagedWidget
77 xmPushButtonWidgetClass,
79 XmNlabelString, button_str,
80 XmNalignment, XmALIGNMENT_CENTER,
86 XtNborderColor, borcol,
91 XtAddCallbacks (button,
95 XmStringFree (button_str);
98 Widget* G4OpenGLXmPushButton::GetPointerToParent ()
103 Widget* G4OpenGLXmPushButton::GetPointerToWidget ()