Start implementing use of msr2dat for global fit
This commit is contained in:
parent
6442d6a9e6
commit
21b1421cfe
13
src/external/MuSRFitGUI/MuSRFit.pl
vendored
13
src/external/MuSRFitGUI/MuSRFit.pl
vendored
@ -1,6 +1,6 @@
|
|||||||
# Form implementation generated from reading ui file 'MuSRFit.ui'
|
# Form implementation generated from reading ui file 'MuSRFit.ui'
|
||||||
#
|
#
|
||||||
# Created: Wed Aug 18 12:51:07 2010
|
# Created: Wed Nov 24 15:21:00 2010
|
||||||
# by: The PerlQt User Interface Compiler (puic)
|
# by: The PerlQt User Interface Compiler (puic)
|
||||||
#
|
#
|
||||||
# WARNING! All changes made in this file will be lost!
|
# WARNING! All changes made in this file will be lost!
|
||||||
@ -1704,7 +1704,7 @@ sub NEW
|
|||||||
setName("MuSRFitform" );
|
setName("MuSRFitform" );
|
||||||
}
|
}
|
||||||
setSizePolicy(Qt::SizePolicy(3, 3, 1, 1, this->sizePolicy()->hasHeightForWidth()) );
|
setSizePolicy(Qt::SizePolicy(3, 3, 1, 1, this->sizePolicy()->hasHeightForWidth()) );
|
||||||
setMinimumSize(Qt::Size(21, 275) );
|
setMinimumSize(Qt::Size(21, 264) );
|
||||||
setIcon($image0 );
|
setIcon($image0 );
|
||||||
|
|
||||||
setCentralWidget(Qt::Widget(this, "qt_central_widget"));
|
setCentralWidget(Qt::Widget(this, "qt_central_widget"));
|
||||||
@ -2139,7 +2139,8 @@ sub NEW
|
|||||||
buttonGroupSharing->setGeometry( Qt::Rect(5, 5, 545, 355) );
|
buttonGroupSharing->setGeometry( Qt::Rect(5, 5, 545, 355) );
|
||||||
buttonGroupSharing->setSizePolicy( Qt::SizePolicy(7, 7, 0, 0, buttonGroupSharing->sizePolicy()->hasHeightForWidth()) );
|
buttonGroupSharing->setSizePolicy( Qt::SizePolicy(7, 7, 0, 0, buttonGroupSharing->sizePolicy()->hasHeightForWidth()) );
|
||||||
buttonGroupSharing->setAlignment( int(&Qt::ButtonGroup::AlignLeft) );
|
buttonGroupSharing->setAlignment( int(&Qt::ButtonGroup::AlignLeft) );
|
||||||
buttonGroupSharing->setCheckable( 0 );
|
buttonGroupSharing->setCheckable( 1 );
|
||||||
|
buttonGroupSharing->setChecked( 0 );
|
||||||
|
|
||||||
SharingComp1 = Qt::ButtonGroup(buttonGroupSharing, "SharingComp1");
|
SharingComp1 = Qt::ButtonGroup(buttonGroupSharing, "SharingComp1");
|
||||||
SharingComp1->setEnabled( 0 );
|
SharingComp1->setEnabled( 0 );
|
||||||
@ -3011,6 +3012,7 @@ sub NEW
|
|||||||
Qt::Object::connect(FitType2, SIGNAL "activated(const QString&)", this, SLOT "InitializeFunctions()");
|
Qt::Object::connect(FitType2, SIGNAL "activated(const QString&)", this, SLOT "InitializeFunctions()");
|
||||||
Qt::Object::connect(FitType3, SIGNAL "activated(const QString&)", this, SLOT "InitializeFunctions()");
|
Qt::Object::connect(FitType3, SIGNAL "activated(const QString&)", this, SLOT "InitializeFunctions()");
|
||||||
Qt::Object::connect(AddConstraint, SIGNAL "clicked()", this, SLOT "AppendToFunctions()");
|
Qt::Object::connect(AddConstraint, SIGNAL "clicked()", this, SLOT "AppendToFunctions()");
|
||||||
|
Qt::Object::connect(buttonGroupSharing, SIGNAL "toggled(bool)", this, SLOT "ActivateShComp()");
|
||||||
|
|
||||||
setTabOrder(musrfit_tabs, RunNumbers);
|
setTabOrder(musrfit_tabs, RunNumbers);
|
||||||
setTabOrder(RunNumbers, BeamLine);
|
setTabOrder(RunNumbers, BeamLine);
|
||||||
@ -3772,7 +3774,6 @@ sub CreateAllInput
|
|||||||
$Shared = $ChkBx->isChecked();
|
$Shared = $ChkBx->isChecked();
|
||||||
}
|
}
|
||||||
$All{"Sh_$Param"}=$Shared;
|
$All{"Sh_$Param"}=$Shared;
|
||||||
print "Sh_$Param=$Shared\n";
|
|
||||||
$NP++;
|
$NP++;
|
||||||
}
|
}
|
||||||
#Loop on parameters
|
#Loop on parameters
|
||||||
@ -3971,6 +3972,9 @@ sub ActivateShComp
|
|||||||
my @Paramcomp = @$Paramcomp_ref;
|
my @Paramcomp = @$Paramcomp_ref;
|
||||||
my $Full_T_Block= $All{"Full_T_Block"};
|
my $Full_T_Block= $All{"Full_T_Block"};
|
||||||
|
|
||||||
|
# Possible to chare only if sharing is enabled altogether
|
||||||
|
my $EnableSharing = buttonGroupSharing->isChecked();
|
||||||
|
if ($EnableSharing) {
|
||||||
my $Component=1;
|
my $Component=1;
|
||||||
foreach my $FitType (@FitTypes) {
|
foreach my $FitType (@FitTypes) {
|
||||||
my $Parameters=$Paramcomp[$Component-1];
|
my $Parameters=$Paramcomp[$Component-1];
|
||||||
@ -4009,6 +4013,7 @@ sub ActivateShComp
|
|||||||
}
|
}
|
||||||
$Component++;
|
$Component++;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
11
src/external/MuSRFitGUI/MuSRFit.ui
vendored
11
src/external/MuSRFitGUI/MuSRFit.ui
vendored
@ -23,7 +23,7 @@
|
|||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>21</width>
|
<width>21</width>
|
||||||
<height>275</height>
|
<height>264</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="caption">
|
<property name="caption">
|
||||||
@ -2162,6 +2162,9 @@
|
|||||||
<set>AlignLeft</set>
|
<set>AlignLeft</set>
|
||||||
</property>
|
</property>
|
||||||
<property name="checkable">
|
<property name="checkable">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="checked">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QButtonGroup">
|
<widget class="QButtonGroup">
|
||||||
@ -5496,6 +5499,12 @@
|
|||||||
<receiver>MuSRFitform</receiver>
|
<receiver>MuSRFitform</receiver>
|
||||||
<slot>AppendToFunctions()</slot>
|
<slot>AppendToFunctions()</slot>
|
||||||
</connection>
|
</connection>
|
||||||
|
<connection>
|
||||||
|
<sender>buttonGroupSharing</sender>
|
||||||
|
<signal>toggled(bool)</signal>
|
||||||
|
<receiver>MuSRFitform</receiver>
|
||||||
|
<slot>ActivateShComp()</slot>
|
||||||
|
</connection>
|
||||||
</connections>
|
</connections>
|
||||||
<tabstops>
|
<tabstops>
|
||||||
<tabstop>musrfit_tabs</tabstop>
|
<tabstop>musrfit_tabs</tabstop>
|
||||||
|
6
src/external/MuSRFitGUI/MuSRFit.ui.h
vendored
6
src/external/MuSRFitGUI/MuSRFit.ui.h
vendored
@ -583,6 +583,9 @@ void MuSRFitform::ActivateShComp()
|
|||||||
my @Paramcomp = @$Paramcomp_ref;
|
my @Paramcomp = @$Paramcomp_ref;
|
||||||
my $Full_T_Block= $All{"Full_T_Block"};
|
my $Full_T_Block= $All{"Full_T_Block"};
|
||||||
|
|
||||||
|
# Possible to chare only if sharing is enabled altogether
|
||||||
|
my $EnableSharing = buttonGroupSharing->isChecked();
|
||||||
|
if ($EnableSharing) {
|
||||||
my $Component=1;
|
my $Component=1;
|
||||||
foreach my $FitType (@FitTypes) {
|
foreach my $FitType (@FitTypes) {
|
||||||
my $Parameters=$Paramcomp[$Component-1];
|
my $Parameters=$Paramcomp[$Component-1];
|
||||||
@ -622,6 +625,7 @@ void MuSRFitform::ActivateShComp()
|
|||||||
$Component++;
|
$Component++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void MuSRFitform::InitializeTab()
|
void MuSRFitform::InitializeTab()
|
||||||
{
|
{
|
||||||
@ -899,3 +903,5 @@ void MuSRFitform::InitializeFunctions()
|
|||||||
ConstraintLine->setText("");
|
ConstraintLine->setText("");
|
||||||
FunctionsBlock->setText("");
|
FunctionsBlock->setText("");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user