/*
 * Module code.
 *
 * Generated by SIP 4.18.1
 */

#include "sipAPIktexteditor.h"

#line 30 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/view.sip"
#include <ktexteditor/view.h>

#include <ktexteditor/codecompletioninterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/texthintinterface.h>
#include <ktexteditor/annotationinterface.h>
#include <ktexteditor/configinterface.h>
#include <ktexteditor/templateinterface.h>
#include <ktexteditor/templateinterface2.h>
#line 20 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"

#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 24 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 34 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/templateinterface2.sip"
#include <ktexteditor/templateinterface2.h>
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 30 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/templateinterface.sip"
#include <ktexteditor/templateinterface.h>
#line 30 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 176 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/view.sip"
#include <ktexteditor/view.h>
#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 30 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/configinterface.sip"
#include <ktexteditor/configinterface.h>
#line 36 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 56 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/annotationinterface.sip"
#include <ktexteditor/annotationinterface.h>
#line 39 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 30 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/texthintinterface.sip"
#include <ktexteditor/texthintinterface.h>
#line 42 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 30 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/sessionconfiginterface.sip"
#include <ktexteditor/sessionconfiginterface.h>
#line 45 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 30 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/codecompletioninterface.sip"
#include <ktexteditor/codecompletioninterface.h>
#line 48 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 51 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 30 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/range.sip"
#include <ktexteditor/range.h>
#line 54 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 30 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/cursor.sip"
#include <ktexteditor/cursor.h>
#line 57 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qpoint.sip"
#include <qpoint.h>
#line 60 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qmenu.sip"
#include <qmenu.h>
#line 63 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 30 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/document.sip"
#include <ktexteditor/document.h>

#include <ktexteditor/modificationinterface.h>
#include <ktexteditor/markinterface.h>
#include <ktexteditor/searchinterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/smartinterface.h>
#include <ktexteditor/templateinterface.h>
#include <ktexteditor/variableinterface.h>
#include <ktexteditor/movinginterface.h>
#include <ktexteditor/annotationinterface.h>
#include <ktexteditor/highlightinterface.h>
#include <ktexteditor/configinterface.h>
#include <ktexteditor/modeinterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/recoveryinterface.h>

#line 82 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 85 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qmargins.sip"
#include <qmargins.h>
#line 88 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 91 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 94 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtGui/qgraphicseffect.sip"
#include <qgraphicseffect.h>
#line 97 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtGui/qgraphicsproxywidget.sip"
#include <qgraphicsproxywidget.h>
#line 100 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qlocale.sip"
#include <qlocale.h>
#line 103 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 106 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qregion.sip"
#include <qregion.h>
#line 109 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 112 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qpainter.sip"
#include <qpainter.h>
#line 115 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 118 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 121 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qrect.sip"
#include <qrect.h>
#line 124 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qfontinfo.sip"
#include <qfontinfo.h>
#line 127 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 130 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qfont.sip"
#include <qfont.h>
#line 133 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 136 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qpalette.sip"
#include <qpalette.h>
#line 139 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 142 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 651 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 145 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 148 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 611 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 151 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 600 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 154 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 743 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 157 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 796 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 160 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 769 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 163 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 785 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 166 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 858 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 169 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 407 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 172 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 622 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 175 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 578 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 178 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 565 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 181 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 552 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 184 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 528 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 187 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 509 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 190 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 478 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 193 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 196 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 256 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 199 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtGui/qinputcontext.sip"
#include <qinputcontext.h>
#line 202 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 56 "/usr/share/python3-sip/PyQt4/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 205 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtGui/qx11info_x11.sip"
#include <qx11info_x11.h>
#line 208 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 211 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qaction.sip"
#include <qaction.h>
#line 214 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qlayout.sip"
#include <qlayout.h>
#line 217 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qsizepolicy.sip"
#include <qsizepolicy.h>
#line 220 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 223 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 226 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qcursor.sip"
#include <qcursor.h>
#line 229 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qicon.sip"
#include <qicon.h>
#line 232 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 235 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qstyle.sip"
#include <qstyle.h>
#line 238 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 241 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 244 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 247 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 250 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 253 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 256 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 259 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 262 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguiclient.sip"
#include <kxmlguiclient.h>
#line 265 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 211 "/usr/share/python3-sip/PyQt4/QtXml/qdom.sip"
#include <qdom.h>
#line 268 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 271 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguiclient.sip"
#include <kxmlguiclient.h>
#line 274 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 277 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguibuilder.sip"
#include <kxmlguibuilder.h>
#line 280 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 283 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguifactory.sip"
#include <kxmlguifactory.h>
#line 286 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/kactioncollection.sip"
#include <kactioncollection.h>
#line 289 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 340 "/usr/share/python3-sip/PyQt4/QtXml/qdom.sip"
#include <qdom.h>
#line 292 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"


extern "C" {static PyObject *meth_KTextEditor_View_document(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_View_document(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const KTextEditor::View *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_View, &sipCpp))
        {
            KTextEditor::Document*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_View, sipName_document);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->document();
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_View, sipName_document, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_View_isActiveView(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_View_isActiveView(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KTextEditor::View *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_View, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isActiveView();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_View, sipName_isActiveView, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_View_viewMode(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_View_viewMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const KTextEditor::View *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_View, &sipCpp))
        {
            QString*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_View, sipName_viewMode);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->viewMode());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_View, sipName_viewMode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_View_viewEditMode(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_View_viewEditMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const KTextEditor::View *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_View, &sipCpp))
        {
            KTextEditor::View::EditMode sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_View, sipName_viewEditMode);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->viewEditMode();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KTextEditor_View_EditMode);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_View, sipName_viewEditMode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_View_setContextMenu(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_View_setContextMenu(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        QMenu* a0;
        KTextEditor::View *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_View, &sipCpp, sipType_QMenu, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_View, sipName_setContextMenu);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->setContextMenu(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_View, sipName_setContextMenu, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_View_contextMenu(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_View_contextMenu(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const KTextEditor::View *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_View, &sipCpp))
        {
            QMenu*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_View, sipName_contextMenu);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->contextMenu();
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_View, sipName_contextMenu, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_View_defaultContextMenu(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_View_defaultContextMenu(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        QMenu* a0 = 0;
        const KTextEditor::View *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J8", &sipSelf, sipType_KTextEditor_View, &sipCpp, sipType_QMenu, &a0))
        {
            QMenu*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_View, sipName_defaultContextMenu);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->defaultContextMenu(a0);
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_View, sipName_defaultContextMenu, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_View_setCursorPosition(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_View_setCursorPosition(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        KTextEditor::Cursor* a0;
        KTextEditor::View *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTextEditor_View, &sipCpp, sipType_KTextEditor_Cursor, &a0))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_View, sipName_setCursorPosition);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setCursorPosition(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_View, sipName_setCursorPosition, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_View_cursorPosition(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_View_cursorPosition(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const KTextEditor::View *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_View, &sipCpp))
        {
            KTextEditor::Cursor*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_View, sipName_cursorPosition);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTextEditor::Cursor(sipCpp->cursorPosition());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KTextEditor_Cursor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_View, sipName_cursorPosition, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_View_cursorPositionVirtual(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_View_cursorPositionVirtual(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const KTextEditor::View *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_View, &sipCpp))
        {
            KTextEditor::Cursor*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_View, sipName_cursorPositionVirtual);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTextEditor::Cursor(sipCpp->cursorPositionVirtual());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KTextEditor_Cursor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_View, sipName_cursorPositionVirtual, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_View_cursorToCoordinate(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_View_cursorToCoordinate(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const KTextEditor::Cursor* a0;
        const KTextEditor::View *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTextEditor_View, &sipCpp, sipType_KTextEditor_Cursor, &a0))
        {
            QPoint*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_View, sipName_cursorToCoordinate);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QPoint(sipCpp->cursorToCoordinate(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_View, sipName_cursorToCoordinate, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_View_cursorPositionCoordinates(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_View_cursorPositionCoordinates(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const KTextEditor::View *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_View, &sipCpp))
        {
            QPoint*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_View, sipName_cursorPositionCoordinates);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QPoint(sipCpp->cursorPositionCoordinates());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_View, sipName_cursorPositionCoordinates, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_View_mouseTrackingEnabled(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_View_mouseTrackingEnabled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const KTextEditor::View *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_View, &sipCpp))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_View, sipName_mouseTrackingEnabled);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->mouseTrackingEnabled();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_View, sipName_mouseTrackingEnabled, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_View_setMouseTrackingEnabled(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_View_setMouseTrackingEnabled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        bool a0;
        KTextEditor::View *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KTextEditor_View, &sipCpp, &a0))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_View, sipName_setMouseTrackingEnabled);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setMouseTrackingEnabled(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_View, sipName_setMouseTrackingEnabled, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_View_setSelection(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_View_setSelection(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));
    PyObject *sipOrigSelf = sipSelf;

    {
        const KTextEditor::Range* a0;
        KTextEditor::View *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTextEditor_View, &sipCpp, sipType_KTextEditor_Range, &a0))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_View, sipName_setSelection);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setSelection(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const KTextEditor::Cursor* a0;
        int a1;
        bool a2 = 1;
        KTextEditor::View *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9i|b", &sipSelf, sipType_KTextEditor_View, &sipCpp, sipType_KTextEditor_Cursor, &a0, &a1, &a2))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTextEditor::View::setSelection(*a0,a1,a2) : sipCpp->setSelection(*a0,a1,a2));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_View, sipName_setSelection, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_View_selection(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_View_selection(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const KTextEditor::View *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_View, &sipCpp))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_View, sipName_selection);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->selection();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_View, sipName_selection, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_View_selectionRange(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_View_selectionRange(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const KTextEditor::View *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_View, &sipCpp))
        {
            KTextEditor::Range*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_View, sipName_selectionRange);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTextEditor::Range(sipCpp->selectionRange());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KTextEditor_Range,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_View, sipName_selectionRange, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_View_selectionText(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_View_selectionText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const KTextEditor::View *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_View, &sipCpp))
        {
            QString*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_View, sipName_selectionText);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->selectionText());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_View, sipName_selectionText, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_View_removeSelection(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_View_removeSelection(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        KTextEditor::View *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_View, &sipCpp))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_View, sipName_removeSelection);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->removeSelection();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_View, sipName_removeSelection, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_View_removeSelectionText(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_View_removeSelectionText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        KTextEditor::View *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_View, &sipCpp))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_View, sipName_removeSelectionText);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->removeSelectionText();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_View, sipName_removeSelectionText, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_View_setBlockSelection(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_View_setBlockSelection(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        bool a0;
        KTextEditor::View *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KTextEditor_View, &sipCpp, &a0))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_View, sipName_setBlockSelection);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setBlockSelection(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_View, sipName_setBlockSelection, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_View_blockSelection(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_View_blockSelection(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const KTextEditor::View *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_View, &sipCpp))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_View, sipName_blockSelection);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->blockSelection();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_View, sipName_blockSelection, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_View_insertText(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_View_insertText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString* a0;
        int a0State = 0;
        KTextEditor::View *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTextEditor::View::insertText(*a0) : sipCpp->insertText(*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(sipParseErr, sipName_View, sipName_insertText, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_View_codeCompletionInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_View_codeCompletionInterface(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KTextEditor::View *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_View, &sipCpp))
        {
            KTextEditor::CodeCompletionInterface*sipRes = 0;

#line 114 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/view.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::CodeCompletionInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 1108 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_View, sipName_codeCompletionInterface, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_View_sessionConfigInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_View_sessionConfigInterface(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KTextEditor::View *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_View, &sipCpp))
        {
            KTextEditor::SessionConfigInterface*sipRes = 0;

#line 121 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/view.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::SessionConfigInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 1137 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_View, sipName_sessionConfigInterface, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_View_textHintInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_View_textHintInterface(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KTextEditor::View *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_View, &sipCpp))
        {
            KTextEditor::TextHintInterface*sipRes = 0;

#line 128 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/view.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::TextHintInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 1166 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_View, sipName_textHintInterface, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_View_annotationViewInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_View_annotationViewInterface(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KTextEditor::View *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_View, &sipCpp))
        {
            KTextEditor::AnnotationViewInterface*sipRes = 0;

#line 135 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/view.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::AnnotationViewInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 1195 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_View, sipName_annotationViewInterface, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_View_configInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_View_configInterface(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KTextEditor::View *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_View, &sipCpp))
        {
            KTextEditor::ConfigInterface*sipRes = 0;

#line 142 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/view.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::ConfigInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 1224 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_View, sipName_configInterface, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_View_coordinatesToCursorInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_View_coordinatesToCursorInterface(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KTextEditor::View *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_View, &sipCpp))
        {
            KTextEditor::CoordinatesToCursorInterface*sipRes = 0;

#line 149 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/view.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::CoordinatesToCursorInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 1253 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_View, sipName_coordinatesToCursorInterface, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_View_templateInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_View_templateInterface(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KTextEditor::View *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_View, &sipCpp))
        {
            KTextEditor::TemplateInterface*sipRes = 0;

#line 156 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/view.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::TemplateInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 1282 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_View, sipName_templateInterface, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_View_templateInterface2(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_View_templateInterface2(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KTextEditor::View *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_View, &sipCpp))
        {
            KTextEditor::TemplateInterface2*sipRes = 0;

#line 163 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/view.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::TemplateInterface2*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 1311 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_View, sipName_templateInterface2, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its multiple inheritance hierarchy. */
extern "C" {static void *cast_KTextEditor_View(void *, const sipTypeDef *);}
static void *cast_KTextEditor_View(void *sipCppV, const sipTypeDef *targetType)
{
    KTextEditor::View *sipCpp = reinterpret_cast<KTextEditor::View *>(sipCppV);

    if (targetType == sipType_QPaintDevice)
        return static_cast<QPaintDevice *>(sipCpp);

    if (targetType == sipType_KXMLGUIClient)
        return static_cast<KXMLGUIClient *>(sipCpp);

    return sipCppV;
}


/* Call the instance's destructor. */
extern "C" {static void release_KTextEditor_View(void *, int);}
static void release_KTextEditor_View(void *sipCppV,int)
{
    KTextEditor::View *sipCpp = reinterpret_cast<KTextEditor::View *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTextEditor_View(sipSimpleWrapper *);}
static void dealloc_KTextEditor_View(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_View(sipGetAddress(sipSelf),0);
    }
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KTextEditor_View[] = {{755, 2, 0}, {355, 7, 1}};


static PyMethodDef methods_KTextEditor_View[] = {
    {SIP_MLNAME_CAST(sipName_annotationViewInterface), meth_KTextEditor_View_annotationViewInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_blockSelection), meth_KTextEditor_View_blockSelection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_codeCompletionInterface), meth_KTextEditor_View_codeCompletionInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_configInterface), meth_KTextEditor_View_configInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_contextMenu), meth_KTextEditor_View_contextMenu, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_coordinatesToCursorInterface), meth_KTextEditor_View_coordinatesToCursorInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_cursorPosition), meth_KTextEditor_View_cursorPosition, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_cursorPositionCoordinates), meth_KTextEditor_View_cursorPositionCoordinates, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_cursorPositionVirtual), meth_KTextEditor_View_cursorPositionVirtual, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_cursorToCoordinate), meth_KTextEditor_View_cursorToCoordinate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_defaultContextMenu), meth_KTextEditor_View_defaultContextMenu, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_document), meth_KTextEditor_View_document, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_insertText), meth_KTextEditor_View_insertText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isActiveView), meth_KTextEditor_View_isActiveView, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseTrackingEnabled), meth_KTextEditor_View_mouseTrackingEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeSelection), meth_KTextEditor_View_removeSelection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeSelectionText), meth_KTextEditor_View_removeSelectionText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selection), meth_KTextEditor_View_selection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectionRange), meth_KTextEditor_View_selectionRange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectionText), meth_KTextEditor_View_selectionText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sessionConfigInterface), meth_KTextEditor_View_sessionConfigInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setBlockSelection), meth_KTextEditor_View_setBlockSelection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setContextMenu), meth_KTextEditor_View_setContextMenu, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCursorPosition), meth_KTextEditor_View_setCursorPosition, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMouseTrackingEnabled), meth_KTextEditor_View_setMouseTrackingEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSelection), meth_KTextEditor_View_setSelection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_templateInterface), meth_KTextEditor_View_templateInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_templateInterface2), meth_KTextEditor_View_templateInterface2, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_textHintInterface), meth_KTextEditor_View_textHintInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_viewEditMode), meth_KTextEditor_View_viewEditMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_viewMode), meth_KTextEditor_View_viewMode, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KTextEditor_View[] = {
    {sipName_EditInsert, static_cast<int>(KTextEditor::View::EditInsert), 72},
    {sipName_EditOverwrite, static_cast<int>(KTextEditor::View::EditOverwrite), 72},
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_KTextEditor_View[] = {
    {"selectionChanged(KTextEditor::View*)", 0, 0, 0},
    {"mousePositionChanged(KTextEditor::View*,KTextEditor::Cursor)", 0, 0, 0},
    {"horizontalScrollPositionChanged(KTextEditor::View*)", 0, 0, 0},
    {"verticalScrollPositionChanged(KTextEditor::View*,KTextEditor::Cursor)", 0, 0, 0},
    {"cursorPositionChanged(KTextEditor::View*,KTextEditor::Cursor)", 0, 0, 0},
    {"contextMenuAboutToShow(KTextEditor::View*,QMenu*)", 0, 0, 0},
    {"textInserted(KTextEditor::View*,KTextEditor::Cursor,QString)", 0, 0, 0},
    {"informationMessage(KTextEditor::View*,QString)", 0, 0, 0},
    {"viewEditModeChanged(KTextEditor::View*,KTextEditor::View::EditMode)", 0, 0, 0},
    {"viewModeChanged(KTextEditor::View*)", 0, 0, 0},
    {"focusOut(KTextEditor::View*)", 0, 0, 0},
    {"focusIn(KTextEditor::View*)", 0, 0, 0},
    {0, 0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_ktexteditor_KTextEditor_View = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__View,
        {0}
    },
    {
        sipNameNr_View,
        {1, 255, 0},
        31, methods_KTextEditor_View,
        2, enummembers_KTextEditor_View,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KTextEditor_View,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_View,
    0,
    0,
    0,
    release_KTextEditor_View,
    cast_KTextEditor_View,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KTextEditor::View::staticMetaObject,
    0,
    signals_KTextEditor_View,
};

#line 30 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/variableinterface.sip"
#include <ktexteditor/variableinterface.h>
#line 1484 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"

#line 30 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/document.sip"
#include <ktexteditor/document.h>

#include <ktexteditor/modificationinterface.h>
#include <ktexteditor/markinterface.h>
#include <ktexteditor/searchinterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/smartinterface.h>
#include <ktexteditor/templateinterface.h>
#include <ktexteditor/variableinterface.h>
#include <ktexteditor/movinginterface.h>
#include <ktexteditor/annotationinterface.h>
#include <ktexteditor/highlightinterface.h>
#include <ktexteditor/configinterface.h>
#include <ktexteditor/modeinterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/recoveryinterface.h>

#line 1504 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 1507 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"


class sipKTextEditor_VariableInterface : public KTextEditor::VariableInterface
{
public:
    sipKTextEditor_VariableInterface();
    sipKTextEditor_VariableInterface(const KTextEditor::VariableInterface&);
    virtual ~sipKTextEditor_VariableInterface();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void variableChanged(KTextEditor::Document*,const QString&,const QString&);
    QString variable(const QString&) const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[2];
};

sipKTextEditor_VariableInterface::sipKTextEditor_VariableInterface(): KTextEditor::VariableInterface(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_VariableInterface::sipKTextEditor_VariableInterface(const KTextEditor::VariableInterface& a0): KTextEditor::VariableInterface(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

void sipKTextEditor_VariableInterface::variableChanged(KTextEditor::Document*a0,const QString& a1,const QString& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_VariableInterface,sipName_variableChanged);

    if (!sipMeth)
        return;

    extern void sipVH_ktexteditor_11(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KTextEditor::Document*,const QString&,const QString&);

    sipVH_ktexteditor_11(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

QString sipKTextEditor_VariableInterface::variable(const QString& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,sipName_VariableInterface,sipName_variable);

    if (!sipMeth)
        return QString();

    typedef QString (*sipVH_QtCore_0)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&);

    return ((sipVH_QtCore_0)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[0]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}


extern "C" {static PyObject *meth_KTextEditor_VariableInterface_variable(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_VariableInterface_variable(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const QString* a0;
        int a0State = 0;
        const KTextEditor::VariableInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTextEditor_VariableInterface, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QString*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_VariableInterface, sipName_variable);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->variable(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_VariableInterface, sipName_variable, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_VariableInterface_variableChanged(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_VariableInterface_variableChanged(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        KTextEditor::Document* a0;
        const QString* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;
        KTextEditor::VariableInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J1J1", &sipSelf, sipType_KTextEditor_VariableInterface, &sipCpp, sipType_KTextEditor_Document, &a0, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_VariableInterface, sipName_variableChanged);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->variableChanged(a0,*a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_VariableInterface, sipName_variableChanged, NULL);

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTextEditor_VariableInterface *>(sipCppV);
    else
        delete reinterpret_cast<KTextEditor::VariableInterface *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTextEditor_VariableInterface(sipSimpleWrapper *);}
static void dealloc_KTextEditor_VariableInterface(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTextEditor_VariableInterface *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_VariableInterface(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_KTextEditor_VariableInterface(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KTextEditor_VariableInterface(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKTextEditor_VariableInterface *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_VariableInterface();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const KTextEditor::VariableInterface* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KTextEditor_VariableInterface, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_VariableInterface(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KTextEditor_VariableInterface[] = {
    {SIP_MLNAME_CAST(sipName_variable), meth_KTextEditor_VariableInterface_variable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_variableChanged), meth_KTextEditor_VariableInterface_variableChanged, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_ktexteditor_KTextEditor_VariableInterface = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__VariableInterface,
        {0}
    },
    {
        sipNameNr_VariableInterface,
        {1, 255, 0},
        2, methods_KTextEditor_VariableInterface,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KTextEditor_VariableInterface,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_VariableInterface,
    0,
    0,
    0,
    release_KTextEditor_VariableInterface,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 30 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/texthintinterface.sip"
#include <ktexteditor/texthintinterface.h>
#line 1784 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"

#line 30 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/cursor.sip"
#include <ktexteditor/cursor.h>
#line 1788 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 1791 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"


class sipKTextEditor_TextHintInterface : public KTextEditor::TextHintInterface
{
public:
    sipKTextEditor_TextHintInterface();
    sipKTextEditor_TextHintInterface(const KTextEditor::TextHintInterface&);
    virtual ~sipKTextEditor_TextHintInterface();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void needTextHint(const KTextEditor::Cursor&,QString&);
    void disableTextHints();
    void enableTextHints(int);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[3];
};

sipKTextEditor_TextHintInterface::sipKTextEditor_TextHintInterface(): KTextEditor::TextHintInterface(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_TextHintInterface::sipKTextEditor_TextHintInterface(const KTextEditor::TextHintInterface& a0): KTextEditor::TextHintInterface(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

void sipKTextEditor_TextHintInterface::needTextHint(const KTextEditor::Cursor& a0,QString& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_TextHintInterface,sipName_needTextHint);

    if (!sipMeth)
        return;

    extern void sipVH_ktexteditor_12(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KTextEditor::Cursor&,QString&);

    sipVH_ktexteditor_12(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipKTextEditor_TextHintInterface::disableTextHints()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,sipName_TextHintInterface,sipName_disableTextHints);

    if (!sipMeth)
        return;

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKTextEditor_TextHintInterface::enableTextHints(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,sipName_TextHintInterface,sipName_enableTextHints);

    if (!sipMeth)
        return;

    typedef void (*sipVH_QtCore_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    ((sipVH_QtCore_4)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[4]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}


extern "C" {static PyObject *meth_KTextEditor_TextHintInterface_enableTextHints(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_TextHintInterface_enableTextHints(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        int a0;
        KTextEditor::TextHintInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KTextEditor_TextHintInterface, &sipCpp, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_TextHintInterface, sipName_enableTextHints);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->enableTextHints(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TextHintInterface, sipName_enableTextHints, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_TextHintInterface_disableTextHints(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_TextHintInterface_disableTextHints(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        KTextEditor::TextHintInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_TextHintInterface, &sipCpp))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_TextHintInterface, sipName_disableTextHints);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->disableTextHints();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TextHintInterface, sipName_disableTextHints, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_TextHintInterface_needTextHint(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_TextHintInterface_needTextHint(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const KTextEditor::Cursor* a0;
        QString* a1;
        int a1State = 0;
        KTextEditor::TextHintInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1", &sipSelf, sipType_KTextEditor_TextHintInterface, &sipCpp, sipType_KTextEditor_Cursor, &a0, sipType_QString,&a1, &a1State))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_TextHintInterface, sipName_needTextHint);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->needTextHint(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(a1,sipType_QString,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TextHintInterface, sipName_needTextHint, NULL);

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTextEditor_TextHintInterface *>(sipCppV);
    else
        delete reinterpret_cast<KTextEditor::TextHintInterface *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTextEditor_TextHintInterface(sipSimpleWrapper *);}
static void dealloc_KTextEditor_TextHintInterface(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTextEditor_TextHintInterface *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_TextHintInterface(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_KTextEditor_TextHintInterface(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KTextEditor_TextHintInterface(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKTextEditor_TextHintInterface *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_TextHintInterface();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const KTextEditor::TextHintInterface* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KTextEditor_TextHintInterface, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_TextHintInterface(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KTextEditor_TextHintInterface[] = {
    {SIP_MLNAME_CAST(sipName_disableTextHints), meth_KTextEditor_TextHintInterface_disableTextHints, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_enableTextHints), meth_KTextEditor_TextHintInterface_enableTextHints, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_needTextHint), meth_KTextEditor_TextHintInterface_needTextHint, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_ktexteditor_KTextEditor_TextHintInterface = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__TextHintInterface,
        {0}
    },
    {
        sipNameNr_TextHintInterface,
        {1, 255, 0},
        3, methods_KTextEditor_TextHintInterface,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KTextEditor_TextHintInterface,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_TextHintInterface,
    0,
    0,
    0,
    release_KTextEditor_TextHintInterface,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 48 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/templateinterface2.sip"
#include <ktexteditor/templateinterface2.h>
#line 2112 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/templateinterface2.sip"
#include <ktexteditor/templateinterface2.h>
#line 2116 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 2119 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 2122 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"


class sipKTextEditor_TemplateScriptRegistrar : public KTextEditor::TemplateScriptRegistrar
{
public:
    sipKTextEditor_TemplateScriptRegistrar();
    sipKTextEditor_TemplateScriptRegistrar(const KTextEditor::TemplateScriptRegistrar&);
    virtual ~sipKTextEditor_TemplateScriptRegistrar();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void unregisterTemplateScript(KTextEditor::TemplateScript*);
    KTextEditor::TemplateScript* registerTemplateScript(QObject*,const QString&);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[2];
};

sipKTextEditor_TemplateScriptRegistrar::sipKTextEditor_TemplateScriptRegistrar(): KTextEditor::TemplateScriptRegistrar(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_TemplateScriptRegistrar::sipKTextEditor_TemplateScriptRegistrar(const KTextEditor::TemplateScriptRegistrar& a0): KTextEditor::TemplateScriptRegistrar(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

void sipKTextEditor_TemplateScriptRegistrar::unregisterTemplateScript(KTextEditor::TemplateScript*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_TemplateScriptRegistrar,sipName_unregisterTemplateScript);

    if (!sipMeth)
        return;

    extern void sipVH_ktexteditor_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KTextEditor::TemplateScript*);

    sipVH_ktexteditor_13(sipGILState, 0, sipPySelf, sipMeth, a0);
}

KTextEditor::TemplateScript* sipKTextEditor_TemplateScriptRegistrar::registerTemplateScript(QObject*a0,const QString& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,sipName_TemplateScriptRegistrar,sipName_registerTemplateScript);

    if (!sipMeth)
        return 0;

    extern KTextEditor::TemplateScript* sipVH_ktexteditor_14(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,const QString&);

    return sipVH_ktexteditor_14(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}


extern "C" {static PyObject *meth_KTextEditor_TemplateScriptRegistrar_registerTemplateScript(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_TemplateScriptRegistrar_registerTemplateScript(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        QObject* a0;
        const QString* a1;
        int a1State = 0;
        KTextEditor::TemplateScriptRegistrar *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J1", &sipSelf, sipType_KTextEditor_TemplateScriptRegistrar, &sipCpp, sipType_QObject, &a0, sipType_QString,&a1, &a1State))
        {
            KTextEditor::TemplateScript*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_TemplateScriptRegistrar, sipName_registerTemplateScript);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->registerTemplateScript(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TemplateScriptRegistrar, sipName_registerTemplateScript, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_TemplateScriptRegistrar_unregisterTemplateScript(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_TemplateScriptRegistrar_unregisterTemplateScript(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        KTextEditor::TemplateScript* a0;
        KTextEditor::TemplateScriptRegistrar *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_TemplateScriptRegistrar, &sipCpp, sipType_KTextEditor_TemplateScript, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_TemplateScriptRegistrar, sipName_unregisterTemplateScript);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->unregisterTemplateScript(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TemplateScriptRegistrar, sipName_unregisterTemplateScript, NULL);

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTextEditor_TemplateScriptRegistrar *>(sipCppV);
    else
        delete reinterpret_cast<KTextEditor::TemplateScriptRegistrar *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTextEditor_TemplateScriptRegistrar(sipSimpleWrapper *);}
static void dealloc_KTextEditor_TemplateScriptRegistrar(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTextEditor_TemplateScriptRegistrar *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_TemplateScriptRegistrar(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_KTextEditor_TemplateScriptRegistrar(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KTextEditor_TemplateScriptRegistrar(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKTextEditor_TemplateScriptRegistrar *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_TemplateScriptRegistrar();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const KTextEditor::TemplateScriptRegistrar* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KTextEditor_TemplateScriptRegistrar, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_TemplateScriptRegistrar(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KTextEditor_TemplateScriptRegistrar[] = {
    {SIP_MLNAME_CAST(sipName_registerTemplateScript), meth_KTextEditor_TemplateScriptRegistrar_registerTemplateScript, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_unregisterTemplateScript), meth_KTextEditor_TemplateScriptRegistrar_unregisterTemplateScript, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_ktexteditor_KTextEditor_TemplateScriptRegistrar = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__TemplateScriptRegistrar,
        {0}
    },
    {
        sipNameNr_TemplateScriptRegistrar,
        {1, 255, 0},
        2, methods_KTextEditor_TemplateScriptRegistrar,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KTextEditor_TemplateScriptRegistrar,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_TemplateScriptRegistrar,
    0,
    0,
    0,
    release_KTextEditor_TemplateScriptRegistrar,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 34 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/templateinterface2.sip"
#include <ktexteditor/templateinterface2.h>
#line 2394 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"

#line 30 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/cursor.sip"
#include <ktexteditor/cursor.h>
#line 2398 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 2401 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 2404 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 72 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 2407 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/templateinterface2.sip"
#include <ktexteditor/templateinterface2.h>
#line 2410 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 2413 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"


class sipKTextEditor_TemplateInterface2 : public KTextEditor::TemplateInterface2
{
public:
    sipKTextEditor_TemplateInterface2();
    sipKTextEditor_TemplateInterface2(const KTextEditor::TemplateInterface2&);
    virtual ~sipKTextEditor_TemplateInterface2();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool insertTemplateTextImplementation(const KTextEditor::Cursor&,const QString&,const QMap<QString,QString>&);
    bool insertTemplateTextImplementation(const KTextEditor::Cursor&,const QString&,const QMap<QString,QString>&,KTextEditor::TemplateScript*);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[2];
};

sipKTextEditor_TemplateInterface2::sipKTextEditor_TemplateInterface2(): KTextEditor::TemplateInterface2(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_TemplateInterface2::sipKTextEditor_TemplateInterface2(const KTextEditor::TemplateInterface2& a0): KTextEditor::TemplateInterface2(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

bool sipKTextEditor_TemplateInterface2::insertTemplateTextImplementation(const KTextEditor::Cursor& a0,const QString& a1,const QMap<QString,QString>& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_TemplateInterface2,sipName_insertTemplateTextImplementation);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KTextEditor::Cursor&,const QString&,const QMap<QString,QString>&);

    return sipVH_ktexteditor_15(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

bool sipKTextEditor_TemplateInterface2::insertTemplateTextImplementation(const KTextEditor::Cursor& a0,const QString& a1,const QMap<QString,QString>& a2,KTextEditor::TemplateScript*a3)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,sipName_TemplateInterface2,sipName_insertTemplateTextImplementation);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_16(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KTextEditor::Cursor&,const QString&,const QMap<QString,QString>&,KTextEditor::TemplateScript*);

    return sipVH_ktexteditor_16(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3);
}


extern "C" {static PyObject *meth_KTextEditor_TemplateInterface2_insertTemplateText(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_TemplateInterface2_insertTemplateText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KTextEditor::Cursor* a0;
        const QString* a1;
        int a1State = 0;
        const QMap<QString,QString>* a2;
        int a2State = 0;
        KTextEditor::TemplateScript* a3;
        KTextEditor::TemplateInterface2 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1J1J8", &sipSelf, sipType_KTextEditor_TemplateInterface2, &sipCpp, sipType_KTextEditor_Cursor, &a0, sipType_QString,&a1, &a1State, sipType_QMap_0100QString_0100QString,&a2, &a2State, sipType_KTextEditor_TemplateScript, &a3))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->insertTemplateText(*a0,*a1,*a2,a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QMap<QString,QString> *>(a2),sipType_QMap_0100QString_0100QString,a2State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TemplateInterface2, sipName_insertTemplateText, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_TemplateInterface2_insertTemplateTextImplementation(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_TemplateInterface2_insertTemplateTextImplementation(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const KTextEditor::Cursor* a0;
        const QString* a1;
        int a1State = 0;
        const QMap<QString,QString>* a2;
        int a2State = 0;
        KTextEditor::TemplateScript* a3;
        KTextEditor::TemplateInterface2 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ9J1J1J8", &sipSelf, sipType_KTextEditor_TemplateInterface2, &sipCpp, sipType_KTextEditor_Cursor, &a0, sipType_QString,&a1, &a1State, sipType_QMap_0100QString_0100QString,&a2, &a2State, sipType_KTextEditor_TemplateScript, &a3))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_TemplateInterface2, sipName_insertTemplateTextImplementation);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->insertTemplateTextImplementation(*a0,*a1,*a2,a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QMap<QString,QString> *>(a2),sipType_QMap_0100QString_0100QString,a2State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const KTextEditor::Cursor* a0;
        const QString* a1;
        int a1State = 0;
        const QMap<QString,QString>* a2;
        int a2State = 0;
        KTextEditor::TemplateInterface2 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ9J1J1", &sipSelf, sipType_KTextEditor_TemplateInterface2, &sipCpp, sipType_KTextEditor_Cursor, &a0, sipType_QString,&a1, &a1State, sipType_QMap_0100QString_0100QString,&a2, &a2State))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_TemplateInterface2, sipName_insertTemplateTextImplementation);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->insertTemplateTextImplementation(*a0,*a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QMap<QString,QString> *>(a2),sipType_QMap_0100QString_0100QString,a2State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TemplateInterface2, sipName_insertTemplateTextImplementation, NULL);

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTextEditor_TemplateInterface2 *>(sipCppV);
    else
        delete reinterpret_cast<KTextEditor::TemplateInterface2 *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTextEditor_TemplateInterface2(sipSimpleWrapper *);}
static void dealloc_KTextEditor_TemplateInterface2(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTextEditor_TemplateInterface2 *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_TemplateInterface2(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_KTextEditor_TemplateInterface2(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KTextEditor_TemplateInterface2(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKTextEditor_TemplateInterface2 *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_TemplateInterface2();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const KTextEditor::TemplateInterface2* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KTextEditor_TemplateInterface2, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_TemplateInterface2(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KTextEditor_TemplateInterface2[] = {{65, 255, 1}};


static PyMethodDef methods_KTextEditor_TemplateInterface2[] = {
    {SIP_MLNAME_CAST(sipName_insertTemplateText), meth_KTextEditor_TemplateInterface2_insertTemplateText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_insertTemplateTextImplementation), meth_KTextEditor_TemplateInterface2_insertTemplateTextImplementation, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_ktexteditor_KTextEditor_TemplateInterface2 = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__TemplateInterface2,
        {0}
    },
    {
        sipNameNr_TemplateInterface2,
        {1, 255, 0},
        2, methods_KTextEditor_TemplateInterface2,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KTextEditor_TemplateInterface2,
    0,
    init_type_KTextEditor_TemplateInterface2,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_TemplateInterface2,
    0,
    0,
    0,
    release_KTextEditor_TemplateInterface2,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/templateinterface2.sip"
#include <ktexteditor/templateinterface2.h>
#line 2722 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"



class sipKTextEditor_TemplateScript : public KTextEditor::TemplateScript
{
public:
    sipKTextEditor_TemplateScript();
    sipKTextEditor_TemplateScript(const KTextEditor::TemplateScript&);
    ~sipKTextEditor_TemplateScript();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKTextEditor_TemplateScript(const sipKTextEditor_TemplateScript &);
    sipKTextEditor_TemplateScript &operator = (const sipKTextEditor_TemplateScript &);
};

sipKTextEditor_TemplateScript::sipKTextEditor_TemplateScript(): KTextEditor::TemplateScript(), sipPySelf(0)
{
}

sipKTextEditor_TemplateScript::sipKTextEditor_TemplateScript(const KTextEditor::TemplateScript& a0): KTextEditor::TemplateScript(a0), sipPySelf(0)
{
}

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


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTextEditor_TemplateScript *>(sipCppV);
    else
        delete reinterpret_cast<KTextEditor::TemplateScript *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KTextEditor_TemplateScript(void *, SIP_SSIZE_T, const void *);}
static void assign_KTextEditor_TemplateScript(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KTextEditor::TemplateScript *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KTextEditor::TemplateScript *>(sipSrc);
}


extern "C" {static void *array_KTextEditor_TemplateScript(SIP_SSIZE_T);}
static void *array_KTextEditor_TemplateScript(SIP_SSIZE_T sipNrElem)
{
    return new KTextEditor::TemplateScript[sipNrElem];
}


extern "C" {static void *copy_KTextEditor_TemplateScript(const void *, SIP_SSIZE_T);}
static void *copy_KTextEditor_TemplateScript(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KTextEditor::TemplateScript(reinterpret_cast<const KTextEditor::TemplateScript *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_KTextEditor_TemplateScript(sipSimpleWrapper *);}
static void dealloc_KTextEditor_TemplateScript(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTextEditor_TemplateScript *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_TemplateScript(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_KTextEditor_TemplateScript(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KTextEditor_TemplateScript(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKTextEditor_TemplateScript *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_TemplateScript();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const KTextEditor::TemplateScript* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KTextEditor_TemplateScript, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_TemplateScript(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


pyqt4ClassTypeDef sipTypeDef_ktexteditor_KTextEditor_TemplateScript = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__TemplateScript,
        {0}
    },
    {
        sipNameNr_TemplateScript,
        {1, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KTextEditor_TemplateScript,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_TemplateScript,
    assign_KTextEditor_TemplateScript,
    array_KTextEditor_TemplateScript,
    copy_KTextEditor_TemplateScript,
    release_KTextEditor_TemplateScript,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 30 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/templateinterface.sip"
#include <ktexteditor/templateinterface.h>
#line 2896 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"

#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 2900 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 2903 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 72 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 2906 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 30 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/cursor.sip"
#include <ktexteditor/cursor.h>
#line 2909 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 2912 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"


class sipKTextEditor_TemplateInterface : public KTextEditor::TemplateInterface
{
public:
    sipKTextEditor_TemplateInterface();
    sipKTextEditor_TemplateInterface(const KTextEditor::TemplateInterface&);
    virtual ~sipKTextEditor_TemplateInterface();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool insertTemplateTextImplementation(const KTextEditor::Cursor&,const QString&,const QMap<QString,QString>&);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[1];
};

sipKTextEditor_TemplateInterface::sipKTextEditor_TemplateInterface(): KTextEditor::TemplateInterface(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_TemplateInterface::sipKTextEditor_TemplateInterface(const KTextEditor::TemplateInterface& a0): KTextEditor::TemplateInterface(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

bool sipKTextEditor_TemplateInterface::insertTemplateTextImplementation(const KTextEditor::Cursor& a0,const QString& a1,const QMap<QString,QString>& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_TemplateInterface,sipName_insertTemplateTextImplementation);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KTextEditor::Cursor&,const QString&,const QMap<QString,QString>&);

    return sipVH_ktexteditor_15(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}


extern "C" {static PyObject *meth_KTextEditor_TemplateInterface_expandMacros(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_TemplateInterface_expandMacros(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QMap<QString,QString>* a0;
        int a0State = 0;
        QWidget* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J8", sipType_QMap_0100QString_0100QString,&a0, &a0State, sipType_QWidget, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KTextEditor::TemplateInterface::expandMacros(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QMap_0100QString_0100QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TemplateInterface, sipName_expandMacros, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_TemplateInterface_insertTemplateText(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_TemplateInterface_insertTemplateText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KTextEditor::Cursor* a0;
        const QString* a1;
        int a1State = 0;
        const QMap<QString,QString>* a2;
        int a2State = 0;
        KTextEditor::TemplateInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1J1", &sipSelf, sipType_KTextEditor_TemplateInterface, &sipCpp, sipType_KTextEditor_Cursor, &a0, sipType_QString,&a1, &a1State, sipType_QMap_0100QString_0100QString,&a2, &a2State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->insertTemplateText(*a0,*a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QMap<QString,QString> *>(a2),sipType_QMap_0100QString_0100QString,a2State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TemplateInterface, sipName_insertTemplateText, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_TemplateInterface_insertTemplateTextImplementation(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_TemplateInterface_insertTemplateTextImplementation(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const KTextEditor::Cursor* a0;
        const QString* a1;
        int a1State = 0;
        const QMap<QString,QString>* a2;
        int a2State = 0;
        KTextEditor::TemplateInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ9J1J1", &sipSelf, sipType_KTextEditor_TemplateInterface, &sipCpp, sipType_KTextEditor_Cursor, &a0, sipType_QString,&a1, &a1State, sipType_QMap_0100QString_0100QString,&a2, &a2State))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_TemplateInterface, sipName_insertTemplateTextImplementation);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->insertTemplateTextImplementation(*a0,*a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QMap<QString,QString> *>(a2),sipType_QMap_0100QString_0100QString,a2State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TemplateInterface, sipName_insertTemplateTextImplementation, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_TemplateInterface_KTE_INTERNAL_setupIntialValues(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_TemplateInterface_KTE_INTERNAL_setupIntialValues(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QMap<QString,QString>* a1;
        int a1State = 0;
        KTextEditor::TemplateInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1J0", &sipSelf, sipType_KTextEditor_TemplateInterface, &sipCpp, sipType_QString,&a0, &a0State, sipType_QMap_0100QString_0100QString,&a1, &a1State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KTE_INTERNAL_setupIntialValues(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a1,sipType_QMap_0100QString_0100QString,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TemplateInterface, sipName_KTE_INTERNAL_setupIntialValues, NULL);

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTextEditor_TemplateInterface *>(sipCppV);
    else
        delete reinterpret_cast<KTextEditor::TemplateInterface *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTextEditor_TemplateInterface(sipSimpleWrapper *);}
static void dealloc_KTextEditor_TemplateInterface(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTextEditor_TemplateInterface *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_TemplateInterface(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_KTextEditor_TemplateInterface(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KTextEditor_TemplateInterface(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKTextEditor_TemplateInterface *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_TemplateInterface();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const KTextEditor::TemplateInterface* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KTextEditor_TemplateInterface, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_TemplateInterface(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KTextEditor_TemplateInterface[] = {
    {SIP_MLNAME_CAST(sipName_KTE_INTERNAL_setupIntialValues), meth_KTextEditor_TemplateInterface_KTE_INTERNAL_setupIntialValues, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_expandMacros), meth_KTextEditor_TemplateInterface_expandMacros, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_insertTemplateText), meth_KTextEditor_TemplateInterface_insertTemplateText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_insertTemplateTextImplementation), meth_KTextEditor_TemplateInterface_insertTemplateTextImplementation, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_ktexteditor_KTextEditor_TemplateInterface = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__TemplateInterface,
        {0}
    },
    {
        sipNameNr_TemplateInterface,
        {1, 255, 0},
        4, methods_KTextEditor_TemplateInterface,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KTextEditor_TemplateInterface,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_TemplateInterface,
    0,
    0,
    0,
    release_KTextEditor_TemplateInterface,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 47 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/sessionconfiginterface.sip"
#include <ktexteditor/sessionconfiginterface.h>
#line 3236 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"

#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kconfiggroup.sip"
#include <kconfiggroup.h>
#line 3240 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart1.cpp"


class sipKTextEditor_ParameterizedSessionConfigInterface : public KTextEditor::ParameterizedSessionConfigInterface
{
public:
    sipKTextEditor_ParameterizedSessionConfigInterface();
    sipKTextEditor_ParameterizedSessionConfigInterface(const KTextEditor::ParameterizedSessionConfigInterface&);
    virtual ~sipKTextEditor_ParameterizedSessionConfigInterface();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void writeParameterizedSessionConfig(KConfigGroup&,unsigned long);
    void readParameterizedSessionConfig(const KConfigGroup&,unsigned long);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[2];
};

sipKTextEditor_ParameterizedSessionConfigInterface::sipKTextEditor_ParameterizedSessionConfigInterface(): KTextEditor::ParameterizedSessionConfigInterface(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_ParameterizedSessionConfigInterface::sipKTextEditor_ParameterizedSessionConfigInterface(const KTextEditor::ParameterizedSessionConfigInterface& a0): KTextEditor::ParameterizedSessionConfigInterface(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

void sipKTextEditor_ParameterizedSessionConfigInterface::writeParameterizedSessionConfig(KConfigGroup& a0,unsigned long a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_ParameterizedSessionConfigInterface,sipName_writeParameterizedSessionConfig);

    if (!sipMeth)
        return;

    extern void sipVH_ktexteditor_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KConfigGroup&,unsigned long);

    sipVH_ktexteditor_17(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipKTextEditor_ParameterizedSessionConfigInterface::readParameterizedSessionConfig(const KConfigGroup& a0,unsigned long a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,sipName_ParameterizedSessionConfigInterface,sipName_readParameterizedSessionConfig);

    if (!sipMeth)
        return;

    extern void sipVH_ktexteditor_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KConfigGroup&,unsigned long);

    sipVH_ktexteditor_18(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}


extern "C" {static PyObject *meth_KTextEditor_ParameterizedSessionConfigInterface_readParameterizedSessionConfig(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ParameterizedSessionConfigInterface_readParameterizedSessionConfig(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const KConfigGroup* a0;
        unsigned long a1;
        KTextEditor::ParameterizedSessionConfigInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9m", &sipSelf, sipType_KTextEditor_ParameterizedSessionConfigInterface, &sipCpp, sipType_KConfigGroup, &a0, &a1))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_ParameterizedSessionConfigInterface, sipName_readParameterizedSessionConfig);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->readParameterizedSessionConfig(*a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ParameterizedSessionConfigInterface, sipName_readParameterizedSessionConfig, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ParameterizedSessionConfigInterface_writeParameterizedSessionConfig(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ParameterizedSessionConfigInterface_writeParameterizedSessionConfig(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        KConfigGroup* a0;
        unsigned long a1;
        KTextEditor::ParameterizedSessionConfigInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9m", &sipSelf, sipType_KTextEditor_ParameterizedSessionConfigInterface, &sipCpp, sipType_KConfigGroup, &a0, &a1))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_ParameterizedSessionConfigInterface, sipName_writeParameterizedSessionConfig);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->writeParameterizedSessionConfig(*a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ParameterizedSessionConfigInterface, sipName_writeParameterizedSessionConfig, NULL);

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTextEditor_ParameterizedSessionConfigInterface *>(sipCppV);
    else
        delete reinterpret_cast<KTextEditor::ParameterizedSessionConfigInterface *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTextEditor_ParameterizedSessionConfigInterface(sipSimpleWrapper *);}
static void dealloc_KTextEditor_ParameterizedSessionConfigInterface(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTextEditor_ParameterizedSessionConfigInterface *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_ParameterizedSessionConfigInterface(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_KTextEditor_ParameterizedSessionConfigInterface(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KTextEditor_ParameterizedSessionConfigInterface(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKTextEditor_ParameterizedSessionConfigInterface *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_ParameterizedSessionConfigInterface();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const KTextEditor::ParameterizedSessionConfigInterface* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KTextEditor_ParameterizedSessionConfigInterface, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_ParameterizedSessionConfigInterface(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KTextEditor_ParameterizedSessionConfigInterface[] = {
    {SIP_MLNAME_CAST(sipName_readParameterizedSessionConfig), meth_KTextEditor_ParameterizedSessionConfigInterface_readParameterizedSessionConfig, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_writeParameterizedSessionConfig), meth_KTextEditor_ParameterizedSessionConfigInterface_writeParameterizedSessionConfig, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KTextEditor_ParameterizedSessionConfigInterface[] = {
    {sipName_SkipEncoding, static_cast<int>(KTextEditor::ParameterizedSessionConfigInterface::SkipEncoding), 55},
    {sipName_SkipFolding, static_cast<int>(KTextEditor::ParameterizedSessionConfigInterface::SkipFolding), 55},
    {sipName_SkipHighlighting, static_cast<int>(KTextEditor::ParameterizedSessionConfigInterface::SkipHighlighting), 55},
    {sipName_SkipMode, static_cast<int>(KTextEditor::ParameterizedSessionConfigInterface::SkipMode), 55},
    {sipName_SkipNone, static_cast<int>(KTextEditor::ParameterizedSessionConfigInterface::SkipNone), 55},
    {sipName_SkipUrl, static_cast<int>(KTextEditor::ParameterizedSessionConfigInterface::SkipUrl), 55},
};


pyqt4ClassTypeDef sipTypeDef_ktexteditor_KTextEditor_ParameterizedSessionConfigInterface = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__ParameterizedSessionConfigInterface,
        {0}
    },
    {
        sipNameNr_ParameterizedSessionConfigInterface,
        {1, 255, 0},
        2, methods_KTextEditor_ParameterizedSessionConfigInterface,
        6, enummembers_KTextEditor_ParameterizedSessionConfigInterface,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KTextEditor_ParameterizedSessionConfigInterface,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_ParameterizedSessionConfigInterface,
    0,
    0,
    0,
    release_KTextEditor_ParameterizedSessionConfigInterface,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};
