in musrview it is now possible to enable/disable a crosshair cursor by pressing 'c'.

This commit is contained in:
2016-08-24 15:37:14 +02:00
parent ba11658e5b
commit 6585032df0
2 changed files with 9 additions and 0 deletions

View File

@ -4,6 +4,8 @@
changes since 0.17.0
===================================
NEW 2016-08-24 in musrview it is now possible to enable/disable a
crosshair cursor by pressing 'c'.
NEW 2016-04-28 updated licence info in musredit and added paramList
feature to the msr2data GUI.
NEW 2016-04-28 msr2data gets a new option: paramList which allows to

View File

@ -1140,6 +1140,13 @@ void PMusrCanvas::HandleCmdKey(Int_t event, Int_t x, Int_t y, TObject *selected)
cout << "**INFO** averaging of a single data set doesn't make any sense, will ignore 'a' ..." << endl;
return;
}
} else if (x == 'c') {
Int_t state = fDataTheoryPad->GetCrosshair();
if (state == 0)
fDataTheoryPad->SetCrosshair(2);
else
fDataTheoryPad->SetCrosshair(0);
fMainCanvas->Update();
} else {
fMainCanvas->Update();
}