Changeset 582
- Timestamp:
- 09/13/05 17:11:49 (8 years ago)
- Location:
- WaveDev/trunk/WaveDev
- Files:
-
- 5 modified
-
README.txt (modified) (1 diff)
-
gui/ComponentFrame.py (modified) (8 diffs)
-
gui/ConnectDialog.py (modified) (4 diffs)
-
gui/MainFrame.py (modified) (2 diffs)
-
gui/PortDialog.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
WaveDev/trunk/WaveDev/README.txt
r580 r582 86 86 4. The waveform is now ready to be populated. Exit the Waveform Developer 87 87 88 5. To create a functional waveform, the start() function in AssemblyController and pushPacket() 89 function in other components must be completed. 88 5. To create a functional waveform, the start() function in AssemblyController and pushPacket() function in other components must be completed. 89 90 6. To build the waveform: 91 >> cd <output directory from 3> 92 >> ./reconf 93 >> ./configure 94 >> make 95 96 7. To run: 97 - start the naming service 98 - start the event service 99 - run waveform_manager: >> ./waveform_manager 100 - run your waveform: >> ./<waveform_name> 101 102 NOTES: 103 1) The edit feature in the GUI is not functional yet. 104 2) You can add ports to a component, but it will not affect any of the 105 generated code (again, "yet") -
WaveDev/trunk/WaveDev/gui/ComponentFrame.py
r528 r582 9 9 return CompFrame(parent) 10 10 11 [wxID_COMPFRAME, wxID_COMPFRAMEADDPORTBTN, wxID_COMPFRAMEBUTTON 2,12 wxID_COMPFRAMEBUTTON 3, wxID_COMPFRAMEBUTTON4, wxID_COMPFRAMECLOSEBTN,13 wxID_COMPFRAME GRID1, wxID_COMPFRAMENAMETEXT, wxID_COMPFRAMEPORTBOX,11 [wxID_COMPFRAME, wxID_COMPFRAMEADDPORTBTN, wxID_COMPFRAMEBUTTON3, 12 wxID_COMPFRAMEBUTTON4, wxID_COMPFRAMECLOSEBTN, wxID_COMPFRAMEGRID1, 13 wxID_COMPFRAMENAMETEXT, wxID_COMPFRAMEPORTBOX, wxID_COMPFRAMEREMOVEBTN, 14 14 wxID_COMPFRAMESTATICTEXT1, wxID_COMPFRAMESTATICTEXT2, 15 15 wxID_COMPFRAMESTATUSBARCOMPONENT, … … 96 96 id=wxID_COMPFRAMEADDPORTBTN) 97 97 98 self.button2 = wx.Button(id=wxID_COMPFRAMEBUTTON2, label='Delete', 99 name='button2', parent=self, pos=wx.Point(280, 181), 100 size=wx.Size(85, 30), style=0) 98 self.RemoveBtn = wx.Button(id=wxID_COMPFRAMEREMOVEBTN, label='Remove', 99 name='RemoveBtn', parent=self, pos=wx.Point(280, 181), 100 size=wx.Size(85, 30), style=0) 101 self.RemoveBtn.Bind(wx.EVT_BUTTON, self.OnRemoveBtnButton, 102 id=wxID_COMPFRAMEREMOVEBTN) 101 103 102 104 self.grid1 = wx.grid.Grid(id=wxID_COMPFRAMEGRID1, name='grid1', … … 105 107 self.grid1.SetColLabelSize(20) 106 108 self.grid1.SetRowLabelSize(52) 109 self.grid1.Enable(False) 107 110 108 111 self.button3 = wx.Button(id=wxID_COMPFRAMEBUTTON3, label='Add Prop', 109 112 name='button3', parent=self, pos=wx.Point(64, 296), 110 113 size=wx.Size(85, 30), style=0) 114 self.button3.Enable(False) 111 115 112 116 self.button4 = wx.Button(id=wxID_COMPFRAMEBUTTON4, label='Delete Prop', 113 117 name='button4', parent=self, pos=wx.Point(192, 296), 114 118 size=wx.Size(85, 30), style=0) 119 self.button4.Enable(False) 115 120 116 121 self.staticText1 = wx.StaticText(id=wxID_COMPFRAMESTATICTEXT1, … … 127 132 128 133 self.CloseBtn = wx.Button(id=wxID_COMPFRAMECLOSEBTN, label='Close', 129 name='CloseBtn', parent=self, pos=wx.Point(360, 2 56),134 name='CloseBtn', parent=self, pos=wx.Point(360, 296), 130 135 size=wx.Size(85, 30), style=0) 131 136 self.CloseBtn.Bind(wx.EVT_BUTTON, self.OnCloseBtnButton, … … 136 141 self.active_comp = parent.active_comp 137 142 self._init_ctrls(parent) 143 self.grid1.CreateGrid(6,6) 144 self.grid1.SetColLabelValue(0,"Property") 145 self.grid1.SetColLabelValue(1,"Value") 146 self.grid1.SetColLabelValue(2,"Value2") 147 self.grid1.SetColLabelValue(3,"....") 148 self.grid1.SetColLabelValue(4,"....") 149 self.grid1.SetColLabelValue(5,"....") 138 150 139 151 def OnListBox1Listbox(self, event): … … 163 175 164 176 self.displayPorts() 165 166 #self.grid1.CreateGrid(6,6)167 #self.grid1.SetColLabelValue(0,"Property")168 #self.grid1.SetColLabelValue(1,"Value")169 #self.grid1.SetColLabelValue(2,"Value2")170 #self.grid1.SetColLabelValue(3,"....")171 #self.grid1.SetColLabelValue(4,"....")172 #self.grid1.SetColLabelValue(5,"....")173 177 event.Skip() 174 178 … … 195 199 196 200 def displayPorts(self): 201 self.PortBox.Clear() 197 202 pnames = [] 198 203 for p in self.active_comp.ports: … … 200 205 print pnames 201 206 self.PortBox.InsertItems(pnames,0) 207 208 def OnButton2Button(self, event): 209 event.Skip() 210 211 def OnRemoveBtnButton(self, event): 212 sels = self.PortBox.GetSelections() 213 if len(sels) == 0: 214 dlg = wx.MessageDialog(self, '("Please select a port to remove!")', 215 'Error', wx.OK | wx.ICON_INFORMATION) 216 try: 217 dlg.ShowModal() 218 finally: 219 dlg.Destroy() 220 return 221 for x in sels: 222 temp = self.PortBox.GetString(x) 223 plist = [y.name for y in self.active_comp.ports] 224 ti = plist.index(temp) 225 del self.active_comp.ports[ti] 226 self.PortBox.Delete(x) 227 228 self.displayPorts() 229 event.Skip() -
WaveDev/trunk/WaveDev/gui/ConnectDialog.py
r581 r582 7 7 return ConnectDialog(parent) 8 8 9 [wxID_CONNECTDIALOG, wxID_CONNECTDIALOGC ONLABEL, wxID_CONNECTDIALOGCONNECTBTN,10 wxID_CONNECTDIALOG LISTBOX1,11 ] = [wx.NewId() for _init_ctrls in range( 4)]9 [wxID_CONNECTDIALOG, wxID_CONNECTDIALOGCANCELBTN, wxID_CONNECTDIALOGCONLABEL, 10 wxID_CONNECTDIALOGCONNECTBTN, wxID_CONNECTDIALOGLISTBOX1, 11 ] = [wx.NewId() for _init_ctrls in range(5)] 12 12 13 13 class ConnectDialog(wx.Dialog): … … 25 25 self.ConnectBtn = wx.Button(id=wxID_CONNECTDIALOGCONNECTBTN, 26 26 label='Connect', name='ConnectBtn', parent=self, pos=wx.Point(273, 27 2 95), size=wx.Size(85, 30), style=0)27 218), size=wx.Size(85, 30), style=0) 28 28 self.ConnectBtn.Bind(wx.EVT_BUTTON, self.OnConnectBtnButton, 29 29 id=wxID_CONNECTDIALOGCONNECTBTN) … … 32 32 label='None', name='ConLabel', parent=self, pos=wx.Point(29, 21), 33 33 size=wx.Size(31, 17), style=0) 34 35 self.CancelBtn = wx.Button(id=wxID_CONNECTDIALOGCANCELBTN, 36 label='Cancel', name='CancelBtn', parent=self, pos=wx.Point(273, 37 295), size=wx.Size(85, 30), style=0) 38 self.CancelBtn.Bind(wx.EVT_BUTTON, self.OnCancelBtnButton, 39 id=wxID_CONNECTDIALOGCANCELBTN) 34 40 35 41 def __init__(self, parent): … … 61 67 self.Close() 62 68 event.Skip() 69 70 def OnCancelBtnButton(self, event): 71 self.Close() 72 event.Skip() -
WaveDev/trunk/WaveDev/gui/MainFrame.py
r581 r582 115 115 name='EditBtn', parent=self, pos=wx.Point(336, 174), 116 116 size=wx.Size(85, 32), style=0) 117 self.EditBtn.Enable(False) 117 118 self.EditBtn.Bind(wx.EVT_BUTTON, self.OnEditBtnButton, 118 119 id=wxID_FRAME1EDITBTN) … … 137 138 name='button5', parent=self, pos=wx.Point(336, 290), 138 139 size=wx.Size(85, 30), style=0) 140 self.button5.Enable(False) 139 141 140 142 self.treeBox = wx.TreeCtrl(id=wxID_FRAME1TREEBOX, name='treeBox', -
WaveDev/trunk/WaveDev/gui/PortDialog.py
r528 r582 27 27 name='choice1', parent=self, pos=wx.Point(192, 88), 28 28 size=wx.Size(80, 27), style=0) 29 self.choice1.Enable(False) 29 30 30 31 self.choice2 = wx.Choice(choices=[], id=wxID_PORTDIALOGCHOICE2, 31 32 name='choice2', parent=self, pos=wx.Point(72, 88), 32 33 size=wx.Size(112, 27), style=0) 34 self.choice2.Enable(False) 33 35 34 36 self.OkBtn = wx.Button(id=wxID_PORTDIALOGOKBTN, label='Ok', … … 48 50 def OnOkBtnButton(self, event): 49 51 tempLn = self.portNameBox.GetLineText(0) 52 if tempLn == '': 53 dlg = wx.MessageDialog(self, '("Please enter a name first!")', 54 'Error', wx.OK | wx.ICON_INFORMATION) 55 try: 56 dlg.ShowModal() 57 finally: 58 dlg.Destroy() 59 return 50 60 tempP = ComponentClass.Port(tempLn) 51 61 self.active_comp.ports.append(tempP)