Added help menu entries
This commit is contained in:
@ -293,11 +293,39 @@ function loadGraphicsMenu(panel){
|
||||
menuGraphicsPopup = new MenuPopup();
|
||||
let exportActionEntry = new ActionEntry("Export", graphs.displayExportPopup, () => {menuGraphicsPopup.hide()});
|
||||
let curvesSettingsActionEntry = new ActionEntry("Curves settings", () => {curvesSettingsPopup.show();}, () => {menuGraphicsPopup.hide()});
|
||||
let removeCursorHelpEntry = new HelpEntry("How to remove the cursor", "You can double click/tap on any graph.");
|
||||
|
||||
let hideShowInstrumentDevicesHelpEntry = new HelpEntry("Hide/show instrument and devices", "If the 'instrument and devices' label is taking too much space, you can click on it (not on the house at the left) to hide it. " +
|
||||
"You can then click once again on the left gray square to make it appear again."
|
||||
);
|
||||
let toggleZoomModeHelpEntry = new HelpEntry("Toggle the zoom mode", "On the top curves bar, a horizontal double arrow means that a zoom gesture will trigger a zoom on the time axis of all the graphs. "
|
||||
+ "Clicking on it will change the zoom mode to the y direction. If you perform a zoom gesture on a graph, it will zoom in the y direction while disabling the autoscale for this graph. "
|
||||
+ "You can go back to the time zoom mode by clicking again on the arrow."
|
||||
)
|
||||
let hideShowCursorHelpEntry = new HelpEntry("Hide/show the cursor", "To show the cursor, you can click on any graph. To hide it, you can double click/tap on any graph.");
|
||||
let hideShowLegendsHelpEntry = new HelpEntry("Hide/showe the legends", "You can remove all legends by clicking on the cross of one of them. They will appear again if you click on any graph.")
|
||||
|
||||
let showMoreCurvesHelpEntry = new HelpEntry("Show more curves", "On each graph, you can click on the unit at the top right hand corner to open a selection window. There, you can choose which block you want to display. " +
|
||||
"You can also add curves (especially parameters) with the curves settings."
|
||||
);
|
||||
let historicalDataHelpEntry = new HelpEntry("Look for historical data", "Clicking on the date displayed at the top of the curves opens a popup."+
|
||||
"You can then select the date you want to jump to, and the time at which you want the available curves. You can also go to now. The date displayed will be the one corresponding "
|
||||
+ "to the lower bound of the viewing window.");
|
||||
|
||||
let aboutCurvesSettingsHelpEntry = new HelpEntry("About curves settings", "To indicate a variable, you need to type the SECOP module name (case sensitive) of the variable you want to act on. " +
|
||||
"Leaving the parameter empty means that you will act on the value parameter (but you can still write 'value'). For the category, '-' means that this curve will be hidden. To display a curve which is not displayed yet, the category has to be filled. "
|
||||
+ "The character '*' means that the curve will be displayed in the block of its unit. If one of the fields are filled (for the category, other than '*') but not the variable, an error will be thrown. "
|
||||
+ "If nothing is set for the category (except '*'), the color and the unit, the row will be ignored. Closing the popup via the cross or the 'Apply' button will save your configuration and reload the curves. "
|
||||
+ "You can discard your changes via the 'Cancel' button.")
|
||||
menuGraphicsPopup.addEntry(exportActionEntry)
|
||||
menuGraphicsPopup.addEntry(curvesSettingsActionEntry);
|
||||
menuGraphicsPopup.addHorizontalDivider();
|
||||
menuGraphicsPopup.addEntry(removeCursorHelpEntry);
|
||||
menuGraphicsPopup.addEntry(hideShowInstrumentDevicesHelpEntry);
|
||||
menuGraphicsPopup.addEntry(toggleZoomModeHelpEntry);
|
||||
menuGraphicsPopup.addEntry(hideShowCursorHelpEntry);
|
||||
menuGraphicsPopup.addEntry(hideShowLegendsHelpEntry);
|
||||
menuGraphicsPopup.addEntry(showMoreCurvesHelpEntry);
|
||||
menuGraphicsPopup.addEntry(historicalDataHelpEntry);
|
||||
menuGraphicsPopup.addEntry(aboutCurvesSettingsHelpEntry);
|
||||
|
||||
let graphicsMenuControl = new Control("res/menu_white_wide.png", "res/menu_white_wide.png", "Menu", () => {
|
||||
datesPopup.hide();
|
||||
|
Reference in New Issue
Block a user