31 #ifdef G4VIS_BUILD_OPENGLXM_DRIVER
36 #include <X11/Intrinsic.h>
37 #include <Xm/ToggleB.h>
41 G4OpenGLXmRadioButton::G4OpenGLXmRadioButton (
const char*
n,
54 G4OpenGLXmRadioButton::~G4OpenGLXmRadioButton ()
57 void G4OpenGLXmRadioButton::SetName (
const char*
n)
60 XmString button_string = XmStringCreateLocalized ((
char*)
name);
61 XtVaSetValues (button,
62 XmNlabelString, button_string,
64 XmStringFree (button_string);
67 const char* G4OpenGLXmRadioButton::GetName ()
72 void G4OpenGLXmRadioButton::AddYourselfTo (G4OpenGLXmVWidgetContainer* container)
75 pView = container->GetView ();
77 parent = container->GetPointerToWidget ();
78 XmString button_string = XmStringCreateLocalized ((
char*)
name);
79 button = XtVaCreateManagedWidget (
name,
80 xmToggleButtonWidgetClass,
83 XmNlabelString, button_string,
84 XmNset, default_button,
90 XtNborderColor, borcol,
95 XtAddCallbacks (button,
99 XmStringFree (button_string);
102 Widget* G4OpenGLXmRadioButton::GetPointerToParent ()
107 Widget* G4OpenGLXmRadioButton::GetPointerToWidget ()