equal
deleted
inserted
replaced
53 from util.BitmapLibrary import GetBitmap |
53 from util.BitmapLibrary import GetBitmap |
54 from editors.FileManagementPanel import FileManagementPanel |
54 from editors.FileManagementPanel import FileManagementPanel |
55 from editors.ProjectNodeEditor import ProjectNodeEditor |
55 from editors.ProjectNodeEditor import ProjectNodeEditor |
56 from editors.IECCodeViewer import IECCodeViewer |
56 from editors.IECCodeViewer import IECCodeViewer |
57 from editors.DebugViewer import DebugViewer, REFRESH_PERIOD |
57 from editors.DebugViewer import DebugViewer, REFRESH_PERIOD |
58 from dialogs import UriEditor |
58 from dialogs import UriEditor, IDManager |
59 from PLCControler import PLCControler |
59 from PLCControler import PLCControler |
60 from plcopen.structures import IEC_KEYWORDS |
60 from plcopen.structures import IEC_KEYWORDS |
61 from plcopen.types_enums import ComputeConfigurationResourceName, ITEM_CONFNODE |
61 from plcopen.types_enums import ComputeConfigurationResourceName, ITEM_CONFNODE |
62 import targets |
62 import targets |
63 from runtime.typemapping import DebugTypesSize, UnpackDebugBuffer |
63 from runtime.typemapping import DebugTypesSize, UnpackDebugBuffer |
1256 |
1256 |
1257 if self.AppFrame is not None: |
1257 if self.AppFrame is not None: |
1258 self.AppFrame.ShowError(infos, start, end) |
1258 self.AppFrame.ShowError(infos, start, end) |
1259 |
1259 |
1260 _IECCodeView = None |
1260 _IECCodeView = None |
|
1261 |
|
1262 def _showIDManager(self): |
|
1263 dlg = IDManager(self.AppFrame, self) |
|
1264 dlg.ShowModal() |
|
1265 dlg.Destroy() |
1261 |
1266 |
1262 def _showIECcode(self): |
1267 def _showIECcode(self): |
1263 self._OpenView("IEC code") |
1268 self._OpenView("IEC code") |
1264 |
1269 |
1265 _IECRawCodeView = None |
1270 _IECRawCodeView = None |
1948 "tooltip": _("Disconnect from PLC"), |
1953 "tooltip": _("Disconnect from PLC"), |
1949 "method": "_Disconnect", |
1954 "method": "_Disconnect", |
1950 "shown": False, |
1955 "shown": False, |
1951 }, |
1956 }, |
1952 { |
1957 { |
|
1958 "bitmap": "IDManager", |
|
1959 "name": _("ID Manager"), |
|
1960 "tooltip": _("Manage secure connection identities"), |
|
1961 "method": "_showIDManager", |
|
1962 }, |
|
1963 { |
1953 "bitmap": "ShowIECcode", |
1964 "bitmap": "ShowIECcode", |
1954 "name": _("Show code"), |
1965 "name": _("Show code"), |
1955 "tooltip": _("Show IEC code generated by PLCGenerator"), |
1966 "tooltip": _("Show IEC code generated by PLCGenerator"), |
1956 "method": "_showIECcode", |
1967 "method": "_showIECcode", |
1957 "shown": False, |
1968 "shown": False, |