fTrigSel->Select(-1,kFALSE);
f->AddFrame(fTrigSel, new TGLayoutHints(kLHintsNormal, 10, 5, 0, 0));
fTrigSel->Connect("Selected(char*)", cls, this, "DoSetTrigSel()");
- }
+ fStorageStatus = MkLabel(f,"Storage: Waiting",0,8,8);
+
+ }
+
fEventInfo = new TGTextView(this, 400, 600);
AddFrame(fEventInfo, new TGLayoutHints(kLHintsNormal | kLHintsExpandX | kLHintsExpandY));
fM->Connect("NewEventLoaded()", cls, this, "Update()");
+ fM->Connect("StorageManagerOk()",cls,this,"StorageManagerChangedState(=1)");
+ fM->Connect("StorageManagerDown()",cls,this,"StorageManagerChangedState(=0)");
SetCleanup(kDeepCleanup);
Layout();
Layout();
}
+void AliEveEventManagerWindow::StorageManagerChangedState(int state)
+{
+ if (state == 0)
+ {
+ fStorageStatus->SetText("Storage: DOWN");
+ fMarkEvent->SetEnabled(false);
+ }
+ else if(state == 1)
+ {
+ fStorageStatus->SetText("Storage: OK");
+ fMarkEvent->SetEnabled(true);
+ }
+}
+
//------------------------------------------------------------------------------
// Protected methods
//------------------------------------------------------------------------------