// ----------------------------------------------------------------------------- /// @file MenuText.h /// @brief File description // ----------------------------------------------------------------------------- // Micro-Key bv // Industrieweg 28, 9804 TG Noordhorn // Postbus 92, 9800 AB Zuidhorn // The Netherlands // Tel: +31 594 503020 // Fax: +31 594 505825 // Email: support@microkey.nl // Web: www.microkey.nl // ----------------------------------------------------------------------------- /// $Revision$ /// $Author$ /// $Date$ // (c) 2015 Micro-Key bv // ----------------------------------------------------------------------------- /** * %MenuText implementation * \defgroup MenuText Package MenuText * \ingroup hsb-mrts * @{ */ #ifndef MENUTEXT_H_ #define MENUTEXT_H_ // ----------------------------------------------------------------------------- // Include files // ----------------------------------------------------------------------------- #include "MenuCore.h" // ----------------------------------------------------------------------------- // Constant and macro definitions // ----------------------------------------------------------------------------- #define MENUTEXT_NUMBER_OF_LANGUAGES (2) // DEFINE STRING LENGTH FOR DIFFERENT ENTRIES #define MENUTEXT_ROW1_POPUP_MAX_LENGTH (17) #define MENUTEXT_POPUP_MESSAGE_LENGTH (21) // Repairscreen string length #define MENUTEXT_REPAIRSCREEN_LENGTH (7) #define MENUTEXT_PRESET_MAX_LENGTH (7) #define MENUTEXT_CHANGEPIN_MAX_LENGTH (15) // ----------------------- // WARNINGS // ----------------------- static const char MenuText_WARNING[MENUTEXT_NUMBER_OF_LANGUAGES][MENUTEXT_ROW1_POPUP_MAX_LENGTH] = { // MAX 17 CHARACTERS { "!!WARNING!!" }, { "!!ATTENTION!!" } }; static const char MenuText_WARNING_COVER_OPEN[MENUTEXT_NUMBER_OF_LANGUAGES][MENUTEXT_POPUP_MESSAGE_LENGTH] = { // MAX 20 CHARACTERS { "COVER OPEN" }, { "CAPOT OUVERT" } }; // ----------------------- // ERRORS // ----------------------- static const char MenuText_ERROR[MENUTEXT_NUMBER_OF_LANGUAGES][MENUTEXT_ROW1_POPUP_MAX_LENGTH] = { // MAX 17 CHARACTERS { "!!ERROR!!" }, { "ERREUR!!" } }; static const char MenuText_ERROR_COVER_OPEN[MENUTEXT_NUMBER_OF_LANGUAGES][MENUTEXT_POPUP_MESSAGE_LENGTH] = { // MAX 20 CHARACTERS { "COVER OPEN" }, { "CAPOT OUVERT" } }; static const char MenuText_ERROR_POWER_LOSS[MENUTEXT_NUMBER_OF_LANGUAGES][MENUTEXT_POPUP_MESSAGE_LENGTH] = { // MAX 20 CHARACTERS { "POWERLOSS DETECTED" }, { "PERTE DE PUISSANCE" } }; static const char MenuText_ERROR_PROCESS_FAILED[MENUTEXT_NUMBER_OF_LANGUAGES][MENUTEXT_POPUP_MESSAGE_LENGTH] = { // MAX 20 CHARACTERS { "PROCESS FAILED" }, { "PROCESS ECHOUE" } }; static const char MenuText_ERROR_CRC_PIN[MENUTEXT_NUMBER_OF_LANGUAGES][MENUTEXT_POPUP_MESSAGE_LENGTH] = { // MAX 20 CHARACTERS { "PIN CRC ERROR" }, { "ERREUR PIN CRC" } }; static const char MenuText_ERROR_CRC_PARAMETERS[MENUTEXT_NUMBER_OF_LANGUAGES][MENUTEXT_POPUP_MESSAGE_LENGTH] = { // MAX 20 CHARACTERS { "PARAMETERS CRC ERROR" }, { "ERREUR PARAMETRE CRC" } }; static const char MenuText_ERROR_CRC_CALIBRATION[MENUTEXT_NUMBER_OF_LANGUAGES][MENUTEXT_POPUP_MESSAGE_LENGTH] = { // MAX 20 CHARACTERS { "SETPOINT CRC ERROR" }, { "ERREUR SETPOINT CRC" } }; static const char MenuText_ERROR_CRC_PRESETS[MENUTEXT_NUMBER_OF_LANGUAGES][MENUTEXT_POPUP_MESSAGE_LENGTH] = { // MAX 20 CHARACTERS { "PRESETS CRC ERROR" }, { "ERREUR PREREGL. CRC" } }; // ----------------------- // Common screen messages // ----------------------- static const char MenuText_X_CONTINUE[MENUTEXT_NUMBER_OF_LANGUAGES][MENUTEXT_POPUP_MESSAGE_LENGTH] = { // MAX 20 CHARACTERS { "Hit X to continue" }, { "Continuer : touche X" } }; static const char MenuText_REPAIR_SCREEN[MENUTEXT_NUMBER_OF_LANGUAGES][4][MENUTEXT_REPAIRSCREEN_LENGTH] = { // MAX 7 CHARACTERS { "total", // Indicates the total repair time "remain", // Indicates the remaining repair time "R", // Row identifier. DO NOT USE MORE THAN ONE LETTER! The number of the row (1,2,3) is attached dynamically "ERROR" // Error identifier in case a ROW is in error-state. Will be written instead of the current voltage }, { "total", "reste", "R", "ERREUR" } }; static const char MenuText_REPAIR_SCREEN_INIT[MENUTEXT_NUMBER_OF_LANGUAGES][MENUTEXT_ROW1_POPUP_MAX_LENGTH] = { // MAX 17 CHARACTERS { "Initialising" // Indicates start of a repair }, { "Initialisation" } }; static const char MenuText_PAUSE[MENUTEXT_NUMBER_OF_LANGUAGES][5][MENUTEXT_POPUP_MESSAGE_LENGTH] = { // MAX 20 CHARACTERS { "REPAIR BUSY", "Hit X to PAUSE", "!!PAUSE!!", "Hit ENT to continue", "Hit X to RESET" }, { "TRAITEMENT EN COURS", "Pause : touche x", "!!PAUSE!!", "Continuer: ENTREE", "Reinit : touche X" } }; static const char MenuText_FINISH[MENUTEXT_NUMBER_OF_LANGUAGES][3][MENUTEXT_POPUP_MESSAGE_LENGTH] = { // MAX 20 CHARACTERS { "REPAIR FINISHED", "Error in row", "Hit ENT to continue", }, { "TRAITEMENT TERMINE", "Continuer : ENTREE" } }; static const char MenuText_PRINT_PRESET[MENUTEXT_NUMBER_OF_LANGUAGES][5][MENUTEXT_PRESET_MAX_LENGTH] = { // MAX 7 CHARACTERS - MIND THE COLON, IT MUST BE CALCULATED INTO THE MAX CHARACTERS { "Preset", "info", "Start:", "Time:", "Volt:" }, { "Preset", "info", "Start:", "Temps:", "Volt:" } }; static const char MenuText_CHANGE_PIN[MENUTEXT_NUMBER_OF_LANGUAGES][2][MENUTEXT_CHANGEPIN_MAX_LENGTH] = { // MAX 15 CHARACTERS { " New PIN:", " Repeat PIN:" }, { " Nouveau PIN:", "Confirmer PIN:" } }; static const char MenuText_INTERLOCK_STATUS[MENUTEXT_NUMBER_OF_LANGUAGES][3][MENUTEXT_POPUP_MESSAGE_LENGTH] = { // MAX 20 CHARACTERS { "Cover Interlock is", "closed", "open" }, { "Le capot est :", "ferme", "ouvert" } }; static const char MenuText_CONFIRM_PIN[MENUTEXT_NUMBER_OF_LANGUAGES][2][MENUTEXT_POPUP_MESSAGE_LENGTH] = { // MAX 20 CHARACTERS { "PIN OK", "PIN DENIED" }, { "PIN OK", "PIN REFUSE" } }; static const char MenuText_CONFIRM_NEW_PIN[MENUTEXT_NUMBER_OF_LANGUAGES][2][MENUTEXT_POPUP_MESSAGE_LENGTH] = { // MAX 20 CHARACTERS { "New PIN accepted", "New PIN denied" }, { "Nouveau PIN accepte", "Nouveau PIN refuse" } }; static const char MenuText_SAFE_PRESET[MENUTEXT_NUMBER_OF_LANGUAGES][MENUTEXT_POPUP_MESSAGE_LENGTH] = { // MAX 20 CHARACTERS { "Preset saved" }, { "Preregl. sauvegarde" } }; static const char MenuText_SELECT_PRESET[MENUTEXT_NUMBER_OF_LANGUAGES][MENUTEXT_POPUP_MESSAGE_LENGTH - 3] = { // MAX 17 CHARACTERS { "Selected preset:" }, { "Prereglage n° :" } }; static const char MenuText_SAFE_CONSTANTS[MENUTEXT_NUMBER_OF_LANGUAGES][MENUTEXT_POPUP_MESSAGE_LENGTH] = { // MAX 20 CHARACTERS { "Constants saved" }, { "Valeurs sauvegardees" } }; static const char MenuText_INSERT_PIN[MENUTEXT_NUMBER_OF_LANGUAGES][MENUTEXT_POPUP_MESSAGE_LENGTH] = { // MAX 20 CHARACTERS { "Insert PIN" }, { "Ecrire PIN" } }; static const char MenuText_VOLTAGE_IN_HEADER[MENUTEXT_NUMBER_OF_LANGUAGES][MENUTEXT_ROW1_POPUP_MAX_LENGTH] = { // MAX 16 CHARACTERS { "Get voltage in" }, { "Lecture tension" } }; static const char MenuText_VOLTAGE_OUT_HEADER[MENUTEXT_NUMBER_OF_LANGUAGES][MENUTEXT_ROW1_POPUP_MAX_LENGTH] = { // MAX 16 CHARACTERS { "Set voltage out" }, { "Reglage tension" } }; static const char MenuText_VOLTAGE_ROW[MENUTEXT_NUMBER_OF_LANGUAGES][5] = { // MAX 5 CHARACTERS { "Row" }, { "Ligne" } }; static const char MenuText_CONSTANTS_HEADER[MENUTEXT_NUMBER_OF_LANGUAGES][MENUTEXT_ROW1_POPUP_MAX_LENGTH] = { // MAX 16 CHARACTERS { "PID constants" }, { "Valeurs du PID" } }; static const char MenuText_VOLTAGE_OUT_CLEANUP[MENUTEXT_NUMBER_OF_LANGUAGES][2][MENUTEXT_POPUP_MESSAGE_LENGTH] = { // MAX 20 CHARACTERS { "All rows reset to 0V", "Press X to continue" }, { "Ttes les lignes a 0V", "Continuer : touche X" } }; // ----------------------- // OPERATOR MENU // ----------------------- static const char MenuText_MAINMENU[MENUTEXT_NUMBER_OF_LANGUAGES][MENUCORE_MAX_NUMBER_OF_ROWS][MENUCORE_DISPLAY_ROW_LENGTH] = { // MAX 20 CHARACTERS - MIND THE TWO BLANKS AT STRING START - THIS IS WHERE THE CURSOR IS PUT { "", " 1.Tube repair", " 2.Administrator", " 3.Calibration" }, { "", " 1.Traitement tubes", " 2.Mode Admin", " 3.Mode Calibration" } }; static const char MenuText_CATHODEMCP_SELECT[MENUTEXT_NUMBER_OF_LANGUAGES][MENUCORE_MAX_NUMBER_OF_ROWS][MENUCORE_DISPLAY_ROW_LENGTH] = { // MAX 20 CHARACTERS - MIND THE TWO BLANKS AT STRING START - THIS IS WHERE THE CURSOR IS PUT { "Tube repair", " 1.Cathode repair", " 2.MCP repair", }, { "Traitement tubes", " 1.Traitement Pk", " 2.Traitement GMC" } }; static const char MenuText_ADMIN_CATHODEMCP_SELECT[MENUTEXT_NUMBER_OF_LANGUAGES][MENUCORE_MAX_NUMBER_OF_ROWS][MENUCORE_DISPLAY_ROW_LENGTH] = { // MAX 20 CHARACTERS - MIND THE TWO BLANKS AT STRING START - THIS IS WHERE THE CURSOR IS PUT { "Administration", " 1.Cathode", " 2.MCP", }, { "Mode Administrateur", " 1.Photocathode", " 2.GMC" } }; static const char MenuText_REPAIRMENU[MENUTEXT_NUMBER_OF_LANGUAGES][MENUCORE_MAX_NUMBER_OF_ROWS][MENUCORE_DISPLAY_ROW_LENGTH] = { // MAX 20 CHARACTERS - MIND THE TWO BLANKS AT STRING START - THIS IS WHERE THE CURSOR IS PUT { "Tube repair", " 1.Select preset", " 2.Start", }, { "Traitement tubes", " 1.Selection prereg", " 2.Demarrer" } }; static const char MenuText_PRESETMENU[MENUTEXT_NUMBER_OF_LANGUAGES][MENUCORE_MAX_NUMBER_OF_ROWS][MENUCORE_DISPLAY_ROW_LENGTH] = { // MAX 20 CHARACTERS - MIND THE TWO BLANKS AT STRING START - THIS IS WHERE THE CURSOR IS PUT { "Select preset", " 1.Preset 1", " 2.Preset 2", " 3.Preset 3", " 4.Preset 4", " 5.Preset 5", " 6.Preset 6", " 7.Preset 7", " 8.Preset 8", " 9.Preset 9", }, { "Sélection prereg", " 1.Prereglage no1", " 2.Prereglage no2", " 3.Prereglage no3", " 4.Prereglage no4", " 5.Prereglage no5", " 6.Prereglage no6", " 7.Prereglage no7", " 8.Prereglage no8", " 9.Prereglage no9", } }; // ----------------------- // ADMINISTRATION MENU // ----------------------- // Administration main screen static const char MenuText_ADMINMENU[MENUTEXT_NUMBER_OF_LANGUAGES][MENUCORE_MAX_NUMBER_OF_ROWS][MENUCORE_DISPLAY_ROW_LENGTH] = { // MAX 20 CHARACTERS - MIND THE TWO BLANKS AT STRING START - THIS IS WHERE THE CURSOR IS PUT { "Administration", " 1.Change Pin", " 2.I/O control", " 3.Preset config", " 4.PID constants", " 5.Info & Version", }, { "Mode Administrateur", " 1.Modifier PIN", " 2.Controle des E/S", " 3.Config. Preregl.", " 4.Valeurs du PID", " 5.Info & Version" } }; // Administration main screen static const char MenuText_ADMINCHANGEPINMENU[MENUTEXT_NUMBER_OF_LANGUAGES][MENUCORE_MAX_NUMBER_OF_ROWS][MENUCORE_DISPLAY_ROW_LENGTH] = { // MAX 20 CHARACTERS { "Change PIN", }, { "Modifier PIN" } }; // Administration I/O Control screen static const char MenuText_ADMINIOMAINMENU[MENUTEXT_NUMBER_OF_LANGUAGES][MENUCORE_MAX_NUMBER_OF_ROWS][MENUCORE_DISPLAY_ROW_LENGTH] = { // MAX 20 CHARACTERS - MIND THE TWO BLANKS AT STRING START - THIS IS WHERE THE CURSOR IS PUT { "I/O control", " 1.Read interlock", " 2.Solenoids", " 3.Get voltage in", " 4.Set voltage out", " 5.Teslagun relais", }, { "Controle des E/S", " 1.Interlock", " 2.Solenoides", " 3.Lecture tension", " 4.Reglage tension", " 5.Relai TeslaGun" } }; // Administration I/O Control screen static const char MenuText_ADMINIOINTERLOCKMENU[MENUTEXT_NUMBER_OF_LANGUAGES][MENUCORE_MAX_NUMBER_OF_ROWS][MENUCORE_DISPLAY_ROW_LENGTH] = { // MAX 20 CHARACTERS { "Read interlock", }, { "Lecture interlock" } }; // Administration solenoids toggle screen static const char MenuText_ADMINSOLENOIDMENU[MENUTEXT_NUMBER_OF_LANGUAGES][MENUCORE_MAX_NUMBER_OF_ROWS][MENUCORE_DISPLAY_ROW_LENGTH] = { // MAX 20 CHARACTERS { "Solenoids", " Hold 0 to toggle", "", }, { "Solenoides", "Basculer : touche 0" } }; // Administration solenoids toggle screen static const char MenuText_ADMINTESLAGUNMENU[MENUTEXT_NUMBER_OF_LANGUAGES][MENUCORE_MAX_NUMBER_OF_ROWS][MENUCORE_DISPLAY_ROW_LENGTH] = { // MAX 20 CHARACTERS { "Teslagun relais", " Hold 0 to toggle", "", }, { "Relai du TeslaGun", "Basculer : touche 0" } }; // Administration Preset configuration static const char MenuText_ADMINPRESETCONFIGSELECTMENU[MENUTEXT_NUMBER_OF_LANGUAGES][MENUCORE_MAX_NUMBER_OF_ROWS][MENUCORE_DISPLAY_ROW_LENGTH] = { // MAX 20 CHARACTERS - MIND THE TWO BLANKS AT STRING START - THIS IS WHERE THE CURSOR IS PUT { "Preset config", " 1.Preset 1 config", " 2.Preset 2 config", " 3.Preset 3 config", " 4.Preset 4 config", " 5.Preset 5 config", " 6.Preset 6 config", " 7.Preset 7 config", " 8.Preset 8 config", " 9.Preset 9 config", }, { "Config. Preregl.", " 1 Preregl 1 config", " 2 Preregl 2 config", " 3 Preregl 3 config", " 4 Preregl 4 config", " 5 Preregl 5 config", " 6 Preregl 6 config", " 7 Preregl 7 config", " 8 Preregl 8 config", " 9 Preregl 9 config", } }; // Administration INFO&VERSION static const char MenuText_ADMININFOMENU[MENUTEXT_NUMBER_OF_LANGUAGES][MENUCORE_MAX_NUMBER_OF_ROWS][MENUCORE_DISPLAY_ROW_LENGTH] = { // MAX 20 CHARACTERS { "Info & Version", }, { "Info & Version", } }; // ----------------------- // CALIBRATION MENU // ----------------------- static const char MenuText_CALIBRATIONMENU[MENUTEXT_NUMBER_OF_LANGUAGES][MENUCORE_MAX_NUMBER_OF_ROWS][MENUCORE_DISPLAY_ROW_LENGTH] = { // MAX 20 CHARACTERS - MIND THE TWO BLANKS AT STRING START - THIS IS WHERE THE CURSOR IS PUT { "Calibration", " 1.Setpoint check", }, { "Calibration", " 1.Verif consigne" } }; // Calibration SETPOINT CHECK static const char MenuText_CALIBRATION_SETPOINTMENU[MENUTEXT_NUMBER_OF_LANGUAGES][MENUCORE_MAX_NUMBER_OF_ROWS][MENUCORE_DISPLAY_ROW_LENGTH] = { // MAX 20 CHARACTERS - MIND THE TWO BLANKS AT STRING START - THIS IS WHERE THE CURSOR IS PUT { "Setpoint check", " 1.Low Setpoint", " 2.High Setpoint" }, { "Verif consigne", " 1.Consigne basse", " 2.Consigne haute" } }; // ----------------------------------------------------------------------------- // Type definitions. // ----------------------------------------------------------------------------- // ----------------------------------------------------------------------------- // Function declarations // ----------------------------------------------------------------------------- #endif /* MENUTEXT_H_ */ /** @} */