E4Gui/E4SingleApplication.py

changeset 53
c3eb7cc1ff8b
parent 15
f6ccc31d6e72
equal deleted inserted replaced
52:ba69827929ee 53:c3eb7cc1ff8b
8 """ 8 """
9 9
10 import sys 10 import sys
11 import os 11 import os
12 12
13 from E4Gui.E4Application import e4App 13 from E4Gui.E4Application import e5App
14 14
15 from Utilities.SingleApplication import SingleApplicationClient, SingleApplicationServer 15 from Utilities.SingleApplication import SingleApplicationClient, SingleApplicationServer
16 16
17 import Utilities 17 import Utilities
18 18
60 """ 60 """
61 Private method used to handle the "Open File" command. 61 Private method used to handle the "Open File" command.
62 62
63 @param fname filename to be opened (string) 63 @param fname filename to be opened (string)
64 """ 64 """
65 e4App().getObject("ViewManager").openSourceFile(fname) 65 e5App().getObject("ViewManager").openSourceFile(fname)
66 66
67 def __saOpenProject(self, pfname): 67 def __saOpenProject(self, pfname):
68 """ 68 """
69 Private method used to handle the "Open Project" command. 69 Private method used to handle the "Open Project" command.
70 70
71 @param pfname filename of the project to be opened (string) 71 @param pfname filename of the project to be opened (string)
72 """ 72 """
73 e4App().getObject("Project").openProject(pfname) 73 e5App().getObject("Project").openProject(pfname)
74 74
75 def __saArguments(self, argsStr): 75 def __saArguments(self, argsStr):
76 """ 76 """
77 Private method used to handle the "Arguments" command. 77 Private method used to handle the "Arguments" command.
78 78
79 @param argsStr space delimited list of command args(string) 79 @param argsStr space delimited list of command args(string)
80 """ 80 """
81 e4App().getObject("DebugUI").setArgvHistory(argsStr) 81 e5App().getObject("DebugUI").setArgvHistory(argsStr)
82 82
83 class E4SingleApplicationClient(SingleApplicationClient): 83 class E4SingleApplicationClient(SingleApplicationClient):
84 """ 84 """
85 Class implementing the single application client of the IDE. 85 Class implementing the single application client of the IDE.
86 """ 86 """

eric ide

mercurial