LPCManager.py
changeset 59 bdea62c1f32f
parent 58 96741ddb78c0
equal deleted inserted replaced
58:96741ddb78c0 59:bdea62c1f32f
   415         Gen_Module_path = os.path.join(buildpath, "Bus_%s.c"%location_str)
   415         Gen_Module_path = os.path.join(buildpath, "Bus_%s.c"%location_str)
   416         module = open(Gen_Module_path,'w')
   416         module = open(Gen_Module_path,'w')
   417         module.write(BUS_TEXT % code_str)
   417         module.write(BUS_TEXT % code_str)
   418         module.close()
   418         module.close()
   419         
   419         
   420         matiec_flags = '"-I%s"'%os.path.abspath(self.GetCTRoot().GetIECLibPath())
   420         matiec_flags = '"-I%s" -Wno-unused-function'%os.path.abspath(self.GetCTRoot().GetIECLibPath())
   421         return [(Gen_Module_path, matiec_flags)],"",True
   421         return [(Gen_Module_path, matiec_flags)],"",True
   422 
   422 
   423 #-------------------------------------------------------------------------------
   423 #-------------------------------------------------------------------------------
   424 #                          LPC CanFestival ConfNode Class
   424 #                          LPC CanFestival ConfNode Class
   425 #-------------------------------------------------------------------------------
   425 #-------------------------------------------------------------------------------
  1233         self.AddToMenuToolBar([(wx.ID_SAVE, "save", _(u'Save'), None),
  1233         self.AddToMenuToolBar([(wx.ID_SAVE, "save", _(u'Save'), None),
  1234                                (wx.ID_PRINT, "print", _(u'Print'), None)])
  1234                                (wx.ID_PRINT, "print", _(u'Print'), None)])
  1235     
  1235     
  1236     def _init_coll_AddMenu_Items(self, parent):
  1236     def _init_coll_AddMenu_Items(self, parent):
  1237         IDEFrame._init_coll_AddMenu_Items(self, parent, False)
  1237         IDEFrame._init_coll_AddMenu_Items(self, parent, False)
  1238         new_id = wx.NewId()
       
  1239         AppendMenu(parent, help='', id=new_id,
       
  1240                   kind=wx.ITEM_NORMAL, text=_(u'&Resource'))
       
  1241         self.Bind(wx.EVT_MENU, self.AddResourceMenu, id=new_id)
       
  1242     
  1238     
  1243     def _init_ctrls(self, prnt):
  1239     def _init_ctrls(self, prnt):
  1244         Beremiz._init_ctrls(self, prnt)
  1240         Beremiz._init_ctrls(self, prnt)
  1245         
  1241         
  1246         self.PLCConfig = wx.ScrolledWindow(
  1242         self.PLCConfig = wx.ScrolledWindow(