Overview
Comment: | [lo] non modal dialog for Enumerator |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | lo |
Files: | files | file ages | folders |
SHA3-256: |
2e7f544c7ca15a19ed0f52739f605a88 |
User & Date: | olr on 2019-09-06 20:29:02 |
Other Links: | manifest | tags |
Context
2019-09-07
| ||
10:43 | [fr] faux positifs et ajustements check-in: 918d6310ca user: olr tags: trunk, fr | |
2019-09-06
| ||
20:29 | [lo] non modal dialog for Enumerator check-in: 2e7f544c7c user: olr tags: trunk, lo | |
20:28 | [fr] ajustement check-in: a5d18d3858 user: olr tags: trunk, fr | |
Changes
Modified gc_lang/fr/oxt/Lexicographer/Enumerator.py from [8bc3897863] to [fdbcf1a312].
︙ | ︙ | |||
161 162 163 164 165 166 167 | self.xContainer.getControl('count2_button').setActionCommand('CountByLemma') self.xContainer.getControl('unknown_button').addActionListener(self) self.xContainer.getControl('unknown_button').setActionCommand('UnknownWords') self.xContainer.getControl('tag_button').addActionListener(self) self.xContainer.getControl('tag_button').setActionCommand('Tag') self.xContainer.getControl('close_button').addActionListener(self) self.xContainer.getControl('close_button').setActionCommand('Close') | | | | 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 | self.xContainer.getControl('count2_button').setActionCommand('CountByLemma') self.xContainer.getControl('unknown_button').addActionListener(self) self.xContainer.getControl('unknown_button').setActionCommand('UnknownWords') self.xContainer.getControl('tag_button').addActionListener(self) self.xContainer.getControl('tag_button').setActionCommand('Tag') self.xContainer.getControl('close_button').addActionListener(self) self.xContainer.getControl('close_button').setActionCommand('Close') self.xContainer.setVisible(True) # True for non modal dialog xToolkit = self.xSvMgr.createInstanceWithContext('com.sun.star.awt.ExtToolkit', self.ctx) self.xContainer.createPeer(xToolkit, None) #self.xContainer.execute() # Don’t excute for non modal dialog # XActionListener def actionPerformed (self, xActionEvent): try: if xActionEvent.ActionCommand == "Count": self.count(self.dUI.get("words", "#err")) self.xTag.Enabled = True |
︙ | ︙ | |||
194 195 196 197 198 199 200 | sAction = "nounderline" elif self.xAccent.State: sAction = "accentuation" elif self.xNoAccent.State: sAction = "noaccentuation" self.tagText(aWord, sAction) elif xActionEvent.ActionCommand == "Close": | > | | 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 | sAction = "nounderline" elif self.xAccent.State: sAction = "accentuation" elif self.xNoAccent.State: sAction = "noaccentuation" self.tagText(aWord, sAction) elif xActionEvent.ActionCommand == "Close": self.xContainer.dispose() # Non modal dialog #self.xContainer.endExecute() # Modal dialog except: traceback.print_exc() # XJobExecutor def trigger (self, args): try: xDialog = Enumerator(self.ctx) |
︙ | ︙ |