12 |
12 |
13 from E5Gui.E5Application import e5App |
13 from E5Gui.E5Application import e5App |
14 from E5Gui import E5MessageBox, E5FileDialog |
14 from E5Gui import E5MessageBox, E5FileDialog |
15 |
15 |
16 from Globals import recentNameHosts |
16 from Globals import recentNameHosts |
17 |
|
18 from QScintilla.Editor import Editor |
|
19 |
17 |
20 from .CooperationClient import CooperationClient |
18 from .CooperationClient import CooperationClient |
21 |
19 |
22 from .Ui_ChatWidget import Ui_ChatWidget |
20 from .Ui_ChatWidget import Ui_ChatWidget |
23 |
21 |
383 @param fileName project relative file name of the editor (string) |
381 @param fileName project relative file name of the editor (string) |
384 @param message command message (string) |
382 @param message command message (string) |
385 """ |
383 """ |
386 self.editorCommand.emit(hash, fileName, message) |
384 self.editorCommand.emit(hash, fileName, message) |
387 |
385 |
|
386 from QScintilla.Editor import Editor |
388 if message.startswith(Editor.StartEditToken + Editor.Separator) or \ |
387 if message.startswith(Editor.StartEditToken + Editor.Separator) or \ |
389 message.startswith(Editor.EndEditToken + Editor.Separator): |
388 message.startswith(Editor.EndEditToken + Editor.Separator): |
390 vm = e5App().getObject("ViewManager") |
389 vm = e5App().getObject("ViewManager") |
391 aw = vm.activeWindow() |
390 aw = vm.activeWindow() |
392 if aw: |
391 if aw: |