Project/Project.py

changeset 6604
a73d553ef521
parent 6597
dc668f774d3d
child 6615
386607e32376
equal deleted inserted replaced
6601:93a6141ecbf1 6604:a73d553ef521
497 "UndefinedNames": [], 497 "UndefinedNames": [],
498 }, 498 },
499 "UICPARAMS": { 499 "UICPARAMS": {
500 "Package": "", 500 "Package": "",
501 "RcSuffix": "", 501 "RcSuffix": "",
502 },
503 "RCCPARAMS":{
504 "CompressionThreshold": 70, # default value
505 "CompressLevel": 0, # use zlib default
506 "CompressionDisable": False,
507 "PathPrefix": "",
502 }, 508 },
503 "EOL": -1, 509 "EOL": -1,
504 } 510 }
505 511
506 self.__initDebugProperties() 512 self.__initDebugProperties()
5668 self.__makeProcess.finished.disconnect() 5674 self.__makeProcess.finished.disconnect()
5669 self.__makeProcess.deleteLater() 5675 self.__makeProcess.deleteLater()
5670 self.__makeProcess = None 5676 self.__makeProcess = None
5671 5677
5672 ######################################################################### 5678 #########################################################################
5673 ## Below are methods implementing the some 'IDL' support functions 5679 ## Below are methods implementing some 'IDL' support functions
5674 ######################################################################### 5680 #########################################################################
5675 5681
5676 def hasDefaultIdlCompilerParameters(self): 5682 def hasDefaultIdlCompilerParameters(self):
5677 """ 5683 """
5678 Public method to test, if the project contains the default IDL compiler 5684 Public method to test, if the project contains the default IDL compiler
5686 "DefinedNames": [], 5692 "DefinedNames": [],
5687 "UndefinedNames": [], 5693 "UndefinedNames": [],
5688 } 5694 }
5689 5695
5690 ######################################################################### 5696 #########################################################################
5691 ## Below are methods implementing the some 'UIC' support functions 5697 ## Below are methods implementing some 'UIC' support functions
5692 ######################################################################### 5698 #########################################################################
5693 5699
5694 def hasDefaultUicCompilerParameters(self): 5700 def hasDefaultUicCompilerParameters(self):
5695 """ 5701 """
5696 Public method to test, if the project contains the default uic compiler 5702 Public method to test, if the project contains the default uic compiler
5701 """ 5707 """
5702 return self.pdata["UICPARAMS"] == { 5708 return self.pdata["UICPARAMS"] == {
5703 "Package": "", 5709 "Package": "",
5704 "RcSuffix": "", 5710 "RcSuffix": "",
5705 } 5711 }
5712
5713 #########################################################################
5714 ## Below are methods implementing some 'RCC' support functions
5715 #########################################################################
5716
5717 def hasDefaultRccCompilerParameters(self):
5718 """
5719 Public method to test, if the project contains the default rcc compiler
5720 parameters.
5721
5722 @return flag indicating default parameter set
5723 @rtype bool
5724 """
5725 return self.pdata["RCCPARAMS"] == \
5726 self.getDefaultRccCompilerParameters()
5727
5728 def getDefaultRccCompilerParameters(self):
5729 """
5730 Public method to get the default rcc compiler parameters.
5731
5732 @return dictionary containing the default rcc compiler parameters
5733 @rtype dict
5734 """
5735 return {
5736 "CompressionThreshold": 70, # default value
5737 "CompressLevel": 0, # use zlib default
5738 "CompressionDisable": False,
5739 "PathPrefix": "",
5740 }

eric ide

mercurial