Overview
Comment: | [lo][bug] lexicon editor: don’t forget to commit change to save parameters |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | lo |
Files: | files | file ages | folders |
SHA3-256: |
9e62ff2f56f732179e84a6e585163f66 |
User & Date: | olr on 2018-04-13 14:50:13 |
Other Links: | manifest | tags |
Context
2018-04-13
| ||
15:35 | [lo] lexicon editor: better importation message check-in: 8eeac82f00 user: olr tags: trunk, lo | |
14:50 | [lo][bug] lexicon editor: don’t forget to commit change to save parameters check-in: 9e62ff2f56 user: olr tags: trunk, lo | |
14:32 | [lo] lexicon editor: empty regex patterns if wrong check-in: 0cf6f12f52 user: olr tags: trunk, lo | |
Changes
Modified gc_lang/fr/oxt/DictOptions/LexiconEditor.py from [2bb83eccad] to [8be9d56e0e].
︙ | |||
72 73 74 75 76 77 78 79 80 81 82 83 84 85 | 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | + | self.xDialog = None self.oPersonalDicJSON = None # data self.sLemma = "" self.lGeneratedFlex = [] # options node self.xSettingNode = helpers.getConfigSetting("/org.openoffice.Lightproof_grammalecte/Other/", True) self.xOptionNode = self.xSettingNode.getByName("o_fr") def _addWidget (self, name, wtype, x, y, w, h, **kwargs): xWidget = self.xDialog.createInstance('com.sun.star.awt.UnoControl%sModel' % wtype) xWidget.Name = name xWidget.PositionX = x xWidget.PositionY = y xWidget.Width = w |
︙ | |||
347 348 349 350 351 352 353 | 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 | - - + | xDialog = TagsInfo.TagsInfo(self.ctx) xDialog.run(self.sLang) #@_waitPointer (don’t: strange behavior when dialog is not finished) def loadLexicon (self): xGridDataModel = self.xGridModelLex.GridDataModel xGridDataModel.removeAllRows() |
︙ | |||
378 379 380 381 382 383 384 | 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 | - + - - + + - - + - + - + - - + | with open(spfImported, "r", encoding="utf-8") as hDst: sJSON = hDst.read() try: sTest = json.loads(sJSON) except: sMessage = self.dUI.get('wrong_json', "#err_msg: %s") % spfImported MessageBox(self.xDocument, sMessage, self.dUI.get('import_title', "#err"), ERRORBOX) |
︙ |