Changeset 4205
- Timestamp:
- 06/20/07 00:56:04 (6 years ago)
- Location:
- WaveDev/trunk/WaveDev/wavedev
- Files:
-
- 2 modified
-
MainFrame.py (modified) (4 diffs)
-
importResource.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
WaveDev/trunk/WaveDev/wavedev/MainFrame.py
r4204 r4205 440 440 size=wx.Size(507, 50), style= wx.TE_BESTWRAP | wx.TE_MULTILINE) 441 441 self.compDescrBox.SetConstraints(LayoutAnchors(self.compDescrBox, 442 False, False, True, True))442 True, False, True, True)) 443 443 444 444 self.staticText4 = wx.StaticText (id=wxID_FRAME1STATICTEXT4, … … 446 446 pos=wx.Point(7, 445), size=wx.Size (75, 40), style= wx.TE_BESTWRAP | wx.TE_MULTILINE) 447 447 self.staticText4.SetConstraints(LayoutAnchors(self.staticText4, 448 False, False, True, True))448 True, False, False, True)) 449 449 450 450 … … 1565 1565 x = self.resourceBoxPopup.FindItemById(wxID_FRAME1RESOURCEBOXPOPUPADDNODE) 1566 1566 x.Enable(False) 1567 1567 1568 #x = self.resourceBoxPopup.FindItemById(wxID_FRAME1RESOURCEBOXPOPUPGETDESCR) 1568 1569 #x.Enable(False) 1569 #x = self.resourceBoxPopup.FindItemById(wxID_FRAME1RESOURCEBOXPOPUPGETDOXYGENREFMAN) 1570 #x.Enable(False) 1570 1571 #disable Doxygen docs display if no docs directory found 1572 docsPath = self.installPath + 'docs/' + tmpRes.name 1573 if os.path.isdir(docsPath) != 1: 1574 x = self.resourceBoxPopup.FindItemById(wxID_FRAME1RESOURCEBOXPOPUPGETDOXYGENREFMAN) 1575 x.Enable(False) 1571 1576 elif tmpRes.type == 'node': 1572 1577 x = self.resourceBoxPopup.FindItemById(wxID_FRAME1RESOURCEBOXPOPUPADDDEV) … … 1668 1673 1669 1674 def OnResourceBoxPopupGetDoxygenRefMan(self, event): 1670 errorMsg(self,"Doxygen Ref Man not implemented yet") 1675 docList = None 1676 sn = self.resourceBox.GetSelection() 1677 tmpRes = self.resourceBox.GetPyData(sn) 1678 docsPath = self.installPath + 'docs/' + tmpRes.name 1679 if os.path.isdir(docsPath): 1680 docList = os.listdir(docsPath) 1681 if os.path.isfile(docsPath + '/refman.pdf'): 1682 #Unix only, need to change 1683 os.system('evince ' + docsPath + '/refman.pdf &') 1684 else: 1685 errorMsg(self,'File refman.pdf not found in ' + docsPath + ': directory listing: ' + str(docList)) 1686 else: 1687 errorMsg(self,"No Doxygen documents for " + tmpRes.name + " could be found in: " + self.installPath + 'docs') 1688 return 1689 1690 1671 1691 1672 1692 def OnResourceBoxPopupAddnodeMenu(self, event): -
WaveDev/trunk/WaveDev/wavedev/importResource.py
r4204 r4205 50 50 doc_spd = amara.parse(stripDoctype(spdPath)) 51 51 if not hasattr(doc_spd.softpkg.implementation, 'description'): 52 #errorMsg(parent, "No description found in "+ spdPath)53 Rdescription=' Description unavailable'52 #errorMsg(parent,'No description found in ' + spdPath) 53 Rdescription='No description found in ' + spdPath 54 54 else: 55 55 Rdescription=str(doc_spd.softpkg.implementation.description)