285 def canCascade(self): |
285 def canCascade(self): |
286 """ |
286 """ |
287 Public method to signal if cascading of managed windows is available. |
287 Public method to signal if cascading of managed windows is available. |
288 |
288 |
289 @return flag indicating cascading of windows is available |
289 @return flag indicating cascading of windows is available |
290 @exception RuntimeError Not implemented |
290 @exception NotImplementedError Not implemented |
291 """ |
291 """ |
292 raise RuntimeError("Not implemented") |
292 raise NotImplementedError("Not implemented") |
293 |
293 |
294 return False |
294 return False |
295 |
295 |
296 def canTile(self): |
296 def canTile(self): |
297 """ |
297 """ |
298 Public method to signal if tiling of managed windows is available. |
298 Public method to signal if tiling of managed windows is available. |
299 |
299 |
300 @return flag indicating tiling of windows is available |
300 @return flag indicating tiling of windows is available |
301 @exception RuntimeError Not implemented |
301 @exception NotImplementedError Not implemented |
302 """ |
302 """ |
303 raise RuntimeError("Not implemented") |
303 raise NotImplementedError("Not implemented") |
304 |
304 |
305 return False |
305 return False |
306 |
306 |
307 def tile(self): |
307 def tile(self): |
308 """ |
308 """ |
309 Public method to tile the managed windows. |
309 Public method to tile the managed windows. |
310 |
310 |
311 @exception RuntimeError Not implemented |
311 @exception NotImplementedError Not implemented |
312 """ |
312 """ |
313 raise RuntimeError("Not implemented") |
313 raise NotImplementedError("Not implemented") |
314 |
314 |
315 def cascade(self): |
315 def cascade(self): |
316 """ |
316 """ |
317 Public method to cascade the managed windows. |
317 Public method to cascade the managed windows. |
318 |
318 |
319 @exception RuntimeError Not implemented |
319 @exception NotImplementedError Not implemented |
320 """ |
320 """ |
321 raise RuntimeError("Not implemented") |
321 raise NotImplementedError("Not implemented") |
322 |
322 |
323 def activeWindow(self): |
323 def activeWindow(self): |
324 """ |
324 """ |
325 Public method to return the active (i.e. current) window. |
325 Public method to return the active (i.e. current) window. |
326 |
326 |
327 @return reference to the active editor |
327 @return reference to the active editor |
328 @exception RuntimeError Not implemented |
328 @exception NotImplementedError Not implemented |
329 """ |
329 """ |
330 raise RuntimeError("Not implemented") |
330 raise NotImplementedError("Not implemented") |
331 |
331 |
332 return None # __IGNORE_WARNING_M831__ |
332 return None # __IGNORE_WARNING_M831__ |
333 |
333 |
334 def _removeAllViews(self): |
334 def _removeAllViews(self): |
335 """ |
335 """ |
336 Protected method to remove all views (i.e. windows). |
336 Protected method to remove all views (i.e. windows). |
337 |
337 |
338 @exception RuntimeError Not implemented |
338 @exception NotImplementedError Not implemented |
339 """ |
339 """ |
340 raise RuntimeError("Not implemented") |
340 raise NotImplementedError("Not implemented") |
341 |
341 |
342 def _removeView(self, win): |
342 def _removeView(self, win): |
343 """ |
343 """ |
344 Protected method to remove a view (i.e. window). |
344 Protected method to remove a view (i.e. window). |
345 |
345 |
346 @param win editor window to be removed |
346 @param win editor window to be removed |
347 @exception RuntimeError Not implemented |
347 @exception NotImplementedError Not implemented |
348 """ |
348 """ |
349 raise RuntimeError("Not implemented") |
349 raise NotImplementedError("Not implemented") |
350 |
350 |
351 def _addView(self, win, fn=None, noName="", addNext=False, indexes=None): |
351 def _addView(self, win, fn=None, noName="", addNext=False, indexes=None): |
352 """ |
352 """ |
353 Protected method to add a view (i.e. window). |
353 Protected method to add a view (i.e. window). |
354 |
354 |
362 view |
362 view |
363 @type bool |
363 @type bool |
364 @param indexes of the editor, first the split view index, second the |
364 @param indexes of the editor, first the split view index, second the |
365 index within the view |
365 index within the view |
366 @type tuple of two int |
366 @type tuple of two int |
367 @exception RuntimeError Not implemented |
367 @exception NotImplementedError Not implemented |
368 """ |
368 """ |
369 raise RuntimeError("Not implemented") |
369 raise NotImplementedError("Not implemented") |
370 |
370 |
371 def _showView(self, win, fn=None): |
371 def _showView(self, win, fn=None): |
372 """ |
372 """ |
373 Protected method to show a view (i.e. window). |
373 Protected method to show a view (i.e. window). |
374 |
374 |
375 @param win editor assembly to be shown |
375 @param win editor assembly to be shown |
376 @param fn filename of this editor |
376 @param fn filename of this editor |
377 @exception RuntimeError Not implemented |
377 @exception NotImplementedError Not implemented |
378 """ |
378 """ |
379 raise RuntimeError("Not implemented") |
379 raise NotImplementedError("Not implemented") |
380 |
380 |
381 def showWindowMenu(self, windowMenu): |
381 def showWindowMenu(self, windowMenu): |
382 """ |
382 """ |
383 Public method to set up the viewmanager part of the Window menu. |
383 Public method to set up the viewmanager part of the Window menu. |
384 |
384 |
385 @param windowMenu reference to the window menu |
385 @param windowMenu reference to the window menu |
386 @exception RuntimeError Not implemented |
386 @exception NotImplementedError Not implemented |
387 """ |
387 """ |
388 raise RuntimeError("Not implemented") |
388 raise NotImplementedError("Not implemented") |
389 |
389 |
390 def _initWindowActions(self): |
390 def _initWindowActions(self): |
391 """ |
391 """ |
392 Protected method to define the user interface actions for window |
392 Protected method to define the user interface actions for window |
393 handling. |
393 handling. |
394 |
394 |
395 @exception RuntimeError Not implemented |
395 @exception NotImplementedError Not implemented |
396 """ |
396 """ |
397 raise RuntimeError("Not implemented") |
397 raise NotImplementedError("Not implemented") |
398 |
398 |
399 def setEditorName(self, editor, newName): |
399 def setEditorName(self, editor, newName): |
400 """ |
400 """ |
401 Public method to change the displayed name of the editor. |
401 Public method to change the displayed name of the editor. |
402 |
402 |
403 @param editor editor window to be changed |
403 @param editor editor window to be changed |
404 @param newName new name to be shown (string) |
404 @param newName new name to be shown (string) |
405 @exception RuntimeError Not implemented |
405 @exception NotImplementedError Not implemented |
406 """ |
406 """ |
407 raise RuntimeError("Not implemented") |
407 raise NotImplementedError("Not implemented") |
408 |
408 |
409 def _modificationStatusChanged(self, m, editor): |
409 def _modificationStatusChanged(self, m, editor): |
410 """ |
410 """ |
411 Protected slot to handle the modificationStatusChanged signal. |
411 Protected slot to handle the modificationStatusChanged signal. |
412 |
412 |
413 @param m flag indicating the modification status (boolean) |
413 @param m flag indicating the modification status (boolean) |
414 @param editor editor window changed |
414 @param editor editor window changed |
415 @exception RuntimeError Not implemented |
415 @exception NotImplementedError Not implemented |
416 """ |
416 """ |
417 raise RuntimeError("Not implemented") |
417 raise NotImplementedError("Not implemented") |
418 |
418 |
419 def mainWidget(self): |
419 def mainWidget(self): |
420 """ |
420 """ |
421 Public method to return a reference to the main Widget of a |
421 Public method to return a reference to the main Widget of a |
422 specific view manager subclass. |
422 specific view manager subclass. |
423 |
423 |
424 @exception RuntimeError Not implemented |
424 @exception NotImplementedError Not implemented |
425 """ |
425 """ |
426 raise RuntimeError("Not implemented") |
426 raise NotImplementedError("Not implemented") |
427 |
427 |
428 ##################################################################### |
428 ##################################################################### |
429 ## methods above need to be implemented by a subclass |
429 ## methods above need to be implemented by a subclass |
430 ##################################################################### |
430 ##################################################################### |
431 |
431 |