Added icons and plot mean and std of implantation profiles.

This commit is contained in:
salman 2015-06-24 14:34:24 +02:00
parent a6ed2b0b54
commit 9609ebe149
5 changed files with 257 additions and 110 deletions

View File

@ -561,6 +561,7 @@ sub Densities {
"LaAlO3",6.70,
"Al2O3",3.98,
"SrTiO3",5.12,
"LaTiO3",5.9,
"SrLaGaO4",6.389,
"SrLaAlO4",5.924,
"NbSe2",6.30,

BIN
trimsp/src/PlotMean.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 699 B

View File

@ -31,6 +31,7 @@ use QtCore4::slots
SaveFileAs => [];
use Ui_TrimSPGUI4;
sub NEW {
my ( $class, $parent ) = @_;
$class->SUPER::NEW($parent);
@ -142,7 +143,7 @@ sub CollectValues
$All{"scanStep"}=1*$All{"scanStep"};
# Return values to caller
return(%All);
return(\%All);
}
# Subroutine: Toggle between scan/single run mode and setup scans tab
@ -331,7 +332,7 @@ sub CreateInpFile
";
# Get values from form
my %All = CollectValues();
my %All = %{CollectValues()};
my $projectile=this->{ui}->projComboBox->currentText();
$All{"ProjZ"}=sprintf("%6.2f",Chem::Zof($projectile));
$All{"ProjAM"}=sprintf("%6.2f",Chem::Massof($projectile));
@ -471,7 +472,7 @@ sub GUIPath
# Subroutine: Start the simulation with the current parameters
sub StartSequenceOne
{
my %All = CollectValues();
my %All = %{CollectValues()};
my @SValues=();
my @SdzValues=();
my $cmd="";
@ -577,6 +578,9 @@ sub StartSequenceOne
system($cmd);
$Progress=100;
this->{ui}->progress->setValue($Progress);
undef %All;
undef $cmd;
print "at end\n";
return(1);
}
@ -656,6 +660,7 @@ sub OpenFile
# Check it is not empty or title line
if ($InitPar[0] || $InitPar[1]) {
if (!$Types{$InitPar[0]}) {
# No type is found, probably table cell?
$Types{$InitPar[0]}="Qt::LineEdit";
}
# Get widget by name
@ -682,9 +687,9 @@ sub OpenFile
}
# Subroutine: Save configuration file to TrimSP.cfg
sub SaveFile
sub GenInitFile
{
my %All = CollectValues();
my %All = %{CollectValues()};
my $InitFile="
[Layers]
numLayer=$All{'numLayer'}";
@ -729,71 +734,36 @@ scanTo=$All{'scanTo'}
scanStep=$All{'scanStep'}
";
return($InitFile);
}
# Subroutine: Save configuration file to TrimSP.cfg
sub SaveFile
{
my $InitFile=GenInitFile();
# Save to default file name "TriumSP.cfg"
my $file = "TrimSP.cfg";
open (OUTF,q{>},"$file" );
print OUTF (" $InitFile");
close(OUTF);
my $file = "TrimSP.cfg";
open (OUTF,q{>},"$file" );
print OUTF $InitFile;
close(OUTF);
}
# Subroutine: Save As configuration file
sub SaveFileAs
{
my %All = CollectValues();
my $InitFile="
[Layers]
numLayer=$All{'numLayer'}";
for (my $i=1;$i<=$All{"numLayer"};$i++){
my $Li="L".$i;
my $LComp=$Li."Comp";
my $Lrho=$Li."rho";
my $Ld=$Li."d";
$InitFile=$InitFile."
$LComp=$All{$LComp}
$Lrho=$All{$Lrho}
$Ld=$All{$Ld}
";
}
$InitFile=$InitFile."
[ProjectileParameters]
projComboBox=$All{'projComboBox'}
numberProj=$All{'numberProj'}
z0=$All{'z0'}
dz=$All{'dz'}
valEnergy=$All{'valEnergy'}
sigEnergy=$All{'sigEnergy'}
valAngle=$All{'valAngle'}
sigAngle=$All{'sigAngle'}
ranSeed=$All{'ranSeed'}
[Files]
fileNamePrefix=$All{'fileNamePrefix'}
workPath=$All{'workPath'}
[ScanSequence]
scanSeq=$All{'scanSeq'}
comboScan=$All{'comboScan'}
radioList=$All{'radioList'}
scanList=$All{'scanList'}
scanListdz=$All{'scanListdz'}
radioLoop=$All{'radioLoop'}
scanFrom=$All{'scanFrom'}
scanTo=$All{'scanTo'}
scanStep=$All{'scanStep'}
";
my $InitFile=GenInitFile();
# Save to selected file name
my $file=Qt::FileDialog::getSaveFileName(
this,
"Choose a filename to save",
"TrimSP.cfg",
"TrimSP GUI Initialization file (*.cfg)");
# If the user gave a filename the copy to it
# If the user gave a filename then save to it
if ($file ne "") {
open (OUTF,q{>},"$file" );
print OUTF (" $InitFile");
print OUTF $InitFile;
close(OUTF);
}
}
@ -824,8 +794,8 @@ sub PlotProfiles
}
}
# Subroutine: Plot implantation fractions in the different layers using
# a root macro
# Subroutine: Plot implantation fractions in the different layers
# using a root macro
sub PlotFraction
{
my $Path=this->{ui}->workPath->text();
@ -839,14 +809,11 @@ sub PlotFraction
my $TrimPath = $ENV{'PERLLIB'};
# Now that we have the file name send it to root macro for plotting.
my $cmd='root -n -l "'.$TrimPath.'/../plotFrc.C(\"'.$file.'\")"&';
my $pid=system($cmd);
}
}
# Subroutine: Plot mean depth and straggeling using
# a root macro
# Subroutine: Plot mean depth and straggeling using a root macro
sub PlotMean
{
my $Path=this->{ui}->workPath->text();
@ -860,10 +827,8 @@ sub PlotMean
my $TrimPath = $ENV{'PERLLIB'};
# Now that we have the file name send it to root macro for plotting.
my $cmd='root -n -l "'.$TrimPath.'/../plotMean.C(\"'.$file.'\")"&';
my $pid=system($cmd);
}
}
# Subroutine: Help window contents

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<author>Zaher Salman &lt;zaher.salman@psi.ch&gt;</author>
<class>TrimSPGUI4</class>
<widget class="QMainWindow" name="TrimSPGUI4">
<property name="geometry">
@ -21,7 +22,7 @@
</property>
<property name="windowIcon">
<iconset>
<normaloff>icon.png</normaloff>icon.png</iconset>
<normaloff>../icon.png</normaloff>../icon.png</iconset>
</property>
<widget class="QWidget" name="widget">
<layout class="QGridLayout">
@ -71,12 +72,15 @@
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="buddy">
<cstring>numLayer</cstring>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QSpinBox" name="numLayer">
<property name="whatsThis">
<string>Select the number of the layers of your structure (maximum 7 layers).</string>
<string>Select the number of the layers of your structure (maximum 100 layers).</string>
</property>
<property name="minimum">
<number>1</number>
@ -194,6 +198,9 @@
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="buddy">
<cstring>z0</cstring>
</property>
</widget>
<widget class="QLabel" name="NumberLabel">
<property name="geometry">
@ -216,6 +223,9 @@
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="buddy">
<cstring>numberProj</cstring>
</property>
</widget>
<widget class="QComboBox" name="projComboBox">
<property name="geometry">
@ -287,6 +297,9 @@
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="buddy">
<cstring>valEnergy</cstring>
</property>
</widget>
<widget class="QLineEdit" name="numberProj">
<property name="geometry">
@ -337,6 +350,9 @@
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="buddy">
<cstring>projComboBox</cstring>
</property>
</widget>
<widget class="QLineEdit" name="valAngle">
<property name="geometry">
@ -372,6 +388,9 @@
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="buddy">
<cstring>sigAngle</cstring>
</property>
</widget>
<widget class="QLineEdit" name="sigAngle">
<property name="geometry">
@ -407,6 +426,9 @@
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="buddy">
<cstring>ranSeed</cstring>
</property>
</widget>
<widget class="QLineEdit" name="sigEnergy">
<property name="geometry">
@ -505,6 +527,9 @@
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="buddy">
<cstring>valAngle</cstring>
</property>
</widget>
<widget class="QLabel" name="SigELabel">
<property name="geometry">
@ -521,6 +546,9 @@
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="buddy">
<cstring>sigEnergy</cstring>
</property>
</widget>
<widget class="QLabel" name="dzLabel">
<property name="geometry">
@ -537,6 +565,9 @@
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="buddy">
<cstring>dz</cstring>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox15">
@ -560,7 +591,7 @@
<height>100</height>
</rect>
</property>
<layout class="QVBoxLayout">
<layout class="QVBoxLayout" name="FileNames">
<property name="spacing">
<number>0</number>
</property>
@ -575,6 +606,9 @@
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="buddy">
<cstring>fileNamePrefix</cstring>
</property>
</widget>
</item>
<item>
@ -592,10 +626,13 @@
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="buddy">
<cstring>workPath</cstring>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout">
<layout class="QHBoxLayout" name="OutputDirectory">
<item>
<widget class="QLineEdit" name="workPath">
<property name="text">
@ -703,6 +740,9 @@
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="buddy">
<cstring>lineEditEmpty</cstring>
</property>
</widget>
<widget class="QLabel" name="textLabelEF">
<property name="geometry">
@ -719,6 +759,9 @@
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="buddy">
<cstring>parEF</cstring>
</property>
</widget>
<widget class="QSpinBox" name="parKK0R">
<property name="geometry">
@ -773,6 +816,9 @@
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="buddy">
<cstring>parIRL</cstring>
</property>
</widget>
<widget class="QSpinBox" name="parKK0">
<property name="geometry">
@ -808,6 +854,9 @@
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="buddy">
<cstring>parKK0</cstring>
</property>
</widget>
<widget class="QLabel" name="textLabelRD">
<property name="geometry">
@ -824,6 +873,9 @@
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="buddy">
<cstring>parRD</cstring>
</property>
</widget>
<widget class="QSpinBox" name="parIRL">
<property name="geometry">
@ -856,6 +908,9 @@
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="buddy">
<cstring>parIPOTR</cstring>
</property>
</widget>
<widget class="QSpinBox" name="parIPOTR">
<property name="geometry">
@ -888,6 +943,9 @@
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="buddy">
<cstring>parESB</cstring>
</property>
</widget>
<widget class="QLineEdit" name="parRD">
<property name="geometry">
@ -923,6 +981,9 @@
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="buddy">
<cstring>parCA</cstring>
</property>
</widget>
<widget class="QLineEdit" name="parESB">
<property name="geometry">
@ -958,6 +1019,9 @@
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="buddy">
<cstring>parSHEATH</cstring>
</property>
</widget>
<widget class="QLabel" name="textLabelKDEE2">
<property name="geometry">
@ -974,6 +1038,9 @@
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="buddy">
<cstring>parKDEE2</cstring>
</property>
</widget>
<widget class="QLabel" name="textLabelKDEE1">
<property name="geometry">
@ -990,6 +1057,9 @@
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="buddy">
<cstring>parKDEE1</cstring>
</property>
</widget>
<widget class="QLineEdit" name="parEF">
<property name="geometry">
@ -1085,6 +1155,9 @@
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="buddy">
<cstring>parKK0R</cstring>
</property>
</widget>
<widget class="QLabel" name="textLabelIPOT">
<property name="geometry">
@ -1101,6 +1174,9 @@
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="buddy">
<cstring>parIPOT</cstring>
</property>
</widget>
<widget class="QSpinBox" name="parIPOT">
<property name="geometry">
@ -1136,6 +1212,9 @@
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="buddy">
<cstring>parERC</cstring>
</property>
</widget>
<widget class="QLineEdit" name="parSHEATH">
<property name="geometry">
@ -1216,6 +1295,9 @@
<property name="text">
<string>Scan</string>
</property>
<property name="buddy">
<cstring>comboScan</cstring>
</property>
</widget>
</item>
<item>
@ -1278,9 +1360,6 @@
<property name="text">
<string>List of values</string>
</property>
<attribute name="buttonGroup">
<string notr="true">listGroup</string>
</attribute>
</widget>
</item>
<item>
@ -1298,6 +1377,9 @@
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="buddy">
<cstring>scanListdz</cstring>
</property>
</widget>
</item>
<item>
@ -1318,9 +1400,6 @@
<property name="checked">
<bool>true</bool>
</property>
<attribute name="buttonGroup">
<string notr="true">listGroup</string>
</attribute>
</widget>
</item>
<item>
@ -1339,6 +1418,9 @@
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="buddy">
<cstring>scanFrom</cstring>
</property>
</widget>
</item>
<item>
@ -1362,6 +1444,9 @@
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="buddy">
<cstring>scanTo</cstring>
</property>
</widget>
</item>
<item>
@ -1385,6 +1470,9 @@
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="buddy">
<cstring>scanStep</cstring>
</property>
</widget>
</item>
<item>
@ -1445,6 +1533,9 @@
<property name="text">
<string>Trim.SP binary</string>
</property>
<property name="buddy">
<cstring>trimbin</cstring>
</property>
</widget>
</item>
<item>
@ -1484,6 +1575,9 @@
<property name="text">
<string>Trim.SP GUI path</string>
</property>
<property name="buddy">
<cstring>pathTrimGUI</cstring>
</property>
</widget>
</item>
<item>
@ -1596,7 +1690,7 @@
<action name="plotProfilesAction">
<property name="icon">
<iconset>
<normaloff>../../.designer/backup/PlotProfiles.png</normaloff>../../.designer/backup/PlotProfiles.png</iconset>
<normaloff>../PlotProfiles.png</normaloff>../PlotProfiles.png</iconset>
</property>
<property name="text">
<string>&amp;Plot Profiles</string>
@ -1650,7 +1744,7 @@
</property>
<property name="icon">
<iconset>
<normaloff>../../.designer/backup/PlotFraction.png</normaloff>../../.designer/backup/PlotFraction.png</iconset>
<normaloff>../PlotFraction.png</normaloff>../PlotFraction.png</iconset>
</property>
<property name="text">
<string>Plot Fractions</string>
@ -1685,6 +1779,10 @@
</property>
</action>
<action name="plotMeanAction">
<property name="icon">
<iconset>
<normaloff>../PlotMean.png</normaloff>../PlotMean.png</iconset>
</property>
<property name="text">
<string>Plot Mean</string>
</property>
@ -1699,6 +1797,8 @@
<layoutdefault spacing="6" margin="11"/>
<tabstops>
<tabstop>tabs</tabstop>
<tabstop>numLayer</tabstop>
<tabstop>layerTable</tabstop>
<tabstop>projComboBox</tabstop>
<tabstop>numberProj</tabstop>
<tabstop>z0</tabstop>
@ -1728,6 +1828,8 @@
<tabstop>parIPOTR</tabstop>
<tabstop>parIRL</tabstop>
<tabstop>scanSeq</tabstop>
<tabstop>comboScan</tabstop>
<tabstop>scandL</tabstop>
<tabstop>radioList</tabstop>
<tabstop>scanList</tabstop>
<tabstop>scanListdz</tabstop>
@ -1735,6 +1837,10 @@
<tabstop>scanFrom</tabstop>
<tabstop>scanTo</tabstop>
<tabstop>scanStep</tabstop>
<tabstop>trimbin</tabstop>
<tabstop>TrimBinBrowse</tabstop>
<tabstop>pathTrimGUI</tabstop>
<tabstop>guiPathBrowse</tabstop>
</tabstops>
<resources/>
<connections>
@ -1941,7 +2047,7 @@
<y>110</y>
</hint>
<hint type="destinationlabel">
<x>749</x>
<x>711</x>
<y>111</y>
</hint>
</hints>
@ -2037,7 +2143,7 @@
<y>89</y>
</hint>
<hint type="destinationlabel">
<x>726</x>
<x>711</x>
<y>91</y>
</hint>
</hints>
@ -2053,7 +2159,7 @@
<y>107</y>
</hint>
<hint type="destinationlabel">
<x>731</x>
<x>711</x>
<y>103</y>
</hint>
</hints>
@ -2069,7 +2175,7 @@
<y>162</y>
</hint>
<hint type="destinationlabel">
<x>727</x>
<x>711</x>
<y>154</y>
</hint>
</hints>
@ -2106,6 +2212,38 @@
</hint>
</hints>
</connection>
<connection>
<sender>Start</sender>
<signal>clicked()</signal>
<receiver>TrimSPGUI4</receiver>
<slot>CollectValues()</slot>
<hints>
<hint type="sourcelabel">
<x>523</x>
<y>541</y>
</hint>
<hint type="destinationlabel">
<x>712</x>
<y>550</y>
</hint>
</hints>
</connection>
<connection>
<sender>plotMeanAction</sender>
<signal>activated()</signal>
<receiver>TrimSPGUI4</receiver>
<slot>PlotMean()</slot>
<hints>
<hint type="sourcelabel">
<x>-1</x>
<y>-1</y>
</hint>
<hint type="destinationlabel">
<x>355</x>
<y>310</y>
</hint>
</hints>
</connection>
</connections>
<slots>
<slot>DirectoryBrowse()</slot>
@ -2129,7 +2267,4 @@
<slot>findDensity()</slot>
<slot>PlotMean()</slot>
</slots>
<buttongroups>
<buttongroup name="listGroup"/>
</buttongroups>
</ui>

View File

@ -5,7 +5,7 @@
#################################################################################
## Form generated from reading UI file 'TrimSPGUI4.ui'
##
## Created: Thu Feb 26 13:34:12 2015
## Created: Wed Jun 24 14:33:41 2015
## by: Qt User Interface Compiler version 4.8.6
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
@ -194,8 +194,8 @@ sub layout14 {
return shift->{layout14};
}
sub vboxLayout {
return shift->{vboxLayout};
sub fileNames {
return shift->{fileNames};
}
sub textLabelFN {
@ -210,8 +210,8 @@ sub textLabelPath {
return shift->{textLabelPath};
}
sub hboxLayout {
return shift->{hboxLayout};
sub outputDirectory {
return shift->{outputDirectory};
}
sub workPath {
@ -509,7 +509,7 @@ sub setupUi {
$sizePolicy->setHeightForWidth( $trimSPGUI4->sizePolicy()->hasHeightForWidth() );
$trimSPGUI4->setSizePolicy( $sizePolicy );
my $icon = Qt::Icon();
$icon->addPixmap(Qt::Pixmap("icon.png"), Qt::Icon::Normal(), Qt::Icon::Off() );
$icon->addPixmap(Qt::Pixmap("../icon.png"), Qt::Icon::Normal(), Qt::Icon::Off() );
$trimSPGUI4->setWindowIcon( $icon );
my $fileSaveAction = Qt::Action($trimSPGUI4);
$self->{fileSaveAction} = $fileSaveAction;
@ -528,7 +528,7 @@ sub setupUi {
$self->{plotProfilesAction} = $plotProfilesAction;
$plotProfilesAction->setObjectName( "plotProfilesAction" );
my $icon1 = Qt::Icon();
$icon1->addPixmap(Qt::Pixmap("../../.designer/backup/PlotProfiles.png"), Qt::Icon::Normal(), Qt::Icon::Off() );
$icon1->addPixmap(Qt::Pixmap("../PlotProfiles.png"), Qt::Icon::Normal(), Qt::Icon::Off() );
$plotProfilesAction->setIcon( $icon1 );
my $helpContentsAction = Qt::Action($trimSPGUI4);
$self->{helpContentsAction} = $helpContentsAction;
@ -549,7 +549,7 @@ sub setupUi {
$plotFractionsAction->setChecked( 0 );
$plotFractionsAction->setEnabled( 1 );
my $icon4 = Qt::Icon();
$icon4->addPixmap(Qt::Pixmap("../../.designer/backup/PlotFraction.png"), Qt::Icon::Normal(), Qt::Icon::Off() );
$icon4->addPixmap(Qt::Pixmap("../PlotFraction.png"), Qt::Icon::Normal(), Qt::Icon::Off() );
$plotFractionsAction->setIcon( $icon4 );
my $fileStartAction = Qt::Action($trimSPGUI4);
$self->{fileStartAction} = $fileStartAction;
@ -560,6 +560,9 @@ sub setupUi {
my $plotMeanAction = Qt::Action($trimSPGUI4);
$self->{plotMeanAction} = $plotMeanAction;
$plotMeanAction->setObjectName( "plotMeanAction" );
my $icon5 = Qt::Icon();
$icon5->addPixmap(Qt::Pixmap("../PlotMean.png"), Qt::Icon::Normal(), Qt::Icon::Off() );
$plotMeanAction->setIcon( $icon5 );
my $widget = Qt::Widget( $trimSPGUI4 );
$self->{widget} = $widget;
$widget->setObjectName( "widget" );
@ -757,41 +760,41 @@ sub setupUi {
$self->{layout14} = $layout14;
$layout14->setObjectName( "layout14" );
$layout14->setGeometry( Qt::Rect(10, 20, 221, 100) );
my $vboxLayout = Qt::VBoxLayout( $layout14 );
$self->{vboxLayout} = $vboxLayout;
$vboxLayout->setSpacing( 0 );
$vboxLayout->setMargin( 0 );
$vboxLayout->setObjectName( "vboxLayout" );
$vboxLayout->setContentsMargins(0, 0, 0, 0 );
my $fileNames = Qt::VBoxLayout( $layout14 );
$self->{FileNames} = $fileNames;
$fileNames->setSpacing( 0 );
$fileNames->setMargin( 0 );
$fileNames->setObjectName( "fileNames" );
$fileNames->setContentsMargins(0, 0, 0, 0 );
my $textLabelFN = Qt::Label( $layout14 );
$self->{textLabelFN} = $textLabelFN;
$textLabelFN->setObjectName( "textLabelFN" );
$textLabelFN->setWordWrap( 0 );
$vboxLayout->addWidget( $textLabelFN );
$fileNames->addWidget( $textLabelFN );
my $fileNamePrefix = Qt::LineEdit( $layout14 );
$self->{fileNamePrefix} = $fileNamePrefix;
$fileNamePrefix->setObjectName( "fileNamePrefix" );
$vboxLayout->addWidget( $fileNamePrefix );
$fileNames->addWidget( $fileNamePrefix );
my $textLabelPath = Qt::Label( $layout14 );
$self->{textLabelPath} = $textLabelPath;
$textLabelPath->setObjectName( "textLabelPath" );
$textLabelPath->setWordWrap( 0 );
$vboxLayout->addWidget( $textLabelPath );
$fileNames->addWidget( $textLabelPath );
my $hboxLayout = Qt::HBoxLayout( );
$self->{hboxLayout} = $hboxLayout;
$hboxLayout->setSpacing( 6 );
$hboxLayout->setObjectName( "hboxLayout" );
my $outputDirectory = Qt::HBoxLayout( );
$self->{OutputDirectory} = $outputDirectory;
$outputDirectory->setSpacing( 6 );
$outputDirectory->setObjectName( "outputDirectory" );
my $workPath = Qt::LineEdit( $layout14 );
$self->{workPath} = $workPath;
$workPath->setObjectName( "workPath" );
$hboxLayout->addWidget( $workPath );
$outputDirectory->addWidget( $workPath );
my $browse = Qt::PushButton( $layout14 );
$self->{browse} = $browse;
@ -803,10 +806,10 @@ sub setupUi {
$sizePolicy4->setHeightForWidth( $browse->sizePolicy()->hasHeightForWidth() );
$browse->setSizePolicy( $sizePolicy4 );
$hboxLayout->addWidget( $browse );
$outputDirectory->addWidget( $browse );
$vboxLayout->addLayout( $hboxLayout );
$fileNames->addLayout( $outputDirectory );
my $splitter = Qt::Splitter( $groupBox15 );
$self->{splitter} = $splitter;
@ -1233,7 +1236,42 @@ sub setupUi {
$self->{helpMenu} = $helpMenu;
$helpMenu->setObjectName( "helpMenu" );
$trimSPGUI4->setMenuBar( $menuBar );
Qt::Widget::setTabOrder( $tabs, $projComboBox );
$textLabel1_4->setBuddy( $numLayer );
$z0Label->setBuddy( $z0 );
$numberLabel->setBuddy( $numberProj );
$energyLabel->setBuddy( $valEnergy );
$textLabel1->setBuddy( $projComboBox );
$sigAngleLabel->setBuddy( $sigAngle );
$seedLabel->setBuddy( $ranSeed );
$albleLabel->setBuddy( $valAngle );
$sigELabel->setBuddy( $sigEnergy );
$dzLabel->setBuddy( $dz );
$textLabelFN->setBuddy( $fileNamePrefix );
$textLabelPath->setBuddy( $workPath );
$textLabelEmpty->setBuddy( $lineEditEmpty );
$textLabelEF->setBuddy( $parEF );
$textLabelIRL->setBuddy( $parIRL );
$textLabelKK0->setBuddy( $parKK0 );
$textLabelRD->setBuddy( $parRD );
$textLabelIPOTR->setBuddy( $parIPOTR );
$textLabelESB->setBuddy( $parESB );
$textLabelCA->setBuddy( $parCA );
$textLabelSHEATH->setBuddy( $parSHEATH );
$textLabelKDEE2->setBuddy( $parKDEE2 );
$textLabelKDEE1->setBuddy( $parKDEE1 );
$textLabelKK0R->setBuddy( $parKK0R );
$textLabelIPOT->setBuddy( $parIPOT );
$textLabelERC->setBuddy( $parERC );
$label->setBuddy( $comboScan );
$dzListLabel->setBuddy( $scanListdz );
$textLabel2->setBuddy( $scanFrom );
$textLabel2_2->setBuddy( $scanTo );
$textLabel2_2_2_2->setBuddy( $scanStep );
$label_2->setBuddy( $trimbin );
$label_3->setBuddy( $pathTrimGUI );
Qt::Widget::setTabOrder( $tabs, $numLayer );
Qt::Widget::setTabOrder( $numLayer, $layerTable );
Qt::Widget::setTabOrder( $layerTable, $projComboBox );
Qt::Widget::setTabOrder( $projComboBox, $numberProj );
Qt::Widget::setTabOrder( $numberProj, $z0 );
Qt::Widget::setTabOrder( $z0, $dz );
@ -1262,13 +1300,19 @@ sub setupUi {
Qt::Widget::setTabOrder( $parIPOT, $parIPOTR );
Qt::Widget::setTabOrder( $parIPOTR, $parIRL );
Qt::Widget::setTabOrder( $parIRL, $scanSeq );
Qt::Widget::setTabOrder( $scanSeq, $radioList );
Qt::Widget::setTabOrder( $scanSeq, $comboScan );
Qt::Widget::setTabOrder( $comboScan, $scandL );
Qt::Widget::setTabOrder( $scandL, $radioList );
Qt::Widget::setTabOrder( $radioList, $scanList );
Qt::Widget::setTabOrder( $scanList, $scanListdz );
Qt::Widget::setTabOrder( $scanListdz, $radioLoop );
Qt::Widget::setTabOrder( $radioLoop, $scanFrom );
Qt::Widget::setTabOrder( $scanFrom, $scanTo );
Qt::Widget::setTabOrder( $scanTo, $scanStep );
Qt::Widget::setTabOrder( $scanStep, $trimbin );
Qt::Widget::setTabOrder( $trimbin, $trimBinBrowse );
Qt::Widget::setTabOrder( $trimBinBrowse, $pathTrimGUI );
Qt::Widget::setTabOrder( $pathTrimGUI, $guiPathBrowse );
$menuBar->addAction( $file->menuAction() );
$menuBar->addAction( $plot->menuAction() );
@ -1311,6 +1355,8 @@ sub setupUi {
Qt::Object::connect($guiPathBrowse, SIGNAL 'clicked()' , $trimSPGUI4, SLOT 'GUIPath()' );
Qt::Object::connect($numLayer, SIGNAL 'valueChanged(int)' , $trimSPGUI4, SLOT 'PrepLayers()' );
Qt::Object::connect($layerTable, SIGNAL 'cellChanged(int,int)' , $trimSPGUI4, SLOT 'findDensity()' );
Qt::Object::connect($start, SIGNAL 'clicked()' , $trimSPGUI4, SLOT 'CollectValues()' );
Qt::Object::connect($plotMeanAction, SIGNAL 'activated()' , $trimSPGUI4, SLOT 'PlotMean()' );
$tabs->setCurrentIndex( 0 );
@ -1362,7 +1408,7 @@ sub retranslateUi {
$self->{plotMeanAction}->setShortcut( Qt::KeySequence( Qt::Application::translate( 'TrimSPGUI4', "Ctrl+P, Ctrl+M", undef, Qt::Application::UnicodeUTF8() ) ) );
$self->{groupLayer}->setTitle( Qt::Application::translate( 'TrimSPGUI4', "Layers", undef, Qt::Application::UnicodeUTF8() ) );
$self->{textLabel1_4}->setText( Qt::Application::translate( 'TrimSPGUI4', "Number of Layers", undef, Qt::Application::UnicodeUTF8() ) );
$self->{numLayer}->setWhatsThis( Qt::Application::translate( 'TrimSPGUI4', "Select the number of the layers of your structure (maximum 7 layers).", undef, Qt::Application::UnicodeUTF8() ) );
$self->{numLayer}->setWhatsThis( Qt::Application::translate( 'TrimSPGUI4', "Select the number of the layers of your structure (maximum 100 layers).", undef, Qt::Application::UnicodeUTF8() ) );
my $layerTable = $self->{layerTable};
if ( $layerTable->columnCount < 3 ) {
$layerTable->setColumnCount(3);