GSI Object Oriented Online Offline (Go4)
GO4-5.3.2
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
qt4
Go4FitGUI
QFitModelFormulaWidget.cpp
Go to the documentation of this file.
1
// $Id: QFitModelFormulaWidget.cpp 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
#include "
QFitModelFormulaWidget.h
"
15
16
#include "
TGo4FitModelFormula.h
"
17
#include "
TGo4FitGuiTypes.h
"
18
19
QFitModelFormulaWidget::QFitModelFormulaWidget
(QWidget *parent,
const
char
* name)
20
:
QFitModelWidget
(parent, name)
21
{
22
setupUi(
this
);
23
}
24
25
TGo4FitModelFormula
*
QFitModelFormulaWidget::GetFormula
()
26
{
27
return
dynamic_cast<
TGo4FitModelFormula
*
>
(
GetObject
());
28
}
29
30
void
QFitModelFormulaWidget::FillSpecificData
()
31
{
32
QFitNamedWidget::FillSpecificData
();
33
if
(
GetFormula
()) {
34
NumParSpin->setValue(
GetFormula
()->GetNumberOfExprPar());
35
ExprEdt->setText(
GetFormula
()->GetExpression());
36
}
37
}
38
39
void
QFitModelFormulaWidget::ExprEdt_textChanged
(
const
QString & str)
40
{
41
if
(!
fbFillWidget
&&
GetFormula
())
42
GetFormula
()->
SetExpression
(str.toLatin1().constData());
43
}
44
45
void
QFitModelFormulaWidget::NumParSpin_valueChanged
(
int
num)
46
{
47
if
(!
fbFillWidget
&&
GetFormula
())
48
if
(
GetFormula
()->SetNumberOfExprPar(num))
49
UpdateItemsOfType
(
FitGui::ot_parslist
,
false
);
50
}
QFitModelFormulaWidget::FillSpecificData
virtual void FillSpecificData()
Definition:
QFitModelFormulaWidget.cpp:30
TGo4FitModelFormula::SetExpression
void SetExpression(const char *expr)
Definition:
TGo4FitModelFormula.h:60
TGo4FitGuiTypes.h
QFitModelFormulaWidget::QFitModelFormulaWidget
QFitModelFormulaWidget(QWidget *parent=0, const char *name=0)
Definition:
QFitModelFormulaWidget.cpp:19
QFitWidget::fbFillWidget
bool fbFillWidget
Definition:
QFitWidget.h:64
QFitModelFormulaWidget::GetFormula
virtual TGo4FitModelFormula * GetFormula()
Definition:
QFitModelFormulaWidget.cpp:25
QFitModelWidget
Definition:
QFitModelWidget.h:27
QFitWidget::GetObject
virtual TObject * GetObject()
Definition:
QFitWidget.cpp:53
QFitModelFormulaWidget.h
QFitModelFormulaWidget::ExprEdt_textChanged
virtual void ExprEdt_textChanged(const QString &)
Definition:
QFitModelFormulaWidget.cpp:39
TGo4FitModelFormula.h
QFitNamedWidget::FillSpecificData
virtual void FillSpecificData()
Definition:
QFitNamedWidget.cpp:60
TGo4FitModelFormula
Definition:
TGo4FitModelFormula.h:28
QFitModelFormulaWidget::NumParSpin_valueChanged
virtual void NumParSpin_valueChanged(int)
Definition:
QFitModelFormulaWidget.cpp:45
QFitWidget::UpdateItemsOfType
virtual void UpdateItemsOfType(int typ, bool allitems)
Definition:
QFitWidget.cpp:103
FitGui::ot_parslist
Definition:
TGo4FitGuiTypes.h:21
Generated on Fri Oct 26 2018 08:34:53 for GSI Object Oriented Online Offline (Go4) by
1.8.8