src/eric7/Project/RccCompilerOptionsDialog.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9653
e67609152c5e
equal deleted inserted replaced
9220:e9e7eca7efee 9221:bf71ee032bb4
14 14
15 class RccCompilerOptionsDialog(QDialog, Ui_RccCompilerOptionsDialog): 15 class RccCompilerOptionsDialog(QDialog, Ui_RccCompilerOptionsDialog):
16 """ 16 """
17 Class implementing a dialog to enter some non-common rcc compiler options. 17 Class implementing a dialog to enter some non-common rcc compiler options.
18 """ 18 """
19
19 def __init__(self, compilerOptions, parent=None): 20 def __init__(self, compilerOptions, parent=None):
20 """ 21 """
21 Constructor 22 Constructor
22 23
23 @param compilerOptions dictionary containing the rcc compiler options 24 @param compilerOptions dictionary containing the rcc compiler options
24 @type dict 25 @type dict
25 @param parent reference to the parent widget 26 @param parent reference to the parent widget
26 @type QWidget 27 @type QWidget
27 """ 28 """
28 super().__init__(parent) 29 super().__init__(parent)
29 self.setupUi(self) 30 self.setupUi(self)
30 31
31 self.thresholdSpinBox.setValue(compilerOptions["CompressionThreshold"]) 32 self.thresholdSpinBox.setValue(compilerOptions["CompressionThreshold"])
32 self.compressionSpinBox.setValue(compilerOptions["CompressLevel"]) 33 self.compressionSpinBox.setValue(compilerOptions["CompressLevel"])
33 self.disableCheckBox.setChecked(compilerOptions["CompressionDisable"]) 34 self.disableCheckBox.setChecked(compilerOptions["CompressionDisable"])
34 self.rootEdit.setText(compilerOptions["PathPrefix"]) 35 self.rootEdit.setText(compilerOptions["PathPrefix"])
35 36
36 msh = self.minimumSizeHint() 37 msh = self.minimumSizeHint()
37 self.resize(max(self.width(), msh.width()), msh.height()) 38 self.resize(max(self.width(), msh.width()), msh.height())
38 39
39 def getData(self): 40 def getData(self):
40 """ 41 """
41 Public method to get the entered data. 42 Public method to get the entered data.
42 43
43 @return tuple containing the compression threshold, compression level, 44 @return tuple containing the compression threshold, compression level,
44 flag indicating to disable compression and the resource access path 45 flag indicating to disable compression and the resource access path
45 prefix 46 prefix
46 @rtype tuple of (int, int, bool, str) 47 @rtype tuple of (int, int, bool, str)
47 """ 48 """

eric ide

mercurial