8 """ |
8 """ |
9 |
9 |
10 from PyQt6.QtWidgets import QDialog |
10 from PyQt6.QtWidgets import QDialog |
11 |
11 |
12 from .Ui_Html5ToCss3ConverterParameterDialog import ( |
12 from .Ui_Html5ToCss3ConverterParameterDialog import ( |
13 Ui_Html5ToCss3ConverterParameterDialog |
13 Ui_Html5ToCss3ConverterParameterDialog, |
14 ) |
14 ) |
15 |
15 |
16 |
16 |
17 class Html5ToCss3ConverterParameterDialog( |
17 class Html5ToCss3ConverterParameterDialog( |
18 QDialog, Ui_Html5ToCss3ConverterParameterDialog): |
18 QDialog, Ui_Html5ToCss3ConverterParameterDialog |
|
19 ): |
19 """ |
20 """ |
20 Class implementing a dialog to enter the CSS conversion parameters. |
21 Class implementing a dialog to enter the CSS conversion parameters. |
21 """ |
22 """ |
|
23 |
22 def __init__(self, parent=None): |
24 def __init__(self, parent=None): |
23 """ |
25 """ |
24 Constructor |
26 Constructor |
25 |
27 |
26 @param parent reference to the parent widget |
28 @param parent reference to the parent widget |
27 @type QWidget |
29 @type QWidget |
28 """ |
30 """ |
29 super().__init__(parent) |
31 super().__init__(parent) |
30 self.setupUi(self) |
32 self.setupUi(self) |
31 |
33 |
32 msh = self.minimumSizeHint() |
34 msh = self.minimumSizeHint() |
33 self.resize(max(self.width(), msh.width()), msh.height()) |
35 self.resize(max(self.width(), msh.width()), msh.height()) |
34 |
36 |
35 def getData(self): |
37 def getData(self): |
36 """ |
38 """ |
37 Public method to get the entered data. |
39 Public method to get the entered data. |
38 |
40 |
39 @return tuple of indentation string and a flag indicating to use CSS |
41 @return tuple of indentation string and a flag indicating to use CSS |
40 placeholders |
42 placeholders |
41 @rtype tuple of (str, bool) |
43 @rtype tuple of (str, bool) |
42 """ |
44 """ |
43 placeholders = self.placeholderComboBox.currentIndex() == 1 |
45 placeholders = self.placeholderComboBox.currentIndex() == 1 |