30#ifdef G4VIS_BUILD_OPENGLXM_DRIVER
35#include <X11/Intrinsic.h>
36#include <Xm/ToggleB.h>
40G4OpenGLXmRadioButton::G4OpenGLXmRadioButton (
const char* n,
53G4OpenGLXmRadioButton::~G4OpenGLXmRadioButton ()
56void G4OpenGLXmRadioButton::SetName (
const char* n)
59 XmString button_string = XmStringCreateLocalized ((
char*)name);
60 XtVaSetValues (button,
61 XmNlabelString, button_string,
63 XmStringFree (button_string);
66const char* G4OpenGLXmRadioButton::GetName ()
71void 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);
101Widget* G4OpenGLXmRadioButton::GetPointerToParent ()
106Widget* G4OpenGLXmRadioButton::GetPointerToWidget ()
const char * name(G4int ptype)