Import Geant4 9.0.0 source tree
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UIArrayString.hh,v 1.3 2006/06/29 19:09:27 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
//
|
||||
|
||||
#ifndef G4UIArrayString_h
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UIWin32.hh,v 1.14 2006/06/29 19:09:29 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
//
|
||||
#ifndef G4UIWin32_h
|
||||
#define G4UIWin32_h
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UIXaw.hh,v 1.6 2006/06/29 19:09:31 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
//
|
||||
#ifndef G4UIXaw_h
|
||||
#define G4UIXaw_h
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UIXm.hh,v 1.13 2006/06/29 19:09:33 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
//
|
||||
#ifndef G4UIXm_h
|
||||
#define G4UIXm_h
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UIcsh.hh,v 1.4 2006/06/29 19:09:35 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
//
|
||||
|
||||
#ifndef G4UIcsh_h
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4UItcsh.hh,v 1.7 2006/06/29 19:09:37 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: G4UItcsh.hh,v 1.8 2007/06/14 05:44:58 kmura Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
//
|
||||
|
||||
#ifndef G4UItcsh_h
|
||||
@@ -39,7 +39,7 @@
|
||||
#include "G4UIcommand.hh"
|
||||
#include "G4UIcommandTree.hh"
|
||||
|
||||
//
|
||||
// ====================================================================
|
||||
// Description:
|
||||
// This class gives tcsh-like shell.
|
||||
//
|
||||
@@ -67,6 +67,7 @@
|
||||
// %/ ... current working directory
|
||||
// %h ... history# (different from G4 history#)
|
||||
//
|
||||
// ====================================================================
|
||||
|
||||
class G4UItcsh : public G4VUIshell {
|
||||
protected:
|
||||
@@ -124,8 +125,13 @@ public:
|
||||
|
||||
void SetLsColor(TermColorIndex dirColor, TermColorIndex cmdColor);
|
||||
virtual G4String GetCommandLine(const char* msg=0);
|
||||
|
||||
virtual void ResetTerminal();
|
||||
};
|
||||
|
||||
// ====================================================================
|
||||
// inline functions
|
||||
// ====================================================================
|
||||
inline G4bool G4UItcsh::IsCursorLast() const
|
||||
{
|
||||
if(cursorPosition == G4int(commandLine.length()+1)) return TRUE;
|
||||
|
||||
@@ -23,19 +23,11 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4UIterminal.hh,v 1.10 2007/05/22 01:51:05 kmura Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
//
|
||||
// $Id: G4UIterminal.hh,v 1.9 2006/06/29 19:09:39 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
//
|
||||
|
||||
#ifndef G4UIterminal_h
|
||||
#define G4UIterminal_h 1
|
||||
|
||||
#include <fstream>
|
||||
#include "G4UImanager.hh"
|
||||
#include "G4VBasicShell.hh"
|
||||
#include "G4VUIshell.hh"
|
||||
|
||||
// ====================================================================
|
||||
// G4UIterminal.cc
|
||||
//
|
||||
// Description:
|
||||
//
|
||||
@@ -68,7 +60,14 @@
|
||||
// - Add more functionality, if need.
|
||||
//
|
||||
// For more detail, see source codes.
|
||||
//
|
||||
// ====================================================================
|
||||
#ifndef G4UIterminal_h
|
||||
#define G4UIterminal_h 1
|
||||
|
||||
#include <fstream>
|
||||
#include "G4UImanager.hh"
|
||||
#include "G4VBasicShell.hh"
|
||||
#include "G4VUIshell.hh"
|
||||
|
||||
class G4UIterminal : public G4VBasicShell {
|
||||
private:
|
||||
@@ -81,7 +80,7 @@ private:
|
||||
G4bool iCont;
|
||||
|
||||
public:
|
||||
G4UIterminal(G4VUIshell* aShell=0);
|
||||
G4UIterminal(G4VUIshell* aShell=0, G4bool qsig=true);
|
||||
~G4UIterminal();
|
||||
|
||||
void SetPrompt(const G4String& prompt);
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VUIshell.hh,v 1.6 2006/06/29 19:09:41 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: G4VUIshell.hh,v 1.7 2007/06/14 05:44:58 kmura Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
//
|
||||
|
||||
#ifndef G4VUIshell_h
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
#include "globals.hh"
|
||||
|
||||
//
|
||||
// ====================================================================
|
||||
// Description:
|
||||
// This class is the abstract base class for various UI shells.
|
||||
//
|
||||
@@ -49,6 +49,7 @@
|
||||
// %s ... current application status
|
||||
// %/ ... current working directory
|
||||
//
|
||||
// ====================================================================
|
||||
|
||||
// terminal color index
|
||||
enum TermColorIndex{ BLACK=0, RED, GREEN, YELLOW,
|
||||
@@ -94,10 +95,13 @@ public:
|
||||
|
||||
// get command string from a command line
|
||||
virtual G4String GetCommandLine(const char* msg=0)= 0;
|
||||
|
||||
virtual void ResetTerminal();
|
||||
};
|
||||
|
||||
|
||||
// inlines...
|
||||
// ====================================================================
|
||||
// inline functions
|
||||
// ====================================================================
|
||||
inline void G4VUIshell::SetNColumn(G4int ncol)
|
||||
{
|
||||
nColumn= ncol;
|
||||
|
||||
Reference in New Issue
Block a user