#### PyKDE - Python Bindings for KDE

# class KMdiMainFrm |
Table of contents
Modules
kmdi Classes
All Classes

Module | kmdi
Class | KMdiMainFrm
Inherits | KParts.DockMainWindow

### enums

- ExistsAs = {DocumentView, ToolView, AnyView }

### methods

- KMdiMainFrm (parentWidget, name = "", mdiMode = KMdi .ChildframeMode, flags = WType_TopLevel | WDestructiveClose)

  returns a KMdiMainFrm instance
  Argument | Type | Default
  --- | --- | ---
  parentWidget | QWidget |
  name | char | ""
  mdiMode | KMdi.MdiMode | KMdi .ChildframeMode
  flags | WFlags | WType_TopLevel | WDestructiveClose

- activateFirstWin ()

  returns nothing

- activateLastWin ()

  returns nothing

- activateNextWin ()

  returns nothing

- activatePrevWin ()

  returns nothing

- activateView (index)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  index | int |

- activateView (pWnd)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  pWnd | KMdiChildView |

- activeWindow ()

  returns (KMdiChildView)

- addToolWindow (pWnd, pos = KDockWidget .DockNone, pTargetWnd = 0, percent = 50, tabToolTip = 0, tabCaption = 0)

  returns (KMdiToolViewAccessor)
  Argument | Type | Default
  --- | --- | ---
  pWnd | QWidget |
  pos | KDockWidget.DockPosition | KDockWidget .DockNone
  pTargetWnd | QWidget | 0
  percent | int | 50
  tabToolTip | QString | 0
  tabCaption | QString | 0

- addWindow (pWnd, flags = KMdi .StandardAdd)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  pWnd | KMdiChildView |
  flags | int | KMdi .StandardAdd

- addWindow (pWnd, flags, index)

  returns nothing
  In versions KDE 3.3.0 and above only
  Argument | Type | Default
  --- | --- | ---
  pWnd | KMdiChildView |
  flags | int |
  index | int |

- addWindow (pWnd, pos, flags = KMdi .StandardAdd)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  pWnd | KMdiChildView |
  pos | QPoint |
  flags | int | KMdi .StandardAdd

- addWindow (pWnd, rectNormal, flags = KMdi .StandardAdd)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  pWnd | KMdiChildView |
  rectNormal | QRect |
  flags | int | KMdi .StandardAdd

- applyOptions ()

  returns nothing

- attachWindow (pWnd, bShow = 1, bAutomaticResize = 0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  pWnd | KMdiChildView |
  bShow | bool | 1
  bAutomaticResize | bool | 0

- blockClearingOfWindowMenu (bBlocked)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  bBlocked | bool |

- cascadeMaximized ()

  returns nothing

- cascadeWindows ()

  returns nothing

- childFrameModeHeight ()

  returns (int)

- childViewIsDetachedNow (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | QWidget |

- childWindowCloseRequest (pWnd)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  pWnd | KMdiChildView |

- closeActiveView ()

  returns nothing

- closeAllViews ()

  returns nothing

- closeViewButtonPressed ()

  returns nothing

- closeWindow (pWnd, layoutTaskBar = 1)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  pWnd | KMdiChildView |
  layoutTaskBar | bool | 1

- collapseOverlapContainers ()

  returns nothing

- createIterator ()

  Not Implemented

- createMdiManager ()

  returns nothing

- createTaskBar ()

  returns nothing

- createToolWindow ()

  returns (KMdiToolViewAccessor)

- createWrapper (view, name, shortName)

  returns (KMdiChildView)
  Argument | Type | Default
  --- | --- | ---
  view | QWidget |
  name | QString |
  shortName | QString |

- defaultChildFrmSize ()

  returns (QSize)

- deleteIterator (pIt)

  Not Implemented

- deleteToolWindow (pWnd)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  pWnd | QWidget |

- deleteToolWindow (accessor)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  accessor | KMdiToolViewAccessor |

- detachWindow (pWnd, bShow = 1)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  pWnd | KMdiChildView |
  bShow | bool | 1

- dockMenuItemActivated (id)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  id | int |

- dockToolViewsIntoContainers (widgetsToReparent, container)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  widgetsToReparent | QPtrList |
  container | KDockWidget |

- dragEndTimeOut ()

  returns nothing

- event (e)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  e | QEvent |

- eventFilter (obj, e)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  obj | QObject |
  e | QEvent |

- expandHorizontal ()

  returns nothing

- expandVertical ()

  returns nothing

- fakeSDIApplication ()

  returns nothing

- fillWindowMenu ()

  returns nothing

- findRootDockWidgets (pRootDockWidgetList, pPositionList)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  pRootDockWidgetList | QPtrList |
  pPositionList | QValueList |

- findToolViewsDockedToMain (list, dprtmw)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  list | QPtrList |
  dprtmw | KDockWidget.DockPosition |

- findWindow (caption)

  returns (KMdiChildView)
  Argument | Type | Default
  --- | --- | ---
  caption | QString |

- finishChildframeMode ()

  returns nothing

- finishIDEAlMode (full = 1)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  full | bool | 1

- finishTabPageMode ()

  returns nothing

- finishToplevelMode ()

  returns nothing

- frameDecorOfAttachedViews ()

  returns (int)
  static

- hideViewTaskBar ()

  returns nothing

- iconifyAllViews ()

  returns nothing

- idealToolViewsToStandardTabs (widgetNames, pos, sizee)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  widgetNames | QStringList |
  pos | KDockWidget.DockPosition |
  sizee | int |

- isFakingSDIApplication ()

  returns (bool)

- isInMaximizedChildFrmMode ()

  returns (bool)

- isViewTaskBarOn ()

  returns (bool)

- lastChildFrmClosed ()

  returns nothing

- lastChildViewClosed ()

  returns nothing

- leftTopLevelMode ()

  returns nothing

- mdiMode ()

  returns (KMdi.MdiMode)

- mdiModeHasBeenChangedTo (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | KMdi.MdiMode |

- nextToolViewInDock ()

  returns nothing

- popupWindowMenu (p)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  p | QPoint |

- prepareIdealToTabs (container)

  returns (QStringList)
  Argument | Type | Default
  --- | --- | ---
  container | KDockWidget |

- prevToolViewInDock ()

  returns nothing

- removeWindowFromMdi (pWnd)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  pWnd | KMdiChildView |

- resizeEvent (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | QResizeEvent |

- setBackgroundColor (c)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  c | QColor |

- setBackgroundPixmap (pm)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  pm | QPixmap |

- setDefaultChildFrmSize (sz)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  sz | QSize |

- setEnableMaximizedChildFrmMode (bEnable)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  bEnable | bool |

- setFrameDecorOfAttachedViews (frameDecor)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  frameDecor | int |

- setIDEAlModeStyle (flags)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  flags | int |

- setManagedDockPositionModeEnabled (enabled)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  enabled | bool |

- setMenuForSDIModeSysButtons (menuBar = 0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  menuBar | KMenuBar | 0

- setMinimumSize (minw, minh)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  minw | int |
  minh | int |

- setStandardMDIMenuEnabled (showModeMenu = 1)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  showModeMenu | bool | 1

- setSwitching (switching)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  switching | bool |

- setSysButtonsAtMenuPosition ()

  returns nothing

- setTabWidgetVisibility (a0)

  returns nothing
  In versions KDE 3.3.0 and above only
  Argument | Type | Default
  --- | --- | ---
  a0 | KMdi.TabWidgetVisibility |

- setToolviewStyle (flags)

  returns nothing
  In versions KDE 3.3.0 and above only
  Argument | Type | Default
  --- | --- | ---
  flags | int |

- setUndockPositioningOffset (offset)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  offset | QPoint |

- showViewTaskBar ()

  returns nothing

- slot_toggleTaskBar ()

  returns nothing

- switchOffMaximizeModeForMenu (oldChild)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  oldChild | KMdiChildFrm |

- switchToChildframeMode ()

  returns nothing

- switchToIDEAlMode ()

  returns nothing

- switchToTabPageMode ()

  returns nothing

- switchToToplevelMode ()

  returns nothing

- switching ()

  returns (bool)

- tabWidgetVisibility ()

  returns (KMdi.TabWidgetVisibility)
  In versions KDE 3.3.0 and above only

- taskBarHeight ()

  returns (int)

- taskBarPopup (pWnd, bIncludeWindowPopup = 0)

  returns (QPopupMenu)
  Argument | Type | Default
  --- | --- | ---
  pWnd | KMdiChildView |
  bIncludeWindowPopup | bool | 0

- taskbarButtonRightClicked (pWnd)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  pWnd | KMdiChildView |

- tileAnodine ()

  returns nothing

- tilePragma ()

  returns nothing

- tileVertically ()

  returns nothing

- toggleBottom ()

  returns nothing

- toggleLeft ()

  returns nothing

- toggleRight ()

  returns nothing

- toggleTop ()

  returns nothing

- updateSysButtonConnections (oldChild, newChild)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  oldChild | KMdiChildFrm |
  newChild | KMdiChildFrm |

- viewActivated (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | KMdiChildView |

- viewDeactivated (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | KMdiChildView |

- windowExists (pWnd, as)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  pWnd | KMdiChildView |
  as | KMdiMainFrm.ExistsAs |

- windowMenu ()

  returns (QPopupMenu)

- windowMenuItemActivated (id)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  id | int |

- windowPopup (pWnd, bIncludeTaskbarPopup = 1)

  returns (QPopupMenu)
  Argument | Type | Default
  --- | --- | ---
  pWnd | KMdiChildView |
  bIncludeTaskbarPopup | bool | 1