133 |
133 |
134 self.alignLeftAct = \ |
134 self.alignLeftAct = \ |
135 QAction(UI.PixmapCache.getIcon("shapesAlignLeft"), |
135 QAction(UI.PixmapCache.getIcon("shapesAlignLeft"), |
136 self.trUtf8("Align Left"), self) |
136 self.trUtf8("Align Left"), self) |
137 self.alignMapper.setMapping(self.alignLeftAct, Qt.AlignLeft) |
137 self.alignMapper.setMapping(self.alignLeftAct, Qt.AlignLeft) |
138 self.alignLeftAct.triggered.connect(self.alignMapper.map) |
138 self.alignLeftAct.triggered[()].connect(self.alignMapper.map) |
139 |
139 |
140 self.alignHCenterAct = \ |
140 self.alignHCenterAct = \ |
141 QAction(UI.PixmapCache.getIcon("shapesAlignHCenter"), |
141 QAction(UI.PixmapCache.getIcon("shapesAlignHCenter"), |
142 self.trUtf8("Align Center Horizontal"), self) |
142 self.trUtf8("Align Center Horizontal"), self) |
143 self.alignMapper.setMapping(self.alignHCenterAct, Qt.AlignHCenter) |
143 self.alignMapper.setMapping(self.alignHCenterAct, Qt.AlignHCenter) |
144 self.alignHCenterAct.triggered.connect(self.alignMapper.map) |
144 self.alignHCenterAct.triggered[()].connect(self.alignMapper.map) |
145 |
145 |
146 self.alignRightAct = \ |
146 self.alignRightAct = \ |
147 QAction(UI.PixmapCache.getIcon("shapesAlignRight"), |
147 QAction(UI.PixmapCache.getIcon("shapesAlignRight"), |
148 self.trUtf8("Align Right"), self) |
148 self.trUtf8("Align Right"), self) |
149 self.alignMapper.setMapping(self.alignRightAct, Qt.AlignRight) |
149 self.alignMapper.setMapping(self.alignRightAct, Qt.AlignRight) |
150 self.alignRightAct.triggered.connect(self.alignMapper.map) |
150 self.alignRightAct.triggered[()].connect(self.alignMapper.map) |
151 |
151 |
152 self.alignTopAct = \ |
152 self.alignTopAct = \ |
153 QAction(UI.PixmapCache.getIcon("shapesAlignTop"), |
153 QAction(UI.PixmapCache.getIcon("shapesAlignTop"), |
154 self.trUtf8("Align Top"), self) |
154 self.trUtf8("Align Top"), self) |
155 self.alignMapper.setMapping(self.alignTopAct, Qt.AlignTop) |
155 self.alignMapper.setMapping(self.alignTopAct, Qt.AlignTop) |
156 self.alignTopAct.triggered.connect(self.alignMapper.map) |
156 self.alignTopAct.triggered[()].connect(self.alignMapper.map) |
157 |
157 |
158 self.alignVCenterAct = \ |
158 self.alignVCenterAct = \ |
159 QAction(UI.PixmapCache.getIcon("shapesAlignVCenter"), |
159 QAction(UI.PixmapCache.getIcon("shapesAlignVCenter"), |
160 self.trUtf8("Align Center Vertical"), self) |
160 self.trUtf8("Align Center Vertical"), self) |
161 self.alignMapper.setMapping(self.alignVCenterAct, Qt.AlignVCenter) |
161 self.alignMapper.setMapping(self.alignVCenterAct, Qt.AlignVCenter) |
162 self.alignVCenterAct.triggered.connect(self.alignMapper.map) |
162 self.alignVCenterAct.triggered[()].connect(self.alignMapper.map) |
163 |
163 |
164 self.alignBottomAct = \ |
164 self.alignBottomAct = \ |
165 QAction(UI.PixmapCache.getIcon("shapesAlignBottom"), |
165 QAction(UI.PixmapCache.getIcon("shapesAlignBottom"), |
166 self.trUtf8("Align Bottom"), self) |
166 self.trUtf8("Align Bottom"), self) |
167 self.alignMapper.setMapping(self.alignBottomAct, Qt.AlignBottom) |
167 self.alignMapper.setMapping(self.alignBottomAct, Qt.AlignBottom) |
168 self.alignBottomAct.triggered.connect(self.alignMapper.map) |
168 self.alignBottomAct.triggered[()].connect(self.alignMapper.map) |
169 |
169 |
170 def __checkSizeActions(self): |
170 def __checkSizeActions(self): |
171 """ |
171 """ |
172 Private slot to set the enabled state of the size actions. |
172 Private slot to set the enabled state of the size actions. |
173 """ |
173 """ |