Import Geant4 3.1.0 source tree
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLXmRadioButton.cc,v 1.3 1999/12/15 14:54:10 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: G4OpenGLXmRadioButton.cc,v 1.4 2001/03/07 14:56:19 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//Radio button class. Inherits from G4OpenGLXmVWidgetComponent
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#include <X11/Intrinsic.h>
|
||||
#include "globals.hh"
|
||||
|
||||
G4OpenGLXmRadioButton::G4OpenGLXmRadioButton (char* n,
|
||||
G4OpenGLXmRadioButton::G4OpenGLXmRadioButton (const char* n,
|
||||
XtCallbackRec* c,
|
||||
G4bool d,
|
||||
G4int num)
|
||||
@@ -32,17 +32,17 @@ G4OpenGLXmRadioButton::G4OpenGLXmRadioButton (char* n,
|
||||
G4OpenGLXmRadioButton::~G4OpenGLXmRadioButton ()
|
||||
{}
|
||||
|
||||
void G4OpenGLXmRadioButton::SetName (char* n)
|
||||
void G4OpenGLXmRadioButton::SetName (const char* n)
|
||||
{
|
||||
name = n;
|
||||
XmString button_string = XmStringCreateLocalized (name);
|
||||
XmString button_string = XmStringCreateLocalized ((char*)name);
|
||||
XtVaSetValues (button,
|
||||
XmNlabelString, button_string,
|
||||
NULL);
|
||||
XmStringFree (button_string);
|
||||
}
|
||||
|
||||
char* G4OpenGLXmRadioButton::GetName ()
|
||||
const char* G4OpenGLXmRadioButton::GetName ()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
@@ -53,7 +53,7 @@ void G4OpenGLXmRadioButton::AddYourselfTo (G4OpenGLXmVWidgetContainer* container
|
||||
pView = container->GetView ();
|
||||
ProcesspView ();
|
||||
parent = container->GetPointerToWidget ();
|
||||
XmString button_string = XmStringCreateLocalized (name);
|
||||
XmString button_string = XmStringCreateLocalized ((char*)name);
|
||||
button = XtVaCreateManagedWidget (name,
|
||||
xmToggleButtonWidgetClass,
|
||||
*parent,
|
||||
|
||||
Reference in New Issue
Block a user