PLCOpenEditor.py
changeset 1565 894f31f8ca64
parent 1560 4ce8492159ab
child 1571 486f94a8032c
equal deleted inserted replaced
1564:8ffd0b52c2c7 1565:894f31f8ca64
    75 from IDEFrame import TITLE, EDITORTOOLBAR, FILEMENU, EDITMENU, DISPLAYMENU, PROJECTTREE, POUINSTANCEVARIABLESPANEL, LIBRARYTREE, PAGETITLES
    75 from IDEFrame import TITLE, EDITORTOOLBAR, FILEMENU, EDITMENU, DISPLAYMENU, PROJECTTREE, POUINSTANCEVARIABLESPANEL, LIBRARYTREE, PAGETITLES
    76 from IDEFrame import EncodeFileSystemPath, DecodeFileSystemPath
    76 from IDEFrame import EncodeFileSystemPath, DecodeFileSystemPath
    77 from editors.Viewer import Viewer
    77 from editors.Viewer import Viewer
    78 from PLCControler import PLCControler
    78 from PLCControler import PLCControler
    79 from dialogs import ProjectDialog
    79 from dialogs import ProjectDialog
       
    80 from dialogs.AboutDialog import ShowAboutDialog
    80 
    81 
    81 #-------------------------------------------------------------------------------
    82 #-------------------------------------------------------------------------------
    82 #                            PLCOpenEditor Main Class
    83 #                            PLCOpenEditor Main Class
    83 #-------------------------------------------------------------------------------
    84 #-------------------------------------------------------------------------------
    84 
    85 
   347 
   348 
   348     def OnPLCOpenMenu(self, event):
   349     def OnPLCOpenMenu(self, event):
   349         open_pdf(os.path.join(beremiz_dir, "plcopen", "TC6_XML_V101.pdf"))
   350         open_pdf(os.path.join(beremiz_dir, "plcopen", "TC6_XML_V101.pdf"))
   350 
   351 
   351     def OnAboutMenu(self, event):
   352     def OnAboutMenu(self, event):
   352         title= _("About PLCOpenEditor") + " " + version.app_version        
   353         info = version.GetAboutDialogInfo()
   353         OpenHtmlFrame(self, title, os.path.join(beremiz_dir, "doc", _("plcopen_about.html")), wx.Size(350, 350))
   354         info.Name = "PLCOpenEditor"
       
   355         info.Description = _("PLCOpenEditor is part of Beremiz project.\n\n"
       
   356                              "Beremiz is an ") + info.Description
       
   357         info.Icon = wx.Icon(os.path.join(beremiz_dir, "images", "aboutlogo.png"), wx.BITMAP_TYPE_PNG)
       
   358         ShowAboutDialog(self, info)
   354 
   359 
   355     def SaveProject(self):
   360     def SaveProject(self):
   356         result = self.Controler.SaveXMLFile()
   361         result = self.Controler.SaveXMLFile()
   357         if not result:
   362         if not result:
   358             self.SaveProjectAs()
   363             self.SaveProjectAs()