GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4ConditionEditor.h
Go to the documentation of this file.
1 // $Id: TGo4ConditionEditor.h 1729 2015-08-28 07:17:56Z adamczew $
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 für 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 
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 ShowEllipseWidget(bool show);
51  virtual void UpdateEllipse();
52 
53  public slots:
54 
55  virtual void PleaseUpdateSlot();
56  virtual void SelectedCond( int t );
57  virtual void ArrayAll();
58  virtual void SetResultMode( int mode );
59  virtual void SetInvertMode( int mode );
60  virtual void ClearCounters();
61  virtual void LimitsChanged( const QString & );
62  virtual void LimitsReturnPressed();
63  virtual void SetLabel( bool on );
64  virtual void SetDrawLimits( bool on );
65  virtual void SetIntDraw( bool on );
66  virtual void SetXMeanDraw( bool on );
67  virtual void SetXRMSDraw( bool on );
68  virtual void SetYRMSDraw( bool on );
69  virtual void SetYMeanDraw( bool on );
70  virtual void SetXMaxDraw( bool on );
71  virtual void SetYMaxDraw( bool on );
72  virtual void SetCMaxDraw( bool on );
73  virtual void SetCondVisible( bool on );
74  virtual void RefreshClicked();
75  virtual void DisplayPressed();
76  virtual void UpdatePressed();
77  virtual void SaveCondition();
78  virtual void PrintConditionLog();
79  virtual void ModifyButton_clicked();
80  virtual void NPointsSpin_valueChanged( int npoint );
81  virtual void CutTable_valueChanged( int ncol, int nrow );
82  virtual void CutTable_contextMenuRequested(const QPoint &);
83  virtual void ContextMenuSlot(int);
84  virtual void EllipseTheta_returnPressed();
85  virtual void EllipseNPoints_valueChanged( int npoint );
86  virtual void EllipseTheta_valueChanged(int deg);
87  virtual void EllipseCx_valueChanged(double x);
88  virtual void EllipseCy_valueChanged(double y);
89  virtual void EllipseA1_valueChanged(double r1);
90  virtual void EllipseA2_valueChanged(double r2);
91  virtual void EllipseRefreshBox_toggled(bool on);
92  virtual void EllipseCircleBox_toggled(bool on);
93 
94 protected:
101 
102  };
103 
104 #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 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)