Import Geant4 5.2.0 source tree
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
#ifndef G4VInteractiveSession_H
|
||||
#define G4VInteractiveSession_H 1
|
||||
|
||||
#include "g4std/map"
|
||||
#include <map>
|
||||
|
||||
#include "G4VInteractorManager.hh"
|
||||
|
||||
@@ -33,25 +33,26 @@ class G4UImessenger;
|
||||
|
||||
// Class description :
|
||||
//
|
||||
// G4VInteractiveSession : a base class to isolate common things
|
||||
// G4VInteractiveSession is a base class to isolate common things
|
||||
// to various graphical "basic" G4UI sessions ; AddMenu, AddButton,
|
||||
// a dictionnary for widgets.
|
||||
// The word "interactor" is for "piece of user interface" or
|
||||
// "widget" (which means nothing).
|
||||
//
|
||||
// Class description - end :
|
||||
// The word "interactor" is for "piece of user interface" or "widget".
|
||||
|
||||
class G4VInteractiveSession
|
||||
{
|
||||
public: //with description
|
||||
|
||||
G4VInteractiveSession();
|
||||
virtual ~G4VInteractiveSession();
|
||||
virtual void AddMenu (const char*,const char*);
|
||||
virtual void AddButton (const char*,const char*,const char*);
|
||||
void AddInteractor(G4String,G4Interactor);
|
||||
G4Interactor GetInteractor(G4String);
|
||||
|
||||
private:
|
||||
|
||||
class G4VInteractiveSession {
|
||||
public:
|
||||
G4VInteractiveSession();
|
||||
virtual ~G4VInteractiveSession();
|
||||
virtual void AddMenu (const char*,const char*);
|
||||
virtual void AddButton (const char*,const char*,const char*);
|
||||
void AddInteractor(G4String,G4Interactor);
|
||||
G4Interactor GetInteractor(G4String);
|
||||
private:
|
||||
G4UImessenger* messenger;
|
||||
typedef G4std::map<G4String,G4Interactor, G4std::less<G4String> > G4interactor_map;
|
||||
typedef std::map<G4String,G4Interactor, std::less<G4String> > G4interactor_map;
|
||||
G4interactor_map interactors;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user