--- a/Project/Project.py Sat Dec 01 11:39:28 2018 +0100 +++ b/Project/Project.py Sat Dec 01 19:07:01 2018 +0100 @@ -500,6 +500,12 @@ "Package": "", "RcSuffix": "", }, + "RCCPARAMS":{ + "CompressionThreshold": 70, # default value + "CompressLevel": 0, # use zlib default + "CompressionDisable": False, + "PathPrefix": "", + }, "EOL": -1, } @@ -5670,7 +5676,7 @@ self.__makeProcess = None ######################################################################### - ## Below are methods implementing the some 'IDL' support functions + ## Below are methods implementing some 'IDL' support functions ######################################################################### def hasDefaultIdlCompilerParameters(self): @@ -5688,7 +5694,7 @@ } ######################################################################### - ## Below are methods implementing the some 'UIC' support functions + ## Below are methods implementing some 'UIC' support functions ######################################################################### def hasDefaultUicCompilerParameters(self): @@ -5703,3 +5709,32 @@ "Package": "", "RcSuffix": "", } + + ######################################################################### + ## Below are methods implementing some 'RCC' support functions + ######################################################################### + + def hasDefaultRccCompilerParameters(self): + """ + Public method to test, if the project contains the default rcc compiler + parameters. + + @return flag indicating default parameter set + @rtype bool + """ + return self.pdata["RCCPARAMS"] == \ + self.getDefaultRccCompilerParameters() + + def getDefaultRccCompilerParameters(self): + """ + Public method to get the default rcc compiler parameters. + + @return dictionary containing the default rcc compiler parameters + @rtype dict + """ + return { + "CompressionThreshold": 70, # default value + "CompressLevel": 0, # use zlib default + "CompressionDisable": False, + "PathPrefix": "", + }