]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/EveBase/AliEveEventManagerEditor.h
* EveBase/AliEveEventManager.cxx
[u/mrichter/AliRoot.git] / EVE / EveBase / AliEveEventManagerEditor.h
index 5218822492404f5ece167f2a628d522c53925110..5bca6ac4c9bddc13471aa00eb6efdcb92cdea031 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,23 +40,13 @@ public:
 
    virtual void SetModel(TObject* obj);
 
-   // Declare callback/slot methods
-   void DoSetAutoLoad();
-   void DoSetAutoLoadTime();
-   void DoPrevEvent();
    void DoNextEvent();
 
 protected:
-   AliEveEventManager            *fM; // Model object.
+   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
-
-   TGTextView       *fEventInfo; // Text box with event info
+   TGTextButton        *fNextEvent; // Load next event
+   TGTextView          *fEventInfo; // Text box with event info
 
 private:
    AliEveEventManagerEditor(const AliEveEventManagerEditor&);            // Not implemented
@@ -56,4 +55,67 @@ 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 DoSetEvent();
+
+  void DoRefresh();
+  void DoSetAutoLoad();
+  void DoSetAutoLoadTime();
+
+  void DoSetTriggerType(const char* type);
+
+  void Update();
+
+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
+
+  TGComboBox           *fTrigger;
+
+  TGNumberEntry        *fEventId;      // Display/edit current event id
+  TGLabel              *fInfoLabel;    // Display last available event id
+
+  TGCheckButton        *fAutoLoad;     // Check-box for automatic loading of events
+  TEveGValuator        *fAutoLoadTime; // Time for automatic loading of events
+
+  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);
+
+  void SetupTriggerSelect();                //Sets up the trigger selection list
+
+private:
+  AliEveEventManagerWindow(const AliEveEventManagerWindow&);            // Not implemented
+  AliEveEventManagerWindow& operator=(const AliEveEventManagerWindow&); // Not implemented
+
+  ClassDef(AliEveEventManagerWindow, 0); // GUI window for AliEveEventManager.
+};
+
 #endif