GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
QFitItem.h
Go to the documentation of this file.
1 // $Id: QFitItem.h 1134 2014-01-22 14:53:40Z 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 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 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()); }
36 
37 
40  bool FindInParents(QFitItem* item);
41 
42  protected:
44  TObject* fxObj;
49  int fiTag;
50 };
51 
52 #endif // QFITITEM_H
int fiObjectType
Definition: QFitItem.h:45
bool FindInParents(QFitItem *item)
Definition: QFitItem.cpp:70
TObject * Object() const
Definition: QFitItem.h:27
virtual ~QFitItem()
Definition: QFitItem.cpp:43
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:48
int fiGraphType
Definition: QFitItem.h:48
QFitItem(TGo4FitPanel *panel, QTreeWidgetItem *parent, TObject *iObj, int iObjectType, int iWidgetType=-1, int iPopupMenuType=-1, int iGraphType=-1, int iTag=0)
Definition: QFitItem.cpp:24
int ObjectType() const
Definition: QFitItem.h:29
int fiPopupMenuType
Definition: QFitItem.h:47
int fiWidgetType
Definition: QFitItem.h:46
QFitItem * Parent() const
Definition: QFitItem.h:35
QFitItem * DefineGraphItem()
Definition: QFitItem.cpp:59
TObject * fxObj
Definition: QFitItem.h:44
void SetObject(TObject *obj)
Definition: QFitItem.h:28
TGo4FitPanel * fxPanel
Definition: QFitItem.h:43
int Tag() const
Definition: QFitItem.h:33
int fiTag
Definition: QFitItem.h:49