]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/EveBase/AliEveEventManagerEditor.h
Resolving all symbols in the library
[u/mrichter/AliRoot.git] / EVE / EveBase / AliEveEventManagerEditor.h
index 70ecfc590c3b418bef44dec860cfd6fec14a52e9..135358505615418c24acf8ca405ea665e2b8cbac 100644 (file)
 #define AliEveEventManagerEditor_H
 
 #include "TGedFrame.h"
+#include "TGComboBox.h"
+#include <TObjString.h>
 
-class TGCheckButton;
+class AliEveEventManager;
 class TEveGValuator;
+class TGButton;
+class TGCheckButton;
+class TGTextButton;
 class TGTextView;
+class TGNumberEntry;
+class TGLabel;
 
-class AliEveEventManager;
+//==============================================================================
+// AliEveEventManagerEditor
+//==============================================================================
 
 //______________________________________________________________________________
 // Short description of AliEveEventManagerEditor
@@ -31,27 +40,12 @@ public:
 
    virtual void SetModel(TObject* obj);
 
-   // Declare callback/slot methods
-   void DoSetAutoLoad();
-   void DoSetAutoLoadTime();
-   void DoPrevEvent();
-   void DoNextEvent();
-   void DoLastEvent();
-   void DoRefresh();
+   void DumpEventInfo();
 
 protected:
-   AliEveEventManager            *fM; // Model object.
-
-   // Declare widgets
-   TGCheckButton    *fAutoLoad;  // Check-box for automatic loading of events
-   TEveGValuator    *fAutoLoadTime; // Time for automatic loading of events
-
-   TGTextButton     *fNextEvent; // Load next event
-   TGTextButton     *fPrevEvent; // Load previous event
-   TGTextButton     *fLastEvent; // Load last event
-   TGTextButton     *fRefresh;   // Refresh opened data-files (reopen)
-
-   TGTextView       *fEventInfo; // Text box with event info
+   AliEveEventManager  *fM;             // Model object.
+   TGTextButton        *fDumpEventInfo; // Button that dumps event-info into a file.
+   TGTextView          *fEventInfo;     // Text box with event info.
 
 private:
    AliEveEventManagerEditor(const AliEveEventManagerEditor&);            // Not implemented
@@ -60,4 +54,75 @@ private:
    ClassDef(AliEveEventManagerEditor, 0); // GUI editor for AliEveEventManager.
 };
 
+
+//==============================================================================
+// AliEveEventManagerWindow
+//==============================================================================
+
+//______________________________________________________________________________
+// Short description of AliEveEventManagerWindow
+//
+
+class AliEveEventManagerWindow : public TGMainFrame
+{
+public:
+  AliEveEventManagerWindow(AliEveEventManager* mgr);
+  virtual ~AliEveEventManagerWindow();
+
+  void DoFirstEvent();
+  void DoPrevEvent();
+  void DoNextEvent();
+  void DoLastEvent();
+  void DoMarkEvent();
+    void DoRestartReco();
+    void DoRestartManager();
+
+  void DoSetEvent();
+
+  void DoRefresh();
+  void DoSetAutoLoad();
+  void DoSetLoopMarked();
+  void DoSetAutoLoadTime();
+  void DoSetTrigSel();
+
+  void Update(int=1);    
+  void StorageManagerChangedState(int state);
+
+protected:
+  AliEveEventManager   *fM;            // Model object.
+    
+    TGTextButton         *fFirstEvent;   // Go to first event
+    TGTextButton         *fPrevEvent;    // Go to prev event
+    TGTextButton         *fNextEvent;    // Go to next event
+    TGTextButton         *fLastEvent;    // Go to last event
+    TGTextButton         *fRefresh;      // Refresh event-file state
+    TGTextButton         *fMarkEvent;    // Mark current event
+    TGTextButton         *fRestartReco;    // Restart reconstruction server
+    TGTextButton         *fRestartManager; // Restart storage manager
+
+  TGNumberEntry        *fEventId;      // Display/edit current event id
+  TGLabel              *fInfoLabel;    // Display last available event id
+
+  TGCheckButton        *fAutoLoad;     // Check-box for automatic loading of events
+  TGCheckButton        *fLoopMarked;     // Check-box for automatic loading of events
+  TEveGValuator        *fAutoLoadTime; // Time for automatic loading of events
+
+  TGComboBox           *fTrigSel;      // Trigger selection combo box
+  TGLabel              *fStorageStatus; // Display status of Storage Manager
+  TGLabel              *fEventServerStatus; // Display status of Event Server
+
+  TGTextView           *fEventInfo;    // Text box with event info
+
+  TGTextButton* MkTxtButton(TGCompositeFrame* p, const char* txt, Int_t width=0,
+                           Int_t lo=0, Int_t ro=0, Int_t to=0, Int_t bo=0);
+  TGLabel* MkLabel(TGCompositeFrame* p, const char* txt, Int_t width,
+                  Int_t lo=0, Int_t ro=0, Int_t to=2, Int_t bo=0);
+
+private:
+  AliEveEventManagerWindow(const AliEveEventManagerWindow&);            // Not implemented
+  AliEveEventManagerWindow& operator=(const AliEveEventManagerWindow&); // Not implemented
+
+  ClassDef(AliEveEventManagerWindow, 0); // GUI window for AliEveEventManager.
+};
+
 #endif