From 1b64d067679b4f42b8c78f94c34b342d2be4b3f8 Mon Sep 17 00:00:00 2001 From: Franco Pariani <franco19ps@gmail.com> Date: Wed, 20 Feb 2019 21:48:13 -0300 Subject: [PATCH] New configurations checkbox --- .../src/app/layout/matefun/matefun.component.html | 5 +++++ .../src/app/layout/matefun/matefun.component.ts | 4 +++- Frontend Angular 4/src/assets/i18n/en.json | 3 ++- Frontend Angular 4/src/assets/i18n/es.json | 3 ++- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Frontend Angular 4/src/app/layout/matefun/matefun.component.html b/Frontend Angular 4/src/app/layout/matefun/matefun.component.html index 1047456..08f1d82 100755 --- a/Frontend Angular 4/src/app/layout/matefun/matefun.component.html +++ b/Frontend Angular 4/src/app/layout/matefun/matefun.component.html @@ -113,6 +113,11 @@ <input type="checkbox" style="width: 15px; display: inline-block;" name="hintsCheck" class="form-control form-control-sm" [(ngModel)]=hintsCheck> {{ "i18n.msg.codemirror.showHints" | translate }} </label> + <br> + <label> + <input type="checkbox" style="width: 15px; display: inline-block;" name="typingCheck" class="form-control form-control-sm" [(ngModel)]=typingCheck> + {{ "i18n.msg.codemirror.functionTyping" | translate }} + </label> </div> <div class="form-group"> <button class="btn btn-secondary" (click)="saveConfig(); popover.close();">{{ "i18n.action.save" | translate | titleCase }}</button> diff --git a/Frontend Angular 4/src/app/layout/matefun/matefun.component.ts b/Frontend Angular 4/src/app/layout/matefun/matefun.component.ts index 2a5070d..33af3ce 100755 --- a/Frontend Angular 4/src/app/layout/matefun/matefun.component.ts +++ b/Frontend Angular 4/src/app/layout/matefun/matefun.component.ts @@ -79,6 +79,7 @@ export class MateFunComponent { argumentoI = false; argumentoF = false; hintsCheck = true; + typingCheck = true; editableLoaded = false; editDialogFired = false; archivosTree :any; @@ -458,7 +459,8 @@ export class MateFunComponent { } clickEnEditor(event){ - this.codemirror.instance.functionDefinition(this.archivo.nombre, this.codemirror.instance.doc, event); + if (this.typingCheck) + this.codemirror.instance.functionDefinition(this.archivo.nombre, this.codemirror.instance.doc, event); } guardarArchivo(){ diff --git a/Frontend Angular 4/src/assets/i18n/en.json b/Frontend Angular 4/src/assets/i18n/en.json index 2e3194f..e9902a0 100644 --- a/Frontend Angular 4/src/assets/i18n/en.json +++ b/Frontend Angular 4/src/assets/i18n/en.json @@ -73,7 +73,8 @@ "functionWarnings": "Show warnings of use of functions", "infixOperatorsWarnings" : "Show warnings of use of infix operators", "cursorPosition" : "Cursor position", - "showHints" : "Show autocomplete hints" + "showHints" : "Show autocomplete hints", + "functionTyping" : "Show functions typing" }, "figure" : { "multiPlot" : "Multi graph", diff --git a/Frontend Angular 4/src/assets/i18n/es.json b/Frontend Angular 4/src/assets/i18n/es.json index 62e2883..323268a 100644 --- a/Frontend Angular 4/src/assets/i18n/es.json +++ b/Frontend Angular 4/src/assets/i18n/es.json @@ -73,7 +73,8 @@ "functionWarnings": "Mostrar advertencias de uso de funciones", "infixOperatorsWarnings" : "Mostrar advertencias de uso de operadores infijos", "cursorPosition" : "Posición del cursor", - "showHints" : "Mostrar sugerencias de autocompletar" + "showHints" : "Mostrar sugerencias de autocompletar", + "functionTyping" : "Mostrar tipado de funciones" }, "figure" : { "multiPlot" : "Multi gráfica", -- GitLab