Added "Save Viewers" button and functionality to alihlteve
[u/mrichter/AliRoot.git] / EVE / EveHLT / AliEveHOMERManagerEditor.cxx
index 6b698234c579ebce746ddd86264e402e2e71d064..24be889aa8fcfb29ae82983f5835f34096aadb67 100644 (file)
@@ -41,6 +41,7 @@ TGedFrame(p, width, height, options | kVerticalFrame, back),
   fButtonEventLoopText(0),
 //  fBoxEventLoopSpeed(0),
   fButtonEventLoop(0),
+  fButtonPrintScreens(NULL),
  fEventLoopStarted(kFALSE) 
 {
   
@@ -86,6 +87,11 @@ TGedFrame(p, width, height, options | kVerticalFrame, back),
   AddFrame(fButtonEventLoopText); //, new TGLayoutHints(...));
   fButtonEventLoopText->Connect("Clicked()", "AliEveHOMERManagerEditor", this, "EventLoop()");
 
+
+  fButtonPrintScreens = new TGTextButton(this, "  Save Viewers  ");
+  AddFrame(fButtonPrintScreens); //, new TGLayoutHints(...));
+  fButtonPrintScreens->Connect("Clicked()", "AliEveHOMERManagerEditor", this, "PrintScreens()");
+
   fButtonEventLoop = new TGPictureButton(this, gClient->GetPicture("$ALICE_ROOT/EVE/hlt-macros/HLT-logo.png"));
   AddFrame(fButtonEventLoop); //, new TGLayoutHints(...));
   fButtonEventLoop->Connect("Clicked()", "AliEveHOMERManagerEditor", this, "EventLoop()");
@@ -117,6 +123,12 @@ void AliEveHOMERManagerEditor::WriteBlockListToFile() {
 
 }
 
+
+void AliEveHOMERManagerEditor::PrintScreens() {
+  //Print screens
+  fM->PrintScreens();
+}
+
 void AliEveHOMERManagerEditor::NavigateFwd() {
   // navigate forward