30#ifdef G4VIS_BUILD_OPENGLXM_DRIVER
35#include <X11/Intrinsic.h>
40G4OpenGLXmPushButton::G4OpenGLXmPushButton (
const char* n,
49G4OpenGLXmPushButton::~G4OpenGLXmPushButton ()
52void G4OpenGLXmPushButton::SetName (
const char* n)
55 XmString button_string = XmStringCreateLocalized ((
char*)name);
56 XtVaSetValues (button,
57 XmNlabelString, button_string,
59 XmStringFree (button_string);
62const char* G4OpenGLXmPushButton::GetName ()
67void 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);
98Widget* G4OpenGLXmPushButton::GetPointerToParent ()
103Widget* G4OpenGLXmPushButton::GetPointerToWidget ()
const char * name(G4int ptype)