GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
QFitWidget.h
Go to the documentation of this file.
1 // $Id$
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 // $Id$
15 //-----------------------------------------------------------------------
16 // The GSI Online Offline Object Oriented (Go4) Project
17 // Experiment Data Processing at EE department, GSI
18 //-----------------------------------------------------------------------
19 // Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
20 // Planckstr. 1, 64291 Darmstadt, Germany
21 // Contact: http://go4.gsi.de
22 //-----------------------------------------------------------------------
23 // This software can be used under the license agreements as stated
24 // in Go4License.txt file which is part of the distribution.
25 //-----------------------------------------------------------------------
26 
27 #ifndef QFITWIDGET_H
28 #define QFITWIDGET_H
29 
30 #include <QWidget>
31 
32 class TObject;
33 class QFitItem;
34 class TGo4Fitter;
35 class TGo4FitPanel;
36 
37 #ifdef __GO4DESIGNER__
38 #include <QtDesigner/QDesignerExportWidget>
39 class QDESIGNER_WIDGET_EXPORT QFitWidget : public QWidget {
40 #else
41 class QFitWidget : public QWidget {
42 #endif
43 
44  Q_OBJECT
45 
46  public:
47  QFitWidget(QWidget *parent = nullptr, const char *name = nullptr, Qt::WindowFlags fl = Qt::Widget);
48  ~QFitWidget();
49 
50  virtual QFitItem* GetItem();
51  virtual TObject *GetObject();
52  virtual TGo4Fitter *GetFitter();
53  virtual void SetItem(TGo4FitPanel* panel, QFitItem* iItem);
54  virtual void FillWidget();
55  virtual void FillSpecificData();
56  virtual void UpdateWidgetItem(bool trace);
57  virtual void SetWidgetItemText(bool trace);
58  virtual void UpdateItemsOfType(int typ, bool allitems = false);
59 
60  protected:
61  TGo4FitPanel* fxPanel{nullptr};
62  QFitItem* fxItem{nullptr};
63  bool fbFillWidget{false};
64 
65  void contextMenuEvent(QContextMenuEvent* e) override;
66 };
67 
68 #endif