31 #ifdef G4VIS_BUILD_OPENGLXM_DRIVER
36 #include <X11/Intrinsic.h>
37 #include <Xm/ToggleB.h>
41 G4OpenGLXmRadioButton::G4OpenGLXmRadioButton (
const char*
n,
52 G4OpenGLXmRadioButton::~G4OpenGLXmRadioButton ()
55 void G4OpenGLXmRadioButton::SetName (
const char*
n)
58 XmString button_string = XmStringCreateLocalized ((
char*)
name);
59 XtVaSetValues (button,
60 XmNlabelString, button_string,
62 XmStringFree (button_string);
65 const char* G4OpenGLXmRadioButton::GetName ()
70 void G4OpenGLXmRadioButton::AddYourselfTo (G4OpenGLXmVWidgetContainer* container)
73 pView = container->GetView ();
75 parent = container->GetPointerToWidget ();
76 XmString button_string = XmStringCreateLocalized ((
char*)
name);
77 button = XtVaCreateManagedWidget (
name,
78 xmToggleButtonWidgetClass,
81 XmNlabelString, button_string,
82 XmNset, default_button,
88 XtNborderColor, borcol,
93 XtAddCallbacks (button,
97 XmStringFree (button_string);
100 Widget* G4OpenGLXmRadioButton::GetPointerToParent ()
105 Widget* G4OpenGLXmRadioButton::GetPointerToWidget ()