Import Geant4 11.2.0.beta source tree
This commit is contained in:
@@ -42,29 +42,27 @@
|
||||
class G4UIcmdWithAString : public G4UIcommand
|
||||
{
|
||||
public:
|
||||
|
||||
// Constructor. The command string with full path directory
|
||||
// and the pointer to the messenger must be given
|
||||
G4UIcmdWithAString(const char* theCommandPath, G4UImessenger* theMessenger);
|
||||
// Constructor. The command string with full path directory
|
||||
// and the pointer to the messenger must be given
|
||||
|
||||
void SetParameterName(const char* theName, G4bool omittable,
|
||||
G4bool currentAsDefault = false);
|
||||
// If "omittable" is set to true, the user of this command can omit
|
||||
// the value when the command is applied. If "omittable" is false,
|
||||
// the user must supply the parameter string.
|
||||
// "currentAsDefault" flag is valid only if "omittable" is true. If this
|
||||
// flag is true, the current value is used as the default value when the
|
||||
// user omits the parameter. If this flag is false, the value given by the
|
||||
// next SetDefaultValue() method is used
|
||||
// If "omittable" is set to true, the user of this command can omit
|
||||
// the value when the command is applied. If "omittable" is false,
|
||||
// the user must supply the parameter string.
|
||||
// "currentAsDefault" flag is valid only if "omittable" is true. If this
|
||||
// flag is true, the current value is used as the default value when the
|
||||
// user omits the parameter. If this flag is false, the value given by the
|
||||
// next SetDefaultValue() method is used
|
||||
void SetParameterName(const char* theName, G4bool omittable, G4bool currentAsDefault = false);
|
||||
|
||||
// Defines the candidates of the parameter string. Candidates listed in
|
||||
// the argument must be separated by space(s)
|
||||
void SetCandidates(const char* candidateList);
|
||||
// Defines the candidates of the parameter string. Candidates listed in
|
||||
// the argument must be separated by space(s)
|
||||
|
||||
// Set the default value of the parameter. This default value is used
|
||||
// when the user of this command omits the parameter value, and
|
||||
// "omittable" is true and "currentAsDefault" is false
|
||||
void SetDefaultValue(const char* defVal);
|
||||
// Set the default value of the parameter. This default value is used
|
||||
// when the user of this command omits the parameter value, and
|
||||
// "omittable" is true and "currentAsDefault" is false
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user