6 #include "ui_partspectcontrollerform.h"
12 #include <QFileDialog>
22 Ui::frmPartSpectController
ui{};
31 ,lastInputDir(
VP1Settings::defaultFileSelectDirectory())
44 m_d->
ui.setupUi(
this);
46 m_d->
ui.lblFileName->setText(
"...");
58 m_d->
ui.rbtnNeutron->setChecked(
true);
70 message(
"Warning: State data in .vp1 file has unsupported version ("+
str(
s.version())+
")");
74 s.restore(
m_d->
ui.rbtnBaryon
102 ,
m_d->
ui.rbtnProton);
112 QString
fileName = QFileDialog::getOpenFileName(NULL
115 ,tr(
"Root files (*.root)"));
118 m_d->
ui.lblFileName->setText(fileInfo.fileName());
126 if(
m_d->
ui.rbtnBaryon->isChecked()) {
129 }
else if(
m_d->
ui.rbtnE->isChecked()) {
132 }
else if(
m_d->
ui.rbtnGamma->isChecked()) {
135 }
else if(
m_d->
ui.rbtnLepton->isChecked()) {
138 }
else if(
m_d->
ui.rbtnMeson->isChecked()) {
141 }
else if(
m_d->
ui.rbtnNeutron->isChecked()) {
144 }
else if(
m_d->
ui.rbtnNucleus->isChecked()) {
147 }
else if(
m_d->
ui.rbtnPi->isChecked()) {