119 |
119 |
120 hlayout0 = QHBoxLayout() |
120 hlayout0 = QHBoxLayout() |
121 hlayout0.setContentsMargins(0, 0, 0, 0) |
121 hlayout0.setContentsMargins(0, 0, 0, 0) |
122 hlayout0.setSpacing(6) |
122 hlayout0.setSpacing(6) |
123 hlayout0.setObjectName("hlayout0") |
123 hlayout0.setObjectName("hlayout0") |
124 self.moreSinglesButton = QPushButton(self.trUtf8("Additional Entries"), |
124 self.moreSinglesButton = QPushButton( |
125 self.singlesBox) |
125 self.trUtf8("Additional Entries"), self.singlesBox) |
126 self.moreSinglesButton.setObjectName("moreSinglesButton") |
126 self.moreSinglesButton.setObjectName("moreSinglesButton") |
127 hlayout0.addWidget(self.moreSinglesButton) |
127 hlayout0.addWidget(self.moreSinglesButton) |
128 hspacer0 = QSpacerItem( |
128 hspacer0 = QSpacerItem( |
129 30, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) |
129 30, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) |
130 hlayout0.addItem(hspacer0) |
130 hlayout0.addItem(hspacer0) |
154 |
154 |
155 hlayout1 = QHBoxLayout() |
155 hlayout1 = QHBoxLayout() |
156 hlayout1.setContentsMargins(0, 0, 0, 0) |
156 hlayout1.setContentsMargins(0, 0, 0, 0) |
157 hlayout1.setSpacing(6) |
157 hlayout1.setSpacing(6) |
158 hlayout1.setObjectName("hlayout1") |
158 hlayout1.setObjectName("hlayout1") |
159 self.moreRangesButton = QPushButton(self.trUtf8("Additional Entries"), |
159 self.moreRangesButton = QPushButton( |
160 self.rangesBox) |
160 self.trUtf8("Additional Entries"), self.rangesBox) |
161 self.moreSinglesButton.setObjectName("moreRangesButton") |
161 self.moreSinglesButton.setObjectName("moreRangesButton") |
162 hlayout1.addWidget(self.moreRangesButton) |
162 hlayout1.addWidget(self.moreRangesButton) |
163 hspacer1 = QSpacerItem( |
163 hspacer1 = QSpacerItem( |
164 30, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) |
164 30, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) |
165 hlayout1.addItem(hspacer1) |
165 hlayout1.addItem(hspacer1) |
588 return char |
588 return char |
589 elif format == "-i": |
589 elif format == "-i": |
590 return "" |
590 return "" |
591 |
591 |
592 if self.__mode in [QRegExpWizardCharactersDialog.RegExpMode, |
592 if self.__mode in [QRegExpWizardCharactersDialog.RegExpMode, |
593 QRegExpWizardCharactersDialog.W3CMode]: |
593 QRegExpWizardCharactersDialog.W3CMode]: |
594 if format == "-h": |
594 if format == "-h": |
595 return "\\x{0}".format(char.lower()) |
595 return "\\x{0}".format(char.lower()) |
596 elif format == "-o": |
596 elif format == "-o": |
597 return "\\0{0}".format(char) |
597 return "\\0{0}".format(char) |
598 elif format in ["-ccp", "-cbp"]: |
598 elif format in ["-ccp", "-cbp"]: |