GSI Object Oriented Online Offline (Go4)  GO4-6.1.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4ConditionEditor.h
Go to the documentation of this file.
1 // $Id: TGo4ConditionEditor.h 3120 2021-03-30 07:42:45Z linev $
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 #ifndef TGO4CONDITIONEDITOR_H
15 #define TGO4CONDITIONEDITOR_H
16 
17 #include "QGo4Widget.h"
18 #include "ui_TGo4ConditionEditor.h"
19 
20 class TGo4Condition;
21 class TGo4ShapedCond;
22 class TCutG;
23 class TGo4ListCond;
24 
25 class TGo4ConditionEditor : public QGo4Widget, public Ui::TGo4ConditionEditor
26 {
27  Q_OBJECT
28 
29 public:
30  TGo4ConditionEditor(QWidget *parent = 0, const char* name=0);
31 
32  virtual bool IsAcceptDrag( const char * itemname, TClass * cl, int kind );
33  virtual void DropItem( const char * itemname, TClass * cl, int kind );
34  virtual void linkedObjectUpdated( const char * linkname, TObject * obj );
35  virtual void linkedObjectRemoved( const char * linkname );
36  virtual void WorkWithCondition( const char * itemname );
37  virtual void ResetWidget();
38  virtual void RefreshWidget( bool checkindex);
39  virtual TGo4Condition * SelectedCondition();
40  virtual bool UpdateLimits();
41  virtual void ChangeConditionProperty( int id, bool on );
42  virtual void enterEvent( QEvent * );
43  virtual void leaveEvent( QEvent * );
44  virtual void SetChangeFlag( bool changed );
45  virtual void DrawCondition( bool useactive );
46  virtual void RedrawCondition();
47  virtual bool PrepareForAnalysis();
48  virtual void FillCutWidget( TCutG * cut );
49  virtual void FillEllipseWidget(TGo4ShapedCond* elli);
50  virtual void FillListWidget(TGo4ListCond* lcon);
51  virtual void ShowEllipseWidget(bool show);
52  virtual void UpdateEllipse();
53 
54  public slots:
55 
56  virtual void PleaseUpdateSlot();
57  virtual void SelectedCond( int t );
58  virtual void ArrayAll();
59  virtual void SetResultMode( int mode );
60  virtual void SetInvertMode( int mode );
61  virtual void ClearCounters();
62  virtual void LimitsChanged( const QString & );
63  virtual void LimitsReturnPressed();
64  virtual void SetLabel( bool on );
65  virtual void SetDrawLimits( bool on );
66  virtual void SetIntDraw( bool on );
67  virtual void SetXMeanDraw( bool on );
68  virtual void SetXRMSDraw( bool on );
69  virtual void SetYRMSDraw( bool on );
70  virtual void SetYMeanDraw( bool on );
71  virtual void SetXMaxDraw( bool on );
72  virtual void SetYMaxDraw( bool on );
73  virtual void SetCMaxDraw( bool on );
74  virtual void SetCondVisible( bool on );
75  virtual void RefreshClicked();
76  virtual void DisplayPressed();
77  virtual void UpdatePressed();
78  virtual void SaveCondition();
79  virtual void PrintConditionLog();
80  virtual void ModifyButton_clicked();
81  virtual void NPointsSpin_valueChanged( int npoint );
82  virtual void CutTable_valueChanged( int ncol, int nrow );
83  virtual void CutTable_contextMenuRequested(const QPoint &);
84  virtual void ContextMenuSlot(int);
85  virtual void EllipseTheta_returnPressed();
86  virtual void EllipseNPoints_valueChanged( int npoint );
87  virtual void EllipseTheta_valueChanged(int deg);
88  virtual void EllipseCx_valueChanged(double x);
89  virtual void EllipseCy_valueChanged(double y);
90  virtual void EllipseA1_valueChanged(double r1);
91  virtual void EllipseA2_valueChanged(double r2);
92  virtual void EllipseRefreshBox_toggled(bool on);
93  virtual void EllipseCircleBox_toggled(bool on);
94 
95 protected:
102 
103  };
104 
105 #endif
virtual void SetYMeanDraw(bool on)
virtual void LimitsReturnPressed()
virtual void enterEvent(QEvent *)
virtual void SelectedCond(int t)
virtual void RefreshWidget(bool checkindex)
virtual void PrintConditionLog()
virtual void SetXMeanDraw(bool on)
virtual void leaveEvent(QEvent *)
virtual void SetChangeFlag(bool changed)
virtual void EllipseTheta_valueChanged(int deg)
virtual bool PrepareForAnalysis()
virtual void EllipseNPoints_valueChanged(int npoint)
virtual void EllipseA1_valueChanged(double r1)
virtual TGo4Condition * SelectedCondition()
virtual void SetYRMSDraw(bool on)
virtual void SetYMaxDraw(bool on)
virtual void ChangeConditionProperty(int id, bool on)
virtual void SetIntDraw(bool on)
virtual void ShowEllipseWidget(bool show)
virtual void linkedObjectRemoved(const char *linkname)
virtual void FillListWidget(TGo4ListCond *lcon)
virtual void LimitsChanged(const QString &)
virtual void EllipseCircleBox_toggled(bool on)
virtual bool IsAcceptDrag(const char *itemname, TClass *cl, int kind)
virtual void SetInvertMode(int mode)
virtual void RedrawCondition()
virtual void ModifyButton_clicked()
virtual void ContextMenuSlot(int)
virtual void EllipseCy_valueChanged(double y)
virtual void DrawCondition(bool useactive)
virtual void SetCMaxDraw(bool on)
virtual void SetXRMSDraw(bool on)
TGo4ConditionEditor(QWidget *parent=0, const char *name=0)
virtual void FillCutWidget(TCutG *cut)
virtual void CutTable_valueChanged(int ncol, int nrow)
virtual void EllipseRefreshBox_toggled(bool on)
virtual void EllipseTheta_returnPressed()
virtual void EllipseA2_valueChanged(double r2)
virtual void FillEllipseWidget(TGo4ShapedCond *elli)
virtual void EllipseCx_valueChanged(double x)
virtual void SetDrawLimits(bool on)
virtual void SetLabel(bool on)
virtual void PleaseUpdateSlot()
virtual void SetXMaxDraw(bool on)
virtual void NPointsSpin_valueChanged(int npoint)
virtual void SetResultMode(int mode)
virtual void SetCondVisible(bool on)
virtual void linkedObjectUpdated(const char *linkname, TObject *obj)
virtual void CutTable_contextMenuRequested(const QPoint &)
virtual void DropItem(const char *itemname, TClass *cl, int kind)
virtual void WorkWithCondition(const char *itemname)