// // ******************************************************************** // * DISCLAIMER * // * * // * The following disclaimer summarizes all the specific disclaimers * // * of contributors to this software. The specific disclaimers,which * // * govern, are listed with their locations in: * // * http://cern.ch/geant4/license * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. * // * * // * 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: G4UIXaw.hh,v 1.5 2001/07/11 10:01:20 gunter Exp $ // GEANT4 tag $Name: geant4-05-02-patch-01 $ // #ifndef G4UIXaw_h #define G4UIXaw_h #if defined(G4UI_BUILD_XAW_SESSION) || defined(G4UI_USE_XAW) #include #include "G4VBasicShell.hh" class G4UIsession; class G4UImanager; // Class description : // // G4UIXaw : class to handle an interactive session. // G4UIXaw is the "Athena" version of G4UIterminal. // It has been provided at a time where no free Motif // where available. Now that some exists (lesstif), // G4UIXm should be prefered. The look and feel of // G4UIXaw is hugly... // // No command completion is available. // // Class description - end : class G4UIXaw : public G4VBasicShell { public: G4UIXaw(int,char**); ~G4UIXaw(); G4UIsession* SessionStart(); void Prompt(G4String); void SessionTerminate(); void PauseSessionStart(G4String); Widget GetDialog(); private: void SecondaryLoop(G4String); G4bool GetHelpChoice(G4int&); void ExitHelp(); private: Widget shell,dialog; G4bool fHelp; G4int fHelpChoice; static void Callback(Widget,XtPointer,XtPointer); }; #endif #endif