31#ifdef G4VIS_BUILD_OPENGLXM_DRIVER
36#include <X11/Intrinsic.h>
37#include <Xm/ToggleB.h>
41G4OpenGLXmRadioButton::G4OpenGLXmRadioButton (
const char* n,
52G4OpenGLXmRadioButton::~G4OpenGLXmRadioButton ()
55void G4OpenGLXmRadioButton::SetName (
const char* n)
58 XmString button_string = XmStringCreateLocalized ((
char*)name);
59 XtVaSetValues (button,
60 XmNlabelString, button_string,
62 XmStringFree (button_string);
65const char* G4OpenGLXmRadioButton::GetName ()
70void 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);
100Widget* G4OpenGLXmRadioButton::GetPointerToParent ()
105Widget* G4OpenGLXmRadioButton::GetPointerToWidget ()