Beremiz.py
changeset 636 35c59bfc54f2
parent 631 9a9636e16d15
child 650 26236e691330
equal deleted inserted replaced
635:fcdb60cacb2c 636:35c59bfc54f2
   146 import types, time, re, platform, time, traceback, commands
   146 import types, time, re, platform, time, traceback, commands
   147 from plugger import PluginsRoot, MATIEC_ERROR_MODEL
   147 from plugger import PluginsRoot, MATIEC_ERROR_MODEL
   148 from wxPopen import ProcessLogger
   148 from wxPopen import ProcessLogger
   149 
   149 
   150 from docutils import *
   150 from docutils import *
   151 from PLCOpenEditor import IDEFrame, Viewer, AppendMenu, TITLE, TOOLBAR, FILEMENU, EDITMENU, DISPLAYMENU, TYPESTREE, INSTANCESTREE, LIBRARYTREE, SCALING
   151 from PLCOpenEditor import IDEFrame, Viewer, AppendMenu, TITLE, TOOLBAR, FILEMENU, EDITMENU, DISPLAYMENU, TYPESTREE, INSTANCESTREE, LIBRARYTREE, SCALING, PAGETITLES
   152 from PLCControler import LOCATION_PLUGIN, LOCATION_MODULE, LOCATION_GROUP, LOCATION_VAR_INPUT, LOCATION_VAR_OUTPUT, LOCATION_VAR_MEMORY
   152 from PLCControler import LOCATION_PLUGIN, LOCATION_MODULE, LOCATION_GROUP, LOCATION_VAR_INPUT, LOCATION_VAR_OUTPUT, LOCATION_VAR_MEMORY
   153 
   153 
   154 SCROLLBAR_UNIT = 10
   154 SCROLLBAR_UNIT = 10
   155 WINDOW_COLOUR = wx.Colour(240,240,240)
   155 WINDOW_COLOUR = wx.Colour(240,240,240)
   156 TITLE_COLOUR = wx.Colour(200,200,220)
   156 TITLE_COLOUR = wx.Colour(200,200,220)
  1453     
  1453     
  1454     def OnSaveProjectMenu(self, event):
  1454     def OnSaveProjectMenu(self, event):
  1455         if self.PluginRoot is not None:
  1455         if self.PluginRoot is not None:
  1456             self.PluginRoot.SaveProject()
  1456             self.PluginRoot.SaveProject()
  1457             self.RefreshAll()
  1457             self.RefreshAll()
  1458             self._Refresh(TITLE, FILEMENU)
  1458             self._Refresh(TITLE, FILEMENU, EDITMENU, PAGETITLES)
  1459     
  1459     
  1460     def OnSaveProjectAsMenu(self, event):
  1460     def OnSaveProjectAsMenu(self, event):
  1461         if self.PluginRoot is not None:
  1461         if self.PluginRoot is not None:
  1462             self.PluginRoot.SaveProjectAs()
  1462             self.PluginRoot.SaveProjectAs()
  1463             self.RefreshAll()
  1463             self.RefreshAll()
  1464             self._Refresh(TITLE, FILEMENU)
  1464             self._Refresh(TITLE, FILEMENU, EDITMENU, PAGETITLES)
  1465         event.Skip()
  1465         event.Skip()
  1466     
  1466     
  1467     def OnPropertiesMenu(self, event):
  1467     def OnPropertiesMenu(self, event):
  1468         self.ShowProperties()
  1468         self.ShowProperties()
  1469     
  1469