Plugins/WizardPlugins/QRegExpWizard/QRegExpWizardCharactersDialog.py

changeset 2824
858412c29c34
parent 2733
0c4c648a93b3
child 2847
1843ef6e2656
child 3005
3953ddfb991d
equal deleted inserted replaced
2822:449de130268e 2824:858412c29c34
83 83
84 # generate dialog part for single characters 84 # generate dialog part for single characters
85 self.singlesBoxLayout = QVBoxLayout(self.singlesBox) 85 self.singlesBoxLayout = QVBoxLayout(self.singlesBox)
86 self.singlesBoxLayout.setObjectName("singlesBoxLayout") 86 self.singlesBoxLayout.setObjectName("singlesBoxLayout")
87 self.singlesBoxLayout.setSpacing(6) 87 self.singlesBoxLayout.setSpacing(6)
88 self.singlesBoxLayout.setMargin(6) 88 self.singlesBoxLayout.setContentsMargins(6, 6, 6, 6)
89 self.singlesBox.setLayout(self.singlesBoxLayout) 89 self.singlesBox.setLayout(self.singlesBoxLayout)
90 self.singlesView = QScrollArea(self.singlesBox) 90 self.singlesView = QScrollArea(self.singlesBox)
91 self.singlesView.setObjectName("singlesView") 91 self.singlesView.setObjectName("singlesView")
92 self.singlesBoxLayout.addWidget(self.singlesView) 92 self.singlesBoxLayout.addWidget(self.singlesView)
93 93
94 self.singlesItemsBox = QWidget(self) 94 self.singlesItemsBox = QWidget(self)
95 self.singlesView.setWidget(self.singlesItemsBox) 95 self.singlesView.setWidget(self.singlesItemsBox)
96 self.singlesItemsBox.setObjectName("singlesItemsBox") 96 self.singlesItemsBox.setObjectName("singlesItemsBox")
97 self.singlesItemsBox.setMinimumWidth(1000) 97 self.singlesItemsBox.setMinimumWidth(1000)
98 self.singlesItemsBoxLayout = QVBoxLayout(self.singlesItemsBox) 98 self.singlesItemsBoxLayout = QVBoxLayout(self.singlesItemsBox)
99 self.singlesItemsBoxLayout.setMargin(6) 99 self.singlesItemsBoxLayout.setContentsMargins(6, 6, 6, 6)
100 self.singlesItemsBoxLayout.setSpacing(6) 100 self.singlesItemsBoxLayout.setSpacing(6)
101 self.singlesItemsBox.setLayout(self.singlesItemsBoxLayout) 101 self.singlesItemsBox.setLayout(self.singlesItemsBoxLayout)
102 self.singlesEntries = [] 102 self.singlesEntries = []
103 self.__addSinglesLine() 103 self.__addSinglesLine()
104 104
105 hlayout0 = QHBoxLayout() 105 hlayout0 = QHBoxLayout()
106 hlayout0.setMargin(0) 106 hlayout0.setContentsMargins(0, 0, 0, 0)
107 hlayout0.setSpacing(6) 107 hlayout0.setSpacing(6)
108 hlayout0.setObjectName("hlayout0") 108 hlayout0.setObjectName("hlayout0")
109 self.moreSinglesButton = QPushButton(self.trUtf8("Additional Entries"), 109 self.moreSinglesButton = QPushButton(self.trUtf8("Additional Entries"),
110 self.singlesBox) 110 self.singlesBox)
111 self.moreSinglesButton.setObjectName("moreSinglesButton") 111 self.moreSinglesButton.setObjectName("moreSinglesButton")
117 117
118 # generate dialog part for character ranges 118 # generate dialog part for character ranges
119 self.rangesBoxLayout = QVBoxLayout(self.rangesBox) 119 self.rangesBoxLayout = QVBoxLayout(self.rangesBox)
120 self.rangesBoxLayout.setObjectName("rangesBoxLayout") 120 self.rangesBoxLayout.setObjectName("rangesBoxLayout")
121 self.rangesBoxLayout.setSpacing(6) 121 self.rangesBoxLayout.setSpacing(6)
122 self.rangesBoxLayout.setMargin(6) 122 self.rangesBoxLayout.setContentsMargins(6, 6, 6, 6)
123 self.rangesBox.setLayout(self.rangesBoxLayout) 123 self.rangesBox.setLayout(self.rangesBoxLayout)
124 self.rangesView = QScrollArea(self.rangesBox) 124 self.rangesView = QScrollArea(self.rangesBox)
125 self.rangesView.setObjectName("rangesView") 125 self.rangesView.setObjectName("rangesView")
126 self.rangesBoxLayout.addWidget(self.rangesView) 126 self.rangesBoxLayout.addWidget(self.rangesView)
127 127
128 self.rangesItemsBox = QWidget(self) 128 self.rangesItemsBox = QWidget(self)
129 self.rangesView.setWidget(self.rangesItemsBox) 129 self.rangesView.setWidget(self.rangesItemsBox)
130 self.rangesItemsBox.setObjectName("rangesItemsBox") 130 self.rangesItemsBox.setObjectName("rangesItemsBox")
131 self.rangesItemsBox.setMinimumWidth(1000) 131 self.rangesItemsBox.setMinimumWidth(1000)
132 self.rangesItemsBoxLayout = QVBoxLayout(self.rangesItemsBox) 132 self.rangesItemsBoxLayout = QVBoxLayout(self.rangesItemsBox)
133 self.rangesItemsBoxLayout.setMargin(6) 133 self.rangesItemsBoxLayout.setContentsMargins(6, 6, 6, 6)
134 self.rangesItemsBoxLayout.setSpacing(6) 134 self.rangesItemsBoxLayout.setSpacing(6)
135 self.rangesItemsBox.setLayout(self.rangesItemsBoxLayout) 135 self.rangesItemsBox.setLayout(self.rangesItemsBoxLayout)
136 self.rangesEntries = [] 136 self.rangesEntries = []
137 self.__addRangesLine() 137 self.__addRangesLine()
138 138
139 hlayout1 = QHBoxLayout() 139 hlayout1 = QHBoxLayout()
140 hlayout1.setMargin(0) 140 hlayout1.setContentsMargins(0, 0, 0, 0)
141 hlayout1.setSpacing(6) 141 hlayout1.setSpacing(6)
142 hlayout1.setObjectName("hlayout1") 142 hlayout1.setObjectName("hlayout1")
143 self.moreRangesButton = QPushButton(self.trUtf8("Additional Entries"), 143 self.moreRangesButton = QPushButton(self.trUtf8("Additional Entries"),
144 self.rangesBox) 144 self.rangesBox)
145 self.moreSinglesButton.setObjectName("moreRangesButton") 145 self.moreSinglesButton.setObjectName("moreRangesButton")
399 """ 399 """
400 Private slot to add a line of entry widgets for single characters. 400 Private slot to add a line of entry widgets for single characters.
401 """ 401 """
402 hbox = QWidget(self.singlesItemsBox) 402 hbox = QWidget(self.singlesItemsBox)
403 hboxLayout = QHBoxLayout(hbox) 403 hboxLayout = QHBoxLayout(hbox)
404 hboxLayout.setMargin(0) 404 hboxLayout.setContentsMargins(0, 0, 0, 0)
405 hboxLayout.setSpacing(6) 405 hboxLayout.setSpacing(6)
406 hbox.setLayout(hboxLayout) 406 hbox.setLayout(hboxLayout)
407 cb1 = QComboBox(hbox) 407 cb1 = QComboBox(hbox)
408 cb1.setEditable(False) 408 cb1.setEditable(False)
409 self.__populateCharTypeCombo(cb1, True) 409 self.__populateCharTypeCombo(cb1, True)
443 """ 443 """
444 Private slot to add a line of entry widgets for character ranges. 444 Private slot to add a line of entry widgets for character ranges.
445 """ 445 """
446 hbox = QWidget(self.rangesItemsBox) 446 hbox = QWidget(self.rangesItemsBox)
447 hboxLayout = QHBoxLayout(hbox) 447 hboxLayout = QHBoxLayout(hbox)
448 hboxLayout.setMargin(0) 448 hboxLayout.setContentsMargins(0, 0, 0, 0)
449 hboxLayout.setSpacing(6) 449 hboxLayout.setSpacing(6)
450 hbox.setLayout(hboxLayout) 450 hbox.setLayout(hboxLayout)
451 cb1 = QComboBox(hbox) 451 cb1 = QComboBox(hbox)
452 cb1.setEditable(False) 452 cb1.setEditable(False)
453 self.__populateCharTypeCombo(cb1, False) 453 self.__populateCharTypeCombo(cb1, False)

eric ide

mercurial