Changeset 8075
- Timestamp:
- 07/24/08 10:33:54 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
ossiedev/branches/jsnyder/ComponentProject/PythonSrc/MainFrameGlue.py
r7880 r8075 182 182 183 183 184 def pathWithSlash(self, path):185 length = len(path)186 if length > 0 and path[length - 1] != '/':187 path = path + '/'188 return path189 190 191 184 def setOssieInstallPath(self, path): 192 185 self.installPath = self.pathWithSlash(path) … … 436 429 tmpMsg += '> to /usr/local/include/standardinterfaces in order to ' 437 430 tmpMsg += 'use the generated code.' 438 439 440 431 432 433 441 434 self.Available_Ints.extend(newInts) 442 435 return [MainFrameTreeNode('CF', self.CF_Available_Ints), … … 444 437 MainFrameTreeNode('Custom Interfaces', self.Custom_Available_Ints), 445 438 MainFrameTreeNode('New Interfaces', newInts)] 446 439 447 440 def getCFInterfaces(self): 448 441 if len(self.CF_Available_Ints) > 0: … … 451 444 self.importStandardIDL() 452 445 return self.CF_Available_Ints 453 446 454 447 def getStandardInterfaces(self): 455 448 if len(self.Standard_Available_Ints) > 0: … … 458 451 self.importStandardIDL() 459 452 return self.Standard_Available_Ints 460 453 461 454 def getCustomInterfaces(self): 462 455 if len(self.Custom_Available_Ints) > 0: … … 465 458 self.importStandardIDL() 466 459 return self.Custom_Available_Ints 467 460 468 461 def getInterFaceList(self): 469 462 if len(self.AvailableInts) > 0: … … 472 465 self.importStandardIDL() 473 466 return self.AvailableInts 474 475 467 468 476 469 def getInterfaces(self, file): 477 470 f = os.popen('python ' … … 557 550 component_gen.gen_prf(component, savepath, self.wavedevPath()) 558 551 return None 559 552 560 553 def getTemplates(self): 561 554 availableTemplates = commands.getoutput("cd " + self.wavedevPath() + "generate/templates; ls") … … 564 557 availableTemplates.remove("__init__$py.class"); 565 558 return availableTemplates 566 559 567 560 def formatSequenceValues(self, values): 568 561 returnValues = values.replace(",", " ") … … 573 566 returnValues = returnValues.split() 574 567 return returnValues 575 576 577 578 568 569 570 571