// This code implementation is the intellectual property of // the GEANT4 collaboration. // // By copying, distributing or modifying the Program (or any work // based on the Program) you indicate your acceptance of this statement, // and all its terms. // // $Id: G4VisCommandsViewer.hh,v 1.9 2000/06/07 08:43:28 johna Exp $ // GEANT4 tag $Name: geant4-03-00 $ // /vis/viewer commands - John Allison 25th October 1998 #ifndef G4VISCOMMANDSVIEWER_HH #define G4VISCOMMANDSVIEWER_HH #include "G4VVisCommand.hh" class G4UIcommand; class G4UIcmdWithAString; class G4VVisCommandViewer: public G4VVisCommand { public: // Uses compiler defaults for destructor, copy constructor and assignment. G4VVisCommandViewer (); ~G4VVisCommandViewer (); protected: void UpdateCandidateLists (); }; class G4VisCommandViewerCreate: public G4VVisCommandViewer { public: // Uses compiler defaults for copy constructor and assignment. G4VisCommandViewerCreate (); ~G4VisCommandViewerCreate (); G4String GetCurrentValue (G4UIcommand* command); void SetNewValue (G4UIcommand* command, G4String newValue); private: G4String NextName (); G4UIcommand* fpCommand; G4int fId; }; class G4VisCommandViewerList: public G4VVisCommandViewer { public: // Uses compiler defaults for copy constructor and assignment. G4VisCommandViewerList (); ~G4VisCommandViewerList (); G4String GetCurrentValue (G4UIcommand* command); void SetNewValue (G4UIcommand* command, G4String newValue); private: G4UIcommand* fpCommand; }; class G4VisCommandViewerRefresh: public G4VVisCommandViewer { public: // Uses compiler defaults for copy constructor and assignment. G4VisCommandViewerRefresh (); ~G4VisCommandViewerRefresh (); G4String GetCurrentValue (G4UIcommand* command); void SetNewValue (G4UIcommand* command, G4String newValue); private: G4UIcmdWithAString* fpCommand; }; class G4VisCommandViewerRemove: public G4VVisCommandViewer { public: // Uses compiler defaults for copy constructor and assignment. G4VisCommandViewerRemove (); ~G4VisCommandViewerRemove (); G4String GetCurrentValue (G4UIcommand* command); void SetNewValue (G4UIcommand* command, G4String newValue); private: G4UIcmdWithAString* fpCommand; }; class G4VisCommandViewerReset: public G4VVisCommandViewer { public: // Uses compiler defaults for copy constructor and assignment. G4VisCommandViewerReset (); ~G4VisCommandViewerReset (); G4String GetCurrentValue (G4UIcommand* command); void SetNewValue (G4UIcommand* command, G4String newValue); private: G4UIcmdWithAString* fpCommand; }; class G4VisCommandViewerSelect: public G4VVisCommandViewer { public: // Uses compiler defaults for copy constructor and assignment. G4VisCommandViewerSelect (); ~G4VisCommandViewerSelect (); G4String GetCurrentValue (G4UIcommand* command); void SetNewValue (G4UIcommand* command, G4String newValue); private: G4UIcmdWithAString* fpCommand; }; class G4VisCommandViewerUpdate: public G4VVisCommandViewer { public: // Uses compiler defaults for copy constructor and assignment. G4VisCommandViewerUpdate (); ~G4VisCommandViewerUpdate (); G4String GetCurrentValue (G4UIcommand* command); void SetNewValue (G4UIcommand* command, G4String newValue); private: G4UIcmdWithAString* fpCommand; G4UIcmdWithAString* fpCommand1; }; #endif