128 QAction(UI.PixmapCache.getIcon("reload.png"), |
128 QAction(UI.PixmapCache.getIcon("reload.png"), |
129 self.trUtf8("Re-Layout"), self) |
129 self.trUtf8("Re-Layout"), self) |
130 self.connect(self.relayoutAct, SIGNAL("triggered()"), self.__relayout) |
130 self.connect(self.relayoutAct, SIGNAL("triggered()"), self.__relayout) |
131 |
131 |
132 self.alignLeftAct = \ |
132 self.alignLeftAct = \ |
133 QAction(UI.PixmapCache.getIcon("shapesAlignLeft"), |
133 QAction(UI.PixmapCache.getIcon("shapesAlignLeft.png"), |
134 self.trUtf8("Align Left"), self) |
134 self.trUtf8("Align Left"), self) |
135 self.connect(self.alignLeftAct, SIGNAL("triggered()"), |
135 self.connect(self.alignLeftAct, SIGNAL("triggered()"), |
136 lambda align=Qt.AlignLeft: self.__alignShapes(align)) |
136 lambda align=Qt.AlignLeft: self.__alignShapes(align)) |
137 |
137 |
138 self.alignHCenterAct = \ |
138 self.alignHCenterAct = \ |
139 QAction(UI.PixmapCache.getIcon("shapesAlignHCenter"), |
139 QAction(UI.PixmapCache.getIcon("shapesAlignHCenter.png"), |
140 self.trUtf8("Align Center Horizontal"), self) |
140 self.trUtf8("Align Center Horizontal"), self) |
141 self.connect(self.alignHCenterAct, SIGNAL("triggered()"), |
141 self.connect(self.alignHCenterAct, SIGNAL("triggered()"), |
142 lambda align=Qt.AlignHCenter: self.__alignShapes(align)) |
142 lambda align=Qt.AlignHCenter: self.__alignShapes(align)) |
143 |
143 |
144 self.alignRightAct = \ |
144 self.alignRightAct = \ |
145 QAction(UI.PixmapCache.getIcon("shapesAlignRight"), |
145 QAction(UI.PixmapCache.getIcon("shapesAlignRight.png"), |
146 self.trUtf8("Align Right"), self) |
146 self.trUtf8("Align Right"), self) |
147 self.connect(self.alignRightAct, SIGNAL("triggered()"), |
147 self.connect(self.alignRightAct, SIGNAL("triggered()"), |
148 lambda align=Qt.AlignRight: self.__alignShapes(align)) |
148 lambda align=Qt.AlignRight: self.__alignShapes(align)) |
149 |
149 |
150 self.alignTopAct = \ |
150 self.alignTopAct = \ |
151 QAction(UI.PixmapCache.getIcon("shapesAlignTop"), |
151 QAction(UI.PixmapCache.getIcon("shapesAlignTop.png"), |
152 self.trUtf8("Align Top"), self) |
152 self.trUtf8("Align Top"), self) |
153 self.connect(self.alignTopAct, SIGNAL("triggered()"), |
153 self.connect(self.alignTopAct, SIGNAL("triggered()"), |
154 lambda align=Qt.AlignTop: self.__alignShapes(align)) |
154 lambda align=Qt.AlignTop: self.__alignShapes(align)) |
155 |
155 |
156 self.alignVCenterAct = \ |
156 self.alignVCenterAct = \ |
157 QAction(UI.PixmapCache.getIcon("shapesAlignVCenter"), |
157 QAction(UI.PixmapCache.getIcon("shapesAlignVCenter.png"), |
158 self.trUtf8("Align Center Vertical"), self) |
158 self.trUtf8("Align Center Vertical"), self) |
159 self.connect(self.alignVCenterAct, SIGNAL("triggered()"), |
159 self.connect(self.alignVCenterAct, SIGNAL("triggered()"), |
160 lambda align=Qt.AlignVCenter: self.__alignShapes(align)) |
160 lambda align=Qt.AlignVCenter: self.__alignShapes(align)) |
161 |
161 |
162 self.alignBottomAct = \ |
162 self.alignBottomAct = \ |
163 QAction(UI.PixmapCache.getIcon("shapesAlignBottom"), |
163 QAction(UI.PixmapCache.getIcon("shapesAlignBottom.png"), |
164 self.trUtf8("Align Bottom"), self) |
164 self.trUtf8("Align Bottom"), self) |
165 self.connect(self.alignBottomAct, SIGNAL("triggered()"), |
165 self.connect(self.alignBottomAct, SIGNAL("triggered()"), |
166 lambda align=Qt.AlignBottom: self.__alignShapes(align)) |
166 lambda align=Qt.AlignBottom: self.__alignShapes(align)) |
167 |
167 |
168 def __checkSizeActions(self): |
168 def __checkSizeActions(self): |