30 #ifdef G4VIS_BUILD_OPENGLXM_DRIVER
35 #include <X11/Intrinsic.h>
36 #include <Xm/ToggleB.h>
40 G4OpenGLXmRadioButton::G4OpenGLXmRadioButton (
const char*
n,
53 G4OpenGLXmRadioButton::~G4OpenGLXmRadioButton ()
56 void G4OpenGLXmRadioButton::SetName (
const char*
n)
59 XmString button_string = XmStringCreateLocalized ((
char*)
name);
60 XtVaSetValues (button,
61 XmNlabelString, button_string,
63 XmStringFree (button_string);
66 const char* G4OpenGLXmRadioButton::GetName ()
71 void G4OpenGLXmRadioButton::AddYourselfTo (G4OpenGLXmVWidgetContainer* container)
74 pView = container->GetView ();
76 parent = container->GetPointerToWidget ();
77 XmString button_string = XmStringCreateLocalized ((
char*)
name);
78 button = XtVaCreateManagedWidget (
name,
79 xmToggleButtonWidgetClass,
82 XmNlabelString, button_string,
83 XmNset, default_button,
89 XtNborderColor, borcol,
94 XtAddCallbacks (button,
98 XmStringFree (button_string);
101 Widget* G4OpenGLXmRadioButton::GetPointerToParent ()
106 Widget* G4OpenGLXmRadioButton::GetPointerToWidget ()