Plugins/ViewManagerPlugins/MdiArea/MdiArea.py

changeset 453
a81097a85889
parent 425
ca5e65413fc5
child 454
d28d558f7484
child 455
9a7e0b7b801e
equal deleted inserted replaced
452:0bc58cbb64b2 453:a81097a85889
215 self.tileAct.setStatusTip(self.trUtf8('Tile the windows')) 215 self.tileAct.setStatusTip(self.trUtf8('Tile the windows'))
216 self.tileAct.setWhatsThis(self.trUtf8( 216 self.tileAct.setWhatsThis(self.trUtf8(
217 """<b>Tile the windows</b>""" 217 """<b>Tile the windows</b>"""
218 """<p>Rearrange and resize the windows so that they are tiled.</p>""" 218 """<p>Rearrange and resize the windows so that they are tiled.</p>"""
219 )) 219 ))
220 self.connect(self.tileAct, SIGNAL('triggered()'), self.tile) 220 self.tileAct.triggered.connect(self.tile)
221 self.windowActions.append(self.tileAct) 221 self.windowActions.append(self.tileAct)
222 222
223 self.cascadeAct = E5Action(self.trUtf8('Cascade'), 223 self.cascadeAct = E5Action(self.trUtf8('Cascade'),
224 self.trUtf8('&Cascade'), 0, 0, self, 'vm_window_cascade') 224 self.trUtf8('&Cascade'), 0, 0, self, 'vm_window_cascade')
225 self.cascadeAct.setStatusTip(self.trUtf8('Cascade the windows')) 225 self.cascadeAct.setStatusTip(self.trUtf8('Cascade the windows'))
226 self.cascadeAct.setWhatsThis(self.trUtf8( 226 self.cascadeAct.setWhatsThis(self.trUtf8(
227 """<b>Cascade the windows</b>""" 227 """<b>Cascade the windows</b>"""
228 """<p>Rearrange and resize the windows so that they are cascaded.</p>""" 228 """<p>Rearrange and resize the windows so that they are cascaded.</p>"""
229 )) 229 ))
230 self.connect(self.cascadeAct, SIGNAL('triggered()'), self.cascade) 230 self.cascadeAct.triggered.connect(self.cascade)
231 self.windowActions.append(self.cascadeAct) 231 self.windowActions.append(self.cascadeAct)
232 232
233 self.nextChildAct = E5Action(self.trUtf8('Next'), 233 self.nextChildAct = E5Action(self.trUtf8('Next'),
234 self.trUtf8('&Next'), 0, 0, self, 'vm_window_next') 234 self.trUtf8('&Next'), 0, 0, self, 'vm_window_next')
235 self.nextChildAct.setStatusTip(self.trUtf8('Activate next window')) 235 self.nextChildAct.setStatusTip(self.trUtf8('Activate next window'))
236 self.nextChildAct.setWhatsThis(self.trUtf8( 236 self.nextChildAct.setWhatsThis(self.trUtf8(
237 """<b>Next</b>""" 237 """<b>Next</b>"""
238 """<p>Activate the next window of the list of open windows.</p>""" 238 """<p>Activate the next window of the list of open windows.</p>"""
239 )) 239 ))
240 self.connect(self.nextChildAct, SIGNAL('triggered()'), self.activateNextSubWindow) 240 self.nextChildAct.triggered.connect(self.activateNextSubWindow)
241 self.windowActions.append(self.nextChildAct) 241 self.windowActions.append(self.nextChildAct)
242 242
243 self.prevChildAct = E5Action(self.trUtf8('Previous'), 243 self.prevChildAct = E5Action(self.trUtf8('Previous'),
244 self.trUtf8('&Previous'), 0, 0, self, 'vm_window_previous') 244 self.trUtf8('&Previous'), 0, 0, self, 'vm_window_previous')
245 self.prevChildAct.setStatusTip(self.trUtf8('Activate previous window')) 245 self.prevChildAct.setStatusTip(self.trUtf8('Activate previous window'))
246 self.prevChildAct.setWhatsThis(self.trUtf8( 246 self.prevChildAct.setWhatsThis(self.trUtf8(
247 """<b>Previous</b>""" 247 """<b>Previous</b>"""
248 """<p>Activate the previous window of the list of open windows.</p>""" 248 """<p>Activate the previous window of the list of open windows.</p>"""
249 )) 249 ))
250 self.connect(self.prevChildAct, SIGNAL('triggered()'), 250 self.prevChildAct.triggered.connect(self.activatePreviousSubWindow)
251 self.activatePreviousSubWindow)
252 self.windowActions.append(self.prevChildAct) 251 self.windowActions.append(self.prevChildAct)
253 252
254 self.restoreAllAct = E5Action(self.trUtf8('Restore All'), 253 self.restoreAllAct = E5Action(self.trUtf8('Restore All'),
255 self.trUtf8('&Restore All'), 0, 0, self, 'vm_window_restore_all') 254 self.trUtf8('&Restore All'), 0, 0, self, 'vm_window_restore_all')
256 self.restoreAllAct.setStatusTip(self.trUtf8('Restore all windows')) 255 self.restoreAllAct.setStatusTip(self.trUtf8('Restore all windows'))
257 self.restoreAllAct.setWhatsThis(self.trUtf8( 256 self.restoreAllAct.setWhatsThis(self.trUtf8(
258 """<b>Restore All</b>""" 257 """<b>Restore All</b>"""
259 """<p>Restores all windows to their original size.</p>""" 258 """<p>Restores all windows to their original size.</p>"""
260 )) 259 ))
261 self.connect(self.restoreAllAct, SIGNAL('triggered()'), self.__restoreAllWindows) 260 self.restoreAllAct.triggered.connect(self.__restoreAllWindows)
262 self.windowActions.append(self.restoreAllAct) 261 self.windowActions.append(self.restoreAllAct)
263 262
264 self.iconizeAllAct = E5Action(self.trUtf8('Iconize All'), 263 self.iconizeAllAct = E5Action(self.trUtf8('Iconize All'),
265 self.trUtf8('&Iconize All'), 0, 0, self, 'vm_window_iconize_all') 264 self.trUtf8('&Iconize All'), 0, 0, self, 'vm_window_iconize_all')
266 self.iconizeAllAct.setStatusTip(self.trUtf8('Iconize all windows')) 265 self.iconizeAllAct.setStatusTip(self.trUtf8('Iconize all windows'))
267 self.iconizeAllAct.setWhatsThis(self.trUtf8( 266 self.iconizeAllAct.setWhatsThis(self.trUtf8(
268 """<b>Iconize All</b>""" 267 """<b>Iconize All</b>"""
269 """<p>Iconizes all windows.</p>""" 268 """<p>Iconizes all windows.</p>"""
270 )) 269 ))
271 self.connect(self.iconizeAllAct, SIGNAL('triggered()'), self.__iconizeAllWindows) 270 self.iconizeAllAct.triggered.connect(self.__iconizeAllWindows)
272 self.windowActions.append(self.iconizeAllAct) 271 self.windowActions.append(self.iconizeAllAct)
273 272
274 def setEditorName(self, editor, newName): 273 def setEditorName(self, editor, newName):
275 """ 274 """
276 Public method to change the displayed name of the editor. 275 Public method to change the displayed name of the editor.

eric ide

mercurial