src/eric7/Project/ProjectInterfacesBrowser.py

branch
eric7
changeset 9514
2b104ad132a4
parent 9512
6e29913ba7b6
child 9516
0f023e61a9b5
equal deleted inserted replaced
9513:6e260b424396 9514:2b104ad132a4
566 @param fn filename of the .idl file to be compiled (string) 566 @param fn filename of the .idl file to be compiled (string)
567 @param noDialog flag indicating silent operations (boolean) 567 @param noDialog flag indicating silent operations (boolean)
568 @param progress reference to the progress dialog (EricProgressDialog) 568 @param progress reference to the progress dialog (EricProgressDialog)
569 @return reference to the compile process (QProcess) 569 @return reference to the compile process (QProcess)
570 """ 570 """
571 params = self.project.pdata["IDLPARAMS"] 571 params = self.project.getProjectData(dataKey="IDLPARAMS")
572 572
573 self.compileProc = QProcess() 573 self.compileProc = QProcess()
574 args = [] 574 args = []
575 575
576 args.append("-bpython") 576 args.append("-bpython")
626 def __compileAllInterfaces(self): 626 def __compileAllInterfaces(self):
627 """ 627 """
628 Private method to compile all interfaces to python. 628 Private method to compile all interfaces to python.
629 """ 629 """
630 if self.omniidl is not None: 630 if self.omniidl is not None:
631 numIDLs = len(self.project.pdata["INTERFACES"]) 631 numIDLs = len(self.project.getProjectData(dataKey="INTERFACES"))
632 progress = EricProgressDialog( 632 progress = EricProgressDialog(
633 self.tr("Compiling interfaces..."), 633 self.tr("Compiling interfaces..."),
634 self.tr("Abort"), 634 self.tr("Abort"),
635 0, 635 0,
636 numIDLs, 636 numIDLs,
639 ) 639 )
640 progress.setModal(True) 640 progress.setModal(True)
641 progress.setMinimumDuration(0) 641 progress.setMinimumDuration(0)
642 progress.setWindowTitle(self.tr("Interfaces")) 642 progress.setWindowTitle(self.tr("Interfaces"))
643 643
644 for prog, fn in enumerate(self.project.pdata["INTERFACES"]): 644 for prog, fn in enumerate(
645 self.project.getProjectData(dataKey="INTERFACES")
646 ):
645 progress.setValue(prog) 647 progress.setValue(prog)
646 if progress.wasCanceled(): 648 if progress.wasCanceled():
647 break 649 break
648 proc = self.__compileIDL(fn, True, progress) 650 proc = self.__compileIDL(fn, True, progress)
649 if proc is not None: 651 if proc is not None:
693 Private method to show a dialog to configure some options for the 695 Private method to show a dialog to configure some options for the
694 IDL compiler. 696 IDL compiler.
695 """ 697 """
696 from .IdlCompilerOptionsDialog import IdlCompilerOptionsDialog 698 from .IdlCompilerOptionsDialog import IdlCompilerOptionsDialog
697 699
698 params = self.project.pdata["IDLPARAMS"] 700 params = self.project.getProjectData(dataKey="IDLPARAMS")
699 701
700 dlg = IdlCompilerOptionsDialog( 702 dlg = IdlCompilerOptionsDialog(
701 params["IncludeDirs"][:], 703 params["IncludeDirs"][:],
702 params["DefinedNames"][:], 704 params["DefinedNames"][:],
703 params["UndefinedNames"][:], 705 params["UndefinedNames"][:],

eric ide

mercurial