| v2.10-0 (21000JUN2005) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A static Singleton which acts as a registry for all GUIs in the Go4 Project. Each GUI Window will register its slot and Status objects by this Registry when created.
If the Widget window where deleted with out unregistering the slot and the status objects, it will get the pointer to them from this registry when created (Widget) again.
It also serves as command an object dispatcher, which is responsible for delivering objects coming from the analysis to the recievers on the GUI side
Field Summary | |
private TObjArray | DependenceList |
private Bool_t | fbAnalysisReady This flag indicates if analysis client is connected and ready. |
private Bool_t | fbAnaSettingsReady This flag indicates if analysis settings were initialized. |
private Int_t | fiClientRole Set the role of last login. |
private QWidget* | fxCentralWindow |
private TString | fxClientHost remember nodename of the started analysis client |
private TString | fxClientPassword remember password of last login to nalysis client |
private TString | fxClientProgram remember program name of analysis client |
private TString | fxClientShell remember shell command used for starting analysis client |
private TGo4SlotsBaseClass* | fxDisplayAnalysisConfig |
private TGo4SlotsBaseClass* | fxDisplayStatusMonitor |
private static TGo4GUIRegistry* | fxInstance |
private TGo4SlotsBaseClass* | fxLogInfo |
private QWidget* | fxMainWindow |
private TGo4SlotsBaseClass* | fxMemBrowser |
private TGo4Display* | fxTGo4Display |
private TObjArray | SlotClassList |
private TObjArray | SubmittedCommandsList |
Constructor Summary | |
protected | TGo4GUIRegistry() |
Destructor Summary | |
virtual synchronized | ~TGo4GUIRegistry() |
Method Summary | |
void | DisplayData(TNamed* ) |
void | DisplayLog(TGo4Status* ) |
private TGo4SubmittedCommandsEntry* | FindCmdEntry(const char * name, Bool_t force) |
QWidget* | GetCentralWindow() |
const const char * | GetClientNode() |
const const char * | GetClientPassword() |
const const char * | GetClientProgram() |
Int_t | GetClientRole() |
const const char * | GetClientShell() |
const TGo4Display* | GetDisplay() |
QWidget* | GetGUIClass(TGo4SlotsBaseClass* SlotClass) |
QWidget* | GetMainWindow() |
TGo4SlotsBaseClass* | GetSlotClass(const char * name) |
TGo4SlotsBaseClass* | GetSlotClass(TGo4SlotsBaseClass* SlotClass) |
TGo4Status* | GetStatus(const char * name) |
void | GuiIsChanged(TGo4SlotsBaseClass* SlotClass, QWidget* GUI) |
static TGo4GUIRegistry* | Instance() |
const Bool_t | IsAnalysisReady() |
const Bool_t | IsAnaSettingsReady() |
TGo4Command* | MakeCommand(const char * name) Method using internal command prototype list to produce a clone of the specified command |
void | ReDirectObject(const char * ObjectName, TGo4SlotsBaseClass* p, bool Monitor, TQRootCanvas* c, TPad* pad) This can be used to redirect any object send from the analysis to the GUI, if this method is called more than once with the same object name but different receivers or canvases, then new entries will be generated in the registry and the remote object will be delivered to the different receivers or canvases. |
void | RegisterDependentClass(TGo4SlotsBaseClass* , const char * ) |
void | RegisterSlotClass(TGo4SlotsBaseClass* p, TGo4Status* s, QWidget* GUI) |
void | RemoveFromSubmittedList(const char * Name) this will remove the all entries of submitted commands of the Object "Name" from the registry |
void | RemoveFromSubmittedList(const char * Name, TGo4SlotsBaseClass* p) this will remove the all entries of submitted commands of the Object "Name" having "p" as reciver from the registry |
void | RemoveFromSubmittedList(const char * Name, TQRootCanvas* c) this will remove the all entries of submitted commands of the Object "Name" having "c" as reciver from the registry |
private void | RemoveFromSubmittedList(TGo4SubmittedCommandsEntry* Entry) |
void | RemoveRedirectEntry(const char * Name) this will remove the all redirections of the Object "Name" from the registry |
void | RemoveRedirectEntry(const char * Name, TGo4SlotsBaseClass* p) this will remove the all redirections to the receiver "p" |
void | RemoveRedirectEntry(const char * Name, TQRootCanvas* c) this will remove the all redirections to the receiver "c" |
void | SetAnalysisReady(Bool_t on) |
void | SetAnaSettingsReady(Bool_t on) |
void | SetCentralWindow(QWidget* widget) |
void | SetClientNode(const char * host) |
void | SetClientPassword(const Text_t* passwd) |
void | SetClientProgram(const Text_t* exec) |
void | SetClientRole(Int_t role) |
void | SetClientShell(const Text_t* txt) |
void | SetDisplay(TGo4Display* ) |
void | SetDisplayAnalysisConfig(TGo4SlotsBaseClass* p) |
void | SetDisplayStatusMonitor(TGo4SlotsBaseClass* ) |
void | SetLogInfo(TGo4SlotsBaseClass* ) |
void | SetMainWindow(QWidget* widget) |
void | SetMasterMode(Int_t role) Change appereance of gui according to role |
void | SetMemoryBrowser(TGo4SlotsBaseClass* browser) |
void | StartAnalysisWindow(const char * text) |
void | StopMonitoring() Stop monitoring list and clear remote browser. |
void | SubmitCommand(const char * name) send command specified by name to the current client task |
void | SubmitCommand(TGo4Command* com, const char * ObjectName, TGo4SlotsBaseClass* p, Bool_t Monitor, TQRootCanvas* c, TPad* pad) send given command to the current client task TGo4Command* com: The Command to be Submitted const char * ObjectName=0 : Name of this Command TGo4SlotsBaseClass *p=0: Slots Class which will recieve the result of this command bool Monitor=kFALSE : flag t indicate if this command should be send once or continously TQRootCanvas *c=0 : The canvas which will be used to draw the results of this command (if any) TPad *pad=0 : The Pad which will be used to draw the results of this command (if any) |
void | SubmitCommand(const char * name, TGo4SlotsBaseClass* p) |
void | SubmitEmergencyCommand(Int_t val) |
void | UnRegisterClass(TGo4SlotsBaseClass* p, TGo4Status* s) |
void | UnRegisterDependentClass(TGo4SlotsBaseClass* p, const char * name) |
void | UpdateDependents(TGo4Status* s) |
Field Detail |
private TObjArray DependenceList
private Bool_t fbAnalysisReady
private Bool_t fbAnaSettingsReady
private Int_t fiClientRole
private QWidget* fxCentralWindow
private TString fxClientHost
private TString fxClientPassword
private TString fxClientProgram
private TString fxClientShell
private TGo4SlotsBaseClass* fxDisplayAnalysisConfig
private TGo4SlotsBaseClass* fxDisplayStatusMonitor
private static TGo4GUIRegistry* fxInstance
private TGo4SlotsBaseClass* fxLogInfo
private QWidget* fxMainWindow
private TGo4SlotsBaseClass* fxMemBrowser
private TGo4Display* fxTGo4Display
private TObjArray SlotClassList
private TObjArray SubmittedCommandsList
Constructor Detail |
protected TGo4GUIRegistry()
Method Detail |
public virtual synchronized ~TGo4GUIRegistry()
Method Detail |
public void DisplayData(TNamed* )
public void DisplayLog(TGo4Status* )
private TGo4SubmittedCommandsEntry* FindCmdEntry(const char * name, Bool_t force)
public QWidget* GetCentralWindow()
public const const char * GetClientNode()
public const const char * GetClientPassword()
public const const char * GetClientProgram()
public Int_t GetClientRole()
public const const char * GetClientShell()
public const TGo4Display* GetDisplay()
public QWidget* GetGUIClass(TGo4SlotsBaseClass* SlotClass)
public QWidget* GetMainWindow()
public TGo4SlotsBaseClass* GetSlotClass(const char * name)
public TGo4SlotsBaseClass* GetSlotClass(TGo4SlotsBaseClass* SlotClass)
public TGo4Status* GetStatus(const char * name)
public void GuiIsChanged(TGo4SlotsBaseClass* SlotClass, QWidget* GUI)
public static TGo4GUIRegistry* Instance()
public const Bool_t IsAnalysisReady()
public const Bool_t IsAnaSettingsReady()
public TGo4Command* MakeCommand(const char * name)
public void ReDirectObject(const char * ObjectName, TGo4SlotsBaseClass* p, bool Monitor, TQRootCanvas* c, TPad* pad)
public void RegisterDependentClass(TGo4SlotsBaseClass* , const char * )
public void RegisterSlotClass(TGo4SlotsBaseClass* p, TGo4Status* s, QWidget* GUI)
public void RemoveFromSubmittedList(const char * Name)
public void RemoveFromSubmittedList(const char * Name, TGo4SlotsBaseClass* p)
public void RemoveFromSubmittedList(const char * Name, TQRootCanvas* c)
private void RemoveFromSubmittedList(TGo4SubmittedCommandsEntry* Entry)
public void RemoveRedirectEntry(const char * Name)
public void RemoveRedirectEntry(const char * Name, TGo4SlotsBaseClass* p)
public void RemoveRedirectEntry(const char * Name, TQRootCanvas* c)
public void SetAnalysisReady(Bool_t on)
public void SetAnaSettingsReady(Bool_t on)
public void SetCentralWindow(QWidget* widget)
public void SetClientNode(const char * host)
public void SetClientPassword(const Text_t* passwd)
public void SetClientProgram(const Text_t* exec)
public void SetClientRole(Int_t role)
public void SetClientShell(const Text_t* txt)
public void SetDisplay(TGo4Display* )
public void SetDisplayAnalysisConfig(TGo4SlotsBaseClass* p)
public void SetDisplayStatusMonitor(TGo4SlotsBaseClass* )
public void SetLogInfo(TGo4SlotsBaseClass* )
public void SetMainWindow(QWidget* widget)
public void SetMasterMode(Int_t role)
public void SetMemoryBrowser(TGo4SlotsBaseClass* browser)
public void StartAnalysisWindow(const char * text)
public void StopMonitoring()
public void SubmitCommand(const char * name)
public void SubmitCommand(TGo4Command* com, const char * ObjectName, TGo4SlotsBaseClass* p, Bool_t Monitor, TQRootCanvas* c, TPad* pad)
public void SubmitCommand(const char * name, TGo4SlotsBaseClass* p)
public void SubmitEmergencyCommand(Int_t val)
public void UnRegisterClass(TGo4SlotsBaseClass* p, TGo4Status* s)
public void UnRegisterDependentClass(TGo4SlotsBaseClass* p, const char * name)
public void UpdateDependents(TGo4Status* s)
Association Links |
to Class TObjArray
to Class TObjArray
to Class TObjArray
to Class TGo4SlotsBaseClass
to Class TGo4SlotsBaseClass
to Class TGo4SlotsBaseClass
to Class TGo4SlotsBaseClass
to Class TGo4Display
PatternLink_Detail |
| J.Adamczewski, M.Al-Turany, D.Bertini, H.G.Essel, S.Linev | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |