Connected plot functionality after reshuffeling of files.

This commit is contained in:
salman 2015-02-23 11:27:19 +01:00
parent ab5b8480cf
commit 6fbaa00048
3 changed files with 47 additions and 8 deletions

View File

@ -838,7 +838,7 @@ sub PlotProfiles()
if ($filenames ne "" ) {
my $TrimPath = $ENV{'PERLLIB'};
# Now that we have the file list send it to root macro for plotting.
my $cmd='root -n -l "'.$TrimPath.'/plotRge.C(\"'.$filenames.'\")"&';
my $cmd='root -n -l "'.$TrimPath.'/../plotRge.C(\"'.$filenames.'\")"&';
my $pid=system($cmd);
}
}
@ -857,7 +857,7 @@ sub PlotFraction()
if ($file ne "" ) {
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 $cmd='root -n -l "'.$TrimPath.'/../plotFrc.C(\"'.$file.'\")"&';
my $pid=system($cmd);
}
@ -878,7 +878,7 @@ sub PlotMean()
if ($file ne "" ) {
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 $cmd='root -n -l "'.$TrimPath.'/../plotMean.C(\"'.$file.'\")"&';
my $pid=system($cmd);
}

View File

@ -1671,7 +1671,10 @@
</action>
<action name="plotMeanAction">
<property name="text">
<string>Plot Mean/Stragg.</string>
<string>Plot Mean</string>
</property>
<property name="toolTip">
<string>Plot Mean/Straggling</string>
</property>
<property name="shortcut">
<string>Ctrl+P, Ctrl+M</string>
@ -1743,8 +1746,8 @@
<slot>DirectoryBrowse()</slot>
<hints>
<hint type="sourcelabel">
<x>689</x>
<y>427</y>
<x>686</x>
<y>425</y>
</hint>
<hint type="destinationlabel">
<x>20</x>
@ -2104,6 +2107,38 @@
</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>360</x>
<y>310</y>
</hint>
</hints>
</connection>
<connection>
<sender>numLayer</sender>
<signal>valueChanged(int)</signal>
<receiver>TrimSPGUI4</receiver>
<slot>PrepLayers()</slot>
<hints>
<hint type="sourcelabel">
<x>182</x>
<y>94</y>
</hint>
<hint type="destinationlabel">
<x>720</x>
<y>358</y>
</hint>
</hints>
</connection>
</connections>
<slots>
<slot>DirectoryBrowse()</slot>
@ -2125,6 +2160,7 @@
<slot>TrimBin()</slot>
<slot>GUIPath()</slot>
<slot>findDensity()</slot>
<slot>PlotMean()</slot>
</slots>
<buttongroups>
<buttongroup name="listGroup"/>

View File

@ -5,7 +5,7 @@
#################################################################################
## Form generated from reading UI file 'TrimSPGUI4.ui'
##
## Created: Fri Feb 20 18:27:08 2015
## Created: Mon Feb 23 11:19:21 2015
## by: Qt User Interface Compiler version 4.8.6
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
@ -1308,6 +1308,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($plotMeanAction, SIGNAL 'activated()' , $trimSPGUI4, SLOT 'PlotMean()' );
Qt::Object::connect($numLayer, SIGNAL 'valueChanged(int)' , $trimSPGUI4, SLOT 'PrepLayers()' );
$tabs->setCurrentIndex( 0 );
@ -1354,7 +1356,8 @@ sub retranslateUi {
$self->{fileOpenAction}->setText( Qt::Application::translate( 'TrimSPGUI4', "&Open...", undef, Qt::Application::UnicodeUTF8() ) );
$self->{fileOpenAction}->setIconText( Qt::Application::translate( 'TrimSPGUI4', "Open", undef, Qt::Application::UnicodeUTF8() ) );
$self->{fileOpenAction}->setShortcut( Qt::KeySequence( Qt::Application::translate( 'TrimSPGUI4', "Ctrl+O", undef, Qt::Application::UnicodeUTF8() ) ) );
$self->{plotMeanAction}->setText( Qt::Application::translate( 'TrimSPGUI4', "Plot Mean/Stragg.", undef, Qt::Application::UnicodeUTF8() ) );
$self->{plotMeanAction}->setText( Qt::Application::translate( 'TrimSPGUI4', "Plot Mean", undef, Qt::Application::UnicodeUTF8() ) );
$self->{plotMeanAction}->setToolTip( Qt::Application::translate( 'TrimSPGUI4', "Plot Mean/Straggling", undef, Qt::Application::UnicodeUTF8() ) );
$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() ) );