@@ -169,6 +169,10 @@ void MGUIMainMelinator::Create()
169169 MenuFiles->AddEntry (" Choose files and isotopes" , c_ChooseCalibrationFiles);
170170 MenuFiles->AddEntry (" Load files" , c_LoadLast);
171171 MenuFiles->AddSeparator ();
172+ MenuFiles->AddLabel (" Calibration result" );
173+ MenuFiles->AddEntry (" Save As..." , c_SaveAs);
174+ MenuFiles->AddEntry (" Save" , c_Save);
175+ MenuFiles->AddSeparator ();
172176 MenuFiles->AddLabel (" Configuration file" );
173177 // MenuFiles->AddEntry("Open", c_LoadConfig);
174178 MenuFiles->AddEntry (" Open -> use command line at launch" , c_LoadConfig);
@@ -179,18 +183,7 @@ void MGUIMainMelinator::Create()
179183 MenuFiles->AddSeparator ();
180184 MenuFiles->AddEntry (" Exit" , c_Exit);
181185 MenuFiles->Associate (this );
182- MenuBar->AddPopup (" Input" , MenuFiles, MenuBarItemLayoutLeft);
183-
184- TGPopupMenu* MenuResults = new TGPopupMenu (gClient ->GetRoot ());
185- MenuResults->AddLabel (" Calibration file" );
186- MenuResults->AddEntry (" Save As..." , c_SaveAs);
187- MenuResults->AddEntry (" Save" , c_Save);
188- MenuResults->AddSeparator ();
189- MenuResults->AddLabel (" Calibration report" );
190- MenuResults->AddEntry (" Create and Show" , c_ShowReport);
191- // MenuResults->AddSeparator();
192- MenuResults->Associate (this );
193- MenuBar->AddPopup (" Output" , MenuResults, MenuBarItemLayoutLeft);
186+ MenuBar->AddPopup (" Files" , MenuFiles, MenuBarItemLayoutLeft);
194187
195188 TGPopupMenu* MenuInfo = new TGPopupMenu (fClient ->GetRoot ());
196189 MenuInfo->AddEntry (" About" , c_About);
@@ -939,10 +932,6 @@ bool MGUIMainMelinator::ProcessMessage(long Message, long Parameter1, long Param
939932 Status = OnSaveAs ();
940933 break ;
941934
942- case c_ShowReport:
943- Status = OnShowReport ();
944- break ;
945-
946935 case c_About:
947936 Status = OnAbout ();
948937 break ;
@@ -1453,22 +1442,6 @@ bool MGUIMainMelinator::OnSaveAs()
14531442// //////////////////////////////////////////////////////////////////////////////
14541443
14551444
1456- // ! Actions when the show report button has been pressed
1457- bool MGUIMainMelinator::OnShowReport ()
1458- {
1459- bool Return = m_Melinator.CreateReport ();
1460-
1461- if (Return == false ) {
1462- mgui<<" Unable to create calibration report" <<error;
1463- }
1464-
1465- return Return;
1466- }
1467-
1468-
1469- // //////////////////////////////////////////////////////////////////////////////
1470-
1471-
14721445bool MGUIMainMelinator::OnLoad ()
14731446{
14741447 return false ;
0 commit comments