GSI Object Oriented Online Offline (Go4)  GO4-6.1.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
QFitItem.h
Go to the documentation of this file.
1 // $Id: QFitItem.h 2627 2019-10-01 08:02: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 QFITITEM_H
15 #define QFITITEM_H
16 
17 #include <QTreeWidgetItem>
18 
19 class TObject;
20 class TGo4FitPanel;
21 
22 class QFitItem : public QTreeWidgetItem {
23  public:
24  QFitItem(TGo4FitPanel* panel, QTreeWidgetItem* parent, TObject* iObj, int iObjectType, int iWidgetType = -1, int iPopupMenuType = -1, int iGraphType = -1, int iTag = 0);
25  virtual ~QFitItem();
26 
27  TObject* Object() const { return fxObj; }
28  void SetObject(TObject* obj) { fxObj = obj; }
29  int ObjectType() const { return fiObjectType; }
30  int WidgetType() const { return fiWidgetType; }
31  int PopupMenuType() const { return fiPopupMenuType; }
32  int GraphType() const { return fiGraphType; }
33  int Tag() const { return fiTag; }
34 
35  QFitItem* Parent() const { return dynamic_cast<QFitItem*> (parent()); }
38  bool FindInParents(QFitItem* item);
39 
40  protected:
42  TObject* fxObj;
47  int fiTag;
48 };
49 
50 #endif // QFITITEM_H
int fiObjectType
Definition: QFitItem.h:43
bool FindInParents(QFitItem *item)
Definition: QFitItem.cpp:67
TObject * Object() const
Definition: QFitItem.h:27
virtual ~QFitItem()
Definition: QFitItem.cpp:40
int GraphType() const
Definition: QFitItem.h:32
int PopupMenuType() const
Definition: QFitItem.h:31
int WidgetType() const
Definition: QFitItem.h:30
QFitItem * DefineWidgetItem()
Definition: QFitItem.cpp:45
int fiGraphType
Definition: QFitItem.h:46
QFitItem(TGo4FitPanel *panel, QTreeWidgetItem *parent, TObject *iObj, int iObjectType, int iWidgetType=-1, int iPopupMenuType=-1, int iGraphType=-1, int iTag=0)
Definition: QFitItem.cpp:21
int ObjectType() const
Definition: QFitItem.h:29
int fiPopupMenuType
Definition: QFitItem.h:45
int fiWidgetType
Definition: QFitItem.h:44
QFitItem * Parent() const
Definition: QFitItem.h:35
QFitItem * DefineGraphItem()
Definition: QFitItem.cpp:56
TObject * fxObj
Definition: QFitItem.h:42
void SetObject(TObject *obj)
Definition: QFitItem.h:28
TGo4FitPanel * fxPanel
Definition: QFitItem.h:41
int Tag() const
Definition: QFitItem.h:33
int fiTag
Definition: QFitItem.h:47