equal
deleted
inserted
replaced
1 |
1 |
2 import wx |
2 import wx |
3 |
3 |
|
4 from controls import EditorPanel |
4 from ConfTreeNodeEditor import ConfTreeNodeEditor, WINDOW_COLOUR |
5 from ConfTreeNodeEditor import ConfTreeNodeEditor, WINDOW_COLOUR |
5 |
6 |
6 class ProjectNodeEditor(ConfTreeNodeEditor): |
7 class ProjectNodeEditor(ConfTreeNodeEditor): |
7 |
8 |
8 VARIABLE_PANEL_TYPE = "config" |
9 VARIABLE_PANEL_TYPE = "config" |
31 |
32 |
32 self.ConfNodeParamsSizer = wx.BoxSizer(wx.VERTICAL) |
33 self.ConfNodeParamsSizer = wx.BoxSizer(wx.VERTICAL) |
33 self.ParamsEditorSizer.AddSizer(self.ConfNodeParamsSizer, 0, border=5, |
34 self.ParamsEditorSizer.AddSizer(self.ConfNodeParamsSizer, 0, border=5, |
34 flag=wx.LEFT|wx.RIGHT|wx.BOTTOM) |
35 flag=wx.LEFT|wx.RIGHT|wx.BOTTOM) |
35 |
36 |
36 self.RefreshConfNodeParamsSizer() |
|
37 |
|
38 def __init__(self, parent, controler, window): |
37 def __init__(self, parent, controler, window): |
39 configuration = controler.GetProjectMainConfigurationName() |
38 configuration = controler.GetProjectMainConfigurationName() |
40 if configuration is not None: |
39 if configuration is not None: |
41 tagname = controler.ComputeConfigurationName(configuration) |
40 tagname = controler.ComputeConfigurationName(configuration) |
42 else: |
41 else: |
50 def GetTitle(self): |
49 def GetTitle(self): |
51 fullname = self.Controler.CTNName() |
50 fullname = self.Controler.CTNName() |
52 if self.Controler.CTNTestModified(): |
51 if self.Controler.CTNTestModified(): |
53 return "~%s~" % fullname |
52 return "~%s~" % fullname |
54 return fullname |
53 return fullname |
|
54 |
|
55 def RefreshView(self): |
|
56 EditorPanel.RefreshView(self) |
|
57 self.RefreshConfNodeParamsSizer() |
55 |
58 |
56 |
59 |