351
352
353
354
355
356
357
358
359
360
361
362
363
364
|
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
|
+
+
+
+
|
getListOfTokens: function (sText, sDestination) {
this.send("getListOfTokens", { sText: sText }, { sDestination: sDestination });
},
getVerb: function (sVerb, bStart=true, bPro=false, bNeg=false, bTpsCo=false, bInt=false, bFem=false) {
this.send("getVerb", { sVerb: sVerb, bPro: bPro, bNeg: bNeg, bTpsCo: bTpsCo, bInt: bInt, bFem: bFem }, { bStart: bStart });
},
getSyns: function (sWord) {
this.send("getSyns", { sWord: sWord });
},
getSpellSuggestions: function (sWord, sDestination, sErrorId) {
this.send("getSpellSuggestions", { sWord: sWord }, { sDestination: sDestination, sErrorId: sErrorId });
},
openURL: function (sURL) {
this.send("openURL", { "sURL": sURL });
|
448
449
450
451
452
453
454
455
456
457
458
459
460
461
|
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
|
+
+
+
|
case "getVerb":
if (oInfo.bStart) {
oGrammalecte.oGCPanel.conjugateWith(result.oVerb, result.oConjTable);
} else {
oGrammalecte.oGCPanel.displayConj(result.oConjTable);
}
break;
case "getSyns":
oGrammalecte.oGCPanel.displaySyns(result.sWord, result.lSyns);
break;
case "workerRestarted":
oGrammalecte.oGCPanel.stopWaitIcon();
oGrammalecte.oGCPanel.showMessage("Le serveur grammatical a été arrêté et relancé.");
oGrammalecte.oGCPanel.endTimer();
break;
/*
Commands received from the context menu
|