Added "Save Viewers" button and functionality to alihlteve
[u/mrichter/AliRoot.git] / EVE / EveHLT / AliEveHOMERManagerEditor.h
index ae627172dbfa893af7ffebc690706c1a30d2d0ee..bb0cb4c8ab065ff43bf249846fc93c8c9a12a0ed 100644 (file)
@@ -7,8 +7,8 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
  * full copyright notice.                                                 *
  **************************************************************************/
 
-#ifndef ALIEVE_AliEVEHOMERManagerEditor_H
-#define ALIEVE_AliEVEHOMERManagerEditor_H
+#ifndef AliEveAliEVEHOMERManagerEditor_H
+#define AliEveAliEVEHOMERManagerEditor_H
 
 #include <TGedFrame.h>
 
 
 #include <TGedFrame.h>
 
@@ -16,33 +16,52 @@ class TGCheckButton;
 class TGTextButton;
 class TGNumberEntry;
 class TGColorSelect;
 class TGTextButton;
 class TGNumberEntry;
 class TGColorSelect;
-
+class TGPictureButton;
+class TGComboBox;
 class AliEveHOMERManager;
 
 class AliEveHOMERManagerEditor : public TGedFrame
 {
 class AliEveHOMERManager;
 
 class AliEveHOMERManagerEditor : public TGedFrame
 {
-private:
-  AliEveHOMERManagerEditor(const AliEveHOMERManagerEditor&);            // Not implemented
-  AliEveHOMERManagerEditor& operator=(const AliEveHOMERManagerEditor&); // Not implemented
-
-protected:
-  AliEveHOMERManager* fM; // fModel dynamic-casted to AliEveHOMERManagerEditor
-
-  // Declare widgets
-  // TGSomeWidget*   fXYZZ;
-  TGTextButton  *fButt;
-
 public:
 public:
-  AliEveHOMERManagerEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30, UInt_t options = kChildFrame, Pixel_t back=GetDefaultFrameBackground());
-  virtual ~AliEveHOMERManagerEditor();
+  AliEveHOMERManagerEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30, 
+                          UInt_t options = kChildFrame, Pixel_t back=GetDefaultFrameBackground());
+  virtual ~AliEveHOMERManagerEditor() {}
 
   virtual void SetModel(TObject* obj);
 
   // Declare callback/slot methods
 
   virtual void SetModel(TObject* obj);
 
   // Declare callback/slot methods
-  // void DoXYZZ();
-  void DoButt();
+  void ConnectToHLT();
+  void NextEvent();
+  void EventLoop();
+
+  void NavigateBack();
+  void NavigateFwd();
+  void SetTriggerString(int id);
+  void WriteBlockListToFile();
+  void PrintScreens();
+protected:
+
+  AliEveHOMERManager  *fM; // Model object.
+  
+  TGTextButton     *fButtonConnect; // Button to connect to HOMER.
+  TGTextButton     *fButtonWriteToFile; // Button to write block list to file
+  TGTextButton     *fButtonNextEvent; // Button to call next Even
+  TGTextButton     *fButtonNavigateBack; // Button to navigate back
+  TGTextButton     *fButtonNavigateFwd;  // Button to navigate fwd
+  TGTextButton     *fButtonPrintScreens;  // Button to print viewers
+  TGComboBox       *fBoxTriggerSelector; // Drop down menu to select trigger criteria.
+  TGTextButton     *fButtonEventLoopText; //Text button to start / stop event loop.
+  //TGComboBox       *fBoxEventLoopSpeed; // Drop down menu to set the speed of the loop.
+  TGPictureButton  *fButtonEventLoop; // Picture button to start/stop event loop, HLT LOGO.
+  
+
+private:
+  AliEveHOMERManagerEditor(const AliEveHOMERManagerEditor&);            // Not implemented
+  AliEveHOMERManagerEditor& operator=(const AliEveHOMERManagerEditor&); // Not implemented
+
+  Bool_t fEventLoopStarted;
 
   ClassDef(AliEveHOMERManagerEditor, 0); // Editor for AliEveHOMERManager
 
   ClassDef(AliEveHOMERManagerEditor, 0); // Editor for AliEveHOMERManager
-}; // endclass AliEveHOMERManagerEditor
+};
 
 #endif
 
 #endif