// $Id$ //----------------------------------------------------------------------- // The GSI Online Offline Object Oriented (Go4) Project // Experiment Data Processing at EE department, GSI //----------------------------------------------------------------------- // Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH // Planckstr. 1, 64291 Darmstadt, Germany // Contact: http://go4.gsi.de //----------------------------------------------------------------------- // This software can be used under the license agreements as stated // in Go4License.txt file which is part of the distribution. //----------------------------------------------------------------------- #ifndef TGO4WINCONDVIEW_H #define TGO4WINCONDVIEW_H #include "TBox.h" class TGo4WinCond; class TGo4WinCondView : public TBox { public: TGo4WinCondView(Double_t x1,Double_t y1,Double_t x2,Double_t y2); TGo4WinCondView(); virtual ~TGo4WinCondView(); void Paint(Option_t *opt = "") override; void ExecuteEvent(Int_t event, Int_t px, Int_t py) override; void SetCondition(TGo4WinCond *condition) { fxWinCondition = condition; } TGo4WinCond *GetCondition() const { return fxWinCondition; } const char *GetName() const override; void SetName(const char *nam); // *MENU* /** Delete condition instead of view: */ //void DeleteRegion(); // *MENU* void SetToLimits(Double_t x1, Double_t x2,Double_t y1 = 0, Double_t y2 = 0); // *MENU* void SetLabelDraw(Bool_t on); // *MENU* void SetLimitsDraw(Bool_t on); // *MENU* void SetIntDraw(Bool_t on); // *MENU* void SetXMeanDraw(Bool_t on); // *MENU* void SetXRMSDraw(Bool_t on); // *MENU* void SetYMeanDraw(Bool_t on); // *MENU* void SetYRMSDraw(Bool_t on); // *MENU* void SetXMaxDraw(Bool_t on); // *MENU* void SetYMaxDraw(Bool_t on); // *MENU* void SetCMaxDraw(Bool_t on); // *MENU* void SetNumFormat(const char *fmt = "%.4E"); // *MENU* /** This will save draw flags into static default setup */ void SaveLabelStyle();// *MENU* /** Will reset label position to defaults */ void ResetLabel();// *MENU* Bool_t IsAtExecuteMouseEvent() const { return fbExecutesMouseEvent; } private: /** JAM this one will suppress condition repaint during execution of mouse events*/ Bool_t fbExecutesMouseEvent{kFALSE}; /** pointer to viewed condition for update after graphical action */ TGo4WinCond *fxWinCondition{nullptr}; //! ClassDefOverride(TGo4WinCondView,7) }; #endif //TGO4WINCONDVIEW_H