wxGUI/controls
wxGUI Controls
wxGUI – controls |
commands.json | Some often used commands are listed here. |
device_controls.json | All the controls and status entries from the main window are listed here. These are data communicated with the MCA. |
display_controls.json | Parameters for the graphics displays. |
main_menu.json | Folder with configuration files used for all code components. |
plot_controls.json | Folder with configuration files used for all code components. |
The GUI code is common to all MCA. The differences between the MCA are encoded in the wxGUI/controls data files.
wxGUI/controls
commands.json: A number of commands are used repeatedly within the GUI. To enforce consistency, they are listed here and read by the GUI on start up.
device_controls.json: The spreadsheet-like data displays in the main GUI window are controlled from this file. It consists entirely of data stored in the embedded ARM processor of each MCA.
display_controls.json: From the main pull-down menus the customer can launch various displays, for histograms, etc. All display and operations controls are loaded from this file; eg the fit range for a peak fit in a histogram.
main_menu.json: The contents of this file is used to populate the pull down menu with the actions that are apprpriate for each MCA.
plot_controls.json: The contents of this file governs the appearance of the graphical displays. Edit to change titles, lablels, colors, line thicknesses etc.
wxGUI Language
Language: For each item in any of the controls/ files there is a help-string. This help string can be translated into a different language – in order to present the wxGUI in a language other than English.
New Language: To provide a translation of the GUI into another language, eg Chinese, follow these steps.
New folder: Duplicate the entire folder controls and name it controls_cn. Translate all the help strings inside the new folder into Chinese.
Redirect controls root: In the original controls folder, edit gui_controls.json.
Change "controls_root": "./controls/" to "controls_root": "./controls_cn/"