--- a/PLCOpenEditor.py Thu Aug 30 17:05:54 2007 +0200
+++ b/PLCOpenEditor.py Fri Aug 31 15:08:11 2007 +0200
@@ -67,7 +67,7 @@
CWD = os.path.split(__file__)[0]
[ID_PLCOPENEDITOR, ID_PLCOPENEDITORPROJECTTREE,
- ID_PLCOPENEDITORSPLITTERWINDOW1, ID_PLCOPENEDITOREDITORPANEL,
+ ID_PLCOPENEDITORMAINSPLITTER, ID_PLCOPENEDITOREDITORPANEL,
ID_PLCOPENEDITORTABSOPENED, ID_PLCOPENEDITORTOOLBAR,
ID_PLCOPENEDITORDEFAULTTOOLBAR, ID_PLCOPENEDITORSFCTOOLBAR,
ID_PLCOPENEDITORFBDTOOLBAR, ID_PLCOPENEDITORLDTOOLBAR,
@@ -128,7 +128,7 @@
(True, FREEDRAWING_MODE|DRIVENDRAWING_MODE, ID_PLCOPENEDITORTOOLBARBLOCK, "OnBlockTool", "Images/block.png", "Create a new block"),
(True, FREEDRAWING_MODE|DRIVENDRAWING_MODE, ID_PLCOPENEDITORTOOLBARCONNECTION, "OnConnectionTool", "Images/connection.png", "Create a new connection"),
(True, FREEDRAWING_MODE|DRIVENDRAWING_MODE, ID_PLCOPENEDITORTOOLBARWIRE, "OnWireTool", "Images/wire.png", "Create a new wire")],
- "LD" : [(True, FREEDRAWING_MODE, ID_PLCOPENEDITORTOOLBARCOMMENT, "OnCommentTool", "Images/comment.png", "Create a new comment"),
+ "LD" : [(True, FREEDRAWING_MODE, ID_PLCOPENEDITORTOOLBARCOMMENT, "OnCommentTool", "Images/comment.png", "Create a new comment"),
(True, FREEDRAWING_MODE, ID_PLCOPENEDITORTOOLBARPOWERRAIL, "OnPowerRailTool", "Images/powerrail.png", "Create a new power rail"),
(False, DRIVENDRAWING_MODE, ID_PLCOPENEDITORTOOLBARRUNG, "OnRungTool", "Images/rung.png", "Create a new rung"),
(True, FREEDRAWING_MODE, ID_PLCOPENEDITORTOOLBARCOIL, "OnCoilTool", "Images/coil.png", "Create a new coil"),
@@ -151,8 +151,8 @@
(True, FREEDRAWING_MODE, ID_PLCOPENEDITORTOOLBARPOWERRAIL, "OnPowerRailTool", "Images/powerrail.png", "Create a new power rail"),
(True, FREEDRAWING_MODE, ID_PLCOPENEDITORTOOLBARCONTACT, "OnContactTool", "Images/contact.png", "Create a new contact"),
(True, FREEDRAWING_MODE, ID_PLCOPENEDITORTOOLBARWIRE, "OnWireTool", "Images/wire.png", "Create a new wire")],
- "ST" : [],
- "IL" : []
+ "ST" : [],
+ "IL" : []
}
class PLCOpenEditor(wx.Frame):
@@ -312,7 +312,7 @@
self._init_coll_ConfigMenu_Items(self.ConfigMenu)
def _init_coll_MainGridSizer_Items(self, parent):
- parent.AddWindow(self.splitterWindow1, 0, border=0, flag=wx.GROW)
+ parent.AddWindow(self.MainSplitter, 0, border=0, flag=wx.GROW)
def _init_coll_EditorGridSizer_Items(self, parent):
parent.AddWindow(self.ToolBar, 0, border=0, flag=wx.GROW)
@@ -347,14 +347,14 @@
self.SetMenuBar(self.menuBar1)
self.Bind(wx.EVT_CLOSE, self.OnCloseFrame, id=ID_PLCOPENEDITOR)
- self.splitterWindow1 = wx.SplitterWindow(id=ID_PLCOPENEDITORSPLITTERWINDOW1,
- name='splitterWindow1', parent=self, point=wx.Point(0, 0),
+ self.MainSplitter = wx.SplitterWindow(id=ID_PLCOPENEDITORMAINSPLITTER,
+ name='MainSplitter', parent=self, point=wx.Point(0, 0),
size=wx.Size(0, 0), style=wx.SP_3D)
- self.splitterWindow1.SetNeedUpdating(True)
- self.splitterWindow1.SetMinimumPaneSize(1)
+ self.MainSplitter.SetNeedUpdating(True)
+ self.MainSplitter.SetMinimumPaneSize(1)
self.EditorPanel = wx.Panel(id=ID_PLCOPENEDITOREDITORPANEL,
- name='TabPanel', parent=self.splitterWindow1, pos=wx.Point(0, 0),
+ name='TabPanel', parent=self.MainSplitter, pos=wx.Point(0, 0),
size=wx.Size(0, 0), style=wx.TAB_TRAVERSAL)
self.TabsOpened = wx.Notebook(id=ID_PLCOPENEDITORTABSOPENED,
@@ -372,7 +372,7 @@
id=ID_PLCOPENEDITORTOOLBARSELECTION)
self.ProjectTree = wx.TreeCtrl(id=ID_PLCOPENEDITORPROJECTTREE,
- name='treeCtrl1', parent=self.splitterWindow1, pos=wx.Point(0, 0),
+ name='treeCtrl1', parent=self.MainSplitter, pos=wx.Point(0, 0),
size=wx.Size(-1, -1),
style=wx.TR_HAS_BUTTONS|wx.TR_EDIT_LABELS|wx.TR_SINGLE|wx.SUNKEN_BORDER)
self.ProjectTree.Bind(wx.EVT_RIGHT_UP, self.OnProjectTreeRightUp)
@@ -386,7 +386,7 @@
id=ID_PLCOPENEDITORPROJECTTREE)
self.Bind(wx.EVT_TREE_SEL_CHANGED, self.OnProjectTreeItemSelected,
id=ID_PLCOPENEDITORPROJECTTREE)
- self.splitterWindow1.SplitVertically(self.ProjectTree, self.EditorPanel,
+ self.MainSplitter.SplitVertically(self.ProjectTree, self.EditorPanel,
200)
self._init_sizers()