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