/*
 * Module code.
 *
 * Generated by SIP 4.8.2 on Sun Oct 11 20:18:42 2009
 */

#include "sipAPIkparts.h"

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/mainwindow.sip"
#include <kparts/mainwindow.h>
#line 12 "sipkpartspart3.cpp"

#line 46 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 16 "sipkpartspart3.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 19 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 22 "sipkpartspart3.cpp"
#line 61 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/part.sip"
#include <kparts/part.h>
#line 25 "sipkpartspart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 28 "sipkpartspart3.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kconfiggroup.sip"
#include <kconfiggroup.h>
#line 31 "sipkpartspart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kxmlguiclient.sip"
#include <kxmlguiclient.h>
#line 34 "sipkpartspart3.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qaction.sip"
#include <qaction.h>
#line 37 "sipkpartspart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kxmlguiwindow.sip"
#include <kxmlguiwindow.h>
#line 40 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qsize.sip"
#include <qsize.h>
#line 43 "sipkpartspart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kxmlguifactory.sip"
#include <kxmlguifactory.h>
#line 46 "sipkpartspart3.cpp"
#line 35 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kconfig.sip"
#include <kconfig.h>
#line 49 "sipkpartspart3.cpp"
#line 388 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 52 "sipkpartspart3.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kstandardaction.sip"
#include <qlist.h>
#line 44 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kwidgetitemdelegate.sip"
#include <qlist.h>
#line 114 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kwindowsystem.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 89 "sipkpartspart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kactioncollection.sip"
#include <kactioncollection.h>
#line 92 "sipkpartspart3.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qactiongroup.sip"
#include <qactiongroup.h>
#line 95 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 98 "sipkpartspart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kicontheme.sip"
#include <kicontheme.h>
#line 101 "sipkpartspart3.cpp"
#line 212 "/usr/local/share/py-sip/QtGui/qtreewidget.sip"
#include <qtreewidget.h>
#line 104 "sipkpartspart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/ksessionmanager.sip"
#include <ksessionmanager.h>
#line 107 "sipkpartspart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kplotpoint.sip"
#include <kplotpoint.h>
#line 110 "sipkpartspart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kplotobject.sip"
#include <kplotobject.h>
#line 113 "sipkpartspart3.cpp"
#line 24 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kglobalshortcutinfo.sip"
#include <kglobalshortcutinfo.h>
#line 116 "sipkpartspart3.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 119 "sipkpartspart3.cpp"
#line 83 "/usr/local/share/py-sip/QtCore/qchar.sip"
#include <qchar.h>
#line 122 "sipkpartspart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kconfigdialogmanager.sip"
#include <kconfigdialogmanager.h>
#line 125 "sipkpartspart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kmainwindow.sip"
#include <kmainwindow.h>
#line 128 "sipkpartspart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/ktoolbar.sip"
#include <ktoolbar.h>
#line 131 "sipkpartspart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kstatusbar.sip"
#include <kstatusbar.h>
#line 134 "sipkpartspart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kmenubar.sip"
#include <kmenubar.h>
#line 137 "sipkpartspart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kmenu.sip"
#include <kmenu.h>
#line 140 "sipkpartspart3.cpp"
#line 136 "/usr/local/share/py-sip/QtGui/qfontdatabase.sip"
#include <qfontdatabase.h>
#include <qlist.h>
#line 66 "/usr/local/share/py-sip/QtGui/qprinterinfo.sip"
#include <qlist.h>
#line 229 "/usr/local/share/py-sip/QtGui/qwizard.sip"
#include <qwizard.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 520 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 201 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 204 "sipkpartspart3.cpp"
#line 44 "/usr/local/share/py-sip/QtGui/qgraphicswidget.sip"
#include <qgraphicswidget.h>
#line 207 "sipkpartspart3.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qabstractbutton.sip"
#include <qabstractbutton.h>
#line 210 "sipkpartspart3.cpp"
#line 466 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 482 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 215 "sipkpartspart3.cpp"
#line 50 "/usr/local/share/py-sip/QtGui/qgraphicsitem.sip"
#include <qgraphicsitem.h>
#line 218 "sipkpartspart3.cpp"
#line 99 "/usr/local/share/py-sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 221 "sipkpartspart3.cpp"
#line 50 "/usr/local/share/py-sip/QtGui/qgraphicsview.sip"
#include <qgraphicsview.h>
#line 224 "sipkpartspart3.cpp"
#line 165 "/usr/local/share/py-sip/QtCore/qrect.sip"
#include <qrect.h>
#line 227 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qlistwidget.sip"
#include <qlistwidget.h>
#line 230 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qdockwidget.sip"
#include <qdockwidget.h>
#line 233 "sipkpartspart3.cpp"
#line 50 "/usr/local/share/py-sip/QtGui/qmdisubwindow.sip"
#include <qmdisubwindow.h>
#line 236 "sipkpartspart3.cpp"
#line 334 "/usr/local/share/py-sip/QtGui/qpolygon.sip"
#include <qpolygon.h>
#line 239 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qtextedit.sip"
#include <qtextedit.h>
#line 56 "/usr/local/share/py-sip/QtGui/qtextedit.sip"
#include <qtextedit.h>
#line 244 "sipkpartspart3.cpp"
#line 44 "/usr/local/share/py-sip/QtGui/qprinterinfo.sip"
#include <qprinterinfo.h>
#line 247 "sipkpartspart3.cpp"
#line 202 "/usr/local/share/py-sip/QtGui/qstandarditemmodel.sip"
#include <qstandarditemmodel.h>
#line 250 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qtablewidget.sip"
#include <qtablewidget.h>
#line 253 "sipkpartspart3.cpp"
#line 66 "/usr/local/share/py-sip/QtGui/qtablewidget.sip"
#include <qtablewidget.h>
#line 256 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 114 "/usr/local/share/py-sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 261 "sipkpartspart3.cpp"
#line 65 "/usr/local/share/py-sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 88 "/usr/local/share/py-sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 266 "sipkpartspart3.cpp"
#line 149 "/usr/local/share/py-sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 175 "/usr/local/share/py-sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 271 "sipkpartspart3.cpp"
#line 83 "/usr/local/share/py-sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 101 "/usr/local/share/py-sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 276 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qtreewidget.sip"
#include <qtreewidget.h>
#line 279 "sipkpartspart3.cpp"
#line 75 "/usr/local/share/py-sip/QtGui/qundostack.sip"
#include <qundostack.h>
#line 282 "sipkpartspart3.cpp"
#line 50 "/usr/local/share/py-sip/QtGui/qwizard.sip"
#include <qwizard.h>
#line 285 "sipkpartspart3.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qprinter.sip"
#include <qprinter.h>
#line 288 "sipkpartspart3.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qfontdatabase.sip"
#include <qfontdatabase.h>
#line 291 "sipkpartspart3.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 294 "sipkpartspart3.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qtabwidget.sip"
#include <qtabwidget.h>
#line 297 "sipkpartspart3.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qtoolbar.sip"
#include <qtoolbar.h>
#line 300 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qmainwindow.sip"
#include <qmainwindow.h>
#line 303 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 306 "sipkpartspart3.cpp"
#line 436 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 309 "sipkpartspart3.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qmenu.sip"
#include <qmenu.h>
#line 312 "sipkpartspart3.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 315 "sipkpartspart3.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qstatusbar.sip"
#include <qstatusbar.h>
#line 318 "sipkpartspart3.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qmenubar.sip"
#include <qmenubar.h>
#line 321 "sipkpartspart3.cpp"
#line 44 "/usr/local/share/py-sip/QtGui/qgraphicsproxywidget.sip"
#include <qgraphicsproxywidget.h>
#line 324 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 327 "sipkpartspart3.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 330 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qregion.sip"
#include <qregion.h>
#line 333 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 336 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 339 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qrect.sip"
#include <qrect.h>
#line 342 "sipkpartspart3.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qfontinfo.sip"
#include <qfontinfo.h>
#line 345 "sipkpartspart3.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 348 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qfont.sip"
#include <qfont.h>
#line 351 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qpalette.sip"
#include <qpalette.h>
#line 354 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 357 "sipkpartspart3.cpp"
#line 466 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 482 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 362 "sipkpartspart3.cpp"
#line 424 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 365 "sipkpartspart3.cpp"
#line 412 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 368 "sipkpartspart3.cpp"
#line 508 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 371 "sipkpartspart3.cpp"
#line 562 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 374 "sipkpartspart3.cpp"
#line 533 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 377 "sipkpartspart3.cpp"
#line 550 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 380 "sipkpartspart3.cpp"
#line 618 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 383 "sipkpartspart3.cpp"
#line 247 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 386 "sipkpartspart3.cpp"
#line 374 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 389 "sipkpartspart3.cpp"
#line 360 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 392 "sipkpartspart3.cpp"
#line 345 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 395 "sipkpartspart3.cpp"
#line 325 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 398 "sipkpartspart3.cpp"
#line 296 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 401 "sipkpartspart3.cpp"
#line 225 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 404 "sipkpartspart3.cpp"
#line 184 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 407 "sipkpartspart3.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qinputcontext.sip"
#include <qinputcontext.h>
#line 410 "sipkpartspart3.cpp"
#line 74 "/usr/local/share/py-sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 413 "sipkpartspart3.cpp"
#line 47 "/usr/local/share/py-sip/QtGui/qx11info_x11.sip"
#include <qx11info_x11.h>
#line 416 "sipkpartspart3.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qlayout.sip"
#include <qlayout.h>
#line 419 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qsizepolicy.sip"
#include <qsizepolicy.h>
#line 422 "sipkpartspart3.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 425 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qcursor.sip"
#include <qcursor.h>
#line 428 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qicon.sip"
#include <qicon.h>
#line 431 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 434 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qstyle.sip"
#include <qstyle.h>
#line 437 "sipkpartspart3.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 440 "sipkpartspart3.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 443 "sipkpartspart3.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 446 "sipkpartspart3.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 477 "sipkpartspart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 480 "sipkpartspart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 483 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 486 "sipkpartspart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 489 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 492 "sipkpartspart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 495 "sipkpartspart3.cpp"
#line 345 "/usr/local/share/py-sip/QtXml/qdom.sip"
#include <qdom.h>
#line 498 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 501 "sipkpartspart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 504 "sipkpartspart3.cpp"
#line 221 "/usr/local/share/py-sip/QtXml/qdom.sip"
#include <qdom.h>
#line 507 "sipkpartspart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kxmlguiclient.sip"
#include <kxmlguiclient.h>
#line 510 "sipkpartspart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kxmlguibuilder.sip"
#include <kxmlguibuilder.h>
#line 513 "sipkpartspart3.cpp"


class sipKParts_MainWindow : public KParts::MainWindow
{
public:
    sipKParts_MainWindow(QWidget *,Qt::WindowFlags);
    sipKParts_MainWindow(QWidget *,const char *,Qt::WindowFlags);
    virtual ~sipKParts_MainWindow();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /* Expose this protected enum. */
    enum sipPluginLoadingMode {
        DoNotLoadPlugins = KParts::PartBase::DoNotLoadPlugins,
        LoadPlugins = KParts::PartBase::LoadPlugins,
        LoadPluginsIfEnabled = KParts::PartBase::LoadPluginsIfEnabled
    };

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    void sipProtect_loadPlugins(QObject *,KXMLGUIClient *,const KComponentData&);
    void sipProtect_setPluginInterfaceVersion(int);
    void sipProtectVirt_setComponentData(bool,const KComponentData&);
    void sipProtectVirt_setXMLFile(bool,const QString&,bool,bool);
    void sipProtectVirt_setLocalXMLFile(bool,const QString&);
    void sipProtectVirt_setXML(bool,const QString&,bool);
    void sipProtectVirt_setDOMDocument(bool,const QDomDocument&,bool);
    void sipProtectVirt_stateChanged(bool,const QString&,KXMLGUIClient::ReverseStateChange);
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    void sipProtectVirt_mousePressEvent(bool,QMouseEvent *);
    void sipProtectVirt_mouseReleaseEvent(bool,QMouseEvent *);
    void sipProtectVirt_mouseDoubleClickEvent(bool,QMouseEvent *);
    void sipProtectVirt_mouseMoveEvent(bool,QMouseEvent *);
    void sipProtectVirt_wheelEvent(bool,QWheelEvent *);
    void sipProtectVirt_keyPressEvent(bool,QKeyEvent *);
    void sipProtectVirt_keyReleaseEvent(bool,QKeyEvent *);
    void sipProtectVirt_focusInEvent(bool,QFocusEvent *);
    void sipProtectVirt_focusOutEvent(bool,QFocusEvent *);
    void sipProtectVirt_enterEvent(bool,QEvent *);
    void sipProtectVirt_leaveEvent(bool,QEvent *);
    void sipProtectVirt_paintEvent(bool,QPaintEvent *);
    void sipProtectVirt_moveEvent(bool,QMoveEvent *);
    void sipProtectVirt_resizeEvent(bool,QResizeEvent *);
    void sipProtectVirt_tabletEvent(bool,QTabletEvent *);
    void sipProtectVirt_actionEvent(bool,QActionEvent *);
    void sipProtectVirt_dragEnterEvent(bool,QDragEnterEvent *);
    void sipProtectVirt_dragMoveEvent(bool,QDragMoveEvent *);
    void sipProtectVirt_dragLeaveEvent(bool,QDragLeaveEvent *);
    void sipProtectVirt_dropEvent(bool,QDropEvent *);
    void sipProtectVirt_showEvent(bool,QShowEvent *);
    void sipProtectVirt_hideEvent(bool,QHideEvent *);
    void sipProtectVirt_changeEvent(bool,QEvent *);
    int sipProtectVirt_metric(bool,QPaintDevice::PaintDeviceMetric) const;
    void sipProtectVirt_inputMethodEvent(bool,QInputMethodEvent *);
    void sipProtect_resetInputContext();
    void sipProtect_updateMicroFocus();
    void sipProtect_create(WId,bool,bool);
    void sipProtect_destroy(bool,bool);
    bool sipProtectVirt_focusNextPrevChild(bool,bool);
    bool sipProtect_focusNextChild();
    bool sipProtect_focusPreviousChild();
    void sipProtectVirt_enabledChange(bool,bool);
    void sipProtectVirt_paletteChange(bool,const QPalette&);
    void sipProtectVirt_fontChange(bool,const QFont&);
    void sipProtectVirt_windowActivationChange(bool,bool);
    void sipProtectVirt_languageChange(bool);
    void sipProtectVirt_contextMenuEvent(bool,QContextMenuEvent *);
    void sipProtectVirt_closeEvent(bool,QCloseEvent *);
    bool sipProtectVirt_queryExit(bool);
    bool sipProtectVirt_queryClose(bool);
    void sipProtectVirt_saveProperties(bool,KConfigGroup&);
    void sipProtectVirt_readProperties(bool,const KConfigGroup&);
    void sipProtectVirt_saveGlobalProperties(bool,KConfig *);
    void sipProtectVirt_readGlobalProperties(bool,KConfig *);
    void sipProtect_savePropertiesInternal(KConfig *,int);
    bool sipProtect_readPropertiesInternal(KConfig *,int);
    bool sipProtect_settingsDirty() const;
    void sipProtect_saveWindowSize(const KConfigGroup&) const;
    void sipProtect_restoreWindowSize(const KConfigGroup&);
    void sipProtect_parseGeometry(bool);
    void sipProtectVirt_showAboutApplication(bool);
    void sipProtect_saveAutoSaveSettings();
    bool sipProtectVirt_event(bool,QEvent *);
    void sipProtect_createGUI(KParts::Part *);
    void sipProtectVirt_slotSetStatusBarText(bool,const QString&);
    void sipProtectVirt_saveNewToolbarConfig(bool);
    void sipProtectVirt_createShellGUI(bool,bool);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void configureToolbars();
    void slotSetStatusBarText(const QString&);
    void createShellGUI(bool);
    KXMLGUIFactory * guiFactory();
    void finalizeGUI(KXMLGUIClient *);
    void applyMainWindowSettings(const KConfigGroup&,bool);
    void slotStateChanged(const QString&);
    bool event(QEvent *);
    void saveNewToolbarConfig();
    void setCaption(const QString&);
    void setCaption(const QString&,bool);
    void setPlainCaption(const QString&);
    void closeEvent(QCloseEvent *);
    bool queryExit();
    bool queryClose();
    void saveProperties(KConfigGroup&);
    void readProperties(const KConfigGroup&);
    void saveGlobalProperties(KConfig *);
    void readGlobalProperties(KConfig *);
    void showAboutApplication();
    QMenu * createPopupMenu();
    void contextMenuEvent(QContextMenuEvent *);
    int devType() const;
    void setVisible(bool);
    QSize sizeHint() const;
    QSize minimumSizeHint() const;
    int heightForWidth(int) const;
    QPaintEngine * paintEngine() const;
    void mousePressEvent(QMouseEvent *);
    void mouseReleaseEvent(QMouseEvent *);
    void mouseDoubleClickEvent(QMouseEvent *);
    void mouseMoveEvent(QMouseEvent *);
    void wheelEvent(QWheelEvent *);
    void keyPressEvent(QKeyEvent *);
    void keyReleaseEvent(QKeyEvent *);
    void focusInEvent(QFocusEvent *);
    void focusOutEvent(QFocusEvent *);
    void enterEvent(QEvent *);
    void leaveEvent(QEvent *);
    void paintEvent(QPaintEvent *);
    void moveEvent(QMoveEvent *);
    void resizeEvent(QResizeEvent *);
    void tabletEvent(QTabletEvent *);
    void actionEvent(QActionEvent *);
    void dragEnterEvent(QDragEnterEvent *);
    void dragMoveEvent(QDragMoveEvent *);
    void dragLeaveEvent(QDragLeaveEvent *);
    void dropEvent(QDropEvent *);
    void showEvent(QShowEvent *);
    void hideEvent(QHideEvent *);
    void changeEvent(QEvent *);
    int metric(QPaintDevice::PaintDeviceMetric) const;
    void inputMethodEvent(QInputMethodEvent *);
    QVariant inputMethodQuery(Qt::InputMethodQuery) const;
    bool focusNextPrevChild(bool);
    void enabledChange(bool);
    void paletteChange(const QPalette&);
    void fontChange(const QFont&);
    void windowActivationChange(bool);
    void languageChange();
    bool eventFilter(QObject *,QEvent *);
    void timerEvent(QTimerEvent *);
    void childEvent(QChildEvent *);
    void customEvent(QEvent *);
    void connectNotify(const char *);
    void disconnectNotify(const char *);
    QStringList containerTags() const;
    QWidget * createContainer(QWidget *,int,const QDomElement&,QAction *&);
    void removeContainer(QWidget *,QWidget *,QDomElement&,QAction *);
    QStringList customTags() const;
    QAction * createCustomElement(QWidget *,int,const QDomElement&);
    void removeCustomElement(QWidget *,QAction *);
    QAction * action(const QDomElement&) const;
    KActionCollection * actionCollection() const;
    KComponentData componentData() const;
    QDomDocument domDocument() const;
    QString xmlFile() const;
    QString localXMLFile() const;
    void setComponentData(const KComponentData&);
    void setXMLFile(const QString&,bool,bool);
    void setLocalXMLFile(const QString&);
    void setXML(const QString&,bool);
    void setDOMDocument(const QDomDocument&,bool);
    void stateChanged(const QString&,KXMLGUIClient::ReverseStateChange);
    void setComponentData(const KComponentData&,bool);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKParts_MainWindow(const sipKParts_MainWindow &);
    sipKParts_MainWindow &operator = (const sipKParts_MainWindow &);

    char sipPyMethods[85];
};

sipKParts_MainWindow::sipKParts_MainWindow(QWidget *a0,Qt::WindowFlags a1): KParts::MainWindow(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKParts_MainWindow::sipKParts_MainWindow(QWidget *a0,const char *a1,Qt::WindowFlags a2): KParts::MainWindow(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKParts_MainWindow::~sipKParts_MainWindow()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipKParts_MainWindow::metaObject() const
{
    return sip_kparts_qt_metaobject(sipPySelf,sipType_KParts_MainWindow);
}

int sipKParts_MainWindow::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KParts::MainWindow::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_kparts_qt_metacall(sipPySelf,sipType_KParts_MainWindow,_c,_id,_a);

    return _id;
}

void *sipKParts_MainWindow::qt_metacast(const char *_clname)
{
    return (sip_kparts_qt_metacast && sip_kparts_qt_metacast(sipPySelf,sipType_KParts_MainWindow,_clname)) ? this : KParts::MainWindow::qt_metacast(_clname);
}

void sipKParts_MainWindow::configureToolbars()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_configureToolbars);

    if (!meth)
    {
        KParts::MainWindow::configureToolbars();
        return;
    }

    ((sipVH_QtCore_5)(sipModuleAPI_kparts_QtCore->em_virthandlers[5]))(sipGILState,meth);
}

void sipKParts_MainWindow::slotSetStatusBarText(const QString& a0)
{
    typedef void (*sipVH_QtCore_29)(sip_gilstate_t,PyObject *,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_slotSetStatusBarText);

    if (!meth)
    {
        KParts::MainWindow::slotSetStatusBarText(a0);
        return;
    }

    ((sipVH_QtCore_29)(sipModuleAPI_kparts_QtCore->em_virthandlers[29]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::createShellGUI(bool a0)
{
    typedef void (*sipVH_QtNetwork_2)(sip_gilstate_t,PyObject *,bool);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_createShellGUI);

    if (!meth)
    {
        KParts::MainWindow::createShellGUI(a0);
        return;
    }

    ((sipVH_QtNetwork_2)(sipModuleAPI_kparts_QtNetwork->em_virthandlers[2]))(sipGILState,meth,a0);
}

KXMLGUIFactory * sipKParts_MainWindow::guiFactory()
{
    typedef KXMLGUIFactory * (*sipVH_kdeui_2)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_guiFactory);

    if (!meth)
        return KXmlGuiWindow::guiFactory();

    return ((sipVH_kdeui_2)(sipModuleAPI_kparts_kdeui->em_virthandlers[2]))(sipGILState,meth);
}

void sipKParts_MainWindow::finalizeGUI(KXMLGUIClient *a0)
{
    typedef void (*sipVH_kdeui_1)(sip_gilstate_t,PyObject *,KXMLGUIClient *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_finalizeGUI);

    if (!meth)
    {
        KXmlGuiWindow::finalizeGUI(a0);
        return;
    }

    ((sipVH_kdeui_1)(sipModuleAPI_kparts_kdeui->em_virthandlers[1]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::applyMainWindowSettings(const KConfigGroup& a0,bool a1)
{
    typedef void (*sipVH_kdeui_0)(sip_gilstate_t,PyObject *,const KConfigGroup&,bool);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_applyMainWindowSettings);

    if (!meth)
    {
        KXmlGuiWindow::applyMainWindowSettings(a0,a1);
        return;
    }

    ((sipVH_kdeui_0)(sipModuleAPI_kparts_kdeui->em_virthandlers[0]))(sipGILState,meth,a0,a1);
}

void sipKParts_MainWindow::slotStateChanged(const QString& a0)
{
    typedef void (*sipVH_QtCore_29)(sip_gilstate_t,PyObject *,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_slotStateChanged);

    if (!meth)
    {
        KXmlGuiWindow::slotStateChanged(a0);
        return;
    }

    ((sipVH_QtCore_29)(sipModuleAPI_kparts_QtCore->em_virthandlers[29]))(sipGILState,meth,a0);
}

bool sipKParts_MainWindow::event(QEvent *a0)
{
    typedef bool (*sipVH_QtCore_13)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_event);

    if (!meth)
        return KXmlGuiWindow::event(a0);

    return ((sipVH_QtCore_13)(sipModuleAPI_kparts_QtCore->em_virthandlers[13]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::saveNewToolbarConfig()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_saveNewToolbarConfig);

    if (!meth)
    {
        KParts::MainWindow::saveNewToolbarConfig();
        return;
    }

    ((sipVH_QtCore_5)(sipModuleAPI_kparts_QtCore->em_virthandlers[5]))(sipGILState,meth);
}

void sipKParts_MainWindow::setCaption(const QString& a0)
{
    typedef void (*sipVH_QtCore_29)(sip_gilstate_t,PyObject *,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_setCaption);

    if (!meth)
    {
        KMainWindow::setCaption(a0);
        return;
    }

    ((sipVH_QtCore_29)(sipModuleAPI_kparts_QtCore->em_virthandlers[29]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::setCaption(const QString& a0,bool a1)
{
    typedef void (*sipVH_QtXml_24)(sip_gilstate_t,PyObject *,const QString&,bool);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_setCaption);

    if (!meth)
    {
        KMainWindow::setCaption(a0,a1);
        return;
    }

    ((sipVH_QtXml_24)(sipModuleAPI_kparts_QtXml->em_virthandlers[24]))(sipGILState,meth,a0,a1);
}

void sipKParts_MainWindow::setPlainCaption(const QString& a0)
{
    typedef void (*sipVH_QtCore_29)(sip_gilstate_t,PyObject *,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_setPlainCaption);

    if (!meth)
    {
        KMainWindow::setPlainCaption(a0);
        return;
    }

    ((sipVH_QtCore_29)(sipModuleAPI_kparts_QtCore->em_virthandlers[29]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::closeEvent(QCloseEvent *a0)
{
    typedef void (*sipVH_QtGui_23)(sip_gilstate_t,PyObject *,QCloseEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_closeEvent);

    if (!meth)
    {
        KMainWindow::closeEvent(a0);
        return;
    }

    ((sipVH_QtGui_23)(sipModuleAPI_kparts_QtGui->em_virthandlers[23]))(sipGILState,meth,a0);
}

bool sipKParts_MainWindow::queryExit()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_queryExit);

    if (!meth)
        return KMainWindow::queryExit();

    return ((sipVH_QtCore_1)(sipModuleAPI_kparts_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

bool sipKParts_MainWindow::queryClose()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_queryClose);

    if (!meth)
        return KMainWindow::queryClose();

    return ((sipVH_QtCore_1)(sipModuleAPI_kparts_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

void sipKParts_MainWindow::saveProperties(KConfigGroup& a0)
{
    typedef void (*sipVH_kdeui_33)(sip_gilstate_t,PyObject *,KConfigGroup&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_saveProperties);

    if (!meth)
    {
        KMainWindow::saveProperties(a0);
        return;
    }

    ((sipVH_kdeui_33)(sipModuleAPI_kparts_kdeui->em_virthandlers[33]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::readProperties(const KConfigGroup& a0)
{
    typedef void (*sipVH_kdeui_32)(sip_gilstate_t,PyObject *,const KConfigGroup&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_readProperties);

    if (!meth)
    {
        KMainWindow::readProperties(a0);
        return;
    }

    ((sipVH_kdeui_32)(sipModuleAPI_kparts_kdeui->em_virthandlers[32]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::saveGlobalProperties(KConfig *a0)
{
    typedef void (*sipVH_kdecore_48)(sip_gilstate_t,PyObject *,KConfig *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_saveGlobalProperties);

    if (!meth)
    {
        KMainWindow::saveGlobalProperties(a0);
        return;
    }

    ((sipVH_kdecore_48)(sipModuleAPI_kparts_kdecore->em_virthandlers[48]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::readGlobalProperties(KConfig *a0)
{
    typedef void (*sipVH_kdecore_48)(sip_gilstate_t,PyObject *,KConfig *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_readGlobalProperties);

    if (!meth)
    {
        KMainWindow::readGlobalProperties(a0);
        return;
    }

    ((sipVH_kdecore_48)(sipModuleAPI_kparts_kdecore->em_virthandlers[48]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::showAboutApplication()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,NULL,sipName_showAboutApplication);

    if (!meth)
    {
        KMainWindow::showAboutApplication();
        return;
    }

    ((sipVH_QtCore_5)(sipModuleAPI_kparts_QtCore->em_virthandlers[5]))(sipGILState,meth);
}

QMenu * sipKParts_MainWindow::createPopupMenu()
{
    typedef QMenu * (*sipVH_QtGui_146)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,NULL,sipName_createPopupMenu);

    if (!meth)
        return QMainWindow::createPopupMenu();

    return ((sipVH_QtGui_146)(sipModuleAPI_kparts_QtGui->em_virthandlers[146]))(sipGILState,meth);
}

void sipKParts_MainWindow::contextMenuEvent(QContextMenuEvent *a0)
{
    typedef void (*sipVH_QtGui_22)(sip_gilstate_t,PyObject *,QContextMenuEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,NULL,sipName_contextMenuEvent);

    if (!meth)
    {
        QMainWindow::contextMenuEvent(a0);
        return;
    }

    ((sipVH_QtGui_22)(sipModuleAPI_kparts_QtGui->em_virthandlers[22]))(sipGILState,meth,a0);
}

int sipKParts_MainWindow::devType() const
{
    typedef int (*sipVH_QtCore_8)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[22]),sipPySelf,NULL,sipName_devType);

    if (!meth)
        return QWidget::devType();

    return ((sipVH_QtCore_8)(sipModuleAPI_kparts_QtCore->em_virthandlers[8]))(sipGILState,meth);
}

void sipKParts_MainWindow::setVisible(bool a0)
{
    typedef void (*sipVH_QtGui_7)(sip_gilstate_t,PyObject *,bool);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,NULL,sipName_setVisible);

    if (!meth)
    {
        QWidget::setVisible(a0);
        return;
    }

    ((sipVH_QtGui_7)(sipModuleAPI_kparts_QtGui->em_virthandlers[7]))(sipGILState,meth,a0);
}

QSize sipKParts_MainWindow::sizeHint() const
{
    typedef QSize (*sipVH_QtGui_4)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[24]),sipPySelf,NULL,sipName_sizeHint);

    if (!meth)
        return QWidget::sizeHint();

    return ((sipVH_QtGui_4)(sipModuleAPI_kparts_QtGui->em_virthandlers[4]))(sipGILState,meth);
}

QSize sipKParts_MainWindow::minimumSizeHint() const
{
    typedef QSize (*sipVH_QtGui_4)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[25]),sipPySelf,NULL,sipName_minimumSizeHint);

    if (!meth)
        return QWidget::minimumSizeHint();

    return ((sipVH_QtGui_4)(sipModuleAPI_kparts_QtGui->em_virthandlers[4]))(sipGILState,meth);
}

int sipKParts_MainWindow::heightForWidth(int a0) const
{
    typedef int (*sipVH_QtGui_29)(sip_gilstate_t,PyObject *,int);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[26]),sipPySelf,NULL,sipName_heightForWidth);

    if (!meth)
        return QWidget::heightForWidth(a0);

    return ((sipVH_QtGui_29)(sipModuleAPI_kparts_QtGui->em_virthandlers[29]))(sipGILState,meth,a0);
}

QPaintEngine * sipKParts_MainWindow::paintEngine() const
{
    typedef QPaintEngine * (*sipVH_QtGui_28)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[27]),sipPySelf,NULL,sipName_paintEngine);

    if (!meth)
        return QWidget::paintEngine();

    return ((sipVH_QtGui_28)(sipModuleAPI_kparts_QtGui->em_virthandlers[28]))(sipGILState,meth);
}

void sipKParts_MainWindow::mousePressEvent(QMouseEvent *a0)
{
    typedef void (*sipVH_QtGui_27)(sip_gilstate_t,PyObject *,QMouseEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[28],sipPySelf,NULL,sipName_mousePressEvent);

    if (!meth)
    {
        QWidget::mousePressEvent(a0);
        return;
    }

    ((sipVH_QtGui_27)(sipModuleAPI_kparts_QtGui->em_virthandlers[27]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::mouseReleaseEvent(QMouseEvent *a0)
{
    typedef void (*sipVH_QtGui_27)(sip_gilstate_t,PyObject *,QMouseEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,NULL,sipName_mouseReleaseEvent);

    if (!meth)
    {
        QWidget::mouseReleaseEvent(a0);
        return;
    }

    ((sipVH_QtGui_27)(sipModuleAPI_kparts_QtGui->em_virthandlers[27]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::mouseDoubleClickEvent(QMouseEvent *a0)
{
    typedef void (*sipVH_QtGui_27)(sip_gilstate_t,PyObject *,QMouseEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[30],sipPySelf,NULL,sipName_mouseDoubleClickEvent);

    if (!meth)
    {
        QWidget::mouseDoubleClickEvent(a0);
        return;
    }

    ((sipVH_QtGui_27)(sipModuleAPI_kparts_QtGui->em_virthandlers[27]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::mouseMoveEvent(QMouseEvent *a0)
{
    typedef void (*sipVH_QtGui_27)(sip_gilstate_t,PyObject *,QMouseEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[31],sipPySelf,NULL,sipName_mouseMoveEvent);

    if (!meth)
    {
        QWidget::mouseMoveEvent(a0);
        return;
    }

    ((sipVH_QtGui_27)(sipModuleAPI_kparts_QtGui->em_virthandlers[27]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::wheelEvent(QWheelEvent *a0)
{
    typedef void (*sipVH_QtGui_5)(sip_gilstate_t,PyObject *,QWheelEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[32],sipPySelf,NULL,sipName_wheelEvent);

    if (!meth)
    {
        QWidget::wheelEvent(a0);
        return;
    }

    ((sipVH_QtGui_5)(sipModuleAPI_kparts_QtGui->em_virthandlers[5]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::keyPressEvent(QKeyEvent *a0)
{
    typedef void (*sipVH_QtGui_26)(sip_gilstate_t,PyObject *,QKeyEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[33],sipPySelf,NULL,sipName_keyPressEvent);

    if (!meth)
    {
        QWidget::keyPressEvent(a0);
        return;
    }

    ((sipVH_QtGui_26)(sipModuleAPI_kparts_QtGui->em_virthandlers[26]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::keyReleaseEvent(QKeyEvent *a0)
{
    typedef void (*sipVH_QtGui_26)(sip_gilstate_t,PyObject *,QKeyEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[34],sipPySelf,NULL,sipName_keyReleaseEvent);

    if (!meth)
    {
        QWidget::keyReleaseEvent(a0);
        return;
    }

    ((sipVH_QtGui_26)(sipModuleAPI_kparts_QtGui->em_virthandlers[26]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::focusInEvent(QFocusEvent *a0)
{
    typedef void (*sipVH_QtGui_25)(sip_gilstate_t,PyObject *,QFocusEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[35],sipPySelf,NULL,sipName_focusInEvent);

    if (!meth)
    {
        QWidget::focusInEvent(a0);
        return;
    }

    ((sipVH_QtGui_25)(sipModuleAPI_kparts_QtGui->em_virthandlers[25]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::focusOutEvent(QFocusEvent *a0)
{
    typedef void (*sipVH_QtGui_25)(sip_gilstate_t,PyObject *,QFocusEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[36],sipPySelf,NULL,sipName_focusOutEvent);

    if (!meth)
    {
        QWidget::focusOutEvent(a0);
        return;
    }

    ((sipVH_QtGui_25)(sipModuleAPI_kparts_QtGui->em_virthandlers[25]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::enterEvent(QEvent *a0)
{
    typedef void (*sipVH_QtCore_19)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[37],sipPySelf,NULL,sipName_enterEvent);

    if (!meth)
    {
        QWidget::enterEvent(a0);
        return;
    }

    ((sipVH_QtCore_19)(sipModuleAPI_kparts_QtCore->em_virthandlers[19]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::leaveEvent(QEvent *a0)
{
    typedef void (*sipVH_QtCore_19)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[38],sipPySelf,NULL,sipName_leaveEvent);

    if (!meth)
    {
        QWidget::leaveEvent(a0);
        return;
    }

    ((sipVH_QtCore_19)(sipModuleAPI_kparts_QtCore->em_virthandlers[19]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::paintEvent(QPaintEvent *a0)
{
    typedef void (*sipVH_QtGui_3)(sip_gilstate_t,PyObject *,QPaintEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[39],sipPySelf,NULL,sipName_paintEvent);

    if (!meth)
    {
        QWidget::paintEvent(a0);
        return;
    }

    ((sipVH_QtGui_3)(sipModuleAPI_kparts_QtGui->em_virthandlers[3]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::moveEvent(QMoveEvent *a0)
{
    typedef void (*sipVH_QtGui_24)(sip_gilstate_t,PyObject *,QMoveEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[40],sipPySelf,NULL,sipName_moveEvent);

    if (!meth)
    {
        QWidget::moveEvent(a0);
        return;
    }

    ((sipVH_QtGui_24)(sipModuleAPI_kparts_QtGui->em_virthandlers[24]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::resizeEvent(QResizeEvent *a0)
{
    typedef void (*sipVH_QtGui_2)(sip_gilstate_t,PyObject *,QResizeEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[41],sipPySelf,NULL,sipName_resizeEvent);

    if (!meth)
    {
        QWidget::resizeEvent(a0);
        return;
    }

    ((sipVH_QtGui_2)(sipModuleAPI_kparts_QtGui->em_virthandlers[2]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::tabletEvent(QTabletEvent *a0)
{
    typedef void (*sipVH_QtGui_21)(sip_gilstate_t,PyObject *,QTabletEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[42],sipPySelf,NULL,sipName_tabletEvent);

    if (!meth)
    {
        QWidget::tabletEvent(a0);
        return;
    }

    ((sipVH_QtGui_21)(sipModuleAPI_kparts_QtGui->em_virthandlers[21]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::actionEvent(QActionEvent *a0)
{
    typedef void (*sipVH_QtGui_20)(sip_gilstate_t,PyObject *,QActionEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[43],sipPySelf,NULL,sipName_actionEvent);

    if (!meth)
    {
        QWidget::actionEvent(a0);
        return;
    }

    ((sipVH_QtGui_20)(sipModuleAPI_kparts_QtGui->em_virthandlers[20]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::dragEnterEvent(QDragEnterEvent *a0)
{
    typedef void (*sipVH_QtGui_19)(sip_gilstate_t,PyObject *,QDragEnterEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[44],sipPySelf,NULL,sipName_dragEnterEvent);

    if (!meth)
    {
        QWidget::dragEnterEvent(a0);
        return;
    }

    ((sipVH_QtGui_19)(sipModuleAPI_kparts_QtGui->em_virthandlers[19]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::dragMoveEvent(QDragMoveEvent *a0)
{
    typedef void (*sipVH_QtGui_18)(sip_gilstate_t,PyObject *,QDragMoveEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[45],sipPySelf,NULL,sipName_dragMoveEvent);

    if (!meth)
    {
        QWidget::dragMoveEvent(a0);
        return;
    }

    ((sipVH_QtGui_18)(sipModuleAPI_kparts_QtGui->em_virthandlers[18]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::dragLeaveEvent(QDragLeaveEvent *a0)
{
    typedef void (*sipVH_QtGui_17)(sip_gilstate_t,PyObject *,QDragLeaveEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[46],sipPySelf,NULL,sipName_dragLeaveEvent);

    if (!meth)
    {
        QWidget::dragLeaveEvent(a0);
        return;
    }

    ((sipVH_QtGui_17)(sipModuleAPI_kparts_QtGui->em_virthandlers[17]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::dropEvent(QDropEvent *a0)
{
    typedef void (*sipVH_QtGui_16)(sip_gilstate_t,PyObject *,QDropEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[47],sipPySelf,NULL,sipName_dropEvent);

    if (!meth)
    {
        QWidget::dropEvent(a0);
        return;
    }

    ((sipVH_QtGui_16)(sipModuleAPI_kparts_QtGui->em_virthandlers[16]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::showEvent(QShowEvent *a0)
{
    typedef void (*sipVH_QtGui_1)(sip_gilstate_t,PyObject *,QShowEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[48],sipPySelf,NULL,sipName_showEvent);

    if (!meth)
    {
        QWidget::showEvent(a0);
        return;
    }

    ((sipVH_QtGui_1)(sipModuleAPI_kparts_QtGui->em_virthandlers[1]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::hideEvent(QHideEvent *a0)
{
    typedef void (*sipVH_QtGui_0)(sip_gilstate_t,PyObject *,QHideEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[49],sipPySelf,NULL,sipName_hideEvent);

    if (!meth)
    {
        QWidget::hideEvent(a0);
        return;
    }

    ((sipVH_QtGui_0)(sipModuleAPI_kparts_QtGui->em_virthandlers[0]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::changeEvent(QEvent *a0)
{
    typedef void (*sipVH_QtCore_19)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[50],sipPySelf,NULL,sipName_changeEvent);

    if (!meth)
    {
        QWidget::changeEvent(a0);
        return;
    }

    ((sipVH_QtCore_19)(sipModuleAPI_kparts_QtCore->em_virthandlers[19]))(sipGILState,meth,a0);
}

int sipKParts_MainWindow::metric(QPaintDevice::PaintDeviceMetric a0) const
{
    typedef int (*sipVH_QtGui_15)(sip_gilstate_t,PyObject *,QPaintDevice::PaintDeviceMetric);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[51]),sipPySelf,NULL,sipName_metric);

    if (!meth)
        return QWidget::metric(a0);

    return ((sipVH_QtGui_15)(sipModuleAPI_kparts_QtGui->em_virthandlers[15]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::inputMethodEvent(QInputMethodEvent *a0)
{
    typedef void (*sipVH_QtGui_14)(sip_gilstate_t,PyObject *,QInputMethodEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[52],sipPySelf,NULL,sipName_inputMethodEvent);

    if (!meth)
    {
        QWidget::inputMethodEvent(a0);
        return;
    }

    ((sipVH_QtGui_14)(sipModuleAPI_kparts_QtGui->em_virthandlers[14]))(sipGILState,meth,a0);
}

QVariant sipKParts_MainWindow::inputMethodQuery(Qt::InputMethodQuery a0) const
{
    typedef QVariant (*sipVH_QtGui_13)(sip_gilstate_t,PyObject *,Qt::InputMethodQuery);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[53]),sipPySelf,NULL,sipName_inputMethodQuery);

    if (!meth)
        return QWidget::inputMethodQuery(a0);

    return ((sipVH_QtGui_13)(sipModuleAPI_kparts_QtGui->em_virthandlers[13]))(sipGILState,meth,a0);
}

bool sipKParts_MainWindow::focusNextPrevChild(bool a0)
{
    typedef bool (*sipVH_QtGui_12)(sip_gilstate_t,PyObject *,bool);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[54],sipPySelf,NULL,sipName_focusNextPrevChild);

    if (!meth)
        return QWidget::focusNextPrevChild(a0);

    return ((sipVH_QtGui_12)(sipModuleAPI_kparts_QtGui->em_virthandlers[12]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::enabledChange(bool a0)
{
    typedef void (*sipVH_QtGui_7)(sip_gilstate_t,PyObject *,bool);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[55],sipPySelf,NULL,sipName_enabledChange);

    if (!meth)
    {
        QWidget::enabledChange(a0);
        return;
    }

    ((sipVH_QtGui_7)(sipModuleAPI_kparts_QtGui->em_virthandlers[7]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::paletteChange(const QPalette& a0)
{
    typedef void (*sipVH_QtGui_11)(sip_gilstate_t,PyObject *,const QPalette&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[56],sipPySelf,NULL,sipName_paletteChange);

    if (!meth)
    {
        QWidget::paletteChange(a0);
        return;
    }

    ((sipVH_QtGui_11)(sipModuleAPI_kparts_QtGui->em_virthandlers[11]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::fontChange(const QFont& a0)
{
    typedef void (*sipVH_QtGui_10)(sip_gilstate_t,PyObject *,const QFont&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[57],sipPySelf,NULL,sipName_fontChange);

    if (!meth)
    {
        QWidget::fontChange(a0);
        return;
    }

    ((sipVH_QtGui_10)(sipModuleAPI_kparts_QtGui->em_virthandlers[10]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::windowActivationChange(bool a0)
{
    typedef void (*sipVH_QtGui_7)(sip_gilstate_t,PyObject *,bool);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[58],sipPySelf,NULL,sipName_windowActivationChange);

    if (!meth)
    {
        QWidget::windowActivationChange(a0);
        return;
    }

    ((sipVH_QtGui_7)(sipModuleAPI_kparts_QtGui->em_virthandlers[7]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::languageChange()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[59],sipPySelf,NULL,sipName_languageChange);

    if (!meth)
    {
        QWidget::languageChange();
        return;
    }

    ((sipVH_QtCore_5)(sipModuleAPI_kparts_QtCore->em_virthandlers[5]))(sipGILState,meth);
}

bool sipKParts_MainWindow::eventFilter(QObject *a0,QEvent *a1)
{
    typedef bool (*sipVH_QtCore_21)(sip_gilstate_t,PyObject *,QObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[60],sipPySelf,NULL,sipName_eventFilter);

    if (!meth)
        return QObject::eventFilter(a0,a1);

    return ((sipVH_QtCore_21)(sipModuleAPI_kparts_QtCore->em_virthandlers[21]))(sipGILState,meth,a0,a1);
}

void sipKParts_MainWindow::timerEvent(QTimerEvent *a0)
{
    typedef void (*sipVH_QtCore_3)(sip_gilstate_t,PyObject *,QTimerEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[61],sipPySelf,NULL,sipName_timerEvent);

    if (!meth)
    {
        QObject::timerEvent(a0);
        return;
    }

    ((sipVH_QtCore_3)(sipModuleAPI_kparts_QtCore->em_virthandlers[3]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::childEvent(QChildEvent *a0)
{
    typedef void (*sipVH_QtCore_20)(sip_gilstate_t,PyObject *,QChildEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[62],sipPySelf,NULL,sipName_childEvent);

    if (!meth)
    {
        QObject::childEvent(a0);
        return;
    }

    ((sipVH_QtCore_20)(sipModuleAPI_kparts_QtCore->em_virthandlers[20]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::customEvent(QEvent *a0)
{
    typedef void (*sipVH_QtCore_19)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[63],sipPySelf,NULL,sipName_customEvent);

    if (!meth)
    {
        QObject::customEvent(a0);
        return;
    }

    ((sipVH_QtCore_19)(sipModuleAPI_kparts_QtCore->em_virthandlers[19]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::connectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[64],sipPySelf,NULL,sipName_connectNotify);

    if (!meth)
    {
        QObject::connectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_kparts_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::disconnectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[65],sipPySelf,NULL,sipName_disconnectNotify);

    if (!meth)
    {
        QObject::disconnectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_kparts_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

QStringList sipKParts_MainWindow::containerTags() const
{
    typedef QStringList (*sipVH_QtCore_23)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[66]),sipPySelf,NULL,sipName_containerTags);

    if (!meth)
        return KXMLGUIBuilder::containerTags();

    return ((sipVH_QtCore_23)(sipModuleAPI_kparts_QtCore->em_virthandlers[23]))(sipGILState,meth);
}

QWidget * sipKParts_MainWindow::createContainer(QWidget *a0,int a1,const QDomElement& a2,QAction *&a3)
{
    typedef QWidget * (*sipVH_kdeui_14)(sip_gilstate_t,PyObject *,QWidget *,int,const QDomElement&,QAction *&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[67],sipPySelf,NULL,sipName_createContainer);

    if (!meth)
        return KXMLGUIBuilder::createContainer(a0,a1,a2,a3);

    return ((sipVH_kdeui_14)(sipModuleAPI_kparts_kdeui->em_virthandlers[14]))(sipGILState,meth,a0,a1,a2,a3);
}

void sipKParts_MainWindow::removeContainer(QWidget *a0,QWidget *a1,QDomElement& a2,QAction *a3)
{
    typedef void (*sipVH_kdeui_13)(sip_gilstate_t,PyObject *,QWidget *,QWidget *,QDomElement&,QAction *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[68],sipPySelf,NULL,sipName_removeContainer);

    if (!meth)
    {
        KXMLGUIBuilder::removeContainer(a0,a1,a2,a3);
        return;
    }

    ((sipVH_kdeui_13)(sipModuleAPI_kparts_kdeui->em_virthandlers[13]))(sipGILState,meth,a0,a1,a2,a3);
}

QStringList sipKParts_MainWindow::customTags() const
{
    typedef QStringList (*sipVH_QtCore_23)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[69]),sipPySelf,NULL,sipName_customTags);

    if (!meth)
        return KXMLGUIBuilder::customTags();

    return ((sipVH_QtCore_23)(sipModuleAPI_kparts_QtCore->em_virthandlers[23]))(sipGILState,meth);
}

QAction * sipKParts_MainWindow::createCustomElement(QWidget *a0,int a1,const QDomElement& a2)
{
    typedef QAction * (*sipVH_kdeui_12)(sip_gilstate_t,PyObject *,QWidget *,int,const QDomElement&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[70],sipPySelf,NULL,sipName_createCustomElement);

    if (!meth)
        return KXMLGUIBuilder::createCustomElement(a0,a1,a2);

    return ((sipVH_kdeui_12)(sipModuleAPI_kparts_kdeui->em_virthandlers[12]))(sipGILState,meth,a0,a1,a2);
}

void sipKParts_MainWindow::removeCustomElement(QWidget *a0,QAction *a1)
{
    typedef void (*sipVH_kdeui_11)(sip_gilstate_t,PyObject *,QWidget *,QAction *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[71],sipPySelf,NULL,sipName_removeCustomElement);

    if (!meth)
    {
        KXMLGUIBuilder::removeCustomElement(a0,a1);
        return;
    }

    ((sipVH_kdeui_11)(sipModuleAPI_kparts_kdeui->em_virthandlers[11]))(sipGILState,meth,a0,a1);
}

QAction * sipKParts_MainWindow::action(const QDomElement& a0) const
{
    typedef QAction * (*sipVH_kdeui_10)(sip_gilstate_t,PyObject *,const QDomElement&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[72]),sipPySelf,NULL,sipName_action);

    if (!meth)
        return KXmlGuiWindow::action(a0);

    return ((sipVH_kdeui_10)(sipModuleAPI_kparts_kdeui->em_virthandlers[10]))(sipGILState,meth,a0);
}

KActionCollection * sipKParts_MainWindow::actionCollection() const
{
    typedef KActionCollection * (*sipVH_kdeui_9)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[73]),sipPySelf,NULL,sipName_actionCollection);

    if (!meth)
        return KXmlGuiWindow::actionCollection();

    return ((sipVH_kdeui_9)(sipModuleAPI_kparts_kdeui->em_virthandlers[9]))(sipGILState,meth);
}

KComponentData sipKParts_MainWindow::componentData() const
{
    typedef KComponentData (*sipVH_kdeui_8)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[74]),sipPySelf,NULL,sipName_componentData);

    if (!meth)
        return KXmlGuiWindow::componentData();

    return ((sipVH_kdeui_8)(sipModuleAPI_kparts_kdeui->em_virthandlers[8]))(sipGILState,meth);
}

QDomDocument sipKParts_MainWindow::domDocument() const
{
    typedef QDomDocument (*sipVH_kdeui_7)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[75]),sipPySelf,NULL,sipName_domDocument);

    if (!meth)
        return KXmlGuiWindow::domDocument();

    return ((sipVH_kdeui_7)(sipModuleAPI_kparts_kdeui->em_virthandlers[7]))(sipGILState,meth);
}

QString sipKParts_MainWindow::xmlFile() const
{
    typedef QString (*sipVH_QtCore_58)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[76]),sipPySelf,NULL,sipName_xmlFile);

    if (!meth)
        return KXmlGuiWindow::xmlFile();

    return ((sipVH_QtCore_58)(sipModuleAPI_kparts_QtCore->em_virthandlers[58]))(sipGILState,meth);
}

QString sipKParts_MainWindow::localXMLFile() const
{
    typedef QString (*sipVH_QtCore_58)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[77]),sipPySelf,NULL,sipName_localXMLFile);

    if (!meth)
        return KXmlGuiWindow::localXMLFile();

    return ((sipVH_QtCore_58)(sipModuleAPI_kparts_QtCore->em_virthandlers[58]))(sipGILState,meth);
}

void sipKParts_MainWindow::setComponentData(const KComponentData& a0)
{
    typedef void (*sipVH_kdeui_6)(sip_gilstate_t,PyObject *,const KComponentData&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[78],sipPySelf,NULL,sipName_setComponentData);

    if (!meth)
    {
        KXmlGuiWindow::setComponentData(a0);
        return;
    }

    ((sipVH_kdeui_6)(sipModuleAPI_kparts_kdeui->em_virthandlers[6]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::setXMLFile(const QString& a0,bool a1,bool a2)
{
    typedef void (*sipVH_kdeui_5)(sip_gilstate_t,PyObject *,const QString&,bool,bool);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[79],sipPySelf,NULL,sipName_setXMLFile);

    if (!meth)
    {
        KXmlGuiWindow::setXMLFile(a0,a1,a2);
        return;
    }

    ((sipVH_kdeui_5)(sipModuleAPI_kparts_kdeui->em_virthandlers[5]))(sipGILState,meth,a0,a1,a2);
}

void sipKParts_MainWindow::setLocalXMLFile(const QString& a0)
{
    typedef void (*sipVH_QtCore_29)(sip_gilstate_t,PyObject *,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[80],sipPySelf,NULL,sipName_setLocalXMLFile);

    if (!meth)
    {
        KXmlGuiWindow::setLocalXMLFile(a0);
        return;
    }

    ((sipVH_QtCore_29)(sipModuleAPI_kparts_QtCore->em_virthandlers[29]))(sipGILState,meth,a0);
}

void sipKParts_MainWindow::setXML(const QString& a0,bool a1)
{
    typedef void (*sipVH_QtXml_24)(sip_gilstate_t,PyObject *,const QString&,bool);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[81],sipPySelf,NULL,sipName_setXML);

    if (!meth)
    {
        KXmlGuiWindow::setXML(a0,a1);
        return;
    }

    ((sipVH_QtXml_24)(sipModuleAPI_kparts_QtXml->em_virthandlers[24]))(sipGILState,meth,a0,a1);
}

void sipKParts_MainWindow::setDOMDocument(const QDomDocument& a0,bool a1)
{
    typedef void (*sipVH_kdeui_4)(sip_gilstate_t,PyObject *,const QDomDocument&,bool);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[82],sipPySelf,NULL,sipName_setDOMDocument);

    if (!meth)
    {
        KXmlGuiWindow::setDOMDocument(a0,a1);
        return;
    }

    ((sipVH_kdeui_4)(sipModuleAPI_kparts_kdeui->em_virthandlers[4]))(sipGILState,meth,a0,a1);
}

void sipKParts_MainWindow::stateChanged(const QString& a0,KXMLGUIClient::ReverseStateChange a1)
{
    typedef void (*sipVH_kdeui_3)(sip_gilstate_t,PyObject *,const QString&,KXMLGUIClient::ReverseStateChange);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[83],sipPySelf,NULL,sipName_stateChanged);

    if (!meth)
    {
        KXmlGuiWindow::stateChanged(a0,a1);
        return;
    }

    ((sipVH_kdeui_3)(sipModuleAPI_kparts_kdeui->em_virthandlers[3]))(sipGILState,meth,a0,a1);
}

void sipKParts_MainWindow::setComponentData(const KComponentData& a0,bool a1)
{
    extern void sipVH_kparts_11(sip_gilstate_t,PyObject *,const KComponentData&,bool);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[84],sipPySelf,NULL,sipName_setComponentData);

    if (!meth)
    {
        KParts::PartBase::setComponentData(a0,a1);
        return;
    }

    sipVH_kparts_11(sipGILState,meth,a0,a1);
}

void sipKParts_MainWindow::sipProtect_loadPlugins(QObject *a0,KXMLGUIClient *a1,const KComponentData& a2)
{
    KParts::PartBase::loadPlugins(a0,a1,a2);
}

void sipKParts_MainWindow::sipProtect_setPluginInterfaceVersion(int a0)
{
    KParts::PartBase::setPluginInterfaceVersion(a0);
}

void sipKParts_MainWindow::sipProtectVirt_setComponentData(bool sipSelfWasArg,const KComponentData& a0)
{
    (sipSelfWasArg ? KXMLGUIClient::setComponentData(a0) : setComponentData(a0));
}

void sipKParts_MainWindow::sipProtectVirt_setXMLFile(bool sipSelfWasArg,const QString& a0,bool a1,bool a2)
{
    (sipSelfWasArg ? KXMLGUIClient::setXMLFile(a0,a1,a2) : setXMLFile(a0,a1,a2));
}

void sipKParts_MainWindow::sipProtectVirt_setLocalXMLFile(bool sipSelfWasArg,const QString& a0)
{
    (sipSelfWasArg ? KXMLGUIClient::setLocalXMLFile(a0) : setLocalXMLFile(a0));
}

void sipKParts_MainWindow::sipProtectVirt_setXML(bool sipSelfWasArg,const QString& a0,bool a1)
{
    (sipSelfWasArg ? KXMLGUIClient::setXML(a0,a1) : setXML(a0,a1));
}

void sipKParts_MainWindow::sipProtectVirt_setDOMDocument(bool sipSelfWasArg,const QDomDocument& a0,bool a1)
{
    (sipSelfWasArg ? KXMLGUIClient::setDOMDocument(a0,a1) : setDOMDocument(a0,a1));
}

void sipKParts_MainWindow::sipProtectVirt_stateChanged(bool sipSelfWasArg,const QString& a0,KXMLGUIClient::ReverseStateChange a1)
{
    (sipSelfWasArg ? KXMLGUIClient::stateChanged(a0,a1) : stateChanged(a0,a1));
}

int sipKParts_MainWindow::sipProtect_receivers(const char *a0) const
{
    return QObject::receivers(a0);
}

void sipKParts_MainWindow::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent *a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipKParts_MainWindow::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent *a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipKParts_MainWindow::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipKParts_MainWindow::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipKParts_MainWindow::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

void sipKParts_MainWindow::sipProtectVirt_mousePressEvent(bool sipSelfWasArg,QMouseEvent *a0)
{
    (sipSelfWasArg ? QWidget::mousePressEvent(a0) : mousePressEvent(a0));
}

void sipKParts_MainWindow::sipProtectVirt_mouseReleaseEvent(bool sipSelfWasArg,QMouseEvent *a0)
{
    (sipSelfWasArg ? QWidget::mouseReleaseEvent(a0) : mouseReleaseEvent(a0));
}

void sipKParts_MainWindow::sipProtectVirt_mouseDoubleClickEvent(bool sipSelfWasArg,QMouseEvent *a0)
{
    (sipSelfWasArg ? QWidget::mouseDoubleClickEvent(a0) : mouseDoubleClickEvent(a0));
}

void sipKParts_MainWindow::sipProtectVirt_mouseMoveEvent(bool sipSelfWasArg,QMouseEvent *a0)
{
    (sipSelfWasArg ? QWidget::mouseMoveEvent(a0) : mouseMoveEvent(a0));
}

void sipKParts_MainWindow::sipProtectVirt_wheelEvent(bool sipSelfWasArg,QWheelEvent *a0)
{
    (sipSelfWasArg ? QWidget::wheelEvent(a0) : wheelEvent(a0));
}

void sipKParts_MainWindow::sipProtectVirt_keyPressEvent(bool sipSelfWasArg,QKeyEvent *a0)
{
    (sipSelfWasArg ? QWidget::keyPressEvent(a0) : keyPressEvent(a0));
}

void sipKParts_MainWindow::sipProtectVirt_keyReleaseEvent(bool sipSelfWasArg,QKeyEvent *a0)
{
    (sipSelfWasArg ? QWidget::keyReleaseEvent(a0) : keyReleaseEvent(a0));
}

void sipKParts_MainWindow::sipProtectVirt_focusInEvent(bool sipSelfWasArg,QFocusEvent *a0)
{
    (sipSelfWasArg ? QWidget::focusInEvent(a0) : focusInEvent(a0));
}

void sipKParts_MainWindow::sipProtectVirt_focusOutEvent(bool sipSelfWasArg,QFocusEvent *a0)
{
    (sipSelfWasArg ? QWidget::focusOutEvent(a0) : focusOutEvent(a0));
}

void sipKParts_MainWindow::sipProtectVirt_enterEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QWidget::enterEvent(a0) : enterEvent(a0));
}

void sipKParts_MainWindow::sipProtectVirt_leaveEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QWidget::leaveEvent(a0) : leaveEvent(a0));
}

void sipKParts_MainWindow::sipProtectVirt_paintEvent(bool sipSelfWasArg,QPaintEvent *a0)
{
    (sipSelfWasArg ? QWidget::paintEvent(a0) : paintEvent(a0));
}

void sipKParts_MainWindow::sipProtectVirt_moveEvent(bool sipSelfWasArg,QMoveEvent *a0)
{
    (sipSelfWasArg ? QWidget::moveEvent(a0) : moveEvent(a0));
}

void sipKParts_MainWindow::sipProtectVirt_resizeEvent(bool sipSelfWasArg,QResizeEvent *a0)
{
    (sipSelfWasArg ? QWidget::resizeEvent(a0) : resizeEvent(a0));
}

void sipKParts_MainWindow::sipProtectVirt_tabletEvent(bool sipSelfWasArg,QTabletEvent *a0)
{
    (sipSelfWasArg ? QWidget::tabletEvent(a0) : tabletEvent(a0));
}

void sipKParts_MainWindow::sipProtectVirt_actionEvent(bool sipSelfWasArg,QActionEvent *a0)
{
    (sipSelfWasArg ? QWidget::actionEvent(a0) : actionEvent(a0));
}

void sipKParts_MainWindow::sipProtectVirt_dragEnterEvent(bool sipSelfWasArg,QDragEnterEvent *a0)
{
    (sipSelfWasArg ? QWidget::dragEnterEvent(a0) : dragEnterEvent(a0));
}

void sipKParts_MainWindow::sipProtectVirt_dragMoveEvent(bool sipSelfWasArg,QDragMoveEvent *a0)
{
    (sipSelfWasArg ? QWidget::dragMoveEvent(a0) : dragMoveEvent(a0));
}

void sipKParts_MainWindow::sipProtectVirt_dragLeaveEvent(bool sipSelfWasArg,QDragLeaveEvent *a0)
{
    (sipSelfWasArg ? QWidget::dragLeaveEvent(a0) : dragLeaveEvent(a0));
}

void sipKParts_MainWindow::sipProtectVirt_dropEvent(bool sipSelfWasArg,QDropEvent *a0)
{
    (sipSelfWasArg ? QWidget::dropEvent(a0) : dropEvent(a0));
}

void sipKParts_MainWindow::sipProtectVirt_showEvent(bool sipSelfWasArg,QShowEvent *a0)
{
    (sipSelfWasArg ? QWidget::showEvent(a0) : showEvent(a0));
}

void sipKParts_MainWindow::sipProtectVirt_hideEvent(bool sipSelfWasArg,QHideEvent *a0)
{
    (sipSelfWasArg ? QWidget::hideEvent(a0) : hideEvent(a0));
}

void sipKParts_MainWindow::sipProtectVirt_changeEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QWidget::changeEvent(a0) : changeEvent(a0));
}

int sipKParts_MainWindow::sipProtectVirt_metric(bool sipSelfWasArg,QPaintDevice::PaintDeviceMetric a0) const
{
    return (sipSelfWasArg ? QWidget::metric(a0) : metric(a0));
}

void sipKParts_MainWindow::sipProtectVirt_inputMethodEvent(bool sipSelfWasArg,QInputMethodEvent *a0)
{
    (sipSelfWasArg ? QWidget::inputMethodEvent(a0) : inputMethodEvent(a0));
}

void sipKParts_MainWindow::sipProtect_resetInputContext()
{
    QWidget::resetInputContext();
}

void sipKParts_MainWindow::sipProtect_updateMicroFocus()
{
    QWidget::updateMicroFocus();
}

void sipKParts_MainWindow::sipProtect_create(WId a0,bool a1,bool a2)
{
    QWidget::create(a0,a1,a2);
}

void sipKParts_MainWindow::sipProtect_destroy(bool a0,bool a1)
{
    QWidget::destroy(a0,a1);
}

bool sipKParts_MainWindow::sipProtectVirt_focusNextPrevChild(bool sipSelfWasArg,bool a0)
{
    return (sipSelfWasArg ? QWidget::focusNextPrevChild(a0) : focusNextPrevChild(a0));
}

bool sipKParts_MainWindow::sipProtect_focusNextChild()
{
    return QWidget::focusNextChild();
}

bool sipKParts_MainWindow::sipProtect_focusPreviousChild()
{
    return QWidget::focusPreviousChild();
}

void sipKParts_MainWindow::sipProtectVirt_enabledChange(bool sipSelfWasArg,bool a0)
{
    (sipSelfWasArg ? QWidget::enabledChange(a0) : enabledChange(a0));
}

void sipKParts_MainWindow::sipProtectVirt_paletteChange(bool sipSelfWasArg,const QPalette& a0)
{
    (sipSelfWasArg ? QWidget::paletteChange(a0) : paletteChange(a0));
}

void sipKParts_MainWindow::sipProtectVirt_fontChange(bool sipSelfWasArg,const QFont& a0)
{
    (sipSelfWasArg ? QWidget::fontChange(a0) : fontChange(a0));
}

void sipKParts_MainWindow::sipProtectVirt_windowActivationChange(bool sipSelfWasArg,bool a0)
{
    (sipSelfWasArg ? QWidget::windowActivationChange(a0) : windowActivationChange(a0));
}

void sipKParts_MainWindow::sipProtectVirt_languageChange(bool sipSelfWasArg)
{
    (sipSelfWasArg ? QWidget::languageChange() : languageChange());
}

void sipKParts_MainWindow::sipProtectVirt_contextMenuEvent(bool sipSelfWasArg,QContextMenuEvent *a0)
{
    (sipSelfWasArg ? QMainWindow::contextMenuEvent(a0) : contextMenuEvent(a0));
}

void sipKParts_MainWindow::sipProtectVirt_closeEvent(bool sipSelfWasArg,QCloseEvent *a0)
{
    (sipSelfWasArg ? KMainWindow::closeEvent(a0) : closeEvent(a0));
}

bool sipKParts_MainWindow::sipProtectVirt_queryExit(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? KMainWindow::queryExit() : queryExit());
}

bool sipKParts_MainWindow::sipProtectVirt_queryClose(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? KMainWindow::queryClose() : queryClose());
}

void sipKParts_MainWindow::sipProtectVirt_saveProperties(bool sipSelfWasArg,KConfigGroup& a0)
{
    (sipSelfWasArg ? KMainWindow::saveProperties(a0) : saveProperties(a0));
}

void sipKParts_MainWindow::sipProtectVirt_readProperties(bool sipSelfWasArg,const KConfigGroup& a0)
{
    (sipSelfWasArg ? KMainWindow::readProperties(a0) : readProperties(a0));
}

void sipKParts_MainWindow::sipProtectVirt_saveGlobalProperties(bool sipSelfWasArg,KConfig *a0)
{
    (sipSelfWasArg ? KMainWindow::saveGlobalProperties(a0) : saveGlobalProperties(a0));
}

void sipKParts_MainWindow::sipProtectVirt_readGlobalProperties(bool sipSelfWasArg,KConfig *a0)
{
    (sipSelfWasArg ? KMainWindow::readGlobalProperties(a0) : readGlobalProperties(a0));
}

void sipKParts_MainWindow::sipProtect_savePropertiesInternal(KConfig *a0,int a1)
{
    KMainWindow::savePropertiesInternal(a0,a1);
}

bool sipKParts_MainWindow::sipProtect_readPropertiesInternal(KConfig *a0,int a1)
{
    return KMainWindow::readPropertiesInternal(a0,a1);
}

bool sipKParts_MainWindow::sipProtect_settingsDirty() const
{
    return KMainWindow::settingsDirty();
}

void sipKParts_MainWindow::sipProtect_saveWindowSize(const KConfigGroup& a0) const
{
    KMainWindow::saveWindowSize(a0);
}

void sipKParts_MainWindow::sipProtect_restoreWindowSize(const KConfigGroup& a0)
{
    KMainWindow::restoreWindowSize(a0);
}

void sipKParts_MainWindow::sipProtect_parseGeometry(bool a0)
{
    KMainWindow::parseGeometry(a0);
}

void sipKParts_MainWindow::sipProtectVirt_showAboutApplication(bool sipSelfWasArg)
{
    (sipSelfWasArg ? KMainWindow::showAboutApplication() : showAboutApplication());
}

void sipKParts_MainWindow::sipProtect_saveAutoSaveSettings()
{
    KMainWindow::saveAutoSaveSettings();
}

bool sipKParts_MainWindow::sipProtectVirt_event(bool sipSelfWasArg,QEvent *a0)
{
    return (sipSelfWasArg ? KXmlGuiWindow::event(a0) : event(a0));
}

void sipKParts_MainWindow::sipProtect_createGUI(KParts::Part *a0)
{
    KParts::MainWindow::createGUI(a0);
}

void sipKParts_MainWindow::sipProtectVirt_slotSetStatusBarText(bool sipSelfWasArg,const QString& a0)
{
    (sipSelfWasArg ? KParts::MainWindow::slotSetStatusBarText(a0) : slotSetStatusBarText(a0));
}

void sipKParts_MainWindow::sipProtectVirt_saveNewToolbarConfig(bool sipSelfWasArg)
{
    (sipSelfWasArg ? KParts::MainWindow::saveNewToolbarConfig() : saveNewToolbarConfig());
}

void sipKParts_MainWindow::sipProtectVirt_createShellGUI(bool sipSelfWasArg,bool a0)
{
    (sipSelfWasArg ? KParts::MainWindow::createShellGUI(a0) : createShellGUI(a0));
}


extern "C" {static PyObject *meth_KParts_MainWindow_loadPlugins(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_loadPlugins(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        QObject * a0;
        KXMLGUIClient * a1;
        const KComponentData * a2;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ:J8J9",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QObject,&a0,sipType_KXMLGUIClient,&a1,sipType_KComponentData,&a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_loadPlugins(a0,a1,*a2);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_loadPlugins);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_setPluginInterfaceVersion(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_setPluginInterfaceVersion(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        int a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pi",&sipSelf,sipType_KParts_MainWindow,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setPluginInterfaceVersion(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_setPluginInterfaceVersion);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_setComponentData(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_setComponentData(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KComponentData * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_KComponentData,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setComponentData(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_setComponentData);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_setXMLFile(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_setXMLFile(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString * a0;
        int a0State = 0;
        bool a1 = 0;
        bool a2 = 1;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1|bb",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QString,&a0,&a0State,&a1,&a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setXMLFile(sipSelfWasArg,*a0,a1,a2);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_setXMLFile);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_setLocalXMLFile(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_setLocalXMLFile(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString * a0;
        int a0State = 0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setLocalXMLFile(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_setLocalXMLFile);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_setXML(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_setXML(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString * a0;
        int a0State = 0;
        bool a1 = 0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1|b",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QString,&a0,&a0State,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setXML(sipSelfWasArg,*a0,a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_setXML);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_setDOMDocument(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_setDOMDocument(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QDomDocument * a0;
        bool a1 = 0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9|b",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QDomDocument,&a0,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setDOMDocument(sipSelfWasArg,*a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_setDOMDocument);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_stateChanged(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_stateChanged(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString * a0;
        int a0State = 0;
        KXMLGUIClient::ReverseStateChange a1 = KXMLGUIClient::StateNoReverse;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1|E",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QString,&a0,&a0State,sipType_KXMLGUIClient_ReverseStateChange,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_stateChanged(sipSelfWasArg,*a0,a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_stateChanged);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_receivers(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_receivers(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        char * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KParts_MainWindow,&sipCpp,&a0))
        {
            int sipRes = 0;

#line 462 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
#line 2832 "sipkpartspart3.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_receivers);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_timerEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QTimerEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_timerEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_childEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_childEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QChildEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_childEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_customEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_customEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_customEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_connectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KParts_MainWindow,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_connectNotify);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_disconnectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KParts_MainWindow,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_disconnectNotify);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_mousePressEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_mousePressEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QMouseEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_mousePressEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_mousePressEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_mouseReleaseEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_mouseReleaseEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QMouseEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_mouseReleaseEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_mouseReleaseEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_mouseDoubleClickEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_mouseDoubleClickEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QMouseEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_mouseDoubleClickEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_mouseDoubleClickEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_mouseMoveEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_mouseMoveEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QMouseEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_mouseMoveEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_mouseMoveEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_wheelEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_wheelEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QWheelEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QWheelEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_wheelEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_wheelEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_keyPressEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_keyPressEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QKeyEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QKeyEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_keyPressEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_keyPressEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_keyReleaseEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_keyReleaseEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QKeyEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QKeyEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_keyReleaseEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_keyReleaseEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_focusInEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_focusInEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QFocusEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QFocusEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_focusInEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_focusInEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_focusOutEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_focusOutEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QFocusEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QFocusEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_focusOutEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_focusOutEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_enterEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_enterEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_enterEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_enterEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_leaveEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_leaveEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_leaveEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_leaveEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_paintEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_paintEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPaintEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QPaintEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_paintEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_paintEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_moveEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_moveEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMoveEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QMoveEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_moveEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_moveEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_resizeEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_resizeEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QResizeEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QResizeEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_resizeEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_resizeEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_tabletEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_tabletEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTabletEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QTabletEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_tabletEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_tabletEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_actionEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_actionEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QActionEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QActionEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_actionEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_actionEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_dragEnterEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_dragEnterEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDragEnterEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QDragEnterEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_dragEnterEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_dragEnterEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_dragMoveEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_dragMoveEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDragMoveEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QDragMoveEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_dragMoveEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_dragMoveEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_dragLeaveEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_dragLeaveEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDragLeaveEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QDragLeaveEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_dragLeaveEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_dragLeaveEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_dropEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_dropEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDropEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QDropEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_dropEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_dropEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_showEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_showEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QShowEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QShowEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_showEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_showEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_hideEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_hideEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QHideEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QHideEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_hideEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_hideEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_changeEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_changeEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_changeEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_changeEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_metric(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_metric(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPaintDevice::PaintDeviceMetric a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pE",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QPaintDevice_PaintDeviceMetric,&a0))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_metric(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_metric);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_inputMethodEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_inputMethodEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QInputMethodEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QInputMethodEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_inputMethodEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_inputMethodEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_resetInputContext(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_resetInputContext(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KParts_MainWindow,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_resetInputContext();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_resetInputContext);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_updateMicroFocus(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_updateMicroFocus(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KParts_MainWindow,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_updateMicroFocus();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_updateMicroFocus);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_create(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_create(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        WId a0 = 0;
        bool a1 = 1;
        bool a2 = 1;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p|mbb",&sipSelf,sipType_KParts_MainWindow,&sipCpp,&a0,&a1,&a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_create(a0,a1,a2);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_create);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_destroy(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_destroy(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        bool a0 = 1;
        bool a1 = 1;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p|bb",&sipSelf,sipType_KParts_MainWindow,&sipCpp,&a0,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_destroy(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_destroy);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_focusNextPrevChild(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_focusNextPrevChild(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        bool a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pb",&sipSelf,sipType_KParts_MainWindow,&sipCpp,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_focusNextPrevChild(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_focusNextPrevChild);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_focusNextChild(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_focusNextChild(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KParts_MainWindow,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_focusNextChild();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_focusNextChild);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_focusPreviousChild(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_focusPreviousChild(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KParts_MainWindow,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_focusPreviousChild();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_focusPreviousChild);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_enabledChange(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_enabledChange(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        bool a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pb",&sipSelf,sipType_KParts_MainWindow,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_enabledChange(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_enabledChange);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_paletteChange(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_paletteChange(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QPalette * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QPalette,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_paletteChange(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_paletteChange);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_fontChange(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_fontChange(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QFont * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QFont,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_fontChange(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_fontChange);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_windowActivationChange(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_windowActivationChange(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        bool a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pb",&sipSelf,sipType_KParts_MainWindow,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_windowActivationChange(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_windowActivationChange);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_languageChange(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_languageChange(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KParts_MainWindow,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_languageChange(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_languageChange);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_contextMenuEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_contextMenuEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QContextMenuEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QContextMenuEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_contextMenuEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_contextMenuEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_closeEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_closeEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QCloseEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QCloseEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_closeEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_closeEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_queryExit(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_queryExit(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KParts_MainWindow,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_queryExit(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_queryExit);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_queryClose(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_queryClose(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KParts_MainWindow,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_queryClose(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_queryClose);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_saveProperties(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_saveProperties(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KConfigGroup * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_KConfigGroup,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_saveProperties(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_saveProperties);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_readProperties(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_readProperties(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KConfigGroup * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_KConfigGroup,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_readProperties(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_readProperties);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_saveGlobalProperties(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_saveGlobalProperties(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KConfig * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_KConfig,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_saveGlobalProperties(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_saveGlobalProperties);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_readGlobalProperties(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_readGlobalProperties(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KConfig * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_KConfig,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_readGlobalProperties(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_readGlobalProperties);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_savePropertiesInternal(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_savePropertiesInternal(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KConfig * a0;
        int a1;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8i",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_KConfig,&a0,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_savePropertiesInternal(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_savePropertiesInternal);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_readPropertiesInternal(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_readPropertiesInternal(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KConfig * a0;
        int a1;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8i",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_KConfig,&a0,&a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_readPropertiesInternal(a0,a1);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_readPropertiesInternal);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_settingsDirty(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_settingsDirty(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KParts_MainWindow,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_settingsDirty();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_settingsDirty);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_saveWindowSize(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_saveWindowSize(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const KConfigGroup * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_KConfigGroup,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_saveWindowSize(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_saveWindowSize);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_restoreWindowSize(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_restoreWindowSize(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const KConfigGroup * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_KConfigGroup,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_restoreWindowSize(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_restoreWindowSize);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_parseGeometry(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_parseGeometry(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        bool a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pb",&sipSelf,sipType_KParts_MainWindow,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_parseGeometry(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_parseGeometry);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_showAboutApplication(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_showAboutApplication(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KParts_MainWindow,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_showAboutApplication(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_showAboutApplication);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_saveAutoSaveSettings(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_saveAutoSaveSettings(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KParts_MainWindow,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_saveAutoSaveSettings();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_saveAutoSaveSettings);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_event(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_event(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QEvent,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_event(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_event);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_configureToolbars(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_configureToolbars(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KParts::MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KParts_MainWindow,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KParts::MainWindow::configureToolbars() : sipCpp->configureToolbars());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_configureToolbars);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_createGUI(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_createGUI(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KParts::Part * a0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_KParts_Part,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_createGUI(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_createGUI);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_slotSetStatusBarText(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_slotSetStatusBarText(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString * a0;
        int a0State = 0;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&sipSelf,sipType_KParts_MainWindow,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_slotSetStatusBarText(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_slotSetStatusBarText);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_saveNewToolbarConfig(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_saveNewToolbarConfig(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KParts_MainWindow,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_saveNewToolbarConfig(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_saveNewToolbarConfig);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_MainWindow_createShellGUI(PyObject *, PyObject *);}
static PyObject *meth_KParts_MainWindow_createShellGUI(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        bool a0 = 1;
        sipKParts_MainWindow *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p|b",&sipSelf,sipType_KParts_MainWindow,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_createShellGUI(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_MainWindow,sipName_createShellGUI);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KParts_MainWindow(void *, const sipTypeDef *);}
static void *cast_KParts_MainWindow(void *ptr,const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KParts_MainWindow)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KXmlGuiWindow)->ctd_cast((KXmlGuiWindow *)(KParts::MainWindow *)ptr,targetType)) != NULL)
        return res;

    if ((res = ((const sipClassTypeDef *)sipType_KParts_PartBase)->ctd_cast((KParts::PartBase *)(KParts::MainWindow *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KParts_MainWindow(void *, int);}
static void release_KParts_MainWindow(void *sipCppV,int state)
{
    Py_BEGIN_ALLOW_THREADS

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKParts_MainWindow *>(sipCppV);
    else
        delete reinterpret_cast<KParts::MainWindow *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KParts_MainWindow(sipSimpleWrapper *);}
static void dealloc_KParts_MainWindow(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKParts_MainWindow *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KParts_MainWindow(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_KParts_MainWindow(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KParts_MainWindow(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **sipOwner, int *sipArgsParsed)
{
    sipKParts_MainWindow *sipCpp = 0;

    if (!sipCpp)
    {
        QWidget * a0 = 0;
        Qt::WindowFlags a1def = 0;
        Qt::WindowFlags * a1 = &a1def;
        int a1State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"|JHJ1",sipType_QWidget,&a0,sipOwner,sipType_Qt_WindowFlags,&a1,&a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKParts_MainWindow(a0,*a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(a1,sipType_Qt_WindowFlags,a1State);
        }
    }

    if (!sipCpp)
    {
        QWidget * a0;
        const char * a1 = 0;
        PyObject *a1Keep = 0;
        Qt::WindowFlags a2def = 0;
        Qt::WindowFlags * a2 = &a2def;
        int a2State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"JH|AAJ1",sipType_QWidget,&a0,sipOwner,&a1Keep,&a1,sipType_Qt_WindowFlags,&a2,&a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKParts_MainWindow(a0,a1,*a2);
            Py_END_ALLOW_THREADS
            Py_XDECREF(a1Keep);

            sipReleaseType(a2,sipType_Qt_WindowFlags,a2State);
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_KParts_MainWindow[] = {{315, 6, 0}, {22, 255, 1}};


static PyMethodDef methods_KParts_MainWindow[] = {
    {SIP_MLNAME_CAST(sipName_actionEvent), meth_KParts_MainWindow_actionEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_changeEvent), meth_KParts_MainWindow_changeEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KParts_MainWindow_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_closeEvent), meth_KParts_MainWindow_closeEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_configureToolbars), meth_KParts_MainWindow_configureToolbars, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KParts_MainWindow_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_contextMenuEvent), meth_KParts_MainWindow_contextMenuEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_create), meth_KParts_MainWindow_create, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createGUI), meth_KParts_MainWindow_createGUI, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createShellGUI), meth_KParts_MainWindow_createShellGUI, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KParts_MainWindow_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_destroy), meth_KParts_MainWindow_destroy, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KParts_MainWindow_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dragEnterEvent), meth_KParts_MainWindow_dragEnterEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dragLeaveEvent), meth_KParts_MainWindow_dragLeaveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dragMoveEvent), meth_KParts_MainWindow_dragMoveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dropEvent), meth_KParts_MainWindow_dropEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_enabledChange), meth_KParts_MainWindow_enabledChange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_enterEvent), meth_KParts_MainWindow_enterEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_event), meth_KParts_MainWindow_event, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusInEvent), meth_KParts_MainWindow_focusInEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusNextChild), meth_KParts_MainWindow_focusNextChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusNextPrevChild), meth_KParts_MainWindow_focusNextPrevChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusOutEvent), meth_KParts_MainWindow_focusOutEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusPreviousChild), meth_KParts_MainWindow_focusPreviousChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fontChange), meth_KParts_MainWindow_fontChange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hideEvent), meth_KParts_MainWindow_hideEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_inputMethodEvent), meth_KParts_MainWindow_inputMethodEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_keyPressEvent), meth_KParts_MainWindow_keyPressEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_keyReleaseEvent), meth_KParts_MainWindow_keyReleaseEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_languageChange), meth_KParts_MainWindow_languageChange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_leaveEvent), meth_KParts_MainWindow_leaveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_loadPlugins), meth_KParts_MainWindow_loadPlugins, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_metric), meth_KParts_MainWindow_metric, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseDoubleClickEvent), meth_KParts_MainWindow_mouseDoubleClickEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseMoveEvent), meth_KParts_MainWindow_mouseMoveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mousePressEvent), meth_KParts_MainWindow_mousePressEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseReleaseEvent), meth_KParts_MainWindow_mouseReleaseEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_moveEvent), meth_KParts_MainWindow_moveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_paintEvent), meth_KParts_MainWindow_paintEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_paletteChange), meth_KParts_MainWindow_paletteChange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parseGeometry), meth_KParts_MainWindow_parseGeometry, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_queryClose), meth_KParts_MainWindow_queryClose, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_queryExit), meth_KParts_MainWindow_queryExit, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readGlobalProperties), meth_KParts_MainWindow_readGlobalProperties, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readProperties), meth_KParts_MainWindow_readProperties, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readPropertiesInternal), meth_KParts_MainWindow_readPropertiesInternal, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KParts_MainWindow_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resetInputContext), meth_KParts_MainWindow_resetInputContext, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resizeEvent), meth_KParts_MainWindow_resizeEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_restoreWindowSize), meth_KParts_MainWindow_restoreWindowSize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_saveAutoSaveSettings), meth_KParts_MainWindow_saveAutoSaveSettings, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_saveGlobalProperties), meth_KParts_MainWindow_saveGlobalProperties, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_saveNewToolbarConfig), meth_KParts_MainWindow_saveNewToolbarConfig, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_saveProperties), meth_KParts_MainWindow_saveProperties, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_savePropertiesInternal), meth_KParts_MainWindow_savePropertiesInternal, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_saveWindowSize), meth_KParts_MainWindow_saveWindowSize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setComponentData), meth_KParts_MainWindow_setComponentData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDOMDocument), meth_KParts_MainWindow_setDOMDocument, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLocalXMLFile), meth_KParts_MainWindow_setLocalXMLFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPluginInterfaceVersion), meth_KParts_MainWindow_setPluginInterfaceVersion, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setXML), meth_KParts_MainWindow_setXML, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setXMLFile), meth_KParts_MainWindow_setXMLFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_settingsDirty), meth_KParts_MainWindow_settingsDirty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_showAboutApplication), meth_KParts_MainWindow_showAboutApplication, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_showEvent), meth_KParts_MainWindow_showEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotSetStatusBarText), meth_KParts_MainWindow_slotSetStatusBarText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_stateChanged), meth_KParts_MainWindow_stateChanged, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_tabletEvent), meth_KParts_MainWindow_tabletEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KParts_MainWindow_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_updateMicroFocus), meth_KParts_MainWindow_updateMicroFocus, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_wheelEvent), meth_KParts_MainWindow_wheelEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_windowActivationChange), meth_KParts_MainWindow_windowActivationChange, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kparts_KParts_MainWindow = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__MainWindow,
        {0}
    },
    sipNameNr_MainWindow,
    -1,
    -1,
    {0, 255, 0},
    supers_KParts_MainWindow,
    0,
    73, methods_KParts_MainWindow,
    0, 0,
    0, 0,
    init_KParts_MainWindow,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_MainWindow,
    release_KParts_MainWindow,
    cast_KParts_MainWindow,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &KParts::MainWindow::staticMetaObject,
    0,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/historyprovider.sip"
#include <kparts/historyprovider.h>
#line 4852 "sipkpartspart3.cpp"

#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 4856 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4859 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 4862 "sipkpartspart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4865 "sipkpartspart3.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4868 "sipkpartspart3.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4871 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 4874 "sipkpartspart3.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 4905 "sipkpartspart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 4908 "sipkpartspart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 4911 "sipkpartspart3.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 4914 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 4917 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 4920 "sipkpartspart3.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 4923 "sipkpartspart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 4926 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 4929 "sipkpartspart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 4932 "sipkpartspart3.cpp"


class sipKParts_HistoryProvider : public KParts::HistoryProvider
{
public:
    sipKParts_HistoryProvider(QObject *);
    virtual ~sipKParts_HistoryProvider();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool contains(const QString&) const;
    void insert(const QString&);
    void remove(const QString&);
    void clear();
    bool event(QEvent *);
    bool eventFilter(QObject *,QEvent *);
    void timerEvent(QTimerEvent *);
    void childEvent(QChildEvent *);
    void customEvent(QEvent *);
    void connectNotify(const char *);
    void disconnectNotify(const char *);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKParts_HistoryProvider(const sipKParts_HistoryProvider &);
    sipKParts_HistoryProvider &operator = (const sipKParts_HistoryProvider &);

    char sipPyMethods[11];
};

sipKParts_HistoryProvider::sipKParts_HistoryProvider(QObject *a0): KParts::HistoryProvider(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKParts_HistoryProvider::~sipKParts_HistoryProvider()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipKParts_HistoryProvider::metaObject() const
{
    return sip_kparts_qt_metaobject(sipPySelf,sipType_KParts_HistoryProvider);
}

int sipKParts_HistoryProvider::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KParts::HistoryProvider::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_kparts_qt_metacall(sipPySelf,sipType_KParts_HistoryProvider,_c,_id,_a);

    return _id;
}

void *sipKParts_HistoryProvider::qt_metacast(const char *_clname)
{
    return (sip_kparts_qt_metacast && sip_kparts_qt_metacast(sipPySelf,sipType_KParts_HistoryProvider,_clname)) ? this : KParts::HistoryProvider::qt_metacast(_clname);
}

bool sipKParts_HistoryProvider::contains(const QString& a0) const
{
    typedef bool (*sipVH_QtCore_24)(sip_gilstate_t,PyObject *,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_contains);

    if (!meth)
        return KParts::HistoryProvider::contains(a0);

    return ((sipVH_QtCore_24)(sipModuleAPI_kparts_QtCore->em_virthandlers[24]))(sipGILState,meth,a0);
}

void sipKParts_HistoryProvider::insert(const QString& a0)
{
    typedef void (*sipVH_QtCore_29)(sip_gilstate_t,PyObject *,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_insert);

    if (!meth)
    {
        KParts::HistoryProvider::insert(a0);
        return;
    }

    ((sipVH_QtCore_29)(sipModuleAPI_kparts_QtCore->em_virthandlers[29]))(sipGILState,meth,a0);
}

void sipKParts_HistoryProvider::remove(const QString& a0)
{
    typedef void (*sipVH_QtCore_29)(sip_gilstate_t,PyObject *,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_remove);

    if (!meth)
    {
        KParts::HistoryProvider::remove(a0);
        return;
    }

    ((sipVH_QtCore_29)(sipModuleAPI_kparts_QtCore->em_virthandlers[29]))(sipGILState,meth,a0);
}

void sipKParts_HistoryProvider::clear()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_clear);

    if (!meth)
    {
        KParts::HistoryProvider::clear();
        return;
    }

    ((sipVH_QtCore_5)(sipModuleAPI_kparts_QtCore->em_virthandlers[5]))(sipGILState,meth);
}

bool sipKParts_HistoryProvider::event(QEvent *a0)
{
    typedef bool (*sipVH_QtCore_13)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_event);

    if (!meth)
        return QObject::event(a0);

    return ((sipVH_QtCore_13)(sipModuleAPI_kparts_QtCore->em_virthandlers[13]))(sipGILState,meth,a0);
}

bool sipKParts_HistoryProvider::eventFilter(QObject *a0,QEvent *a1)
{
    typedef bool (*sipVH_QtCore_21)(sip_gilstate_t,PyObject *,QObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!meth)
        return QObject::eventFilter(a0,a1);

    return ((sipVH_QtCore_21)(sipModuleAPI_kparts_QtCore->em_virthandlers[21]))(sipGILState,meth,a0,a1);
}

void sipKParts_HistoryProvider::timerEvent(QTimerEvent *a0)
{
    typedef void (*sipVH_QtCore_3)(sip_gilstate_t,PyObject *,QTimerEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_timerEvent);

    if (!meth)
    {
        QObject::timerEvent(a0);
        return;
    }

    ((sipVH_QtCore_3)(sipModuleAPI_kparts_QtCore->em_virthandlers[3]))(sipGILState,meth,a0);
}

void sipKParts_HistoryProvider::childEvent(QChildEvent *a0)
{
    typedef void (*sipVH_QtCore_20)(sip_gilstate_t,PyObject *,QChildEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_childEvent);

    if (!meth)
    {
        QObject::childEvent(a0);
        return;
    }

    ((sipVH_QtCore_20)(sipModuleAPI_kparts_QtCore->em_virthandlers[20]))(sipGILState,meth,a0);
}

void sipKParts_HistoryProvider::customEvent(QEvent *a0)
{
    typedef void (*sipVH_QtCore_19)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_customEvent);

    if (!meth)
    {
        QObject::customEvent(a0);
        return;
    }

    ((sipVH_QtCore_19)(sipModuleAPI_kparts_QtCore->em_virthandlers[19]))(sipGILState,meth,a0);
}

void sipKParts_HistoryProvider::connectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_connectNotify);

    if (!meth)
    {
        QObject::connectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_kparts_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

void sipKParts_HistoryProvider::disconnectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_disconnectNotify);

    if (!meth)
    {
        QObject::disconnectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_kparts_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

int sipKParts_HistoryProvider::sipProtect_receivers(const char *a0) const
{
    return QObject::receivers(a0);
}

void sipKParts_HistoryProvider::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent *a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipKParts_HistoryProvider::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent *a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipKParts_HistoryProvider::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipKParts_HistoryProvider::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipKParts_HistoryProvider::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}


extern "C" {static PyObject *meth_KParts_HistoryProvider_receivers(PyObject *, PyObject *);}
static PyObject *meth_KParts_HistoryProvider_receivers(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        char * a0;
        sipKParts_HistoryProvider *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KParts_HistoryProvider,&sipCpp,&a0))
        {
            int sipRes = 0;

#line 462 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
#line 5258 "sipkpartspart3.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_HistoryProvider,sipName_receivers);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_HistoryProvider_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_HistoryProvider_timerEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipKParts_HistoryProvider *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_HistoryProvider,&sipCpp,sipType_QTimerEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_HistoryProvider,sipName_timerEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_HistoryProvider_childEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_HistoryProvider_childEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipKParts_HistoryProvider *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_HistoryProvider,&sipCpp,sipType_QChildEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_HistoryProvider,sipName_childEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_HistoryProvider_customEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_HistoryProvider_customEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipKParts_HistoryProvider *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_HistoryProvider,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_HistoryProvider,sipName_customEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_HistoryProvider_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_KParts_HistoryProvider_connectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKParts_HistoryProvider *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KParts_HistoryProvider,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_HistoryProvider,sipName_connectNotify);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_HistoryProvider_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_KParts_HistoryProvider_disconnectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKParts_HistoryProvider *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KParts_HistoryProvider,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_HistoryProvider,sipName_disconnectNotify);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_HistoryProvider_self(PyObject *, PyObject *);}
static PyObject *meth_KParts_HistoryProvider_self(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            KParts::HistoryProvider *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KParts::HistoryProvider::self();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KParts_HistoryProvider,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_HistoryProvider,sipName_self);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_HistoryProvider_contains(PyObject *, PyObject *);}
static PyObject *meth_KParts_HistoryProvider_contains(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString * a0;
        int a0State = 0;
        KParts::HistoryProvider *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KParts_HistoryProvider,&sipCpp,sipType_QString,&a0,&a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KParts::HistoryProvider::contains(*a0) : sipCpp->contains(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_HistoryProvider,sipName_contains);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_HistoryProvider_insert(PyObject *, PyObject *);}
static PyObject *meth_KParts_HistoryProvider_insert(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString * a0;
        int a0State = 0;
        KParts::HistoryProvider *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KParts_HistoryProvider,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KParts::HistoryProvider::insert(*a0) : sipCpp->insert(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_HistoryProvider,sipName_insert);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_HistoryProvider_remove(PyObject *, PyObject *);}
static PyObject *meth_KParts_HistoryProvider_remove(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString * a0;
        int a0State = 0;
        KParts::HistoryProvider *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KParts_HistoryProvider,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KParts::HistoryProvider::remove(*a0) : sipCpp->remove(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_HistoryProvider,sipName_remove);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_HistoryProvider_clear(PyObject *, PyObject *);}
static PyObject *meth_KParts_HistoryProvider_clear(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KParts::HistoryProvider *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KParts_HistoryProvider,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KParts::HistoryProvider::clear() : sipCpp->clear());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_HistoryProvider,sipName_clear);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KParts_HistoryProvider(void *, const sipTypeDef *);}
static void *cast_KParts_HistoryProvider(void *ptr,const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KParts_HistoryProvider)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(KParts::HistoryProvider *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KParts_HistoryProvider(void *, int);}
static void release_KParts_HistoryProvider(void *sipCppV,int state)
{
    Py_BEGIN_ALLOW_THREADS

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKParts_HistoryProvider *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KParts_HistoryProvider(sipSimpleWrapper *);}
static void dealloc_KParts_HistoryProvider(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKParts_HistoryProvider *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KParts_HistoryProvider(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_KParts_HistoryProvider(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KParts_HistoryProvider(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **sipOwner, int *sipArgsParsed)
{
    sipKParts_HistoryProvider *sipCpp = 0;

    if (!sipCpp)
    {
        QObject * a0 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"|JH",sipType_QObject,&a0,sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKParts_HistoryProvider(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_KParts_HistoryProvider[] = {{111, 0, 1}};


static PyMethodDef methods_KParts_HistoryProvider[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KParts_HistoryProvider_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clear), meth_KParts_HistoryProvider_clear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KParts_HistoryProvider_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_contains), meth_KParts_HistoryProvider_contains, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KParts_HistoryProvider_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KParts_HistoryProvider_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_insert), meth_KParts_HistoryProvider_insert, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KParts_HistoryProvider_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_remove), meth_KParts_HistoryProvider_remove, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_self), meth_KParts_HistoryProvider_self, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KParts_HistoryProvider_timerEvent, METH_VARARGS, NULL}
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_KParts_HistoryProvider[] = {
    {"inserted(const QString&)", 0},
    {"updated(const QStringList&)", 0},
    {"cleared()", 0},
    {0, 0}
};


pyqt4ClassTypeDef pyqt4Type_kparts_KParts_HistoryProvider = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__HistoryProvider,
        {0}
    },
    sipNameNr_HistoryProvider,
    -1,
    -1,
    {0, 255, 0},
    supers_KParts_HistoryProvider,
    0,
    11, methods_KParts_HistoryProvider,
    0, 0,
    0, 0,
    init_KParts_HistoryProvider,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_HistoryProvider,
    release_KParts_HistoryProvider,
    cast_KParts_HistoryProvider,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &KParts::HistoryProvider::staticMetaObject,
    0,
    pyqt4_signals_KParts_HistoryProvider
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/factory.sip"
#include <kparts/factory.h>
#line 5698 "sipkpartspart3.cpp"

#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 5702 "sipkpartspart3.cpp"
#line 61 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/part.sip"
#include <kparts/part.h>
#line 5705 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 5708 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 5711 "sipkpartspart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 5714 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5717 "sipkpartspart3.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 5748 "sipkpartspart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 5751 "sipkpartspart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 5754 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5757 "sipkpartspart3.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 5760 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 5763 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 5766 "sipkpartspart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5769 "sipkpartspart3.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5772 "sipkpartspart3.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5775 "sipkpartspart3.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5778 "sipkpartspart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 5781 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 5784 "sipkpartspart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 5787 "sipkpartspart3.cpp"


class sipKParts_Factory : public KParts::Factory
{
public:
    sipKParts_Factory(QObject *);
    virtual ~sipKParts_Factory();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    QObject * sipProtectVirt_create(bool,const char *,QWidget *,QObject *,const QVariantList&,const QString&);
    QVariantList sipProtect_stringListToVariantList(const QStringList&);
    QStringList sipProtect_variantListToStringList(const QVariantList&);
    void sipProtectVirt_setupTranslations(bool);
    QObject * sipProtectVirt_createObject(bool,QObject *,const char *,const QStringList&);
    void sipProtect_setComponentData(const KComponentData&);
    KParts::Part * sipProtect_createPartObject(QWidget *,QObject *,const char *,const QStringList&);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    KComponentData partComponentData();
    KParts::Part * createPartObject(QWidget *,QObject *,const char *,const QStringList&);
    void setupTranslations();
    QObject * createObject(QObject *,const char *,const QStringList&);
    QObject * create(const char *,QWidget *,QObject *,const QVariantList&,const QString&);
    bool event(QEvent *);
    bool eventFilter(QObject *,QEvent *);
    void timerEvent(QTimerEvent *);
    void childEvent(QChildEvent *);
    void customEvent(QEvent *);
    void connectNotify(const char *);
    void disconnectNotify(const char *);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKParts_Factory(const sipKParts_Factory &);
    sipKParts_Factory &operator = (const sipKParts_Factory &);

    char sipPyMethods[12];
};

sipKParts_Factory::sipKParts_Factory(QObject *a0): KParts::Factory(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKParts_Factory::~sipKParts_Factory()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipKParts_Factory::metaObject() const
{
    return sip_kparts_qt_metaobject(sipPySelf,sipType_KParts_Factory);
}

int sipKParts_Factory::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KParts::Factory::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_kparts_qt_metacall(sipPySelf,sipType_KParts_Factory,_c,_id,_a);

    return _id;
}

void *sipKParts_Factory::qt_metacast(const char *_clname)
{
    return (sip_kparts_qt_metacast && sip_kparts_qt_metacast(sipPySelf,sipType_KParts_Factory,_clname)) ? this : KParts::Factory::qt_metacast(_clname);
}

KComponentData sipKParts_Factory::partComponentData()
{
    typedef KComponentData (*sipVH_kdeui_8)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_partComponentData);

    if (!meth)
        return KParts::Factory::partComponentData();

    return ((sipVH_kdeui_8)(sipModuleAPI_kparts_kdeui->em_virthandlers[8]))(sipGILState,meth);
}

KParts::Part * sipKParts_Factory::createPartObject(QWidget *a0,QObject *a1,const char *a2,const QStringList& a3)
{
    extern KParts::Part * sipVH_kparts_12(sip_gilstate_t,PyObject *,QWidget *,QObject *,const char *,const QStringList&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,sipName_Factory,sipName_createPartObject);

    if (!meth)
        return 0;

    return sipVH_kparts_12(sipGILState,meth,a0,a1,a2,a3);
}

void sipKParts_Factory::setupTranslations()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_setupTranslations);

    if (!meth)
    {
        KPluginFactory::setupTranslations();
        return;
    }

    ((sipVH_QtCore_5)(sipModuleAPI_kparts_QtCore->em_virthandlers[5]))(sipGILState,meth);
}

QObject * sipKParts_Factory::createObject(QObject *a0,const char *a1,const QStringList& a2)
{
    typedef QObject * (*sipVH_kdecore_9)(sip_gilstate_t,PyObject *,QObject *,const char *,const QStringList&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_createObject);

    if (!meth)
        return KPluginFactory::createObject(a0,a1,a2);

    return ((sipVH_kdecore_9)(sipModuleAPI_kparts_kdecore->em_virthandlers[9]))(sipGILState,meth,a0,a1,a2);
}

QObject * sipKParts_Factory::create(const char *a0,QWidget *a1,QObject *a2,const QVariantList& a3,const QString& a4)
{
    typedef QObject * (*sipVH_kdecore_8)(sip_gilstate_t,PyObject *,const char *,QWidget *,QObject *,const QList<QVariant>&,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_create);

    if (!meth)
        return KPluginFactory::create(a0,a1,a2,a3,a4);

    return ((sipVH_kdecore_8)(sipModuleAPI_kparts_kdecore->em_virthandlers[8]))(sipGILState,meth,a0,a1,a2,a3,a4);
}

bool sipKParts_Factory::event(QEvent *a0)
{
    typedef bool (*sipVH_QtCore_13)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_event);

    if (!meth)
        return QObject::event(a0);

    return ((sipVH_QtCore_13)(sipModuleAPI_kparts_QtCore->em_virthandlers[13]))(sipGILState,meth,a0);
}

bool sipKParts_Factory::eventFilter(QObject *a0,QEvent *a1)
{
    typedef bool (*sipVH_QtCore_21)(sip_gilstate_t,PyObject *,QObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_eventFilter);

    if (!meth)
        return QObject::eventFilter(a0,a1);

    return ((sipVH_QtCore_21)(sipModuleAPI_kparts_QtCore->em_virthandlers[21]))(sipGILState,meth,a0,a1);
}

void sipKParts_Factory::timerEvent(QTimerEvent *a0)
{
    typedef void (*sipVH_QtCore_3)(sip_gilstate_t,PyObject *,QTimerEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_timerEvent);

    if (!meth)
    {
        QObject::timerEvent(a0);
        return;
    }

    ((sipVH_QtCore_3)(sipModuleAPI_kparts_QtCore->em_virthandlers[3]))(sipGILState,meth,a0);
}

void sipKParts_Factory::childEvent(QChildEvent *a0)
{
    typedef void (*sipVH_QtCore_20)(sip_gilstate_t,PyObject *,QChildEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_childEvent);

    if (!meth)
    {
        QObject::childEvent(a0);
        return;
    }

    ((sipVH_QtCore_20)(sipModuleAPI_kparts_QtCore->em_virthandlers[20]))(sipGILState,meth,a0);
}

void sipKParts_Factory::customEvent(QEvent *a0)
{
    typedef void (*sipVH_QtCore_19)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_customEvent);

    if (!meth)
    {
        QObject::customEvent(a0);
        return;
    }

    ((sipVH_QtCore_19)(sipModuleAPI_kparts_QtCore->em_virthandlers[19]))(sipGILState,meth,a0);
}

void sipKParts_Factory::connectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_connectNotify);

    if (!meth)
    {
        QObject::connectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_kparts_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

void sipKParts_Factory::disconnectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_disconnectNotify);

    if (!meth)
    {
        QObject::disconnectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_kparts_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

int sipKParts_Factory::sipProtect_receivers(const char *a0) const
{
    return QObject::receivers(a0);
}

void sipKParts_Factory::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent *a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipKParts_Factory::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent *a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipKParts_Factory::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipKParts_Factory::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipKParts_Factory::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

QObject * sipKParts_Factory::sipProtectVirt_create(bool sipSelfWasArg,const char *a0,QWidget *a1,QObject *a2,const QVariantList& a3,const QString& a4)
{
    return (sipSelfWasArg ? KPluginFactory::create(a0,a1,a2,a3,a4) : create(a0,a1,a2,a3,a4));
}

QVariantList sipKParts_Factory::sipProtect_stringListToVariantList(const QStringList& a0)
{
    return KPluginFactory::stringListToVariantList(a0);
}

QStringList sipKParts_Factory::sipProtect_variantListToStringList(const QVariantList& a0)
{
    return KPluginFactory::variantListToStringList(a0);
}

void sipKParts_Factory::sipProtectVirt_setupTranslations(bool sipSelfWasArg)
{
    (sipSelfWasArg ? KPluginFactory::setupTranslations() : setupTranslations());
}

QObject * sipKParts_Factory::sipProtectVirt_createObject(bool sipSelfWasArg,QObject *a0,const char *a1,const QStringList& a2)
{
    return (sipSelfWasArg ? KPluginFactory::createObject(a0,a1,a2) : createObject(a0,a1,a2));
}

void sipKParts_Factory::sipProtect_setComponentData(const KComponentData& a0)
{
    KPluginFactory::setComponentData(a0);
}

KParts::Part * sipKParts_Factory::sipProtect_createPartObject(QWidget *a0,QObject *a1,const char *a2,const QStringList& a3)
{
    return createPartObject(a0,a1,a2,a3);
}


extern "C" {static PyObject *meth_KParts_Factory_receivers(PyObject *, PyObject *);}
static PyObject *meth_KParts_Factory_receivers(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        char * a0;
        sipKParts_Factory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KParts_Factory,&sipCpp,&a0))
        {
            int sipRes = 0;

#line 462 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
#line 6165 "sipkpartspart3.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Factory,sipName_receivers);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_Factory_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_Factory_timerEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipKParts_Factory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_Factory,&sipCpp,sipType_QTimerEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Factory,sipName_timerEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_Factory_childEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_Factory_childEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipKParts_Factory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_Factory,&sipCpp,sipType_QChildEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Factory,sipName_childEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_Factory_customEvent(PyObject *, PyObject *);}
static PyObject *meth_KParts_Factory_customEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipKParts_Factory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KParts_Factory,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Factory,sipName_customEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_Factory_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_KParts_Factory_connectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKParts_Factory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KParts_Factory,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Factory,sipName_connectNotify);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_Factory_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_KParts_Factory_disconnectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKParts_Factory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KParts_Factory,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Factory,sipName_disconnectNotify);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_Factory_create(PyObject *, PyObject *);}
static PyObject *meth_KParts_Factory_create(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QObject * a0 = 0;
        const char * a1 = "QObject";
        const QStringList& a2def = QStringList();
        const QStringList * a2 = &a2def;
        int a2State = 0;
        KParts::Factory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B|J:sJ1",&sipSelf,sipType_KParts_Factory,&sipCpp,sipType_QObject,&a0,&a1,sipType_QStringList,&a2,&a2State))
        {
            QObject *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->create(a0,a1,*a2);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QStringList *>(a2),sipType_QStringList,a2State);

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    {
        const char * a0;
        QWidget * a1;
        QObject * a2;
        const QVariantList * a3;
        int a3State = 0;
        const QString * a4;
        int a4State = 0;
        sipKParts_Factory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"psJ8J:J1J1",&sipSelf,sipType_KParts_Factory,&sipCpp,&a0,sipType_QWidget,&a1,sipType_QObject,&a2,sipType_QList_0200QVariant,&a3,&a3State,sipType_QString,&a4,&a4State))
        {
            QObject *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_create(sipSelfWasArg,a0,a1,a2,*a3,*a4);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QVariantList *>(a3),sipType_QList_0200QVariant,a3State);
            sipReleaseType(const_cast<QString *>(a4),sipType_QString,a4State);

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Factory,sipName_create);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_Factory_stringListToVariantList(PyObject *, PyObject *);}
static PyObject *meth_KParts_Factory_stringListToVariantList(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QStringList * a0;
        int a0State = 0;
        sipKParts_Factory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&sipSelf,sipType_KParts_Factory,&sipCpp,sipType_QStringList,&a0,&a0State))
        {
            QVariantList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariantList(sipCpp->sipProtect_stringListToVariantList(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0200QVariant,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Factory,sipName_stringListToVariantList);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_Factory_variantListToStringList(PyObject *, PyObject *);}
static PyObject *meth_KParts_Factory_variantListToStringList(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QVariantList * a0;
        int a0State = 0;
        sipKParts_Factory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&sipSelf,sipType_KParts_Factory,&sipCpp,sipType_QList_0200QVariant,&a0,&a0State))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->sipProtect_variantListToStringList(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QVariantList *>(a0),sipType_QList_0200QVariant,a0State);

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Factory,sipName_variantListToStringList);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_Factory_setupTranslations(PyObject *, PyObject *);}
static PyObject *meth_KParts_Factory_setupTranslations(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipKParts_Factory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KParts_Factory,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setupTranslations(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Factory,sipName_setupTranslations);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_Factory_createObject(PyObject *, PyObject *);}
static PyObject *meth_KParts_Factory_createObject(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QObject * a0;
        const char * a1;
        const QStringList * a2;
        int a2State = 0;
        sipKParts_Factory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ:sJ1",&sipSelf,sipType_KParts_Factory,&sipCpp,sipType_QObject,&a0,&a1,sipType_QStringList,&a2,&a2State))
        {
            QObject *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_createObject(sipSelfWasArg,a0,a1,*a2);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QStringList *>(a2),sipType_QStringList,a2State);

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Factory,sipName_createObject);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_Factory_setComponentData(PyObject *, PyObject *);}
static PyObject *meth_KParts_Factory_setComponentData(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const KComponentData * a0;
        sipKParts_Factory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9",&sipSelf,sipType_KParts_Factory,&sipCpp,sipType_KComponentData,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setComponentData(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Factory,sipName_setComponentData);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_Factory_createPart(PyObject *, PyObject *);}
static PyObject *meth_KParts_Factory_createPart(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        QWidget * a0 = 0;
        QObject * a1 = 0;
        const char * a2 = "KParts::Part";
        PyObject *a2Keep = 0;
        const QStringList& a3def = QStringList();
        const QStringList * a3 = &a3def;
        int a3State = 0;
        KParts::Factory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B|J8J:AAJ1",&sipSelf,sipType_KParts_Factory,&sipCpp,sipType_QWidget,&a0,sipType_QObject,&a1,&a2Keep,&a2,sipType_QStringList,&a3,&a3State))
        {
            KParts::Part *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->createPart(a0,a1,a2,*a3);
            Py_END_ALLOW_THREADS
            Py_XDECREF(a2Keep);

            sipReleaseType(const_cast<QStringList *>(a3),sipType_QStringList,a3State);

            return sipConvertFromType(sipRes,sipType_KParts_Part,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Factory,sipName_createPart);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_Factory_partComponentData(PyObject *, PyObject *);}
static PyObject *meth_KParts_Factory_partComponentData(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KParts::Factory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KParts_Factory,&sipCpp))
        {
            KComponentData *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KComponentData((sipSelfWasArg ? sipCpp->KParts::Factory::partComponentData() : sipCpp->partComponentData()));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KComponentData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Factory,sipName_partComponentData);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_Factory_partComponentDataFromLibrary(PyObject *, PyObject *);}
static PyObject *meth_KParts_Factory_partComponentDataFromLibrary(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            KComponentData *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KComponentData(KParts::Factory::partComponentDataFromLibrary(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_KComponentData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Factory,sipName_partComponentDataFromLibrary);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_Factory_createPartObject(PyObject *, PyObject *);}
static PyObject *meth_KParts_Factory_createPartObject(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QWidget * a0 = 0;
        QObject * a1 = 0;
        const char * a2 = "KParts::Part";
        PyObject *a2Keep = 0;
        const QStringList& a3def = QStringList();
        const QStringList * a3 = &a3def;
        int a3State = 0;
        sipKParts_Factory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p|J8J:AAJ1",&sipSelf,sipType_KParts_Factory,&sipCpp,sipType_QWidget,&a0,sipType_QObject,&a1,&a2Keep,&a2,sipType_QStringList,&a3,&a3State))
        {
            KParts::Part *sipRes;

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_Factory, sipName_createPartObject);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_createPartObject(a0,a1,a2,*a3);
            Py_END_ALLOW_THREADS
            Py_XDECREF(a2Keep);

            sipReleaseType(const_cast<QStringList *>(a3),sipType_QStringList,a3State);

            return sipConvertFromType(sipRes,sipType_KParts_Part,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Factory,sipName_createPartObject);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KParts_Factory(void *, const sipTypeDef *);}
static void *cast_KParts_Factory(void *ptr,const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KParts_Factory)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KPluginFactory)->ctd_cast((KPluginFactory *)(KParts::Factory *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KParts_Factory(void *, int);}
static void release_KParts_Factory(void *sipCppV,int state)
{
    Py_BEGIN_ALLOW_THREADS

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKParts_Factory *>(sipCppV);
    else
        delete reinterpret_cast<KParts::Factory *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KParts_Factory(sipSimpleWrapper *);}
static void dealloc_KParts_Factory(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKParts_Factory *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KParts_Factory(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_KParts_Factory(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KParts_Factory(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **sipOwner, int *sipArgsParsed)
{
    sipKParts_Factory *sipCpp = 0;

    if (!sipCpp)
    {
        QObject * a0 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"|JH",sipType_QObject,&a0,sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKParts_Factory(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_KParts_Factory[] = {{112, 3, 1}};


static PyMethodDef methods_KParts_Factory[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KParts_Factory_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KParts_Factory_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_create), meth_KParts_Factory_create, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createObject), meth_KParts_Factory_createObject, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createPart), meth_KParts_Factory_createPart, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createPartObject), meth_KParts_Factory_createPartObject, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KParts_Factory_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KParts_Factory_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_partComponentData), meth_KParts_Factory_partComponentData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_partComponentDataFromLibrary), meth_KParts_Factory_partComponentDataFromLibrary, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KParts_Factory_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setComponentData), meth_KParts_Factory_setComponentData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setupTranslations), meth_KParts_Factory_setupTranslations, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_stringListToVariantList), meth_KParts_Factory_stringListToVariantList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KParts_Factory_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_variantListToStringList), meth_KParts_Factory_variantListToStringList, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kparts_KParts_Factory = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__Factory,
        {0}
    },
    sipNameNr_Factory,
    -1,
    -1,
    {0, 255, 0},
    supers_KParts_Factory,
    0,
    16, methods_KParts_Factory,
    0, 0,
    0, 0,
    init_KParts_Factory,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_Factory,
    release_KParts_Factory,
    cast_KParts_Factory,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &KParts::Factory::staticMetaObject,
    0,
    0
};

#line 112 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/event.sip"
#include <kparts/event.h>
#line 6809 "sipkpartspart3.cpp"

#line 61 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/part.sip"
#include <kparts/part.h>
#line 6813 "sipkpartspart3.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 6816 "sipkpartspart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6819 "sipkpartspart3.cpp"


class sipKParts_PartSelectEvent : public KParts::PartSelectEvent
{
public:
    sipKParts_PartSelectEvent(bool,KParts::Part *,QWidget *);
    virtual ~sipKParts_PartSelectEvent();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    const char * eventName() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKParts_PartSelectEvent(const sipKParts_PartSelectEvent &);
    sipKParts_PartSelectEvent &operator = (const sipKParts_PartSelectEvent &);

    char sipPyMethods[1];
};

sipKParts_PartSelectEvent::sipKParts_PartSelectEvent(bool a0,KParts::Part *a1,QWidget *a2): KParts::PartSelectEvent(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKParts_PartSelectEvent::~sipKParts_PartSelectEvent()
{
    sipCommonDtor(sipPySelf);
}

const char * sipKParts_PartSelectEvent::eventName() const
{
    extern const char * sipVH_kparts_13(sip_gilstate_t,PyObject *,int,sipSimpleWrapper *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_eventName);

    if (!meth)
        return KParts::Event::eventName();

    return sipVH_kparts_13(sipGILState,meth,1,sipPySelf);
}


extern "C" {static PyObject *meth_KParts_PartSelectEvent_selected(PyObject *, PyObject *);}
static PyObject *meth_KParts_PartSelectEvent_selected(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KParts::PartSelectEvent *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KParts_PartSelectEvent,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->selected();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_PartSelectEvent,sipName_selected);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_PartSelectEvent_part(PyObject *, PyObject *);}
static PyObject *meth_KParts_PartSelectEvent_part(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KParts::PartSelectEvent *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KParts_PartSelectEvent,&sipCpp))
        {
            KParts::Part *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->part();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KParts_Part,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_PartSelectEvent,sipName_part);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_PartSelectEvent_widget(PyObject *, PyObject *);}
static PyObject *meth_KParts_PartSelectEvent_widget(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KParts::PartSelectEvent *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KParts_PartSelectEvent,&sipCpp))
        {
            QWidget *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->widget();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QWidget,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_PartSelectEvent,sipName_widget);

    return NULL;
}


extern "C" {static PyObject *meth_KParts_PartSelectEvent_test(PyObject *, PyObject *);}
static PyObject *meth_KParts_PartSelectEvent_test(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QEvent * a0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J8",sipType_QEvent,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KParts::PartSelectEvent::test(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_PartSelectEvent,sipName_test);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KParts_PartSelectEvent(void *, const sipTypeDef *);}
static void *cast_KParts_PartSelectEvent(void *ptr,const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KParts_PartSelectEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KParts_Event)->ctd_cast((KParts::Event *)(KParts::PartSelectEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KParts_PartSelectEvent(void *, int);}
static void release_KParts_PartSelectEvent(void *sipCppV,int state)
{
    Py_BEGIN_ALLOW_THREADS

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKParts_PartSelectEvent *>(sipCppV);
    else
        delete reinterpret_cast<KParts::PartSelectEvent *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KParts_PartSelectEvent(sipSimpleWrapper *);}
static void dealloc_KParts_PartSelectEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKParts_PartSelectEvent *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KParts_PartSelectEvent(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_KParts_PartSelectEvent(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KParts_PartSelectEvent(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    sipKParts_PartSelectEvent *sipCpp = 0;

    if (!sipCpp)
    {
        bool a0;
        KParts::Part * a1;
        QWidget * a2;

        if (sipParseArgs(sipArgsParsed,sipArgs,"bJ8J8",&a0,sipType_KParts_Part,&a1,sipType_QWidget,&a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKParts_PartSelectEvent(a0,a1,a2);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_KParts_PartSelectEvent[] = {{11, 255, 1}};


static PyMethodDef methods_KParts_PartSelectEvent[] = {
    {SIP_MLNAME_CAST(sipName_part), meth_KParts_PartSelectEvent_part, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selected), meth_KParts_PartSelectEvent_selected, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_test), meth_KParts_PartSelectEvent_test, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_widget), meth_KParts_PartSelectEvent_widget, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kparts_KParts_PartSelectEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KParts__PartSelectEvent,
        {0}
    },
    sipNameNr_PartSelectEvent,
    -1,
    -1,
    {0, 255, 0},
    supers_KParts_PartSelectEvent,
    0,
    4, methods_KParts_PartSelectEvent,
    0, 0,
    0, 0,
    init_KParts_PartSelectEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KParts_PartSelectEvent,
    release_KParts_PartSelectEvent,
    cast_KParts_PartSelectEvent,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};
