Import Geant4 5.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:57:27 +02:00
parent 330b82b769
commit 37fff30d2e
5733 changed files with 263867 additions and 74574 deletions
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4UIArrayString.cc,v 1.5 2001/11/26 19:15:08 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: G4UIArrayString.cc,v 1.6 2002/10/17 02:40:24 murakami Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
#include "g4std/iomanip"
@@ -46,11 +46,12 @@ G4UIArrayString::G4UIArrayString(const G4String& stream)
G4int jc= astream.index(" ", indx);
nElement++;
if(jc == G4int(G4String::npos)) break;
for(G4int i=1; jc+i< G4int(astream.length()); i++ ) { // skip continuing spaces
if(astream[(size_t)(jc+i)]==' ') jc++;
jc++; // fix a tiny mistake...
for(; jc< G4int(astream.length()); ) { // skip continuing spaces
if(astream[(size_t)(jc)]==' ') jc++;
else break;
}
indx= jc+1;
indx= jc;
}
// allocate string array
@@ -181,7 +182,8 @@ void G4UIArrayString::Show(G4int ncol)
if(!colorWord.empty()) G4cout << colorWord << G4std::flush;
G4cout << G4std::setiosflags(G4std::ios::left) << G4std::setw(GetNField(ix))
<< word << G4std::flush;
<< word.c_str() << G4std::flush;
// against problem w/ g++ iostream
if(ix != nc) G4cout << " " << G4std::flush;
else G4cout << G4endl;
}
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4UIWin32.cc,v 1.7 2001/07/11 10:01:21 gunter Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
// G.Barrand
+3 -3
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4UIXaw.cc,v 1.4 2001/07/11 10:01:21 gunter Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: G4UIXaw.cc,v 1.5 2002/11/06 08:12:37 barrand Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
// G.Barrand
@@ -62,7 +62,7 @@ G4UIXaw::G4UIXaw (
G4UImanager* UI = G4UImanager::GetUIpointer();
if(UI!=NULL) UI->SetSession(this);
G4Xt* interactorManager = G4Xt::getInstance (argc,argv,"Xaw");
G4Xt* interactorManager = G4Xt::getInstance (argc,argv,(char*)"Xaw");
Widget top = (Widget)interactorManager->GetMainInteractor();
shell = XtAppCreateShell ("G4UIXaw","G4UIXaw",topLevelShellWidgetClass,XtDisplay(top),NULL,0);
+10 -10
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4UIXm.cc,v 1.7 2001/07/11 10:01:21 gunter Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: G4UIXm.cc,v 1.8 2002/11/06 08:12:37 barrand Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
// G.Barrand
@@ -81,7 +81,7 @@ G4UIXm::G4UIXm (
G4UImanager* UI = G4UImanager::GetUIpointer();
if(UI!=NULL) UI->SetSession(this);
G4Xt* interactorManager = G4Xt::getInstance (argc,argv,"Xm");
G4Xt* interactorManager = G4Xt::getInstance (argc,argv,(char*)"Xm");
Widget top = (Widget)interactorManager->GetMainInteractor();
@@ -90,19 +90,19 @@ G4UIXm::G4UIXm (
shell = XtAppCreateShell ("G4UIXm","G4UIXm",
topLevelShellWidgetClass,XtDisplay(top),
args,1);
form = XmCreateForm (shell,"form",NULL,0);
form = XmCreateForm (shell,(char*)"form",NULL,0);
XtManageChild (form);
XtSetArg(args[0],XmNtopAttachment ,XmATTACH_FORM);
XtSetArg(args[1],XmNleftAttachment ,XmATTACH_FORM);
XtSetArg(args[2],XmNrightAttachment ,XmATTACH_FORM);
menuBar = XmCreateMenuBar (form,"menuBar",args,3);
menuBar = XmCreateMenuBar (form,(char*)"menuBar",args,3);
XtSetArg(args[0],XmNtopAttachment ,XmATTACH_NONE);
XtSetArg(args[1],XmNleftAttachment ,XmATTACH_FORM);
XtSetArg(args[2],XmNrightAttachment ,XmATTACH_FORM);
XtSetArg(args[3],XmNbottomAttachment ,XmATTACH_FORM);
command = XmCreateCommand (form,"command",args,4);
command = XmCreateCommand (form,(char*)"command",args,4);
XtManageChild (command);
XtSetArg(args[0],XmNtopAttachment ,XmATTACH_NONE);
@@ -110,9 +110,9 @@ G4UIXm::G4UIXm (
XtSetArg(args[2],XmNrightAttachment ,XmATTACH_FORM);
XtSetArg(args[3],XmNbottomAttachment,XmATTACH_WIDGET);
XtSetArg(args[4],XmNbottomWidget ,command);
XmString cps = XmStringLtoRCreate("Clear",XmSTRING_DEFAULT_CHARSET);
XmString cps = XmStringLtoRCreate((char*)"Clear",XmSTRING_DEFAULT_CHARSET);
XtSetArg (args[5],XmNlabelString,cps);
Widget clearButton = XmCreatePushButton(form,"clearButton",args,6);
Widget clearButton = XmCreatePushButton(form,(char*)"clearButton",args,6);
XmStringFree (cps);
XtManageChild (clearButton);
@@ -125,7 +125,7 @@ G4UIXm::G4UIXm (
XtSetArg(args[6],XmNeditMode ,XmMULTI_LINE_EDIT);
XtSetArg(args[7],XmNrows ,12);
XtSetArg(args[8],XmNcolumns ,80);
text = XmCreateScrolledText (form,"text",args,9);
text = XmCreateScrolledText (form,(char*)"text",args,9);
XtManageChild (text);
XtAddCallback(clearButton,XmNactivateCallback,
@@ -389,7 +389,7 @@ void clearButtonCallback (
/***************************************************************************/
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
{
XmTextSetString((Widget)a_tag,"");
XmTextSetString((Widget)a_tag,(char*)"");
}
/***************************************************************************/
void G4UIXm::ButtonCallback (
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4UIcsh.cc,v 1.6 2002/02/26 02:09:08 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
#include "G4UIcsh.hh"
+3 -3
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4UItcsh.cc,v 1.7 2001/11/26 19:15:08 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: G4UItcsh.cc,v 1.8 2002/10/17 02:41:22 murakami Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
#ifndef WIN32
@@ -554,7 +554,7 @@ G4String G4UItcsh::ReadLine()
// treatment for ESC. character
if( cc == AsciiESC) { // ESC
G4cin.get(cc);
if (cc == '[') {
if (cc == '[' || 'O') { // care for another termcap, such as konsole
G4cin.get(cc);
switch(cc) {
case 'A': // [UP]
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4UIterminal.cc,v 1.17 2001/11/26 19:15:08 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
#include "g4std/strstream"
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4VUIshell.cc,v 1.7 2002/04/26 21:28:26 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
#include "G4UImanager.hh"