Skip to content
Snippets Groups Projects
Commit 1b64d067 authored by Franco Pariani's avatar Franco Pariani
Browse files

New configurations checkbox

parent 855eb483
No related branches found
No related tags found
No related merge requests found
...@@ -113,6 +113,11 @@ ...@@ -113,6 +113,11 @@
<input type="checkbox" style="width: 15px; display: inline-block;" name="hintsCheck" class="form-control form-control-sm" [(ngModel)]=hintsCheck> <input type="checkbox" style="width: 15px; display: inline-block;" name="hintsCheck" class="form-control form-control-sm" [(ngModel)]=hintsCheck>
{{ "i18n.msg.codemirror.showHints" | translate }} {{ "i18n.msg.codemirror.showHints" | translate }}
</label> </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>
<div class="form-group"> <div class="form-group">
<button class="btn btn-secondary" (click)="saveConfig(); popover.close();">{{ "i18n.action.save" | translate | titleCase }}</button> <button class="btn btn-secondary" (click)="saveConfig(); popover.close();">{{ "i18n.action.save" | translate | titleCase }}</button>
......
...@@ -79,6 +79,7 @@ export class MateFunComponent { ...@@ -79,6 +79,7 @@ export class MateFunComponent {
argumentoI = false; argumentoI = false;
argumentoF = false; argumentoF = false;
hintsCheck = true; hintsCheck = true;
typingCheck = true;
editableLoaded = false; editableLoaded = false;
editDialogFired = false; editDialogFired = false;
archivosTree :any; archivosTree :any;
...@@ -458,7 +459,8 @@ export class MateFunComponent { ...@@ -458,7 +459,8 @@ export class MateFunComponent {
} }
clickEnEditor(event){ 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(){ guardarArchivo(){
......
...@@ -73,7 +73,8 @@ ...@@ -73,7 +73,8 @@
"functionWarnings": "Show warnings of use of functions", "functionWarnings": "Show warnings of use of functions",
"infixOperatorsWarnings" : "Show warnings of use of infix operators", "infixOperatorsWarnings" : "Show warnings of use of infix operators",
"cursorPosition" : "Cursor position", "cursorPosition" : "Cursor position",
"showHints" : "Show autocomplete hints" "showHints" : "Show autocomplete hints",
"functionTyping" : "Show functions typing"
}, },
"figure" : { "figure" : {
"multiPlot" : "Multi graph", "multiPlot" : "Multi graph",
......
...@@ -73,7 +73,8 @@ ...@@ -73,7 +73,8 @@
"functionWarnings": "Mostrar advertencias de uso de funciones", "functionWarnings": "Mostrar advertencias de uso de funciones",
"infixOperatorsWarnings" : "Mostrar advertencias de uso de operadores infijos", "infixOperatorsWarnings" : "Mostrar advertencias de uso de operadores infijos",
"cursorPosition" : "Posición del cursor", "cursorPosition" : "Posición del cursor",
"showHints" : "Mostrar sugerencias de autocompletar" "showHints" : "Mostrar sugerencias de autocompletar",
"functionTyping" : "Mostrar tipado de funciones"
}, },
"figure" : { "figure" : {
"multiPlot" : "Multi gráfica", "multiPlot" : "Multi gráfica",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment