equal
deleted
inserted
replaced
82 ID_PLCOPENEDITOREDITORTOOLBARBRANCH, ID_PLCOPENEDITOREDITORTOOLBARINITIALSTEP, |
82 ID_PLCOPENEDITOREDITORTOOLBARBRANCH, ID_PLCOPENEDITOREDITORTOOLBARINITIALSTEP, |
83 ID_PLCOPENEDITOREDITORTOOLBARSTEP, ID_PLCOPENEDITOREDITORTOOLBARTRANSITION, |
83 ID_PLCOPENEDITOREDITORTOOLBARSTEP, ID_PLCOPENEDITOREDITORTOOLBARTRANSITION, |
84 ID_PLCOPENEDITOREDITORTOOLBARACTIONBLOCK, ID_PLCOPENEDITOREDITORTOOLBARDIVERGENCE, |
84 ID_PLCOPENEDITOREDITORTOOLBARACTIONBLOCK, ID_PLCOPENEDITOREDITORTOOLBARDIVERGENCE, |
85 ID_PLCOPENEDITOREDITORTOOLBARJUMP, ID_PLCOPENEDITOREDITORTOOLBARMOTION, |
85 ID_PLCOPENEDITOREDITORTOOLBARJUMP, ID_PLCOPENEDITOREDITORTOOLBARMOTION, |
86 ] = [wx.NewId() for _init_coll_DefaultEditorToolBar_Items in range(18)] |
86 ] = [wx.NewId() for _init_coll_DefaultEditorToolBar_Items in range(18)] |
87 |
|
88 |
87 |
89 |
88 |
90 # Define behaviour of each Toolbar item according to current POU body type |
89 # Define behaviour of each Toolbar item according to current POU body type |
91 # Informations meaning are in this order: |
90 # Informations meaning are in this order: |
92 # - Item is toggled |
91 # - Item is toggled |
651 self.MainTabs["DebugVariablePanel"] = (self.DebugVariablePanel, _("Debugger")) |
650 self.MainTabs["DebugVariablePanel"] = (self.DebugVariablePanel, _("Debugger")) |
652 self.RightNoteBook.AddPage(*self.MainTabs["DebugVariablePanel"]) |
651 self.RightNoteBook.AddPage(*self.MainTabs["DebugVariablePanel"]) |
653 |
652 |
654 self.AUIManager.Update() |
653 self.AUIManager.Update() |
655 |
654 |
656 |
|
657 ## Constructor of the PLCOpenEditor class. |
655 ## Constructor of the PLCOpenEditor class. |
658 # @param parent The parent window. |
656 # @param parent The parent window. |
659 # @param controler The controler been used by PLCOpenEditor (default: None). |
657 # @param controler The controler been used by PLCOpenEditor (default: None). |
660 # @param fileOpen The filepath to open if no controler defined (default: None). |
658 # @param fileOpen The filepath to open if no controler defined (default: None). |
661 # @param debug The filepath to open if no controler defined (default: False). |
659 # @param debug The filepath to open if no controler defined (default: False). |
727 self.DefaultPerspective = { |
725 self.DefaultPerspective = { |
728 "perspective": self.AUIManager.SavePerspective(), |
726 "perspective": self.AUIManager.SavePerspective(), |
729 "notebooks": notebooks, |
727 "notebooks": notebooks, |
730 } |
728 } |
731 |
729 |
732 |
|
733 # Initialize Printing configuring elements |
730 # Initialize Printing configuring elements |
734 self.PrintData = wx.PrintData() |
731 self.PrintData = wx.PrintData() |
735 self.PrintData.SetPaperId(wx.PAPER_A4) |
732 self.PrintData.SetPaperId(wx.PAPER_A4) |
736 self.PrintData.SetPrintMode(wx.PRINT_MODE_PRINTER) |
733 self.PrintData.SetPrintMode(wx.PRINT_MODE_PRINTER) |
737 self.PageSetupData = wx.PageSetupDialogData(self.PrintData) |
734 self.PageSetupData = wx.PageSetupDialogData(self.PrintData) |
920 wx.CallAfter(self.RefreshTabCtrlEvent) |
917 wx.CallAfter(self.RefreshTabCtrlEvent) |
921 wx.CallAfter(self.CloseFindInPouDialog) |
918 wx.CallAfter(self.CloseFindInPouDialog) |
922 event.Skip() |
919 event.Skip() |
923 else: |
920 else: |
924 event.Veto() |
921 event.Veto() |
925 |
|
926 |
922 |
927 def GetCopyBuffer(self, primary_selection=False): |
923 def GetCopyBuffer(self, primary_selection=False): |
928 data = None |
924 data = None |
929 if primary_selection and wx.Platform == '__WXMSW__': |
925 if primary_selection and wx.Platform == '__WXMSW__': |
930 return data |
926 return data |