00001 // $Id: QFitWidget.h 1149 2014-01-29 17:00:48Z linev $ 00002 //----------------------------------------------------------------------- 00003 // The GSI Online Offline Object Oriented (Go4) Project 00004 // Experiment Data Processing at EE department, GSI 00005 //----------------------------------------------------------------------- 00006 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH 00007 // Planckstr. 1, 64291 Darmstadt, Germany 00008 // Contact: http://go4.gsi.de 00009 //----------------------------------------------------------------------- 00010 // This software can be used under the license agreements as stated 00011 // in Go4License.txt file which is part of the distribution. 00012 //----------------------------------------------------------------------- 00013 00014 // $Id: QFitWidget.h 1149 2014-01-29 17:00:48Z linev $ 00015 //----------------------------------------------------------------------- 00016 // The GSI Online Offline Object Oriented (Go4) Project 00017 // Experiment Data Processing at EE department, GSI 00018 //----------------------------------------------------------------------- 00019 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH 00020 // Planckstr. 1, 64291 Darmstadt, Germany 00021 // Contact: http://go4.gsi.de 00022 //----------------------------------------------------------------------- 00023 // This software can be used under the license agreements as stated 00024 // in Go4License.txt file which is part of the distribution. 00025 //----------------------------------------------------------------------- 00026 00027 #ifndef QFITWIDGET_H 00028 #define QFITWIDGET_H 00029 00030 #include <QWidget> 00031 00032 class TObject; 00033 class QFitItem; 00034 class TGo4Fitter; 00035 class TGo4FitPanel; 00036 00037 #ifdef WIN32 00038 class QFitWidget : public QWidget { 00039 #else 00040 #include <QtDesigner/QDesignerExportWidget> 00041 class QDESIGNER_WIDGET_EXPORT QFitWidget : public QWidget { 00042 #endif 00043 00044 00045 Q_OBJECT 00046 00047 public: 00048 QFitWidget( QWidget* parent = 0, const char* name = 0, Qt::WindowFlags fl = 0 ); 00049 ~QFitWidget(); 00050 00051 virtual QFitItem* GetItem(); 00052 virtual TObject* GetObject(); 00053 virtual TGo4Fitter* GetFitter(); 00054 virtual void SetItem(TGo4FitPanel* panel, QFitItem* iItem); 00055 virtual void FillWidget(); 00056 virtual void FillSpecificData(); 00057 virtual void UpdateWidgetItem(bool trace); 00058 virtual void SetWidgetItemText(bool trace); 00059 virtual void UpdateItemsOfType(int typ, bool allitems); 00060 00061 protected: 00062 TGo4FitPanel* fxPanel; 00063 QFitItem* fxItem; 00064 bool fbFillWidget; 00065 00066 virtual void contextMenuEvent(QContextMenuEvent* e); 00067 }; 00068 00069 #endif 00070