Preliminary GUI for the musrSim simulation for the LEM beamline, current and with spin rotator

This commit is contained in:
2011-04-01 11:18:21 +00:00
parent 526cd9313e
commit 8d8e5a27cc
5 changed files with 20176 additions and 0 deletions

View File

@ -0,0 +1,142 @@
/****************************************************************************
** ui.h extension file, included from the uic-generated form implementation.
**
** If you want to add, delete, or rename functions or slots, use
** Qt Designer to update this file, preserving your code.
**
** You should not define a constructor or destructor in this file.
** Instead, write your code in functions called init() and destroy().
** These will automatically be called by the form's constructor and
** destructor.
*****************************************************************************/
void QmuSRSim::fileNew()
{
}
void QmuSRSim::fileOpen()
{
}
void QmuSRSim::fileSave()
{
}
void QmuSRSim::fileSaveAs()
{
}
void QmuSRSim::filePrint()
{
}
void QmuSRSim::fileExit()
{
}
void QmuSRSim::editUndo()
{
}
void QmuSRSim::editRedo()
{
}
void QmuSRSim::editCut()
{
}
void QmuSRSim::editCopy()
{
}
void QmuSRSim::editPaste()
{
}
void QmuSRSim::editFind()
{
}
void QmuSRSim::helpIndex()
{
}
void QmuSRSim::helpContents()
{
}
void QmuSRSim::helpAbout()
{
my $AboutText="
This is a GUI that uses the muSRSim binary, to simulate the LEM muon
beam properties.
This software is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This software is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with MuSRFitGUI. If not, see <http://www.gnu.org/licenses/>.
Copyright 2011 by Zaher Salman and the LEM Group.
<zaher.salman\@psi.ch>
";
my $AboutWindow = Qt::MessageBox::information( this, "About QmuSRSim GUI",$AboutText);
}
void QmuSRSim::CreateAllInput()
{
my %All=();
my @AllParams= ("L1","L3","TL","BFIELD","RA_T","RA_B","RA_R","RA_L","SR_B","SR_E",
"L1_2","L2_2","L3_2","BFIELD_2","RA_T_2","RA_B_2","RA_R_2","RA_L_2");
foreach my $Param (@AllParams) {
my $Child = child($Param);
my $Value = $Child->text;
$All{$Param}=$Value;
}
}
void QmuSRSim::StartCalc()
{
my %All=CreateAllInput();
}