From 4e9aded61e5d5f055fa6dbc7cd33d785d50f6eff Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 6 Nov 2011 15:56:17 -0600 Subject: Actually move the kde files that were renamed in the last commit --- sip/kdecore/bytearray.sip | 945 ------------------------ sip/kdecore/fixx11h.sip | 30 - sip/kdecore/kaboutdata.sip | 301 -------- sip/kdecore/kaccel.sip | 240 ------ sip/kdecore/kaccelaction.sip | 122 --- sip/kdecore/kaccelbase.sip | 102 --- sip/kdecore/kallocator.sip | 48 -- sip/kdecore/kapplication.sip | 449 ----------- sip/kdecore/kasyncio.sip | 52 -- sip/kdecore/kaudioplayer.sip | 42 -- sip/kdecore/kbufferedio.sip | 73 -- sip/kdecore/kcalendarsystem.sip | 78 -- sip/kdecore/kcalendarsystemfactory.sip | 44 -- sip/kdecore/kcatalogue.sip | 64 -- sip/kdecore/kcharsets.sip | 62 -- sip/kdecore/kclipboard.sip | 52 -- sip/kdecore/kcmdlineargs.sip | 264 ------- sip/kdecore/kcompletion.sip | 227 ------ sip/kdecore/kconfig.sip | 238 ------ sip/kdecore/kconfigbackend.sip | 93 --- sip/kdecore/kconfigbase.sip | 333 --------- sip/kdecore/kconfigdata.sip | 172 ----- sip/kdecore/kconfigdialogmanager.sip | 64 -- sip/kdecore/kconfigskeleton.sip | 1146 ----------------------------- sip/kdecore/kcrash.sip | 51 -- sip/kdecore/kdcoppropertyproxy.sip | 44 -- sip/kdecore/kdebug.sip | 67 -- sip/kdecore/kdecore-kde310.diff | 1 - sip/kdecore/kdecore-kde311.diff | 1 - sip/kdecore/kdecore-kde312.diff | 1 - sip/kdecore/kdecore-kde313.diff | 1 - sip/kdecore/kdecore-kde314.diff | 3 - sip/kdecore/kdecore-kde315.diff | 3 - sip/kdecore/kdecore-kde320.diff | 16 - sip/kdecore/kdecore-kde321.diff | 12 - sip/kdecore/kdecore-kde322.diff | 13 - sip/kdecore/kdecore-kde323.diff | 13 - sip/kdecore/kdecore-kde330.diff | 15 - sip/kdecore/kdecore-kde331.diff | 15 - sip/kdecore/kdecore-kde332.diff | 15 - sip/kdecore/kdecore-kde340.diff | 15 - sip/kdecore/kdecore-kde341.diff | 15 - sip/kdecore/kdecore-kde342.diff | 15 - sip/kdecore/kdecore-kde343.diff | 15 - sip/kdecore/kdecore-kde350.diff | 16 - sip/kdecore/kdecore-kde351.diff | 16 - sip/kdecore/kdecore-kde352.diff | 16 - sip/kdecore/kdecore-kde353.diff | 16 - sip/kdecore/kdecoremod.sip.in | 99 --- sip/kdecore/kdesktopfile.sip | 85 --- sip/kdecore/kdesktopwidget.sip | 45 -- sip/kdecore/kdestyle.sip | 108 --- sip/kdecore/kdeversion.sip | 45 -- sip/kdecore/kglobal.sip | 65 -- sip/kdecore/kglobalaccel.sip | 87 --- sip/kdecore/kglobalsettings.sip | 157 ---- sip/kdecore/kiconeffect.sip | 102 --- sip/kdecore/kiconloader.sip | 97 --- sip/kdecore/kicontheme.sip | 249 ------- sip/kdecore/kidna.sip | 40 - sip/kdecore/kinstance.sip | 75 -- sip/kdecore/kipc.sip | 98 --- sip/kdecore/kkeynative.sip | 90 --- sip/kdecore/kkeyserver_x11.sip | 187 ----- sip/kdecore/klibloader.sip | 103 --- sip/kdecore/klocale.sip | 243 ------ sip/kdecore/klockfile.sip | 112 --- sip/kdecore/kmacroexpander.sip | 384 ---------- sip/kdecore/kmanagerselection.sip | 91 --- sip/kdecore/kmdcodec.sip | 156 ---- sip/kdecore/kmimesourcefactory.sip | 42 -- sip/kdecore/kmountpoint.sip | 186 ----- sip/kdecore/kmultipledrag.sip | 58 -- sip/kdecore/knotifyclient.sip | 139 ---- sip/kdecore/kpalette.sip | 63 -- sip/kdecore/kpixmapprovider.sip | 41 -- sip/kdecore/kprocctrl.sip | 95 --- sip/kdecore/kprocess.sip | 272 ------- sip/kdecore/kprocio.sip | 67 -- sip/kdecore/kpty.sip | 52 -- sip/kdecore/krandomsequence.sip | 45 -- sip/kdecore/kregexp.sip | 44 -- sip/kdecore/krfcdate.sip | 42 -- sip/kdecore/krootprop.sip | 52 -- sip/kdecore/ksavefile.sip | 52 -- sip/kdecore/ksharedptr.sip | 45 -- sip/kdecore/kshell.sip | 77 -- sip/kdecore/kshortcut.sip | 261 ------- sip/kdecore/kshortcutlist.sip | 133 ---- sip/kdecore/ksimpleconfig.sip | 50 -- sip/kdecore/ksock.sip | 97 --- sip/kdecore/kstartupinfo.sip | 280 ------- sip/kdecore/kstaticdeleter.sip | 38 - sip/kdecore/kstdaccel.sip | 441 ----------- sip/kdecore/kstddirs.sip | 69 -- sip/kdecore/kstringhandler.sip | 89 --- sip/kdecore/ktempdir.sip | 58 -- sip/kdecore/ktempfile.sip | 58 -- sip/kdecore/ktimezones.sip | 272 ------- sip/kdecore/kuniqueapplication.sip | 68 -- sip/kdecore/kurl.sip | 408 ---------- sip/kdecore/kurldrag.sip | 76 -- sip/kdecore/kuser.sip | 74 -- sip/kdecore/kvmallocator.sip | 42 -- sip/kdecore/kwin.sip | 188 ----- sip/kdecore/kwinmodule.sip | 158 ---- sip/kdecore/kxmessages.sip | 55 -- sip/kdecore/netwm.sip | 628 ---------------- sip/kdecore/netwm_def.sip | 535 -------------- sip/kdefx/kcpuinfo.sip | 52 -- sip/kdefx/kdefx-kde320.diff | 1 - sip/kdefx/kdefx-kde321.diff | 1 - sip/kdefx/kdefx-kde322.diff | 1 - sip/kdefx/kdefx-kde323.diff | 1 - sip/kdefx/kdefx-kde330.diff | 1 - sip/kdefx/kdefx-kde331.diff | 1 - sip/kdefx/kdefx-kde332.diff | 1 - sip/kdefx/kdefx-kde340.diff | 1 - sip/kdefx/kdefx-kde341.diff | 1 - sip/kdefx/kdefx-kde342.diff | 1 - sip/kdefx/kdefx-kde343.diff | 1 - sip/kdefx/kdefx-kde350.diff | 1 - sip/kdefx/kdefx-kde351.diff | 1 - sip/kdefx/kdefx-kde352.diff | 1 - sip/kdefx/kdefx-kde353.diff | 1 - sip/kdefx/kdefxmod.sip.in | 41 -- sip/kdefx/kdrawutil.sip | 39 - sip/kdefx/kimageeffect.sip | 205 ------ sip/kdefx/kpixmap.sip | 65 -- sip/kdefx/kpixmapeffect.sip | 85 --- sip/kdefx/kpixmapsplitter.sip | 46 -- sip/kdefx/kstyle.sip | 126 ---- sip/kdeprint/driver.sip | 338 --------- sip/kdeprint/kdeprint-kde310.diff | 2 - sip/kdeprint/kdeprint-kde311.diff | 2 - sip/kdeprint/kdeprint-kde312.diff | 2 - sip/kdeprint/kdeprint-kde313.diff | 2 - sip/kdeprint/kdeprint-kde314.diff | 2 - sip/kdeprint/kdeprint-kde315.diff | 2 - sip/kdeprint/kdeprint-kde320.diff | 2 - sip/kdeprint/kdeprint-kde321.diff | 2 - sip/kdeprint/kdeprint-kde322.diff | 2 - sip/kdeprint/kdeprint-kde323.diff | 2 - sip/kdeprint/kdeprint-kde330.diff | 2 - sip/kdeprint/kdeprint-kde331.diff | 2 - sip/kdeprint/kdeprint-kde332.diff | 2 - sip/kdeprint/kdeprint-kde340.diff | 2 - sip/kdeprint/kdeprint-kde341.diff | 2 - sip/kdeprint/kdeprint-kde342.diff | 2 - sip/kdeprint/kdeprint-kde343.diff | 2 - sip/kdeprint/kdeprint-kde350.diff | 2 - sip/kdeprint/kdeprint-kde351.diff | 2 - sip/kdeprint/kdeprint-kde352.diff | 2 - sip/kdeprint/kdeprint-kde353.diff | 2 - sip/kdeprint/kdeprintmod.sip.in | 47 -- sip/kdeprint/kmjob.sip | 113 --- sip/kdeprint/kmjobmanager.sip | 197 ----- sip/kdeprint/kmmanager.sip | 220 ------ sip/kdeprint/kmobject.sip | 42 -- sip/kdeprint/kmprinter.sip | 178 ----- sip/kdeprint/kpreloadobject.sip | 43 -- sip/kdeprint/kprintaction.sip | 61 -- sip/kdeprint/kprintdialog.sip | 169 ----- sip/kdeprint/kprintdialogpage.sip | 52 -- sip/kdeprint/kprinter.sip | 258 ------- sip/kdeui/kaboutapplication.sip | 205 ------ sip/kdeui/kaboutdialog.sip | 190 ----- sip/kdeui/kaboutkde.sip | 38 - sip/kdeui/kaccelmanager.sip | 43 -- sip/kdeui/kaccelmenu.sip | 53 -- sip/kdeui/kaction.sip | 758 ------------------- sip/kdeui/kactionclasses.sip | 529 ------------- sip/kdeui/kactioncollection.sip | 125 ---- sip/kdeui/kactionselector.sip | 106 --- sip/kdeui/kactionshortcutlist.sip | 106 --- sip/kdeui/kactivelabel.sip | 58 -- sip/kdeui/kalphapainter.sip | 41 -- sip/kdeui/kanimwidget.sip | 92 --- sip/kdeui/karrowbutton.sip | 55 -- sip/kdeui/kauthicon.sip | 101 --- sip/kdeui/kbugreport.sip | 54 -- sip/kdeui/kbuttonbox.sip | 59 -- sip/kdeui/kcharselect.sip | 130 ---- sip/kdeui/kcmenumngr.sip | 43 -- sip/kdeui/kcmodule.sip | 183 ----- sip/kdeui/kcolorbtn.sip | 54 -- sip/kdeui/kcolorcombo.sip | 51 -- sip/kdeui/kcolordialog.sip | 237 ------ sip/kdeui/kcolordrag.sip | 52 -- sip/kdeui/kcombobox.sip | 130 ---- sip/kdeui/kcommand.sip | 131 ---- sip/kdeui/kcompletionbox.sip | 86 --- sip/kdeui/kconfigdialog.sip | 69 -- sip/kdeui/kcontainer.sip | 75 -- sip/kdeui/kcursor.sip | 57 -- sip/kdeui/kdatepicker.sip | 108 --- sip/kdeui/kdatepik.sip | 64 -- sip/kdeui/kdatetbl.sip | 303 -------- sip/kdeui/kdatetimewidget.sip | 50 -- sip/kdeui/kdatewidget.sip | 58 -- sip/kdeui/kdbtn.sip | 61 -- sip/kdeui/kdcopactionproxy.sip | 48 -- sip/kdeui/kdeui-kde310.diff | 4 - sip/kdeui/kdeui-kde311.diff | 4 - sip/kdeui/kdeui-kde312.diff | 4 - sip/kdeui/kdeui-kde313.diff | 4 - sip/kdeui/kdeui-kde314.diff | 4 - sip/kdeui/kdeui-kde315.diff | 4 - sip/kdeui/kdeui-kde320.diff | 13 - sip/kdeui/kdeui-kde321.diff | 13 - sip/kdeui/kdeui-kde322.diff | 13 - sip/kdeui/kdeui-kde323.diff | 14 - sip/kdeui/kdeui-kde330.diff | 16 - sip/kdeui/kdeui-kde331.diff | 16 - sip/kdeui/kdeui-kde332.diff | 16 - sip/kdeui/kdeui-kde340.diff | 21 - sip/kdeui/kdeui-kde341.diff | 21 - sip/kdeui/kdeui-kde342.diff | 21 - sip/kdeui/kdeui-kde343.diff | 21 - sip/kdeui/kdeui-kde350.diff | 23 - sip/kdeui/kdeui-kde351.diff | 23 - sip/kdeui/kdeui-kde352.diff | 23 - sip/kdeui/kdeui-kde353.diff | 23 - sip/kdeui/kdeuimod.sip.in | 123 ---- sip/kdeui/kdialog.sip | 90 --- sip/kdeui/kdialogbase.sip | 283 ------- sip/kdeui/kdocktabctl.sip | 186 ----- sip/kdeui/kdockwidget.sip | 469 ------------ sip/kdeui/kdockwindow.sip | 38 - sip/kdeui/kdualcolorbtn.sip | 73 -- sip/kdeui/kdualcolorbutton.sip | 74 -- sip/kdeui/keditcl.sip | 224 ------ sip/kdeui/keditlistbox.sip | 206 ------ sip/kdeui/kedittoolbar.sip | 156 ---- sip/kdeui/kfontcombo.sip | 67 -- sip/kdeui/kfontdialog.sip | 184 ----- sip/kdeui/kfontrequester.sip | 63 -- sip/kdeui/kguiitem.sip | 57 -- sip/kdeui/khelpmenu.sip | 63 -- sip/kdeui/kiconview.sip | 147 ---- sip/kdeui/kiconviewsearchline.sip | 61 -- sip/kdeui/kinputdialog.sip | 66 -- sip/kdeui/kjanuswidget.sip | 110 --- sip/kdeui/kkeybutton.sip | 59 -- sip/kdeui/kkeydialog.sip | 266 ------- sip/kdeui/klanguagebutton.sip | 60 -- sip/kdeui/kled.sip | 97 --- sip/kdeui/klineedit.sip | 146 ---- sip/kdeui/klineeditdlg.sip | 53 -- sip/kdeui/klistbox.sip | 60 -- sip/kdeui/klistview.sip | 336 --------- sip/kdeui/klistviewlineedit.sip | 51 -- sip/kdeui/klistviewsearchline.sip | 84 --- sip/kdeui/kmainwindow.sip | 273 ------- sip/kdeui/kmainwindowiface.sip | 71 -- sip/kdeui/kmenubar.sip | 91 --- sip/kdeui/kmessagebox.sip | 260 ------- sip/kdeui/knuminput.sip | 261 ------- sip/kdeui/knumvalidator.sip | 89 --- sip/kdeui/kpanelapplet.sip | 140 ---- sip/kdeui/kpanelappmenu.sip | 51 -- sip/kdeui/kpanelextension.sip | 159 ---- sip/kdeui/kpanelmenu.sip | 65 -- sip/kdeui/kpassdlg.sip | 138 ---- sip/kdeui/kpassivepopup.sip | 112 --- sip/kdeui/kpixmapio.sip | 53 -- sip/kdeui/kpixmapregionselectordialog.sip | 49 -- sip/kdeui/kpixmapregionselectorwidget.sip | 60 -- sip/kdeui/kpopupmenu.sip | 149 ---- sip/kdeui/kprogress.sip | 102 --- sip/kdeui/kpushbutton.sip | 67 -- sip/kdeui/krestrictedline.sip | 49 -- sip/kdeui/krootpixmap.sip | 71 -- sip/kdeui/kruler.sip | 108 --- sip/kdeui/kscrollview.sip | 53 -- sip/kdeui/kselect.sip | 142 ---- sip/kdeui/kseparator.sip | 48 -- sip/kdeui/ksharedpixmap.sip | 62 -- sip/kdeui/kshortcutdialog.sip | 53 -- sip/kdeui/ksplashscreen.sip | 42 -- sip/kdeui/ksqueezedtextlabel.sip | 60 -- sip/kdeui/kstatusbar.sip | 82 --- sip/kdeui/kstdaction.sip | 327 -------- sip/kdeui/kstdguiitem.sip | 350 --------- sip/kdeui/kstringvalidator.sip | 63 -- sip/kdeui/ksystemtray.sip | 84 --- sip/kdeui/ktabbar.sip | 98 --- sip/kdeui/ktabctl.sip | 64 -- sip/kdeui/ktabwidget.sip | 144 ---- sip/kdeui/ktextbrowser.sip | 58 -- sip/kdeui/ktextedit.sip | 83 --- sip/kdeui/kthemebase.sip | 258 ------- sip/kdeui/kthemestyle.sip | 89 --- sip/kdeui/ktimewidget.sip | 50 -- sip/kdeui/ktimezonewidget.sip | 45 -- sip/kdeui/ktip.sip | 82 --- sip/kdeui/ktmainwindow.sip | 53 -- sip/kdeui/ktoolbar.sip | 263 ------- sip/kdeui/ktoolbarbutton.sip | 123 ---- sip/kdeui/ktoolbarlabelaction.sip | 51 -- sip/kdeui/ktoolbarradiogroup.sip | 43 -- sip/kdeui/kurllabel.sip | 108 --- sip/kdeui/kwindowinfo.sip | 61 -- sip/kdeui/kwindowlistmenu.sip | 54 -- sip/kdeui/kwizard.sip | 38 - sip/kdeui/kwordwrap.sip | 82 --- sip/kdeui/kxmlgui.sip | 26 - sip/kdeui/kxmlguibuilder.sip | 53 -- sip/kdeui/kxmlguiclient.sip | 101 --- sip/kdeui/kxmlguifactory.sip | 297 -------- sip/kdeui/qxembed.sip | 113 --- sip/tdecore/bytearray.sip | 945 ++++++++++++++++++++++++ sip/tdecore/fixx11h.sip | 30 + sip/tdecore/kaboutdata.sip | 301 ++++++++ sip/tdecore/kaccel.sip | 240 ++++++ sip/tdecore/kaccelaction.sip | 122 +++ sip/tdecore/kaccelbase.sip | 102 +++ sip/tdecore/kallocator.sip | 48 ++ sip/tdecore/kapplication.sip | 449 +++++++++++ sip/tdecore/kasyncio.sip | 52 ++ sip/tdecore/kaudioplayer.sip | 42 ++ sip/tdecore/kbufferedio.sip | 73 ++ sip/tdecore/kcalendarsystem.sip | 78 ++ sip/tdecore/kcalendarsystemfactory.sip | 44 ++ sip/tdecore/kcatalogue.sip | 64 ++ sip/tdecore/kcharsets.sip | 62 ++ sip/tdecore/kclipboard.sip | 52 ++ sip/tdecore/kcmdlineargs.sip | 264 +++++++ sip/tdecore/kcompletion.sip | 227 ++++++ sip/tdecore/kconfig.sip | 238 ++++++ sip/tdecore/kconfigbackend.sip | 93 +++ sip/tdecore/kconfigbase.sip | 333 +++++++++ sip/tdecore/kconfigdata.sip | 172 +++++ sip/tdecore/kconfigdialogmanager.sip | 64 ++ sip/tdecore/kconfigskeleton.sip | 1146 +++++++++++++++++++++++++++++ sip/tdecore/kcrash.sip | 51 ++ sip/tdecore/kdcoppropertyproxy.sip | 44 ++ sip/tdecore/kdebug.sip | 67 ++ sip/tdecore/kdesktopfile.sip | 85 +++ sip/tdecore/kdesktopwidget.sip | 45 ++ sip/tdecore/kdestyle.sip | 108 +++ sip/tdecore/kdeversion.sip | 45 ++ sip/tdecore/kglobal.sip | 65 ++ sip/tdecore/kglobalaccel.sip | 87 +++ sip/tdecore/kglobalsettings.sip | 157 ++++ sip/tdecore/kiconeffect.sip | 102 +++ sip/tdecore/kiconloader.sip | 97 +++ sip/tdecore/kicontheme.sip | 249 +++++++ sip/tdecore/kidna.sip | 40 + sip/tdecore/kinstance.sip | 75 ++ sip/tdecore/kipc.sip | 98 +++ sip/tdecore/kkeynative.sip | 90 +++ sip/tdecore/kkeyserver_x11.sip | 187 +++++ sip/tdecore/klibloader.sip | 103 +++ sip/tdecore/klocale.sip | 243 ++++++ sip/tdecore/klockfile.sip | 112 +++ sip/tdecore/kmacroexpander.sip | 384 ++++++++++ sip/tdecore/kmanagerselection.sip | 91 +++ sip/tdecore/kmdcodec.sip | 156 ++++ sip/tdecore/kmimesourcefactory.sip | 42 ++ sip/tdecore/kmountpoint.sip | 186 +++++ sip/tdecore/kmultipledrag.sip | 58 ++ sip/tdecore/knotifyclient.sip | 139 ++++ sip/tdecore/kpalette.sip | 63 ++ sip/tdecore/kpixmapprovider.sip | 41 ++ sip/tdecore/kprocctrl.sip | 95 +++ sip/tdecore/kprocess.sip | 272 +++++++ sip/tdecore/kprocio.sip | 67 ++ sip/tdecore/kpty.sip | 52 ++ sip/tdecore/krandomsequence.sip | 45 ++ sip/tdecore/kregexp.sip | 44 ++ sip/tdecore/krfcdate.sip | 42 ++ sip/tdecore/krootprop.sip | 52 ++ sip/tdecore/ksavefile.sip | 52 ++ sip/tdecore/ksharedptr.sip | 45 ++ sip/tdecore/kshell.sip | 77 ++ sip/tdecore/kshortcut.sip | 261 +++++++ sip/tdecore/kshortcutlist.sip | 133 ++++ sip/tdecore/ksimpleconfig.sip | 50 ++ sip/tdecore/ksock.sip | 97 +++ sip/tdecore/kstartupinfo.sip | 280 +++++++ sip/tdecore/kstaticdeleter.sip | 38 + sip/tdecore/kstdaccel.sip | 441 +++++++++++ sip/tdecore/kstddirs.sip | 69 ++ sip/tdecore/kstringhandler.sip | 89 +++ sip/tdecore/ktempdir.sip | 58 ++ sip/tdecore/ktempfile.sip | 58 ++ sip/tdecore/ktimezones.sip | 272 +++++++ sip/tdecore/kuniqueapplication.sip | 68 ++ sip/tdecore/kurl.sip | 408 ++++++++++ sip/tdecore/kurldrag.sip | 76 ++ sip/tdecore/kuser.sip | 74 ++ sip/tdecore/kvmallocator.sip | 42 ++ sip/tdecore/kwin.sip | 188 +++++ sip/tdecore/kwinmodule.sip | 158 ++++ sip/tdecore/kxmessages.sip | 55 ++ sip/tdecore/netwm.sip | 628 ++++++++++++++++ sip/tdecore/netwm_def.sip | 535 ++++++++++++++ sip/tdecore/tdecore-kde310.diff | 1 + sip/tdecore/tdecore-kde311.diff | 1 + sip/tdecore/tdecore-kde312.diff | 1 + sip/tdecore/tdecore-kde313.diff | 1 + sip/tdecore/tdecore-kde314.diff | 3 + sip/tdecore/tdecore-kde315.diff | 3 + sip/tdecore/tdecore-kde320.diff | 16 + sip/tdecore/tdecore-kde321.diff | 12 + sip/tdecore/tdecore-kde322.diff | 13 + sip/tdecore/tdecore-kde323.diff | 13 + sip/tdecore/tdecore-kde330.diff | 15 + sip/tdecore/tdecore-kde331.diff | 15 + sip/tdecore/tdecore-kde332.diff | 15 + sip/tdecore/tdecore-kde340.diff | 15 + sip/tdecore/tdecore-kde341.diff | 15 + sip/tdecore/tdecore-kde342.diff | 15 + sip/tdecore/tdecore-kde343.diff | 15 + sip/tdecore/tdecore-kde350.diff | 16 + sip/tdecore/tdecore-kde351.diff | 16 + sip/tdecore/tdecore-kde352.diff | 16 + sip/tdecore/tdecore-kde353.diff | 16 + sip/tdecore/tdecoremod.sip.in | 99 +++ sip/tdefx/kcpuinfo.sip | 52 ++ sip/tdefx/kdrawutil.sip | 39 + sip/tdefx/kimageeffect.sip | 205 ++++++ sip/tdefx/kpixmap.sip | 65 ++ sip/tdefx/kpixmapeffect.sip | 85 +++ sip/tdefx/kpixmapsplitter.sip | 46 ++ sip/tdefx/kstyle.sip | 126 ++++ sip/tdefx/tdefx-kde320.diff | 1 + sip/tdefx/tdefx-kde321.diff | 1 + sip/tdefx/tdefx-kde322.diff | 1 + sip/tdefx/tdefx-kde323.diff | 1 + sip/tdefx/tdefx-kde330.diff | 1 + sip/tdefx/tdefx-kde331.diff | 1 + sip/tdefx/tdefx-kde332.diff | 1 + sip/tdefx/tdefx-kde340.diff | 1 + sip/tdefx/tdefx-kde341.diff | 1 + sip/tdefx/tdefx-kde342.diff | 1 + sip/tdefx/tdefx-kde343.diff | 1 + sip/tdefx/tdefx-kde350.diff | 1 + sip/tdefx/tdefx-kde351.diff | 1 + sip/tdefx/tdefx-kde352.diff | 1 + sip/tdefx/tdefx-kde353.diff | 1 + sip/tdefx/tdefxmod.sip.in | 41 ++ sip/tdeprint/driver.sip | 338 +++++++++ sip/tdeprint/kmjob.sip | 113 +++ sip/tdeprint/kmjobmanager.sip | 197 +++++ sip/tdeprint/kmmanager.sip | 220 ++++++ sip/tdeprint/kmobject.sip | 42 ++ sip/tdeprint/kmprinter.sip | 178 +++++ sip/tdeprint/kpreloadobject.sip | 43 ++ sip/tdeprint/kprintaction.sip | 61 ++ sip/tdeprint/kprintdialog.sip | 169 +++++ sip/tdeprint/kprintdialogpage.sip | 52 ++ sip/tdeprint/kprinter.sip | 258 +++++++ sip/tdeprint/tdeprint-kde310.diff | 2 + sip/tdeprint/tdeprint-kde311.diff | 2 + sip/tdeprint/tdeprint-kde312.diff | 2 + sip/tdeprint/tdeprint-kde313.diff | 2 + sip/tdeprint/tdeprint-kde314.diff | 2 + sip/tdeprint/tdeprint-kde315.diff | 2 + sip/tdeprint/tdeprint-kde320.diff | 2 + sip/tdeprint/tdeprint-kde321.diff | 2 + sip/tdeprint/tdeprint-kde322.diff | 2 + sip/tdeprint/tdeprint-kde323.diff | 2 + sip/tdeprint/tdeprint-kde330.diff | 2 + sip/tdeprint/tdeprint-kde331.diff | 2 + sip/tdeprint/tdeprint-kde332.diff | 2 + sip/tdeprint/tdeprint-kde340.diff | 2 + sip/tdeprint/tdeprint-kde341.diff | 2 + sip/tdeprint/tdeprint-kde342.diff | 2 + sip/tdeprint/tdeprint-kde343.diff | 2 + sip/tdeprint/tdeprint-kde350.diff | 2 + sip/tdeprint/tdeprint-kde351.diff | 2 + sip/tdeprint/tdeprint-kde352.diff | 2 + sip/tdeprint/tdeprint-kde353.diff | 2 + sip/tdeprint/tdeprintmod.sip.in | 47 ++ sip/tdeui/kaboutapplication.sip | 205 ++++++ sip/tdeui/kaboutdialog.sip | 190 +++++ sip/tdeui/kaboutkde.sip | 38 + sip/tdeui/kaccelmanager.sip | 43 ++ sip/tdeui/kaccelmenu.sip | 53 ++ sip/tdeui/kaction.sip | 758 +++++++++++++++++++ sip/tdeui/kactionclasses.sip | 529 +++++++++++++ sip/tdeui/kactioncollection.sip | 125 ++++ sip/tdeui/kactionselector.sip | 106 +++ sip/tdeui/kactionshortcutlist.sip | 106 +++ sip/tdeui/kactivelabel.sip | 58 ++ sip/tdeui/kalphapainter.sip | 41 ++ sip/tdeui/kanimwidget.sip | 92 +++ sip/tdeui/karrowbutton.sip | 55 ++ sip/tdeui/kauthicon.sip | 101 +++ sip/tdeui/kbugreport.sip | 54 ++ sip/tdeui/kbuttonbox.sip | 59 ++ sip/tdeui/kcharselect.sip | 130 ++++ sip/tdeui/kcmenumngr.sip | 43 ++ sip/tdeui/kcmodule.sip | 183 +++++ sip/tdeui/kcolorbtn.sip | 54 ++ sip/tdeui/kcolorcombo.sip | 51 ++ sip/tdeui/kcolordialog.sip | 237 ++++++ sip/tdeui/kcolordrag.sip | 52 ++ sip/tdeui/kcombobox.sip | 130 ++++ sip/tdeui/kcommand.sip | 131 ++++ sip/tdeui/kcompletionbox.sip | 86 +++ sip/tdeui/kconfigdialog.sip | 69 ++ sip/tdeui/kcontainer.sip | 75 ++ sip/tdeui/kcursor.sip | 57 ++ sip/tdeui/kdatepicker.sip | 108 +++ sip/tdeui/kdatepik.sip | 64 ++ sip/tdeui/kdatetbl.sip | 303 ++++++++ sip/tdeui/kdatetimewidget.sip | 50 ++ sip/tdeui/kdatewidget.sip | 58 ++ sip/tdeui/kdbtn.sip | 61 ++ sip/tdeui/kdcopactionproxy.sip | 48 ++ sip/tdeui/kdialog.sip | 90 +++ sip/tdeui/kdialogbase.sip | 283 +++++++ sip/tdeui/kdocktabctl.sip | 186 +++++ sip/tdeui/kdockwidget.sip | 469 ++++++++++++ sip/tdeui/kdockwindow.sip | 38 + sip/tdeui/kdualcolorbtn.sip | 73 ++ sip/tdeui/kdualcolorbutton.sip | 74 ++ sip/tdeui/keditcl.sip | 224 ++++++ sip/tdeui/keditlistbox.sip | 206 ++++++ sip/tdeui/kedittoolbar.sip | 156 ++++ sip/tdeui/kfontcombo.sip | 67 ++ sip/tdeui/kfontdialog.sip | 184 +++++ sip/tdeui/kfontrequester.sip | 63 ++ sip/tdeui/kguiitem.sip | 57 ++ sip/tdeui/khelpmenu.sip | 63 ++ sip/tdeui/kiconview.sip | 147 ++++ sip/tdeui/kiconviewsearchline.sip | 61 ++ sip/tdeui/kinputdialog.sip | 66 ++ sip/tdeui/kjanuswidget.sip | 110 +++ sip/tdeui/kkeybutton.sip | 59 ++ sip/tdeui/kkeydialog.sip | 266 +++++++ sip/tdeui/klanguagebutton.sip | 60 ++ sip/tdeui/kled.sip | 97 +++ sip/tdeui/klineedit.sip | 146 ++++ sip/tdeui/klineeditdlg.sip | 53 ++ sip/tdeui/klistbox.sip | 60 ++ sip/tdeui/klistview.sip | 336 +++++++++ sip/tdeui/klistviewlineedit.sip | 51 ++ sip/tdeui/klistviewsearchline.sip | 84 +++ sip/tdeui/kmainwindow.sip | 273 +++++++ sip/tdeui/kmainwindowiface.sip | 71 ++ sip/tdeui/kmenubar.sip | 91 +++ sip/tdeui/kmessagebox.sip | 260 +++++++ sip/tdeui/knuminput.sip | 261 +++++++ sip/tdeui/knumvalidator.sip | 89 +++ sip/tdeui/kpanelapplet.sip | 140 ++++ sip/tdeui/kpanelappmenu.sip | 51 ++ sip/tdeui/kpanelextension.sip | 159 ++++ sip/tdeui/kpanelmenu.sip | 65 ++ sip/tdeui/kpassdlg.sip | 138 ++++ sip/tdeui/kpassivepopup.sip | 112 +++ sip/tdeui/kpixmapio.sip | 53 ++ sip/tdeui/kpixmapregionselectordialog.sip | 49 ++ sip/tdeui/kpixmapregionselectorwidget.sip | 60 ++ sip/tdeui/kpopupmenu.sip | 149 ++++ sip/tdeui/kprogress.sip | 102 +++ sip/tdeui/kpushbutton.sip | 67 ++ sip/tdeui/krestrictedline.sip | 49 ++ sip/tdeui/krootpixmap.sip | 71 ++ sip/tdeui/kruler.sip | 108 +++ sip/tdeui/kscrollview.sip | 53 ++ sip/tdeui/kselect.sip | 142 ++++ sip/tdeui/kseparator.sip | 48 ++ sip/tdeui/ksharedpixmap.sip | 62 ++ sip/tdeui/kshortcutdialog.sip | 53 ++ sip/tdeui/ksplashscreen.sip | 42 ++ sip/tdeui/ksqueezedtextlabel.sip | 60 ++ sip/tdeui/kstatusbar.sip | 82 +++ sip/tdeui/kstdaction.sip | 327 ++++++++ sip/tdeui/kstdguiitem.sip | 350 +++++++++ sip/tdeui/kstringvalidator.sip | 63 ++ sip/tdeui/ksystemtray.sip | 84 +++ sip/tdeui/ktabbar.sip | 98 +++ sip/tdeui/ktabctl.sip | 64 ++ sip/tdeui/ktabwidget.sip | 144 ++++ sip/tdeui/ktextbrowser.sip | 58 ++ sip/tdeui/ktextedit.sip | 83 +++ sip/tdeui/kthemebase.sip | 258 +++++++ sip/tdeui/kthemestyle.sip | 89 +++ sip/tdeui/ktimewidget.sip | 50 ++ sip/tdeui/ktimezonewidget.sip | 45 ++ sip/tdeui/ktip.sip | 82 +++ sip/tdeui/ktmainwindow.sip | 53 ++ sip/tdeui/ktoolbar.sip | 263 +++++++ sip/tdeui/ktoolbarbutton.sip | 123 ++++ sip/tdeui/ktoolbarlabelaction.sip | 51 ++ sip/tdeui/ktoolbarradiogroup.sip | 43 ++ sip/tdeui/kurllabel.sip | 108 +++ sip/tdeui/kwindowinfo.sip | 61 ++ sip/tdeui/kwindowlistmenu.sip | 54 ++ sip/tdeui/kwizard.sip | 38 + sip/tdeui/kwordwrap.sip | 82 +++ sip/tdeui/kxmlgui.sip | 26 + sip/tdeui/kxmlguibuilder.sip | 53 ++ sip/tdeui/kxmlguiclient.sip | 101 +++ sip/tdeui/kxmlguifactory.sip | 297 ++++++++ sip/tdeui/qxembed.sip | 113 +++ sip/tdeui/tdeui-kde310.diff | 4 + sip/tdeui/tdeui-kde311.diff | 4 + sip/tdeui/tdeui-kde312.diff | 4 + sip/tdeui/tdeui-kde313.diff | 4 + sip/tdeui/tdeui-kde314.diff | 4 + sip/tdeui/tdeui-kde315.diff | 4 + sip/tdeui/tdeui-kde320.diff | 13 + sip/tdeui/tdeui-kde321.diff | 13 + sip/tdeui/tdeui-kde322.diff | 13 + sip/tdeui/tdeui-kde323.diff | 14 + sip/tdeui/tdeui-kde330.diff | 16 + sip/tdeui/tdeui-kde331.diff | 16 + sip/tdeui/tdeui-kde332.diff | 16 + sip/tdeui/tdeui-kde340.diff | 21 + sip/tdeui/tdeui-kde341.diff | 21 + sip/tdeui/tdeui-kde342.diff | 21 + sip/tdeui/tdeui-kde343.diff | 21 + sip/tdeui/tdeui-kde350.diff | 23 + sip/tdeui/tdeui-kde351.diff | 23 + sip/tdeui/tdeui-kde352.diff | 23 + sip/tdeui/tdeui-kde353.diff | 23 + sip/tdeui/tdeuimod.sip.in | 123 ++++ 622 files changed, 31315 insertions(+), 31315 deletions(-) delete mode 100644 sip/kdecore/bytearray.sip delete mode 100644 sip/kdecore/fixx11h.sip delete mode 100644 sip/kdecore/kaboutdata.sip delete mode 100644 sip/kdecore/kaccel.sip delete mode 100644 sip/kdecore/kaccelaction.sip delete mode 100644 sip/kdecore/kaccelbase.sip delete mode 100644 sip/kdecore/kallocator.sip delete mode 100644 sip/kdecore/kapplication.sip delete mode 100644 sip/kdecore/kasyncio.sip delete mode 100644 sip/kdecore/kaudioplayer.sip delete mode 100644 sip/kdecore/kbufferedio.sip delete mode 100644 sip/kdecore/kcalendarsystem.sip delete mode 100644 sip/kdecore/kcalendarsystemfactory.sip delete mode 100644 sip/kdecore/kcatalogue.sip delete mode 100644 sip/kdecore/kcharsets.sip delete mode 100644 sip/kdecore/kclipboard.sip delete mode 100644 sip/kdecore/kcmdlineargs.sip delete mode 100644 sip/kdecore/kcompletion.sip delete mode 100644 sip/kdecore/kconfig.sip delete mode 100644 sip/kdecore/kconfigbackend.sip delete mode 100644 sip/kdecore/kconfigbase.sip delete mode 100644 sip/kdecore/kconfigdata.sip delete mode 100644 sip/kdecore/kconfigdialogmanager.sip delete mode 100644 sip/kdecore/kconfigskeleton.sip delete mode 100644 sip/kdecore/kcrash.sip delete mode 100644 sip/kdecore/kdcoppropertyproxy.sip delete mode 100644 sip/kdecore/kdebug.sip delete mode 100644 sip/kdecore/kdecore-kde310.diff delete mode 100644 sip/kdecore/kdecore-kde311.diff delete mode 100644 sip/kdecore/kdecore-kde312.diff delete mode 100644 sip/kdecore/kdecore-kde313.diff delete mode 100644 sip/kdecore/kdecore-kde314.diff delete mode 100644 sip/kdecore/kdecore-kde315.diff delete mode 100644 sip/kdecore/kdecore-kde320.diff delete mode 100644 sip/kdecore/kdecore-kde321.diff delete mode 100644 sip/kdecore/kdecore-kde322.diff delete mode 100644 sip/kdecore/kdecore-kde323.diff delete mode 100644 sip/kdecore/kdecore-kde330.diff delete mode 100644 sip/kdecore/kdecore-kde331.diff delete mode 100644 sip/kdecore/kdecore-kde332.diff delete mode 100644 sip/kdecore/kdecore-kde340.diff delete mode 100644 sip/kdecore/kdecore-kde341.diff delete mode 100644 sip/kdecore/kdecore-kde342.diff delete mode 100644 sip/kdecore/kdecore-kde343.diff delete mode 100644 sip/kdecore/kdecore-kde350.diff delete mode 100644 sip/kdecore/kdecore-kde351.diff delete mode 100644 sip/kdecore/kdecore-kde352.diff delete mode 100644 sip/kdecore/kdecore-kde353.diff delete mode 100644 sip/kdecore/kdecoremod.sip.in delete mode 100644 sip/kdecore/kdesktopfile.sip delete mode 100644 sip/kdecore/kdesktopwidget.sip delete mode 100644 sip/kdecore/kdestyle.sip delete mode 100644 sip/kdecore/kdeversion.sip delete mode 100644 sip/kdecore/kglobal.sip delete mode 100644 sip/kdecore/kglobalaccel.sip delete mode 100644 sip/kdecore/kglobalsettings.sip delete mode 100644 sip/kdecore/kiconeffect.sip delete mode 100644 sip/kdecore/kiconloader.sip delete mode 100644 sip/kdecore/kicontheme.sip delete mode 100644 sip/kdecore/kidna.sip delete mode 100644 sip/kdecore/kinstance.sip delete mode 100644 sip/kdecore/kipc.sip delete mode 100644 sip/kdecore/kkeynative.sip delete mode 100644 sip/kdecore/kkeyserver_x11.sip delete mode 100644 sip/kdecore/klibloader.sip delete mode 100644 sip/kdecore/klocale.sip delete mode 100644 sip/kdecore/klockfile.sip delete mode 100644 sip/kdecore/kmacroexpander.sip delete mode 100644 sip/kdecore/kmanagerselection.sip delete mode 100644 sip/kdecore/kmdcodec.sip delete mode 100644 sip/kdecore/kmimesourcefactory.sip delete mode 100644 sip/kdecore/kmountpoint.sip delete mode 100644 sip/kdecore/kmultipledrag.sip delete mode 100644 sip/kdecore/knotifyclient.sip delete mode 100644 sip/kdecore/kpalette.sip delete mode 100644 sip/kdecore/kpixmapprovider.sip delete mode 100644 sip/kdecore/kprocctrl.sip delete mode 100644 sip/kdecore/kprocess.sip delete mode 100644 sip/kdecore/kprocio.sip delete mode 100644 sip/kdecore/kpty.sip delete mode 100644 sip/kdecore/krandomsequence.sip delete mode 100644 sip/kdecore/kregexp.sip delete mode 100644 sip/kdecore/krfcdate.sip delete mode 100644 sip/kdecore/krootprop.sip delete mode 100644 sip/kdecore/ksavefile.sip delete mode 100644 sip/kdecore/ksharedptr.sip delete mode 100644 sip/kdecore/kshell.sip delete mode 100644 sip/kdecore/kshortcut.sip delete mode 100644 sip/kdecore/kshortcutlist.sip delete mode 100644 sip/kdecore/ksimpleconfig.sip delete mode 100644 sip/kdecore/ksock.sip delete mode 100644 sip/kdecore/kstartupinfo.sip delete mode 100644 sip/kdecore/kstaticdeleter.sip delete mode 100644 sip/kdecore/kstdaccel.sip delete mode 100644 sip/kdecore/kstddirs.sip delete mode 100644 sip/kdecore/kstringhandler.sip delete mode 100644 sip/kdecore/ktempdir.sip delete mode 100644 sip/kdecore/ktempfile.sip delete mode 100644 sip/kdecore/ktimezones.sip delete mode 100644 sip/kdecore/kuniqueapplication.sip delete mode 100644 sip/kdecore/kurl.sip delete mode 100644 sip/kdecore/kurldrag.sip delete mode 100644 sip/kdecore/kuser.sip delete mode 100644 sip/kdecore/kvmallocator.sip delete mode 100644 sip/kdecore/kwin.sip delete mode 100644 sip/kdecore/kwinmodule.sip delete mode 100644 sip/kdecore/kxmessages.sip delete mode 100644 sip/kdecore/netwm.sip delete mode 100644 sip/kdecore/netwm_def.sip delete mode 100644 sip/kdefx/kcpuinfo.sip delete mode 100644 sip/kdefx/kdefx-kde320.diff delete mode 100644 sip/kdefx/kdefx-kde321.diff delete mode 100644 sip/kdefx/kdefx-kde322.diff delete mode 100644 sip/kdefx/kdefx-kde323.diff delete mode 100644 sip/kdefx/kdefx-kde330.diff delete mode 100644 sip/kdefx/kdefx-kde331.diff delete mode 100644 sip/kdefx/kdefx-kde332.diff delete mode 100644 sip/kdefx/kdefx-kde340.diff delete mode 100644 sip/kdefx/kdefx-kde341.diff delete mode 100644 sip/kdefx/kdefx-kde342.diff delete mode 100644 sip/kdefx/kdefx-kde343.diff delete mode 100644 sip/kdefx/kdefx-kde350.diff delete mode 100644 sip/kdefx/kdefx-kde351.diff delete mode 100644 sip/kdefx/kdefx-kde352.diff delete mode 100644 sip/kdefx/kdefx-kde353.diff delete mode 100644 sip/kdefx/kdefxmod.sip.in delete mode 100644 sip/kdefx/kdrawutil.sip delete mode 100644 sip/kdefx/kimageeffect.sip delete mode 100644 sip/kdefx/kpixmap.sip delete mode 100644 sip/kdefx/kpixmapeffect.sip delete mode 100644 sip/kdefx/kpixmapsplitter.sip delete mode 100644 sip/kdefx/kstyle.sip delete mode 100644 sip/kdeprint/driver.sip delete mode 100644 sip/kdeprint/kdeprint-kde310.diff delete mode 100644 sip/kdeprint/kdeprint-kde311.diff delete mode 100644 sip/kdeprint/kdeprint-kde312.diff delete mode 100644 sip/kdeprint/kdeprint-kde313.diff delete mode 100644 sip/kdeprint/kdeprint-kde314.diff delete mode 100644 sip/kdeprint/kdeprint-kde315.diff delete mode 100644 sip/kdeprint/kdeprint-kde320.diff delete mode 100644 sip/kdeprint/kdeprint-kde321.diff delete mode 100644 sip/kdeprint/kdeprint-kde322.diff delete mode 100644 sip/kdeprint/kdeprint-kde323.diff delete mode 100644 sip/kdeprint/kdeprint-kde330.diff delete mode 100644 sip/kdeprint/kdeprint-kde331.diff delete mode 100644 sip/kdeprint/kdeprint-kde332.diff delete mode 100644 sip/kdeprint/kdeprint-kde340.diff delete mode 100644 sip/kdeprint/kdeprint-kde341.diff delete mode 100644 sip/kdeprint/kdeprint-kde342.diff delete mode 100644 sip/kdeprint/kdeprint-kde343.diff delete mode 100644 sip/kdeprint/kdeprint-kde350.diff delete mode 100644 sip/kdeprint/kdeprint-kde351.diff delete mode 100644 sip/kdeprint/kdeprint-kde352.diff delete mode 100644 sip/kdeprint/kdeprint-kde353.diff delete mode 100644 sip/kdeprint/kdeprintmod.sip.in delete mode 100644 sip/kdeprint/kmjob.sip delete mode 100644 sip/kdeprint/kmjobmanager.sip delete mode 100644 sip/kdeprint/kmmanager.sip delete mode 100644 sip/kdeprint/kmobject.sip delete mode 100644 sip/kdeprint/kmprinter.sip delete mode 100644 sip/kdeprint/kpreloadobject.sip delete mode 100644 sip/kdeprint/kprintaction.sip delete mode 100644 sip/kdeprint/kprintdialog.sip delete mode 100644 sip/kdeprint/kprintdialogpage.sip delete mode 100644 sip/kdeprint/kprinter.sip delete mode 100644 sip/kdeui/kaboutapplication.sip delete mode 100644 sip/kdeui/kaboutdialog.sip delete mode 100644 sip/kdeui/kaboutkde.sip delete mode 100644 sip/kdeui/kaccelmanager.sip delete mode 100644 sip/kdeui/kaccelmenu.sip delete mode 100644 sip/kdeui/kaction.sip delete mode 100644 sip/kdeui/kactionclasses.sip delete mode 100644 sip/kdeui/kactioncollection.sip delete mode 100644 sip/kdeui/kactionselector.sip delete mode 100644 sip/kdeui/kactionshortcutlist.sip delete mode 100644 sip/kdeui/kactivelabel.sip delete mode 100644 sip/kdeui/kalphapainter.sip delete mode 100644 sip/kdeui/kanimwidget.sip delete mode 100644 sip/kdeui/karrowbutton.sip delete mode 100644 sip/kdeui/kauthicon.sip delete mode 100644 sip/kdeui/kbugreport.sip delete mode 100644 sip/kdeui/kbuttonbox.sip delete mode 100644 sip/kdeui/kcharselect.sip delete mode 100644 sip/kdeui/kcmenumngr.sip delete mode 100644 sip/kdeui/kcmodule.sip delete mode 100644 sip/kdeui/kcolorbtn.sip delete mode 100644 sip/kdeui/kcolorcombo.sip delete mode 100644 sip/kdeui/kcolordialog.sip delete mode 100644 sip/kdeui/kcolordrag.sip delete mode 100644 sip/kdeui/kcombobox.sip delete mode 100644 sip/kdeui/kcommand.sip delete mode 100644 sip/kdeui/kcompletionbox.sip delete mode 100644 sip/kdeui/kconfigdialog.sip delete mode 100644 sip/kdeui/kcontainer.sip delete mode 100644 sip/kdeui/kcursor.sip delete mode 100644 sip/kdeui/kdatepicker.sip delete mode 100644 sip/kdeui/kdatepik.sip delete mode 100644 sip/kdeui/kdatetbl.sip delete mode 100644 sip/kdeui/kdatetimewidget.sip delete mode 100644 sip/kdeui/kdatewidget.sip delete mode 100644 sip/kdeui/kdbtn.sip delete mode 100644 sip/kdeui/kdcopactionproxy.sip delete mode 100644 sip/kdeui/kdeui-kde310.diff delete mode 100644 sip/kdeui/kdeui-kde311.diff delete mode 100644 sip/kdeui/kdeui-kde312.diff delete mode 100644 sip/kdeui/kdeui-kde313.diff delete mode 100644 sip/kdeui/kdeui-kde314.diff delete mode 100644 sip/kdeui/kdeui-kde315.diff delete mode 100644 sip/kdeui/kdeui-kde320.diff delete mode 100644 sip/kdeui/kdeui-kde321.diff delete mode 100644 sip/kdeui/kdeui-kde322.diff delete mode 100644 sip/kdeui/kdeui-kde323.diff delete mode 100644 sip/kdeui/kdeui-kde330.diff delete mode 100644 sip/kdeui/kdeui-kde331.diff delete mode 100644 sip/kdeui/kdeui-kde332.diff delete mode 100644 sip/kdeui/kdeui-kde340.diff delete mode 100644 sip/kdeui/kdeui-kde341.diff delete mode 100644 sip/kdeui/kdeui-kde342.diff delete mode 100644 sip/kdeui/kdeui-kde343.diff delete mode 100644 sip/kdeui/kdeui-kde350.diff delete mode 100644 sip/kdeui/kdeui-kde351.diff delete mode 100644 sip/kdeui/kdeui-kde352.diff delete mode 100644 sip/kdeui/kdeui-kde353.diff delete mode 100644 sip/kdeui/kdeuimod.sip.in delete mode 100644 sip/kdeui/kdialog.sip delete mode 100644 sip/kdeui/kdialogbase.sip delete mode 100644 sip/kdeui/kdocktabctl.sip delete mode 100644 sip/kdeui/kdockwidget.sip delete mode 100644 sip/kdeui/kdockwindow.sip delete mode 100644 sip/kdeui/kdualcolorbtn.sip delete mode 100644 sip/kdeui/kdualcolorbutton.sip delete mode 100644 sip/kdeui/keditcl.sip delete mode 100644 sip/kdeui/keditlistbox.sip delete mode 100644 sip/kdeui/kedittoolbar.sip delete mode 100644 sip/kdeui/kfontcombo.sip delete mode 100644 sip/kdeui/kfontdialog.sip delete mode 100644 sip/kdeui/kfontrequester.sip delete mode 100644 sip/kdeui/kguiitem.sip delete mode 100644 sip/kdeui/khelpmenu.sip delete mode 100644 sip/kdeui/kiconview.sip delete mode 100644 sip/kdeui/kiconviewsearchline.sip delete mode 100644 sip/kdeui/kinputdialog.sip delete mode 100644 sip/kdeui/kjanuswidget.sip delete mode 100644 sip/kdeui/kkeybutton.sip delete mode 100644 sip/kdeui/kkeydialog.sip delete mode 100644 sip/kdeui/klanguagebutton.sip delete mode 100644 sip/kdeui/kled.sip delete mode 100644 sip/kdeui/klineedit.sip delete mode 100644 sip/kdeui/klineeditdlg.sip delete mode 100644 sip/kdeui/klistbox.sip delete mode 100644 sip/kdeui/klistview.sip delete mode 100644 sip/kdeui/klistviewlineedit.sip delete mode 100644 sip/kdeui/klistviewsearchline.sip delete mode 100644 sip/kdeui/kmainwindow.sip delete mode 100644 sip/kdeui/kmainwindowiface.sip delete mode 100644 sip/kdeui/kmenubar.sip delete mode 100644 sip/kdeui/kmessagebox.sip delete mode 100644 sip/kdeui/knuminput.sip delete mode 100644 sip/kdeui/knumvalidator.sip delete mode 100644 sip/kdeui/kpanelapplet.sip delete mode 100644 sip/kdeui/kpanelappmenu.sip delete mode 100644 sip/kdeui/kpanelextension.sip delete mode 100644 sip/kdeui/kpanelmenu.sip delete mode 100644 sip/kdeui/kpassdlg.sip delete mode 100644 sip/kdeui/kpassivepopup.sip delete mode 100644 sip/kdeui/kpixmapio.sip delete mode 100644 sip/kdeui/kpixmapregionselectordialog.sip delete mode 100644 sip/kdeui/kpixmapregionselectorwidget.sip delete mode 100644 sip/kdeui/kpopupmenu.sip delete mode 100644 sip/kdeui/kprogress.sip delete mode 100644 sip/kdeui/kpushbutton.sip delete mode 100644 sip/kdeui/krestrictedline.sip delete mode 100644 sip/kdeui/krootpixmap.sip delete mode 100644 sip/kdeui/kruler.sip delete mode 100644 sip/kdeui/kscrollview.sip delete mode 100644 sip/kdeui/kselect.sip delete mode 100644 sip/kdeui/kseparator.sip delete mode 100644 sip/kdeui/ksharedpixmap.sip delete mode 100644 sip/kdeui/kshortcutdialog.sip delete mode 100644 sip/kdeui/ksplashscreen.sip delete mode 100644 sip/kdeui/ksqueezedtextlabel.sip delete mode 100644 sip/kdeui/kstatusbar.sip delete mode 100644 sip/kdeui/kstdaction.sip delete mode 100644 sip/kdeui/kstdguiitem.sip delete mode 100644 sip/kdeui/kstringvalidator.sip delete mode 100644 sip/kdeui/ksystemtray.sip delete mode 100644 sip/kdeui/ktabbar.sip delete mode 100644 sip/kdeui/ktabctl.sip delete mode 100644 sip/kdeui/ktabwidget.sip delete mode 100644 sip/kdeui/ktextbrowser.sip delete mode 100644 sip/kdeui/ktextedit.sip delete mode 100644 sip/kdeui/kthemebase.sip delete mode 100644 sip/kdeui/kthemestyle.sip delete mode 100644 sip/kdeui/ktimewidget.sip delete mode 100644 sip/kdeui/ktimezonewidget.sip delete mode 100644 sip/kdeui/ktip.sip delete mode 100644 sip/kdeui/ktmainwindow.sip delete mode 100644 sip/kdeui/ktoolbar.sip delete mode 100644 sip/kdeui/ktoolbarbutton.sip delete mode 100644 sip/kdeui/ktoolbarlabelaction.sip delete mode 100644 sip/kdeui/ktoolbarradiogroup.sip delete mode 100644 sip/kdeui/kurllabel.sip delete mode 100644 sip/kdeui/kwindowinfo.sip delete mode 100644 sip/kdeui/kwindowlistmenu.sip delete mode 100644 sip/kdeui/kwizard.sip delete mode 100644 sip/kdeui/kwordwrap.sip delete mode 100644 sip/kdeui/kxmlgui.sip delete mode 100644 sip/kdeui/kxmlguibuilder.sip delete mode 100644 sip/kdeui/kxmlguiclient.sip delete mode 100644 sip/kdeui/kxmlguifactory.sip delete mode 100644 sip/kdeui/qxembed.sip create mode 100644 sip/tdecore/bytearray.sip create mode 100644 sip/tdecore/fixx11h.sip create mode 100644 sip/tdecore/kaboutdata.sip create mode 100644 sip/tdecore/kaccel.sip create mode 100644 sip/tdecore/kaccelaction.sip create mode 100644 sip/tdecore/kaccelbase.sip create mode 100644 sip/tdecore/kallocator.sip create mode 100644 sip/tdecore/kapplication.sip create mode 100644 sip/tdecore/kasyncio.sip create mode 100644 sip/tdecore/kaudioplayer.sip create mode 100644 sip/tdecore/kbufferedio.sip create mode 100644 sip/tdecore/kcalendarsystem.sip create mode 100644 sip/tdecore/kcalendarsystemfactory.sip create mode 100644 sip/tdecore/kcatalogue.sip create mode 100644 sip/tdecore/kcharsets.sip create mode 100644 sip/tdecore/kclipboard.sip create mode 100644 sip/tdecore/kcmdlineargs.sip create mode 100644 sip/tdecore/kcompletion.sip create mode 100644 sip/tdecore/kconfig.sip create mode 100644 sip/tdecore/kconfigbackend.sip create mode 100644 sip/tdecore/kconfigbase.sip create mode 100644 sip/tdecore/kconfigdata.sip create mode 100644 sip/tdecore/kconfigdialogmanager.sip create mode 100644 sip/tdecore/kconfigskeleton.sip create mode 100644 sip/tdecore/kcrash.sip create mode 100644 sip/tdecore/kdcoppropertyproxy.sip create mode 100644 sip/tdecore/kdebug.sip create mode 100644 sip/tdecore/kdesktopfile.sip create mode 100644 sip/tdecore/kdesktopwidget.sip create mode 100644 sip/tdecore/kdestyle.sip create mode 100644 sip/tdecore/kdeversion.sip create mode 100644 sip/tdecore/kglobal.sip create mode 100644 sip/tdecore/kglobalaccel.sip create mode 100644 sip/tdecore/kglobalsettings.sip create mode 100644 sip/tdecore/kiconeffect.sip create mode 100644 sip/tdecore/kiconloader.sip create mode 100644 sip/tdecore/kicontheme.sip create mode 100644 sip/tdecore/kidna.sip create mode 100644 sip/tdecore/kinstance.sip create mode 100644 sip/tdecore/kipc.sip create mode 100644 sip/tdecore/kkeynative.sip create mode 100644 sip/tdecore/kkeyserver_x11.sip create mode 100644 sip/tdecore/klibloader.sip create mode 100644 sip/tdecore/klocale.sip create mode 100644 sip/tdecore/klockfile.sip create mode 100644 sip/tdecore/kmacroexpander.sip create mode 100644 sip/tdecore/kmanagerselection.sip create mode 100644 sip/tdecore/kmdcodec.sip create mode 100644 sip/tdecore/kmimesourcefactory.sip create mode 100644 sip/tdecore/kmountpoint.sip create mode 100644 sip/tdecore/kmultipledrag.sip create mode 100644 sip/tdecore/knotifyclient.sip create mode 100644 sip/tdecore/kpalette.sip create mode 100644 sip/tdecore/kpixmapprovider.sip create mode 100644 sip/tdecore/kprocctrl.sip create mode 100644 sip/tdecore/kprocess.sip create mode 100644 sip/tdecore/kprocio.sip create mode 100644 sip/tdecore/kpty.sip create mode 100644 sip/tdecore/krandomsequence.sip create mode 100644 sip/tdecore/kregexp.sip create mode 100644 sip/tdecore/krfcdate.sip create mode 100644 sip/tdecore/krootprop.sip create mode 100644 sip/tdecore/ksavefile.sip create mode 100644 sip/tdecore/ksharedptr.sip create mode 100644 sip/tdecore/kshell.sip create mode 100644 sip/tdecore/kshortcut.sip create mode 100644 sip/tdecore/kshortcutlist.sip create mode 100644 sip/tdecore/ksimpleconfig.sip create mode 100644 sip/tdecore/ksock.sip create mode 100644 sip/tdecore/kstartupinfo.sip create mode 100644 sip/tdecore/kstaticdeleter.sip create mode 100644 sip/tdecore/kstdaccel.sip create mode 100644 sip/tdecore/kstddirs.sip create mode 100644 sip/tdecore/kstringhandler.sip create mode 100644 sip/tdecore/ktempdir.sip create mode 100644 sip/tdecore/ktempfile.sip create mode 100644 sip/tdecore/ktimezones.sip create mode 100644 sip/tdecore/kuniqueapplication.sip create mode 100644 sip/tdecore/kurl.sip create mode 100644 sip/tdecore/kurldrag.sip create mode 100644 sip/tdecore/kuser.sip create mode 100644 sip/tdecore/kvmallocator.sip create mode 100644 sip/tdecore/kwin.sip create mode 100644 sip/tdecore/kwinmodule.sip create mode 100644 sip/tdecore/kxmessages.sip create mode 100644 sip/tdecore/netwm.sip create mode 100644 sip/tdecore/netwm_def.sip create mode 100644 sip/tdecore/tdecore-kde310.diff create mode 100644 sip/tdecore/tdecore-kde311.diff create mode 100644 sip/tdecore/tdecore-kde312.diff create mode 100644 sip/tdecore/tdecore-kde313.diff create mode 100644 sip/tdecore/tdecore-kde314.diff create mode 100644 sip/tdecore/tdecore-kde315.diff create mode 100644 sip/tdecore/tdecore-kde320.diff create mode 100644 sip/tdecore/tdecore-kde321.diff create mode 100644 sip/tdecore/tdecore-kde322.diff create mode 100644 sip/tdecore/tdecore-kde323.diff create mode 100644 sip/tdecore/tdecore-kde330.diff create mode 100644 sip/tdecore/tdecore-kde331.diff create mode 100644 sip/tdecore/tdecore-kde332.diff create mode 100644 sip/tdecore/tdecore-kde340.diff create mode 100644 sip/tdecore/tdecore-kde341.diff create mode 100644 sip/tdecore/tdecore-kde342.diff create mode 100644 sip/tdecore/tdecore-kde343.diff create mode 100644 sip/tdecore/tdecore-kde350.diff create mode 100644 sip/tdecore/tdecore-kde351.diff create mode 100644 sip/tdecore/tdecore-kde352.diff create mode 100644 sip/tdecore/tdecore-kde353.diff create mode 100644 sip/tdecore/tdecoremod.sip.in create mode 100644 sip/tdefx/kcpuinfo.sip create mode 100644 sip/tdefx/kdrawutil.sip create mode 100644 sip/tdefx/kimageeffect.sip create mode 100644 sip/tdefx/kpixmap.sip create mode 100644 sip/tdefx/kpixmapeffect.sip create mode 100644 sip/tdefx/kpixmapsplitter.sip create mode 100644 sip/tdefx/kstyle.sip create mode 100644 sip/tdefx/tdefx-kde320.diff create mode 100644 sip/tdefx/tdefx-kde321.diff create mode 100644 sip/tdefx/tdefx-kde322.diff create mode 100644 sip/tdefx/tdefx-kde323.diff create mode 100644 sip/tdefx/tdefx-kde330.diff create mode 100644 sip/tdefx/tdefx-kde331.diff create mode 100644 sip/tdefx/tdefx-kde332.diff create mode 100644 sip/tdefx/tdefx-kde340.diff create mode 100644 sip/tdefx/tdefx-kde341.diff create mode 100644 sip/tdefx/tdefx-kde342.diff create mode 100644 sip/tdefx/tdefx-kde343.diff create mode 100644 sip/tdefx/tdefx-kde350.diff create mode 100644 sip/tdefx/tdefx-kde351.diff create mode 100644 sip/tdefx/tdefx-kde352.diff create mode 100644 sip/tdefx/tdefx-kde353.diff create mode 100644 sip/tdefx/tdefxmod.sip.in create mode 100644 sip/tdeprint/driver.sip create mode 100644 sip/tdeprint/kmjob.sip create mode 100644 sip/tdeprint/kmjobmanager.sip create mode 100644 sip/tdeprint/kmmanager.sip create mode 100644 sip/tdeprint/kmobject.sip create mode 100644 sip/tdeprint/kmprinter.sip create mode 100644 sip/tdeprint/kpreloadobject.sip create mode 100644 sip/tdeprint/kprintaction.sip create mode 100644 sip/tdeprint/kprintdialog.sip create mode 100644 sip/tdeprint/kprintdialogpage.sip create mode 100644 sip/tdeprint/kprinter.sip create mode 100644 sip/tdeprint/tdeprint-kde310.diff create mode 100644 sip/tdeprint/tdeprint-kde311.diff create mode 100644 sip/tdeprint/tdeprint-kde312.diff create mode 100644 sip/tdeprint/tdeprint-kde313.diff create mode 100644 sip/tdeprint/tdeprint-kde314.diff create mode 100644 sip/tdeprint/tdeprint-kde315.diff create mode 100644 sip/tdeprint/tdeprint-kde320.diff create mode 100644 sip/tdeprint/tdeprint-kde321.diff create mode 100644 sip/tdeprint/tdeprint-kde322.diff create mode 100644 sip/tdeprint/tdeprint-kde323.diff create mode 100644 sip/tdeprint/tdeprint-kde330.diff create mode 100644 sip/tdeprint/tdeprint-kde331.diff create mode 100644 sip/tdeprint/tdeprint-kde332.diff create mode 100644 sip/tdeprint/tdeprint-kde340.diff create mode 100644 sip/tdeprint/tdeprint-kde341.diff create mode 100644 sip/tdeprint/tdeprint-kde342.diff create mode 100644 sip/tdeprint/tdeprint-kde343.diff create mode 100644 sip/tdeprint/tdeprint-kde350.diff create mode 100644 sip/tdeprint/tdeprint-kde351.diff create mode 100644 sip/tdeprint/tdeprint-kde352.diff create mode 100644 sip/tdeprint/tdeprint-kde353.diff create mode 100644 sip/tdeprint/tdeprintmod.sip.in create mode 100644 sip/tdeui/kaboutapplication.sip create mode 100644 sip/tdeui/kaboutdialog.sip create mode 100644 sip/tdeui/kaboutkde.sip create mode 100644 sip/tdeui/kaccelmanager.sip create mode 100644 sip/tdeui/kaccelmenu.sip create mode 100644 sip/tdeui/kaction.sip create mode 100644 sip/tdeui/kactionclasses.sip create mode 100644 sip/tdeui/kactioncollection.sip create mode 100644 sip/tdeui/kactionselector.sip create mode 100644 sip/tdeui/kactionshortcutlist.sip create mode 100644 sip/tdeui/kactivelabel.sip create mode 100644 sip/tdeui/kalphapainter.sip create mode 100644 sip/tdeui/kanimwidget.sip create mode 100644 sip/tdeui/karrowbutton.sip create mode 100644 sip/tdeui/kauthicon.sip create mode 100644 sip/tdeui/kbugreport.sip create mode 100644 sip/tdeui/kbuttonbox.sip create mode 100644 sip/tdeui/kcharselect.sip create mode 100644 sip/tdeui/kcmenumngr.sip create mode 100644 sip/tdeui/kcmodule.sip create mode 100644 sip/tdeui/kcolorbtn.sip create mode 100644 sip/tdeui/kcolorcombo.sip create mode 100644 sip/tdeui/kcolordialog.sip create mode 100644 sip/tdeui/kcolordrag.sip create mode 100644 sip/tdeui/kcombobox.sip create mode 100644 sip/tdeui/kcommand.sip create mode 100644 sip/tdeui/kcompletionbox.sip create mode 100644 sip/tdeui/kconfigdialog.sip create mode 100644 sip/tdeui/kcontainer.sip create mode 100644 sip/tdeui/kcursor.sip create mode 100644 sip/tdeui/kdatepicker.sip create mode 100644 sip/tdeui/kdatepik.sip create mode 100644 sip/tdeui/kdatetbl.sip create mode 100644 sip/tdeui/kdatetimewidget.sip create mode 100644 sip/tdeui/kdatewidget.sip create mode 100644 sip/tdeui/kdbtn.sip create mode 100644 sip/tdeui/kdcopactionproxy.sip create mode 100644 sip/tdeui/kdialog.sip create mode 100644 sip/tdeui/kdialogbase.sip create mode 100644 sip/tdeui/kdocktabctl.sip create mode 100644 sip/tdeui/kdockwidget.sip create mode 100644 sip/tdeui/kdockwindow.sip create mode 100644 sip/tdeui/kdualcolorbtn.sip create mode 100644 sip/tdeui/kdualcolorbutton.sip create mode 100644 sip/tdeui/keditcl.sip create mode 100644 sip/tdeui/keditlistbox.sip create mode 100644 sip/tdeui/kedittoolbar.sip create mode 100644 sip/tdeui/kfontcombo.sip create mode 100644 sip/tdeui/kfontdialog.sip create mode 100644 sip/tdeui/kfontrequester.sip create mode 100644 sip/tdeui/kguiitem.sip create mode 100644 sip/tdeui/khelpmenu.sip create mode 100644 sip/tdeui/kiconview.sip create mode 100644 sip/tdeui/kiconviewsearchline.sip create mode 100644 sip/tdeui/kinputdialog.sip create mode 100644 sip/tdeui/kjanuswidget.sip create mode 100644 sip/tdeui/kkeybutton.sip create mode 100644 sip/tdeui/kkeydialog.sip create mode 100644 sip/tdeui/klanguagebutton.sip create mode 100644 sip/tdeui/kled.sip create mode 100644 sip/tdeui/klineedit.sip create mode 100644 sip/tdeui/klineeditdlg.sip create mode 100644 sip/tdeui/klistbox.sip create mode 100644 sip/tdeui/klistview.sip create mode 100644 sip/tdeui/klistviewlineedit.sip create mode 100644 sip/tdeui/klistviewsearchline.sip create mode 100644 sip/tdeui/kmainwindow.sip create mode 100644 sip/tdeui/kmainwindowiface.sip create mode 100644 sip/tdeui/kmenubar.sip create mode 100644 sip/tdeui/kmessagebox.sip create mode 100644 sip/tdeui/knuminput.sip create mode 100644 sip/tdeui/knumvalidator.sip create mode 100644 sip/tdeui/kpanelapplet.sip create mode 100644 sip/tdeui/kpanelappmenu.sip create mode 100644 sip/tdeui/kpanelextension.sip create mode 100644 sip/tdeui/kpanelmenu.sip create mode 100644 sip/tdeui/kpassdlg.sip create mode 100644 sip/tdeui/kpassivepopup.sip create mode 100644 sip/tdeui/kpixmapio.sip create mode 100644 sip/tdeui/kpixmapregionselectordialog.sip create mode 100644 sip/tdeui/kpixmapregionselectorwidget.sip create mode 100644 sip/tdeui/kpopupmenu.sip create mode 100644 sip/tdeui/kprogress.sip create mode 100644 sip/tdeui/kpushbutton.sip create mode 100644 sip/tdeui/krestrictedline.sip create mode 100644 sip/tdeui/krootpixmap.sip create mode 100644 sip/tdeui/kruler.sip create mode 100644 sip/tdeui/kscrollview.sip create mode 100644 sip/tdeui/kselect.sip create mode 100644 sip/tdeui/kseparator.sip create mode 100644 sip/tdeui/ksharedpixmap.sip create mode 100644 sip/tdeui/kshortcutdialog.sip create mode 100644 sip/tdeui/ksplashscreen.sip create mode 100644 sip/tdeui/ksqueezedtextlabel.sip create mode 100644 sip/tdeui/kstatusbar.sip create mode 100644 sip/tdeui/kstdaction.sip create mode 100644 sip/tdeui/kstdguiitem.sip create mode 100644 sip/tdeui/kstringvalidator.sip create mode 100644 sip/tdeui/ksystemtray.sip create mode 100644 sip/tdeui/ktabbar.sip create mode 100644 sip/tdeui/ktabctl.sip create mode 100644 sip/tdeui/ktabwidget.sip create mode 100644 sip/tdeui/ktextbrowser.sip create mode 100644 sip/tdeui/ktextedit.sip create mode 100644 sip/tdeui/kthemebase.sip create mode 100644 sip/tdeui/kthemestyle.sip create mode 100644 sip/tdeui/ktimewidget.sip create mode 100644 sip/tdeui/ktimezonewidget.sip create mode 100644 sip/tdeui/ktip.sip create mode 100644 sip/tdeui/ktmainwindow.sip create mode 100644 sip/tdeui/ktoolbar.sip create mode 100644 sip/tdeui/ktoolbarbutton.sip create mode 100644 sip/tdeui/ktoolbarlabelaction.sip create mode 100644 sip/tdeui/ktoolbarradiogroup.sip create mode 100644 sip/tdeui/kurllabel.sip create mode 100644 sip/tdeui/kwindowinfo.sip create mode 100644 sip/tdeui/kwindowlistmenu.sip create mode 100644 sip/tdeui/kwizard.sip create mode 100644 sip/tdeui/kwordwrap.sip create mode 100644 sip/tdeui/kxmlgui.sip create mode 100644 sip/tdeui/kxmlguibuilder.sip create mode 100644 sip/tdeui/kxmlguiclient.sip create mode 100644 sip/tdeui/kxmlguifactory.sip create mode 100644 sip/tdeui/qxembed.sip create mode 100644 sip/tdeui/tdeui-kde310.diff create mode 100644 sip/tdeui/tdeui-kde311.diff create mode 100644 sip/tdeui/tdeui-kde312.diff create mode 100644 sip/tdeui/tdeui-kde313.diff create mode 100644 sip/tdeui/tdeui-kde314.diff create mode 100644 sip/tdeui/tdeui-kde315.diff create mode 100644 sip/tdeui/tdeui-kde320.diff create mode 100644 sip/tdeui/tdeui-kde321.diff create mode 100644 sip/tdeui/tdeui-kde322.diff create mode 100644 sip/tdeui/tdeui-kde323.diff create mode 100644 sip/tdeui/tdeui-kde330.diff create mode 100644 sip/tdeui/tdeui-kde331.diff create mode 100644 sip/tdeui/tdeui-kde332.diff create mode 100644 sip/tdeui/tdeui-kde340.diff create mode 100644 sip/tdeui/tdeui-kde341.diff create mode 100644 sip/tdeui/tdeui-kde342.diff create mode 100644 sip/tdeui/tdeui-kde343.diff create mode 100644 sip/tdeui/tdeui-kde350.diff create mode 100644 sip/tdeui/tdeui-kde351.diff create mode 100644 sip/tdeui/tdeui-kde352.diff create mode 100644 sip/tdeui/tdeui-kde353.diff create mode 100644 sip/tdeui/tdeuimod.sip.in (limited to 'sip') diff --git a/sip/kdecore/bytearray.sip b/sip/kdecore/bytearray.sip deleted file mode 100644 index aae4780..0000000 --- a/sip/kdecore/bytearray.sip +++ /dev/null @@ -1,945 +0,0 @@ -// -// Copyright 2004 Jim Bublitz -// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson -// may also apply - -// module tdecore version KDE_3_2_2 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -%ModuleHeaderCode -#include -%End - - -void dcop_add (QDataStream&, QWidget::FocusPolicy /Constrained/); -void dcop_add (QDataStream&, int /Constrained/, const QCString& = "int"); -//void dcop_add (QDataStream&, longlong); -//void dcop_add (QDataStream&, ulonglong); -void dcop_add (QDataStream&, double, const QCString& = "double"); -void dcop_add (QDataStream&, QString); -void dcop_add (QDataStream&, QStringList); -void dcop_add (QDataStream&, QCString); -void dcop_add (QDataStream&, KURL); -void dcop_add (QDataStream&, KURL::List); -void dcop_add (QDataStream&, QSize); -void dcop_add (QDataStream&, QRect); -void dcop_add (QDataStream&, QRegion); -void dcop_add (QDataStream&, QPoint); -void dcop_add (QDataStream&, QFont); -void dcop_add (QDataStream&, QCursor); -void dcop_add (QDataStream&, QPixmap); -void dcop_add (QDataStream&, QColor); -void dcop_add (QDataStream&, QColorGroup); -void dcop_add (QDataStream&, QPalette); -void dcop_add (QDataStream&, QBrush); -void dcop_add (QDataStream&, DCOPRef); -void dcop_add (QDataStream&, QVariant); -void dcop_add (QDataStream&, QDate); -void dcop_add (QDataStream&, QTime); -void dcop_add (QDataStream&, QDateTime); -void dcop_add (QDataStream&, QImage); -void dcop_add (QDataStream&, QKeySequence); -void dcop_add (QDataStream&, QPen); -void dcop_add (QDataStream&, QPicture); -void dcop_add (QDataStream&, QPointArray); -void dcop_add (QDataStream&, QByteArray); - -void dcop_add (QDataStream&, SIP_PYDICT, QCString); -%MethodCode - const sipTypeDef *map_td = sipFindType(*a2); - - if (map_td) - { - int iserr = 0; - void *map_v; - - map_v = sipForceConvertToType(a1, map_td, NULL, - SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); - - if (iserr) - { - sipIsErr = 1; - } - else if (*a2 == "QMap") - { - QMap *map = (QMap *)map_v; - - *a0 << *map; - } - else if (*a2 == "QMap") - { - QMap *map = (QMap *)map_v; - - *a0 << *map; - } - else if (*a2 == "QMap") - { - QMap *map = (QMap *)map_v; - - *a0 << *map; - } - else if (*a2 == "QMap") - { - QMap *map = (QMap *)map_v; - - *a0 << *map; - } - } -%End - - -void dcop_add (QDataStream&, SIP_PYLIST, QCString); -%MethodCode - const sipTypeDef *list_td = sipFindType(*a2); - - if (list_td) - { - int iserr = 0; - void *list_v; - - list_v = sipForceConvertToType(a1, list_td, NULL, - SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); - - if (iserr) - { - sipIsErr = 1; - } - else if (*a2 == "QValueList") - { - QValueList *list = (QValueList *)list_v; - - *a0 << *list; - } - else if (*a2 == "QValueList") - { - QValueList *list = (QValueList *)list_v; - - *a0 << *list; - } - } -%End - - -void dcop_next (QDataStream&, QCString&); -%MethodCode - if (*a1 == "char") - { - Q_INT8 res; - *a0 >> res; - return PyInt_FromLong ((long)res); - } - else if (*a1 == "bool") - { - bool res; - *a0 >> res; - return PyBool_FromLong ((long)res); - } - else if (*a1 == "int") - { - int res; - *a0 >> res; - return PyInt_FromLong ((long)res); - } - else if (*a1 == "long") - { - long res; - *a0 >> res; - return PyLong_FromLong (res); - } - else if (*a1 == "short") - { - short res; - *a0 >> res; - return PyInt_FromLong ((long)res); - } - if (*a1 == "uchar" || *a1 == "unsigned char") - { - Q_UINT8 res; - *a0 >> res; - return PyInt_FromLong ((long)res); - } - else if (*a1 == "uint" || *a1 == "unsigned int") - { - unsigned int res; - *a0 >> res; - return PyInt_FromLong ((long)res); - } - else if (*a1 == "ulong" || *a1 == "unsigned long") - { - unsigned long res; - *a0 >> res; - return PyLong_FromLong (res); - } - else if (*a1 == "Q_INT32") - { - Q_INT32 res; - *a0 >> res; - return PyLong_FromLong ((long)res); - } - else if (*a1 == "pid_t") - { - pid_t res; - *a0 >> res; - return PyLong_FromLong ((long)res); - } - else if (*a1 == "ushort" || *a1 == "unsigned short") - { - unsigned short res; - *a0 >> res; - return PyInt_FromLong ((long)res); - } - else if (*a1 == "float") - { - float res; - *a0 >> res; - return PyFloat_FromDouble ((double)res); - } - else if (*a1 == "double") - { - double res; - *a0 >> res; - return PyFloat_FromDouble (res); - } - else if (*a1 == "QString") - { - QString res; - *a0 >> res; - return sipConvertFromNewType(new QString(res), sipType_QString, NULL); - } - else if (*a1 == "QStringList") - { - QStringList res; - *a0 >> res; - return sipConvertFromNewType(new QStringList(res), sipType_QStringList, NULL); - } - else if (*a1 == "QCString") - { - QCString res; - *a0 >> res; - return sipConvertFromNewType(new QCString(res), sipType_QCString, NULL); - } - else if (*a1 == "KURL") - { - KURL res; - *a0 >> res; - return sipConvertFromNewType(new KURL(res), sipType_KURL, NULL); - } - else if (*a1 == "KURL::List") - { - KURL::List res; - *a0 >> res; - return sipConvertFromNewType(new KURL::List(res), sipType_KURL_List, NULL); - } - else if (*a1 == "QSize") - { - QSize res; - *a0 >> res; - return sipConvertFromNewType(new QSize(res), sipType_QSize, NULL); - } - else if (*a1 == "QRect") - { - QRect res; - *a0 >> res; - return sipConvertFromNewType(new QRect(res), sipType_QRect, NULL); - } - else if (*a1 == "QRegion") - { - QRect res; - *a0 >> res; - return sipConvertFromNewType(new QRegion(res), sipType_QRegion, NULL); - } - else if (*a1 == "QPoint") - { - QPoint res; - *a0 >> res; - return sipConvertFromNewType(new QPoint(res), sipType_QPoint, NULL); - } - else if (*a1 == "QFont") - { - QFont res; - *a0 >> res; - return sipConvertFromNewType(new QFont(res), sipType_QFont, NULL); - } - else if (*a1 == "QCursor") - { - QCursor res; - *a0 >> res; - return sipConvertFromNewType(new QCursor(res), sipType_QCursor, NULL); - } - else if (*a1 == "QPixmap") - { - QPixmap res; - *a0 >> res; - return sipConvertFromNewType(new QPixmap(res), sipType_QPixmap, NULL); - } - else if (*a1 == "QColor") - { - QColor res; - *a0 >> res; - return sipConvertFromNewType(new QColor(res), sipType_QColor, NULL); - } - else if (*a1 == "QColorGroup") - { - QColorGroup res; - *a0 >> res; - return sipConvertFromNewType(new QColorGroup(res), sipType_QColorGroup, NULL); - } - else if (*a1 == "QPalette") - { - QPalette res; - *a0 >> res; - return sipConvertFromNewType(new QPalette(res), sipType_QPalette, NULL); - } - else if (*a1 == "QBrush") - { - QBrush res; - *a0 >> res; - return sipConvertFromNewType(new QBrush(res), sipType_QBrush, NULL); - } - else if (*a1 == "FocusPolicy") - { - unsigned int res; - *a0 >> res; - return PyInt_FromLong ((long)res); - } - else if (*a1 == "DCOPRef") - { - DCOPRef res; - *a0 >> res; - return sipConvertFromNewType(new DCOPRef(res), sipType_DCOPRef, NULL); - } - else if (*a1 == "QVariant") - { - QVariant res; - *a0 >> res; - return sipConvertFromNewType(new QVariant(res), sipType_QVariant, NULL); - } - else if (*a1 == "QDate") - { - QDate res; - *a0 >> res; - return sipConvertFromNewType(new QDate(res), sipType_QDate, NULL); - } - else if (*a1 == "QTime") - { - QTime res; - *a0 >> res; - return sipConvertFromNewType(new QTime(res), sipType_QTime, NULL); - } - else if (*a1 == "QDateTime") - { - QDateTime res; - *a0 >> res; - return sipConvertFromNewType(new QDateTime(res), sipType_QDateTime, NULL); - } - else if (*a1 == "QImage") - { - QImage res; - *a0 >> res; - return sipConvertFromNewType(new QImage(res), sipType_QImage, NULL); - } - else if (*a1 == "QKeySequence") - { - QKeySequence res; - *a0 >> res; - return sipConvertFromNewType(new QKeySequence(res), sipType_QKeySequence, NULL); - } - else if (*a1 == "QPen") - { - QPen res; - *a0 >> res; - return sipConvertFromNewType(new QPen(res), sipType_QPen, NULL); - } - else if (*a1 == "QPicture") - { - QPicture res; - *a0 >> res; - return sipConvertFromNewType(new QPicture(res), sipType_QPicture, NULL); - } - else if (*a1 == "QPointArray") - { - QPointArray res; - *a0 >> res; - return sipConvertFromNewType(new QPointArray(res), sipType_QPointArray, NULL); - } - else if (*a1 == "QByteArray") - { - QByteArray res; - *a0 >> res; - return sipConvertFromNewType(new QByteArray(res), sipType_QByteArray, NULL); - } - else if (*a1 == "QMap") - { - QMap res; - *a0 >> res; - return sipConvertFromType(&res, sipFindType(*a1), NULL); - } - else if (*a1 == "QMap") - { - QMap res; - *a0 >> res; - return sipConvertFromType(&res, sipFindType(*a1), NULL); - } - else if (*a1 == "QMap") - { - QMap res; - *a0 >> res; - return sipConvertFromType(&res, sipFindType(*a1), NULL); - } - else if (*a1 == "QMap") - { - QMap res; - *a0 >> res; - return sipConvertFromType(&res, sipFindType(*a1), NULL); - } - else if (*a1 == "QValueList") - { - QValueList res; - *a0 >> res; - return sipConvertFromType(&res, sipFindType(*a1), NULL); - } - else if (*a1 == "QValueList" || *a1 == "QCStringList") - { - QValueList res; - *a0 >> res; - return sipConvertFromType(&res, sipFindType(*a1), NULL); - } - -%End - -%ModuleHeaderCode -#include -#include -#include -%End - -%ModuleCode - -void dcop_add (QDataStream& s, int value, const QCString& type_) -{ - if (type_ == "char") - s << (Q_INT8)value; - else if (type_ == "bool") - s << (bool)value; - else if (type_ == "short") - s << (short)value; - else if (type_ == "int") - s << (int)value; - else if (type_ == "long") - s << (long)value; - else if (type_== "uchar" || type_ == "unsigned char") - s << (Q_UINT8)value; - else if (type_ == "ushort" || type_ == "unsigned short") - s << (ushort)value; - else if (type_ == "uint" || type_ == "unsigned int") - s << (uint)value; - else if (type_ == "ulong" || type_ == "unsigned long") - s << (long)value; -} - -/*void dcop_add (QDataStream& s, longlong value) -{ - s << value; -} - -void dcop_add (QDataStream& s, ulonglong value) -{ - s << value; -}*/ - -void dcop_add (QDataStream& s, double value, const QCString& type_) -{ - if (type_ == "double") - s << value; - else if (type_ == "float") - s << (float)value; -} - -void dcop_add (QDataStream& s, QString value) -{ - s << value; -} - -void dcop_add (QDataStream& s, QStringList value) -{ - s << value; -} - -void dcop_add (QDataStream& s, QCString value) -{ - s << value; -} - -void dcop_add (QDataStream& s, KURL value) -{ - s << value; -} - -void dcop_add (QDataStream& s, KURL::List value) -{ - s << value; -} - -void dcop_add (QDataStream& s, QSize value) -{ - s << value; -} - -void dcop_add (QDataStream& s, QRect value) -{ - s << value; -} - -void dcop_add (QDataStream& s, QRegion value) -{ - s << value; -} - -void dcop_add (QDataStream& s, QPoint value) -{ - s << value; -} - -void dcop_add (QDataStream& s, QFont value) -{ - s << value; -} - -void dcop_add (QDataStream& s, QCursor value) -{ - s << value; -} - -void dcop_add (QDataStream& s, QPixmap value) -{ - s << value; -} - -void dcop_add (QDataStream& s, QColor value) -{ - s << value; -} - -void dcop_add (QDataStream& s, QColorGroup value) -{ - s << value; -} - -void dcop_add (QDataStream& s, QPalette value) -{ - s << value; -} - -void dcop_add (QDataStream& s, QBrush value) -{ - s << value; -} - -void dcop_add (QDataStream& s, QWidget::FocusPolicy value) -{ - s << value; -} - -void dcop_add (QDataStream& s, DCOPRef value) -{ - s << value; -} - -void dcop_add (QDataStream& s, QVariant value) -{ - s << value; -} - -void dcop_add (QDataStream& s, QDate value) -{ - s << value; -} - -void dcop_add (QDataStream& s, QTime value) -{ - s << value; -} - -void dcop_add (QDataStream& s, QDateTime value) -{ - s << value; -} - -void dcop_add (QDataStream& s, QImage value) -{ - s << value; -} - -void dcop_add (QDataStream& s, QKeySequence value) -{ - s << value; -} - -void dcop_add (QDataStream& s, QPen value) -{ - s << value; -} - -void dcop_add (QDataStream& s, QPicture value) -{ - s << value; -} - -void dcop_add (QDataStream& s, QPointArray value) -{ - s << value; -} - -void dcop_add (QDataStream& s, QByteArray value) -{ - s << value; -} - -%End - - -%MappedType QMap -//converts a Python dict of QCString:DCOPRef -{ -%TypeHeaderCode -#include -//typedef QMap DCOPRefMap; -%End - -%ConvertFromTypeCode - // Convert to a Python dict - - if (!sipCpp) - return PyDict_New(); - - PyObject *dict; - - // Create the dictionary. - - if ((dict = PyDict_New()) == NULL) - return NULL; - - // Get it. - - const QMap cppmap = *sipCpp; - QMap::ConstIterator it; - - for (it = cppmap.begin (); it != cppmap.end (); ++it) - { - QCString acpp = it.key (); - DCOPRef bcpp = it.data (); - PyObject *ainst; - PyObject *binst = NULL; - if (((ainst = sipConvertFromNewType(new QCString(acpp), sipType_QCString, NULL)) == NULL) - || ((binst = sipConvertFromNewType(new DCOPRef(bcpp), sipType_DCOPRef, NULL)) == NULL) - || (PyDict_SetItem (dict, ainst, binst) < 0)) - { - Py_XDECREF (ainst); - Py_XDECREF (binst); - Py_DECREF (dict); - return NULL; - } - } - - return dict; -%End - - -%ConvertToTypeCode - // Convert a Python dictionary to a QMap on the heap. - - if (sipIsErr == NULL) - return PyDict_Check(sipPy); - - QMap *cppmap = new QMap; - - PyObject *aelem, *belem; - SIP_SSIZE_T pos = 0; - QCString *acpp; - DCOPRef *bcpp; - - while (PyDict_Next(sipPy, &pos, &aelem, &belem)) - { - int iserr = 0; - - acpp = (QCString *)sipForceConvertToType(aelem, sipType_QCString, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); - bcpp = (DCOPRef *)sipForceConvertToType(belem, sipType_DCOPRef, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cppmap; - return 0; - } - - cppmap->insert (*acpp, *bcpp); - } - - *sipCppPtr = cppmap; - - return 1; -%End -}; - -%MappedType QMap -//converts a Python dict of QString:DCOPRef -{ -%TypeHeaderCode -#include -//typedef QMap DCOPRefMap; -%End - -%ConvertFromTypeCode - // Convert to a Python dict - - if (!sipCpp) - return PyDict_New(); - - PyObject *dict; - - // Create the dictionary. - - if ((dict = PyDict_New()) == NULL) - return NULL; - - // Get it. - - const QMap cppmap = *sipCpp; - QMap::ConstIterator it; - - for (it = cppmap.begin (); it != cppmap.end (); ++it) - { - QString acpp = it.key (); - DCOPRef bcpp = it.data (); - PyObject *ainst; - PyObject *binst = NULL; - if (((ainst = sipConvertFromNewType(new QString(acpp), sipType_QString, sipTransferObj)) == NULL) - || ((binst = sipConvertFromNewType(new DCOPRef(bcpp), sipType_DCOPRef, sipTransferObj)) == NULL) - || (PyDict_SetItem (dict, ainst, binst) < 0)) - { - Py_XDECREF (ainst); - Py_XDECREF (binst); - Py_DECREF (dict); - return NULL; - } - } - - return dict; -%End - - -%ConvertToTypeCode - // Convert a Python dictionary to a QMap on the heap. - - if (sipIsErr == NULL) - return PyDict_Check(sipPy); - - QMap *cppmap = new QMap; - - PyObject *aelem, *belem; - SIP_SSIZE_T pos = 0; - QString *acpp; - DCOPRef *bcpp; - - while (PyDict_Next(sipPy, &pos, &aelem, &belem)) - { - int iserr = 0, acpp_state; - - acpp = (QString *)sipForceConvertToType(aelem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr); - bcpp = (DCOPRef *)sipForceConvertToType(belem, sipType_DCOPRef, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); - - if (iserr) - { - if (acpp) - sipReleaseType(acpp, sipType_QString, acpp_state); - - *sipIsErr = 1; - delete cppmap; - return 0; - } - - cppmap->insert (*acpp, *bcpp); - - sipReleaseType(acpp, sipType_QString, acpp_state); - } - - *sipCppPtr = cppmap; - - return 1; -%End -}; - - -//%MappedType QMap is available in tdecore/kconfig.sip - - -%MappedType QMap -//converts a Python dict of QString:QByteArray -{ -%TypeHeaderCode -#include -%End - -%ConvertFromTypeCode - // Convert to a Python dict - - if (!sipCpp) - return PyDict_New(); - - PyObject *dict; - - // Create the dictionary. - - if ((dict = PyDict_New()) == NULL) - return NULL; - - // Get it. - - const QMap cppmap = *sipCpp; - QMap::ConstIterator it; - - for (it = cppmap.begin (); it != cppmap.end (); ++it) - { - QString acpp = it.key (); - QByteArray bcpp = it.data (); - PyObject *ainst; - PyObject *binst = NULL; - if (((ainst = sipConvertFromNewType(new QString(acpp), sipType_QString, sipTransferObj)) == NULL) - || ((binst = sipConvertFromNewType(new QByteArray(bcpp), sipType_QByteArray, sipTransferObj)) == NULL) - || (PyDict_SetItem (dict, ainst, binst) < 0)) - { - Py_XDECREF (ainst); - Py_XDECREF (binst); - Py_DECREF (dict); - return NULL; - } - } - - return dict; -%End - - -%ConvertToTypeCode - // Convert a Python dictionary to a QMap on the heap. - - if (sipIsErr == NULL) - return PyDict_Check(sipPy); - - QMap *cppmap = new QMap; - - PyObject *aelem, *belem; - SIP_SSIZE_T pos = 0; - QString *acpp; - QByteArray *bcpp; - - while (PyDict_Next(sipPy, &pos, &aelem, &belem)) - { - int iserr = 0, acpp_state, bcpp_state; - - acpp = (QString *)sipForceConvertToType(aelem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr); - bcpp = (QByteArray *)sipForceConvertToType(belem, sipType_QByteArray, sipTransferObj, SIP_NOT_NONE, &bcpp_state, &iserr); - - if (iserr) - { - if (acpp) - sipReleaseType(acpp, sipType_QString, acpp_state); - - *sipIsErr = 1; - delete cppmap; - return 0; - } - - cppmap->insert (*acpp, *bcpp); - - sipReleaseType(acpp, sipType_QString, acpp_state); - sipReleaseType(bcpp, sipType_QByteArray, bcpp_state); - } - - *sipCppPtr = cppmap; - - return 1; -%End -}; - - - -%MappedType QValueList -//converts a Python list of DCOPRef -{ -%TypeHeaderCode -#include -%End - -%ConvertFromTypeCode - if (!sipCpp) - return PyList_New(0); - - // Create the list - PyObject *pylist; - if ((pylist = PyList_New(0)) == NULL) - return NULL; - - QValueList *cpplist = (QValueList *)sipCpp; - PyObject *inst; - - // Get it. - QValueList::Iterator it; - for( it = cpplist->begin(); it != cpplist->end(); ++it ) - { - if (((inst = sipConvertFromNewType(new DCOPRef(*it), sipType_DCOPRef, NULL)) == NULL) - || PyList_Append (pylist, inst) < 0) - { - Py_DECREF (pylist); - return NULL; - } - } - - return pylist; -%End - - -%ConvertToTypeCode - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - QValueList *cpplist = new QValueList; - - PyObject *elem; - DCOPRef *cpp; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - elem = PyList_GET_ITEM (sipPy, i); - cpp = (DCOPRef *)sipForceConvertToType(elem, sipType_DCOPRef, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (*cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - diff --git a/sip/kdecore/fixx11h.sip b/sip/kdecore/fixx11h.sip deleted file mode 100644 index 22fe789..0000000 --- a/sip/kdecore/fixx11h.sip +++ /dev/null @@ -1,30 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -%ModuleHeaderCode -#include -#include -%End - diff --git a/sip/kdecore/kaboutdata.sip b/sip/kdecore/kaboutdata.sip deleted file mode 100644 index 1117cda..0000000 --- a/sip/kdecore/kaboutdata.sip +++ /dev/null @@ -1,301 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KAboutPerson -{ -%TypeHeaderCode -#include -%End - - -public: - KAboutPerson (const char*, const char*, const char*, const char*); - KAboutPerson (); - QString name () const; - QString task () const; - QString emailAddress () const; - QString webAddress () const; - -}; // class KAboutPerson - - -class KAboutTranslator -{ -%TypeHeaderCode -#include -%End - - -public: - KAboutTranslator (const QString& = QString ::null , const QString& = QString ::null ); - QString name () const; - QString emailAddress () const; - -}; // class KAboutTranslator - - -class KAboutData -{ -%TypeHeaderCode -#include -%End - - -public: - - enum LicenseKey - { - License_Custom, - License_File, - License_Unknown, - License_GPL, - License_GPL_V2, - License_LGPL, - License_LGPL_V2, - License_BSD, - License_Artistic, - License_QPL, - License_QPL_V1_0 - }; - - -public: - KAboutData (const char*, const char*, const char*, const char* = 0, int = License_Unknown , const char* = 0, const char* = 0, const char* = 0, const char* = "submit@bugs.kde.org"); - void addAuthor (const char*, const char* = 0, const char* = 0, const char* = 0); - void addCredit (const char*, const char* = 0, const char* = 0, const char* = 0); - void setTranslator (const char*, const char*); - void setLicenseText (const char*); - void setLicenseTextFile (const QString&); - -%If ( KDE_3_3_0 - ) - void setAppName (const char*); - void setProgramName (const char*); - -%If ( KDE_3_4_0 - ) - void setProgramLogo (const QImage&); -%End - - void setVersion (const char*); - void setShortDescription (const char*); - void setLicense (KAboutData::LicenseKey); - void setCopyrightStatement (const char*); - void setOtherText (const char*); - void setHomepage (const char*); - void setBugAddress (const char*); -%End - - -%If ( KDE_3_2_0 - ) - void setProductName (const char*); -%End - - const char* appName () const; - -%If ( KDE_3_2_0 - ) - const char* productName () const; -%End - - QString programName () const; - -%If ( KDE_3_5_1 - ) - const char* internalProgramName () const; - void translateInternalProgramName () const; -%End - - -%If ( KDE_3_4_0 - ) - QImage programLogo () const; -%End - - QString version () const; - -%If ( KDE_3_5_1 - ) - const char* internalVersion () const; -%End - - QString shortDescription () const; - QString homepage () const; - QString bugAddress () const; - -%If ( KDE_3_5_1 - ) - const char* internalBugAddress () const; -%End - - const QValueList authors () const; - const QValueList credits () const; - const QValueList translators () const; - static QString aboutTranslationTeam (); - QString otherText () const; - QString license () const; - QString copyrightStatement () const; - -%If ( KDE_3_5_0 - ) - QString customAuthorPlainText () const; - QString customAuthorRichText () const; - bool customAuthorTextEnabled () const; - void setCustomAuthorText (const QString&, const QString&); - void unsetCustomAuthorText (); -%End - - -}; // class KAboutData - - - -%MappedType QValueList -//converts a Python list of KAboutPerson -{ -%TypeHeaderCode -#include -%End - -%ConvertFromTypeCode - if (!sipCpp) - return PyList_New(0); - - // Create the list - PyObject *pylist; - if ((pylist = PyList_New(0)) == NULL) - return NULL; - - QValueList *cpplist = (QValueList *)sipCpp; - PyObject *inst; - - // Get it. - QValueList::Iterator it; - for( it = cpplist->begin(); it != cpplist->end(); ++it ) - { - if (((inst = sipConvertFromNewType(new KAboutPerson(*it), sipType_KAboutPerson, NULL)) == NULL) - || PyList_Append (pylist, inst) < 0) - { - Py_DECREF (pylist); - return NULL; - } - } - - return pylist; -%End - - -%ConvertToTypeCode - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - QValueList *cpplist = new QValueList; - - PyObject *elem; - KAboutPerson *cpp; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - elem = PyList_GET_ITEM (sipPy, i); - cpp = (KAboutPerson *)sipForceConvertToType(elem, sipType_KAboutPerson, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (*cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - -%MappedType QValueList -//converts a Python list of KAboutTranslator -{ -%TypeHeaderCode -#include -%End - -%ConvertFromTypeCode - if (!sipCpp) - return PyList_New(0); - - // Create the list - PyObject *pylist; - if ((pylist = PyList_New(0)) == NULL) - return NULL; - - QValueList *cpplist = (QValueList *)sipCpp; - PyObject *inst; - - // Get it. - QValueList::Iterator it; - for( it = cpplist->begin(); it != cpplist->end(); ++it ) - { - if (((inst = sipConvertFromNewType(new KAboutTranslator(*it), sipType_KAboutTranslator, NULL)) == NULL) - || PyList_Append (pylist, inst) < 0) - { - Py_DECREF (pylist); - return NULL; - } - } - - return pylist; -%End - - -%ConvertToTypeCode - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - QValueList *cpplist = new QValueList; - - PyObject *elem; - KAboutTranslator *cpp; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - elem = PyList_GET_ITEM (sipPy, i); - cpp = (KAboutTranslator *)sipForceConvertToType(elem, sipType_KAboutTranslator, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (*cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - diff --git a/sip/kdecore/kaccel.sip b/sip/kdecore/kaccel.sip deleted file mode 100644 index 301aba2..0000000 --- a/sip/kdecore/kaccel.sip +++ /dev/null @@ -1,240 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KAccel : QAccel -{ -%TypeHeaderCode -#include -%End - - -public: - KAccel (QWidget* /TransferThis/, const char* = 0); - KAccel (QWidget*, QObject* /TransferThis/, const char* = 0); - KAccelActions& actions (); - bool isEnabled () const; - void setEnabled (bool); - bool setAutoUpdate (bool); - -%If ( KDE_3_1_4 - ) - KAccelAction* insert (const QString&, const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1, bool = 1); - KAccelAction* insert (const QString&, const QString&, const QString&, const KShortcut&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1, bool = 1); - KAccelAction* insert (const char*, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1, bool = 1); - KAccelAction* insert (KStdAccel::StdAccel, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1, bool = 1); -%End - - bool remove (const QString&); - bool updateConnections (); - const KShortcut& shortcut (const QString&) const; - bool setShortcut (const QString&, const KShortcut&); - -%If ( KDE_3_1_4 - ) - bool setSlot (const QString&, SIP_RXOBJ_CON, SIP_SLOT_CON ()); -%End - - bool setEnabled (const QString&, bool); - const QString& configGroup () const; - void setConfigGroup (const QString&); - bool readSettings (KConfigBase* = 0); - bool writeSettings (KConfigBase* = 0) const; - void emitKeycodeChanged (); - -signals: - void keycodeChanged (); - -public: - bool insertItem (const QString&, const QString&, const char*, int = 0, QPopupMenu* = 0, bool = 1); - bool insertItem (const QString&, const QString&, int, int, QPopupMenu*, bool = 1); - bool insertStdItem (KStdAccel::StdAccel, const QString& = QString ::null ); - -%If ( KDE_3_1_4 - ) - bool connectItem (const QString&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1); - bool connectItem (KStdAccel::StdAccel, SIP_RXOBJ_CON, SIP_SLOT_CON ()); -%End - - bool removeItem (const QString&); - bool setItemEnabled (const QString&, bool); - void changeMenuAccel (QPopupMenu*, int, const QString&); - void changeMenuAccel (QPopupMenu*, int, KStdAccel::StdAccel); - static int stringToKey (const QString&); - int currentKey (const QString&) const; - QString findKey (int) const; - -protected: -//igx virtual void virtual_hook (int, void*); - -public: - -%If ( - KDE_3_2_0 ) -//ig bool getAutoUpdate (); -//ig KAccelAction* insert (const QString&, const QString&); -%End - - -public: - -%If ( - KDE_3_1_4 ) - KAccelAction* insert (const QString&, const QString&, const QString&, const KShortcut&, const QObject*, const char*, bool = 1, bool = 1); - KAccelAction* insert (const QString&, const QString&, const QString&, const KShortcut&, const KShortcut&, const QObject*, const char*, bool = 1, bool = 1); - KAccelAction* insert (const char*, const KShortcut&, const QObject*, const char*, bool = 1, bool = 1); - KAccelAction* insert (KStdAccel::StdAccel, const QObject*, const char*, bool = 1, bool = 1); - bool setSlot (const QString&, const QObject*, const char*); -%End - - -public: - -%If ( - KDE_3_1_4 ) - bool connectItem (const QString&, const QObject*, const char*, bool = 1); - bool connectItem (KStdAccel::StdAccel, const QObject*, const char*); - -//force -%ConvertToSubClassCode - // The table of Python class objects indexed by their names. The table - // must be sorted by name. - - static sipStringTypeClassMap map[] = { - {sipName_KAccel, &sipClass_KAccel}, - {sipName_KApplication, &sipClass_KApplication}, - {sipName_KAsyncIO, &sipClass_KAsyncIO}, - {sipName_KAudioPlayer, &sipClass_KAudioPlayer}, - {sipName_KBufferedIO, &sipClass_KBufferedIO}, -#if KDE_VERSION >= 0x030100 - {sipName_KClipboardSynchronizer, &sipClass_KClipboardSynchronizer}, -#endif - {sipName_KCompletion, &sipClass_KCompletion}, - {sipName_KConfig, &sipClass_KConfig}, - {sipName_KConfigBase, &sipClass_KConfigBase}, - {sipName_KConfigGroup, &sipClass_KConfigGroup}, - {sipName_KDesktopFile, &sipClass_KDesktopFile}, - {sipName_KGlobalAccel, &sipClass_KGlobalAccel}, - {sipName_KLibFactory, &sipClass_KLibFactory}, - {sipName_KLibLoader, &sipClass_KLibLoader}, - {sipName_KLibrary, &sipClass_KLibrary}, - {sipName_KMultipleDrag, &sipClass_KMultipleDrag}, - {sipName_KProcIO, &sipClass_KProcIO}, - {sipName_KProcess, &sipClass_KProcess}, - {sipName_KProcessController, &sipClass_KProcessController}, - {sipName_KServerSocket, &sipClass_KServerSocket}, - {sipName_KShellProcess, &sipClass_KShellProcess}, - {sipName_KSimpleConfig, &sipClass_KSimpleConfig}, - {sipName_KSocket, &sipClass_KSocket}, - {sipName_KStartupInfo, &sipClass_KStartupInfo}, - {sipName_KUniqueApplication, &sipClass_KUniqueApplication}, - {sipName_KWinModule, &sipClass_KWinModule}, - }; - - sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0])); -%End -//end -%End - - -}; // class KAccel - - - -%MappedType QMap -//converts a Python dict of int:QString -{ -%TypeHeaderCode -#include -%End - -%ConvertFromTypeCode - - if (!sipCpp) - return PyDict_New(); - - PyObject *dict; - - // Create the dictionary. - - if ((dict = PyDict_New()) == NULL) - return NULL; - - // Get it. - - const QMap map = *sipCpp; - QMap::ConstIterator it; - - for (it = map.begin (); it != map.end (); ++it) - { - PyObject *iKey = PyInt_FromLong (((long) it.key ())); - PyObject *sData = PyString_FromString ((char *)((QString *)&it.data ())); - - if ((iKey == NULL) || (sData == NULL) || (PyDict_SetItem (dict, iKey, sData) < 0)) - { - Py_XDECREF (iKey); - Py_XDECREF (sData); - Py_DECREF (dict); - return NULL; - } - } - - return dict; -%End - - -%ConvertToTypeCode - // Convert a Python dictionary to a KKeyMapOrder on the heap. - - if (sipIsErr == NULL) - return PyDict_Check(sipPy); - - QMap *map = new QMap; - - PyObject *key, *value; - SIP_SSIZE_T pos = 0; - int iKey; - QString *sData; - - while (PyDict_Next(sipPy, &pos, &key, &value)) - { - int iserr = 0, sData_state; - - iKey = PyInt_AS_LONG (key); - sData = (QString *)sipForceConvertToType(value, sipType_QString, sipTransferObj, SIP_NOT_NONE, &sData_state, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete map; - return 0; - } - - map->insert (iKey, *sData); - - sipReleaseType(sData, sipType_QString, sData_state); - } - - *sipCppPtr = map; - - return 1; -%End -}; - - diff --git a/sip/kdecore/kaccelaction.sip b/sip/kdecore/kaccelaction.sip deleted file mode 100644 index 20947b6..0000000 --- a/sip/kdecore/kaccelaction.sip +++ /dev/null @@ -1,122 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KAccelAction -{ -%TypeHeaderCode -#include -%End - - -public: - KAccelAction (); - KAccelAction (const KAccelAction&); - KAccelAction (const QString&, const QString&, const QString&, const KShortcut&, const KShortcut&, const QObject*, const char*, bool, bool); - void clear (); - bool init (const QString&, const QString&, const QString&, const KShortcut&, const KShortcut&, const QObject*, const char*, bool, bool); - const QString& name () const; - const QString& label () const; - const QString& whatsThis () const; - const KShortcut& shortcut () const; - const KShortcut& shortcutDefault () const; - const KShortcut& shortcutDefault3 () const; - const KShortcut& shortcutDefault4 () const; - const QObject* objSlotPtr () const; - const char* methodSlotPtr () const; - bool isConfigurable () const; - bool isEnabled () const; - void setName (const QString&); - void setLabel (const QString&); - void setWhatsThis (const QString&); - bool setShortcut (const KShortcut&); - void setSlot (const QObject*, const char*); - void setConfigurable (bool); - void setEnabled (bool); - int getID () const; - void setID (int); - bool isConnected () const; - bool setKeySequence (uint, const KKeySequence&); - void clearShortcut (); - bool contains (const KKeySequence&); - QString toString () const; - QString toStringInternal () const; - static bool useFourModifierKeys (); - static void useFourModifierKeys (bool); - -protected: - void incConnections (); - void decConnections (); - -}; // class KAccelAction - - -class KAccelActions -{ -%TypeHeaderCode -#include -%End - - -public: - KAccelActions (); - KAccelActions (const KAccelActions&); - void clear (); - bool init (const KAccelActions&); - bool init (KConfigBase&, const QString&); - void updateShortcuts (KAccelActions&); - int actionIndex (const QString&) const; - KAccelAction* actionPtr (uint); - KAccelAction* actionPtr (const QString&); - KAccelAction* actionPtr (KKeySequence); - -%If ( KDE_3_1_4 - ) - KAccelAction& operator [] (uint); -%MethodCode -//returns (KAccelAction&) -//takes index | (uint) - sipRes = &((*sipCpp) [a0]); -%End - -%End - - KAccelAction* insert (const QString&, const QString&, const QString&, const KShortcut&, const KShortcut&, const QObject* = 0, const char* = 0, bool = 1, bool = 1); - KAccelAction* insert (const QString&, const QString&); - bool remove (const QString&); - bool readActions (const QString& = "Shortcuts", KConfigBase* = 0); - bool writeActions (const QString& = "Shortcuts", KConfigBase* = 0, bool = 0, bool = 0) const; - void emitKeycodeChanged (); - uint count () const; - -protected: - void resize (uint); - void insertPtr (KAccelAction*); - -private: - KAccelActions (KAccelBase*); - KAccelActions &operator=(const KAccelActions &); - -}; // class KAccelActions - diff --git a/sip/kdecore/kaccelbase.sip b/sip/kdecore/kaccelbase.sip deleted file mode 100644 index 334c6d8..0000000 --- a/sip/kdecore/kaccelbase.sip +++ /dev/null @@ -1,102 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KAccelBase -{ -%TypeHeaderCode -#include -%End - - -public: - - enum Init - { - QT_KEYS, - NATIVE_KEYS - }; - - - enum Signal - { - KEYCODE_CHANGED - }; - - KAccelBase (int); - uint actionCount () const; - KAccelActions& actions (); - bool isEnabled () const; - KAccelAction* actionPtr (const QString&); - KAccelAction* actionPtr (const KKey&); - KAccelAction* actionPtr (const KKeyServer::Key&); - const QString& configGroup () const; - void setConfigGroup (const QString&); - void setConfigGlobal (bool); - virtual void setEnabled (bool) = 0; - bool getAutoUpdate (); - bool setAutoUpdate (bool); - KAccelAction* insert (const QString&, const QString&); - KAccelAction* insert (const QString&, const QString&, const QString&, const KShortcut&, const KShortcut&, const QObject*, const char*, bool = 1, bool = 1); - bool remove (const QString&); - bool setActionSlot (const QString&, const QObject*, const char*); - bool updateConnections (); - bool setShortcut (const QString&, const KShortcut&); - bool setActionEnabled (const QString&, bool); - void readSettings (KConfigBase* = 0); - void writeSettings (KConfigBase* = 0) const; - QPopupMenu* createPopupMenu (QWidget*, const KKeySequence&); - -protected: - void slotRemoveAction (KAccelAction*); -//ig void createKeyList (QValueVector&); - bool insertConnection (KAccelAction*); - bool removeConnection (KAccelAction*); - virtual bool emitSignal (KAccelBase::Signal) = 0; - virtual bool connectKey (KAccelAction&, const KKeyServer::Key&) = 0; - virtual bool connectKey (const KKeyServer::Key&) = 0; - virtual bool disconnectKey (KAccelAction&, const KKeyServer::Key&) = 0; - virtual bool disconnectKey (const KKeyServer::Key&) = 0; - -protected: - -%If ( KDE_3_5_0 - ) - virtual bool isEnabledInternal () const; -%End - - -//ig class ActionInfo; - -//ig typedef QMap KKeyToActionMap; - -protected: - -%If ( - KDE_3_1_1 ) -//igx virtual void virtual_hook (int, void*); -%End - - -}; // class KAccelBase - diff --git a/sip/kdecore/kallocator.sip b/sip/kdecore/kallocator.sip deleted file mode 100644 index 7272123..0000000 --- a/sip/kdecore/kallocator.sip +++ /dev/null @@ -1,48 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KZoneAllocator -{ -%TypeHeaderCode -#include -%End - - -public: - KZoneAllocator (long = 131072); - void* allocate (size_t); - void deallocate (void*); - void free_since (void*); - -protected: -//ig typedef QValueList MemList; -//ig void addBlock (KZoneAllocator::MemBlock*); -//ig void delBlock (KZoneAllocator::MemBlock*); -//ig void insertHash (KZoneAllocator::MemBlock*); - void initHash (); - -}; // class KZoneAllocator - diff --git a/sip/kdecore/kapplication.sip b/sip/kdecore/kapplication.sip deleted file mode 100644 index e91de01..0000000 --- a/sip/kdecore/kapplication.sip +++ /dev/null @@ -1,449 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KApplication : QApplication, KInstance -{ -%TypeHeaderCode -#include -#include -extern char **pyArgvToC(PyObject *argvlist,int *argcp); -extern void updatePyArgv(PyObject *argvlist,int argc,char **argv); -%End - - -public: - - enum CaptionLayout - { - CaptionAppLast, - CaptionAppFirst, - CaptionNoApp - }; - - KApplication (bool = 1, bool = 1); - -%If ( KDE_3_3_0 - ) -//ig KApplication (Display*, Qt::HANDLE = 0, Qt::HANDLE = 0, bool = 1); -%End - -//ig KApplication (Display*, int&, char**, const QCString&, bool = 1, bool = 1); - KApplication (SIP_PYLIST, QCString&, bool = 1, bool = 1) [(int&, char**, const QCString&, bool = 1, bool = 1)]; -%MethodCode -//takes argv | (a Python list of strings) | rAppName | (Python string) | allowStyles | (bool = 1) | GUIenabled | (bool = 1) - - int argc, nargc; - char **argv; - - // Convert the list. - - if ((argv = pyArgvToC(a0, &argc)) == NULL) - return NULL; - - // Create it now the arguments are right. - - nargc = argc; - - Py_BEGIN_ALLOW_THREADS - - // The following two lines simulate the actual ctor call - // which is commented out below - KCmdLineArgs::init (nargc, argv, (char *)"unknown", (char *)"KDE Application", NULL, false); - sipCpp = new sipKApplication((bool)a1,(bool)a2); - - // This method calls KCmdLineArgs::initIgnore, which is a private method -// sipCpp = new sipKApplication (nargc,argv, qc, a1, a2); - - Py_END_ALLOW_THREADS - - // Now modify the original list. - - updatePyArgv(a0, argc, argv); -%End - - static void addCmdLineOptions (); - static KApplication* kApplication (); - KConfig* sessionConfig (); - bool isRestored () const; - void disableSessionManagement (); - -%If ( KDE_3_2_0 - ) - void enableSessionManagement (); -%End - - - enum ShutdownConfirm - { - ShutdownConfirmDefault, - ShutdownConfirmNo, - ShutdownConfirmYes - }; - - - enum ShutdownType - { - ShutdownTypeDefault, - ShutdownTypeNone, - ShutdownTypeReboot, - ShutdownTypeHalt - }; - - - enum ShutdownMode - { - ShutdownModeDefault, - ShutdownModeSchedule, - ShutdownModeTryNow, - ShutdownModeForceNow, - ShutdownModeInteractive - }; - - bool requestShutDown (KApplication::ShutdownConfirm = ShutdownConfirmDefault , KApplication::ShutdownType = ShutdownTypeDefault , KApplication::ShutdownMode = ShutdownModeDefault ); - void propagateSessionManager (); - void commitData (QSessionManager&); - void saveState (QSessionManager&); - -%If ( KDE_3_1_1 - ) - bool sessionSaving () const; -%End - - static DCOPClient* dcopClient (); - static void disableAutoDcopRegistration (); - QPixmap icon () const; - QString iconName () const; - QPixmap miniIcon () const; - QString miniIconName () const; - void setTopWidget (QWidget*); - -%If ( KDE_3_2_0 - ) - void invokeHelp (const QString&, const QString&, const QCString&) const; -%End - - void invokeHelp (const QString& = QString ::null , const QString& = QString ::null ) const; - void invokeHTMLHelp (const QString&, const QString& = QString ::null ) const; - -%If ( KDE_3_2_0 - ) - void invokeMailer (const QString&, const QString&, const QCString&); -%End - - void invokeMailer (const QString&, const QString&); - -%If ( KDE_3_3_0 - ) - void invokeMailer (const KURL&, const QCString&, bool); -%End - - -%If ( KDE_3_2_0 - ) - void invokeMailer (const KURL&, const QCString&); -%End - - void invokeMailer (const KURL&); - -%If ( KDE_3_2_0 - ) - void invokeMailer (const QString&, const QString&, const QString&, const QString&, const QString&, const QString&, const QStringList&, const QCString&); -%End - - void invokeMailer (const QString&, const QString&, const QString&, const QString&, const QString&, const QString& = QString ::null , const QStringList& = QStringList ()); - -public slots: - -%If ( KDE_3_2_0 - ) - void invokeBrowser (const QString&, const QCString&); -%End - - void invokeBrowser (const QString&); - -%If ( KDE_3_2_0 - ) - void cut (); - void copy (); - void paste (); - void clear (); - void selectAll (); -%End - - -public: - static QCString launcher (); - static int startServiceByName (const QString&, const QString&, QString* /Out/, QCString* /Out/, int*, const QCString& = QCString ("" ), bool = 0); - static int startServiceByName (const QString&, const QStringList&, QString* /Out/, QCString* /Out/, int*, const QCString& = QCString ("" ), bool = 0); - static int startServiceByDesktopPath (const QString&, const QString&, QString* /Out/, QCString* /Out/, int*, const QCString& = QCString ("" ), bool = 0); - static int startServiceByDesktopPath (const QString&, const QStringList&, QString* /Out/, QCString* /Out/, int*, const QCString& = QCString ("" ), bool = 0); - static int startServiceByDesktopName (const QString&, const QString&, QString* /Out/, QCString* /Out/, int*, const QCString& = QCString ("" ), bool = 0); - static int startServiceByDesktopName (const QString&, const QStringList&, QString* /Out/, QCString* /Out/, int*, const QCString& = QCString ("" ), bool = 0); - -%If ( KDE_3_2_0 - ) - static int tdeinitExec (const QString&, const QStringList&, QString* /Out/, int*, QCString&); -%End - - static int tdeinitExec (const QString&, const QStringList&, QString* /Out/, int*); - -%If ( KDE_3_2_0 - ) - static int tdeinitExecWait (const QString&, const QStringList&, QString* /Out/, int*, QCString&); -%End - - static int tdeinitExecWait (const QString&, const QStringList&, QString* /Out/, int*); - QString caption () const; -//ig KStyle* kstyle () const; - QString makeStdCaption (const QString&, bool = 1, bool = 0) const; - QString tempSaveName (const QString&) const; - QString checkRecoverFile (const QString&, bool&) const; - Display* getDisplay (); - void enableStyles (); - void disableStyles (); - void installX11EventFilter (QWidget*); - -%If ( KDE_3_2_0 - ) - void removeX11EventFilter (const QWidget*); -%End - - static int random (); - static QString randomString (int); - void addKipcEventMask (int); - void removeKipcEventMask (int); - QCString startupId () const; - void setStartupId (const QCString&); - -%If ( KDE_3_2_0 - ) - void updateUserTimestamp (ulong = 0); - -%If ( KDE_3_2_3 - ) - ulong userTimestamp () const; - -%If ( KDE_3_3_0 - ) - void updateRemoteUserTimestamp (const QCString&, ulong = 0); -%End - -%End - -%End - - QString geometryArgument () const; - void installKDEPropertyMap (); - bool authorize (const QString&); - bool authorizeKAction (const char*); - -%If ( KDE_3_1_0 - ) - bool authorizeURLAction (const QString&, const KURL&, const KURL&); - -%If ( KDE_3_2_0 - ) - void allowURLAction (const QString&, const KURL&, const KURL&); - bool authorizeControlModule (const QString&); - QStringList authorizeControlModules (const QStringList&); - -%If ( KDE_3_4_0 - ) - static ButtonState keyboardMouseState (); -%End - -%End - - - enum - { - ShiftModifier, - LockModifier, - ControlModifier, - Modifier1, - Modifier2, - Modifier3, - Modifier4, - Modifier5 - }; - - static uint keyboardModifiers (); - - enum - { - Button1Pressed, - Button2Pressed, - Button3Pressed, - Button4Pressed, - Button5Pressed - }; - - static uint mouseState (); -%End - - -public slots: - void ref (); - void deref (); - -protected: - KApplication (bool, bool, KInstance*); - -%If ( KDE_3_3_0 - ) -//ig KApplication (Display*, Qt::HANDLE, Qt::HANDLE, bool, KInstance*); -%End - -//ig bool x11EventFilter (XEvent*); - -%If ( KDE_3_2_0 - ) - void invokeEditSlot (const char*); -%End - - -public: - bool notify (QObject*, QEvent*); - -%If ( KDE_3_2_0 - ) -//ig int xErrhandler (Display*, void*); -//ig int xioErrhandler (Display*); -%End - - -%If ( KDE_3_0_1 - ) -//ig void iceIOErrorHandler (_IceConn*); -%End - - bool loadedByKdeinit; - static void startKdeinit (); - - enum SettingsCategory - { - SETTINGS_MOUSE, - SETTINGS_COMPLETION, - SETTINGS_PATHS, - SETTINGS_POPUPMENU, - SETTINGS_QT, - SETTINGS_SHORTCUTS - }; - - -%If ( KDE_3_1_0 - ) - static QPalette createApplicationPalette (); - static QPalette createApplicationPalette (KConfig*, int); - -%If ( KDE_3_2_0 - ) - static void installSigpipeHandler (); - static bool guiEnabled (); -%End - -%End - - -signals: - void kdisplayPaletteChanged (); - void kdisplayStyleChanged (); - void kdisplayFontChanged (); - void appearanceChanged (); - void toolbarAppearanceChanged (int); - void backgroundChanged (int); - void settingsChanged (int); - void iconChanged (int); - void kipcMessage (int, int); - void saveYourself (); - void shutDown (); - -private: - KApplication (const KApplication&); - -protected: -//igx virtual void virtual_hook (int, void*); - -public: - -%If ( - KDE_3_2_0 ) - int xioErrhandler (); -%End - - -}; // class KApplication - - -class KSessionManaged -{ -%TypeHeaderCode -#include -%End - - -public: - KSessionManaged (); - virtual bool saveState (QSessionManager&); - virtual bool commitData (QSessionManager&); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KSessionManaged - -typedef ulong Atom; -//ig typedef void Display; -//ig bool checkAccess (const QString&, int); - - -%ModuleCode -#include - -// Convert a Python argv list to a conventional C argc count and argv array. -char **pyArgvToC(PyObject *argvlist,int *argcp) -{ - int argc; - char **argv; - - argc = PyList_Size(argvlist); - - // Allocate space for two copies of the argument pointers, plus the - // terminating NULL. - if ((argv = (char **)sipMalloc(2 * (argc + 1) * sizeof (char *))) == NULL) - return NULL; - - // Convert the list. - for (int a = 0; a < argc; ++a) - { - char *arg; - - // Get the argument and allocate memory for it. - if ((arg = PyString_AsString(PyList_GetItem(argvlist,a))) == NULL || - (argv[a] = (char *)sipMalloc(strlen(arg) + 1)) == NULL) - return NULL; - - // Copy the argument and save a pointer to it. - strcpy(argv[a],arg); - argv[a + argc + 1] = argv[a]; - } - - argv[argc + argc + 1] = argv[argc] = NULL; - - *argcp = argc; - - return argv; -} - - -// Remove arguments from the Python argv list that have been removed from the -// C argv array. -void updatePyArgv(PyObject *argvlist,int argc,char **argv) -{ - for (int a = 0, na = 0; a < argc; ++a) - { - // See if it was removed. - if (argv[na] == argv[a + argc + 1]) - ++na; - else - PyList_SetSlice(argvlist,na,na + 1,NULL); - } -} -%End diff --git a/sip/kdecore/kasyncio.sip b/sip/kdecore/kasyncio.sip deleted file mode 100644 index 3c716df..0000000 --- a/sip/kdecore/kasyncio.sip +++ /dev/null @@ -1,52 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KAsyncIO : QObject, QIODevice -{ -%TypeHeaderCode -#include -%End - - -protected: - KAsyncIO (); - -private: - KAsyncIO (KAsyncIO&); - -public: - virtual void enableRead (bool) = 0; - virtual void enableWrite (bool) = 0; - -signals: - void readyRead (); - void readyWrite (); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KAsyncIO - diff --git a/sip/kdecore/kaudioplayer.sip b/sip/kdecore/kaudioplayer.sip deleted file mode 100644 index e211058..0000000 --- a/sip/kdecore/kaudioplayer.sip +++ /dev/null @@ -1,42 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KAudioPlayer : QObject -{ -%TypeHeaderCode -#include -%End - - -public: - KAudioPlayer (const QString&, QObject* /TransferThis/ = 0, const char* = 0); - static void play (const QString&); - -public slots: - void play (); - -}; // class KAudioPlayer - diff --git a/sip/kdecore/kbufferedio.sip b/sip/kdecore/kbufferedio.sip deleted file mode 100644 index bb79121..0000000 --- a/sip/kdecore/kbufferedio.sip +++ /dev/null @@ -1,73 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KBufferedIO : KAsyncIO -{ -%TypeHeaderCode -#include -%End - - -protected: - KBufferedIO (); - -public: - - enum closeModes - { - availRead, - dirtyWrite, - involuntary, - delayed, - closedNow - }; - - virtual void closeNow () = 0; - virtual bool setBufferSize (int, int = -2); - virtual int bytesAvailable () const; - virtual int waitForMore (int) = 0; - virtual int bytesToWrite () const; - virtual bool canReadLine () const; - virtual int peekBlock (char*, uint) = 0; - virtual int unreadBlock (const char*, uint); - -signals: - void bytesWritten (int); - void closed (int); - -protected: - virtual uint consumeReadBuffer (uint, char*, bool = 1); - virtual void consumeWriteBuffer (uint); - virtual uint feedReadBuffer (uint, const char*, bool = 0); - virtual uint feedWriteBuffer (uint, const char*); - virtual uint readBufferSize () const; - virtual uint writeBufferSize () const; - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KBufferedIO - diff --git a/sip/kdecore/kcalendarsystem.sip b/sip/kdecore/kcalendarsystem.sip deleted file mode 100644 index 0cd4023..0000000 --- a/sip/kdecore/kcalendarsystem.sip +++ /dev/null @@ -1,78 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_2_0 - ) - -class KCalendarSystem -{ -%TypeHeaderCode -#include -%End - - -public: - KCalendarSystem (const KLocale* = 0); - virtual int year (const QDate&) const = 0; - virtual QString yearString (const QDate&, bool) const; - virtual int yearStringToInteger (const QString&, int& /Out/) const; - virtual int month (const QDate&) const = 0; - virtual QString monthString (const QDate&, bool) const; - virtual int monthStringToInteger (const QString&, int& /Out/) const; - virtual int day (const QDate&) const = 0; - virtual QString dayString (const QDate&, bool) const; - virtual int dayStringToInteger (const QString&, int& /Out/) const; - virtual int dayOfWeek (const QDate&) const = 0; - virtual int dayOfYear (const QDate&) const = 0; - virtual bool setYMD (QDate&, int, int, int) const = 0; - virtual QDate addYears (const QDate&, int) const = 0; - virtual QDate addMonths (const QDate&, int) const = 0; - virtual QDate addDays (const QDate&, int) const = 0; - virtual int monthsInYear (const QDate&) const = 0; - virtual int daysInYear (const QDate&) const = 0; - virtual int daysInMonth (const QDate&) const = 0; - virtual int weeksInYear (int) const = 0; - virtual int weekNumber (const QDate&, int* = 0) const = 0; - virtual QString monthName (int, int, bool = 0) const = 0; - virtual QString monthName (const QDate&, bool = 0) const = 0; - virtual QString monthNamePossessive (int, int, bool = 0) const = 0; - virtual QString monthNamePossessive (const QDate&, bool = 0) const = 0; - virtual QString weekDayName (int, bool = 0) const = 0; - virtual QString weekDayName (const QDate&, bool = 0) const = 0; - virtual int minValidYear () const = 0; - virtual int maxValidYear () const = 0; - virtual int weekDayOfPray () const = 0; - virtual QString calendarName () const = 0; - virtual bool isLunar () const = 0; - virtual bool isLunisolar () const = 0; - virtual bool isSolar () const = 0; - -protected: - const KLocale* locale () const; - -}; // class KCalendarSystem - -%End - diff --git a/sip/kdecore/kcalendarsystemfactory.sip b/sip/kdecore/kcalendarsystemfactory.sip deleted file mode 100644 index 20c4f35..0000000 --- a/sip/kdecore/kcalendarsystemfactory.sip +++ /dev/null @@ -1,44 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_2_0 - ) - -class KCalendarSystemFactory -{ -%TypeHeaderCode -#include -%End - - -public: - KCalendarSystemFactory (); - static KCalendarSystem* create (const QString& = QString ::fromLatin1 ("gregorian" ), const KLocale* = 0); - static QStringList calendarSystems (); - -}; // class KCalendarSystemFactory - -%End - diff --git a/sip/kdecore/kcatalogue.sip b/sip/kdecore/kcatalogue.sip deleted file mode 100644 index 3469af8..0000000 --- a/sip/kdecore/kcatalogue.sip +++ /dev/null @@ -1,64 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KCatalogue -{ -%TypeHeaderCode -#include -%End - - -public: - -%If ( KDE_3_3_0 - ) - KCatalogue (const QString& = QString ::null , const QString& = QString ::null ); -%End - - KCatalogue (const KCatalogue&); - QString name () const; - -%If ( KDE_3_3_0 - ) - QString language () const; - int pluralType () const; - void setPluralType (int); -%End - - const char* translate (const char*) const; - -public: - -%If ( - KDE_3_3_0 ) - -%If ( D_MANDRAKE ) - KCatalogue (const QString& = QString ::null ); - void setFileName (const QString&); -%End - -%End - - -}; // class KCatalogue - diff --git a/sip/kdecore/kcharsets.sip b/sip/kdecore/kcharsets.sip deleted file mode 100644 index 9be4386..0000000 --- a/sip/kdecore/kcharsets.sip +++ /dev/null @@ -1,62 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KCharsets -{ -%TypeHeaderCode -#include -%End - - -protected: - KCharsets (); - -public: - QTextCodec* codecForName (const QString&) const; - QTextCodec* codecForName (const QString&, bool& /Out/) const /PyName=codecForName2/; - QChar fromEntity (const QString&) const; - QChar fromEntity (const QString&, int& /Out/) const /PyName=fromEntity2/; - QString toEntity (const QChar&) const; - -%If ( KDE_3_1_0 - ) - static QString resolveEntities (const QString&); -%End - - QStringList availableEncodingNames (); - QStringList descriptiveEncodingNames (); - QString languageForEncoding (const QString&); - QString encodingForName (const QString&); - -public: - -%If ( - KDE_3_2_0 ) -//ig QStringList languages (); -//ig QStringList encodingsForLanguage (const QString&); -%End - - -}; // class KCharsets - diff --git a/sip/kdecore/kclipboard.sip b/sip/kdecore/kclipboard.sip deleted file mode 100644 index 4abc45a..0000000 --- a/sip/kdecore/kclipboard.sip +++ /dev/null @@ -1,52 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_1_0 - ) - -class KClipboardSynchronizer : QObject -{ -%TypeHeaderCode -#include -%End - - -public: - static KClipboardSynchronizer* self (); - static void setSynchronizing (bool); - static bool isSynchronizing (); - static void setReverseSynchronizing (bool); - static bool isReverseSynchronizing (); - -protected: - ~KClipboardSynchronizer (); - -private: - KClipboardSynchronizer (QObject* /TransferThis/ = 0, const char* = 0); - -}; // class KClipboardSynchronizer - -%End - diff --git a/sip/kdecore/kcmdlineargs.sip b/sip/kdecore/kcmdlineargs.sip deleted file mode 100644 index c9831f6..0000000 --- a/sip/kdecore/kcmdlineargs.sip +++ /dev/null @@ -1,264 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KCmdLineOptions -{ -%TypeHeaderCode -#include -extern char **pyArgvToC(PyObject *argvlist,int *argcp); -extern void updatePyArgv(PyObject *argvlist,int argc,char **argv); -%End - - -public: - const char* name; - const char* description; - -%If ( KDE_3_5_3 - ) -// def is a Python keyword - use /PyName=/ -//pykwd const char* def; -%End - - -}; // class KCmdLineOptions - - -class KCmdLineArgs -{ -%TypeHeaderCode -#include -#include -%End - - -public: - -%If ( KDE_3_2_0 - ) - static void init (SIP_PYLIST, const char*, const char*, const char*, const char*, bool = 0) [void (int, char**, const char*, const char*, const char*, const char*, bool = 0)]; -%MethodCode -//takes _argc | (int) | _argv | (char) | _appname | (char) | programName | (char) | _description | (char) | _version | (char) | noKApp | (bool = 0) - - int argc, nargc; - char **argv; - - // Convert the list. - - if ((argv = pyArgvToC(a0, &argc)) == NULL) - return NULL; - - // Create it now the arguments are right. - nargc = argc; - - Py_BEGIN_ALLOW_THREADS - KCmdLineArgs::init (nargc,argv, a1, a2, a3, a4, a5); - Py_END_ALLOW_THREADS - - // Now modify the original list. - - updatePyArgv (a0, argc, argv); -%End - -%End - - static void init (SIP_PYLIST, const char*, const char*, const char*, bool = 0) [void (int, char**, const char*, const char*, const char*, bool = 0)]; -%MethodCode -//takes _argv | (a Python list of strings which may be modified) | _appname | (char) | _description | (char) | _version | (char) | noKApp | (bool = False) - - int argc, nargc; - char **argv; - - // Convert the list. - - if ((argv = pyArgvToC(a0, &argc)) == NULL) - return NULL; - - // Create it now the arguments are right. - nargc = argc; - - Py_BEGIN_ALLOW_THREADS - KCmdLineArgs::init (nargc,argv, a1, a2, a3, a4); - Py_END_ALLOW_THREADS - - // Now modify the original list. - - updatePyArgv (a0, argc, argv); -%End - - static void init (SIP_PYLIST, const KAboutData*, bool = 0) [void (int, char**, const KAboutData*, bool = 0)]; -%MethodCode -//takes _argv | (a Python list of strings which may be modified) | about | (KAboutData) | noKApp | (bool = 0) - - int argc, nargc; //, iserr = 0; - char **argv; - - // Convert the list. - - if ((argv = pyArgvToC (a0, &argc)) == NULL) - return NULL; - - // Create it now the arguments are right. - nargc = argc; - - Py_BEGIN_ALLOW_THREADS - KCmdLineArgs::init (nargc, argv, a1, a2); - Py_END_ALLOW_THREADS - - // Now modify the original list. - - updatePyArgv (a0, argc, argv); -%End - - static void init (const KAboutData*); - static void addCmdLineOptions (SIP_PYLIST, const char* = 0, const char* = 0, const char* = 0) [void (const KCmdLineOptions*, const char* = 0, const char* = 0, const char* = 0)]; -%MethodCode -//takes options | (a Python list of tuples) | name | (char = 0) | id | (char = 0) | afterId | (char = 0) - -//doc -// A Pytbon list of tuples (name, description, default) is the first parameter -// instead of a KCmdLineOptions object (KCmdLineOptions is not used); -// NULL (or None) parameters to mark the end of the list are not required -//end - - int n; - - if ((n = PyList_Size (a0)) == 0) - return NULL; - - // opts is persistent - KCmdLineOptions *opts; - - Py_BEGIN_ALLOW_THREADS - opts = new KCmdLineOptions [n + 1]; - Py_END_ALLOW_THREADS - - int i, tsz; - for (i = 0; i < n; i++) - { - PyObject *tuple; - - if ((tuple = PyList_GetItem (a0, i)) != NULL) - { - tsz = PyTuple_Size (tuple); - PyObject *member; - - if (tsz == 0) - goto errorExit; - - member = PyTuple_GET_ITEM (tuple, 0); - if (PyString_Check (member)) - opts [i].name = PyString_AS_STRING (member); - else - goto errorExit; - - if (tsz > 1) - { - member = PyTuple_GET_ITEM (tuple, 1); - if PyString_Check (member) - opts [i].description = PyString_AS_STRING (member); - else - goto errorExit; - } - else - opts [i].description = NULL; - - - if (tsz > 2) - { - member = PyTuple_GET_ITEM (tuple, 2); - if PyString_Check (member) - opts [i].def = PyString_AS_STRING (member); - else - goto errorExit; - } - else - opts [i].def = NULL; - } - else - goto errorExit; - } - - // mark the end of the list - opts [n].name = NULL; - opts [n].description = NULL; - opts [n].def = NULL; - - Py_BEGIN_ALLOW_THREADS - KCmdLineArgs::addCmdLineOptions (opts, a1, a2, a3); - Py_END_ALLOW_THREADS - - Py_INCREF (Py_None); - return Py_None; - -errorExit: - delete opts; - return NULL; -%End - - static KCmdLineArgs* parsedArgs (const char* = 0); - static QString cwd (); - static const char* appName (); - static void usage (const char* = 0); - static void usage (const QString&); - static void enable_i18n (); - QCString getOption (const char*); - -%If ( KDE_3_1_4 - ) - QCStringList getOptionList (const char*) const; -%End - - bool isSet (const char*); - int count (); - const char* arg (int); - KURL url (int); - static KURL makeURL (const char*); - static void setCwd (char*); - void clear (); - -%If ( KDE_3_2_0 - ) - static void reset (); - static void loadAppArgs (QDataStream&); - -%If ( KDE_3_4_0 - ) - static void addTempFileOption (); - static bool isTempFileSet (); -%End - -%End - - -protected: - KCmdLineArgs (const KCmdLineOptions*, const char*, const char*); - ~KCmdLineArgs (); - -public: - -%If ( - KDE_3_1_3 ) - QValueList getOptionList (const char*); -%End - - -}; // class KCmdLineArgs - diff --git a/sip/kdecore/kcompletion.sip b/sip/kdecore/kcompletion.sip deleted file mode 100644 index 268480d..0000000 --- a/sip/kdecore/kcompletion.sip +++ /dev/null @@ -1,227 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KCompletion : QObject -{ -%TypeHeaderCode -#include -%End - - -public: - - enum CompOrder - { - Sorted, - Insertion, - Weighted - }; - - KCompletion (); - virtual QString makeCompletion (const QString&); - QStringList substringCompletion (const QString&) const; - QString previousMatch (); - QString nextMatch (); - virtual const QString& lastMatch () const; - QStringList items () const; - -%If ( KDE_3_3_0 - ) - bool isEmpty () const; -%End - - virtual void setCompletionMode (KGlobalSettings::Completion); - KGlobalSettings::Completion completionMode () const; - virtual void setOrder (KCompletion::CompOrder); - CompOrder order () const; - virtual void setIgnoreCase (bool); - bool ignoreCase () const; - QStringList allMatches (); - QStringList allMatches (const QString&); -//ig KCompletionMatches allWeightedMatches (); -//ig KCompletionMatches allWeightedMatches (const QString&); - virtual void setEnableSounds (bool); - bool isSoundsEnabled () const; - bool hasMultipleMatches () const; - void enableSounds (); - void disableSounds (); - -public slots: - void slotMakeCompletion (const QString&); - void slotPreviousMatch (); - void slotNextMatch (); - void insertItems (const QStringList&); - virtual void setItems (const QStringList&); - void addItem (const QString&); - void addItem (const QString&, uint); - void removeItem (const QString&); - virtual void clear (); - -signals: - void match (const QString&); - void matches (const QStringList&); - void multipleMatches (); - -protected: - virtual void postProcessMatch (QString*); - virtual void postProcessMatches (QStringList*); -//ig virtual void postProcessMatches (KCompletionMatches*) const; - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KCompletion - - -//ig class KCompletionMatches : KCompletionMatchesList; - - -class KCompletionBase -{ -%TypeHeaderCode -#include -%End - - -public: - - enum KeyBindingType - { - TextCompletion, - PrevCompletionMatch, - NextCompletionMatch, - SubstringCompletion - }; - - typedef QMap KeyBindingMap; - KCompletionBase (); - KCompletion* completionObject (bool = 1); - virtual void setCompletionObject (KCompletion*, bool = 1); - virtual void setHandleSignals (bool); - bool isCompletionObjectAutoDeleted () const; - void setAutoDeleteCompletionObject (bool); - void setEnableSignals (bool); - bool handleSignals () const; - bool emitSignals () const; - virtual void setCompletionMode (KGlobalSettings::Completion); - KGlobalSettings::Completion completionMode () const; - bool setKeyBinding (KCompletionBase::KeyBindingType, const KShortcut&); - const KShortcut& getKeyBinding (KCompletionBase::KeyBindingType) const; - void useGlobalKeyBindings (); - virtual void setCompletedText (const QString&) = 0; - virtual void setCompletedItems (const QStringList&) = 0; - KCompletion* compObj () const; - -protected: - KCompletionBase::KeyBindingMap getKeyBindings () const; - void setDelegate (KCompletionBase*); - KCompletionBase* delegate () const; - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KCompletionBase - -//ig typedef KSortableValueList KCompletionMatchesList; - - -%MappedType KCompletionBase::KeyBindingMap -//converts a Python dict of int:KShortcut -{ -%TypeHeaderCode -#include -%End -%ConvertFromTypeCode - - if (!sipCpp) - return PyDict_New(); - - PyObject *dict; - - // Create the dictionary. - - if ((dict = PyDict_New()) == NULL) - return NULL; - - // Get it. - - const QMap map = *sipCpp; - QMap::ConstIterator it; - - PyObject *key; - PyObject *value; - - for (it = map.begin (); it != map.end (); ++it) - { - key = PyInt_FromLong ((int) it.key ()); - value = sipConvertFromInstance ((void *)&(it.data ()), sipClass_KShortcut, sipTransferObj); - if ((value == NULL) || (PyDict_SetItem (dict, key, value) < 0)) - { - Py_XDECREF (key); - Py_XDECREF (value); - Py_DECREF (dict); - return NULL; - } - } - - - return dict; -%End - - -%ConvertToTypeCode - // Convert a Python dictionary to a KeyBindingMap on the heap. - - if (sipIsErr == NULL) - return PyDict_Check(sipPy); - - QMap *kbmap = new QMap; - - PyObject *key, *value; - SIP_SSIZE_T pos = 0; - KShortcut *cValue; - int iserr; - - while (PyDict_Next(sipPy, &pos, &key, &value)) - { - cValue = (KShortcut *)sipForceConvertToType(value, sipType_KShortcut, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); - - if (iserr || !PyInt_Check (key)) - { - *sipIsErr = 1; - delete kbmap; - return 0; - } - - kbmap->insert ((KCompletionBase::KeyBindingType)PyInt_AS_LONG (key), *cValue); - } - - *sipCppPtr = kbmap; - - return 1; -%End -}; - - diff --git a/sip/kdecore/kconfig.sip b/sip/kdecore/kconfig.sip deleted file mode 100644 index ed09152..0000000 --- a/sip/kdecore/kconfig.sip +++ /dev/null @@ -1,238 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KConfig : KConfigBase -{ -%TypeHeaderCode -#include -%End - - -public: - KConfig (const QString& = QString ::null , bool = 0, bool = 1, const char* = "config"); - -%If ( KDE_3_2_0 - ) - KConfig (KConfigBackEnd*, bool = 0); -%End - - virtual void rollback (bool = 1); - virtual QStringList groupList () const; - virtual QMap entryMap (const QString&) const; - virtual void reparseConfiguration (); - void setFileWriteMode (int); - void setForceGlobal (bool); - bool forceGlobal () const; - -%If ( KDE_3_1_0 - ) - void checkUpdate (const QString&, const QString&); - -%If ( KDE_3_2_0 - ) - KConfig* copyTo (const QString&, KConfig* = 0) const; - -%If ( KDE_3_3_0 - ) - KLockFile::Ptr lockFile (bool = 0); -%End - -%End - -%End - - -protected: - virtual bool internalHasGroup (const QCString&) const; - virtual KEntryMap internalEntryMap (const QString&) const; - virtual KEntryMap internalEntryMap () const; - virtual void putData (const KEntryKey&, const KEntry&, bool = 1); - virtual KEntry lookupData (const KEntryKey&) const; - -private: - KConfig (const KConfig&); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KConfig - - -%If ( KDE_3_2_0 - ) - -class KSharedConfig : KConfig, KShared -{ -%TypeHeaderCode -#include -%End - - -public: -//ig typedef KSharedPtr Ptr; - -public: - static KSharedConfig::Ptr openConfig (const QString&, bool = 0, bool = 1); - -private: - KSharedConfig (const QString&, bool, bool); - ~KSharedConfig (); - -}; // class KSharedConfig - -%End - - - -%MappedType QMap -//converts a Python dict of QString:QString -{ -%TypeHeaderCode -#include -%End - -%ConvertFromTypeCode - // Convert to a Python dict - - if (!sipCpp) - return PyDict_New(); - - PyObject *dict; - - // Create the dictionary. - - if ((dict = PyDict_New()) == NULL) - return NULL; - - // Get it. - - const QMap cppmap = *sipCpp; - QMap::ConstIterator it; - - for (it = cppmap.begin (); it != cppmap.end (); ++it) - { - QString acpp = it.key (); - QString bcpp = it.data (); - PyObject *ainst; - PyObject *binst = NULL; - if (((ainst = sipConvertFromNewType(new QString(acpp), sipType_QString, sipTransferObj)) == NULL) - || ((binst = sipConvertFromNewType(new QString(bcpp), sipType_QString, sipTransferObj)) == NULL) - || (PyDict_SetItem (dict, ainst, binst) < 0)) - { - Py_XDECREF (ainst); - Py_XDECREF (binst); - Py_DECREF (dict); - return NULL; - } - } - - return dict; -%End - - -%ConvertToTypeCode - // Convert a Python dictionary to a QMap on the heap. - - if (sipIsErr == NULL) - return PyDict_Check(sipPy); - - QMap *cppmap = new QMap; - - PyObject *aelem, *belem; - SIP_SSIZE_T pos = 0; - QString *acpp; - QString *bcpp; - - while (PyDict_Next(sipPy, &pos, &aelem, &belem)) - { - int iserr = 0, acpp_state, bcpp_state; - - acpp = (QString *)sipForceConvertToType(aelem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr); - bcpp = (QString *)sipForceConvertToType(belem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &bcpp_state, &iserr); - - if (iserr) - { - if (acpp) - sipReleaseType(acpp, sipType_QString, acpp_state); - - *sipIsErr = 1; - delete cppmap; - return 0; - } - - cppmap->insert (*acpp, *bcpp); - - sipReleaseType(acpp, sipType_QString, acpp_state); - sipReleaseType(bcpp, sipType_QString, bcpp_state); - } - - *sipCppPtr = cppmap; - - return 1; -%End -}; - - -%If (KDE_3_2_0 - ) -%MappedType KSharedConfig::Ptr -//converts KSharedConfig -{ -%TypeHeaderCode -#include -#include -%End - -%ConvertFromTypeCode - // Convert to a Python instance - - if (!sipCpp) - return NULL; - - KSharedPtr *cPtr = new KSharedPtr (*(KSharedPtr *)sipCpp); - KSharedConfig *cpp = cPtr->data (); - PyObject *obj = sipConvertFromInstance (cpp, sipClass_KSharedConfig, sipTransferObj); - - return obj; -%End - -%ConvertToTypeCode - // Convert a Python instance to a Ptr on the heap. - - if (sipIsErr == NULL) - return PyInstance_Check(sipPy); - - int iserr = 0; - KSharedConfig *cpp = (KSharedConfig *)sipForceConvertToType(sipPy, sipType_KSharedConfig, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); - - if (iserr) - { - *sipIsErr = 1; - return 0; - } - - *sipCppPtr = new KSharedPtr (cpp); - - return 1; -%End -}; -%End - - diff --git a/sip/kdecore/kconfigbackend.sip b/sip/kdecore/kconfigbackend.sip deleted file mode 100644 index ca10d9e..0000000 --- a/sip/kdecore/kconfigbackend.sip +++ /dev/null @@ -1,93 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KConfigBackEnd -{ -%TypeHeaderCode -#include -%End - - -public: - KConfigBackEnd (KConfigBase*, const QString&, const char*, bool); - virtual bool parseConfigFiles () = 0; - virtual void sync (bool = 1) = 0; - void changeFileName (const QString&, const char*, bool); - virtual KConfigBase::ConfigState getConfigState () const; - QString fileName () const; - const char* resource () const; - void setLocaleString (const QCString&); - void setFileWriteMode (int); - -%If ( KDE_3_2_0 - ) - bool checkConfigFilesWritable (bool); - -%If ( KDE_3_3_0 - ) - KLockFile::Ptr lockFile (bool = 0); -%End - -%End - - QString filename () const; - -protected: - -protected: -//igx virtual void virtual_hook (int, void*); - -protected: - -}; // class KConfigBackEnd - - -class KConfigINIBackEnd : KConfigBackEnd -{ -%TypeHeaderCode -#include -#include -%End - - -public: - KConfigINIBackEnd (KConfigBase*, const QString&, const char*, bool = 1); - bool parseConfigFiles (); - virtual void sync (bool = 1); - -protected: - void parseSingleConfigFile (QFile&, KEntryMap* = 0, bool = 0, bool = 0); - bool writeConfigFile (QString, bool = 0, bool = 1); - -%If ( KDE_3_2_0 - ) - bool getEntryMap (KEntryMap&, bool, QFile*); -//ig void writeEntries (FILE*, const KEntryMap&); -%End - - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KConfigINIBackEnd - diff --git a/sip/kdecore/kconfigbase.sip b/sip/kdecore/kconfigbase.sip deleted file mode 100644 index cde14d9..0000000 --- a/sip/kdecore/kconfigbase.sip +++ /dev/null @@ -1,333 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%ModuleHeaderCode -typedef long long longlong; -typedef unsigned long long ulonglong; -%End - - -class KConfigBase : QObject -{ -%TypeHeaderCode -#include -%End - - -public: - KConfigBase (); - void setGroup (const QString&); - void setDesktopGroup (); - QString group () const; - bool hasGroup (const QString&) const; - virtual QStringList groupList () const = 0; - QString locale () const; - QString readEntry (const QString&, const QString& = QString ::null ) const; - QString readEntry (const char*, const QString& = QString ::null ) const; - QVariant readPropertyEntry (const QString&, QVariant::Type) const; - QVariant readPropertyEntry (const char*, QVariant::Type) const; - QVariant readPropertyEntry (const QString&, const QVariant&) const; - QVariant readPropertyEntry (const char*, const QVariant&) const; - int readListEntry (const QString&, QStrList&, char = ',') const; - int readListEntry (const char*, QStrList&, char = ',') const; - QStringList readListEntry (const QString&, char = ',') const; - QStringList readListEntry (const char*, char = ',') const; - -%If ( KDE_3_3_0 - ) - QStringList readListEntry (const char*, const QStringList&, char = ',') const; -%End - - QValueList readIntListEntry (const QString&) const; - QValueList readIntListEntry (const char*) const; - QString readPathEntry (const QString&, const QString& = QString ::null ) const; - QString readPathEntry (const char*, const QString& = QString ::null ) const; - -%If ( KDE_3_1_3 - ) - QStringList readPathListEntry (const QString&, char = ',') const; - QStringList readPathListEntry (const char*, char = ',') const; -%End - - int readNumEntry (const QString&, int = 0) const; - int readNumEntry (const char*, int = 0) const; - uint readUnsignedNumEntry (const QString&, uint = 0) const; - uint readUnsignedNumEntry (const char*, uint = 0) const; - long readLongNumEntry (const QString&, long = 0) const; - long readLongNumEntry (const char*, long = 0) const; - ulong readUnsignedLongNumEntry (const QString&, ulong = 0) const; - ulong readUnsignedLongNumEntry (const char*, ulong = 0) const; - -%If ( KDE_3_2_0 - ) - longlong readNum64Entry (const QString&, longlong = 0) const; - longlong readNum64Entry (const char*, longlong = 0) const; - ulonglong readUnsignedNum64Entry (const QString&, ulonglong = 0) const; - ulonglong readUnsignedNum64Entry (const char*, ulonglong = 0) const; -%End - - double readDoubleNumEntry (const QString&, double = 0.0) const; - double readDoubleNumEntry (const char*, double = 0.0) const; - QFont readFontEntry (const QString&, const QFont* = 0) const; - QFont readFontEntry (const char*, const QFont* = 0) const; - bool readBoolEntry (const QString&, const bool = 0) const; - bool readBoolEntry (const char*, const bool = 0) const; - QRect readRectEntry (const QString&, const QRect* = 0) const; - QRect readRectEntry (const char*, const QRect* = 0) const; - QPoint readPointEntry (const QString&, const QPoint* = 0) const; - QPoint readPointEntry (const char*, const QPoint* = 0) const; - QSize readSizeEntry (const QString&, const QSize* = 0) const; - QSize readSizeEntry (const char*, const QSize* = 0) const; - QColor readColorEntry (const QString&, const QColor* = 0) const; - QColor readColorEntry (const char*, const QColor* = 0) const; - QDateTime readDateTimeEntry (const QString&, const QDateTime* = 0) const; - QDateTime readDateTimeEntry (const char*, const QDateTime* = 0) const; - QString readEntryUntranslated (const QString&, const QString& = QString ::null ) const; - QString readEntryUntranslated (const char*, const QString& = QString ::null ) const; - void writeEntry (const QString&, const QString&, bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, const QString&, bool = 1, bool = 0, bool = 0); - void writeEntry (const QString&, const QVariant&, bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, const QVariant&, bool = 1, bool = 0, bool = 0); - void writeEntry (const QString&, const QStrList&, char = ',', bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, const QStrList&, char = ',', bool = 1, bool = 0, bool = 0); - void writeEntry (const QString&, const QStringList&, char = ',', bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, const QStringList&, char = ',', bool = 1, bool = 0, bool = 0); - void writeEntry (const QString&, const QValueList&, bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, const QValueList&, bool = 1, bool = 0, bool = 0); - void writeEntry (const QString&, const char*, bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, const char*, bool = 1, bool = 0, bool = 0); - void writeEntry (const QString&, int, bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, int, bool = 1, bool = 0, bool = 0); - -%If ( KDE_3_2_0 - ) - void writeEntry (const QString&, longlong, bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, longlong, bool = 1, bool = 0, bool = 0); - void writeEntry (const QString&, ulonglong, bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, ulonglong, bool = 1, bool = 0, bool = 0); -%End - -//ig void writeEntry (const QString&, double, bool = 1, bool = 0, char = 'g', int = 6, bool = 0); -//ig void writeEntry (const char*, double, bool = 1, bool = 0, char = 'g', int = 6, bool = 0); - void writeEntry (const QString&, const QFont&, bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, const QFont&, bool = 1, bool = 0, bool = 0); - void writeEntry (const QString&, const QColor&, bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, const QColor&, bool = 1, bool = 0, bool = 0); - void writeEntry (const QString&, const QDateTime&, bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, const QDateTime&, bool = 1, bool = 0, bool = 0); - void writeEntry (const QString&, const QRect&, bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, const QRect&, bool = 1, bool = 0, bool = 0); - void writeEntry (const QString&, const QPoint&, bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, const QPoint&, bool = 1, bool = 0, bool = 0); - void writeEntry (const QString&, const QSize&, bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, const QSize&, bool = 1, bool = 0, bool = 0); - void writePathEntry (const QString&, const QString&, bool = 1, bool = 0, bool = 0); - void writePathEntry (const char*, const QString&, bool = 1, bool = 0, bool = 0); - -%If ( KDE_3_1_3 - ) - void writePathEntry (const QString&, const QStringList&, char = ',', bool = 1, bool = 0, bool = 0); - void writePathEntry (const char*, const QStringList&, char = ',', bool = 1, bool = 0, bool = 0); -%End - - void deleteEntry (const QString&, bool = 0, bool = 0); - void deleteEntry (const char*, bool = 0, bool = 0); - bool deleteGroup (const QString&, bool = 1, bool = 0); - void setDollarExpansion (bool = 1); - bool isDollarExpansion () const; - virtual void rollback (bool = 1); - virtual void sync (); - bool isDirty () const; - virtual void setReadOnly (bool); - bool isReadOnly () const; - bool hasKey (const QString&) const; - virtual QMap entryMap (const QString&) const = 0; - virtual void reparseConfiguration () = 0; - bool isImmutable () const; - bool groupIsImmutable (const QString&) const; - bool entryIsImmutable (const QString&) const; - - enum ConfigState - { - NoAccess, - ReadOnly, - ReadWrite - }; - - ConfigState getConfigState () const; - -%If ( KDE_3_2_0 - ) - bool checkConfigFilesWritable (bool); - void setReadDefaults (bool); - bool readDefaults () const; - void revertToDefault (const QString&); - bool hasDefault (const QString&) const; -%End - - -protected: - void setLocale (); - virtual void setDirty (bool = 1); - virtual void parseConfigFiles (); - virtual KEntryMap internalEntryMap (const QString&) const = 0; - virtual KEntryMap internalEntryMap () const = 0; - virtual void putData (const KEntryKey&, const KEntry&, bool = 1) = 0; - virtual KEntry lookupData (const KEntryKey&) const = 0; - virtual bool internalHasGroup (const QCString&) const = 0; - -public: - void setGroup (const QCString&); - void setGroup (const char*); - bool hasGroup (const QCString&) const; - bool hasGroup (const char*) const; - bool hasKey (const char*) const; - -protected: - QCString readEntryUtf8 (const char*) const; - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KConfigBase - - -class KConfigGroupSaver -{ -%TypeHeaderCode -#include -%End - - -public: - KConfigGroupSaver (KConfigBase*, QString); - KConfigGroupSaver (KConfigBase*, const char*); - KConfigGroupSaver (KConfigBase*, const QCString&); - KConfigBase* config (); - -private: - KConfigGroupSaver (const KConfigGroupSaver&); - -}; // class KConfigGroupSaver - - -class KConfigGroup : KConfigBase -{ -%TypeHeaderCode -#include -%End - - -public: - KConfigGroup (KConfigBase*, const QCString&); - KConfigGroup (KConfigBase*, const QString&); - KConfigGroup (KConfigBase*, const char*); - void deleteGroup (bool = 0); - -%If ( KDE_3_4_0 - ) - bool groupIsImmutable () const; -%End - - virtual void setDirty (bool); - virtual void putData (const KEntryKey&, const KEntry&, bool = 1); - virtual KEntry lookupData (const KEntryKey&) const; - virtual void sync (); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KConfigGroup - - - -%MappedType longlong -//converts a Python long -{ -%TypeHeaderCode -#if PY_MAJOR_VERSION >= 2 && PY_MINOR_VERSION >= 3 -#define LONG_LONG PY_LONG_LONG -#endif -%End -%ConvertFromTypeCode - if (!sipCpp) - Py_INCREF (Py_None); - return Py_None; - -// PyObject *LongLong; - - return PyLong_FromLongLong (*(LONG_LONG *)sipCpp); -%End - -%ConvertToTypeCode - if (sipIsErr == NULL) - return PyLong_Check (sipPy) || PyInt_Check (sipPy); - - long long *ll = new long long; - *ll = 0; - - if (PyLong_Check (sipPy)) - *ll = PyLong_AsLongLong (sipPy); - else if (PyInt_Check (sipPy)) - *ll = (long long)PyInt_AS_LONG (sipPy); - - *sipCppPtr = ll; - - return 1; -%End - -}; - - -%MappedType ulonglong -//converts a Python long -{ -%TypeHeaderCode -#if PY_MAJOR_VERSION >= 2 && PY_MINOR_VERSION >= 3 -#define LONG_LONG PY_LONG_LONG -#endif -%End -%ConvertFromTypeCode - if (!sipCpp) - Py_INCREF (Py_None); - return Py_None; - - return PyLong_FromUnsignedLongLong (*(LONG_LONG *)sipCpp); -%End - -%ConvertToTypeCode - if (sipIsErr == NULL) - return PyLong_Check (sipPy) || PyInt_Check (sipPy); - - unsigned long long *ul = new unsigned long long; - *ul = 0; - - if (PyLong_Check (sipPy)) - *ul = PyLong_AsUnsignedLongLong (sipPy); - else if (PyInt_Check (sipPy)) - *ul = (unsigned long long)PyInt_AS_LONG (sipPy); - - *sipCppPtr = ul; - - return 1; -%End - -}; - - diff --git a/sip/kdecore/kconfigdata.sip b/sip/kdecore/kconfigdata.sip deleted file mode 100644 index b22ef03..0000000 --- a/sip/kdecore/kconfigdata.sip +++ /dev/null @@ -1,172 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KEntry -{ -%TypeHeaderCode -#include -%End - - -public: - KEntry (); - QCString mValue; - bool bDirty; - bool bNLS; - bool bGlobal; - bool bImmutable; - bool bDeleted; - -%If ( KDE_3_1_0 - ) - bool bExpand; -%End - - -}; // class KEntry - - -class KEntryKey -{ -%TypeHeaderCode -#include -%End - - -public: - KEntryKey (const QCString& = QCString ("" ), const QCString& = QCString ("" )); - QCString mGroup; - QCString mKey; - bool bLocal; - bool bDefault; - const char* c_key; - -}; // class KEntryKey - -//ig typedef QMap::Iterator KEntryMapIterator; -//ig typedef QMap::ConstIterator KEntryMapConstIterator; -//force -KEntryMap testKEntryMap (SIP_PYOBJECT) [KEntryMap (KEntryMap)]; -%MethodCode -//takes dict | (KEntryMap) -//returns (QMap -#include -%End - -%ConvertFromTypeCode - // Convert to a Python dict - - if (!sipCpp) - return PyDict_New(); - - PyObject *dict; - - // Create the dictionary. - - if ((dict = PyDict_New()) == NULL) - return NULL; - - // Get it. - - const KEntryMap cppmap = *sipCpp; - KEntryMap::ConstIterator it; - - for (it = cppmap.begin (); it != cppmap.end (); ++it) - { - KEntryKey acpp = it.key (); - KEntry bcpp = it.data (); - PyObject *ainst; - PyObject *binst = NULL; - if (((ainst = sipConvertFromNewType(new KEntryKey(acpp), sipType_KEntryKey, NULL)) == NULL) - || ((binst = sipConvertFromNewType(new KEntry(bcpp), sipType_KEntry, NULL)) == NULL) - || (PyDict_SetItem (dict, ainst, binst) < 0)) - { - Py_XDECREF (ainst); - Py_XDECREF (binst); - Py_DECREF (dict); - return NULL; - } - } - - return dict; -%End - - -%ConvertToTypeCode - // Convert a Python dictionary to a QMap on the heap. - - if (sipIsErr == NULL) - return PyDict_Check(sipPy); - - - KEntryMap *cppmap = new KEntryMap; - - PyObject *aelem, *belem; - SIP_SSIZE_T pos = 0; - KEntryKey *acpp; - KEntry *bcpp; - - while (PyDict_Next(sipPy, &pos, &aelem, &belem)) - { - int iserr = 0; - - acpp = (KEntryKey *)sipForceConvertToType(aelem, sipType_KEntryKey, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); - bcpp = (KEntry *)sipForceConvertToType(belem, sipType_KEntry, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cppmap; - return 0; - } - - cppmap->insert (*acpp, *bcpp); - } - - *sipCppPtr = cppmap; - - return 1; -%End -}; - - diff --git a/sip/kdecore/kconfigdialogmanager.sip b/sip/kdecore/kconfigdialogmanager.sip deleted file mode 100644 index 5c97582..0000000 --- a/sip/kdecore/kconfigdialogmanager.sip +++ /dev/null @@ -1,64 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_2_0 - ) - -class KConfigDialogManager : QObject -{ -%TypeHeaderCode -#include -%End - - -signals: - void settingsChanged (); - void settingsChanged (QWidget*); - void widgetModified (); - -public: - KConfigDialogManager (QWidget* /TransferThis/, KConfigSkeleton*, const char* = 0); - void addWidget (QWidget*); - bool hasChanged (); - bool isDefault (); - -public slots: - void updateSettings (); - void updateWidgets (); - void updateWidgetsDefault (); - -protected: - void init (bool); - bool parseChildren (const QWidget*, bool); - void setProperty (QWidget*, const QVariant&); - QVariant property (QWidget*); - void setupWidget (QWidget*, KConfigSkeletonItem*); - -protected: - -}; // class KConfigDialogManager - -%End - diff --git a/sip/kdecore/kconfigskeleton.sip b/sip/kdecore/kconfigskeleton.sip deleted file mode 100644 index 638f5f5..0000000 --- a/sip/kdecore/kconfigskeleton.sip +++ /dev/null @@ -1,1146 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_2_0 - ) - -class KConfigSkeletonItem -{ -%TypeHeaderCode -#include -#include -%End - - -public: - typedef QValueList List; -//ig typedef QDict Dict; -//ig typedef QDictIterator DictIterator; - KConfigSkeletonItem (const QString&, const QString&); - void setGroup (const QString&); - QString group () const; - void setKey (const QString&); - QString key () const; - void setName (const QString&); - QString name () const; - void setLabel (const QString&); - QString label () const; - void setWhatsThis (const QString&); - QString whatsThis () const; - virtual void readConfig (KConfig*) = 0; - virtual void writeConfig (KConfig*) = 0; - virtual void readDefault (KConfig*) = 0; - virtual void setProperty (const QVariant&) = 0; - virtual QVariant property () const = 0; - virtual QVariant minValue () const; - virtual QVariant maxValue () const; - virtual void setDefault () = 0; - virtual void swapDefault () = 0; - bool isImmutable () const; - -protected: - void readImmutability (KConfig*); - -//force -%ConvertToSubClassCode - if (dynamic_cast(sipCpp)) - sipClass = sipClass_KConfigSkeleton_ItemBool; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_KConfigSkeleton_ItemColor; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_KConfigSkeleton_ItemDateTime; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_KConfigSkeleton_ItemDouble; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_KConfigSkeleton_ItemEnum; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_KConfigSkeleton_ItemFont; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_KConfigSkeleton_ItemInt; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_KConfigSkeleton_ItemInt64; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_KConfigSkeleton_ItemIntList; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_KConfigSkeleton_ItemLong; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_KConfigSkeleton_ItemPassword; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_KConfigSkeleton_ItemPath; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_KConfigSkeleton_ItemPoint; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_KConfigSkeleton_ItemProperty; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_KConfigSkeleton_ItemRect; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_KConfigSkeleton_ItemSize; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_KConfigSkeleton_ItemString; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_KConfigSkeleton_ItemStringList; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_KConfigSkeleton_ItemUInt; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_KConfigSkeleton_ItemUInt64; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_KConfigSkeleton_ItemULong; - else - sipClass = NULL; -%End -//end - -}; // class KConfigSkeletonItem - -%End - - -%If ( KDE_3_2_0 - ) - -class KConfigSkeleton -{ -%TypeHeaderCode -#include -typedef QValueList IntList; -%End - - -public: - - class ItemPassword : KConfigSkeleton::ItemString - { - - public: - ItemPassword (const QString&, const QString&, QString&, const QString& = QString ::fromLatin1 ("" )); - - }; // class ItemPassword - - -public: - - class ItemPath : KConfigSkeleton::ItemString - { - - public: - ItemPath (const QString&, const QString&, QString&, const QString& = QString ::null ); - - }; // class ItemPath - - -public: - - class ItemEnum : KConfigSkeleton::ItemInt - { - - public: - - class Choice - { - - public: - QString name; - QString label; - QString whatsThis; - - }; // class Choice - - - public: - ItemEnum (const QString&, const QString&, int, const QValueList&, int = 0) [(const QString&, const QString&, int&, const QValueList&, int = 0)]; -%MethodCode -//takes group | (QString) | key | (QString) | reference | (int) | choices | (QValueList) |defaultValue | (int = 1) - - class PyItemEnum : public KConfigSkeleton::ItemEnum - { - public: - PyItemEnum (const QString& group, const QString& key, int& val, const QValueList& choices, int defaultValue = 0) : - KConfigSkeleton::ItemEnum(group, key, this->value, choices, defaultValue) - { - value = val; - }; - - private: - int value; - }; - - Py_BEGIN_ALLOW_THREADS - sipCpp = (sipKConfigSkeleton_ItemEnum *) new PyItemEnum (*a0, *a1, a2, *a3, a4); - Py_END_ALLOW_THREADS -%End - - QValueList choices () const; - void readConfig (KConfig*); - void writeConfig (KConfig*); - - public: -//force - void setValue (const int&); - int value (); - virtual void setDefaultValue (const int&); - virtual void setDefault (); - void swapDefault (); -//end - - }; // class ItemEnum - - -public: - -%If ( KDE_3_4_0 - ) - - class ItemPathList : KConfigSkeleton::ItemStringList - { - - public: - ItemPathList (const QString&, const QString&, QStringList&, const QStringList& = QStringList ()); - void readConfig (KConfig*); - void writeConfig (KConfig*); - - }; // class ItemPathList - - -public: -%End - - -public: - KConfigSkeleton (const QString& = QString ::null ); - KConfigSkeleton (KSharedConfig::Ptr); - void setDefaults (); - void readConfig (); - void writeConfig (); - void setCurrentGroup (const QString&); - QString currentGroup (); - void addItem (KConfigSkeletonItem*, const QString& = QString ::null ); - ItemString* addItemString (const QString&, QString&, const QString& = QString ::fromLatin1 ("" ), const QString& = QString ::null ); - KConfigSkeleton::ItemPassword* addItemPassword (const QString&, QString&, const QString& = QString ::fromLatin1 ("" ), const QString& = QString ::null ); - KConfigSkeleton::ItemPath* addItemPath (const QString&, QString&, const QString& = QString ::fromLatin1 ("" ), const QString& = QString ::null ); - ItemProperty* addItemProperty (const QString&, QVariant&, const QVariant& = QVariant (), const QString& = QString ::null ); - ItemBool* addItemBool (const QString&, bool&, bool = 0, const QString& = QString ::null ); -%MethodCode -//takes name | (QString) | value | (bool) | defaultValue | (bool) | key | (QString = QString::null) - - class PyItemBool : public KConfigSkeleton::ItemBool - { - public: - PyItemBool (const QString &group, const QString &key, bool val, bool defaultValue = 0) : - KConfigSkeleton::ItemBool (group, key, this->value, defaultValue) - { - value = val; - } - - private: - bool value; - }; - - Py_BEGIN_ALLOW_THREADS - sipRes = new PyItemBool (sipCpp->currentGroup(), a3->isNull() ? *a0 : *a3, a1, a2); - sipCpp->addItem(sipRes, *a0); - Py_END_ALLOW_THREADS -%End - - ItemInt* addItemInt (const QString&, int&, int = 0, const QString& = QString ::null ); -%MethodCode -//takes name | (QString) | value | (int) | defaultValue | (int) | key | (QString = QString::null) - - class PyItemInt : public KConfigSkeleton::ItemInt - { - public: - PyItemInt(const QString &group, const QString &key, int val, int defaultValue=0) : - KConfigSkeleton::ItemInt (group, key, this->value, defaultValue) - { - value = val; - } - - private: - int value; - }; - - Py_BEGIN_ALLOW_THREADS - sipRes = new PyItemInt(sipCpp->currentGroup(), a3->isNull() ? *a0 : *a3, a1, a2); - sipCpp->addItem(sipRes, *a0); - Py_END_ALLOW_THREADS -%End - - ItemUInt* addItemUInt (const QString&, uint&, uint = 0, const QString& = QString ::null ); -%MethodCode -//takes name | (QString) | value | (uint) | defaultValue | (uint) | key | (QString = QString::null) - - class PyItemUInt : public KConfigSkeleton::ItemUInt - { - public: - PyItemUInt(const QString &group, const QString &key, uint val, uint defaultValue = 0) : - KConfigSkeleton::ItemUInt (group, key, this->value, defaultValue) - { - value = val; - } - - private: - uint value; - }; - - Py_BEGIN_ALLOW_THREADS - sipRes = new PyItemUInt(sipCpp->currentGroup(), a3->isNull() ? *a0 : *a3, a1, a2); - sipCpp->addItem(sipRes, *a0); - Py_END_ALLOW_THREADS -%End - - ItemLong* addItemLong (const QString&, long&, long = 0, const QString& = QString ::null ); -%MethodCode -//takes name | (QString) | value | (long) | defaultValue | (long) | key | (QString = QString::null) - - class PyItemLong : public KConfigSkeleton::ItemLong - { - public: - PyItemLong(const QString &group, const QString &key, long val, long defaultValue=0) : - KConfigSkeleton::ItemLong (group, key, this->value, defaultValue) - { - value = val; - } - - private: - long value; - }; - - Py_BEGIN_ALLOW_THREADS - sipRes = new PyItemLong(sipCpp->currentGroup(), a3->isNull() ? *a0 : *a3, a1, a2); - sipCpp->addItem(sipRes, *a0); - Py_END_ALLOW_THREADS -%End - - ItemULong* addItemULong (const QString&, ulong&, ulong = 0, const QString& = QString ::null ); -%MethodCode -//takes name | (QString) | value | (ulong) | defaultValue | (ulong) | key | (QString = QString::null) - - class PyItemULong : public KConfigSkeleton::ItemULong - { - public: - PyItemULong(const QString &group, const QString &key, ulong val, ulong defaultValue = 0) : - KConfigSkeleton::ItemULong (group, key, this->value, defaultValue) - { - value = val; - } - - private: - ulong value; - }; - - Py_BEGIN_ALLOW_THREADS - sipRes = new PyItemULong(sipCpp->currentGroup(), a3->isNull() ? *a0 : *a3, a1, a2); - sipCpp->addItem(sipRes, *a0); - Py_END_ALLOW_THREADS -%End - - KConfigSkeleton::ItemInt64* addItemInt64 (const QString&, longlong&, longlong = 0, const QString& = QString ::null ); - KConfigSkeleton::ItemUInt64* addItemUInt64 (const QString&, ulonglong&, ulonglong = 0, const QString& = QString ::null ); - ItemDouble* addItemDouble (const QString&, double&, double = 0.0, const QString& = QString ::null ); -%MethodCode -//takes name | (QString) | value | (double) | defaultValue | (double) | key | (QString = QString::null) - - class PyItemDouble : public KConfigSkeleton::ItemDouble - { - public: - PyItemDouble(const QString &group, const QString &key, double val, double defaultValue=0.0) : - KConfigSkeleton::ItemDouble(group, key, this->value, defaultValue) - { - value = val; - }; - - private: - double value; - }; - - Py_BEGIN_ALLOW_THREADS - sipRes = new PyItemDouble(sipCpp->currentGroup(), a3->isNull() ? *a0 : *a3, a1, a2); - sipCpp->addItem(sipRes, *a0); - Py_END_ALLOW_THREADS -%End - - ItemColor* addItemColor (const QString&, QColor&, const QColor& = QColor (128 ,128 ,128 ), const QString& = QString ::null ); - ItemFont* addItemFont (const QString&, QFont&, const QFont& = KGlobalSettings ::generalFont (), const QString& = QString ::null ); - ItemRect* addItemRect (const QString&, QRect&, const QRect& = QRect (), const QString& = QString ::null ); - ItemPoint* addItemPoint (const QString&, QPoint&, const QPoint& = QPoint (), const QString& = QString ::null ); - ItemSize* addItemSize (const QString&, QSize&, const QSize& = QSize (), const QString& = QString ::null ); - ItemDateTime* addItemDateTime (const QString&, QDateTime&, const QDateTime& = QDateTime (), const QString& = QString ::null ); - KConfigSkeleton::ItemStringList* addItemStringList (const QString&, QStringList&, const QStringList& = QStringList (), const QString& = QString ::null ); - KConfigSkeleton::ItemIntList* addItemIntList (const QString&, QValueList&, const QValueList& = IntList (), const QString& = QString ::null ); -%MethodCode -//returns a Python list of int -//takes name | (QString) | reference | (a Python list of int) | defaultValue | (a Python list of int = []) | key | (QString = QString::null) - if (a2 == NULL) *(QValueList *)a2 = QValueList(); - Py_BEGIN_ALLOW_THREADS - sipRes = sipCpp->addItemIntList (*a0, *a1, *a2, *a3); - Py_END_ALLOW_THREADS -%End - - KConfig* config () const; - SIP_PYLIST items () const [KConfigSkeletonItem::List ()]; -%MethodCode -//returns (a Python list of Items) - - KConfigSkeletonItem::List list; - - Py_BEGIN_ALLOW_THREADS - list = sipCpp->items (); - Py_END_ALLOW_THREADS - - int n = list.count (); - if (n > 0) - for (int i = 0; i < n; i++) - PyList_Append (sipRes, sipConvertFromInstance (&(list [i]), sipClass_KConfigSkeletonItem, NULL)); -%End - - bool isImmutable (const QString&); - KConfigSkeletonItem* findItem (const QString&); - bool useDefaults (bool); - -protected: - virtual void usrUseDefaults (bool); - virtual void usrSetDefaults (); - virtual void usrReadConfig (); - virtual void usrWriteConfig (); - -public: -//force - - class ItemString : KConfigSkeletonItem - { - - public: - - enum Type - { - Normal, - Password, - Path - }; - - ItemString (const QString&, const QString&, QString&, const QString& = QString ::fromLatin1 ("" ), KConfigSkeleton::ItemString::Type = KConfigSkeleton ::ItemString ::Normal ); - void setValue (const QString&); - QString& value (); - virtual void setDefaultValue (const QString&); - virtual void setDefault (); - void swapDefault (); - void writeConfig (KConfig*); - void readConfig (KConfig*); - void setProperty (const QVariant&); - QVariant property () const; - - }; // class ItemString - - -public: -//end - -public: -//force - - class ItemProperty : KConfigSkeletonItem - { - - public: - ItemProperty (const QString&, const QString&, QVariant, QVariant = 0) [(const QString&, const QString&, QVariant&, QVariant = 0)]; -%MethodCode -//takes group | (QString) | key | (QString) | reference | (QVariant) | defaultValue | (QVariant = 0) - Py_BEGIN_ALLOW_THREADS - sipCpp = (sipKConfigSkeleton_ItemProperty *) new KConfigSkeleton::ItemProperty (*a0, *a1, *a2, *a3); - Py_END_ALLOW_THREADS -%End - - void setValue (const QVariant&); - QVariant& value (); - virtual void setDefaultValue (const QVariant&); - virtual void setDefault (); - void swapDefault (); - void writeConfig (KConfig*); - void readConfig (KConfig*); - void setProperty (const QVariant&); - QVariant property () const; - - }; // class ItemProperty - - -public: -//end - -public: -//force - - class ItemBool : KConfigSkeletonItem - { - - public: - ItemBool (const QString&, const QString&, bool, bool = 1) [(const QString&, const QString&, bool&, bool = 1)]; -%MethodCode -//takes group | (QString) | key | (QString) | reference | (bool) | defaultValue | (bool = 1) - - class PyItemBool : public KConfigSkeleton::ItemBool - { - public: - PyItemBool(const QString &group, const QString &key, bool val, bool defaultValue = false) : - KConfigSkeleton::ItemBool(group, key, this->value, defaultValue) - { - value = val; - }; - - private: - bool value; - }; - - Py_BEGIN_ALLOW_THREADS - sipCpp = (sipKConfigSkeleton_ItemBool *) new PyItemBool (*a0, *a1, a2); - Py_END_ALLOW_THREADS -%End - - void setValue (const bool&); - bool value (); - virtual void setDefaultValue (const bool&); - virtual void setDefault (); - void swapDefault (); - void writeConfig (KConfig*); - void readConfig (KConfig*); - void setProperty (const QVariant&); - QVariant property () const; - - }; // class ItemBool - - -public: -//end - -public: -//force - - class ItemInt : KConfigSkeletonItem - { - - public: - ItemInt (const QString&, const QString&, int, int = 1) [(const QString&, const QString&, int&, int = 1)]; -%MethodCode -//takes group | (QString) | key | (QString) | reference | (int) | defaultValue | (int = 1) - - class PyItemInt : public KConfigSkeleton::ItemInt - { - public: - PyItemInt(const QString &group, const QString &key, int val, int defaultValue = 0) : - KConfigSkeleton::ItemInt(group, key, this->value, defaultValue) - { - value = val; - }; - - private: - int value; - }; - - Py_BEGIN_ALLOW_THREADS - sipCpp = (sipKConfigSkeleton_ItemInt *) new PyItemInt (*a0, *a1, a2); - Py_END_ALLOW_THREADS -%End - - void setValue (const int&); - int value (); - virtual void setDefaultValue (const int&); - virtual void setDefault (); - void swapDefault (); - void writeConfig (KConfig*); - void readConfig (KConfig*); - void setProperty (const QVariant&); - QVariant property () const; - QVariant minValue () const; - QVariant maxValue () const; - void setMinValue (int); - void setMaxValue (int); - - }; // class ItemInt - - -public: -//end - -public: -//force - - class ItemInt64 : KConfigSkeletonItem - { - - public: - ItemInt64 (const QString&, const QString&, longlong&, longlong = 0); -%MethodCode -//takes group | (QString) | key | (QString) | reference | (longlong) | defaultValue | (longlong = 0) - - class PyItemInt64 : public KConfigSkeleton::ItemInt64 - { - public: - PyItemInt64(const QString &group, const QString &key, Q_INT64 val, Q_INT64 defaultValue=0) : - KConfigSkeleton::ItemInt64(group, key, this->value, defaultValue) - { - value = val; - }; - - private: - Q_INT64 value; - }; - - Py_BEGIN_ALLOW_THREADS - sipCpp = (sipKConfigSkeleton_ItemInt64 *) new PyItemInt64 (*a0, *a1, *a2, *a3); - Py_END_ALLOW_THREADS -%End - - void setValue (const longlong&); - longlong& value (); - virtual void setDefaultValue (const longlong&); - virtual void setDefault (); - void swapDefault (); - void writeConfig (KConfig*); - void readConfig (KConfig*); - void setProperty (const QVariant&); - QVariant property () const; - QVariant minValue () const; - QVariant maxValue () const; - void setMinValue (longlong); - void setMaxValue (longlong); - - }; // class ItemInt64 - - -public: -//end - -public: -//force - - class ItemUInt : KConfigSkeletonItem - { - - public: - ItemUInt (const QString&, const QString&, uint, uint = 0) [(const QString&, const QString&, uint&, uint = 0)]; -%MethodCode -//takes group | (QString) | key | (QString) | reference | (uint) | defaultValue | (uint = 1) - - class PyItemUInt : public KConfigSkeleton::ItemUInt - { - public: - PyItemUInt(const QString &group, const QString &key, uint val, uint defaultValue = 0) : - KConfigSkeleton::ItemUInt(group, key, this->value, defaultValue) - { - value = val; - }; - - private: - uint value; - }; - - Py_BEGIN_ALLOW_THREADS - sipCpp = (sipKConfigSkeleton_ItemUInt *) new PyItemUInt (*a0, *a1, a2); - Py_END_ALLOW_THREADS -%End - - void setValue (const uint&); - uint value (); - virtual void setDefaultValue (const uint&); - virtual void setDefault (); - void swapDefault (); - void writeConfig (KConfig*); - void readConfig (KConfig*); - void setProperty (const QVariant&); - QVariant property () const; - QVariant minValue () const; - QVariant maxValue () const; - void setMinValue (uint); - void setMaxValue (uint); - - }; // class ItemUInt - - -public: - -public: - - class ItemLong : KConfigSkeletonItem - { - - public: - ItemLong (const QString&, const QString&, long&, long = 0) [(const QString&, const QString&, long&, long = 0)]; -%MethodCode -//takes group | (QString) | key | (QString) | reference | (long) | defaultValue | (long = 1) - - class PyItemLong : public KConfigSkeleton::ItemLong - { - public: - PyItemLong(const QString &group, const QString &key, long val, long defaultValue = 0) : - KConfigSkeleton::ItemLong(group, key, this->value, defaultValue) - { - value = val; - }; - - private: - long value; - }; - - Py_BEGIN_ALLOW_THREADS - sipCpp = (sipKConfigSkeleton_ItemLong *) new PyItemLong (*a0, *a1, a2); - Py_END_ALLOW_THREADS -%End - - void setValue (const long&); - long value (); - virtual void setDefaultValue (const long&); - virtual void setDefault (); - void swapDefault (); - void writeConfig (KConfig*); - void readConfig (KConfig*); - void setProperty (const QVariant&); - QVariant property () const; - QVariant minValue () const; - QVariant maxValue () const; - void setMinValue (long); - void setMaxValue (long); - - }; // class ItemLong - - -public: -//end - -public: -//force - - class ItemULong : KConfigSkeletonItem - { - - public: - ItemULong (const QString&, const QString&, ulong, ulong = 0) [(const QString&, const QString&, ulong&, ulong = 0)]; -%MethodCode -//takes group | (QString) | key | (QString) | reference | (ulong) | defaultValue | (ulong = 1) - - class PyItemULong : public KConfigSkeleton::ItemULong - { - public: - PyItemULong(const QString &group, const QString &key, ulong val, ulong defaultValue = 0) : - KConfigSkeleton::ItemULong(group, key, this->value, defaultValue) - { - value = val; - }; - - private: - ulong value; - }; - - Py_BEGIN_ALLOW_THREADS - sipCpp = (sipKConfigSkeleton_ItemULong *) new PyItemULong (*a0, *a1, a2); - Py_END_ALLOW_THREADS -%End - - void setValue (const ulong&); - ulong value (); - virtual void setDefaultValue (const ulong&); - virtual void setDefault (); - void swapDefault (); - void writeConfig (KConfig*); - void readConfig (KConfig*); - void setProperty (const QVariant&); - QVariant property () const; - QVariant minValue () const; - QVariant maxValue () const; - void setMinValue (ulong); - void setMaxValue (ulong); - - }; // class ItemULong - - -public: -//end - -public: -//force - - class ItemUInt64 : KConfigSkeletonItem - { - - public: - ItemUInt64 (const QString&, const QString&, ulonglong&, ulonglong = 0); -%MethodCode -//takes group | (QString) | key | (QString) | reference | (ulonglong) | defaultValue | (ulonglong = 0) - - class PyItemUInt64 : public KConfigSkeleton::ItemUInt64 - { - public: - PyItemUInt64(const QString &group, const QString &key, Q_UINT64 val, Q_UINT64 defaultValue = 0) : - KConfigSkeleton::ItemUInt64(group, key, this->value, defaultValue) - { - value = val; - }; - - private: - Q_UINT64 value; - }; - - Py_BEGIN_ALLOW_THREADS - sipCpp = (sipKConfigSkeleton_ItemUInt64 *) new PyItemUInt64 (*a0, *a1, *a2, *a3); - Py_END_ALLOW_THREADS -%End - - void setValue (const ulonglong&); - ulonglong value (); - virtual void setDefaultValue (const ulonglong&); - virtual void setDefault (); - void swapDefault (); - void writeConfig (KConfig*); - void readConfig (KConfig*); - void setProperty (const QVariant&); - QVariant property () const; - QVariant minValue () const; - QVariant maxValue () const; - void setMinValue (ulonglong); - void setMaxValue (ulonglong); - - }; // class ItemUInt64 - - -public: -//end - -public: -//force - - class ItemDouble : KConfigSkeletonItem - { - - public: - ItemDouble (const QString&, const QString&, double, double = 0) [(const QString&, const QString&, double&, double = 0)]; -%MethodCode -//takes group | (QString) | key | (QString) | reference | (double) | defaultValue | (double = 0) - class PyItemDouble : public KConfigSkeleton::ItemDouble - { - public: - PyItemDouble(const QString &group, const QString &key, double val, double defaultValue=0.0) : - KConfigSkeleton::ItemDouble(group, key, this->value, defaultValue) - { - value = val; - }; - - private: - double value; - }; - - Py_BEGIN_ALLOW_THREADS - sipCpp = (sipKConfigSkeleton_ItemDouble *) new PyItemDouble (*a0, *a1, a2, a3); - Py_END_ALLOW_THREADS -%End - - void setValue (const double&); - double value (); - virtual void setDefaultValue (const double&); - virtual void setDefault (); - void swapDefault (); - void writeConfig (KConfig*); - void readConfig (KConfig*); - void setProperty (const QVariant&); - QVariant property () const; - QVariant minValue () const; - QVariant maxValue () const; - void setMinValue (double); - void setMaxValue (double); - - }; // class ItemDouble - - -public: -//end - -public: -//force - - class ItemColor : KConfigSkeletonItem - { - - public: - ItemColor (const QString&, const QString&, QColor&, const QColor& = QColor (128 ,128 ,128 )); - void setValue (const QColor&); - QColor& value (); - virtual void setDefaultValue (const QColor&); - virtual void setDefault (); - void swapDefault (); - void writeConfig (KConfig*); - void readConfig (KConfig*); - void setProperty (const QVariant&); - QVariant property () const; - - }; // class ItemColor - - -public: -//end - -public: -//force - - class ItemFont : KConfigSkeletonItem - { - - public: - ItemFont (const QString&, const QString&, QFont&, const QFont& = KGlobalSettings ::generalFont ()); - void setValue (const QFont&); - QFont& value (); - virtual void setDefaultValue (const QFont&); - virtual void setDefault (); - void swapDefault (); - void writeConfig (KConfig*); - void readConfig (KConfig*); - void setProperty (const QVariant&); - QVariant property () const; - - }; // class ItemFont - - -public: -//end - -public: -//force - - class ItemRect : KConfigSkeletonItem - { - - public: - ItemRect (const QString&, const QString&, QRect&, const QRect& = QRect ()); - void setValue (const QRect&); - QRect& value (); - virtual void setDefaultValue (const QRect&); - virtual void setDefault (); - void swapDefault (); - void writeConfig (KConfig*); - void readConfig (KConfig*); - void setProperty (const QVariant&); - QVariant property () const; - - }; // class ItemRect - - -public: -//end - -public: -//force - - class ItemPoint : KConfigSkeletonItem - { - - public: - ItemPoint (const QString&, const QString&, QPoint&, const QPoint& = QPoint ()); - void setValue (const QPoint&); - QPoint& value (); - virtual void setDefaultValue (const QPoint&); - virtual void setDefault (); - void swapDefault (); - void writeConfig (KConfig*); - void readConfig (KConfig*); - void setProperty (const QVariant&); - QVariant property () const; - - }; // class ItemPoint - - -public: -//end - -public: -//force - - class ItemSize : KConfigSkeletonItem - { - - public: - ItemSize (const QString&, const QString&, QSize&, const QSize& = QSize ()); - void setValue (const QSize&); - QSize& value (); - virtual void setDefaultValue (const QSize&); - virtual void setDefault (); - void swapDefault (); - void writeConfig (KConfig*); - void readConfig (KConfig*); - void setProperty (const QVariant&); - QVariant property () const; - - }; // class ItemSize - - -public: -//end - -public: -//force - - class ItemDateTime : KConfigSkeletonItem - { - - public: - ItemDateTime (const QString&, const QString&, QDateTime&, const QDateTime& = QDateTime ()); - void setValue (const QDateTime&); - QDateTime& value (); - virtual void setDefaultValue (const QDateTime&); - virtual void setDefault (); - void swapDefault (); - void writeConfig (KConfig*); - void readConfig (KConfig*); - void setProperty (const QVariant&); - QVariant property () const; - - }; // class ItemDateTime - - -public: -//end - -public: -//force - - class ItemStringList : KConfigSkeletonItem - { - - public: - ItemStringList (const QString&, const QString&, QStringList&, const QStringList& = QStringList ()); - void setValue (const QStringList&); - QStringList& value (); - virtual void setDefaultValue (const QStringList&); - virtual void setDefault (); - void swapDefault (); - void writeConfig (KConfig*); - void readConfig (KConfig*); - void setProperty (const QVariant&); - QVariant property () const; - - }; // class ItemStringList - - -public: -//end - -public: -//force - - class ItemIntList : KConfigSkeletonItem - { - - public: - ItemIntList (const QString&, const QString&, QValueList&, const QValueList& = IntList ()); -%MethodCode -//takes group | (QString) | key | (QString) | reference | (a Python list of int) | defaultValue | (a Python list of int = 0) - if (a3 == NULL) *(QValueList *)a3 = QValueList(); - Py_BEGIN_ALLOW_THREADS - sipCpp = (sipKConfigSkeleton_ItemIntList *) new KConfigSkeleton::ItemIntList (*a0, *a1, *a2, *a3); - Py_END_ALLOW_THREADS -%End - - void setValue (const QValueList&); - QValueList& value (); - virtual void setDefaultValue (const QValueList&); - virtual void setDefault (); - void swapDefault (); - void writeConfig (KConfig*); - void readConfig (KConfig*); - void setProperty (const QVariant&); - QVariant property () const; - - }; // class ItemIntList - - -public: -//end - -}; // class KConfigSkeleton - -%End - - - -%If (KDE_3_2_0 - ) -%MappedType QValueList -{ -%TypeHeaderCode -#include -%End - -%ConvertFromTypeCode - if (!sipCpp) - return PyList_New(0); - - // Create the list - PyObject *pylist; - if ((pylist = PyList_New(0)) == NULL) - return NULL; - - QValueList *cpplist = (QValueList *)sipCpp; - PyObject *inst; - - // Get it. - QValueList::Iterator it; - for( it = cpplist->begin(); it != cpplist->end(); ++it ) - { - if (((inst = sipConvertFromNewType(new KConfigSkeleton::ItemEnum::Choice(*it), sipType_KConfigSkeleton_ItemEnum_Choice, NULL)) == NULL) - || PyList_Append (pylist, inst) < 0) - { - Py_DECREF (pylist); - return NULL; - } - } - - return pylist; -%End - - -%ConvertToTypeCode - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - QValueList *cpplist = new QValueList; - - PyObject *elem; - KConfigSkeleton::ItemEnum::Choice *cpp; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - elem = PyList_GET_ITEM (sipPy, i); - cpp = (KConfigSkeleton::ItemEnum::Choice *)sipForceConvertToType(elem, sipType_KConfigSkeleton_ItemEnum_Choice, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (*cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; -%End - - diff --git a/sip/kdecore/kcrash.sip b/sip/kdecore/kcrash.sip deleted file mode 100644 index ebf2252..0000000 --- a/sip/kdecore/kcrash.sip +++ /dev/null @@ -1,51 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KCrash -{ -%TypeHeaderCode -#include -%End - - -public: - static void defaultCrashHandler (int); -//ig static void setCrashHandler (HandlerType = defaultCrashHandler ); -//ig static HandlerType crashHandler (); -//ig static void setEmergencySaveFunction (HandlerType = 0 ); -//ig static HandlerType emergencySaveFunction (); - -%If ( KDE_3_2_0 - ) - static void setSafer (bool); -%End - - static void setApplicationPath (QString); - static void setApplicationName (QString); - -protected: - -}; // class KCrash - diff --git a/sip/kdecore/kdcoppropertyproxy.sip b/sip/kdecore/kdcoppropertyproxy.sip deleted file mode 100644 index b6da6be..0000000 --- a/sip/kdecore/kdcoppropertyproxy.sip +++ /dev/null @@ -1,44 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KDCOPPropertyProxy -{ -%TypeHeaderCode -#include -%End - - -public: - KDCOPPropertyProxy (QObject*); - bool isPropertyRequest (const QCString&); - bool processPropertyRequest (const QCString&, const QByteArray&, QCString&, QByteArray&); - QValueList functions (); - static QValueList functions (QObject*); - static bool isPropertyRequest (const QCString&, QObject*); - static bool processPropertyRequest (const QCString&, const QByteArray&, QCString&, QByteArray&, QObject*); - -}; // class KDCOPPropertyProxy - diff --git a/sip/kdecore/kdebug.sip b/sip/kdecore/kdebug.sip deleted file mode 100644 index 19d8ddd..0000000 --- a/sip/kdecore/kdebug.sip +++ /dev/null @@ -1,67 +0,0 @@ -// -// Copyright 2003 Jim Bublitz -// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE_3_1_1 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class kdbgstream -{ -%TypeHeaderCode -#include -%End - - -public: - kdbgstream (uint, uint, bool = 1); - kdbgstream (const char*, uint, uint, bool = 1); - void flush (); -//ig kdbgstream& form (const char*, ...); - -}; // class kdbgstream - - -class kndbgstream -{ -%TypeHeaderCode -#include -%End - - -public: - kndbgstream (); - void flush (); -//ig kndbgstream& form (const char*, ...); - -}; // class kndbgstream - -//ig void kDebugFatal (const char*, ...); -//ig void kDebugFatal (ushort, const char*, ...); -kdbgstream& perror (kdbgstream&); -kdbgstream kdDebug (int = 0); -kdbgstream kdDebug (bool, int = 0); -kdbgstream kdWarning (int = 0); -kdbgstream kdWarning (bool, int = 0); -kdbgstream kdError (int = 0); -kdbgstream kdError (bool, int = 0); -kdbgstream kdFatal (int = 0); -kdbgstream kdFatal (bool, int = 0); diff --git a/sip/kdecore/kdecore-kde310.diff b/sip/kdecore/kdecore-kde310.diff deleted file mode 100644 index d87c911..0000000 --- a/sip/kdecore/kdecore-kde310.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kclipboard.sip diff --git a/sip/kdecore/kdecore-kde311.diff b/sip/kdecore/kdecore-kde311.diff deleted file mode 100644 index d87c911..0000000 --- a/sip/kdecore/kdecore-kde311.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kclipboard.sip diff --git a/sip/kdecore/kdecore-kde312.diff b/sip/kdecore/kdecore-kde312.diff deleted file mode 100644 index d87c911..0000000 --- a/sip/kdecore/kdecore-kde312.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kclipboard.sip diff --git a/sip/kdecore/kdecore-kde313.diff b/sip/kdecore/kdecore-kde313.diff deleted file mode 100644 index d87c911..0000000 --- a/sip/kdecore/kdecore-kde313.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kclipboard.sip diff --git a/sip/kdecore/kdecore-kde314.diff b/sip/kdecore/kdecore-kde314.diff deleted file mode 100644 index 13e7719..0000000 --- a/sip/kdecore/kdecore-kde314.diff +++ /dev/null @@ -1,3 +0,0 @@ -+ %Include kclipboard.sip -+ %Include kdeversion.sip -+ %Include kurldrag.sip diff --git a/sip/kdecore/kdecore-kde315.diff b/sip/kdecore/kdecore-kde315.diff deleted file mode 100644 index 13e7719..0000000 --- a/sip/kdecore/kdecore-kde315.diff +++ /dev/null @@ -1,3 +0,0 @@ -+ %Include kclipboard.sip -+ %Include kdeversion.sip -+ %Include kurldrag.sip diff --git a/sip/kdecore/kdecore-kde320.diff b/sip/kdecore/kdecore-kde320.diff deleted file mode 100644 index 8476e6c..0000000 --- a/sip/kdecore/kdecore-kde320.diff +++ /dev/null @@ -1,16 +0,0 @@ -+ %Include kcalendarsystem.sip -+ %Include kcalendarsystemfactory.sip -+ %Include kclipboard.sip -+ %Include kconfigdialogmanager.sip -+ %Include kconfigskeleton.sip -+ %Include kdeversion.sip -+ %Include kidna.sip -+ %Include kmacroexpander.sip -+ %Include kmountpoint.sip -+ %Include kpty.sip -+ %Include kshell.sip -+ %Include kurldrag.sip -+ %Include kuser.sip - - - diff --git a/sip/kdecore/kdecore-kde321.diff b/sip/kdecore/kdecore-kde321.diff deleted file mode 100644 index 5dc526d..0000000 --- a/sip/kdecore/kdecore-kde321.diff +++ /dev/null @@ -1,12 +0,0 @@ -+ %Include kcalendarsystem.sip -+ %Include kcalendarsystemfactory.sip -+ %Include kclipboard.sip -+ %Include kconfigdialogmanager.sip -+ %Include kconfigskeleton.sip -+ %Include kdeversion.sip -+ %Include kidna.sip -+ %Include kmacroexpander.sip -+ %Include kmountpoint.sip -+ %Include kpty.sip -+ %Include kshell.sip -+ %Include kurldrag.sip diff --git a/sip/kdecore/kdecore-kde322.diff b/sip/kdecore/kdecore-kde322.diff deleted file mode 100644 index e0d64ad..0000000 --- a/sip/kdecore/kdecore-kde322.diff +++ /dev/null @@ -1,13 +0,0 @@ -+ %Include fixx11h.sip -+ %Include kcalendarsystem.sip -+ %Include kcalendarsystemfactory.sip -+ %Include kclipboard.sip -+ %Include kconfigdialogmanager.sip -+ %Include kconfigskeleton.sip -+ %Include kdeversion.sip -+ %Include kidna.sip -+ %Include kmacroexpander.sip -+ %Include kmountpoint.sip -+ %Include kpty.sip -+ %Include kshell.sip -+ %Include kurldrag.sip diff --git a/sip/kdecore/kdecore-kde323.diff b/sip/kdecore/kdecore-kde323.diff deleted file mode 100644 index e0d64ad..0000000 --- a/sip/kdecore/kdecore-kde323.diff +++ /dev/null @@ -1,13 +0,0 @@ -+ %Include fixx11h.sip -+ %Include kcalendarsystem.sip -+ %Include kcalendarsystemfactory.sip -+ %Include kclipboard.sip -+ %Include kconfigdialogmanager.sip -+ %Include kconfigskeleton.sip -+ %Include kdeversion.sip -+ %Include kidna.sip -+ %Include kmacroexpander.sip -+ %Include kmountpoint.sip -+ %Include kpty.sip -+ %Include kshell.sip -+ %Include kurldrag.sip diff --git a/sip/kdecore/kdecore-kde330.diff b/sip/kdecore/kdecore-kde330.diff deleted file mode 100644 index d202574..0000000 --- a/sip/kdecore/kdecore-kde330.diff +++ /dev/null @@ -1,15 +0,0 @@ -+ %Include fixx11h.sip -+ %Include kcalendarsystem.sip -+ %Include kcalendarsystemfactory.sip -+ %Include kclipboard.sip -+ %Include kconfigdialogmanager.sip -+ %Include kconfigskeleton.sip -+ %Include kdeversion.sip -+ %Include kidna.sip -+ %Include klockfile.sip -+ %Include kmacroexpander.sip -+ %Include kmanagerselection.sip -+ %Include kmountpoint.sip -+ %Include kpty.sip -+ %Include kshell.sip -+ %Include kurldrag.sip diff --git a/sip/kdecore/kdecore-kde331.diff b/sip/kdecore/kdecore-kde331.diff deleted file mode 100644 index d202574..0000000 --- a/sip/kdecore/kdecore-kde331.diff +++ /dev/null @@ -1,15 +0,0 @@ -+ %Include fixx11h.sip -+ %Include kcalendarsystem.sip -+ %Include kcalendarsystemfactory.sip -+ %Include kclipboard.sip -+ %Include kconfigdialogmanager.sip -+ %Include kconfigskeleton.sip -+ %Include kdeversion.sip -+ %Include kidna.sip -+ %Include klockfile.sip -+ %Include kmacroexpander.sip -+ %Include kmanagerselection.sip -+ %Include kmountpoint.sip -+ %Include kpty.sip -+ %Include kshell.sip -+ %Include kurldrag.sip diff --git a/sip/kdecore/kdecore-kde332.diff b/sip/kdecore/kdecore-kde332.diff deleted file mode 100644 index d202574..0000000 --- a/sip/kdecore/kdecore-kde332.diff +++ /dev/null @@ -1,15 +0,0 @@ -+ %Include fixx11h.sip -+ %Include kcalendarsystem.sip -+ %Include kcalendarsystemfactory.sip -+ %Include kclipboard.sip -+ %Include kconfigdialogmanager.sip -+ %Include kconfigskeleton.sip -+ %Include kdeversion.sip -+ %Include kidna.sip -+ %Include klockfile.sip -+ %Include kmacroexpander.sip -+ %Include kmanagerselection.sip -+ %Include kmountpoint.sip -+ %Include kpty.sip -+ %Include kshell.sip -+ %Include kurldrag.sip diff --git a/sip/kdecore/kdecore-kde340.diff b/sip/kdecore/kdecore-kde340.diff deleted file mode 100644 index d202574..0000000 --- a/sip/kdecore/kdecore-kde340.diff +++ /dev/null @@ -1,15 +0,0 @@ -+ %Include fixx11h.sip -+ %Include kcalendarsystem.sip -+ %Include kcalendarsystemfactory.sip -+ %Include kclipboard.sip -+ %Include kconfigdialogmanager.sip -+ %Include kconfigskeleton.sip -+ %Include kdeversion.sip -+ %Include kidna.sip -+ %Include klockfile.sip -+ %Include kmacroexpander.sip -+ %Include kmanagerselection.sip -+ %Include kmountpoint.sip -+ %Include kpty.sip -+ %Include kshell.sip -+ %Include kurldrag.sip diff --git a/sip/kdecore/kdecore-kde341.diff b/sip/kdecore/kdecore-kde341.diff deleted file mode 100644 index d202574..0000000 --- a/sip/kdecore/kdecore-kde341.diff +++ /dev/null @@ -1,15 +0,0 @@ -+ %Include fixx11h.sip -+ %Include kcalendarsystem.sip -+ %Include kcalendarsystemfactory.sip -+ %Include kclipboard.sip -+ %Include kconfigdialogmanager.sip -+ %Include kconfigskeleton.sip -+ %Include kdeversion.sip -+ %Include kidna.sip -+ %Include klockfile.sip -+ %Include kmacroexpander.sip -+ %Include kmanagerselection.sip -+ %Include kmountpoint.sip -+ %Include kpty.sip -+ %Include kshell.sip -+ %Include kurldrag.sip diff --git a/sip/kdecore/kdecore-kde342.diff b/sip/kdecore/kdecore-kde342.diff deleted file mode 100644 index d202574..0000000 --- a/sip/kdecore/kdecore-kde342.diff +++ /dev/null @@ -1,15 +0,0 @@ -+ %Include fixx11h.sip -+ %Include kcalendarsystem.sip -+ %Include kcalendarsystemfactory.sip -+ %Include kclipboard.sip -+ %Include kconfigdialogmanager.sip -+ %Include kconfigskeleton.sip -+ %Include kdeversion.sip -+ %Include kidna.sip -+ %Include klockfile.sip -+ %Include kmacroexpander.sip -+ %Include kmanagerselection.sip -+ %Include kmountpoint.sip -+ %Include kpty.sip -+ %Include kshell.sip -+ %Include kurldrag.sip diff --git a/sip/kdecore/kdecore-kde343.diff b/sip/kdecore/kdecore-kde343.diff deleted file mode 100644 index d202574..0000000 --- a/sip/kdecore/kdecore-kde343.diff +++ /dev/null @@ -1,15 +0,0 @@ -+ %Include fixx11h.sip -+ %Include kcalendarsystem.sip -+ %Include kcalendarsystemfactory.sip -+ %Include kclipboard.sip -+ %Include kconfigdialogmanager.sip -+ %Include kconfigskeleton.sip -+ %Include kdeversion.sip -+ %Include kidna.sip -+ %Include klockfile.sip -+ %Include kmacroexpander.sip -+ %Include kmanagerselection.sip -+ %Include kmountpoint.sip -+ %Include kpty.sip -+ %Include kshell.sip -+ %Include kurldrag.sip diff --git a/sip/kdecore/kdecore-kde350.diff b/sip/kdecore/kdecore-kde350.diff deleted file mode 100644 index b8dba4c..0000000 --- a/sip/kdecore/kdecore-kde350.diff +++ /dev/null @@ -1,16 +0,0 @@ -+ %Include fixx11h.sip -+ %Include kcalendarsystem.sip -+ %Include kcalendarsystemfactory.sip -+ %Include kclipboard.sip -+ %Include kconfigdialogmanager.sip -+ %Include kconfigskeleton.sip -+ %Include kdeversion.sip -+ %Include kidna.sip -+ %Include klockfile.sip -+ %Include kmacroexpander.sip -+ %Include kmanagerselection.sip -+ %Include kmountpoint.sip -+ %Include kpty.sip -+ %Include kshell.sip -+ %Include ktimezones.sip -+ %Include kurldrag.sip diff --git a/sip/kdecore/kdecore-kde351.diff b/sip/kdecore/kdecore-kde351.diff deleted file mode 100644 index b8dba4c..0000000 --- a/sip/kdecore/kdecore-kde351.diff +++ /dev/null @@ -1,16 +0,0 @@ -+ %Include fixx11h.sip -+ %Include kcalendarsystem.sip -+ %Include kcalendarsystemfactory.sip -+ %Include kclipboard.sip -+ %Include kconfigdialogmanager.sip -+ %Include kconfigskeleton.sip -+ %Include kdeversion.sip -+ %Include kidna.sip -+ %Include klockfile.sip -+ %Include kmacroexpander.sip -+ %Include kmanagerselection.sip -+ %Include kmountpoint.sip -+ %Include kpty.sip -+ %Include kshell.sip -+ %Include ktimezones.sip -+ %Include kurldrag.sip diff --git a/sip/kdecore/kdecore-kde352.diff b/sip/kdecore/kdecore-kde352.diff deleted file mode 100644 index b8dba4c..0000000 --- a/sip/kdecore/kdecore-kde352.diff +++ /dev/null @@ -1,16 +0,0 @@ -+ %Include fixx11h.sip -+ %Include kcalendarsystem.sip -+ %Include kcalendarsystemfactory.sip -+ %Include kclipboard.sip -+ %Include kconfigdialogmanager.sip -+ %Include kconfigskeleton.sip -+ %Include kdeversion.sip -+ %Include kidna.sip -+ %Include klockfile.sip -+ %Include kmacroexpander.sip -+ %Include kmanagerselection.sip -+ %Include kmountpoint.sip -+ %Include kpty.sip -+ %Include kshell.sip -+ %Include ktimezones.sip -+ %Include kurldrag.sip diff --git a/sip/kdecore/kdecore-kde353.diff b/sip/kdecore/kdecore-kde353.diff deleted file mode 100644 index b8dba4c..0000000 --- a/sip/kdecore/kdecore-kde353.diff +++ /dev/null @@ -1,16 +0,0 @@ -+ %Include fixx11h.sip -+ %Include kcalendarsystem.sip -+ %Include kcalendarsystemfactory.sip -+ %Include kclipboard.sip -+ %Include kconfigdialogmanager.sip -+ %Include kconfigskeleton.sip -+ %Include kdeversion.sip -+ %Include kidna.sip -+ %Include klockfile.sip -+ %Include kmacroexpander.sip -+ %Include kmanagerselection.sip -+ %Include kmountpoint.sip -+ %Include kpty.sip -+ %Include kshell.sip -+ %Include ktimezones.sip -+ %Include kurldrag.sip diff --git a/sip/kdecore/kdecoremod.sip.in b/sip/kdecore/kdecoremod.sip.in deleted file mode 100644 index 60e93e0..0000000 --- a/sip/kdecore/kdecoremod.sip.in +++ /dev/null @@ -1,99 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE_3_5_2 - -%Copying - - This software is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License as - published by the Free Software Foundation; either version 2 of - the License, or (at your option) any later version. - - This software is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public - License along with this library; see the file COPYING. - If not, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -%End - -%Module tdecore - -%Import qt/qtmod.sip -%Import dcopmod.sip - -%Include bytearray.sip -%Include kaboutdata.sip -%Include kaccel.sip -%Include kaccelaction.sip -%Include kaccelbase.sip -%Include kallocator.sip -%Include kapplication.sip -%Include kasyncio.sip -%Include kaudioplayer.sip -%Include kbufferedio.sip -%Include kcatalogue.sip -%Include kcharsets.sip -%Include kcmdlineargs.sip -%Include kcompletion.sip -%Include kconfig.sip -%Include kconfigbackend.sip -%Include kconfigbase.sip -%Include kconfigdata.sip -%Include kcrash.sip -%Include kdcoppropertyproxy.sip -%Include kdesktopfile.sip -%Include kglobal.sip -%Include kglobalaccel.sip -%Include kglobalsettings.sip -%Include kiconeffect.sip -%Include kiconloader.sip -%Include kicontheme.sip -%Include kinstance.sip -%Include kipc.sip -%Include kkeynative.sip -%Include kkeyserver_x11.sip -%Include klibloader.sip -%Include klocale.sip -%Include kmdcodec.sip -%Include kmimesourcefactory.sip -%Include kmultipledrag.sip -%Include knotifyclient.sip -%Include kpalette.sip -%Include kpixmapprovider.sip -%Include kprocctrl.sip -%Include kprocess.sip -%Include kprocio.sip -%Include krandomsequence.sip -%Include kregexp.sip -%Include krfcdate.sip -%Include krootprop.sip -%Include ksavefile.sip -%Include ksharedptr.sip -%Include kshortcut.sip -%Include kshortcutlist.sip -%Include ksimpleconfig.sip -%Include ksock.sip -%Include kstartupinfo.sip -%Include kstaticdeleter.sip -%Include kstdaccel.sip -%Include kstddirs.sip -%Include kstringhandler.sip -%Include ktempdir.sip -%Include ktempfile.sip -%Include kuniqueapplication.sip -%Include kurl.sip -%Include kwin.sip -%Include kwinmodule.sip -%Include netwm.sip -%Include netwm_def.sip -@mark@ diff --git a/sip/kdecore/kdesktopfile.sip b/sip/kdecore/kdesktopfile.sip deleted file mode 100644 index 47e83fd..0000000 --- a/sip/kdecore/kdesktopfile.sip +++ /dev/null @@ -1,85 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KDesktopFile : KConfig -{ -%TypeHeaderCode -#include -%End - - -public: - KDesktopFile (const QString&, bool = 0, const char* = "apps"); - static bool isDesktopFile (const QString&); - -%If ( KDE_3_1_0 - ) - static bool isAuthorizedDesktopFile (const QString&); - -%If ( KDE_3_2_0 - ) - static QString locateLocal (const QString&); -%End - -%End - - QString readType () const; - QString readIcon () const; - QString readName () const; - QString readComment () const; - QString readGenericName () const; - QString readPath () const; - QString readDevice () const; - QString readURL () const; - QStringList readActions () const; - void setActionGroup (const QString&); - bool hasActionGroup (const QString&) const; - bool hasLinkType () const; - bool hasApplicationType () const; - bool hasMimeTypeType () const; - bool hasDeviceType () const; - bool tryExec () const; - QString fileName () const; - QString resource () const; - -%If ( KDE_3_1_0 - ) - QString readDocPath () const; -%End - - QStringList sortOrder () const; - -%If ( KDE_3_2_0 - ) - KDesktopFile* copyTo (const QString&) const; -%End - - QString filename () const; - -private: - KDesktopFile (const KDesktopFile&); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KDesktopFile - diff --git a/sip/kdecore/kdesktopwidget.sip b/sip/kdecore/kdesktopwidget.sip deleted file mode 100644 index cf97c1e..0000000 --- a/sip/kdecore/kdesktopwidget.sip +++ /dev/null @@ -1,45 +0,0 @@ -// -// Copyright 2003 Jim Bublitz -// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE_3_1_1 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KDesktopWidget : QWidget -{ -%TypeHeaderCode -#include -%End - - -public: - KDesktopWidget (); - bool isVirtualDesktop () const; - int numScreens () const; - int primaryScreen () const; - int screenNumber (QWidget* = 0) const; - int screenNumber (const QPoint&) const; - QWidget* screen (int = -1); - const QRect& screenGeometry (int = -1) const; - -}; // class KDesktopWidget - diff --git a/sip/kdecore/kdestyle.sip b/sip/kdecore/kdestyle.sip deleted file mode 100644 index 2456913..0000000 --- a/sip/kdecore/kdestyle.sip +++ /dev/null @@ -1,108 +0,0 @@ -// -// Copyright 2003 Jim Bublitz -// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE_3_1_1 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KDEAniMenu : QObject -{ -%TypeHeaderCode -#include -%End - - -public: - KDEAniMenu (QPopupMenu*); - -protected: - void scrollIn (); - -protected slots: - void slotDestroyFake (); - void slotFinished (); - -}; // class KDEAniMenu - - -class KDEStyle : KStyle -{ -%TypeHeaderCode -#include -%End - - -public: - KDEStyle (); - virtual void polish (QWidget*); - virtual void unPolish (QWidget*); - virtual void polish (QPalette&); - void drawButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, const QBrush* = 0); - void drawButtonMask (QPainter*, int, int, int, int); - void drawComboButtonMask (QPainter*, int, int, int, int); - QRect buttonRect (int, int, int, int); - void drawBevelButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, const QBrush* = 0); - void drawPushButton (QPushButton*, QPainter*); - virtual void drawPushButtonLabel (QPushButton*, QPainter*); - void drawScrollBarControls (QPainter*, const QScrollBar*, int, uint, uint); - QStyle::ScrollControl scrollBarPointOver (const QScrollBar*, int, const QPoint&); - void scrollBarMetrics (const QScrollBar*, int&/Out/, int&/Out/, int&/Out/, int&/Out/); - QSize indicatorSize () const; - void drawIndicator (QPainter*, int, int, int, int, const QColorGroup&, int, bool = 0, bool = 1); - void drawIndicatorMask (QPainter*, int, int, int, int, int); - QSize exclusiveIndicatorSize () const; - void drawExclusiveIndicator (QPainter*, int, int, int, int, const QColorGroup&, bool, bool = 0, bool = 1); - void drawExclusiveIndicatorMask (QPainter*, int, int, int, int, bool); - void drawComboButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, bool = 0, bool = 1, const QBrush* = 0); - QRect comboButtonRect (int, int, int, int); - QRect comboButtonFocusRect (int, int, int, int); - int sliderLength () const; - void drawArrow (QPainter*, Qt::ArrowType, bool, int, int, int, int, const QColorGroup&, bool = 1, const QBrush* = 0); - void drawSlider (QPainter*, int, int, int, int, const QColorGroup&, Orientation, bool, bool); - void drawSliderMask (QPainter*, int, int, int, int, Orientation, bool, bool); - void drawKToolBar (QPainter*, int, int, int, int, const QColorGroup&, KToolBarPos, QBrush* = 0); - void drawKBarHandle (QPainter*, int, int, int, int, const QColorGroup&, KToolBarPos, QBrush* = 0); - void drawKMenuBar (QPainter*, int, int, int, int, const QColorGroup&, bool, QBrush* = 0); - void drawKToolBarButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, bool = 1, bool = 1, bool = 0, KToolButtonType = Icon, const QString& = QString::null, const QPixmap* = 0, QFont* = 0, QWidget* = 0); -//ig void drawKMenuItem (QPainter*, int, int, int, int, const QColorGroup&, bool, QMenuItem*, QBrush* = 0); -//ig void drawPopupMenuItem (QPainter*, bool, int, int, QMenuItem*, const QPalette&, bool, bool, int, int, int, int); -//ig int popupMenuItemHeight (bool, QMenuItem*, const QFontMetrics&); - void drawKProgressBlock (QPainter*, int, int, int, int, const QColorGroup&, QBrush*); - void drawFocusRect (QPainter*, const QRect&, const QColorGroup&, const QColor*, bool); - int defaultFrameWidth () const; - void polishPopupMenu (QPopupMenu*); - void drawTab (QPainter*, const QTabBar*, QTab*, bool); - void drawTabMask (QPainter*, const QTabBar*, QTab*, bool); - void tabbarMetrics (const QTabBar*, int&/Out/, int&/Out/, int&/Out/); - void drawSplitter (QPainter*, int, int, int, int, const QColorGroup&, Orientation); - int splitterWidth () const; - void drawPanel (QPainter*, int, int, int, int, const QColorGroup&, bool, int, const QBrush*); - void drawKickerAppletHandle (QPainter*, int, int, int, int, const QColorGroup&, QBrush*); - bool eventFilter (QObject*, QEvent*); - -protected: - void drawSBDeco (QPainter*, const QRect&, const QColorGroup&, bool); - void drawSBButton (QPainter*, const QRect&, const QColorGroup&, bool = 0); - void kColorBitmaps (QPainter*, const QColorGroup&, int, int, QBitmap* = 0, QBitmap* = 0, QBitmap* = 0, QBitmap* = 0, QBitmap* = 0, QBitmap* = 0); - -}; // class KDEStyle - diff --git a/sip/kdecore/kdeversion.sip b/sip/kdecore/kdeversion.sip deleted file mode 100644 index 0f71d17..0000000 --- a/sip/kdecore/kdeversion.sip +++ /dev/null @@ -1,45 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -%ModuleHeaderCode -#include -%End - - -%If ( KDE_3_1_4 - ) -namespace KDE -{ - -%If ( KDE_3_2_0 - ) -uint version (); -%End - -uint versionMajor (); -uint versionMinor (); -uint versionRelease (); -const char* versionString (); -}; // namespace KDE - -%End diff --git a/sip/kdecore/kglobal.sip b/sip/kdecore/kglobal.sip deleted file mode 100644 index b8947e0..0000000 --- a/sip/kdecore/kglobal.sip +++ /dev/null @@ -1,65 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KGlobal -{ -%TypeHeaderCode -#include -%End - - -public: - static KInstance* instance (); - static KStandardDirs* dirs (); - static KConfig* config (); - -%If ( KDE_3_2_0 - ) - static KSharedConfig* sharedConfig (); -%End - - static KIconLoader* iconLoader (); - static KLocale* locale (); - static KCharsets* charsets (); - static const QString& staticQString (const char*); - static const QString& staticQString (const QString&); - static void registerStaticDeleter (KStaticDeleterBase*); - static void unregisterStaticDeleter (KStaticDeleterBase*); - static void deleteStaticDeleters (); -//ig KStringDict* _stringDict; -//ig KInstance* _instance; -//ig KLocale* _locale; -//ig KCharsets* _charsets; -//ig KStaticDeleterList* _staticDeleters; - static void setActiveInstance (KInstance*); - static KInstance* activeInstance (); -//ig KInstance* _activeInstance; - -}; // class KGlobal - - -%If ( KDE_3_4_0 - ) -int kasciistricmp (const char*, const char*); -%End diff --git a/sip/kdecore/kglobalaccel.sip b/sip/kdecore/kglobalaccel.sip deleted file mode 100644 index 1e757f5..0000000 --- a/sip/kdecore/kglobalaccel.sip +++ /dev/null @@ -1,87 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KGlobalAccel : QObject -{ -%TypeHeaderCode -#include -%End - - -public: - KGlobalAccel (QObject*, const char* = 0); - bool isEnabled () const; - void setEnabled (bool); - KAccelAction* insert (const QString&, const QString&, const QString&, const KShortcut&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1, bool = 1); - -%If ( KDE_3_1_0 - ) - bool remove (const QString&); -%End - - KAccelAction* insert (const QString&, const QString&); - bool updateConnections (); - const KShortcut& shortcut (const QString&) const; - bool setShortcut (const QString&, const KShortcut&); - bool setSlot (const QString&, SIP_RXOBJ_CON, SIP_SLOT_CON ()); - -%If ( KDE_3_4_0 - ) - bool setActionEnabled (const QString&, bool); -%End - - -%If ( KDE_3_3_0 - ) - QString label (const QString&) const; -%End - - const QString& configGroup () const; - void setConfigGroup (const QString&); - bool readSettings (KConfigBase* = 0); - bool writeSettings (KConfigBase* = 0) const; - -%If ( KDE_3_1_0 - ) - bool writeSettings (KConfigBase*, bool) const; -%End - - static bool useFourModifierKeys (); - -%If ( KDE_3_5_0 - ) - static void blockShortcuts (bool); - void disableBlocking (bool); -%End - - -protected: -//igx virtual void virtual_hook (int, void*); - -public: - -%If ( - KDE_3_2_0 ) -//ig bool setEnabled (const QString&, bool); -%End - - -}; // class KGlobalAccel - diff --git a/sip/kdecore/kglobalsettings.sip b/sip/kdecore/kglobalsettings.sip deleted file mode 100644 index 08386c6..0000000 --- a/sip/kdecore/kglobalsettings.sip +++ /dev/null @@ -1,157 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KGlobalSettings -{ -%TypeHeaderCode -#include -%End - - -public: - static int dndEventDelay (); - static bool singleClick (); - -%If ( KDE_3_1_0 - ) - - enum TearOffHandle - { - Disable, - ApplicationLevel, - Enable - }; - - static KGlobalSettings::TearOffHandle insertTearOffHandle (); -%End - - static bool changeCursorOverIcon (); - static bool visualActivate (); - static uint visualActivateSpeed (); - static int autoSelectDelay (); - static int contextMenuKey (); - static bool showContextMenusOnPress (); - - enum Completion - { - CompletionNone, - CompletionAuto, - CompletionMan, - CompletionShell, - CompletionPopup, - CompletionPopupAuto - }; - - static Completion completionMode (); - - class KMouseSettings - { - - public: - - enum - { - RightHanded, - LeftHanded - }; - - int handed; - - }; // class KMouseSettings - - -public: - static KGlobalSettings::KMouseSettings& mouseSettings (); - static QString desktopPath (); - static QString autostartPath (); - static QString trashPath (); - static QString documentPath (); - static QColor toolBarHighlightColor (); - static QColor inactiveTitleColor (); - static QColor inactiveTextColor (); - static QColor activeTitleColor (); - static QColor activeTextColor (); - static int contrast (); - -%If ( KDE_3_4_0 - ) - static QColor buttonBackground (); - static QColor buttonTextColor (); -%End - - static QColor baseColor (); - static QColor textColor (); - static QColor linkColor (); - static QColor visitedLinkColor (); - static QColor highlightedTextColor (); - static QColor highlightColor (); - static QColor alternateBackgroundColor (); - static QColor calculateAlternateBackgroundColor (const QColor&); - -%If ( KDE_3_4_0 - ) - static bool shadeSortColumn (); -%End - - static QFont generalFont (); - static QFont fixedFont (); - static QFont toolBarFont (); - static QFont menuFont (); - static QFont windowTitleFont (); - static QFont taskbarFont (); - -%If ( KDE_3_1_0 - ) - static QFont largeFont (const QString& = QString ::null ); -%End - - static bool isMultiHead (); - -%If ( KDE_3_1_0 - ) - static bool wheelMouseZooms (); - -%If ( KDE_3_2_0 - ) - static QRect splashScreenDesktopGeometry (); - static QRect desktopGeometry (const QPoint&); - static QRect desktopGeometry (QWidget*); - static bool showIconsOnPushButtons (); - static bool showFilePreview (const KURL&); - static bool opaqueResize (); - -%If ( KDE_3_3_0 - ) - static int buttonLayout (); -%End - -%End - -%End - - -public: - -%If ( - KDE_3_1_0 ) - static bool insertTearOffHandle (); -%End - - -}; // class KGlobalSettings - diff --git a/sip/kdecore/kiconeffect.sip b/sip/kdecore/kiconeffect.sip deleted file mode 100644 index a157ee4..0000000 --- a/sip/kdecore/kiconeffect.sip +++ /dev/null @@ -1,102 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KIconEffect -{ -%TypeHeaderCode -#include -%End - - -public: - KIconEffect (); - -%If ( KDE_3_4_0 - ) - - enum Effects - { - NoEffect, - ToGray, - Colorize, - ToGamma, - DeSaturate, - ToMonochrome, - LastEffect - }; - -%End - - void init (); - bool hasEffect (int, int) const; - QString fingerprint (int, int); - QImage apply (QImage, int, int); - QImage apply (QImage, int, float, const QColor, bool); - -%If ( KDE_3_4_0 - ) - QImage apply (QImage, int, float, const QColor, const QColor, bool) const; -%End - - QPixmap apply (QPixmap, int, int); - QPixmap apply (QPixmap, int, float, const QColor, bool); - -%If ( KDE_3_4_0 - ) - QPixmap apply (QPixmap, int, float, const QColor, const QColor, bool) const; -%End - - QImage doublePixels (QImage); - static void visualActivate (QWidget*, QRect); - static void toGray (QImage&, float); - static void colorize (QImage&, const QColor&, float); - -%If ( KDE_3_4_0 - ) - static void toMonochrome (QImage&, const QColor&, const QColor&, float); -%End - - static void deSaturate (QImage&, float); - static void toGamma (QImage&, float); - static void semiTransparent (QImage&); - static void semiTransparent (QPixmap&); - static void overlay (QImage&, QImage&); - -public: - -%If ( - KDE_3_4_0 ) - - enum Effects - { - NoEffect, - ToGray, - Colorize, - ToGamma, - DeSaturate, - LastEffect - }; - -%End - - -}; // class KIconEffect - diff --git a/sip/kdecore/kiconloader.sip b/sip/kdecore/kiconloader.sip deleted file mode 100644 index a4fd24d..0000000 --- a/sip/kdecore/kiconloader.sip +++ /dev/null @@ -1,97 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KIconLoader -{ -%TypeHeaderCode -#include -%End - - -public: - KIconLoader (const QString& = QString ::null , KStandardDirs* = 0); - void addAppDir (const QString&); - QPixmap loadIcon (const QString&, KIcon::Group, int = 0, int = KIcon ::DefaultState , QString* = 0, bool = 0) const; - -%If ( KDE_3_5_0 - ) - QIconSet loadIconSet (const QString&, KIcon::Group, int, bool, bool); -%End - - -%If ( KDE_3_1_0 - ) - QIconSet loadIconSet (const QString&, KIcon::Group, int, bool); -%End - - QIconSet loadIconSet (const QString&, KIcon::Group, int = 0); - QString iconPath (const QString&, int, bool = 0) const; - QMovie loadMovie (const QString&, KIcon::Group, int = 0) const; - QString moviePath (const QString&, KIcon::Group, int = 0) const; - QStringList loadAnimated (const QString&, KIcon::Group, int = 0) const; - QStringList queryIcons (int, KIcon::Context = KIcon ::Any ) const; - QStringList queryIconsByContext (int, KIcon::Context = KIcon ::Any ) const; - -%If ( KDE_3_1_0 - ) - QStringList queryIconsByDir (const QString&) const; -%End - - int currentSize (KIcon::Group) const; - KIconTheme* theme (); - KIconEffect* iconEffect (); - void reconfigure (const QString&, KStandardDirs*); - static QPixmap unknown (); - bool alphaBlending (KIcon::Group) const; - -%If ( KDE_3_1_0 - ) - void addExtraDesktopThemes (); - bool extraDesktopThemesAdded () const; - void enableDelayedIconSetLoading (bool); - bool isDelayedIconSetLoadingEnabled () const; -%End - - -}; // class KIconLoader - - -%ModuleCode -#include -%End - -QPixmap DesktopIcon (const QString&, int = 0, int = KIcon ::DefaultState , KInstance* = KGlobal ::instance ()); -QPixmap DesktopIcon (const QString&, KInstance*); -QIconSet DesktopIconSet (const QString&, int = 0, KInstance* = KGlobal ::instance ()); -QPixmap BarIcon (const QString&, int = 0, int = KIcon ::DefaultState , KInstance* = KGlobal ::instance ()); -QPixmap BarIcon (const QString&, KInstance*); -QIconSet BarIconSet (const QString&, int = 0, KInstance* = KGlobal ::instance ()); -QPixmap SmallIcon (const QString&, int = 0, int = KIcon ::DefaultState , KInstance* = KGlobal ::instance ()); -QPixmap SmallIcon (const QString&, KInstance*); -QIconSet SmallIconSet (const QString&, int = 0, KInstance* = KGlobal ::instance ()); -QPixmap MainBarIcon (const QString&, int = 0, int = KIcon ::DefaultState , KInstance* = KGlobal ::instance ()); -QPixmap MainBarIcon (const QString&, KInstance*); -QIconSet MainBarIconSet (const QString&, int = 0, KInstance* = KGlobal ::instance ()); -QPixmap UserIcon (const QString&, int = KIcon ::DefaultState , KInstance* = KGlobal ::instance ()); -QPixmap UserIcon (const QString&, KInstance*); -QIconSet UserIconSet (const QString&, KInstance* = KGlobal ::instance ()); -int IconSize (KIcon::Group, KInstance* = KGlobal ::instance ()); diff --git a/sip/kdecore/kicontheme.sip b/sip/kdecore/kicontheme.sip deleted file mode 100644 index 269a8b0..0000000 --- a/sip/kdecore/kicontheme.sip +++ /dev/null @@ -1,249 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KIcon -{ -%TypeHeaderCode -#include -%End - - -public: - KIcon (); - bool isValid () const; - - enum Context - { - Any, - Action, - Application, - Device, - FileSystem, - MimeType - }; - - - enum Type - { - Fixed, - Scalable, - Threshold - }; - - - enum MatchType - { - MatchExact, - MatchBest - }; - - -%If ( KDE_3_2_0 - ) - - enum Group - { - NoGroup, - Desktop, - FirstGroup, - Toolbar, - MainToolbar, - Small, - Panel, - LastGroup, - User - }; - - -%If ( KDE_3_3_1 - ) - - enum StdSizes - { - SizeSmall, - SizeSmallMedium, - SizeMedium, - SizeLarge, - SizeHuge, - SizeEnormous - }; - -%End - -%End - - - enum States - { - DefaultState, - ActiveState, - DisabledState, - LastState - }; - - -%If ( KDE_3_1_0 - ) - - enum Overlays - { - LockOverlay, - ZipOverlay, - LinkOverlay, - HiddenOverlay, - ShareOverlay, - OverlayMask - }; - -%End - - int size; - Context context; - Type type; - int threshold; - QString path; - -public: - -%If ( KDE_3_3_0 - KDE_3_3_1 ) - - enum StdSizes - { - SizeSmall, - SizeSmallMedium, - SizeMedium, - SizeLarge, - SizeHuge - }; - -%End - - -public: - -%If ( KDE_3_2_0 - KDE_3_3_0 ) - - enum StdSizes - { - SizeSmall, - SizeMedium, - SizeLarge, - SizeHuge - }; - -%End - - -public: - -%If ( - KDE_3_2_0 ) - - enum Group - { - NoGroup, - Desktop, - FirstGroup, - Toolbar, - MainToolbar, - Small, - Panel, - LastGroup, - User - }; - - - enum StdSizes - { - SizeSmall, - SizeMedium, - SizeLarge - }; - -%End - - -public: - -%If ( - KDE_3_1_0 ) - - enum Overlays - { - LockOverlay, - ZipOverlay, - LinkOverlay, - HiddenOverlay, - OverlayMask - }; - -%End - - -}; // class KIcon - - -class KIconTheme -{ -%TypeHeaderCode -#include -%End - - -public: - KIconTheme (const QString&, const QString& = QString ::null ); - QString name () const; - QString description () const; - QString example () const; - QString screenshot () const; - QString linkOverlay () const; - QString zipOverlay () const; - QString lockOverlay () const; - -%If ( KDE_3_1_0 - ) - QString shareOverlay () const; -%End - - QString dir () const; - QStringList inherits () const; - bool isValid () const; - -%If ( KDE_3_1_0 - ) - bool isHidden () const; -%End - - int depth () const; - int defaultSize (KIcon::Group) const; - QValueList querySizes (KIcon::Group) const; - QStringList queryIcons (int, KIcon::Context = KIcon ::Any ) const; - QStringList queryIconsByContext (int, KIcon::Context = KIcon ::Any ) const; - KIcon iconPath (const QString&, int, KIcon::MatchType) const; - static QStringList list (); - static QString current (); - static void reconfigure (); - -%If ( KDE_3_1_0 - ) - static QString defaultThemeName (); -%End - - -}; // class KIconTheme - diff --git a/sip/kdecore/kidna.sip b/sip/kdecore/kidna.sip deleted file mode 100644 index e3e0cd5..0000000 --- a/sip/kdecore/kidna.sip +++ /dev/null @@ -1,40 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -%ModuleHeaderCode -#include -%End - - -%If ( KDE_3_2_0 - ) -namespace KIDNA -{ -QCString toAsciiCString (const QString&); -QString toAscii (const QString&); -QString toUnicode (const QString&); -}; // namespace KIDNA - -%End - diff --git a/sip/kdecore/kinstance.sip b/sip/kdecore/kinstance.sip deleted file mode 100644 index 82df1be..0000000 --- a/sip/kdecore/kinstance.sip +++ /dev/null @@ -1,75 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KInstance -{ -%TypeHeaderCode -#include -%End - - -public: - KInstance (const QCString&); - KInstance (const KAboutData*); - KInstance (KInstance*); - KStandardDirs* dirs () const; - KConfig* config () const; - -%If ( KDE_3_2_0 - ) - KSharedConfig* sharedConfig () const; -%End - - KIconLoader* iconLoader () const; - void newIconLoader () const; - const KAboutData* aboutData () const; - QCString instanceName () const; - KMimeSourceFactory* mimeSourceFactory () const; - -protected: -//ig KInstance (const KInstance&); - -%If ( KDE_3_1_0 - ) - void setConfigName (const QString&); -%End - - -protected: -//igx virtual void virtual_hook (int, void*); - -public: - -%If ( - KDE_3_2_0 ) -//ig KCharsets* charsets () const; -%End - -//force - -private: - KInstance (const KInstance&); -//end - -}; // class KInstance - diff --git a/sip/kdecore/kipc.sip b/sip/kdecore/kipc.sip deleted file mode 100644 index 4e86b1a..0000000 --- a/sip/kdecore/kipc.sip +++ /dev/null @@ -1,98 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KIPC -{ -%TypeHeaderCode -#include -#include -%End - - -public: - -%If ( KDE_3_5_0 - ) - - enum Message - { - PaletteChanged, - FontChanged, - StyleChanged, - BackgroundChanged, - SettingsChanged, - IconChanged, - ToolbarStyleChanged, - ClipboardConfigChanged, - BlockShortcuts, - UserMessage - }; - -%End - - static void sendMessage (KIPC::Message, WId, int = 0); - static void sendMessageAll (KIPC::Message, int = 0); - -public: - -%If ( KDE_3_1_0 - KDE_3_5_0 ) - - enum Message - { - PaletteChanged, - FontChanged, - StyleChanged, - BackgroundChanged, - SettingsChanged, - IconChanged, - ToolbarStyleChanged, - ClipboardConfigChanged, - UserMessage - }; - -%End - - -public: - -%If ( - KDE_3_1_0 ) - - enum Message - { - PaletteChanged, - FontChanged, - StyleChanged, - BackgroundChanged, - SettingsChanged, - IconChanged, - ToolbarStyleChanged, - UserMessage - }; - -%End - - -}; // class KIPC - diff --git a/sip/kdecore/kkeynative.sip b/sip/kdecore/kkeynative.sip deleted file mode 100644 index 55af059..0000000 --- a/sip/kdecore/kkeynative.sip +++ /dev/null @@ -1,90 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KKeyNative -{ -%TypeHeaderCode -#include -%End - - -public: - KKeyNative (); -//ig KKeyNative (const XEvent*); - KKeyNative (const KKey&); - KKeyNative (const KKeyNative&); - KKeyNative (uint, uint, uint); - void clear (); -//ig bool init (const XEvent*); - bool init (const KKey&); - bool init (const KKeyNative&); - int keyCodeQt () const; - KKey key () const; - -%If ( KDE_3_1_4 - ) -//ig operator KKey () const; -%End - - uint code () const; - uint mod () const; - uint sym () const; - bool isNull () const; - int compare (const KKeyNative&) const; - -%If ( KDE_3_1_4 - ) - bool operator == (const KKeyNative&) const; - bool operator != (const KKeyNative&) const; - bool operator < (const KKeyNative&) const; -%End - - static KKeyNative& null (); - static bool keyboardHasWinKey (); - static uint modX (KKey::ModFlag); - static uint accelModMaskX (); - -%If ( KDE_3_1_3 - ) - static uint modXNumLock (); - static uint modXLock (); - static uint modXScrollLock (); - -%If ( KDE_3_4_3 - ) - static uint modXModeSwitch (); -%End - -%End - - -}; // class KKeyNative - - -%If ( KDE_3_1_4 - ) -//ig typedef union _XEvent XEvent; -%End - - -%If ( - KDE_3_1_4 ) -//ig typedef _XEvent XEvent; -%End diff --git a/sip/kdecore/kkeyserver_x11.sip b/sip/kdecore/kkeyserver_x11.sip deleted file mode 100644 index a50ff80..0000000 --- a/sip/kdecore/kkeyserver_x11.sip +++ /dev/null @@ -1,187 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -%ModuleHeaderCode -#include -%End - -namespace KKeyServer -{ - -%If ( KDE_3_1_0 - ) - -enum ExtraModFlag -{ - MODE_SWITCH -}; - -%End - - -class Sym -{ -%TypeHeaderCode -#include -%End - - -public: - uint m_sym; - Sym (); - Sym (uint); - Sym (const QString&); - bool initQt (int); - bool init (const QString&); - int qt () const; - QString toStringInternal () const; - QString toString () const; - uint getModsRequired () const; - uint getSymVariation () const; - -%If ( KDE_3_1_4 - ) -//ig operator uint () const; -%End - - -}; // class Sym - - -class Key -{ -%TypeHeaderCode -#include -%End - - -public: - - enum - { - CODE_FOR_QT - }; - - uint m_code; - uint m_mod; - uint m_sym; - bool init (const KKey&, bool); - bool isNative () const; - uint code () const; - uint mod () const; - uint sym () const; - int keyCodeQt () const; - void setKeycodeQt (int); - int compare (const KKeyServer::Key&) const; - -%If ( KDE_3_1_4 - ) - bool operator == (const KKeyServer::Key&) const; - bool operator < (const KKeyServer::Key&) const; -%End - - KKey key () const; - -}; // class Key - - -class Variations -{ -%TypeHeaderCode -#include -%End - - -public: - - enum - { - MAX_VARIATIONS - }; - -//ig KKeyServer::Key m_rgkey[MAX_VARIATIONS]; - uint m_nVariations; - Variations (); - void init (const KKey&, bool); - uint count () const; - const KKeyServer::Key& key (uint) const; - -}; // class Variations - -bool initializeMods (); -uint modX (KKey::ModFlag); -bool keyboardHasWinKey (); -uint modXShift (); -uint modXLock (); -uint modXCtrl (); -uint modXAlt (); -uint modXNumLock (); -uint modXWin (); -uint modXScrollLock (); - -%If ( KDE_3_4_2 - ) -uint modXModeSwitch (); -%End - -uint accelModMaskX (); -//ig bool keyQtToSym (int, uint&); -//ig bool keyQtToMod (int, uint&); -//ig bool symToKeyQt (uint, int&); -//ig bool modToModQt (uint, int&); -//ig bool modToModX (uint, uint&); -//ig bool modXToModQt (uint, int&); - -%If ( KDE_3_4_2 - ) -//ig int qtButtonStateToMod (Qt::ButtonState); -%End - -//ig bool modXToMod (uint, uint&); -//ig bool codeXToSym (uchar, uint, uint&); -//ig QString modToStringInternal (uint); -//ig QString modToStringUser (uint); - -%If ( KDE_3_5_0 - ) -uint stringUserToMod (const QString&); -%End - -//ig bool stringToSymMod (const QString&, uint&, uint&); -//ig void keyQtToKeyX (uint, uchar*, uint*, uint*); - -%If ( - KDE_3_2_0 ) - -class CodeMod -{ -%TypeHeaderCode -#include -%End - - -public: - int code; - int mod; - -}; // class CodeMod - -%End - -}; // namespace KKeyServer - diff --git a/sip/kdecore/klibloader.sip b/sip/kdecore/klibloader.sip deleted file mode 100644 index 80fa29f..0000000 --- a/sip/kdecore/klibloader.sip +++ /dev/null @@ -1,103 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KLibrary : QObject -{ -%TypeHeaderCode -#include -%End - - -public: -//ig KLibrary (const QString&, const QString&, void*); - QString name () const; - QString fileName () const; - KLibFactory* factory (); - void* symbol (const char*); - -%If ( KDE_3_1_0 - ) - bool hasSymbol (const char*) const; -%End - - void unload () const; - -private: - ~KLibrary (); -//force - KLibrary (const QString&, const QString&, void*); -//end - -}; // class KLibrary - - -class KLibLoader : QObject -{ -%TypeHeaderCode -#include -%End - - -public: - KLibFactory* factory (const char*); - virtual KLibrary* library (const char*); - KLibrary* globalLibrary (const char*); - QString lastErrorMessage () const; - virtual void unloadLibrary (const char*); - static KLibLoader* self (); - static void cleanUp (); - static QString findLibrary (const char*, const KInstance* = KGlobal ::instance ()); - -protected: - KLibLoader (QObject* /TransferThis/ = 0, const char* = 0); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KLibLoader - - -class KLibFactory : QObject -{ -%TypeHeaderCode -#include -%End - - -public: - KLibFactory (QObject* /TransferThis/ = 0, const char* = 0); - QObject* create (QObject* /Transfer/ = 0, const char* = 0, const char* = "QObject", const QStringList& = QStringList ()); - -signals: - void objectCreated (QObject*); - -protected: - virtual QObject* createObject (QObject* /Transfer/ = 0, const char* = 0, const char* = "QObject", const QStringList& = QStringList ()) /Factory/; - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KLibFactory - diff --git a/sip/kdecore/klocale.sip b/sip/kdecore/klocale.sip deleted file mode 100644 index ffe12a0..0000000 --- a/sip/kdecore/klocale.sip +++ /dev/null @@ -1,243 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KLocale -{ -%TypeHeaderCode -#include -%End - - -public: - KLocale (const QString&, KConfig* = 0); -//ig KLocale (const KLocale&); - QString translate (const char*) const; - QString translate (const char*, const char*) const; - QString translate (const char*, const char*, ulong) const; - bool setEncoding (int); - bool setLanguage (const QString&); - bool setLanguage (const QStringList&); - bool setCountry (const QString&); - - enum SignPosition - { - ParensAround, - BeforeQuantityMoney, - AfterQuantityMoney, - BeforeMoney, - AfterMoney - }; - - QString decimalSymbol () const; - QString thousandsSeparator () const; - QString currencySymbol () const; - QString monetaryDecimalSymbol () const; - QString monetaryThousandsSeparator () const; - QString positiveSign () const; - QString negativeSign () const; - int fracDigits () const; - bool positivePrefixCurrencySymbol () const; - bool negativePrefixCurrencySymbol () const; - SignPosition positiveMonetarySignPosition () const; - SignPosition negativeMonetarySignPosition () const; - QString formatMoney (double, const QString& = QString ::null , int = -1) const; - QString formatNumber (double, int = -1) const; - QString formatNumber (const QString&) const; - -%If ( KDE_3_5_0 - ) - QString formatNumber (const QString&, bool, int) const; -%End - - -%If ( KDE_3_2_0 - ) - QString formatLong (long) const; -%End - - -%If ( KDE_3_1_0 - ) - bool nounDeclension () const; -%End - - QString formatDate (const QDate&, bool = 0) const; - -%If ( KDE_3_1_0 - ) - bool dateMonthNamePossessive () const; - -%If ( KDE_3_3_0 - ) - QString formatTime (const QTime&, bool, bool) const; -%End - -%End - - QString formatTime (const QTime&, bool = 0) const; - bool use12Clock () const; - bool weekStartsMonday () const; - -%If ( KDE_3_1_0 - ) - int weekStartDay () const; -%End - - QString monthName (int, bool = 0) const; - -%If ( KDE_3_1_0 - ) - QString monthNamePossessive (int, bool = 0) const; -%End - - QString weekDayName (int, bool = 0) const; - -%If ( KDE_3_2_0 - ) - const KCalendarSystem* calendar () const; - QString calendarType () const; - void setCalendar (const QString&); -%End - - QString formatDateTime (const QDateTime&, bool, bool = 0) const; - double readMoney (const QString&, bool* = 0) const; - double readNumber (const QString&, bool* = 0) const; - QDate readDate (const QString&, bool* = 0) const; - QDate readDate (const QString&, const QString&, bool* = 0) const; - -%If ( KDE_3_2_0 - ) - - enum ReadDateFlags - { - NormalFormat, - ShortFormat - }; - - QDate readDate (const QString&, KLocale::ReadDateFlags, bool* = 0) const; -%End - - QTime readTime (const QString&, bool* = 0) const; - -%If ( KDE_3_2_0 - ) - - enum ReadTimeFlags - { - WithSeconds, - WithoutSeconds - }; - - QTime readTime (const QString&, KLocale::ReadTimeFlags, bool* = 0) const; -%End - - QString language () const; - QString country () const; - QStringList languagesTwoAlpha () const; - QStringList languageList () const; - const char* encoding () const; - int encodingMib () const; - QTextCodec* codecForEncoding () const; - -%If ( KDE_3_2_0 - ) - int fileEncodingMib () const; -%End - - void setDateFormat (const QString&); - void setDateFormatShort (const QString&); - -%If ( KDE_3_1_0 - ) - void setDateMonthNamePossessive (bool); -%End - - void setTimeFormat (const QString&); - void setWeekStartsMonday (bool); - -%If ( KDE_3_1_0 - ) - void setWeekStartDay (int); -%End - - QString dateFormat () const; - QString dateFormatShort () const; - QString timeFormat () const; - void setDecimalSymbol (const QString&); - void setThousandsSeparator (const QString&); - void setPositiveSign (const QString&); - void setNegativeSign (const QString&); - void setPositiveMonetarySignPosition (KLocale::SignPosition); - void setNegativeMonetarySignPosition (KLocale::SignPosition); - void setPositivePrefixCurrencySymbol (bool); - void setNegativePrefixCurrencySymbol (bool); - void setFracDigits (int); - void setMonetaryThousandsSeparator (const QString&); - void setMonetaryDecimalSymbol (const QString&); - void setCurrencySymbol (const QString&); - int pageSize () const; - void setPageSize (int); - - enum MeasureSystem - { - Metric, - Imperial - }; - - KLocale::MeasureSystem measureSystem () const; - void setMeasureSystem (KLocale::MeasureSystem); - void insertCatalogue (const QString&); - void removeCatalogue (const QString&); - void setActiveCatalogue (const QString&); - QString translateQt (const char*, const char*, const char*) const; - -%If ( KDE_3_1_0 - ) - QStringList allLanguagesTwoAlpha () const; - QString twoAlphaToLanguageName (const QString&) const; - QStringList allCountriesTwoAlpha () const; - QString twoAlphaToCountryName (const QString&) const; -%End - - static void splitLocale (const QString&, QString&, QString&, QString&); - static void setMainCatalogue (const char*); - static QString langLookup (const QString&, const char* = "html"); - static QString defaultLanguage (); - static QString defaultCountry (); - -%If ( KDE_3_0_1 - ) - static QString _initLanguage (KConfigBase*); -%End - - QString formatMoney (const QString&) const; - QString languages () const; -//ig bool setCharset (const QString&); -//ig QString charset () const; - -protected: -//ig static void initInstance (); -//force - -private: - KLocale (const KLocale&); -//end - -}; // class KLocale - - -%ModuleCode -#include -%End - -QString i18n (const char*); -QString i18n (const char*, const char*); -QString i18n (const char*, const char*, ulong); diff --git a/sip/kdecore/klockfile.sip b/sip/kdecore/klockfile.sip deleted file mode 100644 index 0e1aeb5..0000000 --- a/sip/kdecore/klockfile.sip +++ /dev/null @@ -1,112 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_3_0 - ) - -class KLockFile : KShared -{ -%TypeHeaderCode -#include -%End - - -public: - typedef KSharedPtr Ptr; - KLockFile (const QString&); - - enum LockResult - { - LockOK, - LockFail, - LockError, - LockStale - }; - - - enum LockOptions - { - LockNoBlock, - LockForce - }; - - KLockFile::LockResult lock (int = 0); - bool isLocked () const; - void unlock (); - int staleTime () const; - void setStaleTime (int); - bool getLockInfo (int& /Out/, QString& /Out/, QString& /Out/); - -}; // class KLockFile - -%End - - - -%If (KDE_3_3_0 - ) -%MappedType KLockFile::Ptr -//converts KLockFile -{ -%TypeHeaderCode -#include -#include -%End - -%ConvertFromTypeCode - // Convert to a Python instance - - if (!sipCpp) - return NULL; - - KSharedPtr *cPtr = new KSharedPtr (*(KSharedPtr *)sipCpp); - KLockFile *cpp = cPtr->data (); - PyObject *obj = sipConvertFromInstance (cpp, sipClass_KLockFile, sipTransferObj); - - return obj; -%End - -%ConvertToTypeCode - // Convert a Python instance to a Ptr on the heap. - - if (sipIsErr == NULL) - return PyInstance_Check(sipPy); - - int iserr = 0; - KLockFile *cpp = (KLockFile *)sipForceConvertToType(sipPy, sipType_KLockFile, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); - - if (iserr) - { - *sipIsErr = 1; - return 0; - } - - *sipCppPtr = new KSharedPtr (cpp); - - return 1; -%End -}; -%End - - diff --git a/sip/kdecore/kmacroexpander.sip b/sip/kdecore/kmacroexpander.sip deleted file mode 100644 index 6316a9d..0000000 --- a/sip/kdecore/kmacroexpander.sip +++ /dev/null @@ -1,384 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -%ModuleHeaderCode -#include -%End - - -%If ( KDE_3_2_0 - ) - -class KMacroExpanderBase -{ -%TypeHeaderCode -#include -%End - - -public: - KMacroExpanderBase (QChar = '%'); - void expandMacros (QString&); - bool expandMacrosShellQuote (QString&, uint& /In, Out/); - bool expandMacrosShellQuote (QString&); - void setEscapeChar (QChar); - QChar escapeChar () const; - -protected: - virtual int expandPlainMacro (const QString&, uint, QStringList&); - virtual int expandEscapedMacro (const QString&, uint, QStringList&); - -}; // class KMacroExpanderBase - -%End - - -%If ( KDE_3_3_0 - ) - -class KWordMacroExpander : KMacroExpanderBase -{ -%TypeHeaderCode -#include -%End - - -public: - KWordMacroExpander (QChar = '%'); - -protected: - virtual int expandPlainMacro (const QString&, uint, QStringList&); - virtual int expandEscapedMacro (const QString&, uint, QStringList&); - virtual bool expandMacro (const QString&, QStringList&) = 0; - -}; // class KWordMacroExpander - -%End - - -%If ( KDE_3_3_0 - ) - -class KCharMacroExpander : KMacroExpanderBase -{ -%TypeHeaderCode -#include -%End - - -public: - KCharMacroExpander (QChar = '%'); - -protected: - virtual int expandPlainMacro (const QString&, uint, QStringList&); - virtual int expandEscapedMacro (const QString&, uint, QStringList&); - virtual bool expandMacro (QChar, QStringList&) = 0; - -}; // class KCharMacroExpander - -%End - - -%If ( KDE_3_2_0 - ) -namespace KMacroExpander -{ -QString expandMacros (const QString&, const QMap&, QChar = '%'); -QString expandMacrosShellQuote (const QString&, const QMap&, QChar = '%'); -QString expandMacros (const QString&, const QMap&, QChar = '%'); -QString expandMacrosShellQuote (const QString&, const QMap&, QChar = '%'); -QString expandMacros (const QString&, const QMap&, QChar = '%'); -QString expandMacros (const QString&, const QMap&, QChar = '%'); -QString expandMacrosShellQuote (const QString&, const QMap&, QChar = '%'); -QString expandMacrosShellQuote (const QString&, const QMap&, QChar = '%'); -}; // namespace KMacroExpander - -%End - - - -%MappedType QMap -//converts a Python dict of QChar:QString -{ -%TypeHeaderCode -#include -#include -%End - -%ConvertFromTypeCode - - if (!sipCpp) - return PyDict_New(); - - PyObject *dict; - - // Create the dictionary. - - if ((dict = PyDict_New()) == NULL) - return NULL; - - // Get it. - - const QMap map = *sipCpp; - QMap::ConstIterator it; - - for (it = map.begin (); it != map.end (); ++it) - { - QChar acpp = it.key (); - PyObject *binst = PyString_FromString ((char *)((QString *)&it.data ())); - PyObject *ainst; - if (((ainst = sipConvertFromNewType(new QChar(acpp), sipType_QChar, sipTransferObj)) == NULL) - || (binst == NULL) - || (PyDict_SetItem (dict, ainst, binst) < 0)) - { - Py_XDECREF (ainst); - Py_XDECREF (binst); - Py_DECREF (dict); - return NULL; - } - } - - return dict; -%End - - -%ConvertToTypeCode -// Convert a Python dictionary to a QMap - - if (sipIsErr == NULL) - return PyDict_Check(sipPy); - - QMap *map = new QMap; - - PyObject *key, *value; - SIP_SSIZE_T pos = 0; - QChar *cKey; - QString *sData; - - while (PyDict_Next(sipPy, &pos, &key, &value)) - { - int iserr = 0, cKey_state, sData_state; - - cKey = (QChar *)sipForceConvertToType(key, sipType_QChar, sipTransferObj, SIP_NOT_NONE, &cKey_state, &iserr); - sData = (QString *)sipForceConvertToType(value, sipType_QString, sipTransferObj, SIP_NOT_NONE, &sData_state, &iserr); - - if (iserr) - { - if (cKey) - sipReleaseType(cKey, sipType_QChar, cKey_state); - - *sipIsErr = 1; - delete map; - return 0; - } - - map->insert (*cKey, *sData); - - sipReleaseType(cKey, sipType_QChar, cKey_state); - sipReleaseType(sData, sipType_QString, sData_state); - } - - *sipCppPtr = map; - - return 1; -%End -}; - - -%MappedType QMap -//converts a Python dict of QString:QStringList -{ -%TypeHeaderCode -#include -#include -#include -%End - -%ConvertFromTypeCode - - if (!sipCpp) - return PyDict_New(); - - PyObject *dict; - - // Create the dictionary. - - if ((dict = PyDict_New()) == NULL) - return NULL; - - // Get it. - - const QMap map = *sipCpp; - QMap::ConstIterator it; - - for (it = map.begin (); it != map.end (); ++it) - { - QStringList bcpp = it.data (); - PyObject *ainst = PyString_FromString ((char *)((QString *)&it.key ())); - PyObject *binst; - if (((binst = sipConvertFromNewType(new QStringList(bcpp), sipType_QStringList, sipTransferObj)) == NULL) - || (ainst == NULL) - || (PyDict_SetItem (dict, ainst, binst) < 0)) - { - Py_XDECREF (ainst); - Py_XDECREF (binst); - Py_DECREF (dict); - return NULL; - } - } - - return dict; -%End - - -%ConvertToTypeCode -// Convert a Python dictionary to a QMap on the heap. - - if (sipIsErr == NULL) - return PyDict_Check(sipPy); - - QMap *map = new QMap; - - PyObject *key, *value; - SIP_SSIZE_T pos = 0; - QString *sKey; - QStringList *slData; - - while (PyDict_Next(sipPy, &pos, &key, &value)) - { - int iserr = 0, sKey_state, slData_state; - - sKey = (QString *)sipForceConvertToType(key, sipType_QString, sipTransferObj, SIP_NOT_NONE, &sKey_state, &iserr); - slData = (QStringList *)sipForceConvertToType(value, sipType_QStringList, sipTransferObj, SIP_NOT_NONE, &slData_state, &iserr); - - if (iserr) - { - if (sKey) - sipReleaseType(sKey, sipType_QString, sKey_state); - - *sipIsErr = 1; - delete map; - return 0; - } - - map->insert (*sKey, *slData); - - sipReleaseType(sKey, sipType_QString, sKey_state); - sipReleaseType(slData, sipType_QStringList, slData_state); - } - - *sipCppPtr = map; - - return 1; -%End -}; - - -%MappedType QMap -//converts a Python dict of QChar:QStringList -{ -%TypeHeaderCode -#include -#include -#include -%End - -%ConvertFromTypeCode - - if (!sipCpp) - return PyDict_New(); - - PyObject *dict; - - // Create the dictionary. - - if ((dict = PyDict_New()) == NULL) - return NULL; - - // Get it. - - const QMap map = *sipCpp; - QMap::ConstIterator it; - - for (it = map.begin (); it != map.end (); ++it) - { - QChar acpp = it.key (); - QStringList bcpp = it.data (); - PyObject *binst; - PyObject *ainst; - if (((ainst = sipConvertFromNewType(new QChar(acpp), sipType_QChar, sipTransferObj)) == NULL) - || (binst = sipConvertFromNewType(new QStringList(bcpp), sipType_QStringList, sipTransferObj)) - || (PyDict_SetItem (dict, ainst, binst) < 0)) - { - Py_XDECREF (ainst); - Py_XDECREF (binst); - Py_DECREF (dict); - return NULL; - } - } - - return dict; -%End - - -%ConvertToTypeCode -// Convert a Python dictionary to a QMap on the heap. - - if (sipIsErr == NULL) - return PyDict_Check(sipPy); - - QMap *map = new QMap; - - PyObject *key, *value; - SIP_SSIZE_T pos = 0; - QChar *cKey; - QStringList *slData; - - while (PyDict_Next(sipPy, &pos, &key, &value)) - { - int iserr = 0, cKey_state, slData_state; - - cKey = (QChar *)sipForceConvertToType(key, sipType_QChar, sipTransferObj, SIP_NOT_NONE, &cKey_state, &iserr); - slData = (QStringList *)sipForceConvertToType(value, sipType_QStringList, sipTransferObj, SIP_NOT_NONE, &slData_state, &iserr); - - if (iserr) - { - if (cKey) - sipReleaseType(cKey, sipType_QChar, cKey_state); - - *sipIsErr = 1; - delete map; - return 0; - } - - map->insert (*cKey, *slData); - - sipReleaseType(cKey, sipType_QChar, cKey_state); - sipReleaseType(slData, sipType_QStringList, slData_state); - } - - *sipCppPtr = map; - - return 1; -%End -}; - - diff --git a/sip/kdecore/kmanagerselection.sip b/sip/kdecore/kmanagerselection.sip deleted file mode 100644 index a43fd2e..0000000 --- a/sip/kdecore/kmanagerselection.sip +++ /dev/null @@ -1,91 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_2_0 - ) - -class KSelectionOwner : QObject -{ -%TypeHeaderCode -#include -#include -#include -%End - - -public: - KSelectionOwner (Atom, int = -1, QObject* /TransferThis/ = 0); - KSelectionOwner (const char*, int = -1, QObject* /TransferThis/ = 0); - bool claim (bool, bool = 1); - void release (); - Window ownerWindow () const; -//ig bool filterEvent (XEvent*); - -signals: - void lostOwnership (); - -protected: -//ig virtual bool handleMessage (XEvent*); - virtual bool genericReply (Atom, Atom, Window); - virtual void replyTargets (Atom, Window); - virtual void getAtoms (); - void setData (long, long); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KSelectionOwner - -%End - - -%If ( KDE_3_2_0 - ) - -class KSelectionWatcher : QObject -{ -%TypeHeaderCode -#include -#include -#include -%End - - -public: - KSelectionWatcher (Atom, int = -1, QObject* /TransferThis/ = 0); - KSelectionWatcher (const char*, int = -1, QObject* /TransferThis/ = 0); - Window owner (); -//ig void filterEvent (XEvent*); - -signals: - void newOwner (Window); - void lostOwner (); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KSelectionWatcher - -%End - diff --git a/sip/kdecore/kmdcodec.sip b/sip/kdecore/kmdcodec.sip deleted file mode 100644 index e554fc5..0000000 --- a/sip/kdecore/kmdcodec.sip +++ /dev/null @@ -1,156 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KCodecs -{ -%TypeHeaderCode -#include -%End - - -public: - static QCString quotedPrintableEncode (const QByteArray&, bool); - static QCString quotedPrintableEncode (const QCString&, bool = 1); - static void quotedPrintableEncode (const QByteArray&, QByteArray&, bool); - static QCString quotedPrintableDecode (const QByteArray&); - static QCString quotedPrintableDecode (const QCString&); - static void quotedPrintableDecode (const QByteArray&, QByteArray&); - static QCString uuencode (const QByteArray&); - static QCString uuencode (const QCString&); - static void uuencode (const QByteArray&, QByteArray&); - static QCString uudecode (const QByteArray&); - static QCString uudecode (const QCString&); - static void uudecode (const QByteArray&, QByteArray&); - static QCString base64Encode (const QByteArray&, bool); - static QCString base64Encode (const QCString&, bool); - static void base64Encode (const QByteArray&, QByteArray&, bool); - static QCString base64Decode (const QByteArray&); - static QCString base64Decode (const QCString&); - static void base64Decode (const QByteArray&, QByteArray&); - -private: - KCodecs (); - -}; // class KCodecs - - -class KMD5 -{ -%TypeHeaderCode -#include -%End - - -public: -//ig typedef uchar Digest[16]; - KMD5 (); - KMD5 (const char*, int = -1); - KMD5 (const QByteArray&); - KMD5 (const QCString&); - void update (const char*, int = -1); -//igx void update (const uchar*, int = -1); - void update (const QByteArray&); - void update (const QCString&); - bool update (QIODevice&); - void reset (); -//ig const Digest& rawDigest (); -//ig void rawDigest (KMD5::Digest&); - QCString hexDigest (); - void hexDigest (QCString&); - QCString base64Digest (); -//ig bool verify (const KMD5::Digest&); - bool verify (const QCString&); - -protected: - -%If ( KDE_3_1_0 - ) -//ig void transform (const uchar); -%End - - void finalize (); - -private: - KMD5 (const KMD5&); - -protected: - -%If ( KDE_3_1_0 - ) -//force - void transform (const uchar*); -%End - -//end - -protected: - -%If ( - KDE_3_1_0 ) - void transform (const uchar*); -%End - - -}; // class KMD5 - - -%If ( KDE_3_4_0 - ) - -class KMD4 -{ -%TypeHeaderCode -#include -%End - - -public: -//ig typedef uchar Digest[16]; - KMD4 (); - KMD4 (const char*, int = -1); - KMD4 (const QByteArray&); - KMD4 (const QCString&); - void update (const char*, int = -1); -//igx void update (const uchar*, int = -1); - void update (const QByteArray&); - void update (const QCString&); - bool update (QIODevice&); - void reset (); -//ig const Digest& rawDigest (); -//ig void rawDigest (KMD4::Digest&); - QCString hexDigest (); - void hexDigest (QCString&); - QCString base64Digest (); -//ig bool verify (const KMD4::Digest&); - bool verify (const QCString&); - -protected: -//ig void transform (ulong, const ulong); - void finalize (); - -private: - KMD4 (const KMD4&); - -}; // class KMD4 - -%End - diff --git a/sip/kdecore/kmimesourcefactory.sip b/sip/kdecore/kmimesourcefactory.sip deleted file mode 100644 index b15e8d3..0000000 --- a/sip/kdecore/kmimesourcefactory.sip +++ /dev/null @@ -1,42 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KMimeSourceFactory : QMimeSourceFactory -{ -%TypeHeaderCode -#include -%End - - -public: - KMimeSourceFactory (KIconLoader* = KGlobal ::iconLoader ()); - virtual QString makeAbsolute (const QString&, const QString&) const; - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KMimeSourceFactory - diff --git a/sip/kdecore/kmountpoint.sip b/sip/kdecore/kmountpoint.sip deleted file mode 100644 index 13f22da..0000000 --- a/sip/kdecore/kmountpoint.sip +++ /dev/null @@ -1,186 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_2_0 - ) - -class KMountPoint : KShared -{ -%TypeHeaderCode -#include -%End - - -public: -//ig typedef KSharedPtr Ptr; -//ig typedef QValueList List; - -public: - - enum - { - NeedMountOptions, - NeedRealDeviceName - }; - - static KMountPoint::List possibleMountPoints (int = 0); - static KMountPoint::List currentMountPoints (int = 0); - QString mountedFrom () const; - QString realDeviceName () const; - QString mountPoint () const; - QString mountType () const; - QStringList mountOptions () const; - -%If ( KDE_3_4_0 - ) - static QString devNameFromOptions (const QStringList&); -%End - - -private: - KMountPoint (); - -}; // class KMountPoint - -%End - - - -%MappedType KMountPoint::Ptr -//converts KMountPoint -{ -%TypeHeaderCode -#include -#include -%End - -%ConvertFromTypeCode - // Convert to a Python instance - - if (!sipCpp) - return NULL; - - KSharedPtr *cPtr = new KSharedPtr (*(KSharedPtr *)sipCpp); - KMountPoint *cpp = cPtr->data (); - PyObject *obj = sipConvertFromInstance (cpp, sipClass_KMountPoint, sipTransferObj); - - return obj; -%End - -%ConvertToTypeCode - // Convert a Python instance to a Ptr on the heap. - - if (sipIsErr == NULL) - return PyInstance_Check(sipPy); - - int iserr = 0; - KMountPoint *cpp = (KMountPoint *)sipForceConvertToType(sipPy, sipType_KMountPoint, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); - - if (iserr) - { - *sipIsErr = 1; - return 0; - } - - *sipCppPtr = new KSharedPtr (cpp); - - return 1; -%End -}; - - -%MappedType KMountPoint::List -//converts a Python list of KMountPoint -{ -%TypeHeaderCode -#include -#include -%End - -%ConvertFromTypeCode - // Convert to a Python list of Ptr (KMountPoint). - if (!sipCpp) - return PyList_New (0); - - PyObject *plist; - - // Create the list - if ((plist = PyList_New(0)) == NULL) - return NULL; - - // Get it. - KMountPoint::List *cList = (KMountPoint::List *)sipCpp; - PyObject *inst; - - KMountPoint::List::Iterator it; - for( it = cList->begin(); it != cList->end(); ++it ) - { - inst = sipConvertFromType(static_cast(*it), sipType_KMountPoint_Ptr, sipTransferObj); - - if ((inst == NULL) || (PyList_Append (plist, inst) < 0)) - { - Py_XDECREF (inst); - Py_DECREF (plist); - return NULL; - } - } - - return plist; -%End - -%ConvertToTypeCode - // Convert a Python list to List on the heap. - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - KMountPoint::List *cList = new KMountPoint::List; - - PyObject *elem; - KMountPoint *mtpt; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - elem = PyList_GET_ITEM (sipPy, i); - mtpt = (KMountPoint *)sipForceConvertToType(elem, sipType_KMountPoint, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); - - KMountPoint::Ptr *ptr = new KMountPoint::Ptr (mtpt); - - if (iserr) - { - *sipIsErr = 1; - delete cList; - return 0; - } - - cList->append (*ptr); - } - - *sipCppPtr = cList; - - return 1; -%End -}; - - diff --git a/sip/kdecore/kmultipledrag.sip b/sip/kdecore/kmultipledrag.sip deleted file mode 100644 index b064d01..0000000 --- a/sip/kdecore/kmultipledrag.sip +++ /dev/null @@ -1,58 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KMultipleDrag : QDragObject -{ -%TypeHeaderCode -#include -%End - - -public: - KMultipleDrag (QWidget* = 0, const char* = 0); - void addDragObject (QDragObject*); - -%If ( KDE_3_5_0 - ) - virtual QByteArray encodedData (const char*) const; - virtual const char* format (int) const; -%End - - -protected: - -protected: -//igx virtual void virtual_hook (int, void*); - -protected: - -%If ( - KDE_3_5_0 ) - virtual QByteArray encodedData (const char*) const; - virtual const char* format (int) const; -%End - - -}; // class KMultipleDrag - diff --git a/sip/kdecore/knotifyclient.sip b/sip/kdecore/knotifyclient.sip deleted file mode 100644 index a5a5adf..0000000 --- a/sip/kdecore/knotifyclient.sip +++ /dev/null @@ -1,139 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -%ModuleHeaderCode -#include -%End - -namespace KNotifyClient -{ - -class Instance -{ -%TypeHeaderCode -#include -%End - - -public: - Instance (KInstance*); - bool useSystemBell () const; - static KInstance* current (); - static KNotifyClient::Instance* currentInstance (); - -}; // class Instance - - -%If ( KDE_3_2_0 - ) - -enum -{ - Default, -//ig None, - Sound, - Messagebox, - Logfile, - Stderr, - PassivePopup, - Execute, - Taskbar -}; - -%End - - -enum -{ - Notification, - Warning, - Error, - Catastrophe -}; - - -enum StandardEvent -{ - cannotOpenFile, - notification, - warning, - fatalError, - catastrophe -}; - -bool startDaemon (); - -%If ( KDE_3_2_0 - ) -int event (const QString&, const QString& = QString ::null ); -int event (KNotifyClient::StandardEvent, const QString& = QString ::null ); - -%If ( KDE_3_2_1 - ) -int userEvent (const QString& = QString ::null , int = KNotifyClient ::Default , int = KNotifyClient ::Default , const QString& = QString ::null , const QString& = QString ::null ); -%End - -int event (int, const QString&, const QString& = QString ::null ); -int event (int, KNotifyClient::StandardEvent, const QString& = QString ::null ); -int userEvent (int, const QString& = QString ::null , int = KNotifyClient ::Default , int = KNotifyClient ::Default , const QString& = QString ::null , const QString& = QString ::null ); -%End - -void beep (const QString& = QString ::null ); -int getPresentation (const QString&); -QString getFile (const QString&, int); -int getDefaultPresentation (const QString&); -QString getDefaultFile (const QString&, int); -KInstance* instance (); - -%If ( KDE_3_1_0 - KDE_3_2_0 ) - -enum -{ - Default, -//ig None, - Sound, - Messagebox, - Logfile, - Stderr, - PassivePopup, - Execute -}; - -%End - - -%If ( - KDE_3_1_0 ) - -enum -{ - Default, -//ig None, - Sound, - Messagebox, - Logfile, - Stderr -}; - -%End - -}; // namespace KNotifyClient - diff --git a/sip/kdecore/kpalette.sip b/sip/kdecore/kpalette.sip deleted file mode 100644 index 8989844..0000000 --- a/sip/kdecore/kpalette.sip +++ /dev/null @@ -1,63 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KPalette -{ -%TypeHeaderCode -#include -%End - - -public: - static QStringList getPaletteList (); - KPalette (const QString& = QString ::null ); - KPalette (const KPalette&); - bool save (); - QString description (); - void setDescription (const QString&); - QString name (); - void setName (const QString&); - - enum Editable - { - Yes, - No, - Ask - }; - - Editable editable (); - void setEditable (KPalette::Editable); - int nrColors (); - QColor color (int); - int findColor (const QColor&); - QString colorName (int); - QString colorName (const QColor&); - int addColor (const QColor&, const QString& = QString ::null ); - int changeColor (int, const QColor&, const QString& = QString ::null ); - int changeColor (const QColor&, const QColor&, const QString& = QString ::null ); - -}; // class KPalette - diff --git a/sip/kdecore/kpixmapprovider.sip b/sip/kdecore/kpixmapprovider.sip deleted file mode 100644 index 5909306..0000000 --- a/sip/kdecore/kpixmapprovider.sip +++ /dev/null @@ -1,41 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KPixmapProvider -{ -%TypeHeaderCode -#include -%End - - -public: - virtual QPixmap pixmapFor (const QString&, int = 0) = 0; - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KPixmapProvider - diff --git a/sip/kdecore/kprocctrl.sip b/sip/kdecore/kprocctrl.sip deleted file mode 100644 index c437dd8..0000000 --- a/sip/kdecore/kprocctrl.sip +++ /dev/null @@ -1,95 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KProcessController : QObject -{ -%TypeHeaderCode -#include -%End - - -public: - -%If ( KDE_3_2_0 - ) - static void ref (); - static void deref (); -%End - - KProcessController* theKProcessController; - static void theSigCHLDHandler (int); - -%If ( KDE_3_0_3 - ) - bool waitForProcessExit (int); - -%If ( KDE_3_2_0 - ) - void unscheduleCheck (); - void rescheduleCheck (); - int notifierFd () const; -%End - -%End - - void addKProcess (KProcess*); - void removeKProcess (KProcess*); - -%If ( KDE_3_2_0 - ) - void addProcess (int); -%End - - -%If ( KDE_3_1_0 - ) - -private: - KProcessController (); -%End - - ~KProcessController (); - KProcessController (KProcessController&); - -public: - -%If ( - KDE_3_1_0 ) - KProcessController (); -%End - - -public: - -%If ( - KDE_3_2_0 ) - static void setupHandlers (); - static void resetHandlers (); -%End - - -public slots: - -%If ( - KDE_3_2_0 ) - void slotDoHousekeeping (int); -%End - - -}; // class KProcessController - diff --git a/sip/kdecore/kprocess.sip b/sip/kdecore/kprocess.sip deleted file mode 100644 index 53ab178..0000000 --- a/sip/kdecore/kprocess.sip +++ /dev/null @@ -1,272 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KProcess : QObject -{ -%TypeHeaderCode -#include -%End - - -public: - -%If ( KDE_3_5_2 - ) - - enum Communication - { - NoCommunication, - Stdin, - Stdout, - Stderr, - AllOutput, - All, - NoRead, - CTtyOnly, - MergedStderr - }; - -%End - - -%If ( KDE_3_2_0 - ) - - enum RunMode - { - DontCare, - NotifyOnExit, - Block, - OwnGroup - }; - - KProcess (QObject* /TransferThis/, const char* = 0); -%End - - KProcess (); - bool setExecutable (const QString&); - -%If ( KDE_3_1_4 - ) - KProcess& operator << (const QString&); - KProcess& operator << (const char*); - KProcess& operator << (const QCString&); - KProcess& operator << (const QStringList&); -%End - - void clearArguments (); - virtual bool start (KProcess::RunMode = NotifyOnExit , KProcess::Communication = NoCommunication ); - virtual bool kill (int = SIGTERM ); - bool isRunning () const; - pid_t pid () const; - pid_t getPid () const; - void suspend (); - void resume (); - -%If ( KDE_3_2_0 - ) - bool wait (int = -1); -%End - - bool normalExit () const; - -%If ( KDE_3_2_0 - ) - bool signalled () const; - bool coreDumped () const; -%End - - int exitStatus () const; - -%If ( KDE_3_2_0 - ) - int exitSignal () const; -%End - - bool writeStdin (const char*, int); - bool closeStdin (); - bool closeStdout (); - bool closeStderr (); - -%If ( KDE_3_2_0 - ) - bool closePty (); - void closeAll (); -%End - - const QValueList& args (); - void setRunPrivileged (bool); - bool runPrivileged () const; - void setEnvironment (const QString&, const QString&); - void setWorkingDirectory (const QString&); - -%If ( KDE_3_1_0 - ) - void setUseShell (bool, const char* = 0); - static QString quote (const QString&); -%End - - void detach (); - -%If ( KDE_3_2_0 - ) - - enum - { - PrioLowest, - PrioLow, - PrioLower, - PrioNormal, - PrioHigher, - PrioHigh, - PrioHighest - }; - - bool setPriority (int); -%End - - -signals: - void processExited (KProcess*); - void receivedStdout (KProcess*, char*, int); -//ig void receivedStdout (int, int&); - void receivedStderr (KProcess*, char*, int); - void wroteStdin (KProcess*); - -protected slots: - void slotChildOutput (int); - void slotChildError (int); - void slotSendData (int); - -protected: - void setupEnvironment (); - virtual int setupCommunication (KProcess::Communication); - virtual int commSetupDoneP (); - virtual int commSetupDoneC (); - virtual void processHasExited (int); - virtual void commClose (); - -%If ( KDE_3_2_0 - ) - void setBinaryExecutable (const char*); -%End - - int childOutput (int); - int childError (int); - -protected: -//igx virtual void virtual_hook (int, void*); - -public: - -%If ( - KDE_3_5_2 ) - - enum Communication - { - NoCommunication, - Stdin, - Stdout, - Stderr, - AllOutput, - All, - NoRead - }; - -%End - - -public: - -%If ( KDE_3_2_0 - KDE_3_4_0 ) - void setUsePty (KProcess::Communication, bool); - KPty* pty () const; -%End - - -public: - -%If ( - KDE_3_2_0 ) - - enum RunMode - { - DontCare, - NotifyOnExit, - Block - }; - -%End - - -%If ( - KDE_3_2_0 ) - -private: - KProcess (const KProcess&); -%End - - -public: -//force - void setArguments (SIP_PYLIST) [void (char**)]; -%MethodCode -//takes arglist | (a Python list of strings) -//doc -// setArguments is the PyKDE equivalent of the stream operator methods (<<) -// in KDE's KProcess class - provide with a list of strings representing -// the arguments to the executable program set with setExecutable (PyKDE -// will continue to provide setExecutable even though it's deprecated in -// KDE (to also be replaced with stream operators) -//end - - PyObject *elem; - - for (int i = 0; i < PyList_Size (a0); i++) - { - elem = PyList_GET_ITEM (a0, i); - *sipCpp << PyString_AsString (elem); - } - - -%End - -//end - -}; // class KProcess - - -class KShellProcess : KProcess -{ -%TypeHeaderCode -#include -%End - - -public: - KShellProcess (const char* = 0); - virtual bool start (RunMode = NotifyOnExit , Communication = NoCommunication ); - static QString quote (const QString&); - -protected: -//igx virtual void virtual_hook (int, void*); - -%If ( - KDE_3_2_0 ) - -private: - KShellProcess (const KShellProcess&); -%End - - -}; // class KShellProcess - diff --git a/sip/kdecore/kprocio.sip b/sip/kdecore/kprocio.sip deleted file mode 100644 index bb99e9a..0000000 --- a/sip/kdecore/kprocio.sip +++ /dev/null @@ -1,67 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KProcIO : KProcess -{ -%TypeHeaderCode -#include -%End - - -public: - KProcIO (QTextCodec* = 0); - -%If ( KDE_3_2_0 - ) - void setComm (Communication); -%End - - bool start (RunMode = NotifyOnExit , bool = 0); - bool writeStdin (const QString&, bool = 1); - bool writeStdin (const QCString&, bool); - bool writeStdin (const QByteArray&); - bool fputs (const QString&, bool = 1); - void closeWhenDone (); - int readln (QString& /Out/, bool = 1, bool* = 0); - int fgets (QString&, bool = 0); - void resetAll (); - void ackRead (); - void enableReadSignals (bool); - -signals: - void readReady (KProcIO*); - -protected: - void controlledEmission (); - -protected slots: - void received (KProcess*, char*, int); - void sent (KProcess*); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KProcIO - diff --git a/sip/kdecore/kpty.sip b/sip/kdecore/kpty.sip deleted file mode 100644 index 7a27ee4..0000000 --- a/sip/kdecore/kpty.sip +++ /dev/null @@ -1,52 +0,0 @@ -// -// Copyright 2005 Jim Bublitz -// Earlier copyrights 1998 - 2004 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE_3_3_2 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_2_0 - ) - -class KPty -{ -%TypeHeaderCode -#include -%End - - -public: - KPty (); - bool open (); - void close (); - void setCTty (); - void login (const char* = 0, const char* = 0); - void logout (); - void setWinSize (int, int); - void setXonXoff (bool); - const char* ttyName () const; - int masterFd () const; - int slaveFd () const; - -}; // class KPty - -%End - diff --git a/sip/kdecore/krandomsequence.sip b/sip/kdecore/krandomsequence.sip deleted file mode 100644 index 34474f4..0000000 --- a/sip/kdecore/krandomsequence.sip +++ /dev/null @@ -1,45 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KRandomSequence -{ -%TypeHeaderCode -#include -%End - - -public: - KRandomSequence (long = 0); - KRandomSequence (const KRandomSequence&); - void setSeed (long = 1); - double getDouble (); - ulong getLong (ulong); - bool getBool (); -//ig void randomize (QGList*); - void modulate (int); - -}; // class KRandomSequence - diff --git a/sip/kdecore/kregexp.sip b/sip/kdecore/kregexp.sip deleted file mode 100644 index 03b9f5c..0000000 --- a/sip/kdecore/kregexp.sip +++ /dev/null @@ -1,44 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KRegExp -{ -%TypeHeaderCode -#include -%End - - -public: - KRegExp (); - KRegExp (const char*, const char* = ""); - bool compile (const char*, const char* = ""); - bool match (const char*); - const char* group (int); - int groupStart (int); - int groupEnd (int); - -}; // class KRegExp - diff --git a/sip/kdecore/krfcdate.sip b/sip/kdecore/krfcdate.sip deleted file mode 100644 index 7628e37..0000000 --- a/sip/kdecore/krfcdate.sip +++ /dev/null @@ -1,42 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KRFCDate -{ -%TypeHeaderCode -#include -%End - - -public: - static time_t parseDate (const QString&); - static time_t parseDateISO8601 (const QString&); - static int localUTCOffset (); - static QCString rfc2822DateString (time_t, int); - static QCString rfc2822DateString (time_t); - -}; // class KRFCDate - diff --git a/sip/kdecore/krootprop.sip b/sip/kdecore/krootprop.sip deleted file mode 100644 index 66d3d72..0000000 --- a/sip/kdecore/krootprop.sip +++ /dev/null @@ -1,52 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KRootProp -{ -%TypeHeaderCode -#include -%End - - -public: - KRootProp (const QString& = QString ::null ); - void setProp (const QString& = ""); - QString prop () const; - void destroy (); - QString readEntry (const QString&, const QString& = QString ::null ) const; - int readNumEntry (const QString&, int = 0) const; - QFont readFontEntry (const QString&, const QFont* = 0) const; - QColor readColorEntry (const QString&, const QColor* = 0) const; - QString writeEntry (const QString&, const QString&); - QString writeEntry (const QString&, int); - QString writeEntry (const QString&, const QFont&); - QString writeEntry (const QString&, const QColor&); - QString removeEntry (const QString&); - QStringList listEntries () const; - void sync (); - -}; // class KRootProp - diff --git a/sip/kdecore/ksavefile.sip b/sip/kdecore/ksavefile.sip deleted file mode 100644 index 84975c9..0000000 --- a/sip/kdecore/ksavefile.sip +++ /dev/null @@ -1,52 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KSaveFile -{ -%TypeHeaderCode -#include -%End - - -public: - KSaveFile (const QString&, int = 438); - int status (); - QString name (); - int handle (); -//ig FILE* fstream (); - QFile* file (); - QTextStream* textStream (); - QDataStream* dataStream (); - void abort (); - bool close (); - -%If ( KDE_3_2_0 - ) - static bool backupFile (const QString&, const QString& = QString ::null , const QString& = QString ::fromLatin1 ("~" )); -%End - - -}; // class KSaveFile - diff --git a/sip/kdecore/ksharedptr.sip b/sip/kdecore/ksharedptr.sip deleted file mode 100644 index f6ca092..0000000 --- a/sip/kdecore/ksharedptr.sip +++ /dev/null @@ -1,45 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KShared -{ -%TypeHeaderCode -#include -%End - - -public: - KShared (); - KShared (const KShared&); - void _KShared_ref (); - void _KShared_unref (); - int _KShared_count (); - -protected: - ~KShared (); - -}; // class KShared - diff --git a/sip/kdecore/kshell.sip b/sip/kdecore/kshell.sip deleted file mode 100644 index 3285446..0000000 --- a/sip/kdecore/kshell.sip +++ /dev/null @@ -1,77 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -%ModuleHeaderCode -#include -extern char **pyArgvToC(PyObject *argvlist,int *argcp); -%End - - -%If ( KDE_3_2_0 - ) -namespace KShell -{ - -enum Options -{ - NoOptions, - TildeExpand, - AbortOnMeta -}; - - -enum Errors -{ - NoError, - BadQuoting, - FoundMeta -}; - -QStringList splitArgs (const QString&, int = 0, int* = 0); -QString joinArgs (const QStringList&); -QString joinArgsDQ (const QStringList&); -QString joinArgs (SIP_PYLIST) [QString (const char**, int = -1)]; -%MethodCode -//returns (QString) -//takes a0 | a Python list of strings - int argc; - char **argv; - - // Convert the list. - - if ((argv = pyArgvToC(a0, &argc)) == NULL) - return NULL; - - Py_BEGIN_ALLOW_THREADS - sipRes = new QString (KShell::joinArgs (argv, argc)); - Py_END_ALLOW_THREADS - -%End - -QString tildeExpand (const QString&); -QString homeDir (const QString&); -}; // namespace KShell - -%End - diff --git a/sip/kdecore/kshortcut.sip b/sip/kdecore/kshortcut.sip deleted file mode 100644 index bfc03c9..0000000 --- a/sip/kdecore/kshortcut.sip +++ /dev/null @@ -1,261 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KKey -{ -%TypeHeaderCode -#include -%End - - -public: - - enum - { - MOD_FLAG_COUNT - }; - - -%If ( KDE_3_1_3 - ) - - enum - { - QtWIN - }; - -%End - - - enum ModFlag - { - SHIFT, - CTRL, - ALT, - WIN - }; - - KKey (); - KKey (int); - KKey (const QKeySequence&); - KKey (const QKeyEvent*); - KKey (const KKey&); - KKey (const QString&); - KKey (uint, uint); - void clear (); - bool init (int); - bool init (const QKeySequence&); - bool init (const QKeyEvent*); - bool init (const KKey&); - bool init (const QString&); - bool init (uint, uint); - bool isNull () const; - uint sym () const; - uint modFlags () const; - int compare (const KKey&) const; - -%If ( KDE_3_1_4 - ) - bool operator == (const KKey&) const; - bool operator != (const KKey&) const; - bool operator < (const KKey&) const; -%End - - int keyCodeQt () const; - QString toString () const; - QString toStringInternal () const; - void simplify (); - static KKey& null (); - static QString modFlagLabel (KKey::ModFlag); - -public: - -%If ( - KDE_3_2_0 ) -//ig bool isValidQt () const; -//ig bool isValidNative () const; -%End - - -public: - -%If ( KDE_3_1_2 - KDE_3_1_3 ) - - enum - { - QtWIN - }; - -%End - - -public: - -%If ( - KDE_3_1_2 ) - - enum - { - QtWIN - }; - -%End - - -}; // class KKey - - -class KKeySequence -{ -%TypeHeaderCode -#include -%End - - -public: - - enum - { - MAX_KEYS - }; - - KKeySequence (); - KKeySequence (const QKeySequence&); - KKeySequence (const KKey&); -//ig KKeySequence (const KKeyNative&); - KKeySequence (const KKeySequence&); - KKeySequence (const QString&); - void clear (); - bool init (const QKeySequence&); - bool init (const KKey&); -//ig bool init (const KKeyNative&); - bool init (const KKeySequence&); - bool init (const QString&); - uint count () const; - const KKey& key (uint) const; - bool isTriggerOnRelease () const; - bool setKey (uint, const KKey&); - bool isNull () const; - bool startsWith (const KKeySequence&) const; - int compare (const KKeySequence&) const; - -%If ( KDE_3_1_4 - ) - bool operator == (const KKeySequence&) const; - bool operator != (const KKeySequence&) const; - bool operator < (const KKeySequence&) const; -%End - - QKeySequence qt () const; - int keyCodeQt () const; - QString toString () const; - QString toStringInternal () const; - static KKeySequence& null (); - -protected: - -public: - -%If ( - KDE_3_2_0 ) -//ig void setTriggerOnRelease (bool); -%End - - -}; // class KKeySequence - - -class KShortcut -{ -%TypeHeaderCode -#include -%End - - -public: - - enum - { - MAX_SEQUENCES - }; - - KShortcut (); - KShortcut (int); - KShortcut (const QKeySequence&); - KShortcut (const KKey&); - KShortcut (const KKeySequence&); - KShortcut (const KShortcut&); - KShortcut (const char*); - KShortcut (const QString&); - void clear (); - bool init (int); - bool init (const QKeySequence&); - bool init (const KKey&); - bool init (const KKeySequence&); - bool init (const KShortcut&); - bool init (const QString&); - uint count () const; - const KKeySequence& seq (uint) const; - int keyCodeQt () const; - bool isNull () const; - int compare (const KShortcut&) const; - -%If ( KDE_3_1_4 - ) - bool operator == (const KShortcut&) const; - bool operator != (const KShortcut&) const; - bool operator < (const KShortcut&) const; -%End - - bool contains (const KKey&) const; - bool contains (const KKeyNative&) const; - bool contains (const KKeySequence&) const; - bool setSeq (uint, const KKeySequence&); - bool append (const KKeySequence&); - -%If ( KDE_3_3_0 - ) - void remove (const KKeySequence&); -%End - - -%If ( KDE_3_2_0 - ) - bool append (const KKey&); - bool append (const KShortcut&); -%End - - -%If ( KDE_3_1_4 - ) -//ig operator QKeySequence () const; -%End - - QString toString () const; - QString toStringInternal (const KShortcut* = 0) const; - static KShortcut& null (); - -protected: - -public: - -%If ( KDE_3_1_4 - ) -//ig operator int () const; -%End - - -}; // class KShortcut - diff --git a/sip/kdecore/kshortcutlist.sip b/sip/kdecore/kshortcutlist.sip deleted file mode 100644 index cdf22c9..0000000 --- a/sip/kdecore/kshortcutlist.sip +++ /dev/null @@ -1,133 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KShortcutList -{ -%TypeHeaderCode -#include -#include -#include -%End - - -public: - KShortcutList (); - virtual uint count () const = 0; - virtual QString name (uint) const = 0; - virtual QString label (uint) const = 0; - virtual QString whatsThis (uint) const = 0; - virtual const KShortcut& shortcut (uint) const = 0; - virtual const KShortcut& shortcutDefault (uint) const = 0; - virtual bool isConfigurable (uint) const = 0; - virtual bool setShortcut (uint, const KShortcut&) = 0; - virtual bool isGlobal (uint) const; - virtual int index (const QString&) const; - virtual int index (const KKeySequence&) const; - virtual const KInstance* instance () const; - - enum Other - { - - }; - - virtual QVariant getOther (KShortcutList::Other, uint) const = 0; - virtual bool setOther (KShortcutList::Other, uint, QVariant) = 0; - virtual bool save () const = 0; - virtual bool readSettings (const QString& = QString ::null , KConfigBase* = 0); - virtual bool writeSettings (const QString& = QString ::null , KConfigBase* = 0, bool = 0, bool = 0) const; - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KShortcutList - - -class KAccelShortcutList : KShortcutList -{ -%TypeHeaderCode -#include -#include -#include -%End - - -public: - KAccelShortcutList (KAccel*); - KAccelShortcutList (KGlobalAccel*); - KAccelShortcutList (KAccelActions&, bool); - virtual uint count () const; - virtual QString name (uint) const; - virtual QString label (uint) const; - virtual QString whatsThis (uint) const; - virtual const KShortcut& shortcut (uint) const; - virtual const KShortcut& shortcutDefault (uint) const; - virtual bool isConfigurable (uint) const; - virtual bool setShortcut (uint, const KShortcut&); - virtual bool isGlobal (uint) const; - virtual QVariant getOther (KShortcutList::Other, uint) const; - virtual bool setOther (KShortcutList::Other, uint, QVariant); - virtual bool save () const; - -protected: - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KAccelShortcutList - -namespace KStdAccel -{ - -class ShortcutList : KShortcutList -{ -%TypeHeaderCode -#include -#include -#include -%End - - -public: - ShortcutList (); - virtual uint count () const; - virtual QString name (uint) const; - virtual QString label (uint) const; - virtual QString whatsThis (uint) const; - virtual const KShortcut& shortcut (uint) const; - virtual const KShortcut& shortcutDefault (uint) const; - virtual bool isConfigurable (uint) const; - virtual bool setShortcut (uint, const KShortcut&); - virtual QVariant getOther (KShortcutList::Other, uint) const; - virtual bool setOther (KShortcutList::Other, uint, QVariant); - virtual bool save () const; - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class ShortcutList - -}; // namespace KStdAccel - diff --git a/sip/kdecore/ksimpleconfig.sip b/sip/kdecore/ksimpleconfig.sip deleted file mode 100644 index 17b70a3..0000000 --- a/sip/kdecore/ksimpleconfig.sip +++ /dev/null @@ -1,50 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KSimpleConfig : KConfig -{ -%TypeHeaderCode -#include -%End - - -public: - KSimpleConfig (const QString&, bool = 0); - -%If ( KDE_3_2_0 - ) - KSimpleConfig (KConfigBackEnd*, bool = 0); -%End - - virtual void sync (); - -private: - KSimpleConfig (const KSimpleConfig&); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KSimpleConfig - diff --git a/sip/kdecore/ksock.sip b/sip/kdecore/ksock.sip deleted file mode 100644 index 5cb653e..0000000 --- a/sip/kdecore/ksock.sip +++ /dev/null @@ -1,97 +0,0 @@ -// -// Copyright 2005 Jim Bublitz -// Earlier copyrights 1998 - 2004 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE_3_3_2 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KSocket : QObject -{ -%TypeHeaderCode -#include -%End - - -public: - KSocket (int); - KSocket (const char*, ushort, int = 30); - KSocket (const char*); - int socket () const; - void enableRead (bool); - void enableWrite (bool); - -signals: - void readEvent (KSocket*); - void writeEvent (KSocket*); - void closeEvent (KSocket*); - -public slots: - void slotWrite (int); - void slotRead (int); - -protected: - bool connect (const QString&, ushort, int = 0); - bool connect (const char*); - -private: - KSocket (const KSocket&); - -}; // class KSocket - - -class KServerSocket : QObject -{ -%TypeHeaderCode -#include -%End - - -public: - KServerSocket (ushort, bool); - KServerSocket (const char*, bool); - bool bindAndListen (); - int socket () const; - ushort port (); - -public slots: - virtual void slotAccept (int); - -signals: - void accepted (KSocket*); - -protected: - bool init (ushort); - bool init (const char*); - -private: - KServerSocket (const KServerSocket&); - -public: - -%If ( - KDE_3_1_2 ) - KServerSocket (ushort); - KServerSocket (const char*); -%End - - -}; // class KServerSocket - diff --git a/sip/kdecore/kstartupinfo.sip b/sip/kdecore/kstartupinfo.sip deleted file mode 100644 index 319ee2d..0000000 --- a/sip/kdecore/kstartupinfo.sip +++ /dev/null @@ -1,280 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KStartupInfo : QObject -{ -%TypeHeaderCode -#include -%End - - -public: - -%If ( KDE_3_2_0 - ) - static void disableAutoAppStartedSending (bool = 1); -%End - - static void appStarted (); - -%If ( KDE_3_2_0 - ) - static void appStarted (const QCString&); - static void setNewStartupId (QWidget*, const QCString&); - static void silenceStartup (bool); - -%If ( KDE_3_3_0 - ) - static QCString createNewStartupId (); -%End - -%End - - -%If ( KDE_3_1_1 - ) - - enum - { - CleanOnCantDetect, - DisableKWinModule, - AnnounceSilenceChanges - }; - -%End - - KStartupInfo (bool, QObject* /TransferThis/ = 0, const char* = 0); - static bool sendStartup (const KStartupInfoId&, const KStartupInfoData&); -//ig static bool sendStartupX (Display*, const KStartupInfoId&, const KStartupInfoData&); - static bool sendChange (const KStartupInfoId&, const KStartupInfoData&); -//ig static bool sendChangeX (Display*, const KStartupInfoId&, const KStartupInfoData&); - static bool sendFinish (const KStartupInfoId&); -//ig static bool sendFinishX (Display*, const KStartupInfoId&); - static bool sendFinish (const KStartupInfoId&, const KStartupInfoData&); -//ig static bool sendFinishX (Display*, const KStartupInfoId&, const KStartupInfoData&); - static KStartupInfoId currentStartupIdEnv (); - static void resetStartupEnv (); - - enum startup_t - { - NoMatch, - Match, - CantDetect - }; - - KStartupInfo::startup_t checkStartup (WId); - KStartupInfo::startup_t checkStartup (WId, KStartupInfoId&); - KStartupInfo::startup_t checkStartup (WId, KStartupInfoData&); - KStartupInfo::startup_t checkStartup (WId, KStartupInfoId&, KStartupInfoData&); - void setTimeout (uint); - static void setWindowStartupId (WId, const QCString&); - static QCString windowStartupId (WId); - -%If ( KDE_3_2_0 - ) - static void handleAutoAppStartedSending (); -%End - - -signals: - void gotNewStartup (const KStartupInfoId&, const KStartupInfoData&); - void gotStartupChange (const KStartupInfoId&, const KStartupInfoData&); - void gotRemoveStartup (const KStartupInfoId&, const KStartupInfoData&); - -protected: - virtual void customEvent (QCustomEvent*); - -}; // class KStartupInfo - - -class KStartupInfoId -{ -%TypeHeaderCode -#include -%End - - -public: - -%If ( KDE_3_1_4 - ) - bool operator == (const KStartupInfoId&) const; - bool operator != (const KStartupInfoId&) const; -%End - - bool none () const; - void initId (const QCString& = ""); - const QCString& id () const; - -%If ( KDE_3_3_0 - ) - ulong timestamp () const; -%End - - bool setupStartupEnv () const; - KStartupInfoId (); - KStartupInfoId (const KStartupInfoId&); - -%If ( KDE_3_1_4 - ) - bool operator < (const KStartupInfoId&) const; -%End - - -private: - KStartupInfoId (const QString&); - -}; // class KStartupInfoId - - -class KStartupInfoData -{ -%TypeHeaderCode -#include -%End - - -public: - void setBin (const QString&); - const QString& bin () const; - void setName (const QString&); - const QString& findName () const; - const QString& name () const; - -%If ( KDE_3_2_0 - ) - void setDescription (const QString&); - const QString& findDescription () const; - const QString& description () const; -%End - - void setIcon (const QString&); - const QString& findIcon () const; - const QString& icon () const; - void setDesktop (int); - int desktop () const; - void setWMClass (const QCString&); - const QCString findWMClass () const; - const QCString& WMClass () const; - void addPid (pid_t); - const QValueList& pids () const; - bool is_pid (pid_t) const; - void setHostname (const QCString& = QCString ()); - const QCString& hostname () const; - -%If ( KDE_3_1_1 - ) - - enum TriState - { - Yes, - No, - Unknown - }; - - void setSilent (KStartupInfoData::TriState); - KStartupInfoData::TriState silent () const; - -%If ( KDE_3_2_0 - ) - void setTimestamp (ulong); - ulong timestamp () const; - int screen () const; - void setScreen (int); -%End - -%End - - void update (const KStartupInfoData&); - KStartupInfoData (); - KStartupInfoData (const KStartupInfoData&); - -private: - KStartupInfoData (const QString&); - -}; // class KStartupInfoData - -/*%MappedType QValueList -//converts a Python list of long -{ -%TypeHeaderCode -#include -%End - -%ConvertFromTypeCode - // Handle no list. - - if (!sipCpp) - return PyList_New(0); - - // Convert to a Python list of long. - - PyObject *l; - - // Create the list. - - if ((l = PyList_New(sipCpp -> count())) == NULL) - return NULL; - - // Get it. - - for (uint i = 0; i < sipCpp -> count(); ++i) - if (PyList_SetItem(l,i,PyLong_FromLong((long)(*sipCpp)[i])) < 0) - { - Py_DECREF(l); - - return NULL; - } - - return l; -%End - -%ConvertToTypeCode - // Convert a Python list of long to a QValueList on the heap. - - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - if (sipPy == Py_None) - { - *sipCppPtr = NULL; - - return 0; - } - - QValueList *qvl = new QValueList; - - PyErr_Clear(); - - for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) - { - qvl -> append((pid_t)PyLong_AsLong(PyList_GET_ITEM(sipPy,i))); - - if (PyErr_Occurred() != NULL) - { - delete qvl; - *sipIsErr = 1; - - return 0; - } - } - - *sipCppPtr = qvl; - - return 1; -%End -};*/ - - diff --git a/sip/kdecore/kstaticdeleter.sip b/sip/kdecore/kstaticdeleter.sip deleted file mode 100644 index fb3778d..0000000 --- a/sip/kdecore/kstaticdeleter.sip +++ /dev/null @@ -1,38 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KStaticDeleterBase -{ -%TypeHeaderCode -#include -%End - - -public: - virtual void destructObject () = 0; - -}; // class KStaticDeleterBase - diff --git a/sip/kdecore/kstdaccel.sip b/sip/kdecore/kstdaccel.sip deleted file mode 100644 index f0ecb36..0000000 --- a/sip/kdecore/kstdaccel.sip +++ /dev/null @@ -1,441 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -%ModuleHeaderCode -#include -%End - -namespace KStdAccel -{ - -%If ( KDE_3_4_0 - ) - -enum StdAccel -{ - AccelNone, - Open, - New, - Close, - Save, - Print, - Quit, - Undo, - Redo, - Cut, - Copy, - Paste, - SelectAll, - Deselect, - DeleteWordBack, - DeleteWordForward, - Find, - FindNext, - FindPrev, - Replace, - Home, - End, - Prior, - Next, - GotoLine, - AddBookmark, - ZoomIn, - ZoomOut, - Up, - Back, - Forward, - Reload, - PopupMenuContext, - ShowMenubar, - Help, - WhatsThis, - TextCompletion, - PrevCompletion, - NextCompletion, - SubstringCompletion, - RotateUp, - RotateDown, - TabNext, - TabPrev, - FullScreen, - BackwardWord, - ForwardWord, - BeginningOfLine, - EndOfLine, - PasteSelection, - WhatThis -}; - -%End - -const KShortcut& shortcut (KStdAccel::StdAccel); -QString name (KStdAccel::StdAccel); -QString label (KStdAccel::StdAccel); -QString whatsThis (KStdAccel::StdAccel); -KStdAccel::StdAccel findStdAccel (const KKeySequence&); -KShortcut shortcutDefault (KStdAccel::StdAccel); -KShortcut shortcutDefault3 (KStdAccel::StdAccel); -KShortcut shortcutDefault4 (KStdAccel::StdAccel); -const KShortcut& open (); -const KShortcut& openNew (); -const KShortcut& close (); -const KShortcut& save (); -const KShortcut& print () /PyName=print_/; -const KShortcut& quit (); -const KShortcut& undo (); -const KShortcut& redo (); -const KShortcut& cut (); -const KShortcut& copy (); -const KShortcut& paste (); - -%If ( KDE_3_4_0 - ) -const KShortcut& pasteSelection (); -%End - -const KShortcut& selectAll (); -const KShortcut& deleteWordBack (); -const KShortcut& deleteWordForward (); -const KShortcut& find (); -const KShortcut& findNext (); -const KShortcut& findPrev (); -const KShortcut& replace (); -const KShortcut& zoomIn (); -const KShortcut& zoomOut (); -//ig const KShortcut& insert (); -const KShortcut& home (); -const KShortcut& end (); - -%If ( KDE_3_3_0 - ) -const KShortcut& beginningOfLine (); -const KShortcut& endOfLine (); -%End - -const KShortcut& prior (); -const KShortcut& next (); -const KShortcut& gotoLine (); -const KShortcut& addBookmark (); - -%If ( KDE_3_2_0 - ) -const KShortcut& tabNext (); -const KShortcut& tabPrev (); -const KShortcut& fullScreen (); -%End - -const KShortcut& help (); -const KShortcut& completion (); -const KShortcut& prevCompletion (); -const KShortcut& nextCompletion (); -const KShortcut& substringCompletion (); -const KShortcut& rotateUp (); -const KShortcut& rotateDown (); -const KShortcut& popupMenuContext (); -const KShortcut& whatsThis (); -const KShortcut& reload (); -const KShortcut& up (); -const KShortcut& back (); -const KShortcut& forward (); - -%If ( KDE_3_3_0 - ) -const KShortcut& backwardWord (); -const KShortcut& forwardWord (); -%End - -const KShortcut& showMenubar (); -QString action (KStdAccel::StdAccel); -QString description (KStdAccel::StdAccel); -int key (KStdAccel::StdAccel); -int defaultKey (KStdAccel::StdAccel); -bool isEqual (const QKeyEvent*, int); - -%If ( KDE_3_3_0 - KDE_3_4_0 ) - -enum StdAccel -{ - AccelNone, - Open, - New, - Close, - Save, - Print, - Quit, - Undo, - Redo, - Cut, - Copy, - Paste, - SelectAll, - Deselect, - DeleteWordBack, - DeleteWordForward, - Find, - FindNext, - FindPrev, - Replace, - Home, - End, - Prior, - Next, - GotoLine, - AddBookmark, - ZoomIn, - ZoomOut, - Up, - Back, - Forward, - Reload, - PopupMenuContext, - ShowMenubar, - Help, - WhatsThis, - TextCompletion, - PrevCompletion, - NextCompletion, - SubstringCompletion, - RotateUp, - RotateDown, - TabNext, - TabPrev, - FullScreen, - BackwardWord, - ForwardWord, - BeginningOfLine, - EndOfLine, - WhatThis -}; - -%End - - -%If ( KDE_3_2_0 - KDE_3_3_0 ) - -enum StdAccel -{ - AccelNone, - Open, - New, - Close, - Save, - Print, - Quit, - Undo, - Redo, - Cut, - Copy, - Paste, - SelectAll, - Deselect, - DeleteWordBack, - DeleteWordForward, - Find, - FindNext, - FindPrev, - Replace, - Home, - End, - Prior, - Next, - GotoLine, - AddBookmark, - ZoomIn, - ZoomOut, - Up, - Back, - Forward, - Reload, - PopupMenuContext, - ShowMenubar, - Help, - WhatsThis, - TextCompletion, - PrevCompletion, - NextCompletion, - SubstringCompletion, - RotateUp, - RotateDown, - TabNext, - TabPrev, - FullScreen, - WhatThis -}; - -%End - - -%If ( KDE_3_1_3 - KDE_3_2_0 ) - -enum StdAccel -{ - AccelNone, - Open, - New, - Close, - Save, - Print, - Quit, - Undo, - Redo, - Cut, - Copy, - Paste, - SelectAll, - Deselect, - DeleteWordBack, - DeleteWordForward, - Find, - FindNext, - FindPrev, - Replace, - Home, - End, - Prior, - Next, - GotoLine, - AddBookmark, - ZoomIn, - ZoomOut, - Up, - Back, - Forward, - Reload, - PopupMenuContext, - ShowMenubar, - Help, - WhatsThis, - TextCompletion, - PrevCompletion, - NextCompletion, - SubstringCompletion, - RotateUp, - RotateDown, - WhatThis -}; - -%End - - -%If ( KDE_3_1_2 - KDE_3_1_3 ) - -enum StdAccel -{ - AccelNone, - Open, - New, - Close, - Save, - Print, - Quit, - Undo, - Redo, - Cut, - Copy, - Paste, - SelectAll, - Deselect, - DeleteWordBack, - DeleteWordForward, - Find, - FindNext, - FindPrev, - Replace, - Home, - End, - Prior, - Next, - GotoLine, - AddBookmark, - ZoomIn, - ZoomOut, - Up, - Back, - Forward, - Reload, - PopupMenuContext, - ShowMenubar, - Help, - WhatsThis, - TextCompletion, - PrevCompletion, - NextCompletion, - SubstringCompletion, - RotateUp, - RotateDown, - WhatThis -}; - -%End - - -%If ( - KDE_3_1_2 ) - -enum StdAccel -{ - AccelNone, - Open, - New, - Close, - Save, - Print, - Quit, - Undo, - Redo, - Cut, - Copy, - Paste, - SelectAll, - Deselect, - DeleteWordBack, - DeleteWordForward, - Find, - FindNext, - FindPrev, - Replace, - Home, - End, - Prior, - Next, - GotoLine, - AddBookmark, - ZoomIn, - ZoomOut, - Up, - Back, - Forward, - Reload, - PopupMenuContext, - ShowMenubar, - Help, - WhatsThis, - TextCompletion, - PrevCompletion, - NextCompletion, - SubstringCompletion, - RotateUp, - RotateDown, - WhatThis -}; - -%End - -}; // namespace KStdAccel - diff --git a/sip/kdecore/kstddirs.sip b/sip/kdecore/kstddirs.sip deleted file mode 100644 index c83819c..0000000 --- a/sip/kdecore/kstddirs.sip +++ /dev/null @@ -1,69 +0,0 @@ -// -// Copyright 2003 Jim Bublitz -// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE_3_1_1 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KStandardDirs -{ -%TypeHeaderCode -#include -%End - - -public: - KStandardDirs (); - void addPrefix (const QString&); - bool addResourceType (const char*, const QString&); - bool addResourceDir (const char*, const QString&); - QString findResource (const char*, const QString&) const; - Q_UINT32 calcResourceHash (const char*, const QString&, bool) const; - QStringList findDirs (const char*, const QString&) const; - QString findResourceDir (const char*, const QString&) const; - QStringList findAllResources (const char*, const QString& = QString::null, bool = 0, bool = 0) const; - QStringList findAllResources (const char*, const QString&, bool, bool, QStringList&) const; - static QString findExe (const QString&, const QString& = QString::null, bool = 0); - static int findAllExe (QStringList&, const QString&, const QString& = QString::null, bool = 0); - void addKDEDefaults (); - bool addCustomized (KConfig*); - QStringList resourceDirs (const char*) const; - QStringList allTypes () const; - QString saveLocation (const char*, const QString& = QString::null, bool = 1) const; - static bool makeDir (const QString&, int = 493); - static QString kde_default (const char*); - QString kfsstnd_prefixes (); - QString localkdedir () const; - static bool exists (const QString&); - -private: - KStandardDirs (const KStandardDirs&); - -}; // class KStandardDirs - - -%ModuleCode -#include -%End - -QString locate (const char*, const QString&, const KInstance* = KGlobal::instance()); -QString locateLocal (const char*, const QString&, const KInstance* = KGlobal::instance()); diff --git a/sip/kdecore/kstringhandler.sip b/sip/kdecore/kstringhandler.sip deleted file mode 100644 index 3084b52..0000000 --- a/sip/kdecore/kstringhandler.sip +++ /dev/null @@ -1,89 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KStringHandler -{ -%TypeHeaderCode -#include -%End - - -public: - static QString word (const QString&, uint); - static QString word (const QString&, const char*); - static QString insword (const QString&, const QString&, uint); - static QString setword (const QString&, const QString&, uint); - static QString remrange (const QString&, const char*); - static QString remword (const QString&, uint); - static QString remword (const QString&, const QString&); - static QString capwords (const QString&); - static QStringList capwords (const QStringList&); - static QString reverse (const QString&); - static QStringList reverse (const QStringList&); - static QString ljust (const QString&, uint); - static QString rjust (const QString&, uint); - static QString center (const QString&, uint); - static QString lsqueeze (const QString&, uint = 40); - -%If ( KDE_3_2_0 - ) - static QString lEmSqueeze (const QString&, const QFontMetrics&, uint = 30); - static QString lPixelSqueeze (const QString&, const QFontMetrics&, uint); -%End - - static QString csqueeze (const QString&, uint = 40); - -%If ( KDE_3_2_0 - ) - static QString cEmSqueeze (const QString&, const QFontMetrics&, uint = 30); - static QString cPixelSqueeze (const QString&, const QFontMetrics&, uint); -%End - - static QString rsqueeze (const QString&, uint = 40); - -%If ( KDE_3_2_0 - ) - static QString rEmSqueeze (const QString&, const QFontMetrics&, uint = 30); - static QString rPixelSqueeze (const QString&, const QFontMetrics&, uint); -%End - - static bool matchFileName (const QString&, const QString&); -//ig static QStringList perlSplit (const QString&, const QString&, uint = 0); -//ig static QStringList perlSplit (const QChar&, const QString&, uint = 0); -//ig static QStringList perlSplit (const QRegExp&, const QString&, uint = 0); - -%If ( KDE_3_1_0 - ) - static QString tagURLs (const QString&); - -%If ( KDE_3_2_0 - ) - static QString obscure (const QString&); - static bool isUtf8 (const char*); - static QString from8Bit (const char*); -%End - -%End - - static bool matchFilename (const QString&, const QString&); - -}; // class KStringHandler - diff --git a/sip/kdecore/ktempdir.sip b/sip/kdecore/ktempdir.sip deleted file mode 100644 index 26da116..0000000 --- a/sip/kdecore/ktempdir.sip +++ /dev/null @@ -1,58 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_2_0 - ) - -class KTempDir -{ -%TypeHeaderCode -#include -#include -%End - - -public: - KTempDir (QString = QString ::null , int = 448); - void setAutoDelete (bool); - int status () const; - QString name () const; - QDir* qDir (); - void unlink (); - bool existing () const; - -%If ( KDE_3_5_2 - ) - static bool removeDir (const QString&); -%End - - -protected: - bool create (const QString&, int); - void setError (int); - -}; // class KTempDir - -%End - diff --git a/sip/kdecore/ktempfile.sip b/sip/kdecore/ktempfile.sip deleted file mode 100644 index 108b292..0000000 --- a/sip/kdecore/ktempfile.sip +++ /dev/null @@ -1,58 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KTempFile -{ -%TypeHeaderCode -#include -%End - - -public: - KTempFile (QString = QString ::null , QString = QString ::null , int = 384); - void setAutoDelete (bool); - int status (); - QString name (); - int handle (); -//ig FILE* fstream (); - QTextStream* textStream (); - QDataStream* dataStream (); - QFile* file (); - void unlink (); - -%If ( KDE_3_3_0 - ) - bool sync (); -%End - - bool close (); - -protected: - KTempFile (bool); - bool create (const QString&, const QString&, int); - void setError (int); - -}; // class KTempFile - diff --git a/sip/kdecore/ktimezones.sip b/sip/kdecore/ktimezones.sip deleted file mode 100644 index dc31c4f..0000000 --- a/sip/kdecore/ktimezones.sip +++ /dev/null @@ -1,272 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_5_0 - ) - -class KTimezoneSource : KShared -{ -%TypeHeaderCode -#include -%End - - -public: - KTimezoneSource (const QString&); - virtual QString db (); - virtual bool parse (const QString&, KTimezoneDetails&) const; - -}; // class KTimezoneSource - -%End - - -%If ( KDE_3_5_0 - ) - -class KTimezone -{ -%TypeHeaderCode -#include -%End - - -public: - static const float UNKNOWN; - static bool isValidLatitude (float); - static bool isValidLongitude (float); - KTimezone (KSharedPtr, const QString&, const QString& = QString (), float = KTimezone ::UNKNOWN , float = KTimezone ::UNKNOWN , const QString& = QString ()); - QString name () const; - QString countryCode () const; - float latitude () const; - float longitude () const; - int offset (Qt::TimeSpec = Qt ::UTC ) const; - int offset (const QDateTime&) const; - QDateTime convert (const KTimezone*, const QDateTime&) const; - QString comment () const; - bool parse (KTimezoneDetails&) const; - -private: - KTimezone (const KTimezone&); - -public: -//force - typedef KSharedPtr TZSourcePtr; -//end - -}; // class KTimezone - -%End - - -%If ( KDE_3_5_0 - ) - -class KTimezoneDetails -{ -%TypeHeaderCode -#include -%End - - -public: - KTimezoneDetails (); - virtual void parseEnded (); - virtual void parseStarted (); - virtual void gotHeader (uint, uint, uint, uint, uint, uint); - virtual void gotTransitionTime (int, uint); - virtual void gotLocalTimeIndex (int, uint); - virtual void gotLocalTime (int, int, bool, uint); - virtual void gotAbbreviation (int, const QString&); - virtual void gotLeapAdjustment (int, uint, uint); - virtual void gotIsStandard (int, bool); - virtual void gotIsUTC (int, bool); - -}; // class KTimezoneDetails - -%End - - -%If ( KDE_3_5_0 - ) - -class KTimezones -{ -%TypeHeaderCode -#include -%End - - -public: - KTimezones (); - const KTimezone* local (); - const KTimezone* zone (const QString&); - typedef QMap ZoneMap; - const KTimezones::ZoneMap allZones (); - void add (KTimezone*); - -private: - KTimezones (const KTimezones&); - -}; // class KTimezones - -%End - - - -%If (KDE_3_5_0 - ) -%MappedType KSharedPtr -//converts KSharedPtr -{ -%TypeHeaderCode -#include -#include -%End - -%ConvertFromTypeCode - // Convert to a Python instance - - if (!sipCpp) - return NULL; - - KSharedPtr *cPtr = new KSharedPtr (*(KSharedPtr *)sipCpp); - KTimezoneSource *cpp = cPtr->data (); - PyObject *obj = sipConvertFromInstance (cpp, sipClass_KTimezoneSource, sipTransferObj); - - return obj; -%End - -%ConvertToTypeCode - // Convert a Python instance to a Ptr on the heap. - - if (sipIsErr == NULL) - return PyInstance_Check(sipPy); - - int iserr = 0; - KTimezoneSource *cpp = (KTimezoneSource *)sipForceConvertToType(sipPy, sipType_KTimezoneSource, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); - - if (iserr) - { - *sipIsErr = 1; - return 0; - } - - *sipCppPtr = new KSharedPtr (cpp); - - return 1; -%End -}; -%End - - -%If (KDE_3_5_0 - ) -%MappedType KTimezones::ZoneMap -//converts a Python dict of QString:KTimezone -{ -%TypeHeaderCode -#include -#include -#include -%End - -%ConvertFromTypeCode - // Convert to a Python dict - - if (!sipCpp) - return PyDict_New(); - - PyObject *dict; - - // Create the dictionary. - - if ((dict = PyDict_New()) == NULL) - return NULL; - - // Get it. - - const QMap cppmap = *sipCpp; - QMap::ConstIterator it; - - for (it = cppmap.begin (); it != cppmap.end (); ++it) - { - QString acpp = it.key (); - KTimezone *bcpp = it.data (); - PyObject *ainst; - PyObject *binst = NULL; - if (((ainst = sipConvertFromNewType(new QString(acpp), sipType_QString, sipTransferObj)) == NULL) - || ((binst = sipConvertFromType(bcpp, sipType_KTimezone, sipTransferObj)) == NULL) - || (PyDict_SetItem (dict, ainst, binst) < 0)) - { - Py_XDECREF (ainst); - Py_XDECREF (binst); - Py_DECREF (dict); - return NULL; - } - } - - return dict; -%End - - -%ConvertToTypeCode - // Convert a Python dictionary to a QMap on the heap. - - if (sipIsErr == NULL) - return PyDict_Check(sipPy); - - QMap *cppmap = new QMap; - - PyObject *aelem, *belem; - SIP_SSIZE_T pos = 0; - QString *acpp; - KTimezone *bcpp; - - while (PyDict_Next(sipPy, &pos, &aelem, &belem)) - { - int iserr = 0, acpp_state; - - acpp = (QString *)sipForceConvertToType(aelem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr); - bcpp = (KTimezone *)sipForceConvertToType(belem, sipType_KTimezone, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); - - if (iserr) - { - if (acpp) - sipReleaseType(acpp, sipType_QString, acpp_state); - - *sipIsErr = 1; - delete cppmap; - return 0; - } - - cppmap->insert (*acpp, bcpp); - - sipReleaseType(acpp, sipType_QString, acpp_state); - } - - *sipCppPtr = cppmap; - - return 1; -%End -}; -%End - - diff --git a/sip/kdecore/kuniqueapplication.sip b/sip/kdecore/kuniqueapplication.sip deleted file mode 100644 index a15e8ad..0000000 --- a/sip/kdecore/kuniqueapplication.sip +++ /dev/null @@ -1,68 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KUniqueApplication : KApplication, DCOPObject -{ -%TypeHeaderCode -#include -%End - - -public: - KUniqueApplication (bool, bool, bool); - -%If ( KDE_3_3_0 - ) -//ig KUniqueApplication (Display*, Qt::HANDLE = 0, Qt::HANDLE = 0, bool = 1, bool = 0); -%End - - static void addCmdLineOptions (); - static bool start (); - bool process (const QCString&, const QByteArray&, QCString&, QByteArray&); - virtual int newInstance (); - -%If ( KDE_3_3_0 - ) - bool restoringSession (); - static void setHandleAutoStarted (); -%End - - -protected: - -%If ( KDE_3_3_0 - ) - virtual void virtual_hook (int, void*); -%End - - -public: - -%If ( - KDE_3_3_0 ) - KUniqueApplication (bool = 1, bool = 1); - virtual DCOPClient* dcopClient (); -%End - - -}; // class KUniqueApplication - diff --git a/sip/kdecore/kurl.sip b/sip/kdecore/kurl.sip deleted file mode 100644 index 7acf594..0000000 --- a/sip/kdecore/kurl.sip +++ /dev/null @@ -1,408 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KURL -{ -%TypeHeaderCode -#include -%End - - -public: - - enum AdjustementFlags - { - NoAdjustements, - StripFileProtocol - }; - - -%If ( KDE_3_2_0 - ) - - enum URIMode - { - Auto, - Invalid, - RawURI, - URL, - Mailto - }; - -%End - - KURL (); - KURL (const QString&, int = 0); - KURL (const char*, int = 0); - KURL (const QCString&, int = 0); - KURL (const KURL&); - KURL (const QUrl&); - KURL (const KURL&, const QString&, int = 0); - QString protocol () const; - void setProtocol (const QString&); - -%If ( KDE_3_2_0 - ) - int uriMode () const; -%End - - QString user () const; - void setUser (const QString&); - bool hasUser () const; - QString pass () /PyName=pass_/; - void setPass (const QString&); - bool hasPass () const; - QString host () const; - void setHost (const QString&); - bool hasHost () const; - ushort port () const; - void setPort (ushort); - QString path () const; - QString path (int) const; - void setPath (const QString&); - bool hasPath () const; - void cleanPath (bool = 0); - void adjustPath (int); - void setEncodedPathAndQuery (const QString&, int = 0); - void setEncodedPath (const QString&, int = 0); - QString encodedPathAndQuery (int = 0, bool = 0, int = 0) const; - void setQuery (const QString&, int = 0); - QString query () const; - QString ref () const; - void setRef (const QString&); - bool hasRef () const; - QString htmlRef () const; - QString encodedHtmlRef () const; - void setHTMLRef (const QString&); - bool hasHTMLRef () const; - bool isValid () const; - bool isMalformed () const; - bool isLocalFile () const; - void setFileEncoding (const QString&); - QString fileEncoding () const; - bool hasSubURL () const; - void addPath (const QString&); - QString queryItem (const QString&) const; - -%If ( KDE_3_2_0 - ) - QString queryItem (const QString&, int) const; -%End - - -%If ( KDE_3_1_0 - ) - - enum QueryItemsOptions - { - CaseInsensitiveKeys - }; - - QMap queryItems (int = 0) const; - -%If ( KDE_3_2_0 - ) - QMap queryItems (int, int) const; -%End - - void addQueryItem (const QString&, const QString&, int = 0); - void removeQueryItem (const QString&); -%End - - void setFileName (const QString&); - QString fileName (bool = 1) const; - QString directory (bool = 1, bool = 1) const; - -%If ( KDE_3_2_0 - ) - void setDirectory (const QString&); -%End - - bool cd (const QString&); - QString url (int = 0, int = 0) const; - QString prettyURL (int = 0) const; - QString prettyURL (int, KURL::AdjustementFlags) const; - -%If ( KDE_3_4_0 - ) - QString pathOrURL () const; -%End - - -%If ( KDE_3_0_1 - ) - QString htmlURL () const; -%End - - bool isEmpty () const; - KURL upURL () const; - -%If ( KDE_3_2_0 - ) - bool operator < (const KURL&) const; -%End - - -%If ( KDE_3_1_4 - ) - bool operator == (const KURL&) const; - bool operator == (const QString&) const; - bool operator != (const KURL&) const; - bool operator != (const QString&) const; -%End - - bool cmp (const KURL&, bool = 0) const; - -%If ( KDE_3_1_0 - ) - bool equals (const KURL&, bool = 0) const; -%End - - bool isParentOf (const KURL&) const; - static KURL::List split (const QString&); - static KURL::List split (const KURL&); - static KURL join (const KURL::List&); - -%If ( KDE_3_1_0 - ) - static KURL fromPathOrURL (const QString&); -%End - - static QString encode_string (const QString&, int = 0); - static QString encode_string_no_slash (const QString&, int = 0); - static QString decode_string (const QString&, int = 0); - static bool isRelativeURL (const QString&); - -%If ( KDE_3_2_0 - ) - static QString relativeURL (const KURL&, const KURL&, int = 0); - static QString relativePath (const QString&, const QString&, bool* = 0); - static KURL::URIMode uriModeForProtocol (const QString&); -%End - - QString filename (bool = 1) const; - -protected: - void reset (); - -%If ( KDE_3_2_0 - ) - void parseURL (const QString&, int = 0); - void parseRawURI (const QString&, int = 0); - void parseMailto (const QString&, int = 0); -%End - - void parse (const QString&, int = 0); - -public: -//force - - class List - { - - public: - List (); - List (const QStringList&); - QStringList toStringList () const; - bool isEmpty () const; - void append (const KURL&); - void prepend (const KURL&); - void remove (const KURL&); - const KURL& first () const; - const KURL& last () const; - int findIndex (const KURL&) const; - uint contains (const KURL&) const; - uint count () const; - void clear (); - int __len__ () /NonLazy/; -%MethodCode -//returns (int) - Py_BEGIN_ALLOW_THREADS - sipRes = sipCpp -> count(); - Py_END_ALLOW_THREADS -%End - - void __setitem__ (int, const KURL&); -%MethodCode -//takes index | (int) | value | (KURL) - int len; - - len = sipCpp -> count(); - - if ((a0 = sipConvertFromSequenceIndex(a0,len)) < 0) - sipIsErr = 1; - else - (*sipCpp)[a0] = *a1; -%End - - void __setitem__ (SIP_PYSLICE, const KURL::List&); -%MethodCode -//takes range | (a Python slice) | urlList | (KURL.List) - - int len; - SIP_SSIZE_T start, stop, step, slicelength; - - len = sipCpp -> count(); - - if (sipConvertFromSliceObject(a0,len,&start,&stop,&step,&slicelength) < 0) - sipIsErr = 1; - else - { - int vlen = a1 -> count(); - if (vlen != slicelength) - { - sipBadLengthForSlice(vlen,slicelength); - sipIsErr = 1; - } - else - { - KURL::List::ConstIterator it = a1 -> begin(); - for (int i = 0; i < slicelength; ++i) - { - (*sipCpp)[start] = *it; - start += step; - ++it; - } - } - } -%End - - void __delitem__ (int); -%MethodCode -//takes index | (int) - int len; - - len = sipCpp -> count(); - - if ((a0 = sipConvertFromSequenceIndex(a0,len)) < 0) - sipIsErr = 1; - else - sipCpp -> remove(sipCpp -> at(a0)); -%End - - void __delitem__ (SIP_PYSLICE); -%MethodCode -//takes range | (a Python slice) - int len; - SIP_SSIZE_T start, stop, step, slicelength; - - len = sipCpp -> count(); - if (sipConvertFromSliceObject(a0,len,&start,&stop,&step,&slicelength) < 0) - sipIsErr = 1; - else - for (int i = 0; i < slicelength; ++i) - { - sipCpp -> remove(sipCpp -> at(start)); - start += step - 1; - } -%End - - KURL operator [] (int); -%MethodCode -//returns (KURL) -//takes index | (int) - int len; - - len = sipCpp -> count(); - - if ((a0 = sipConvertFromSequenceIndex(a0,len)) < 0) - sipIsErr = 1; - else - sipRes = new KURL((*sipCpp)[a0]); -%End - - KURL::List operator [] (SIP_PYSLICE); -%MethodCode -//returns (KURL.List) -//takes range | (a Python slice) - int len; - SIP_SSIZE_T start, stop, step, slicelength; - - len = sipCpp -> count(); - - if (sipConvertFromSliceObject(a0,len,&start,&stop,&step,&slicelength) < 0) - sipIsErr = 1; - else - { - sipRes = new KURL::List(); - - for (int i = 0; i < slicelength; ++i) - { - (*sipRes) += (*sipCpp)[start]; - start += step; - } - } -%End - - KURL::List operator + (const KURL::List&); -%MethodCode -//returns (KURL.List) -//takes listToAdd | (KURL.List) - Py_BEGIN_ALLOW_THREADS -// sipRes = new KURL::List((const KURL::List&)((*sipCpp) + *a0)); - sipRes = new KURL::List (*sipCpp); - (*sipRes) += (*a0); - Py_END_ALLOW_THREADS -%End - - KURL::List& operator += (const KURL::List&); - KURL::List operator * (int); -%MethodCode - sipRes = new KURL::List(); - - for (int i = 0; i < a0; ++i) - (*sipRes) += (*sipCpp); -%End - - KURL::List& operator *= (int); -%MethodCode -//returns (KURL.List) -//takes val | (int) - KURL::List orig(*sipCpp); - - sipCpp -> clear(); - - for (int i = 0; i < a0; ++i) - (*sipCpp) += orig; -%End - - bool operator == (const KURL::List&); - bool operator != (const KURL::List&); - int __contains__ (KURL) /NonLazy/; -%MethodCode -//returns (bool) -//takes a0 | (KURL) - - QString s = a0->url (); - sipRes = 0; - KURL::List::Iterator it; - for (it = sipCpp->begin (); (it != sipCpp->end ()) && (sipRes == 0); it++) - if (s == (*it).url ()) - sipRes = 1; -%End - - - }; // class List - - -public: -//end - -}; // class KURL - -bool urlcmp (const QString&, const QString&); -bool urlcmp (const QString&, const QString&, bool, bool); - -%If ( KDE_3_1_4 - ) -//igx QDataStream& operator << (QDataStream&, const KURL&); -//igx QDataStream& operator >> (QDataStream&, KURL&); -%End diff --git a/sip/kdecore/kurldrag.sip b/sip/kdecore/kurldrag.sip deleted file mode 100644 index 11b971e..0000000 --- a/sip/kdecore/kurldrag.sip +++ /dev/null @@ -1,76 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_1_4 - ) - -class KURLDrag : QUriDrag -{ -%TypeHeaderCode -#include -%End - - -public: - KURLDrag (const KURL::List&, QWidget*, const char*); - KURLDrag (const KURL::List&, const QMap&, QWidget*, const char*); - -%If ( KDE_3_4_0 - ) - void setExportAsText (bool); -%End - - static KURLDrag* newDrag (const KURL::List&, QWidget* = 0, const char* = 0); - static KURLDrag* newDrag (const KURL::List&, const QMap&, QWidget* = 0, const char* = 0); - QMap& metaData (); - static bool decode (const QMimeSource*, KURL::List&); - static bool decode (const QMimeSource*, KURL::List&, QMap&); - -%If ( KDE_3_2_0 - ) - static QString urlToString (const KURL&); - static KURL stringToUrl (const QCString&); - -%If ( KDE_3_5_0 - ) - virtual const char* format (int) const; - virtual QByteArray encodedData (const char*) const; -%End - -%End - - -protected: - KURLDrag (const QStrList&, const QMap&, QWidget*, const char*); - -protected: - -%If ( - KDE_3_5_0 ) - virtual const char* format (int) const; - virtual QByteArray encodedData (const char*) const; -%End - - -}; // class KURLDrag - -%End - diff --git a/sip/kdecore/kuser.sip b/sip/kdecore/kuser.sip deleted file mode 100644 index 1ff5db9..0000000 --- a/sip/kdecore/kuser.sip +++ /dev/null @@ -1,74 +0,0 @@ -// -// Copyright 2004 Jim Bublitz -// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE_3_2_2 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_2_0 - ) - -class KUser -{ -%TypeHeaderCode -#include <../extra/kde320/ksharedptr.h> -#include -%End - - -public: - - enum UIDMode - { - UseEffectiveUID, - UseRealUserID - }; - - KUser (KUser::UIDMode = UseEffectiveUID ); - KUser (long); - KUser (const QString&); - KUser (const char*); -//ig KUser (passwd*); - bool operator == (const KUser&) const; - bool operator != (const KUser&) const; - bool isValid () const; - long uid () const; - long gid () const; - bool isSuperUser () const; - QString loginName () const; - QString fullName () const; - QString roomNumber () const; - QString workPhone () const; - QString homePhone () const; - QString homeDir () const; - QString shell () const; - -%If ( - KDE_3_2_1 ) - -private: - KUser (const KUser&); -%End - - -}; // class KUser - -%End - diff --git a/sip/kdecore/kvmallocator.sip b/sip/kdecore/kvmallocator.sip deleted file mode 100644 index d75fa6d..0000000 --- a/sip/kdecore/kvmallocator.sip +++ /dev/null @@ -1,42 +0,0 @@ -// -// Copyright 2003 Jim Bublitz -// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE_3_1_1 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KVMAllocator -{ -%TypeHeaderCode -#include -%End - -public: - KVMAllocator (); -//ig Block* allocate (size_t); -//ig void free (Block*); -//ig void copy (void*, Block*, int = 0, size_t = 0); -//ig void copy (Block*, void*, int = 0, size_t = 0); -//ig void* map (Block*); -//ig void unmap (Block*); - -}; // class KVMAllocator diff --git a/sip/kdecore/kwin.sip b/sip/kdecore/kwin.sip deleted file mode 100644 index 4340b39..0000000 --- a/sip/kdecore/kwin.sip +++ /dev/null @@ -1,188 +0,0 @@ -// -// Copyright 2005 Jim Bublitz -// Earlier copyrights 1998 - 2004 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE_3_3_2 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KWin -{ -%TypeHeaderCode -#include -%End - - -public: - -%If ( KDE_3_2_0 - ) - static void activateWindow (WId, long = 0); - static void forceActiveWindow (WId, long = 0); -%End - - static void setActiveWindow (WId); - -%If ( KDE_3_2_0 - ) - static void demandAttention (WId, bool = 1); - static void setUserTime (WId, long); -%End - - static void invokeContextHelp (); - static void setSystemTrayWindowFor (WId, WId); - -%If ( KDE_3_2_0 - ) - - class WindowInfo - { - - public: - WindowInfo (WId, ulong, ulong); - WindowInfo (); - bool valid (bool = 0) const; - WId win () const; - ulong state () const; - -%If ( KDE_3_2_1 - ) - bool hasState (ulong) const; -%End - - bool isMinimized () const; - NET::MappingState mappingState () const; - -%If ( KDE_3_3_0 - ) - NETExtendedStrut extendedStrut () const; -%End - - NETStrut strut () const; - NET::WindowType windowType (int) const; - QString visibleName () const; - QString visibleNameWithState () const; - QString name () const; - QString visibleIconName () const; - QString visibleIconNameWithState () const; - QString iconName () const; - bool isOnCurrentDesktop () const; - bool isOnDesktop (int) const; - bool onAllDesktops () const; - int desktop () const; - QRect geometry () const; - QRect frameGeometry () const; - WId transientFor () const; - WId groupLeader () const; - -%If ( KDE_3_3_0 - ) - QCString windowClassClass () const; - QCString windowClassName () const; - QCString windowRole () const; - QCString clientMachine () const; -%End - - bool actionSupported (NET::Action) const; - WindowInfo (const KWin::WindowInfo&); - - }; // class WindowInfo - - -public: -%End - - -%If ( KDE_3_2_0 - ) - static KWin::WindowInfo windowInfo (WId, ulong = 0, ulong = 0); - static WId transientFor (WId); - static WId groupLeader (WId); -%End - - static QPixmap icon (WId, int = -1, int = -1, bool = 0); - -%If ( KDE_3_2_0 - ) - - enum IconSource - { - NETWM, - WMHints, - ClassHint, - XApp - }; - - static QPixmap icon (WId, int, int, bool, int); -%End - - static void setIcons (WId, const QPixmap&, const QPixmap&); - static void setType (WId, NET::WindowType); - static void setState (WId, ulong); - static void clearState (WId, ulong); - static void setOnAllDesktops (WId, bool); - static void setOnDesktop (WId, int); - -%If ( KDE_3_3_0 - ) - static void setExtendedStrut (WId, int, int, int, int, int, int, int, int, int, int, int, int); -%End - - static void setStrut (WId, int, int, int, int); - static int currentDesktop (); - static int numberOfDesktops (); - static void setCurrentDesktop (int); - static void iconifyWindow (WId, bool = 1); - static void deIconifyWindow (WId, bool = 1); - -%If ( KDE_3_2_0 - ) - static void raiseWindow (WId); - static void lowerWindow (WId); - static bool icccmCompliantMappingState (); - static bool allowedActionsSupported (); - static QString readNameProperty (WId, ulong); -%End - - - class Info - { - - public: - WId win; - ulong state; - -%If ( KDE_3_2_0 - ) - bool isMinimized () const; -%End - - bool isIconified () const; - NET::MappingState mappingState; - NETStrut strut; - NET::WindowType windowType; - QString visibleName; - QString name; - int desktop; - bool onAllDesktops; - pid_t pid; - QRect geometry; - QRect frameGeometry; - QString visibleNameWithState () const; - - }; // class Info - - -public: - static KWin::Info info (WId); - static void appStarted (); - -}; // class KWin - diff --git a/sip/kdecore/kwinmodule.sip b/sip/kdecore/kwinmodule.sip deleted file mode 100644 index 8d31af4..0000000 --- a/sip/kdecore/kwinmodule.sip +++ /dev/null @@ -1,158 +0,0 @@ -// -// Copyright 2005 Jim Bublitz -// Earlier copyrights 1998 - 2004 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE_3_3_2 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KWinModule : QObject -{ -%TypeHeaderCode -#include -%End - - -public: - -%If ( KDE_3_2_0 - ) - - enum - { - INFO_DESKTOP, - INFO_WINDOWS, - INFO_ALL - }; - - KWinModule (QObject* /TransferThis/, int); -%End - - KWinModule (QObject* /TransferThis/ = 0); - const QValueList& windows () const; - const QValueList& stackingOrder () const; - bool hasWId (WId) const; - const QValueList& systemTrayWindows () const; - int currentDesktop () const; - int numberOfDesktops () const; - WId activeWindow () const; - QRect workArea (int = -1) const; - QRect workArea (const QValueList&, int = -1) const; - QString desktopName (int) const; - void setDesktopName (int, const QString&); - void doNotManage (const QString&); - -signals: - void currentDesktopChanged (int); - void windowAdded (WId); - void windowRemoved (WId); - void activeWindowChanged (WId); - void desktopNamesChanged (); - void numberOfDesktopsChanged (int); - void systemTrayWindowAdded (WId); - void systemTrayWindowRemoved (WId); - void workAreaChanged (); - void strutChanged (); - void stackingOrderChanged (); - -%If ( KDE_3_2_0 - ) -//ig void windowChanged (WId, const ulong*); -%End - - void windowChanged (WId, uint); - void windowChanged (WId); - -protected: - -%If ( KDE_3_2_0 - ) - virtual void connectNotify (const char*); -%End - - -}; // class KWinModule - - - -%MappedType QValueList -//converts a Python list of WId -{ -%TypeHeaderCode -#include -#include -%End - -%ConvertFromTypeCode - if (!sipCpp) - return PyList_New(0); - - // Create the list - PyObject *pylist; - if ((pylist = PyList_New(0)) == NULL) - return NULL; - - QValueList *cpplist = (QValueList *)sipCpp; - - // Get it. - QValueList::Iterator it; - for( it = cpplist->begin(); it != cpplist->end(); ++it ) - { - WId cpp = *it; - if (PyList_Append (pylist, PyInt_FromLong ((int) cpp)) < 0) - { - Py_DECREF (pylist); - return NULL; - } - } - - return pylist; -%End - - -%ConvertToTypeCode - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - QValueList *cpplist = new QValueList; - - PyObject *elem; - WId cpp; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - elem = PyList_GET_ITEM (sipPy, i); - cpp = (WId) PyInt_AS_LONG (elem); - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - diff --git a/sip/kdecore/kxmessages.sip b/sip/kdecore/kxmessages.sip deleted file mode 100644 index 68fa9bf..0000000 --- a/sip/kdecore/kxmessages.sip +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright 2003 Jim Bublitz -// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE_3_1_0 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KXMessages : QWidget -{ -%TypeHeaderCode -#include -#include -%End - -public: - KXMessages (const char* = 0, QWidget*/TransferThis/ = 0); - void sendMessage (WId, const char*, const QString&); - void broadcastMessage (const char*, const QString&); -//ig static bool sendMessageX (Display*, WId, const char*, const QString&); -//ig static bool broadcastMessageX (Display*, const char*, const QString&); - -signals: - void gotMessage (const QString&); - -protected: -//ig virtual bool x11Event (XEvent*); - -protected: - -%If ( - KDE_3_0_1 ) -//ig static void send_message_internal (WId, const QString&, long, Display*, Atom, Window); -%End - - -}; // class KXMessages - diff --git a/sip/kdecore/netwm.sip b/sip/kdecore/netwm.sip deleted file mode 100644 index a4f02df..0000000 --- a/sip/kdecore/netwm.sip +++ /dev/null @@ -1,628 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class NETRootInfo : NET -{ -%TypeHeaderCode -#include -%End - - -public: - -%If ( KDE_3_2_0 - ) - - enum - { - PROTOCOLS, - WINDOW_TYPES, - STATES, - PROTOCOLS2, - ACTIONS, - PROPERTIES_SIZE - }; - - NETRootInfo (Window, const char*, SIP_PYLIST, int = -1, bool = 1) [(Display*, Window, const char*, const ulong*, int, int = -1, bool = 1)]; -%MethodCode -//takes supportWindow | (Window) | wmName | (a Python string) | properties | (a Python list) | screen | (int = -1) | doActivate | (bool = True) - int count = PyList_Size (a2); - unsigned long *list = new unsigned long [count]; - - for (int i = 0; i < count; i++) - list [i] = (unsigned long)PyInt_AS_LONG (PyList_GET_ITEM (a2, i)); - - Py_BEGIN_ALLOW_THREADS - Display *d = qt_xdisplay (); - sipCpp = new sipNETRootInfo (d, a0, a1, list, count, a3, a4); - Py_END_ALLOW_THREADS - - delete list; -%End - -%End - - NETRootInfo (Window, const char*, ulong, int = -1, bool = 1) [(Display*, Window, const char*, ulong, int = -1, bool = 1)]; -%MethodCode -//takes supportWindow | (Window) | wmName | (a Python string) | properties | (ulong) | screen | (int = -1) | doActivate | (bool = 1) - - Py_BEGIN_ALLOW_THREADS - Display *d = qt_xdisplay (); - sipCpp = new sipNETRootInfo (d, a0, a1, a2, a3, a4); - Py_END_ALLOW_THREADS -%End - - -%If ( KDE_3_2_0 - ) - NETRootInfo (SIP_PYLIST, int = -1, bool = 1) [(Display*, const ulong*, int, int = -1, bool = 1)]; -%MethodCode -//takes properties | (ulong) | screen | (int = -1) | doActivate | (bool = 1) - int count = PyList_Size (a0); - unsigned long *list = new unsigned long [count]; - - for (int i = 0; i < count; i++) - list [i] = (unsigned long)PyInt_AS_LONG (PyList_GET_ITEM (a2, i)); - - Py_BEGIN_ALLOW_THREADS - Display *d = qt_xdisplay (); - sipCpp = new sipNETRootInfo (d, list, count, a1, a2); - Py_END_ALLOW_THREADS - - delete list; -%End - -%End - - NETRootInfo (ulong, int = -1, bool = 1) [(Display*, ulong, int = -1, bool = 1)]; -%MethodCode -//takes properties | (ulong) | screen | (int = -1) | doActivate | (bool = 1) - - Py_BEGIN_ALLOW_THREADS - Display *d = qt_xdisplay (); - sipCpp = new sipNETRootInfo (d, a0, a1, a2); - Py_END_ALLOW_THREADS -%End - - NETRootInfo (const NETRootInfo&); - Display* x11Display () const; - Window rootWindow () const; - Window supportWindow () const; - const char* wmName () const; - int screenNumber () const; - -%If ( KDE_3_2_0 - ) - bool isSupported (NET::Property) const; - bool isSupported (NET::Property2) const; - bool isSupported (NET::WindowType) const; - bool isSupported (NET::State) const; - bool isSupported (NET::Action) const; - SIP_PYLIST supportedProperties () const [ulong* ()]; -%MethodCode -//returns a Python list of ulong - int count = 5; - const ulong *props; - Py_BEGIN_ALLOW_THREADS - props = sipCpp->supportedProperties (); - Py_END_ALLOW_THREADS - - for (int i = 0; i < count; i++) - PyList_Append (sipRes, PyLong_FromUnsignedLong (props [i])); -%End - - SIP_PYLIST passedProperties () const [ulong* ()]; -%MethodCode -//returns a Python list of ulong - int count = 5; - const ulong *props; - Py_BEGIN_ALLOW_THREADS - props = sipCpp->passedProperties (); - Py_END_ALLOW_THREADS - - for (int i = 0; i < count; i++) - PyList_Append (sipRes, PyLong_FromUnsignedLong (props [i])); -%End - -%End - - ulong supported () const; - SIP_PYLIST clientList () const [Window* ()]; -%MethodCode -//returns a Python list of Window - int count = sipCpp->clientListCount (); - const Window *props; - Py_BEGIN_ALLOW_THREADS - props = sipCpp->clientList (); - Py_END_ALLOW_THREADS - - for (int i = 0; i < count; i++) - PyList_Append (sipRes, PyLong_FromUnsignedLong ((unsigned long)props [i])); -%End - - int clientListCount () const; - SIP_PYLIST clientListStacking () const [Window* ()]; -%MethodCode -//returns a Python list of Window - int count = sipCpp->clientListStackingCount (); - const Window *props; - Py_BEGIN_ALLOW_THREADS - props = sipCpp->clientListStacking (); - Py_END_ALLOW_THREADS - - for (int i = 0; i < count; i++) - PyList_Append (sipRes, PyLong_FromUnsignedLong ((unsigned long)props [i])); -%End - - int clientListStackingCount () const; - SIP_PYLIST kdeSystemTrayWindows () const [Window* ()]; -%MethodCode -//returns a Python list of Window - int count = sipCpp->kdeSystemTrayWindowsCount (); - const Window *props; - Py_BEGIN_ALLOW_THREADS - props = sipCpp->kdeSystemTrayWindows (); - Py_END_ALLOW_THREADS - - for (int i = 0; i < count; i++) - PyList_Append (sipRes, PyLong_FromUnsignedLong ((unsigned long)props [i])); -%End - - int kdeSystemTrayWindowsCount () const; - NETSize desktopGeometry (int) const; - NETPoint desktopViewport (int) const; - NETRect workArea (int) const; - const char* desktopName (int) const; - SIP_PYLIST virtualRoots () const [Window* ()]; -%MethodCode -//returns a Python list of Window - int count = sipCpp->virtualRootsCount (); - const Window *props; - Py_BEGIN_ALLOW_THREADS - props = sipCpp->virtualRoots (); - Py_END_ALLOW_THREADS - - for (int i = 0; i < count; i++) - PyList_Append (sipRes, PyLong_FromUnsignedLong ((unsigned long)props [i])); -%End - - int virtualRootsCount () const; - int numberOfDesktops () const; - int currentDesktop () const; - Window activeWindow () const; - void activate (); - void setClientList (SIP_PYLIST) [void (Window*, uint)]; -%MethodCode -//takes windows | (a Python list of Window) - - int n = PyList_Size (a0); - Window array [n]; - PyObject *elem; - - for (int i = 0; i < n; i++) - { - elem = PyList_GetItem (a0, i); - if (!PyLong_Check (elem)) - return NULL; - - array [i] = (Window) PyLong_AsUnsignedLong (elem); - } - - Py_BEGIN_ALLOW_THREADS - sipCpp->setClientList (array, n); - Py_END_ALLOW_THREADS -%End - - void setClientListStacking (SIP_PYLIST) [void (Window*, uint)]; -%MethodCode -//takes windows | (a Python list of Window) - - int n = PyList_Size (a0); - Window array [n]; - PyObject *elem; - - for (int i = 0; i < n; i++) - { - elem = PyList_GetItem (a0, i); - if (!PyLong_Check (elem)) - return NULL; - - array [i] = (Window) PyLong_AsUnsignedLong (elem); - } - - Py_BEGIN_ALLOW_THREADS - sipCpp->setClientListStacking (array, n); - Py_END_ALLOW_THREADS -%End - - void setKDESystemTrayWindows (SIP_PYLIST) [void (Window*, uint)]; -%MethodCode -//takes windows | (a Python list of Window) - - int n = PyList_Size (a0); - Window array [n]; - PyObject *elem; - - for (int i = 0; i < n; i++) - { - elem = PyList_GetItem (a0, i); - if (!PyLong_Check (elem)) - return NULL; - - array [i] = (Window) PyLong_AsUnsignedLong (elem); - } - - Py_BEGIN_ALLOW_THREADS - sipCpp->setKDESystemTrayWindows (array, n); - Py_END_ALLOW_THREADS -%End - - void setCurrentDesktop (int); - void setDesktopGeometry (int, const NETSize&); - void setDesktopViewport (int, const NETPoint&); - void setNumberOfDesktops (int); - void setDesktopName (int, const char*); - -%If ( KDE_3_2_0 - ) - void setActiveWindow (Window, NET::RequestSource, Time, Window); -%End - - void setActiveWindow (Window); - void setWorkArea (int, const NETRect&); - void setVirtualRoots (SIP_PYLIST) [void (Window*, uint)]; -%MethodCode -//takes windows | (a Python list of Window) - int n = PyList_Size (a0); - - Window array [n]; - PyObject *elem; - - for (int i = 0; i < n; i++) - { - elem = PyList_GetItem (a0, i); - if (!PyLong_Check (elem)) - return NULL; - - array [i] = (Window) PyLong_AsUnsignedLong (elem); - } - - Py_BEGIN_ALLOW_THREADS - sipCpp->setVirtualRoots (array, n); - Py_END_ALLOW_THREADS -%End - - -%If ( KDE_3_5_0 - ) - void setShowingDesktop (bool); - bool showingDesktop () const; -%End - - void closeWindowRequest (Window); - void moveResizeRequest (Window, int, int, Direction); - -%If ( KDE_3_2_0 - ) - void moveResizeWindowRequest (Window, int, int, int, int, int); - -%If ( KDE_3_3_0 - ) - void restackRequest (Window, RequestSource, Window, int, Time); -%End - - void restackRequest (Window, Window, int); -//ig void event (XEvent*, ulong*, int); -%End - -//ig ulong event (XEvent*); - -protected: - virtual void addClient (Window); - virtual void removeClient (Window); - virtual void addSystemTrayWin (Window); - virtual void removeSystemTrayWin (Window); - virtual void changeNumberOfDesktops (int); - virtual void changeDesktopGeometry (int, const NETSize&); - virtual void changeDesktopViewport (int, const NETPoint&); - virtual void changeCurrentDesktop (int); - virtual void changeActiveWindow (Window); - virtual void closeWindow (Window); - virtual void moveResize (Window, int, int, ulong); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class NETRootInfo - - -%If ( KDE_3_2_0 - ) - -class NETRootInfo2 : NETRootInfo -{ -%TypeHeaderCode -#include -%End - - -public: - NETRootInfo2 (Window, const char*, SIP_PYLIST, int = -1, bool = 1) [(Display*, Window, const char*, ulong*, int, int = -1, bool = 1)]; -%MethodCode -//takes window | (Window) | rootWindow | (Window) | properties | (ulong) | role | (int) | a3 | (Role = Client) - int count = PyList_Size (a2); - unsigned long *list = new unsigned long [count]; - - for (int i = 0; i < count; i++) - list [i] = (unsigned long)PyInt_AS_LONG (PyList_GET_ITEM (a2, i)); - - Py_BEGIN_ALLOW_THREADS - Display *d = qt_xdisplay (); - sipCpp = new sipNETRootInfo2 (d, a0, a1, list, count, a3, a4); - Py_END_ALLOW_THREADS - - delete list; -%End - -//ig NETRootInfo2 (Display*, const ulong*, int, int = -1, bool = 1); - void sendPing (Window, Time); - -protected: - virtual void gotPing (Window, Time); - virtual void changeActiveWindow (Window, NET::RequestSource, Time, Window); - virtual void restackWindow (Window, Window, int); - virtual void moveResizeWindow (Window, int, int, int, int, int); - -}; // class NETRootInfo2 - -%End - - -%If ( KDE_3_3_0 - ) - -class NETRootInfo3 : NETRootInfo2 -{ -%TypeHeaderCode -#include -%End - - -public: - NETRootInfo3 (Window, const char*, SIP_PYLIST, int = -1, bool = 1) [(Display*, Window, const char*, ulong*, int, int = -1, bool = 1)]; -%MethodCode -//takes window | (Window) | rootWindow | (Window) | properties | (ulong) | role | (int) | a3 | (Role = Client) - int count = PyList_Size (a2); - unsigned long *list = new unsigned long [count]; - - for (int i = 0; i < count; i++) - list [i] = (unsigned long)PyInt_AS_LONG (PyList_GET_ITEM (a2, i)); - - Py_BEGIN_ALLOW_THREADS - Display *d = qt_xdisplay (); - sipCpp = new sipNETRootInfo3 (d, a0, a1, list, count, a3, a4); - Py_END_ALLOW_THREADS - - delete list; -%End - -//ig NETRootInfo3 (Display*, const ulong*, int, int = -1, bool = 1); - void takeActivity (Window, Time, long); - -protected: - virtual void restackWindow (Window, RequestSource, Window, int, Time); - virtual void gotTakeActivity (Window, Time, long); - -}; // class NETRootInfo3 - -%End - - -%If ( KDE_3_5_0 - ) - -class NETRootInfo4 : NETRootInfo3 -{ -%TypeHeaderCode -#include -%End - - -public: - NETRootInfo4 (Window, const char*, SIP_PYLIST, int = -1, bool = 1) [(Display*, Window, const char*, ulong*, int, int = -1, bool = 1)]; -%MethodCode -//takes window | (Window) | rootWindow | (Window) | properties | (ulong) | role | (int) | a3 | (Role = Client) - int count = PyList_Size (a2); - unsigned long *list = new unsigned long [count]; - - for (int i = 0; i < count; i++) - list [i] = (unsigned long)PyInt_AS_LONG (PyList_GET_ITEM (a2, i)); - - Py_BEGIN_ALLOW_THREADS - Display *d = qt_xdisplay (); - sipCpp = new sipNETRootInfo4 (d, a0, a1, list, count, a3, a4); - Py_END_ALLOW_THREADS - - delete list; -%End - -//ig NETRootInfo4 (Display*, const ulong*, int, int = -1, bool = 1); - -protected: - virtual void changeShowingDesktop (bool); - -}; // class NETRootInfo4 - -%End - - -class NETWinInfo : NET -{ -%TypeHeaderCode -#include -%End - - -public: - -%If ( KDE_3_2_0 - ) - - enum - { - PROTOCOLS, - PROTOCOLS2, - PROPERTIES_SIZE - }; - - NETWinInfo (Window, Window, SIP_PYLIST, Role = Client ) [(Display*, Window, Window, const ulong*, int, Role = Client )]; -%MethodCode -//takes window | (Window) | rootWindow | (Window) | properties | (ulong) | role | (int) | a3 | (Role = Client) - int count = PyList_Size (a2); - unsigned long *list = new unsigned long [count]; - - for (int i = 0; i < count; i++) - list [i] = (unsigned long)PyInt_AS_LONG (PyList_GET_ITEM (a2, i)); - - Py_BEGIN_ALLOW_THREADS - Display *d = qt_xdisplay (); - sipCpp = new sipNETWinInfo (d, a0, a1, list, count, a3); - Py_END_ALLOW_THREADS - - delete list; -%End - -%End - - NETWinInfo (Window, Window, ulong, Role = Client ) [(Display*, Window, Window, ulong, Role = Client )]; -%MethodCode -//returns () -//takes window (Window) | rootWindow (Window) | properties (ulong) | role (Role = Client) - - Py_BEGIN_ALLOW_THREADS - Display *d = qt_xdisplay (); - sipCpp = new sipNETWinInfo (d, a0, a1, a2, a3); - Py_END_ALLOW_THREADS -%End - - NETWinInfo (const NETWinInfo&); - -%If ( KDE_3_2_0 - ) - bool hasNETSupport () const; - SIP_PYLIST passedProperties () const [ulong* ()]; -%MethodCode -//returns a Python list of ulong - int count = 2; - const ulong *props; - Py_BEGIN_ALLOW_THREADS - props = sipCpp->passedProperties (); - Py_END_ALLOW_THREADS - - for (int i = 0; i < count; i++) - PyList_Append (sipRes, PyLong_FromUnsignedLong (props [i])); -%End - -%End - - ulong properties () const; - NETRect iconGeometry () const; - ulong state () const; - -%If ( KDE_3_3_0 - ) - NETExtendedStrut extendedStrut () const; -%End - - NETStrut strut () const; - -%If ( KDE_3_2_0 - ) - WindowType windowType (ulong) const; -%End - - WindowType windowType () const; - const char* name () const; - const char* visibleName () const; - const char* iconName () const; - const char* visibleIconName () const; - int desktop () const; - int pid () const; - Bool handledIcons () const; - Window kdeSystemTrayWinFor () const; - MappingState mappingState () const; -//ig void setIcon (NETIcon, Bool = True); - void setIconGeometry (NETRect); - -%If ( KDE_3_3_0 - ) - void setExtendedStrut (const NETExtendedStrut&); -%End - - void setStrut (NETStrut); - void setState (ulong, ulong); - void setWindowType (WindowType); - void setName (const char*); - void setVisibleName (const char*); - void setIconName (const char*); - void setVisibleIconName (const char*); - void setDesktop (int); - void setPid (int); - void setHandledIcons (Bool); - void setKDESystemTrayWinFor (Window); - -%If ( KDE_3_5_0 - ) - void setFrameExtents (NETStrut); -%End - - void setKDEFrameStrut (NETStrut); -//ig NETIcon icon (int = -1, int = -1) const; - -%If ( KDE_3_2_0 - ) - void setUserTime (Time); - Time userTime () const; - void setStartupId (const char*); - const char* startupId () const; - void setAllowedActions (ulong); - ulong allowedActions () const; - Window transientFor () const; - Window groupLeader () const; - -%If ( KDE_3_3_0 - ) - const char* windowClassClass () const; - const char* windowClassName () const; - const char* windowRole () const; - const char* clientMachine () const; -%End - -%End - - void kdeGeometry (NETRect&, NETRect&); - -%If ( KDE_3_2_0 - ) -//ig void event (XEvent*, ulong*, int); -%End - -//ig ulong event (XEvent*); -//ig const int OnAllDesktops; - -protected: - virtual void changeDesktop (int); - virtual void changeState (ulong, ulong); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class NETWinInfo - -//force -typedef ulong Time; -//end diff --git a/sip/kdecore/netwm_def.sip b/sip/kdecore/netwm_def.sip deleted file mode 100644 index f203ea1..0000000 --- a/sip/kdecore/netwm_def.sip +++ /dev/null @@ -1,535 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class NETPoint -{ -%TypeHeaderCode -#include -%End - - -public: - NETPoint (); - int x; - int y; - -}; // class NETPoint - - -class NETSize -{ -%TypeHeaderCode -#include -%End - - -public: - NETSize (); - int width; - int height; - -}; // class NETSize - - -class NETRect -{ -%TypeHeaderCode -#include -%End - - -public: - NETPoint pos; - NETSize size; - -}; // class NETRect - - -class NETIcon -{ -%TypeHeaderCode -#include -%End - - -public: - NETIcon (); - NETSize size; -//ig uchar* data; - -}; // class NETIcon - - -%If ( KDE_3_3_0 - ) - -class NETExtendedStrut -{ -%TypeHeaderCode -#include -%End - - -public: - NETExtendedStrut (); - int left_width; - int left_start; - int left_end; - int right_width; - int right_start; - int right_end; - int top_width; - int top_start; - int top_end; - int bottom_width; - int bottom_start; - int bottom_end; - -}; // class NETExtendedStrut - -%End - - -class NETStrut -{ -%TypeHeaderCode -#include -%End - - -public: - NETStrut (); - int left; - int right; - int top; - int bottom; - -}; // class NETStrut - - -class NET -{ -%TypeHeaderCode -#include -%End - - -public: - - enum Role - { - Client, - WindowManager - }; - - -%If ( KDE_3_2_0 - ) - - enum WindowType - { - Unknown, - Normal, - Desktop, - Dock, - Toolbar, - Menu, - Dialog, - Override, - TopMenu, - Tool, - Utility, - Splash - }; - - - enum WindowTypeMask - { - NormalMask, - DesktopMask, - DockMask, - ToolbarMask, - MenuMask, - DialogMask, - OverrideMask, - TopMenuMask, - UtilityMask, - SplashMask - }; - - -%If ( KDE_3_3_1 - ) - - enum - { - AllTypesMask - }; - -%End - - -%If ( KDE_3_3_0 - ) - static bool typeMatchesMask (NET::WindowType, ulong); -%End - - - enum State - { - Modal, - Sticky, - MaxVert, - MaxHoriz, - Max, - Shaded, - SkipTaskbar, - KeepAbove, - StaysOnTop, - SkipPager, - Hidden, - FullScreen, - KeepBelow, - DemandsAttention - }; - - -%If ( KDE_3_5_1 - ) - - enum Direction - { - TopLeft, - Top, - TopRight, - Right, - BottomRight, - Bottom, - BottomLeft, - Left, - Move, - KeyboardSize, - KeyboardMove, - MoveResizeCancel - }; - -%End - -%End - - - enum MappingState - { - Visible, - Withdrawn, - Iconic - }; - - -%If ( KDE_3_2_0 - ) - - enum Action - { - ActionMove, - ActionResize, - ActionMinimize, - ActionShade, - ActionStick, - ActionMaxVert, - ActionMaxHoriz, - ActionMax, - ActionFullScreen, - ActionChangeDesktop, - ActionClose - }; - - -%If ( KDE_3_5_0 - ) - - enum Property - { - Supported, - ClientList, - ClientListStacking, - NumberOfDesktops, - DesktopGeometry, - DesktopViewport, - CurrentDesktop, - DesktopNames, - ActiveWindow, - WorkArea, - SupportingWMCheck, - VirtualRoots, - KDESystemTrayWindows, - CloseWindow, - WMMoveResize, - WMName, - WMVisibleName, - WMDesktop, - WMWindowType, - WMState, - WMStrut, - WMIconGeometry, - WMIcon, - WMPid, - WMHandledIcons, - WMPing, - WMKDESystemTrayWinFor, - XAWMState, - WMFrameExtents, - WMKDEFrameStrut, - WMIconName, - WMVisibleIconName, - WMGeometry - }; - -%End - - - enum - { - OnAllDesktops - }; - - - enum RequestSource - { - FromUnknown, - FromApplication, - FromTool - }; - - -%If ( KDE_3_5_3 - ) - static int timestampCompare (ulong, ulong); - static int timestampDiff (ulong, ulong); -%End - -%End - - -public: - -%If ( KDE_3_2_0 - KDE_3_5_1 ) - - enum Direction - { - TopLeft, - Top, - TopRight, - Right, - BottomRight, - Bottom, - BottomLeft, - Left, - Move, - KeyboardSize, - KeyboardMove - }; - -%End - - -public: - -%If ( - KDE_3_5_0 ) - - enum Property - { - Supported, - ClientList, - ClientListStacking, - NumberOfDesktops, - DesktopGeometry, - DesktopViewport, - CurrentDesktop, - DesktopNames, - ActiveWindow, - WorkArea, - SupportingWMCheck, - VirtualRoots, - KDESystemTrayWindows, - CloseWindow, - WMMoveResize, - WMName, - WMVisibleName, - WMDesktop, - WMWindowType, - WMState, - WMStrut, - WMIconGeometry, - WMIcon, - WMPid, - WMHandledIcons, - WMPing, - WMKDESystemTrayWinFor, - XAWMState, - WMKDEFrameStrut, - WMIconName, - WMVisibleIconName, - WMGeometry - }; - -%End - - -%If ( KDE_3_3_1 - ) - - enum Property2 - { - WM2UserTime, - WM2StartupId, - WM2TransientFor, - WM2GroupLeader, - WM2AllowedActions, - WM2RestackWindow, - WM2MoveResizeWindow, - WM2ExtendedStrut, - WM2TakeActivity, - WM2KDETemporaryRules, - WM2WindowClass, - WM2WindowRole, - WM2ClientMachine - }; - -%End - - -public: - -%If ( KDE_3_3_0 - KDE_3_3_1 ) - - enum - { - AllTypesMask - }; - - - enum Property2 - { - WM2UserTime, - WM2StartupId, - WM2TransientFor, - WM2GroupLeader, - WM2AllowedActions, - WM2RestackWindow, - WM2MoveResizeWindow, - WM2ExtendedStrut, - WM2TakeActivity, - WM2KDETemporaryRules - }; - -%End - - -public: - -%If ( KDE_3_2_0 - KDE_3_3_0 ) - - enum Property2 - { - WM2UserTime, - WM2StartupId, - WM2TransientFor, - WM2GroupLeader, - WM2AllowedActions, - WM2RestackWindow, - WM2MoveResizeWindow - }; - -%End - - -public: - -%If ( KDE_3_1_0 - KDE_3_2_0 ) - - enum WindowType - { - Unknown, - Normal, - Desktop, - Dock, - Toolbar, - Menu, - Dialog, - Override, - TopMenu, - Tool - }; - -%End - - -%If ( - KDE_3_2_0 ) - - enum State - { - Modal, - Sticky, - MaxVert, - MaxHoriz, - Max, - Shaded, - SkipTaskbar, - StaysOnTop, - SkipPager - }; - - - enum Direction - { - TopLeft, - Top, - TopRight, - Right, - BottomRight, - Bottom, - BottomLeft, - Left, - Move - }; - -%End - - -public: - -%If ( - KDE_3_1_0 ) - - enum WindowType - { - Unknown, - Normal, - Desktop, - Dock, - Tool, - Menu, - Dialog, - Override, - Toolbar - }; - -%End - - -}; // class NET - diff --git a/sip/kdefx/kcpuinfo.sip b/sip/kdefx/kcpuinfo.sip deleted file mode 100644 index 12ce700..0000000 --- a/sip/kdefx/kcpuinfo.sip +++ /dev/null @@ -1,52 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdefx version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_2_0 - ) - -class KCPUInfo -{ -%TypeHeaderCode -#include -%End - - -public: - - enum Extensions - { - IntelMMX, - IntelSSE, - IntelSSE2, - AMD3DNOW, - AltiVec - }; - - static bool haveExtension (uint); - -}; // class KCPUInfo - -%End - diff --git a/sip/kdefx/kdefx-kde320.diff b/sip/kdefx/kdefx-kde320.diff deleted file mode 100644 index 147a7f5..0000000 --- a/sip/kdefx/kdefx-kde320.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde321.diff b/sip/kdefx/kdefx-kde321.diff deleted file mode 100644 index 147a7f5..0000000 --- a/sip/kdefx/kdefx-kde321.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde322.diff b/sip/kdefx/kdefx-kde322.diff deleted file mode 100644 index 147a7f5..0000000 --- a/sip/kdefx/kdefx-kde322.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde323.diff b/sip/kdefx/kdefx-kde323.diff deleted file mode 100644 index 147a7f5..0000000 --- a/sip/kdefx/kdefx-kde323.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde330.diff b/sip/kdefx/kdefx-kde330.diff deleted file mode 100644 index 147a7f5..0000000 --- a/sip/kdefx/kdefx-kde330.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde331.diff b/sip/kdefx/kdefx-kde331.diff deleted file mode 100644 index 147a7f5..0000000 --- a/sip/kdefx/kdefx-kde331.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde332.diff b/sip/kdefx/kdefx-kde332.diff deleted file mode 100644 index 147a7f5..0000000 --- a/sip/kdefx/kdefx-kde332.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde340.diff b/sip/kdefx/kdefx-kde340.diff deleted file mode 100644 index 147a7f5..0000000 --- a/sip/kdefx/kdefx-kde340.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde341.diff b/sip/kdefx/kdefx-kde341.diff deleted file mode 100644 index 147a7f5..0000000 --- a/sip/kdefx/kdefx-kde341.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde342.diff b/sip/kdefx/kdefx-kde342.diff deleted file mode 100644 index 147a7f5..0000000 --- a/sip/kdefx/kdefx-kde342.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde343.diff b/sip/kdefx/kdefx-kde343.diff deleted file mode 100644 index 147a7f5..0000000 --- a/sip/kdefx/kdefx-kde343.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde350.diff b/sip/kdefx/kdefx-kde350.diff deleted file mode 100644 index 147a7f5..0000000 --- a/sip/kdefx/kdefx-kde350.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde351.diff b/sip/kdefx/kdefx-kde351.diff deleted file mode 100644 index 147a7f5..0000000 --- a/sip/kdefx/kdefx-kde351.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde352.diff b/sip/kdefx/kdefx-kde352.diff deleted file mode 100644 index 147a7f5..0000000 --- a/sip/kdefx/kdefx-kde352.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde353.diff b/sip/kdefx/kdefx-kde353.diff deleted file mode 100644 index 147a7f5..0000000 --- a/sip/kdefx/kdefx-kde353.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefxmod.sip.in b/sip/kdefx/kdefxmod.sip.in deleted file mode 100644 index 27a3ade..0000000 --- a/sip/kdefx/kdefxmod.sip.in +++ /dev/null @@ -1,41 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdefx version KDE_3_5_2 - -%Copying - - This software is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License as - published by the Free Software Foundation; either version 2 of - the License, or (at your option) any later version. - - This software is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public - License along with this library; see the file COPYING. - If not, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -%End - -%Module tdefx - -%Import qt/qtmod.sip -%Import dcopmod.sip -%Import tdecoremod.sip - -%Include kdrawutil.sip -%Include kimageeffect.sip -%Include kpixmap.sip -%Include kpixmapeffect.sip -%Include kpixmapsplitter.sip -%Include kstyle.sip -@mark@ diff --git a/sip/kdefx/kdrawutil.sip b/sip/kdefx/kdrawutil.sip deleted file mode 100644 index b6abad9..0000000 --- a/sip/kdefx/kdrawutil.sip +++ /dev/null @@ -1,39 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdefx version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -%ModuleHeaderCode -#include -%End - -void kDrawNextButton (QPainter*, const QRect&, const QColorGroup&, bool = 0, const QBrush* = 0); -void kDrawNextButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, const QBrush* = 0); -void kDrawBeButton (QPainter*, QRect&, const QColorGroup&, bool = 0, const QBrush* = 0); -void kDrawBeButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, const QBrush* = 0); -void kDrawRoundButton (QPainter*, const QRect&, const QColorGroup&, bool = 0); -void kDrawRoundButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0); -void kRoundMaskRegion (QRegion&, int, int, int, int); -void kDrawRoundMask (QPainter*, int, int, int, int, bool = 0); -void kColorBitmaps (QPainter*, const QColorGroup&, int, int, QBitmap* = 0, QBitmap* = 0, QBitmap* = 0, QBitmap* = 0, QBitmap* = 0, QBitmap* = 0); -void kColorBitmaps (QPainter*, const QColorGroup&, int, int, int, int, bool = 1, const uchar* = 0, const uchar* = 0, const uchar* = 0, const uchar* = 0, const uchar* = 0, const uchar* = 0); diff --git a/sip/kdefx/kimageeffect.sip b/sip/kdefx/kimageeffect.sip deleted file mode 100644 index 6e332f6..0000000 --- a/sip/kdefx/kimageeffect.sip +++ /dev/null @@ -1,205 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdefx version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KImageEffect -{ -%TypeHeaderCode -#include -%End - - -public: - - enum GradientType - { - VerticalGradient, - HorizontalGradient, - DiagonalGradient, - CrossDiagonalGradient, - PyramidGradient, - RectangleGradient, - PipeCrossGradient, - EllipticGradient - }; - - - enum RGBComponent - { - Red, - Green, - Blue, - Gray, - All - }; - - - enum Lighting - { - NorthLite, - NWLite, - WestLite, - SWLite, - SouthLite, - SELite, - EastLite, - NELite - }; - - - enum ModulationType - { - Intensity, - Saturation, - HueShift, - Contrast - }; - - - enum NoiseType - { - UniformNoise, - GaussianNoise, - MultiplicativeGaussianNoise, - ImpulseNoise, - LaplacianNoise, - PoissonNoise - }; - - - enum RotateDirection - { - Rotate90, - Rotate180, - Rotate270 - }; - - -%If ( KDE_3_3_0 - ) - - enum BumpmapType - { - Linear, - Spherical, - Sinuosidal - }; - -%End - - static QImage gradient (const QSize&, const QColor&, const QColor&, KImageEffect::GradientType, int = 3); - static QImage unbalancedGradient (const QSize&, const QColor&, const QColor&, KImageEffect::GradientType, int = 100, int = 100, int = 3); - static QImage& blend (const QColor&, QImage&, float); - static QImage& blend (QImage&, QImage&, float); - static QImage& blend (QImage&, float, const QColor&, KImageEffect::GradientType, bool = 0); - static QImage& blend (QImage&, QImage&, KImageEffect::GradientType, int = 100, int = 100); - static QImage& blend (QImage&, QImage&, QImage&, KImageEffect::RGBComponent); - static bool blend (const QImage&, const QImage&, QImage&); - static bool blend (int& /In, Out/, int& /In, Out/, const QImage&, const QImage&, QImage&); - static bool blendOnLower (int, int, const QImage&, const QImage&); - -%If ( KDE_3_2_0 - ) - static void blendOnLower (const QImage&, const QPoint&, QImage&, const QRect&); - static void blendOnLower (const QImage&, const QPoint&, QImage&, const QRect&, float); - - enum Disposition - { - NoImage, - Centered, - Tiled, - CenterTiled, - CenteredMaxpect, - TiledMaxpect, - Scaled, - CenteredAutoFit - }; - - static QRect computeDestinationRect (const QSize&, KImageEffect::Disposition, QImage&); - static void blendOnLower (QImage&, QImage&, KImageEffect::Disposition, float); -%End - - static QImage& channelIntensity (QImage&, float, KImageEffect::RGBComponent); - static QImage& fade (QImage&, float, const QColor&); - static QImage& flatten (QImage&, const QColor&, const QColor&, int = 0); - static QImage& hash (QImage&, KImageEffect::Lighting = NorthLite , uint = 0); - static QImage& intensity (QImage&, float); - static QImage& modulate (QImage&, QImage&, bool, KImageEffect::ModulationType, int, KImageEffect::RGBComponent); - static QImage& toGray (QImage&, bool = 0); - static QImage& desaturate (QImage&, float = 0.3); - static QImage& contrast (QImage&, int); -//ig static QImage& dither (QImage&, const QColor*, int); - static QImage& selectedImage (QImage&, const QColor&); - static void contrastHSV (QImage&, bool = 1); - static void normalize (QImage&); - static void equalize (QImage&); - static void threshold (QImage&, uint = 128); - static void solarize (QImage&, double = 50.0); - -%If ( KDE_3_2_0 - ) - static QImage emboss (QImage&, double, double); -%End - - static QImage emboss (QImage&); - static QImage despeckle (QImage&); - -%If ( KDE_3_2_0 - ) - static QImage charcoal (QImage&, double, double); -%End - - static QImage charcoal (QImage&, double = 50.0); - static QImage rotate (QImage&, KImageEffect::RotateDirection); - static QImage sample (QImage&, int, int); - static QImage addNoise (QImage&, KImageEffect::NoiseType = GaussianNoise ); - -%If ( KDE_3_2_0 - ) - static QImage blur (QImage&, double, double); -%End - - static QImage blur (QImage&, double = 50.0); - static QImage edge (QImage&, double = 50.0); - static QImage implode (QImage&, double = 30.0, uint = -1); - -%If ( KDE_3_2_0 - ) - static QImage oilPaintConvolve (QImage&, double); -%End - - static QImage oilPaint (QImage&, int = 3); - -%If ( KDE_3_2_0 - ) - static QImage sharpen (QImage&, double, double); -%End - - static QImage sharpen (QImage&, double = 30.0); - static QImage spread (QImage&, uint = 3); - static QImage shade (QImage&, bool = 1, double = 30.0, double = 30.0); - static QImage swirl (QImage&, double = 50.0, uint = -1); - static QImage wave (QImage&, double = 25.0, double = 150.0, uint = -1); - -%If ( KDE_3_3_0 - ) - static QImage bumpmap (QImage&, QImage&, double, double, int, int, int, int, int, bool, bool, KImageEffect::BumpmapType, bool); -%End - - -}; // class KImageEffect - diff --git a/sip/kdefx/kpixmap.sip b/sip/kdefx/kpixmap.sip deleted file mode 100644 index efb93dd..0000000 --- a/sip/kdefx/kpixmap.sip +++ /dev/null @@ -1,65 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdefx version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KPixmap : QPixmap -{ -%TypeHeaderCode -#include -#include -#include -%End - - -public: - - enum ColorMode - { - Auto, - Color, - Mono, - LowColor, - WebColor - }; - - - enum GradientMode - { - Horizontal, - Vertical, - Diagonal, - CrossDiagonal - }; - - KPixmap (); - KPixmap (const QPixmap&); - bool convertFromImage (const QImage&, int); - bool convertFromImage (const QImage&, ColorMode = WebColor ); - bool load (const QString&, const char*, int); - bool load (const QString&, const char* = 0, ColorMode = WebColor ); - bool checkColorTable (const QImage&); - -}; // class KPixmap - diff --git a/sip/kdefx/kpixmapeffect.sip b/sip/kdefx/kpixmapeffect.sip deleted file mode 100644 index 088e313..0000000 --- a/sip/kdefx/kpixmapeffect.sip +++ /dev/null @@ -1,85 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdefx version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KPixmapEffect -{ -%TypeHeaderCode -#include -%End - - -public: - - enum GradientType - { - VerticalGradient, - HorizontalGradient, - DiagonalGradient, - CrossDiagonalGradient, - PyramidGradient, - RectangleGradient, - PipeCrossGradient, - EllipticGradient - }; - - - enum RGBComponent - { - Red, - Green, - Blue - }; - - - enum Lighting - { - NorthLite, - NWLite, - WestLite, - SWLite, - SouthLite, - SELite, - EastLite, - NELite - }; - - static KPixmap& gradient (KPixmap&, const QColor&, const QColor&, KPixmapEffect::GradientType, int = 3); - static KPixmap& unbalancedGradient (KPixmap&, const QColor&, const QColor&, KPixmapEffect::GradientType, int = 100, int = 100, int = 3); - static KPixmap createTiled (const KPixmap&, QSize); - static KPixmap& intensity (KPixmap&, float); - static KPixmap& channelIntensity (KPixmap&, float, KPixmapEffect::RGBComponent); - static KPixmap& blend (KPixmap&, float, const QColor&, KPixmapEffect::GradientType, bool = 0, int = 3); - static KPixmap& hash (KPixmap&, KPixmapEffect::Lighting = NorthLite , uint = 0, int = 3); - static KPixmap pattern (const KPixmap&, QSize, const QColor&, const QColor&, int = 8); - static KPixmap& fade (KPixmap&, double, const QColor&); - static KPixmap& toGray (KPixmap&, bool = 0); - static KPixmap& desaturate (KPixmap&, float = 0.3); - static KPixmap& contrast (KPixmap&, int); - static KPixmap& dither (KPixmap&, const QColor*, int); - static KPixmap selectedPixmap (const KPixmap&, const QColor&); - -}; // class KPixmapEffect - diff --git a/sip/kdefx/kpixmapsplitter.sip b/sip/kdefx/kpixmapsplitter.sip deleted file mode 100644 index 7ff49b3..0000000 --- a/sip/kdefx/kpixmapsplitter.sip +++ /dev/null @@ -1,46 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdefx version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KPixmapSplitter -{ -%TypeHeaderCode -#include -%End - - -public: - KPixmapSplitter (); - void setPixmap (const QPixmap&); - const QPixmap& pixmap () const; - void setItemSize (const QSize&); - QSize itemSize () const; - void setVSpacing (int); - void setHSpacing (int); - QRect coordinates (int); - QRect coordinates (const QChar&); - -}; // class KPixmapSplitter - diff --git a/sip/kdefx/kstyle.sip b/sip/kdefx/kstyle.sip deleted file mode 100644 index b559f6a..0000000 --- a/sip/kdefx/kstyle.sip +++ /dev/null @@ -1,126 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdefx version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KStyle : QCommonStyle -{ -%TypeHeaderCode -#include -%End - - -public: - typedef uint KStyleFlags; - - enum KStyleOption - { - Default, - AllowMenuTransparency, - FilledFrameWorkaround - }; - - - enum KStyleScrollBarType - { - WindowsStyleScrollBar, - PlatinumStyleScrollBar, - ThreeButtonScrollBar, - NextStyleScrollBar - }; - - KStyle (KStyle::KStyleFlags = KStyle ::Default , KStyle::KStyleScrollBarType = KStyle ::WindowsStyleScrollBar ); - -%If ( KDE_3_1_0 - ) - static QString defaultStyle (); -%End - - void setScrollBarType (KStyle::KStyleScrollBarType); - KStyle::KStyleFlags styleFlags () const; - virtual void renderMenuBlendPixmap (KPixmap&, const QColorGroup&, const QPopupMenu*) const; - - enum KStylePrimitive - { - KPE_DockWindowHandle, - KPE_ToolBarHandle, - KPE_GeneralHandle, - KPE_SliderGroove, - KPE_SliderHandle, - KPE_ListViewExpander, - KPE_ListViewBranch - }; - - virtual void drawKStylePrimitive (KStyle::KStylePrimitive, QPainter*, const QWidget*, const QRect&, const QColorGroup&, SFlags = Style_Default , const QStyleOption& = QStyleOption (QStyleOption ::Default )) const; - - enum KStylePixelMetric - { - KPM_MenuItemSeparatorHeight, - KPM_MenuItemHMargin, - KPM_MenuItemVMargin, - KPM_MenuItemHFrame, - KPM_MenuItemVFrame, - KPM_MenuItemCheckMarkHMargin, - KPM_MenuItemArrowHMargin, - KPM_MenuItemTabSpacing, - KPM_ListViewBranchThickness - }; - - int kPixelMetric (KStyle::KStylePixelMetric, const QWidget* = 0) const; - void polish (QWidget*); - void unPolish (QWidget*); - void polishPopupMenu (QPopupMenu*); - void drawPrimitive (PrimitiveElement, QPainter*, const QRect&, const QColorGroup&, SFlags = Style_Default , const QStyleOption& = QStyleOption (QStyleOption ::Default )) const; - void drawControl (ControlElement, QPainter*, const QWidget*, const QRect&, const QColorGroup&, SFlags = Style_Default , const QStyleOption& = QStyleOption (QStyleOption ::Default )) const; - void drawComplexControl (ComplexControl, QPainter*, const QWidget*, const QRect&, const QColorGroup&, SFlags = Style_Default , SCFlags = SC_All , SCFlags = SC_None , const QStyleOption& = QStyleOption (QStyleOption ::Default )) const; - SubControl querySubControl (ComplexControl, const QWidget*, const QPoint&, const QStyleOption& = QStyleOption (QStyleOption ::Default )) const; - QRect querySubControlMetrics (ComplexControl, const QWidget*, SubControl, const QStyleOption& = QStyleOption (QStyleOption ::Default )) const; - int pixelMetric (PixelMetric, const QWidget* = 0) const; - QRect subRect (SubRect, const QWidget*) const; - QPixmap stylePixmap (StylePixmap, const QWidget* = 0, const QStyleOption& = QStyleOption (QStyleOption ::Default )) const; - int styleHint (StyleHint, const QWidget* = 0, const QStyleOption& = QStyleOption (QStyleOption ::Default ), QStyleHintReturn* = 0) const; - -protected: - bool eventFilter (QObject*, QEvent*); - -private: - KStyle (const KStyle&); - -protected: -//igx virtual void virtual_hook (int, void*); - -//force -%ConvertToSubClassCode - // The table of Python class objects indexed by their names. The table - // must be sorted by name. - - static sipStringTypeClassMap map[] = { - {sipName_KStyle, &sipClass_KStyle}, - }; - - sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0])); -%End -//end - -}; // class KStyle - diff --git a/sip/kdeprint/driver.sip b/sip/kdeprint/driver.sip deleted file mode 100644 index 6b89860..0000000 --- a/sip/kdeprint/driver.sip +++ /dev/null @@ -1,338 +0,0 @@ -// -// Copyright 2005 Jim Bublitz -// Earlier copyrights 1998 - 2004 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeprint version KDE_3_4_0 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_1_0 - ) - -class DrBase -{ -%TypeHeaderCode -#include -%End - - -public: - - enum Type - { - Base, - Main, - ChoiceGroup, - Group, - String, - Integer, - Float, - List, - Boolean - }; - - DrBase (); - DrBase::Type type () const; - bool isOption () const; - const QString& get (const QString&) const; - void set (const QString&, const QString&); - bool has (const QString&) const; - const QString& name () const; - void setName (const QString&); - bool conflict () const; - void setConflict (bool); - virtual QString valueText (); - virtual QString prettyText (); - virtual void setValueText (const QString&); -//ig virtual DriverItem* createItem (DriverItem* /Transfer/, DriverItem* = 0); - virtual void setOptions (const QMap&); - virtual void getOptions (QMap&, bool = 0); - virtual DrBase* clone (); - -protected: - -}; // class DrBase - -%End - - -%If ( KDE_3_1_0 - ) - -class DrGroup : DrBase -{ -%TypeHeaderCode -#include -%End - - -public: - DrGroup (); - void addOption (DrBase*); - void addGroup (DrGroup*); - void addObject (DrBase*); - void clearConflict (); - void removeOption (const QString&); - void removeGroup (DrGroup*); - bool isEmpty (); -//ig virtual DriverItem* createItem (DriverItem* /Transfer/, DriverItem* = 0); -//ig DrBase* findOption (const QString&, DrGroup** = 0); -//ig DrGroup* findGroup (DrGroup*, DrGroup** = 0); - void setOptions (const QMap&); - void getOptions (QMap&, bool = 0); - DrBase* clone (); -//ig const QPtrList& groups (); -//ig const QPtrList& options (); - -%If ( KDE_3_2_0 - ) - static QString groupForOption (const QString&); -%End - - -protected: -//ig void createTree (DriverItem* /Transfer/); -//ig void flattenGroup (QMap&, int&); - -protected: - -}; // class DrGroup - -%End - - -%If ( KDE_3_1_0 - ) - -class DrMain : DrGroup -{ -%TypeHeaderCode -#include -%End - - -public: - DrMain (); -//ig DriverItem* createTreeView (QListView* /Transfer/); - void addConstraint (DrConstraint*); - int checkConstraints (); - DrPageSize* findPageSize (const QString&); - void addPageSize (DrPageSize*); - void removeOptionGlobally (const QString&); - void removeGroupGlobally (DrGroup*); -//ig QMap flatten (); - DrMain* cloneDriver (); - -protected: - -}; // class DrMain - -%End - - -%If ( KDE_3_1_0 - ) - -class DrChoiceGroup : DrGroup -{ -%TypeHeaderCode -#include -%End - - -public: - DrChoiceGroup (); -//ig DriverItem* createItem (DriverItem* /Transfer/, DriverItem* = 0); - -}; // class DrChoiceGroup - -%End - - -%If ( KDE_3_1_0 - ) - -class DrStringOption : DrBase -{ -%TypeHeaderCode -#include -%End - - -public: - DrStringOption (); - virtual QString valueText (); - virtual void setValueText (const QString&); - -protected: - -}; // class DrStringOption - -%End - - -%If ( KDE_3_1_0 - ) - -class DrIntegerOption : DrBase -{ -%TypeHeaderCode -#include -%End - - -public: - DrIntegerOption (); - virtual QString valueText (); - virtual void setValueText (const QString&); - QString fixedVal (); - -protected: - -}; // class DrIntegerOption - -%End - - -%If ( KDE_3_1_0 - ) - -class DrFloatOption : DrBase -{ -%TypeHeaderCode -#include -%End - - -public: - DrFloatOption (); - virtual QString valueText (); - virtual void setValueText (const QString&); - QString fixedVal (); - -protected: - -}; // class DrFloatOption - -%End - - -%If ( KDE_3_1_0 - ) - -class DrListOption : DrBase -{ -%TypeHeaderCode -#include -%End - - -public: - DrListOption (); - void addChoice (DrBase*); -//ig QPtrList* choices (); - DrBase* currentChoice () const; - DrBase* findChoice (const QString&); - void setChoice (int); - virtual QString valueText (); - virtual QString prettyText (); - virtual void setValueText (const QString&); - void setOptions (const QMap&); - void getOptions (QMap&, bool = 0); -//ig DriverItem* createItem (DriverItem* /Transfer/, DriverItem* = 0); - DrBase* clone (); - -protected: - -}; // class DrListOption - -%End - - -%If ( KDE_3_1_0 - ) - -class DrBooleanOption : DrListOption -{ -%TypeHeaderCode -#include -%End - - -public: - DrBooleanOption (); - -}; // class DrBooleanOption - -%End - - -%If ( KDE_3_1_0 - ) - -class DrConstraint -{ -%TypeHeaderCode -#include -%End - - -public: - DrConstraint (const QString&, const QString&, const QString& = QString ::null , const QString& = QString ::null ); - DrConstraint (const DrConstraint&); - bool check (DrMain*); - -protected: - -}; // class DrConstraint - -%End - - -%If ( KDE_3_1_0 - ) - -class DrPageSize -{ -%TypeHeaderCode -#include -%End - - -public: - DrPageSize (const QString&, int, int, int, int, int, int); - DrPageSize (const DrPageSize&); - -%If ( KDE_3_2_0 - ) - float pageWidth () const; - float pageHeight () const; - float leftMargin () const; - float rightMargin () const; - float topMargin () const; - float bottomMargin () const; - QString pageName () const; -%End - - QSize pageSize () const; - QRect pageRect () const; - QSize margins () const; - -protected: - -public: - -%If ( - KDE_3_2_0 ) - QString name () const; -%End - - -}; // class DrPageSize - -%End - diff --git a/sip/kdeprint/kdeprint-kde310.diff b/sip/kdeprint/kdeprint-kde310.diff deleted file mode 100644 index 705efd4..0000000 --- a/sip/kdeprint/kdeprint-kde310.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde311.diff b/sip/kdeprint/kdeprint-kde311.diff deleted file mode 100644 index 705efd4..0000000 --- a/sip/kdeprint/kdeprint-kde311.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde312.diff b/sip/kdeprint/kdeprint-kde312.diff deleted file mode 100644 index 705efd4..0000000 --- a/sip/kdeprint/kdeprint-kde312.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde313.diff b/sip/kdeprint/kdeprint-kde313.diff deleted file mode 100644 index 705efd4..0000000 --- a/sip/kdeprint/kdeprint-kde313.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde314.diff b/sip/kdeprint/kdeprint-kde314.diff deleted file mode 100644 index 705efd4..0000000 --- a/sip/kdeprint/kdeprint-kde314.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde315.diff b/sip/kdeprint/kdeprint-kde315.diff deleted file mode 100644 index 705efd4..0000000 --- a/sip/kdeprint/kdeprint-kde315.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde320.diff b/sip/kdeprint/kdeprint-kde320.diff deleted file mode 100644 index 705efd4..0000000 --- a/sip/kdeprint/kdeprint-kde320.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde321.diff b/sip/kdeprint/kdeprint-kde321.diff deleted file mode 100644 index 705efd4..0000000 --- a/sip/kdeprint/kdeprint-kde321.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde322.diff b/sip/kdeprint/kdeprint-kde322.diff deleted file mode 100644 index 705efd4..0000000 --- a/sip/kdeprint/kdeprint-kde322.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde323.diff b/sip/kdeprint/kdeprint-kde323.diff deleted file mode 100644 index 705efd4..0000000 --- a/sip/kdeprint/kdeprint-kde323.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde330.diff b/sip/kdeprint/kdeprint-kde330.diff deleted file mode 100644 index 705efd4..0000000 --- a/sip/kdeprint/kdeprint-kde330.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde331.diff b/sip/kdeprint/kdeprint-kde331.diff deleted file mode 100644 index 705efd4..0000000 --- a/sip/kdeprint/kdeprint-kde331.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde332.diff b/sip/kdeprint/kdeprint-kde332.diff deleted file mode 100644 index 705efd4..0000000 --- a/sip/kdeprint/kdeprint-kde332.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde340.diff b/sip/kdeprint/kdeprint-kde340.diff deleted file mode 100644 index 705efd4..0000000 --- a/sip/kdeprint/kdeprint-kde340.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde341.diff b/sip/kdeprint/kdeprint-kde341.diff deleted file mode 100644 index 705efd4..0000000 --- a/sip/kdeprint/kdeprint-kde341.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde342.diff b/sip/kdeprint/kdeprint-kde342.diff deleted file mode 100644 index 705efd4..0000000 --- a/sip/kdeprint/kdeprint-kde342.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde343.diff b/sip/kdeprint/kdeprint-kde343.diff deleted file mode 100644 index 705efd4..0000000 --- a/sip/kdeprint/kdeprint-kde343.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde350.diff b/sip/kdeprint/kdeprint-kde350.diff deleted file mode 100644 index 705efd4..0000000 --- a/sip/kdeprint/kdeprint-kde350.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde351.diff b/sip/kdeprint/kdeprint-kde351.diff deleted file mode 100644 index 705efd4..0000000 --- a/sip/kdeprint/kdeprint-kde351.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde352.diff b/sip/kdeprint/kdeprint-kde352.diff deleted file mode 100644 index 705efd4..0000000 --- a/sip/kdeprint/kdeprint-kde352.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde353.diff b/sip/kdeprint/kdeprint-kde353.diff deleted file mode 100644 index 705efd4..0000000 --- a/sip/kdeprint/kdeprint-kde353.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include kmjob.sip -+ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprintmod.sip.in b/sip/kdeprint/kdeprintmod.sip.in deleted file mode 100644 index 5e072d4..0000000 --- a/sip/kdeprint/kdeprintmod.sip.in +++ /dev/null @@ -1,47 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeprint version KDE_3_5_2 - -%Copying - - This software is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License as - published by the Free Software Foundation; either version 2 of - the License, or (at your option) any later version. - - This software is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public - License along with this library; see the file COPYING. - If not, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -%End - -%Module tdeprint - -%Import qt/qtmod.sip -%Import qtxml/qtxmlmod.sip -%Import dcopmod.sip -%Import tdecoremod.sip -%Import tdefxmod.sip -%Import tdeuimod.sip - -%Include kmmanager.sip -%Include kmobject.sip -%Include kmprinter.sip -%Include kpreloadobject.sip -%Include kprintaction.sip -%Include kprintdialog.sip -%Include kprintdialogpage.sip -%Include kprinter.sip -@mark@ - diff --git a/sip/kdeprint/kmjob.sip b/sip/kdeprint/kmjob.sip deleted file mode 100644 index e691caf..0000000 --- a/sip/kdeprint/kmjob.sip +++ /dev/null @@ -1,113 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeprint version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_1_0 - ) - -class KMJob : KMObject -{ -%TypeHeaderCode -#include -%End - - -public: - - enum JobAction - { - Remove, - Move, - Hold, - Resume, - Restart, - ShowCompleted, - All - }; - - - enum JobState - { - Printing, - Queued, - Held, - Error, - Cancelled, - Aborted, - Completed, - Unknown - }; - - - enum JobType - { - System, - Threaded - }; - - KMJob (); - KMJob (const KMJob&); - void copy (const KMJob&); - QString pixmap (); - QString stateString (); - bool isCompleted () const; - bool isActive () const; - int id () const; - void setId (int); - const QString& name () const; - void setName (const QString&); - const QString& printer () const; - void setPrinter (const QString&); - const QString& owner () const; - void setOwner (const QString&); - int state () const; - void setState (int); - int size () const; - void setSize (int); - const QString& uri () const; - void setUri (const QString&); - int type () const; - void setType (int); - int pages () const; - void setPages (int); - int processedPages () const; - void setProcessedPages (int); - int processedSize () const; - void setProcessedSize (int); - bool isRemote () const; - void setRemote (bool); - QString attribute (int) const; - void setAttribute (int, const QString&); - int attributeCount () const; - void setAttributeCount (int); - -protected: - void init (); - -protected: - -}; // class KMJob - -%End - diff --git a/sip/kdeprint/kmjobmanager.sip b/sip/kdeprint/kmjobmanager.sip deleted file mode 100644 index 2bbaad5..0000000 --- a/sip/kdeprint/kmjobmanager.sip +++ /dev/null @@ -1,197 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeprint version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_1_0 - ) - -class KMJobManager : QObject -{ -%TypeHeaderCode -#include -%End - - -public: - - enum JobType - { - ActiveJobs, - CompletedJobs - }; - - - class JobFilter - { - - public: - JobFilter (); -//ig int m_type[2]; - -%If ( KDE_3_2_2 - ) - bool m_isspecial; -%End - - - }; // class JobFilter - - -public: - KMJobManager (QObject* /TransferThis/ = 0, const char* = 0); - static KMJobManager* self (); - -%If ( KDE_3_2_2 - ) - void addPrinter (const QString&, KMJobManager::JobType = ActiveJobs , bool = 0); -%End - - void removePrinter (const QString&, KMJobManager::JobType = ActiveJobs ); - void clearFilter (); -//ig QDict* filter (); - int limit (); - void setLimit (int); - KMJob* findJob (const QString&); - bool sendCommand (const QString&, int, const QString& = QString ::null ); - bool sendCommand (const QPtrList&, int, const QString& = QString ::null ); - const QPtrList& jobList (bool = 1); - void addJob (KMJob*); -//ig KMThreadJob* threadJob (); - virtual int actions (); - virtual QValueList createPluginActions (KActionCollection*); - virtual void validatePluginActions (KActionCollection*, const QPtrList&); - virtual bool doPluginAction (int, const QPtrList&); - -protected: - void discardAllJobs (); - void removeDiscardedJobs (); - -protected: - virtual bool listJobs (const QString&, KMJobManager::JobType, int = 0); - virtual bool sendCommandSystemJob (const QPtrList&, int, const QString& = QString ::null ); - bool sendCommandThreadJob (const QPtrList&, int, const QString& = QString ::null ); - -protected: - -public: - -%If ( - KDE_3_2_2 ) - void addPrinter (const QString&, KMJobManager::JobType = ActiveJobs ); - -//force -%ConvertToSubClassCode - // The table of Python class objects indexed by their names. The table - // must be sorted by name. - - static sipStringTypeClassMap map[] = { - {sipName_KMJobManager, &sipClass_KMJobManager}, - {sipName_KMManager, &sipClass_KMManager}, - {sipName_KPrintAction, &sipClass_KPrintAction}, - {sipName_KPrintDialogPage, &sipClass_KPrintDialogPage}, - }; - - sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0])); -%End -//end -%End - - -}; // class KMJobManager - -%End - - - -%If (KDE_3_1_0 - ) -%MappedType QPtrList -//converts a Python list of KMJob -{ -%TypeHeaderCode -#include -#include -typedef QPtrList KMJobList; -%End - -%ConvertFromTypeCode - if (!sipCpp) - return PyList_New (0); - - PyObject *pylist; - - // Create the list - - if ((pylist = PyList_New(0)) == NULL) - return NULL; - - // Get it. - - QPtrList *cpplist = (QPtrList *)sipCpp; - KMJob *cpp; - PyObject *inst; - - // the loop depends on the type of iterator the tmeplate makes available - for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) - { - if (((inst = sipConvertFromInstance (cpp, sipClass_KMJob, sipTransferObj)) == NULL) - || PyList_Append (pylist, inst) < 0) - { - Py_DECREF (pylist); - return NULL; - } - } - - return pylist; -%End - -%ConvertToTypeCode - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - QPtrList *cpplist = new QPtrList; - - PyObject *elem; - KMJob *cpp; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - elem = PyList_GET_ITEM (sipPy, i); - cpp = (KMJob *)sipForceConvertToType(elem, sipType_KMJob, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; -%End - - diff --git a/sip/kdeprint/kmmanager.sip b/sip/kdeprint/kmmanager.sip deleted file mode 100644 index 541c91f..0000000 --- a/sip/kdeprint/kmmanager.sip +++ /dev/null @@ -1,220 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeprint version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KMManager : QObject -{ -%TypeHeaderCode -#include -%End - - -public: - - enum PrinterOperations - { - PrinterEnabling, - PrinterCreation, - PrinterDefault, - PrinterTesting, - PrinterConfigure, - PrinterRemoval, - PrinterAll - }; - - - enum ServerOperations - { - ServerRestarting, - ServerConfigure, - ServerAll - }; - - KMManager (QObject* /TransferThis/ = 0, const char* = 0); - static KMManager* self (); - QString errorMsg () const; - void setErrorMsg (const QString&); - bool hasManagement () const; - virtual bool createPrinter (KMPrinter*); - virtual bool removePrinter (KMPrinter*); - virtual bool enablePrinter (KMPrinter*, bool); - virtual bool startPrinter (KMPrinter*, bool); - virtual bool completePrinter (KMPrinter*); - virtual bool completePrinterShort (KMPrinter*); - virtual bool setDefaultPrinter (KMPrinter*); - virtual bool testPrinter (KMPrinter*); - bool upPrinter (KMPrinter*, bool); - bool modifyPrinter (KMPrinter*, KMPrinter*); - bool removePrinter (const QString&); - bool enablePrinter (const QString&, bool); - bool startPrinter (const QString&, bool); - bool completePrinter (const QString&); - bool setDefaultPrinter (const QString&); - int printerOperationMask () const; - int addPrinterWizard (QWidget* /Transfer/ = 0); - bool createSpecialPrinter (KMPrinter*); - bool removeSpecialPrinter (KMPrinter*); - KMPrinter* findPrinter (const QString&); - QPtrList* printerList (bool = 1); - QPtrList* printerListComplete (bool = 1); - KMPrinter* defaultPrinter (); - void enableFilter (bool); - bool isFilterEnabled () const; - virtual QString driverDbCreationProgram (); - virtual QString driverDirectory (); -//ig virtual DrMain* loadPrinterDriver (KMPrinter*, bool = 0); -//ig virtual DrMain* loadDbDriver (KMDBEntry*); -//ig virtual DrMain* loadFileDriver (const QString&); -//ig DrMain* loadDriver (KMPrinter*, bool = 0); -//ig virtual bool savePrinterDriver (KMPrinter*, DrMain*); -//ig virtual bool validateDbDriver (KMDBEntry*); - bool invokeOptionsDialog (QWidget* /Transfer/ = 0); - -%If ( KDE_3_1_0 - ) - virtual QString stateInformation (); -%End - - int serverOperationMask () const; - virtual bool restartServer (); - virtual bool configureServer (QWidget* /Transfer/ = 0); - virtual QStringList detectLocalPrinters (); - virtual void createPluginActions (KActionCollection*); - virtual void validatePluginActions (KActionCollection*, KMPrinter*); - -%If ( KDE_3_1_0 - ) - void checkUpdatePossible (); -%End - - -signals: - -%If ( KDE_3_1_0 - ) - void updatePossible (bool); -%End - - -protected: - virtual void listPrinters (); - void addPrinter (KMPrinter*); - void setHardDefault (KMPrinter*); - void setSoftDefault (KMPrinter*); - KMPrinter* softDefault () const; - KMPrinter* hardDefault () const; - bool uncompressFile (const QString&, QString&); - bool notImplemented (); - void setHasManagement (bool); - void setPrinterOperationMask (int); - void setServerOperationMask (int); - QString testPage (); - void discardAllPrinters (bool); - -%If ( KDE_3_1_0 - ) - void setUpdatePossible (bool); - virtual void checkUpdatePossibleInternal (); -%End - - -protected: - -}; // class KMManager - - - -%MappedType QPtrList -//converts a Python list of KMPrinter -{ -%TypeHeaderCode -#include -#include -#include -%End - -%ConvertFromTypeCode - // Convert to a Python list of KMPrinter - - if (!sipCpp) - return PyList_New (0); - - PyObject *plist; - - // Create the list - - if ((plist = PyList_New(0)) == NULL) - return NULL; - - // Get it. - - QPtrList *kpList = (QPtrList *)sipCpp; - PyObject *inst; - KMPrinter *p; - - for(p = kpList->first (); p; p = kpList->next ()) - { - inst = sipConvertFromInstance (p, sipClass_KMPrinter, sipTransferObj); - if ((inst == NULL) || (PyList_Append (plist, inst) < 0)) - { - Py_XDECREF (inst); - Py_DECREF (plist); - return NULL; - } - } - - return plist; -%End - -%ConvertToTypeCode - // Convert a Python list to QPtrList on the heap. - - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - QPtrList *kpList = new QPtrList; - - PyObject *elem; - KMPrinter *p; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - elem = PyList_GET_ITEM (sipPy, i); - p = (KMPrinter *)sipForceConvertToType(elem, sipType_KMPrinter, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete kpList; - return 0; - } - - kpList->append (p); - } - - *sipCppPtr = kpList; - - return 1; -%End -}; - - diff --git a/sip/kdeprint/kmobject.sip b/sip/kdeprint/kmobject.sip deleted file mode 100644 index 1c5a5c0..0000000 --- a/sip/kdeprint/kmobject.sip +++ /dev/null @@ -1,42 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeprint version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KMObject -{ -%TypeHeaderCode -#include -%End - - -public: - KMObject (); - bool isDiscarded () const; - void setDiscarded (bool = 1); - -protected: - -}; // class KMObject - diff --git a/sip/kdeprint/kmprinter.sip b/sip/kdeprint/kmprinter.sip deleted file mode 100644 index 46135bf..0000000 --- a/sip/kdeprint/kmprinter.sip +++ /dev/null @@ -1,178 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeprint version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KMPrinter : KMObject -{ -%TypeHeaderCode -#include -%End - - -public: - - enum PrinterType - { - Printer, - Class, - Implicit, - Virtual, - Remote, - Invalid, - Special - }; - - - enum PrinterState - { - Idle, - Stopped, - Processing, - Unknown, - Rejecting, - StateMask - }; - - -%If ( KDE_3_2_0 - ) - - enum PrinterCap - { - CapBW, - CapColor, - CapDuplex, - CapStaple, - CapCopies, - CapCollate, - CapPunch, - CapCover, - CapBind, - CapSort, - CapSmall, - CapMedium, - CapLarge, - CapVariable - }; - -%End - - KMPrinter (); - KMPrinter (const KMPrinter&); - void copy (const KMPrinter&); - const QString& name () const; - void setName (const QString&); - const QString& printerName () const; - void setPrinterName (const QString&); - const QString& instanceName () const; - void setInstanceName (const QString&); - int type () const; - void setType (int); - void addType (int); - KMPrinter::PrinterState state (bool = 0) const; - QString stateString () const; - void setState (KMPrinter::PrinterState); - bool acceptJobs () const; - void setAcceptJobs (bool); - -%If ( KDE_3_2_0 - ) - const QString& device () const; - QString deviceProtocol () const; - void setDevice (const QString&); -%End - - const QStringList& members () const; - void setMembers (const QStringList&); - void addMember (const QString&); - const QString& description () const; - void setDescription (const QString&); - const QString& location () const; - void setLocation (const QString&); - const KURL& uri () const; - void setUri (const KURL&); - const QString& manufacturer () const; - void setManufacturer (const QString&); - const QString& model () const; - void setModel (const QString&); - const QString& driverInfo () const; - void setDriverInfo (const QString&); - -%If ( KDE_3_2_0 - ) - int printerCap () const; - void setPrinterCap (int); - void addPrinterCap (int); -%End - - bool isClass (bool = 1) const; - bool isImplicit () const; - bool isPrinter () const; - bool isRemote () const; - bool isLocal () const; - bool isVirtual () const; - bool isValid () const; - bool isSpecial () const; -//ig KMDBEntry* dbEntry () const; -//ig void setDbEntry (KMDBEntry*); - QString pixmap (); - void setPixmap (const QString&); - bool isHardDefault () const; - void setHardDefault (bool); - bool isSoftDefault () const; - void setSoftDefault (bool); - bool ownSoftDefault () const; - void setOwnSoftDefault (bool); - static int compare (KMPrinter*, KMPrinter*); - const QString& option (const QString&) const; - bool hasOption (const QString&) const; - void setOption (const QString&, const QString&); - void removeOption (const QString&); - QMap options () const; - void setOptions (const QMap&); -//ig DrMain* driver () const; -//ig void setDriver (DrMain*); -//ig DrMain* takeDriver (); - bool autoConfigure (KPrinter*, QWidget* /Transfer/ = 0); - const QString& defaultOption (const QString&) const; - void setDefaultOption (const QString&, const QString&); - QMap defaultOptions () const; - void setDefaultOptions (const QMap&); - const QString& editedOption (const QString&) const; - void setEditedOption (const QString&, const QString&); - QMap editedOptions () const; - void setEditedOptions (const QMap&); - bool isEdited () const; - void setEdited (bool); - -protected: - -public: - -%If ( - KDE_3_2_0 ) - const KURL& device () const; - void setDevice (const KURL&); -%End - - -}; // class KMPrinter - diff --git a/sip/kdeprint/kpreloadobject.sip b/sip/kdeprint/kpreloadobject.sip deleted file mode 100644 index 831b67f..0000000 --- a/sip/kdeprint/kpreloadobject.sip +++ /dev/null @@ -1,43 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeprint version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KPReloadObject -{ -%TypeHeaderCode -#include -%End - - -public: - KPReloadObject (bool = 0); - -protected: - virtual void reload () = 0; - virtual void aboutToReload (); - virtual void configChanged (); - -}; // class KPReloadObject - diff --git a/sip/kdeprint/kprintaction.sip b/sip/kdeprint/kprintaction.sip deleted file mode 100644 index fc1f929..0000000 --- a/sip/kdeprint/kprintaction.sip +++ /dev/null @@ -1,61 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeprint version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KPrintAction : KActionMenu -{ -%TypeHeaderCode -#include -%End - - -public: - - enum PrinterType - { - All, - Regular, - Specials - }; - - KPrintAction (const QString&, KPrintAction::PrinterType = All , QWidget* = 0, QObject* /TransferThis/ = 0, const char* = 0); - KPrintAction (const QString&, const QIconSet&, KPrintAction::PrinterType = All , QWidget* = 0, QObject* /TransferThis/ = 0, const char* = 0); - KPrintAction (const QString&, const QString&, KPrintAction::PrinterType = All , QWidget* = 0, QObject* /TransferThis/ = 0, const char* = 0); - static KPrintAction* exportAll (QWidget* = 0, QObject* /Transfer/ = 0, const char* = 0); - static KPrintAction* exportRegular (QWidget* = 0, QObject* /Transfer/ = 0, const char* = 0); - static KPrintAction* exportSpecial (QWidget* = 0, QObject* /Transfer/ = 0, const char* = 0); - -signals: - void print (KPrinter*) /PyName=print_/; - -protected slots: - void slotAboutToShow (); - void slotActivated (int); - -protected: - void initialize (KPrintAction::PrinterType, QWidget*); - -}; // class KPrintAction - diff --git a/sip/kdeprint/kprintdialog.sip b/sip/kdeprint/kprintdialog.sip deleted file mode 100644 index 8e93dc8..0000000 --- a/sip/kdeprint/kprintdialog.sip +++ /dev/null @@ -1,169 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeprint version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KPrintDialog : KDialog, KPReloadObject -{ -%TypeHeaderCode -#include -%End - - -public: - KPrintDialog (QWidget* /TransferThis/ = 0, const char* = 0); - void setFlags (int); - void setDialogPages (QPtrList*); - -%If ( KDE_3_1_0 - ) - void enableDialogPage (int, bool = 1); -%End - - KPrinter* printer () const; - static KPrintDialog* printerDialog (KPrinter*, QWidget*, const QString& = QString ::null , bool = 0); - -signals: - void printRequested (KPrinter*); - -protected slots: - void slotPrinterSelected (int); - void slotProperties (); - void slotSetDefault (); - void slotOptions (); - virtual void done (int); - void slotWizard (); - void slotExtensionClicked (); - void slotToggleFilter (bool); - -%If ( KDE_3_1_0 - ) - void slotHelp (); - void slotOutputFileSelected (const QString&); - void slotUpdatePossible (bool); - void slotOpenFileDialog (); -%End - - -protected: - bool checkOutputFile (); - void enableSpecial (bool); - void enableOutputFile (bool); - void setOutputFileExtension (const QString&); - void reload (); - void configChanged (); - void expandDialog (bool = 1); - -%If ( KDE_3_1_0 - ) - void initialize (KPrinter*); - void init (); -%End - - -protected: - -public: - -%If ( - KDE_3_1_0 ) - void initialize (KPrinter*); -%End - - -}; // class KPrintDialog - - - -%MappedType QPtrList -//converts a Python list of KPrintDialogPage -{ -%TypeHeaderCode -#include -#include -%End - -%ConvertFromTypeCode - // Convert to a Python list of KPrintDialogPage - - if (!sipCpp) - return PyList_New (0); - - PyObject *plist; - - // Create the list - - if ((plist = PyList_New(0)) == NULL) - return NULL; - - // Get it. - - QPtrList *kpList = (QPtrList *)sipCpp; - PyObject *inst; - KPrintDialogPage *p; - - for(p = kpList->first (); p; p = kpList->next ()) - { - inst = sipConvertFromInstance (p, sipClass_KPrintDialogPage, sipTransferObj); - if ((inst == NULL) || (PyList_Append (plist, inst) < 0)) - { - Py_XDECREF (inst); - Py_DECREF (plist); - return NULL; - } - } - - return plist; -%End - -%ConvertToTypeCode - // Convert a Python list to QPtrList on the heap. - - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - QPtrList *kpList = new QPtrList; - - PyObject *elem; - KPrintDialogPage *p; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - elem = PyList_GET_ITEM (sipPy, i); - p = (KPrintDialogPage *)sipForceConvertToType(elem, sipType_KPrintDialogPage, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete kpList; - return 0; - } - - kpList->append (p); - } - - *sipCppPtr = kpList; - - return 1; -%End -}; - - diff --git a/sip/kdeprint/kprintdialogpage.sip b/sip/kdeprint/kprintdialogpage.sip deleted file mode 100644 index 3b1c1a9..0000000 --- a/sip/kdeprint/kprintdialogpage.sip +++ /dev/null @@ -1,52 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeprint version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KPrintDialogPage : QWidget -{ -%TypeHeaderCode -#include -%End - - -public: - KPrintDialogPage (QWidget* /TransferThis/ = 0, const char* = 0); -//ig KPrintDialogPage (KMPrinter*, DrMain* = 0, QWidget* /TransferThis/ = 0, const char* = 0); - virtual void getOptions (QMap&, bool = 0); - virtual void setOptions (const QMap&); - virtual bool isValid (QString&); - int id () const; - void setId (int); - QString title () const; - void setTitle (const QString&); - bool onlyRealPrinters () const; - void setOnlyRealPrinters (bool = 1); -//ig DrMain* driver (); -//ig KMPrinter* printer (); - -protected: - -}; // class KPrintDialogPage - diff --git a/sip/kdeprint/kprinter.sip b/sip/kdeprint/kprinter.sip deleted file mode 100644 index 2229b9f..0000000 --- a/sip/kdeprint/kprinter.sip +++ /dev/null @@ -1,258 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeprint version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KPrinter : QPaintDevice, KPReloadObject -{ -%TypeHeaderCode -#include -%End - - -public: - - enum StandardPageType - { - CopiesPage, - FilesPage, - Custom - }; - - - enum PageSelectionType - { - ApplicationSide, - SystemSide - }; - - - enum ApplicationType - { - Dialog, - StandAlone, - StandAlonePersistent - }; - - - enum PageSetType - { - AllPages, - OddPages, - EvenPages - }; - - - enum CollateType - { - Collate, - Uncollate - }; - - - enum ColorMode - { - GrayScale, - Color - }; - - - enum Orientation - { - Portrait, - Landscape - }; - - - enum PageOrder - { - FirstPageFirst, - LastPageFirst - }; - - - enum PageSize - { - A4, - B5, - Letter, - Legal, - Executive, - A0, - A1, - A2, - A3, - A5, - A6, - A7, - A8, - A9, - B0, - B1, - B10, - B2, - B3, - B4, - B6, - B7, - B8, - B9, - C5E, - Comm10E, - DLE, - Folio, - Ledger, - Tabloid, - NPageSize - }; - - KPrinter (bool = 1, QPrinter::PrinterMode = QPrinter ::ScreenResolution ); - bool newPage (); - bool abort (); - bool aborted () const; - bool outputToFile () const; - void setOutputToFile (bool); - QString outputFileName () const; - void setOutputFileName (const QString&); - QString docName () const; - void setDocName (const QString&); - QString creator () const; - void setCreator (const QString&); - bool fullPage () const; - void setFullPage (bool); - KPrinter::ColorMode colorMode () const; - void setColorMode (KPrinter::ColorMode); - int numCopies () const; - void setNumCopies (int); - KPrinter::Orientation orientation () const; - void setOrientation (KPrinter::Orientation); - KPrinter::PageOrder pageOrder () const; - void setPageOrder (KPrinter::PageOrder); - KPrinter::CollateType collate () const; - void setCollate (KPrinter::CollateType); - int minPage () const; - int maxPage () const; - void setMinMax (int, int); - int fromPage () const; - int toPage () const; - void setFromTo (int, int); - KPrinter::PageSize pageSize () const; - void setPageSize (KPrinter::PageSize); - QString printerName () const; - void setPrinterName (const QString&); - QString printProgram () const; - void setPrintProgram (const QString&); - QString printerSelectionOption () const; - void setPrinterSelectionOption (const QString&); - int currentPage () const; - void setCurrentPage (int = 0); - KPrinter::PageSetType pageSet () const; - bool setup (QWidget* /Transfer/ = 0, const QString& = QString ::null , bool = 0); - QSize margins () const; - void setMargins (QSize); - QSize realPageSize () const; - void setRealPageSize (QSize); - -%If ( KDE_3_1_0 - ) - void setRealDrawableArea (const QRect&); - QRect realDrawableArea () const; - void margins (uint*, uint*, uint*, uint*) const /PyName=marginsAsInts/; - -%If ( KDE_3_2_0 - ) - void setMargins (uint, uint, uint, uint); -%End - -%End - - QValueList pageList () const; - void setPreviewOnly (bool); - bool previewOnly () const; - -%If ( KDE_3_1_0 - ) - void setResolution (int); - int resolution () const; - -%If ( KDE_3_2_0 - ) - void setUsePrinterResolution (bool); -%End - -%End - -//ig KPrinterImpl* implementation () const; - bool printFiles (const QStringList&, bool = 0, bool = 1); - static void addDialogPage (KPrintDialogPage*); - static void setPageSelection (KPrinter::PageSelectionType); - static KPrinter::PageSelectionType pageSelection (); - static void setApplicationType (KPrinter::ApplicationType); - static KPrinter::ApplicationType applicationType (); - static void addStandardPage (int); - static void removeStandardPage (int); - const QString& option (const QString&) const; - void setOption (const QString&, const QString&); - const QMap& options () const; - void setOptions (const QMap&); - void initOptions (const QMap&); - QString searchName () const; - void setSearchName (const QString&); - QString errorMessage () const; - void setErrorMessage (const QString&); - bool autoConfigure (const QString& = QString ::null , QWidget* /Transfer/ = 0); - void setDocFileName (const QString&); - QString docFileName () const; - -%If ( KDE_3_1_0 - ) - void setDocDirectory (const QString&); - QString docDirectory () const; -%End - - -protected: -//ig virtual bool cmd (int, QPainter*, QPDevCmdParam*); - virtual int metric (int) const; - void translateQtOptions (); - void loadSettings (); - void saveSettings (); - void preparePrinting (); - void finishPrinting (); - void reload (); - void init (bool = 1, QPrinter::PrinterMode = QPrinter ::ScreenResolution ); - -%If ( KDE_3_1_0 - ) - bool doPreview (const QString&); - -%If ( KDE_3_2_0 - ) -//ig void setRealPageSize (DrPageSize*); - void setOption (const QString&, const QString&, bool); -%End - -%End - - -protected: - -}; // class KPrinter - -KPrinter::PageSize pageNameToPageSize (const QString&); -const char* pageSizeToPageName (KPrinter::PageSize); -//ig QSize rangeToSize (const QString&); diff --git a/sip/kdeui/kaboutapplication.sip b/sip/kdeui/kaboutapplication.sip deleted file mode 100644 index 10f479b..0000000 --- a/sip/kdeui/kaboutapplication.sip +++ /dev/null @@ -1,205 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KAboutApplication : KAboutDialog -{ -%TypeHeaderCode -#include -%End - - -public: - KAboutApplication (QWidget* /TransferThis/ = 0, const char* = 0, bool = 1); - KAboutApplication (const KAboutData*, QWidget* /TransferThis/ = 0, const char* = 0, bool = 1); - -protected: - void buildDialog (const KAboutData*); - -//force -%ConvertToSubClassCode - // The table of Python class objects indexed by their names. The table - // must be sorted by name. - - static sipStringTypeClassMap map[] = { - {sipName_KAboutApplication, &sipClass_KAboutApplication}, - {sipName_KAboutContainer, &sipClass_KAboutContainer}, - {sipName_KAboutContributor, &sipClass_KAboutContributor}, - {sipName_KAboutDialog, &sipClass_KAboutDialog}, - {sipName_KAboutKDE, &sipClass_KAboutKDE}, - {sipName_KAboutWidget, &sipClass_KAboutWidget}, - {sipName_KAction, &sipClass_KAction}, - {sipName_KActionCollection, &sipClass_KActionCollection}, - {sipName_KActionMenu, &sipClass_KActionMenu}, - {sipName_KActionSeparator, &sipClass_KActionSeparator}, - {sipName_KActiveLabel, &sipClass_KActiveLabel}, - {sipName_KAnimWidget, &sipClass_KAnimWidget}, - {sipName_KArrowButton, &sipClass_KArrowButton}, - {sipName_KAuthIcon, &sipClass_KAuthIcon}, - {sipName_KBugReport, &sipClass_KBugReport}, - {sipName_KButtonBox, &sipClass_KButtonBox}, - {sipName_KCModule, &sipClass_KCModule}, - {sipName_KCharSelect, &sipClass_KCharSelect}, - {sipName_KCharSelectTable, &sipClass_KCharSelectTable}, - {sipName_KColorButton, &sipClass_KColorButton}, - {sipName_KColorCells, &sipClass_KColorCells}, - {sipName_KColorCombo, &sipClass_KColorCombo}, - {sipName_KColorDialog, &sipClass_KColorDialog}, - {sipName_KColorDrag, &sipClass_KColorDrag}, - {sipName_KColorPatch, &sipClass_KColorPatch}, - {sipName_KComboBox, &sipClass_KComboBox}, - {sipName_KCommandHistory, &sipClass_KCommandHistory}, - {sipName_KCompletionBox, &sipClass_KCompletionBox}, - {sipName_KContextMenuManager, &sipClass_KContextMenuManager}, - {sipName_KDateInternalMonthPicker,&sipClass_KDateInternalMonthPicker}, -#if KDE_VERSION >= 0x030100 - {sipName_KDateInternalWeekSelector,&sipClass_KDateInternalWeekSelector}, -#endif - {sipName_KDateInternalYearSelector,&sipClass_KDateInternalYearSelector}, - {sipName_KDatePicker, &sipClass_KDatePicker}, - {sipName_KDatePicker, &sipClass_KDatePicker}, - {sipName_KDateTable, &sipClass_KDateTable}, - {sipName_KDateValidator, &sipClass_KDateValidator}, - {sipName_KDateWidget, &sipClass_KDateWidget}, - {sipName_KDialog, &sipClass_KDialog}, - {sipName_KDialogBase, &sipClass_KDialogBase}, - {sipName_KDialogQueue, &sipClass_KDialogQueue}, - {sipName_KDockArea, &sipClass_KDockArea}, - {sipName_KDockMainWindow, &sipClass_KDockMainWindow}, - {sipName_KDockManager, &sipClass_KDockManager}, - {sipName_KDockTabGroup, &sipClass_KDockTabGroup}, - {sipName_KDockWidget, &sipClass_KDockWidget}, - {sipName_KDockWidgetAbstractHeader,&sipClass_KDockWidgetAbstractHeader}, - {sipName_KDockWidgetAbstractHeaderDrag,&sipClass_KDockWidgetAbstractHeaderDrag}, - {sipName_KDockWidgetHeader, &sipClass_KDockWidgetHeader}, - {sipName_KDockWidgetHeaderDrag, &sipClass_KDockWidgetHeaderDrag}, -// {sipName_KDockWindow, &sipClass_KDockWindow}, -#if KDE_VERSION >= 0x030100 - {sipName_KDoubleSpinBox, &sipClass_KDoubleSpinBox}, - {sipName_KDoubleValidator, &sipClass_KDoubleValidator}, -#endif - {sipName_KDualColorButton, &sipClass_KDualColorButton}, - {sipName_KDualColorButton, &sipClass_KDualColorButton}, - {sipName_KEdFind, &sipClass_KEdFind}, - {sipName_KEdGotoLine, &sipClass_KEdGotoLine}, - {sipName_KEdReplace, &sipClass_KEdReplace}, - {sipName_KEdit, &sipClass_KEdit}, - {sipName_KEditListBox, &sipClass_KEditListBox}, - {sipName_KEditToolbar, &sipClass_KEditToolbar}, - {sipName_KEditToolbarWidget, &sipClass_KEditToolbarWidget}, - {sipName_KFloatValidator, &sipClass_KFloatValidator}, - {sipName_KFontAction, &sipClass_KFontAction}, - {sipName_KFontChooser, &sipClass_KFontChooser}, - {sipName_KFontCombo, &sipClass_KFontCombo}, - {sipName_KFontDialog, &sipClass_KFontDialog}, - {sipName_KFontSizeAction, &sipClass_KFontSizeAction}, - {sipName_KGradientSelector, &sipClass_KGradientSelector}, - {sipName_KHSSelector, &sipClass_KHSSelector}, - {sipName_KHelpMenu, &sipClass_KHelpMenu}, - {sipName_KHistoryCombo, &sipClass_KHistoryCombo}, - {sipName_KIconView, &sipClass_KIconView}, - {sipName_KIntSpinBox, &sipClass_KIntSpinBox}, - {sipName_KIntValidator, &sipClass_KIntValidator}, - {sipName_KJanusWidget, &sipClass_KJanusWidget}, - {sipName_KKeyButton, &sipClass_KKeyButton}, - {sipName_KKeyChooser, &sipClass_KKeyChooser}, - {sipName_KKeyDialog, &sipClass_KKeyDialog}, - {sipName_KLed, &sipClass_KLed}, - {sipName_KLineEdit, &sipClass_KLineEdit}, - {sipName_KLineEditDlg, &sipClass_KLineEditDlg}, - {sipName_KListAction, &sipClass_KListAction}, - {sipName_KListBox, &sipClass_KListBox}, - {sipName_KListView, &sipClass_KListView}, - {sipName_KMainWindow, &sipClass_KMainWindow}, - {sipName_KMenuBar, &sipClass_KMenuBar}, - {sipName_KMimeTypeValidator, &sipClass_KMimeTypeValidator}, - {sipName_KNumInput, &sipClass_KNumInput}, - {sipName_KPaletteTable, &sipClass_KPaletteTable}, - {sipName_KPanelApplet, &sipClass_KPanelApplet}, - {sipName_KPanelAppMenu, &sipClass_KPanelAppMenu}, - {sipName_KPanelExtension, &sipClass_KPanelExtension}, - {sipName_KPanelMenu, &sipClass_KPanelMenu}, -#if KDE_VERSION >= 0x030100 - {sipName_KPassivePopup, &sipClass_KPassivePopup}, -#endif - {sipName_KPasswordDialog, &sipClass_KPasswordDialog}, - {sipName_KPasswordEdit, &sipClass_KPasswordEdit}, - {sipName_KPopupFrame, &sipClass_KPopupFrame}, - {sipName_KPopupMenu, &sipClass_KPopupMenu}, - {sipName_KPopupTitle, &sipClass_KPopupTitle}, - {sipName_KProgress, &sipClass_KProgress}, - {sipName_KProgressDialog, &sipClass_KProgressDialog}, - {sipName_KPushButton, &sipClass_KPushButton}, - {sipName_KRadioAction, &sipClass_KRadioAction}, - {sipName_KRecentFilesAction, &sipClass_KRecentFilesAction}, - {sipName_KRestrictedLine, &sipClass_KRestrictedLine}, - {sipName_KRootPermsIcon, &sipClass_KRootPermsIcon}, - {sipName_KRootPixmap, &sipClass_KRootPixmap}, - {sipName_KRuler, &sipClass_KRuler}, - {sipName_KSelectAction, &sipClass_KSelectAction}, - {sipName_KSelector, &sipClass_KSelector}, - {sipName_KSeparator, &sipClass_KSeparator}, -// {sipName_KSharedPixmap, &sipClass_KSharedPixmap}, - {sipName_KSqueezedTextLabel, &sipClass_KSqueezedTextLabel}, - {sipName_KStatusBar, &sipClass_KStatusBar}, - {sipName_KStatusBarLabel, &sipClass_KStatusBarLabel}, - {sipName_KStringListValidator, &sipClass_KStringListValidator}, - {sipName_KSystemTray, &sipClass_KSystemTray}, - {sipName_KTabCtl, &sipClass_KTabCtl}, - {sipName_KTextBrowser, &sipClass_KTextBrowser}, -#if KDE_VERSION >= 0x030100 - {sipName_KTextEdit, &sipClass_KTextEdit}, -#endif - {sipName_KTipDialog, &sipClass_KTipDialog}, - {sipName_KToggleAction, &sipClass_KToggleAction}, -#if KDE_VERSION >= 0x030100 - {sipName_KToggleToolBarAction, &sipClass_KToggleToolBarAction}, -#endif - {sipName_KToolBar, &sipClass_KToolBar}, - {sipName_KToolBarButton, &sipClass_KToolBarButton}, - {sipName_KToolBarPopupAction, &sipClass_KToolBarPopupAction}, - {sipName_KToolBarRadioGroup, &sipClass_KToolBarRadioGroup}, - {sipName_KToolBarSeparator, &sipClass_KToolBarSeparator}, - {sipName_KURLLabel, &sipClass_KURLLabel}, - {sipName_KValueSelector, &sipClass_KValueSelector}, -#if KDE_VERSION >= 0x030100 - {sipName_KWidgetAction, &sipClass_KWidgetAction}, - {sipName_KWindowInfo, &sipClass_KWindowInfo}, -#endif - {sipName_KWindowListMenu, &sipClass_KWindowListMenu}, - {sipName_KWizard, &sipClass_KWizard}, - {sipName_KWritePermsIcon, &sipClass_KWritePermsIcon}, - {sipName_KXMLGUIFactory, &sipClass_KXMLGUIFactory}, - {sipName_KXYSelector, &sipClass_KXYSelector}, -// {sipName_PyKPanelApplet, &sipClass_PyKPanelApplet}, -// {sipName_QXEmbed, &sipClass_QXEmbed}, - }; - - sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0])); -%End -//end - -}; // class KAboutApplication - diff --git a/sip/kdeui/kaboutdialog.sip b/sip/kdeui/kaboutdialog.sip deleted file mode 100644 index e1dd76b..0000000 --- a/sip/kdeui/kaboutdialog.sip +++ /dev/null @@ -1,190 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KAboutContainer : QFrame -{ -%TypeHeaderCode -#include -%End - - -public: - KAboutContainer (QWidget* /TransferThis/ = 0, const char* = 0, int = 0, int = 0, int = AlignCenter , int = AlignCenter ); - void addWidget (QWidget*); - void addPerson (const QString&, const QString&, const QString&, const QString&, bool = 0, bool = 0, bool = 0); - void addTitle (const QString&, int = AlignLeft , bool = 0, bool = 0); - void addImage (const QString&, int = AlignLeft ); - virtual QSize sizeHint () const; - virtual QSize minimumSizeHint () const; - -protected: - virtual void childEvent (QChildEvent*); - -signals: - void urlClick (const QString&); - void mailClick (const QString&, const QString&); - -}; // class KAboutContainer - - -class KAboutContributor : QFrame -{ -%TypeHeaderCode -#include -%End - - -public: - KAboutContributor (QWidget* /TransferThis/ = 0, const char* = 0, const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , bool = 0, bool = 1, bool = 0); - void setName (const QString&, const QString& = QString ::null , bool = 1); - void setEmail (const QString&, const QString& = QString ::null , bool = 1); - void setURL (const QString&, const QString& = QString ::null , bool = 1); - void setWork (const QString&, const QString& = QString ::null , bool = 1); - QString getName (); - QString getEmail (); - QString getURL (); - QString getWork (); - virtual QSize sizeHint () const; - -protected: - virtual void fontChange (const QFont&); - -protected slots: - void urlClickedSlot (const QString&); - void emailClickedSlot (const QString&); - -signals: - void sendEmail (const QString&, const QString&); - void openURL (const QString&); - -}; // class KAboutContributor - - -class KAboutWidget : QWidget -{ -%TypeHeaderCode -#include -%End - - -public: - KAboutWidget (QWidget* /TransferThis/ = 0, const char* = 0); - void adjust (); - void setLogo (const QPixmap&); - void setAuthor (const QString&, const QString&, const QString&, const QString&); - void setMaintainer (const QString&, const QString&, const QString&, const QString&); - void addContributor (const QString&, const QString&, const QString&, const QString&); - void setVersion (const QString&); - -protected slots: - void sendEmailSlot (const QString&, const QString&); - void openURLSlot (const QString&); - -signals: - void sendEmail (const QString&, const QString&); - void openURL (const QString&); - -protected: - void resizeEvent (QResizeEvent*); - -}; // class KAboutWidget - - -class KAboutDialog : KDialogBase -{ -%TypeHeaderCode -#include -%End - - -public: - - enum LayoutType - { - AbtPlain, - AbtTabbed, - AbtTitle, - AbtImageLeft, - AbtImageRight, - AbtImageOnly, - AbtProduct, - AbtKDEStandard, - AbtAppStandard, - AbtImageAndTitle - }; - - -public: - KAboutDialog (QWidget* /TransferThis/ = 0, const char* = 0, bool = 1); - KAboutDialog (int, const QString&, int, ButtonCode, QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, bool = 0, const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null ); - void adjust (); - virtual void show (); - virtual void show (QWidget*); - void setTitle (const QString&); - void setImage (const QString&); - -%If ( KDE_3_3_0 - ) - void setIcon (const QString&); - -%If ( KDE_3_4_0 - ) - void setProgramLogo (const QString&); - void setProgramLogo (const QPixmap&); -%End - -%End - - void setImageBackgroundColor (const QColor&); - void setImageFrame (bool); - void setProduct (const QString&, const QString&, const QString&, const QString&); - QFrame* addTextPage (const QString&, const QString&, bool = 0, int = 10); - QFrame* addLicensePage (const QString&, const QString&, int = 10); - KAboutContainer* addContainerPage (const QString&, int = AlignCenter , int = AlignCenter ); - KAboutContainer* addScrolledContainerPage (const QString&, int = AlignCenter , int = AlignCenter ); - KAboutContainer* addContainer (int, int); - QFrame* addPage (const QString&); - void setLogo (const QPixmap&); - void setAuthor (const QString&, const QString&, const QString&, const QString&); - void setMaintainer (const QString&, const QString&, const QString&, const QString&); - void addContributor (const QString&, const QString&, const QString&, const QString&); - void setVersion (const QString&); - static void imageURL (QWidget* /Transfer/, const QString&, const QString&, const QColor&, const QString&); - -signals: - void sendEmail (const QString&, const QString&); - void openURL (const QString&); - -protected: - -protected slots: - void sendEmailSlot (const QString&, const QString&); - void openURLSlot (const QString&); - virtual void mouseTrackSlot (int, const QMouseEvent*); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KAboutDialog - diff --git a/sip/kdeui/kaboutkde.sip b/sip/kdeui/kaboutkde.sip deleted file mode 100644 index 0351960..0000000 --- a/sip/kdeui/kaboutkde.sip +++ /dev/null @@ -1,38 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KAboutKDE : KAboutDialog -{ -%TypeHeaderCode -#include -%End - - -public: - KAboutKDE (QWidget* /TransferThis/ = 0, const char* = 0, bool = 1); - -}; // class KAboutKDE - diff --git a/sip/kdeui/kaccelmanager.sip b/sip/kdeui/kaccelmanager.sip deleted file mode 100644 index e260488..0000000 --- a/sip/kdeui/kaccelmanager.sip +++ /dev/null @@ -1,43 +0,0 @@ -// -// Copyright 2003 Jim Bublitz -// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE_3_1_4 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_1_0 - ) - -class KAcceleratorManager -{ -%TypeHeaderCode -#include -%End - - -public: - static void manage (QWidget*); - static void manage (QWidget*, bool); - -}; // class KAcceleratorManager - -%End - diff --git a/sip/kdeui/kaccelmenu.sip b/sip/kdeui/kaccelmenu.sip deleted file mode 100644 index 4b9dc17..0000000 --- a/sip/kdeui/kaccelmenu.sip +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright 2003 Jim Bublitz -// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE_3_1_1 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KAccelMenu : KPopupMenu -{ -%TypeHeaderCode -#include -#include -#include -%End - - -public: - KAccelMenu (KAccel*, QWidget*/TransferThis/ = 0, const char* = 0); - int insItem (const QPixmap&, const char*, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), const char* = 0); - int insItem (const char*, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), const char* = 0); - int insItem (const QPixmap&, const char*, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), KStdAccel::StdAccel); - int insItem (const char*, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), KStdAccel::StdAccel); - -protected: - char* stripAnd (const char*); - void keyPressEvent (QKeyEvent*); - void popMsg (); - -protected slots: - void highl (int); - void aboutTS (); - -}; // class KAccelMenu - diff --git a/sip/kdeui/kaction.sip b/sip/kdeui/kaction.sip deleted file mode 100644 index 3c0ab83..0000000 --- a/sip/kdeui/kaction.sip +++ /dev/null @@ -1,758 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KAction : QObject -{ -%TypeHeaderCode -#include -%End - - -public: - KAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /TransferThis/, const char*); - KAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /TransferThis/, const char*); - KAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /TransferThis/, const char*); - KAction (const KGuiItem&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /TransferThis/, const char*); - KAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - KAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - KAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - KAction (QObject* /TransferThis/ = 0, const char* = 0); - virtual int plug (QWidget*, int = -1); - virtual void plugAccel (KAccel*, bool = 1); - virtual void unplug (QWidget*); - virtual void unplugAccel (); - virtual bool isPlugged () const; - -%If ( KDE_3_1_0 - ) - bool isPlugged (const QWidget*) const; -%End - - virtual bool isPlugged (const QWidget*, int) const; - virtual bool isPlugged (const QWidget*, const QWidget*) const; - QWidget* container (int) const; - int itemId (int) const; - QWidget* representative (int) const; - int containerCount () const; - -%If ( KDE_3_1_0 - ) - uint kaccelCount () const; -%End - - virtual bool hasIcon () const; - bool hasIconSet () const; - virtual QString plainText () const; - virtual QString text () const; - virtual const KShortcut& shortcut () const; - virtual const KShortcut& shortcutDefault () const; - QString shortcutText () const; - void setShortcutText (const QString&); - virtual bool isEnabled () const; - virtual bool isShortcutConfigurable () const; - virtual QString group () const; - virtual QString whatsThis () const; - virtual QString toolTip () const; - virtual QIconSet iconSet (KIcon::Group, int = 0) const; - QIconSet iconSet () const; - virtual QString icon () const; - KActionCollection* parentCollection () const; - static int getToolButtonID (); - void unplugAll (); - -%If ( KDE_3_4_0 - ) - - enum ActivationReason - { - UnknownActivation, - EmulatedActivation, - AccelActivation, - PopupMenuActivation, - ToolBarActivation - }; - -%End - - -public slots: - virtual void setText (const QString&); - virtual bool setShortcut (const KShortcut&); - virtual void setGroup (const QString&); - virtual void setWhatsThis (const QString&); - virtual void setToolTip (const QString&); - virtual void setIconSet (const QIconSet&); - virtual void setIcon (const QString&); - virtual void setEnabled (bool); - -%If ( KDE_3_5_0 - ) - void setDisabled (bool); -%End - - virtual void setShortcutConfigurable (bool); - virtual void activate (); - -protected slots: - virtual void slotDestroyed (); - virtual void slotKeycodeChanged (); - virtual void slotActivated (); - -%If ( KDE_3_4_0 - ) - void slotPopupActivated (); - void slotButtonClicked (int, Qt::ButtonState); -%End - - -protected: - KToolBar* toolBar (int) const; - QPopupMenu* popupMenu (int) const; - void removeContainer (int); - int findContainer (const QWidget*) const; - -%If ( KDE_3_4_0 - ) - int findContainer (int) const; -%End - - void plugMainWindowAccel (QWidget*); - void addContainer (QWidget* /Transfer/, int); - void addContainer (QWidget* /Transfer/, QWidget*); - virtual void updateShortcut (int); - virtual void updateShortcut (QPopupMenu*, int); - virtual void updateGroup (int); - virtual void updateText (int); - virtual void updateEnabled (int); - virtual void updateIconSet (int); - virtual void updateIcon (int); - virtual void updateToolTip (int); - virtual void updateWhatsThis (int); - -%If ( KDE_3_1_0 - ) - QString whatsThisWithIcon () const; - -%If ( KDE_3_3_0 - ) - const KGuiItem& guiItem () const; -%End - -%End - - -signals: - void activated (); - -%If ( KDE_3_4_0 - ) - void activated (KAction::ActivationReason, Qt::ButtonState); -%End - - void enabled (bool); - -public: - int accel () const; - QString statusText () const; - void setAccel (int); - void setStatusText (const QString&); - int menuId (int); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KAction - - -%If ( - KDE_3_2_0 ) - -class KToggleAction : KAction -{ -%TypeHeaderCode -#include -%End - - -public: - KToggleAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KToggleAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - KToggleAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KToggleAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KToggleAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - KToggleAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - KToggleAction (QObject* /TransferThis/ = 0, const char* = 0); - virtual int plug (QWidget*, int = -1); - bool isChecked () const; - QString exclusiveGroup () const; - virtual void setExclusiveGroup (const QString&); - -public slots: - virtual void setChecked (bool); - -protected slots: - virtual void slotActivated (); - -protected: - virtual void updateChecked (int); - -signals: - void toggled (bool); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KToggleAction - -%End - - -%If ( - KDE_3_2_0 ) - -class KRadioAction : KToggleAction -{ -%TypeHeaderCode -#include -%End - - -public: - KRadioAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KRadioAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - KRadioAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KRadioAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KRadioAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - KRadioAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - KRadioAction (QObject* /TransferThis/ = 0, const char* = 0); - -protected: - virtual void slotActivated (); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KRadioAction - -%End - - -%If ( - KDE_3_2_0 ) - -class KSelectAction : KAction -{ -%TypeHeaderCode -#include -%End - - -public: - KSelectAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KSelectAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - KSelectAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KSelectAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KSelectAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - KSelectAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - KSelectAction (QObject* /TransferThis/ = 0, const char* = 0); - virtual int plug (QWidget*, int = -1); - virtual bool isEditable () const; - virtual QStringList items () const; - virtual void changeItem (int, const QString&); - virtual QString currentText () const; - virtual int currentItem () const; - virtual int comboWidth () const; - QPopupMenu* popupMenu (); - -%If ( KDE_3_1_0 - ) - void setRemoveAmpersandsInCombo (bool); - bool removeAmpersandsInCombo () const; - void setMenuAccelsEnabled (bool); - bool menuAccelsEnabled () const; -%End - - -public slots: - virtual void setCurrentItem (int); - virtual void setItems (const QStringList&); - virtual void clear (); - virtual void setEditable (bool); - virtual void setComboWidth (int); - -protected: - virtual void changeItem (int, int, const QString&); - -%If ( KDE_3_1_0 - ) - QStringList comboItems () const; -%End - - -protected slots: - virtual void slotActivated (int); - virtual void slotActivated (const QString&); - virtual void slotActivated (); - -signals: - void activated (int); - void activated (const QString&); - -protected: - virtual void updateCurrentItem (int); - virtual void updateComboWidth (int); - virtual void updateItems (int); - virtual void updateClear (int); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KSelectAction - -%End - - -%If ( - KDE_3_2_0 ) - -class KListAction : KSelectAction -{ -%TypeHeaderCode -#include -%End - - -public: - KListAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KListAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - KListAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KListAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KListAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - KListAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - KListAction (QObject* /TransferThis/ = 0, const char* = 0); - virtual QString currentText () const; - virtual int currentItem () const; - -public slots: - virtual void setCurrentItem (int); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KListAction - -%End - - -%If ( - KDE_3_2_0 ) - -class KRecentFilesAction : KListAction -{ -%TypeHeaderCode -#include -%End - - -public: - KRecentFilesAction (const QString&, const KShortcut&, QObject* /TransferThis/, const char* = 0, uint = 10); - KRecentFilesAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0, uint = 10); - KRecentFilesAction (const QString&, const QIconSet&, const KShortcut&, QObject* /TransferThis/, const char* = 0, uint = 10); - KRecentFilesAction (const QString&, const QString&, const KShortcut&, QObject* /TransferThis/, const char* = 0, uint = 10); - KRecentFilesAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0, uint = 10); - KRecentFilesAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0, uint = 10); - KRecentFilesAction (QObject* /TransferThis/ = 0, const char* = 0, uint = 10); - uint maxItems () const; - -public slots: - void setMaxItems (uint); - void loadEntries (KConfig*, QString = QString ::null ); - void saveEntries (KConfig*, QString = QString ::null ); - -public slots: - void addURL (const KURL&); - void removeURL (const KURL&); - void clearURLList (); - -signals: - void urlSelected (const KURL&); - -protected slots: - void itemSelected (const QString&); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KRecentFilesAction - -%End - - -%If ( - KDE_3_2_0 ) - -class KFontAction : KSelectAction -{ -%TypeHeaderCode -#include -%End - - -public: - KFontAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KFontAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - KFontAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KFontAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KFontAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - KFontAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - KFontAction (QObject* /TransferThis/ = 0, const char* = 0); - QString font () const; - int plug (QWidget*, int = -1); - -public slots: - void setFont (const QString&); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KFontAction - -%End - - -%If ( - KDE_3_2_0 ) - -class KFontSizeAction : KSelectAction -{ -%TypeHeaderCode -#include -%End - - -public: - KFontSizeAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KFontSizeAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - KFontSizeAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KFontSizeAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KFontSizeAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - KFontSizeAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - KFontSizeAction (QObject* /TransferThis/ = 0, const char* = 0); - virtual int fontSize () const; - -public slots: - virtual void setFontSize (int); - -protected slots: - virtual void slotActivated (int); - virtual void slotActivated (const QString&); - virtual void slotActivated (); - -signals: - void fontSizeChanged (int); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KFontSizeAction - -%End - - -%If ( - KDE_3_2_0 ) - -class KActionMenu : KAction -{ -%TypeHeaderCode -#include -%End - - -public: - KActionMenu (const QString&, QObject* /TransferThis/ = 0, const char* = 0); - KActionMenu (const QString&, const QIconSet&, QObject* /TransferThis/ = 0, const char* = 0); - KActionMenu (const QString&, const QString&, QObject* /TransferThis/ = 0, const char* = 0); - KActionMenu (QObject* /TransferThis/ = 0, const char* = 0); - virtual void insert (KAction*, int = -1); - virtual void remove (KAction*); - KPopupMenu* popupMenu (); - void popup (const QPoint&); - bool delayed () const; - void setDelayed (bool); - bool stickyMenu () const; - void setStickyMenu (bool); - virtual int plug (QWidget*, int = -1); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KActionMenu - -%End - - -%If ( - KDE_3_2_0 ) - -class KToolBarPopupAction : KAction -{ -%TypeHeaderCode -#include -%End - - -public: - KToolBarPopupAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KToolBarPopupAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/ = 0, const char* = 0); - KToolBarPopupAction (const KGuiItem&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /TransferThis/, const char*); - virtual int plug (QWidget*, int = -1); - KPopupMenu* popupMenu (); - bool delayed () const; - void setDelayed (bool); - bool stickyMenu () const; - void setStickyMenu (bool); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KToolBarPopupAction - -%End - - -%If ( KDE_3_1_0 - KDE_3_2_0 ) - -class KToggleToolBarAction : KToggleAction -{ -%TypeHeaderCode -#include -%End - - -public: - KToggleToolBarAction (const char*, const QString&, KActionCollection* /TransferThis/, const char*); - KToggleToolBarAction (KToolBar*, const QString&, KActionCollection* /TransferThis/, const char*); - virtual int plug (QWidget*, int = -1); - KToolBar* toolBar (); - -public slots: - virtual void setChecked (bool); - -protected: - virtual void virtual_hook (int, void*); - -}; // class KToggleToolBarAction - -%End - - -%If ( KDE_3_1_0 - KDE_3_2_0 ) - -class KWidgetAction : KAction -{ -%TypeHeaderCode -#include -%End - - -public: - KWidgetAction (QWidget*, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /TransferThis/, const char*); - QWidget* widget (); - void setAutoSized (bool); - virtual int plug (QWidget*, int = -1); - virtual void unplug (QWidget*); - -protected slots: - void slotToolbarDestroyed (); - -protected: - virtual void virtual_hook (int, void*); - -}; // class KWidgetAction - -%End - - -%If ( - KDE_3_2_0 ) - -class KActionSeparator : KAction -{ -%TypeHeaderCode -#include -%End - - -public: - KActionSeparator (QObject* /TransferThis/ = 0, const char* = 0); - virtual int plug (QWidget*, int = -1); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KActionSeparator - -%End - - -%If ( - KDE_3_2_0 ) - -class KActionCollection : QObject -{ -%TypeHeaderCode -#include -%End - - -public: - KActionCollection (QWidget* /TransferThis/, const char* = 0, KInstance* = 0); - KActionCollection (QWidget*, QObject* /TransferThis/, const char* = 0, KInstance* = 0); - KActionCollection (const KActionCollection&); - virtual void setWidget (QWidget*); - -%If ( KDE_3_1_0 - ) - void setAutoConnectShortcuts (bool); - bool isAutoConnectShortcuts (); - bool addDocCollection (KActionCollection*); -%End - - virtual KAccel* accel (); - -%If ( KDE_3_1_0 - ) - KAccel* kaccel (); - KAccel* builderKAccel () const; -%End - - virtual uint count () const; - bool isEmpty () const; - virtual KAction* action (int) const; - virtual KAction* action (const char*, const char* = 0) const; - virtual QStringList groups () const; - -%If ( KDE_3_1_5 - ) - virtual QValueList actions (const QString&) const; - virtual QValueList actions () const; -%End - - bool readShortcutSettings (const QString& = QString ::null , KConfigBase* = 0); - bool writeShortcutSettings (const QString& = QString ::null , KConfigBase* = 0) const; - void setInstance (KInstance*); - KInstance* instance () const; - void setXMLFile (const QString&); - const QString& xmlFile () const; - void setHighlightingEnabled (bool); - bool highlightingEnabled () const; - void connectHighlight (QWidget*, KAction*); - void disconnectHighlight (QWidget*, KAction*); - -signals: - void inserted (KAction*); - void removed (KAction*); - void actionHighlighted (KAction*); - void actionHighlighted (KAction*, bool); - void actionStatusText (const QString&); - void clearStatusText (); - -public: - KActionCollection (QObject* /TransferThis/ = 0, const char* = 0, KInstance* = 0); - void insert (KAction*); - void remove (KAction*); - KAction* take (KAction*); - -%If ( KDE_3_1_4 - ) - KActionCollection operator + (const KActionCollection&) const; - KActionCollection& operator += (const KActionCollection&); -%End - - -public slots: - void clear (); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KActionCollection - -%End - - -%If ( - KDE_3_2_0 ) -//ig typedef QValueList KActionPtrList; -%End - - -%MappedType QValueList -//converts a Python list of KAction -{ -%TypeHeaderCode -#include -#include -//typedef QValueList KActionPtrList; -%End - -%ConvertFromTypeCode - if (!sipCpp) - return PyList_New(0); - - // Create the list - PyObject *pylist; - if ((pylist = PyList_New(0)) == NULL) - return NULL; - - QValueList *cpplist = (QValueList *)sipCpp; - PyObject *inst; - - // Get it. - QValueList::Iterator it; - for( it = cpplist->begin(); it != cpplist->end(); ++it ) - { - if (((inst = sipConvertFromInstance (*it, sipClass_KAction, sipTransferObj)) == NULL) - || PyList_Append (pylist, inst) < 0) - { - Py_DECREF (pylist); - return NULL; - } - } - - return pylist; -%End - - -%ConvertToTypeCode - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - QValueList *cpplist = new QValueList; - - PyObject *elem; - KAction* cpp; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - elem = PyList_GET_ITEM (sipPy, i); - cpp = (KAction *)sipForceConvertToType(elem, sipType_KAction, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - diff --git a/sip/kdeui/kactionclasses.sip b/sip/kdeui/kactionclasses.sip deleted file mode 100644 index 05d1eeb..0000000 --- a/sip/kdeui/kactionclasses.sip +++ /dev/null @@ -1,529 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_2_0 - ) - -class KToggleAction : KAction -{ -%TypeHeaderCode -#include -%End - - -public: - KToggleAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KToggleAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - KToggleAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KToggleAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KToggleAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - KToggleAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - KToggleAction (QObject* /TransferThis/ = 0, const char* = 0); - virtual int plug (QWidget*, int = -1); - bool isChecked () const; - QString exclusiveGroup () const; - virtual void setExclusiveGroup (const QString&); - -%If ( KDE_3_3_0 - ) - void setCheckedState (const KGuiItem&); - virtual QString toolTip () const; -%End - - -public slots: - virtual void setChecked (bool); - -protected slots: - virtual void slotActivated (); - -protected: - virtual void updateChecked (int); - -signals: - void toggled (bool); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KToggleAction - -%End - - -%If ( KDE_3_2_0 - ) - -class KRadioAction : KToggleAction -{ -%TypeHeaderCode -#include -%End - - -public: - KRadioAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KRadioAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - KRadioAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KRadioAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KRadioAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - KRadioAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - KRadioAction (QObject* /TransferThis/ = 0, const char* = 0); - -protected: - virtual void slotActivated (); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KRadioAction - -%End - - -%If ( KDE_3_2_0 - ) - -class KSelectAction : KAction -{ -%TypeHeaderCode -#include -%End - - -public: - KSelectAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KSelectAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - KSelectAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KSelectAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KSelectAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - KSelectAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - KSelectAction (QObject* /TransferThis/ = 0, const char* = 0); - virtual int plug (QWidget*, int = -1); - virtual bool isEditable () const; - virtual QStringList items () const; - virtual void changeItem (int, const QString&); - virtual QString currentText () const; - virtual int currentItem () const; - virtual int comboWidth () const; - -%If ( KDE_3_5_0 - ) - void setMaxComboViewCount (int); -%End - - QPopupMenu* popupMenu () const; - void setRemoveAmpersandsInCombo (bool); - bool removeAmpersandsInCombo () const; - void setMenuAccelsEnabled (bool); - bool menuAccelsEnabled () const; - -%If ( KDE_3_5_0 - ) - virtual bool isShortcutConfigurable () const; -%End - - -public slots: - virtual void setCurrentItem (int); - virtual void setItems (const QStringList&); - virtual void clear (); - virtual void setEditable (bool); - virtual void setComboWidth (int); - -protected: - virtual void changeItem (int, int, const QString&); - QStringList comboItems () const; - -protected slots: - virtual void slotActivated (int); - virtual void slotActivated (const QString&); - virtual void slotActivated (); - -signals: - void activated (int); - void activated (const QString&); - -protected: - virtual void updateCurrentItem (int); - virtual void updateComboWidth (int); - virtual void updateItems (int); - virtual void updateClear (int); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KSelectAction - -%End - - -%If ( KDE_3_2_0 - ) - -class KListAction : KSelectAction -{ -%TypeHeaderCode -#include -%End - - -public: - KListAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KListAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - KListAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KListAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KListAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - KListAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - KListAction (QObject* /TransferThis/ = 0, const char* = 0); - virtual QString currentText () const; - virtual int currentItem () const; - -public slots: - virtual void setCurrentItem (int); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KListAction - -%End - - -%If ( KDE_3_2_0 - ) - -class KRecentFilesAction : KListAction -{ -%TypeHeaderCode -#include -%End - - -public: - KRecentFilesAction (const QString&, const KShortcut&, QObject* /TransferThis/, const char* = 0, uint = 10); - KRecentFilesAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0, uint = 10); - KRecentFilesAction (const QString&, const QIconSet&, const KShortcut&, QObject* /TransferThis/, const char* = 0, uint = 10); - KRecentFilesAction (const QString&, const QString&, const KShortcut&, QObject* /TransferThis/, const char* = 0, uint = 10); - KRecentFilesAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0, uint = 10); - KRecentFilesAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0, uint = 10); - KRecentFilesAction (QObject* /TransferThis/ = 0, const char* = 0, uint = 10); - virtual int plug (QWidget*, int = -1); - uint maxItems () const; - -%If ( KDE_3_5_0 - ) - virtual QStringList items () const; - QStringList completeItems () const; -%End - - -public slots: - void setMaxItems (uint); - void loadEntries (KConfig*, QString = QString ::null ); - void saveEntries (KConfig*, QString = QString ::null ); - void addURL (const KURL&); - -%If ( KDE_3_5_0 - ) - void addURL (const KURL&, const QString&); -%End - - void removeURL (const KURL&); - void clearURLList (); - -signals: - void urlSelected (const KURL&); - -protected slots: - void itemSelected (const QString&); - void menuAboutToShow (); - void menuItemActivated (int); - void slotClicked (); - virtual void slotActivated (int); - virtual void slotActivated (const QString&); - virtual void slotActivated (); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KRecentFilesAction - -%End - - -%If ( KDE_3_2_0 - ) - -class KFontAction : KSelectAction -{ -%TypeHeaderCode -#include -%End - - -public: - KFontAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KFontAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - KFontAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KFontAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KFontAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - KFontAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - -%If ( KDE_3_3_0 - ) - KFontAction (uint, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KFontAction (uint, const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); -%End - - KFontAction (QObject* /TransferThis/ = 0, const char* = 0); - QString font () const; - int plug (QWidget*, int = -1); - -public slots: - void setFont (const QString&); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KFontAction - -%End - - -%If ( KDE_3_2_0 - ) - -class KFontSizeAction : KSelectAction -{ -%TypeHeaderCode -#include -%End - - -public: - KFontSizeAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KFontSizeAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - KFontSizeAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KFontSizeAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KFontSizeAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - KFontSizeAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); - KFontSizeAction (QObject* /TransferThis/ = 0, const char* = 0); - virtual int fontSize () const; - -public slots: - virtual void setFontSize (int); - -protected slots: - virtual void slotActivated (int); - virtual void slotActivated (const QString&); - virtual void slotActivated (); - -signals: - void fontSizeChanged (int); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KFontSizeAction - -%End - - -%If ( KDE_3_2_0 - ) - -class KActionMenu : KAction -{ -%TypeHeaderCode -#include -%End - - -public: - KActionMenu (const QString&, QObject* /TransferThis/ = 0, const char* = 0); - KActionMenu (const QString&, const QIconSet&, QObject* /TransferThis/ = 0, const char* = 0); - KActionMenu (const QString&, const QString&, QObject* /TransferThis/ = 0, const char* = 0); - KActionMenu (QObject* /TransferThis/ = 0, const char* = 0); - virtual void insert (KAction*, int = -1); - virtual void remove (KAction*); - KPopupMenu* popupMenu () const; - void popup (const QPoint&); - bool delayed () const; - void setDelayed (bool); - bool stickyMenu () const; - void setStickyMenu (bool); - virtual int plug (QWidget*, int = -1); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KActionMenu - -%End - - -%If ( KDE_3_2_0 - ) - -class KToolBarPopupAction : KAction -{ -%TypeHeaderCode -#include -%End - - -public: - KToolBarPopupAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); - KToolBarPopupAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/ = 0, const char* = 0); - KToolBarPopupAction (const KGuiItem&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /TransferThis/, const char*); - virtual int plug (QWidget*, int = -1); - KPopupMenu* popupMenu () const; - bool delayed () const; - void setDelayed (bool); - bool stickyMenu () const; - void setStickyMenu (bool); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KToolBarPopupAction - -%End - - -%If ( KDE_3_2_0 - ) - -class KToggleToolBarAction : KToggleAction -{ -%TypeHeaderCode -#include -%End - - -public: - KToggleToolBarAction (const char*, const QString&, KActionCollection* /TransferThis/, const char*); - KToggleToolBarAction (KToolBar*, const QString&, KActionCollection* /TransferThis/, const char*); - virtual int plug (QWidget*, int = -1); - KToolBar* toolBar (); - -public slots: - virtual void setChecked (bool); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KToggleToolBarAction - -%End - - -%If ( KDE_3_2_0 - ) - -class KToggleFullScreenAction : KToggleAction -{ -%TypeHeaderCode -#include -%End - - -public: - KToggleFullScreenAction (const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, QWidget*, const char*); - void setWindow (QWidget*); - -public slots: - virtual void setChecked (bool); - -protected: - virtual bool eventFilter (QObject*, QEvent*); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KToggleFullScreenAction - -%End - - -%If ( KDE_3_2_0 - ) - -class KWidgetAction : KAction -{ -%TypeHeaderCode -#include -%End - - -public: - KWidgetAction (QWidget*, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /TransferThis/, const char*); - QWidget* widget (); - void setAutoSized (bool); - virtual int plug (QWidget*, int = -1); - virtual void unplug (QWidget*); - -protected slots: - void slotToolbarDestroyed (); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KWidgetAction - -%End - - -%If ( KDE_3_2_0 - ) - -class KActionSeparator : KAction -{ -%TypeHeaderCode -#include -%End - - -public: - KActionSeparator (QObject* /TransferThis/ = 0, const char* = 0); - virtual int plug (QWidget*, int = -1); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KActionSeparator - -%End - - -%If ( KDE_3_2_0 - ) - -class KPasteTextAction : KAction -{ -%TypeHeaderCode -#include -%End - - -public: - KPasteTextAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/ = 0, const char* = 0); - void setMixedMode (bool); - virtual int plug (QWidget*, int = -1); - -protected slots: - void menuAboutToShow (); - void menuItemActivated (int); - virtual void slotActivated (); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KPasteTextAction - -%End - diff --git a/sip/kdeui/kactioncollection.sip b/sip/kdeui/kactioncollection.sip deleted file mode 100644 index 2ba8bea..0000000 --- a/sip/kdeui/kactioncollection.sip +++ /dev/null @@ -1,125 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_2_0 - ) - -class KActionCollection : QObject -{ -%TypeHeaderCode -#include -%End - - -public: - KActionCollection (QWidget* /TransferThis/, const char* = 0, KInstance* = 0); - KActionCollection (QWidget*, QObject* /TransferThis/, const char* = 0, KInstance* = 0); - KActionCollection (const KActionCollection&); - virtual void setWidget (QWidget*); - void setAutoConnectShortcuts (bool); - bool isAutoConnectShortcuts (); - bool addDocCollection (KActionCollection*); - virtual KAccel* accel (); - KAccel* kaccel (); - KAccel* builderKAccel () const; - virtual uint count () const; - bool isEmpty () const; - virtual KAction* action (int) const; - virtual KAction* action (const char*, const char* = 0) const; - virtual QStringList groups () const; - virtual KActionPtrList actions (const QString&) const; - virtual KActionPtrList actions () const; - bool readShortcutSettings (const QString& = QString ::null , KConfigBase* = 0); - bool writeShortcutSettings (const QString& = QString ::null , KConfigBase* = 0) const; - void setInstance (KInstance*); - KInstance* instance () const; - void setXMLFile (const QString&); - const QString& xmlFile () const; - void setHighlightingEnabled (bool); - bool highlightingEnabled () const; - void connectHighlight (QWidget*, KAction*); - void disconnectHighlight (QWidget*, KAction*); - -%If ( KDE_3_3_0 - ) - const KXMLGUIClient* parentGUIClient () const; -%End - - -signals: - void inserted (KAction*); - void removed (KAction*); - void actionHighlighted (KAction*); - void actionHighlighted (KAction*, bool); - void actionStatusText (const QString&); - void clearStatusText (); - -public: - KActionCollection (QObject* /TransferThis/, const char* = 0, KInstance* = 0); - -public: - void insert (KAction*); - void remove (KAction*); - KAction* take (KAction*); - KActionCollection operator + (const KActionCollection&) const; - KActionCollection& operator += (const KActionCollection&); - -public slots: - void clear (); - -protected: -//igx virtual void virtual_hook (int, void*); - -%If ( KDE_3_3_0 - ) - -private: - KActionCollection (const char*, const KXMLGUIClient* /TransferThis/); -%End - - -public: - -%If ( - KDE_3_2_2 ) - -%If ( D_MANDRAKE ) - virtual QValueList actions (const QString&) const; - virtual QValueList actions () const; -%End - -%End - - -}; // class KActionCollection - -%End - - -%If ( KDE_3_2_0 - ) -typedef QValueList KActionPtrList; -%End - - -%If ( - KDE_3_2_2 ) -//ig typedef QValueList KActionPtrList; -%End diff --git a/sip/kdeui/kactionselector.sip b/sip/kdeui/kactionselector.sip deleted file mode 100644 index 9e04f3d..0000000 --- a/sip/kdeui/kactionselector.sip +++ /dev/null @@ -1,106 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_3_0 - ) - -class KActionSelector : QWidget -{ -%TypeHeaderCode -#include -%End - - -public: - KActionSelector (QWidget* /TransferThis/ = 0, const char* = 0); - QListBox* availableListBox () const; - QListBox* selectedListBox () const; - - enum MoveButton - { - ButtonAdd, - ButtonRemove, - ButtonUp, - ButtonDown - }; - - - enum ButtonIconSize - { - SmallIcon, - Small, - Medium, - Large, - XLarge - }; - - - enum InsertionPolicy - { - BelowCurrent, - Sorted, - AtTop, - AtBottom - }; - - bool moveOnDoubleClick () const; - void setMoveOnDoubleClick (bool); - bool keyboardEnabled () const; - void setKeyboardEnabled (bool); - QString availableLabel () const; - void setAvailableLabel (const QString&); - QString selectedLabel () const; - void setSelectedLabel (const QString&); - KActionSelector::ButtonIconSize buttonIconSize () const; - void setButtonIconSize (KActionSelector::ButtonIconSize); - KActionSelector::InsertionPolicy availableInsertionPolicy () const; - void setAvailableInsertionPolicy (KActionSelector::InsertionPolicy); - KActionSelector::InsertionPolicy selectedInsertionPolicy () const; - void setSelectedInsertionPolicy (KActionSelector::InsertionPolicy); - bool showUpDownButtons () const; - void setShowUpDownButtons (bool); - void setButtonIcon (const QString&, KActionSelector::MoveButton); - void setButtonIconSet (const QIconSet&, KActionSelector::MoveButton); - void setButtonTooltip (const QString&, KActionSelector::MoveButton); - void setButtonWhatsThis (const QString&, KActionSelector::MoveButton); - void setButtonsEnabled (); - -signals: - void added (QListBoxItem*); - void removed (QListBoxItem*); - void movedUp (QListBoxItem*); - void movedDown (QListBoxItem*); - -public slots: - void polish (); - -protected: - void keyPressEvent (QKeyEvent*); - bool eventFilter (QObject*, QEvent*); - -}; // class KActionSelector - -%End - diff --git a/sip/kdeui/kactionshortcutlist.sip b/sip/kdeui/kactionshortcutlist.sip deleted file mode 100644 index e26b0cf..0000000 --- a/sip/kdeui/kactionshortcutlist.sip +++ /dev/null @@ -1,106 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KActionShortcutList : KShortcutList -{ -%TypeHeaderCode -#include -#include -#include -#include -%End - - -public: - KActionShortcutList (KActionCollection*); - virtual uint count () const; - virtual QString name (uint) const; - virtual QString label (uint) const; - virtual QString whatsThis (uint) const; - virtual const KShortcut& shortcut (uint) const; - virtual const KShortcut& shortcutDefault (uint) const; - virtual bool isConfigurable (uint) const; - virtual bool setShortcut (uint, const KShortcut&); - virtual const KInstance* instance () const; - virtual QVariant getOther (Other, uint) const; - virtual bool setOther (Other, uint, QVariant); - virtual bool save () const; - -%If ( KDE_3_3_0 - ) - const KAction* action (uint) const; -%End - - -protected: - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KActionShortcutList - - -class KActionPtrShortcutList : KShortcutList -{ -%TypeHeaderCode -#include -#include -#include -#include -%End - - -public: - -%If ( KDE_3_2_0 - ) - KActionPtrShortcutList (KActionPtrList&); -%End - - virtual uint count () const; - virtual QString name (uint) const; - virtual QString label (uint) const; - virtual QString whatsThis (uint) const; - virtual const KShortcut& shortcut (uint) const; - virtual const KShortcut& shortcutDefault (uint) const; - virtual bool isConfigurable (uint) const; - virtual bool setShortcut (uint, const KShortcut&); - virtual QVariant getOther (Other, uint) const; - virtual bool setOther (Other, uint, QVariant); - virtual bool save () const; - -protected: - -protected: -//igx virtual void virtual_hook (int, void*); - -public: - -%If ( - KDE_3_2_0 ) - KActionPtrShortcutList (QValueList&); -%End - - -}; // class KActionPtrShortcutList - diff --git a/sip/kdeui/kactivelabel.sip b/sip/kdeui/kactivelabel.sip deleted file mode 100644 index fa38bc5..0000000 --- a/sip/kdeui/kactivelabel.sip +++ /dev/null @@ -1,58 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KActiveLabel : QTextBrowser -{ -%TypeHeaderCode -#include -%End - - -public: - KActiveLabel (QWidget* /TransferThis/, const char* = 0); - KActiveLabel (const QString&, QWidget* /TransferThis/, const char* = 0); - -%If ( KDE_3_1_0 - ) - QSize minimumSizeHint () const; - QSize sizeHint () const; -%End - - -public slots: - virtual void openLink (const QString&); - -protected: -//igx virtual void virtual_hook (int, void*); - virtual void focusInEvent (QFocusEvent*); - virtual void focusOutEvent (QFocusEvent*); - -%If ( KDE_3_4_0 - ) - virtual void keyPressEvent (QKeyEvent*); -%End - - -}; // class KActiveLabel - diff --git a/sip/kdeui/kalphapainter.sip b/sip/kdeui/kalphapainter.sip deleted file mode 100644 index 881e3c3..0000000 --- a/sip/kdeui/kalphapainter.sip +++ /dev/null @@ -1,41 +0,0 @@ -// -// Copyright 2003 Jim Bublitz -// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE_3_1_1 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KAlphaPainter -{ -%TypeHeaderCode -#include -%End - - -public: - static bool draw (QPainter*, const QImage&, QImage&, int, int, bool = 0, int = 0, int = 0); - static bool draw (QPainter*, const QImage&, const QPixmap&, int, int, bool = 0, int = 0, int = 0); - static bool draw (QPainter*, const QPixmap&, QImage&, int, int, bool = 0, int = 0, int = 0); - static bool draw (QPainter*, const QPixmap&, const QPixmap&, int, int, int = 0, int = 0); - -}; // class KAlphaPainter - diff --git a/sip/kdeui/kanimwidget.sip b/sip/kdeui/kanimwidget.sip deleted file mode 100644 index 21f439f..0000000 --- a/sip/kdeui/kanimwidget.sip +++ /dev/null @@ -1,92 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KAnimWidget : QFrame -{ -%TypeHeaderCode -#include -%End - - -public: - KAnimWidget (const QString&, int = 0, QWidget* /TransferThis/ = 0, const char* = 0); - void setSize (int); - -%If ( KDE_3_4_0 - ) - int size () const; - QString icons () const; -%End - - void setIcons (const QString&); - -public slots: - -%If ( KDE_3_4_0 - ) - void start (); - void stop (); -%End - - -signals: - void clicked (); - -protected: - virtual void drawContents (QPainter*); - virtual void leaveEvent (QEvent*); - virtual void enterEvent (QEvent*); - virtual void hideEvent (QHideEvent*); - virtual void showEvent (QShowEvent*); - virtual void mousePressEvent (QMouseEvent*); - -%If ( KDE_3_1_0 - ) - virtual void mouseReleaseEvent (QMouseEvent*); -%End - - -protected slots: - void slotTimerUpdate (); - void updateIcons (); - -protected: -//igx virtual void virtual_hook (int, void*); - -public: - -%If ( - KDE_3_4_0 ) - void start (); - void stop (); -%End - - -public: - -%If ( - KDE_3_2_0 ) -//ig KAnimWidget (QWidget* /TransferThis/ = 0, const char* = 0); -%End - - -}; // class KAnimWidget - diff --git a/sip/kdeui/karrowbutton.sip b/sip/kdeui/karrowbutton.sip deleted file mode 100644 index 3d94594..0000000 --- a/sip/kdeui/karrowbutton.sip +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KArrowButton : QPushButton -{ -%TypeHeaderCode -#include -%End - - -public: - KArrowButton (QWidget* /TransferThis/ = 0, Qt::ArrowType = Qt ::UpArrow , const char* = 0); - virtual QSize sizeHint () const; - -%If ( KDE_3_4_0 - ) - Qt::ArrowType arrowType () const; - int arrowTp () const; - void setArrowTp (int); -%End - - -public slots: - void setArrowType (Qt::ArrowType); - -protected: - virtual void drawButton (QPainter*); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KArrowButton - diff --git a/sip/kdeui/kauthicon.sip b/sip/kdeui/kauthicon.sip deleted file mode 100644 index 2ff31fe..0000000 --- a/sip/kdeui/kauthicon.sip +++ /dev/null @@ -1,101 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KAuthIcon : QWidget -{ -%TypeHeaderCode -#include -%End - - -public: - KAuthIcon (QWidget* /TransferThis/ = 0, const char* = 0); - virtual QSize sizeHint () const; - virtual bool status () const = 0; - -public slots: - virtual void updateStatus () = 0; - -signals: - void authChanged (bool); - -protected: - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KAuthIcon - - -class KRootPermsIcon : KAuthIcon -{ -%TypeHeaderCode -#include -%End - - -public: - KRootPermsIcon (QWidget* /TransferThis/ = 0, const char* = 0); - bool status () const; - -public slots: - void updateStatus (); - -protected: - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KRootPermsIcon - - -class KWritePermsIcon : KAuthIcon -{ -%TypeHeaderCode -#include -%End - - -public: - KWritePermsIcon (const QString&, QWidget* /TransferThis/ = 0, const char* = 0); - bool status () const; - void setFileName (const QString&); - -%If ( KDE_3_4_0 - ) - QString fileName () const; -%End - - -public slots: - void updateStatus (); - -protected: - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KWritePermsIcon - diff --git a/sip/kdeui/kbugreport.sip b/sip/kdeui/kbugreport.sip deleted file mode 100644 index 558f767..0000000 --- a/sip/kdeui/kbugreport.sip +++ /dev/null @@ -1,54 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KBugReport : KDialogBase -{ -%TypeHeaderCode -#include -%End - - -public: - KBugReport (QWidget* /TransferThis/ = 0, bool = 1, const KAboutData* = 0); - -protected slots: - virtual void slotConfigureEmail (); - virtual void slotSetFrom (); - virtual void slotUrlClicked (const QString&); - virtual void slotOk (); - virtual void slotCancel (); - void appChanged (int); - void updateURL (); - -protected: - QString text (); - bool sendBugReport (); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KBugReport - diff --git a/sip/kdeui/kbuttonbox.sip b/sip/kdeui/kbuttonbox.sip deleted file mode 100644 index 4a62fec..0000000 --- a/sip/kdeui/kbuttonbox.sip +++ /dev/null @@ -1,59 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KButtonBox : QWidget -{ -%TypeHeaderCode -#include -%End - - -public: - KButtonBox (QWidget* /TransferThis/, Orientation = Horizontal , int = 0, int = 6); - virtual QSize sizeHint () const; - virtual QSizePolicy sizePolicy () const; - virtual void resizeEvent (QResizeEvent*); - QPushButton* addButton (const QString&, bool = 0); - QPushButton* addButton (const QString&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 0); - -%If ( KDE_3_3_0 - ) - QPushButton* addButton (const KGuiItem&, bool = 0); - QPushButton* addButton (const KGuiItem&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 0); -%End - - void addStretch (int = 1); - void layout (); - -protected: - QSize bestButtonSize () const; - void placeButtons (); - QSize buttonSizeHint (QPushButton*) const; - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KButtonBox - diff --git a/sip/kdeui/kcharselect.sip b/sip/kdeui/kcharselect.sip deleted file mode 100644 index d2f24d3..0000000 --- a/sip/kdeui/kcharselect.sip +++ /dev/null @@ -1,130 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KCharSelectTable : QGridView -{ -%TypeHeaderCode -#include -%End - - -public: - KCharSelectTable (QWidget* /TransferThis/, const char*, const QString&, const QChar&, int); - virtual QSize sizeHint () const; - virtual void resizeEvent (QResizeEvent*); - virtual void setFont (const QString&); - virtual void setChar (const QChar&); - virtual void setTableNum (int); - virtual QChar chr (); - -protected: - virtual void paintCell (QPainter*, int, int); - virtual void mousePressEvent (QMouseEvent*); - virtual void mouseDoubleClickEvent (QMouseEvent*); - virtual void mouseReleaseEvent (QMouseEvent*); - virtual void mouseMoveEvent (QMouseEvent*); - virtual void keyPressEvent (QKeyEvent*); - void gotoLeft (); - void gotoRight (); - void gotoUp (); - void gotoDown (); - -signals: - void highlighted (const QChar&); - void highlighted (); - void activated (const QChar&); - void activated (); - void focusItemChanged (); - void focusItemChanged (const QChar&); - void tableUp (); - void tableDown (); - void doubleClicked (); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KCharSelectTable - - -class KCharSelect : QVBox -{ -%TypeHeaderCode -#include -%End - - -public: - KCharSelect (QWidget* /TransferThis/, const char*, const QString& = QString ::null , const QChar& = ' ', int = 0); - virtual QSize sizeHint () const; - virtual void setFont (const QString&); - virtual void setChar (const QChar&); - virtual void setTableNum (int); - virtual QChar chr () const; - virtual QString font () const; - virtual int tableNum () const; - virtual void enableFontCombo (bool); - virtual void enableTableSpinBox (bool); - virtual bool isFontComboEnabled () const; - virtual bool isTableSpinBoxEnabled () const; - -protected: - virtual void fillFontCombo (); - static void cleanupFontDatabase (); - -protected slots: - void fontSelected (const QString&); - void tableChanged (int); - void charHighlighted (const QChar&); - void charHighlighted (); - void charActivated (const QChar&); - void charActivated (); - void charFocusItemChanged (); - void charFocusItemChanged (const QChar&); - void charTableUp (); - void charTableDown (); - void slotDoubleClicked (); - -%If ( KDE_3_3_0 - ) - void slotUnicodeEntered (); - void slotUpdateUnicode (const QChar&); -%End - - -signals: - void highlighted (const QChar&); - void highlighted (); - void activated (const QChar&); - void activated (); - void fontChanged (const QString&); - void focusItemChanged (); - void focusItemChanged (const QChar&); - void doubleClicked (); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KCharSelect - diff --git a/sip/kdeui/kcmenumngr.sip b/sip/kdeui/kcmenumngr.sip deleted file mode 100644 index d3f89c3..0000000 --- a/sip/kdeui/kcmenumngr.sip +++ /dev/null @@ -1,43 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KContextMenuManager : QObject -{ -%TypeHeaderCode -#include -%End - - -public: - static void insert (QWidget*, QPopupMenu*); - static bool showOnButtonPress (); - -private: - KContextMenuManager (QObject* /TransferThis/ = 0, const char* = 0); - ~KContextMenuManager (); - -}; // class KContextMenuManager - diff --git a/sip/kdeui/kcmodule.sip b/sip/kdeui/kcmodule.sip deleted file mode 100644 index 8e37799..0000000 --- a/sip/kdeui/kcmodule.sip +++ /dev/null @@ -1,183 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KCModule : QWidget -{ -%TypeHeaderCode -#include -%End - - -public: - - enum Button - { - Help, - Default, - Apply, - Reset, - Cancel, - Ok, - SysDefault - }; - - KCModule (QWidget* /TransferThis/ = 0, const char* = 0, const QStringList& = QStringList ()); - KCModule (KInstance*, QWidget* /TransferThis/ = 0, const QStringList& = QStringList ()); - virtual void load (); - virtual void save (); - virtual void defaults (); - virtual void sysdefaults (); - virtual QString quickHelp () const; - virtual const KAboutData* aboutData () const; - -%If ( KDE_3_3_0 - ) - void setAboutData (KAboutData*); -%End - - int buttons (); - QString rootOnlyMsg () const; - bool useRootOnlyMsg () const; - KInstance* instance () const; - -%If ( KDE_3_4_0 - ) - const QPtrList& configs () const; -%End - - -protected: - -%If ( KDE_3_3_0 - ) - KConfigDialogManager* addConfig (KConfigSkeleton*, QWidget*); - void setQuickHelp (const QString&); -%End - - -signals: - void changed (bool); - void quickHelpChanged (); - -protected slots: - -%If ( KDE_3_3_0 - ) - void changed (); - -%If ( KDE_3_4_0 - ) - void widgetChanged (); -%End - -%End - - -protected: - void setButtons (int); - void setRootOnlyMsg (const QString&); - void setUseRootOnlyMsg (bool); - -%If ( KDE_3_5_0 - ) - bool managedWidgetChangeState () const; - void unmanagedWidgetChangeState (bool); -%End - - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KCModule - - - -%If (KDE_3_3_0 - ) -%MappedType QPtrList -//converts a Python list of KConfigDialogManager -{ -%TypeHeaderCode -#include -%End - -%ConvertFromTypeCode - if (!sipCpp) - return PyList_New (0); - - PyObject *pylist; - - // Create the list - - if ((pylist = PyList_New(0)) == NULL) - return NULL; - - // Get it. - - QPtrList *cpplist = (QPtrList *)sipCpp; - KConfigDialogManager *cpp; - PyObject *inst; - - // the loop depends on the type of iterator the tmeplate makes available - for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) - { - if (((inst = sipConvertFromInstance (cpp, sipClass_KConfigDialogManager, sipTransferObj)) == NULL) - || PyList_Append (pylist, inst) < 0) - { - Py_DECREF (pylist); - return NULL; - } - } - - return pylist; -%End - -%ConvertToTypeCode - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - QPtrList *cpplist = new QPtrList; - - PyObject *elem; - KConfigDialogManager *cpp; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - elem = PyList_GET_ITEM (sipPy, i); - cpp = (KConfigDialogManager *)sipForceConvertToType(elem, sipType_KConfigDialogManager, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; -%End - - diff --git a/sip/kdeui/kcolorbtn.sip b/sip/kdeui/kcolorbtn.sip deleted file mode 100644 index 8ca3db3..0000000 --- a/sip/kdeui/kcolorbtn.sip +++ /dev/null @@ -1,54 +0,0 @@ -// -// Copyright 2003 Jim Bublitz -// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE_3_1_1 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KColorButton : QPushButton -{ -%TypeHeaderCode -#include -%End - - -public: - KColorButton (QWidget*/TransferThis/, const char* = 0); - KColorButton (const QColor&, QWidget*/TransferThis/, const char* = 0); - QColor color () const; - void setColor (const QColor&); - -signals: - void changed (const QColor&); - -protected slots: - void chooseColor (); - -protected: - virtual void drawButtonLabel (QPainter*); - virtual void dragEnterEvent (QDragEnterEvent*); - virtual void dropEvent (QDropEvent*); - virtual void mousePressEvent (QMouseEvent*); - virtual void mouseMoveEvent (QMouseEvent*); - -}; // class KColorButton - diff --git a/sip/kdeui/kcolorcombo.sip b/sip/kdeui/kcolorcombo.sip deleted file mode 100644 index 21fa8e4..0000000 --- a/sip/kdeui/kcolorcombo.sip +++ /dev/null @@ -1,51 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KColorCombo : QComboBox -{ -%TypeHeaderCode -#include -%End - - -public: - KColorCombo (QWidget* /TransferThis/, const char* = 0); - void setColor (const QColor&); - QColor color (); - void showEmptyList (); - -signals: - void activated (const QColor&); - void highlighted (const QColor&); - -protected: - virtual void resizeEvent (QResizeEvent*); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KColorCombo - diff --git a/sip/kdeui/kcolordialog.sip b/sip/kdeui/kcolordialog.sip deleted file mode 100644 index a1e8bd7..0000000 --- a/sip/kdeui/kcolordialog.sip +++ /dev/null @@ -1,237 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KHSSelector : KXYSelector -{ -%TypeHeaderCode -#include -%End - - -public: - KHSSelector (QWidget* /TransferThis/ = 0, const char* = 0); - -protected: - virtual void drawPalette (QPixmap*); - virtual void resizeEvent (QResizeEvent*); - virtual void drawContents (QPainter*); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KHSSelector - - -class KValueSelector : KSelector -{ -%TypeHeaderCode -#include -%End - - -public: - KValueSelector (QWidget* /TransferThis/ = 0, const char* = 0); - KValueSelector (Orientation, QWidget* /TransferThis/ = 0, const char* = 0); - int hue () const; - void setHue (int); - int saturation () const; - void setSaturation (int); - void updateContents (); - -protected: - virtual void drawPalette (QPixmap*); - virtual void resizeEvent (QResizeEvent*); - virtual void drawContents (QPainter*); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KValueSelector - - -class KColor : QColor -{ -%TypeHeaderCode -#include -%End - - -public: - KColor (); - KColor (const KColor&); - KColor (const QColor&); - -%If ( KDE_3_1_4 - ) - bool operator == (const KColor&) const; -%End - - void setHsv (int, int, int); - void setRgb (int, int, int); - void rgb (int*, int*, int*); - void hsv (int*, int*, int*); - -protected: - -}; // class KColor - - -class KPaletteTable : QWidget -{ -%TypeHeaderCode -#include -%End - - -public: - KPaletteTable (QWidget* /TransferThis/, int = 210, int = 16); - void addToCustomColors (const QColor&); - void addToRecentColors (const QColor&); - QString palette (); - -public slots: - void setPalette (const QString&); - -signals: - void colorSelected (const QColor&, const QString&); - void colorDoubleClicked (const QColor&, const QString&); - -protected slots: - void slotColorCellSelected (int); - void slotColorCellDoubleClicked (int); - void slotColorTextSelected (const QString&); - void slotSetPalette (const QString&); - void slotShowNamedColorReadError (); - -protected: - void readNamedColor (); - -protected: - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KPaletteTable - - -class KColorCells : QGridView -{ -%TypeHeaderCode -#include -%End - - -public: - KColorCells (QWidget* /TransferThis/, int, int); - void setColor (int, const QColor&); - QColor color (int) const; - int numCells () const; - void setShading (bool); - void setAcceptDrags (bool); - int getSelected () const; - -signals: - void colorSelected (int); - void colorDoubleClicked (int); - -protected: - virtual void paintCell (QPainter*, int, int); - virtual void resizeEvent (QResizeEvent*); - virtual void mouseReleaseEvent (QMouseEvent*); - virtual void mousePressEvent (QMouseEvent*); - virtual void mouseMoveEvent (QMouseEvent*); - virtual void dragEnterEvent (QDragEnterEvent*); - virtual void dropEvent (QDropEvent*); - virtual void mouseDoubleClickEvent (QMouseEvent*); - int posToCell (const QPoint&, bool = 0); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KColorCells - - -class KColorPatch : QFrame -{ -%TypeHeaderCode -#include -%End - - -public: - KColorPatch (QWidget* /TransferThis/); - void setColor (const QColor&); - -signals: - void colorChanged (const QColor&); - -protected: - virtual void drawContents (QPainter*); - virtual void mouseMoveEvent (QMouseEvent*); - virtual void dragEnterEvent (QDragEnterEvent*); - virtual void dropEvent (QDropEvent*); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KColorPatch - - -class KColorDialog : KDialogBase -{ -%TypeHeaderCode -#include -%End - - -public: - KColorDialog (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0); - QColor color (); - static int getColor (QColor&, QWidget* /Transfer/ = 0); - static int getColor (QColor&, const QColor&, QWidget* /Transfer/ = 0); - static QColor grabColor (const QPoint&); - void setDefaultColor (const QColor&); - QColor defaultColor () const; - -public slots: - void setColor (const QColor&); - -signals: - void colorSelected (const QColor&); - -protected: - virtual void mouseReleaseEvent (QMouseEvent*); - virtual void keyPressEvent (QKeyEvent*); - -%If ( KDE_3_2_0 - ) - virtual bool eventFilter (QObject*, QEvent*); -%End - - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KColorDialog - diff --git a/sip/kdeui/kcolordrag.sip b/sip/kdeui/kcolordrag.sip deleted file mode 100644 index 8ef7347..0000000 --- a/sip/kdeui/kcolordrag.sip +++ /dev/null @@ -1,52 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KColorDrag : QStoredDrag -{ -%TypeHeaderCode -#include -%End - - -public: - KColorDrag (QWidget* = 0, const char* = 0); - KColorDrag (const QColor&, QWidget* = 0, const char* = 0); - -%If ( KDE_3_2_0 - ) - virtual const char* format (int) const; - virtual QByteArray encodedData (const char*) const; -%End - - void setColor (const QColor&); - static bool canDecode (QMimeSource*); - static bool decode (QMimeSource*, QColor&); - static KColorDrag* makeDrag (const QColor&, QWidget*); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KColorDrag - diff --git a/sip/kdeui/kcombobox.sip b/sip/kdeui/kcombobox.sip deleted file mode 100644 index 956c0a8..0000000 --- a/sip/kdeui/kcombobox.sip +++ /dev/null @@ -1,130 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KComboBox : QComboBox, KCompletionBase -{ -%TypeHeaderCode -#include -%End - - -public: - KComboBox (QWidget* /TransferThis/ = 0, const char* = 0); - KComboBox (bool, QWidget* /TransferThis/ = 0, const char* = 0); - void setEditURL (const KURL&); - void insertURL (const KURL&, int = -1); - void insertURL (const QPixmap&, const KURL&, int = -1); - void changeURL (const KURL&, int); - void changeURL (const QPixmap&, const KURL&, int); - int cursorPosition () const; - virtual void setAutoCompletion (bool); - bool autoCompletion () const; - virtual void setContextMenuEnabled (bool); - bool isContextMenuEnabled () const; - void setURLDropsEnabled (bool); - bool isURLDropsEnabled () const; - bool contains (const QString&) const; - void setTrapReturnKey (bool); - bool trapReturnKey () const; - virtual bool eventFilter (QObject*, QEvent*); - KCompletionBox* completionBox (bool); - virtual void setLineEdit (QLineEdit*); - -signals: - void returnPressed (); - void returnPressed (const QString&); - void completion (const QString&); - void substringCompletion (const QString&); - void textRotation (KCompletionBase::KeyBindingType); - void completionModeChanged (KGlobalSettings::Completion); - void aboutToShowContextMenu (QPopupMenu*); - -public slots: - void rotateText (KCompletionBase::KeyBindingType); - virtual void setCompletedText (const QString&); - void setCompletedItems (const QStringList&); - void setCurrentItem (const QString&, bool = 0, int = -1); - void setCurrentItem (int); - -protected slots: - virtual void itemSelected (QListBoxItem*); - virtual void makeCompletion (const QString&); - -protected: - virtual void setCompletedText (const QString&, bool); - virtual void create (WId = 0, bool = 1, bool = 1); - -%If ( KDE_3_1_0 - ) - virtual void wheelEvent (QWheelEvent*); -%End - - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KComboBox - - -class KHistoryCombo : KComboBox -{ -%TypeHeaderCode -#include -%End - - -public: - KHistoryCombo (QWidget* /TransferThis/ = 0, const char* = 0); - KHistoryCombo (bool, QWidget* /TransferThis/ = 0, const char* = 0); - void setHistoryItems (QStringList); - void setHistoryItems (QStringList, bool); - QStringList historyItems () const; - bool removeFromHistory (const QString&); - void setPixmapProvider (KPixmapProvider*); - KPixmapProvider* pixmapProvider () const; - void reset (); - -public slots: - void addToHistory (const QString&); - void clearHistory (); - -signals: - void cleared (); - -protected: - virtual void keyPressEvent (QKeyEvent*); - -%If ( KDE_3_1_0 - ) - virtual void wheelEvent (QWheelEvent*); -%End - - void insertItems (const QStringList&); - bool useCompletion (); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KHistoryCombo - diff --git a/sip/kdeui/kcommand.sip b/sip/kdeui/kcommand.sip deleted file mode 100644 index 09f5aeb..0000000 --- a/sip/kdeui/kcommand.sip +++ /dev/null @@ -1,131 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KCommand -{ -%TypeHeaderCode -#include -%End - - -protected: - KCommand (); - -public: - virtual void execute () = 0; - virtual void unexecute () = 0; - virtual QString name () const = 0; - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KCommand - - -class KNamedCommand : KCommand -{ -%TypeHeaderCode -#include -%End - - -protected: - KNamedCommand (const QString&); - -public: - virtual QString name () const; - void setName (const QString&); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KNamedCommand - - -class KMacroCommand : KNamedCommand -{ -%TypeHeaderCode -#include -%End - - -public: - KMacroCommand (const QString&); - void addCommand (KCommand*); - virtual void execute (); - virtual void unexecute (); - -protected: - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KMacroCommand - - -class KCommandHistory : QObject -{ -%TypeHeaderCode -#include -%End - - -public: - KCommandHistory (); - KCommandHistory (KActionCollection*, bool = 1); - void clear (); - void addCommand (KCommand*, bool = 1); - int undoLimit () const; - void setUndoLimit (int); - int redoLimit () const; - void setRedoLimit (int); - void updateActions (); - -public slots: - virtual void undo (); - virtual void redo (); - virtual void documentSaved (); - -protected slots: - void slotUndoAboutToShow (); - void slotUndoActivated (int); - void slotRedoAboutToShow (); - void slotRedoActivated (int); - -signals: - void commandExecuted (); - -%If ( KDE_3_5_0 - ) - void commandExecuted (KCommand*); -%End - - void documentRestored (); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KCommandHistory - diff --git a/sip/kdeui/kcompletionbox.sip b/sip/kdeui/kcompletionbox.sip deleted file mode 100644 index f6cec4a..0000000 --- a/sip/kdeui/kcompletionbox.sip +++ /dev/null @@ -1,86 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KCompletionBox : KListBox -{ -%TypeHeaderCode -#include -%End - - -public: - KCompletionBox (QWidget* /TransferThis/, const char* = 0); - virtual QSize sizeHint () const; - -%If ( KDE_3_4_3 - ) - bool activateOnSelect () const; -%End - - -public slots: - QStringList items () const; - void insertItems (const QStringList&, int = -1); - void setItems (const QStringList&); - virtual void popup (); - void setTabHandling (bool); - bool isTabHandling () const; - void setCancelledText (const QString&); - QString cancelledText () const; - -%If ( KDE_3_4_3 - ) - void setActivateOnSelect (bool); -%End - - void down (); - void up (); - void pageDown (); - void pageUp (); - void home (); - void end (); - virtual void show (); - virtual void hide (); - -signals: - void activated (const QString&); - void userCancelled (const QString&); - -protected: - -%If ( KDE_3_2_0 - ) - QRect calculateGeometry () const; - void sizeAndPosition (); -%End - - virtual bool eventFilter (QObject*, QEvent*); - -protected slots: - virtual void slotActivated (QListBoxItem*); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KCompletionBox - diff --git a/sip/kdeui/kconfigdialog.sip b/sip/kdeui/kconfigdialog.sip deleted file mode 100644 index f6db24f..0000000 --- a/sip/kdeui/kconfigdialog.sip +++ /dev/null @@ -1,69 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_2_0 - ) - -class KConfigDialog : KDialogBase -{ -%TypeHeaderCode -#include -%End - - -signals: - void widgetModified (); - void settingsChanged (); - void settingsChanged (const char*); - -public: - KConfigDialog (QWidget* /TransferThis/, const char*, KConfigSkeleton*, KDialogBase::DialogType = KDialogBase ::IconList , int = KDialogBase ::Default |KDialogBase ::Ok |KDialogBase ::Apply |KDialogBase ::Cancel |KDialogBase ::Help , KDialogBase::ButtonCode = Ok , bool = 0); - void addPage (QWidget*, const QString&, const QString&, const QString& = QString ::null , bool = 1); - -%If ( KDE_3_3_0 - ) - void addPage (QWidget*, KConfigSkeleton*, const QString&, const QString&, const QString& = QString ::null ); -%End - - static KConfigDialog* exists (const char*); - static bool showDialog (const char*); - virtual void show (); - -protected slots: - virtual void updateSettings (); - virtual void updateWidgets (); - virtual void updateWidgetsDefault (); - -protected: - virtual bool hasChanged (); - virtual bool isDefault (); - -protected slots: - void updateButtons (); - void settingsChangedSlot (); - -}; // class KConfigDialog - -%End - diff --git a/sip/kdeui/kcontainer.sip b/sip/kdeui/kcontainer.sip deleted file mode 100644 index 6b57a6a..0000000 --- a/sip/kdeui/kcontainer.sip +++ /dev/null @@ -1,75 +0,0 @@ -// -// Copyright 2003 Jim Bublitz -// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE_3_1_1 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KContainerLayout : QFrame -{ -%TypeHeaderCode -#include -%End - - -public: - - enum - { - Horizontal = 0, - Vertical - }; - - KContainerLayout (QWidget*/TransferThis/ = 0, const char* = 0, int = KContainerLayout::Horizontal, bool = 0, int = 5, WFlags = 0, bool = 1); - int getNumberOfWidgets () const; - int packStart (QWidget*, bool = 0, bool = 0, int = 1); - int packEnd (QWidget*, bool = 0, bool = 0, int = 1); - void setOrientation (int); - void setHomogeneos (bool); - void setSpacing (int); - void setStartOffset (int); - void setEndOffset (int); - int orientation () const; - bool homogeneos () const; - int spacing () const; - int startOffset () const; - int endOffset () const; - void sizeToFit (); - -protected: - -//ig class KContainerLayoutItem; - - void recalcLayout (); -//ig QSize widgetSize (KContainerLayout::KContainerLayoutItem*); - void repositionWidgets (); - int numberOfWidgetsWithExpand (); - void calculateSizeHint (); - QSize sizeOfLargerWidget (); -//ig QSize idealSizeOfWidget (KContainerLayout::KContainerLayoutItem*); - bool horizontal () const; - virtual void resizeEvent (QResizeEvent*); - virtual bool eventFilter (QObject*, QEvent*); - virtual QSize sizeHint () const; - -}; // class KContainerLayout - diff --git a/sip/kdeui/kcursor.sip b/sip/kdeui/kcursor.sip deleted file mode 100644 index 2ad3e34..0000000 --- a/sip/kdeui/kcursor.sip +++ /dev/null @@ -1,57 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KCursor : Qt -{ -%TypeHeaderCode -#include -%End - - -public: - KCursor (); - static QCursor handCursor (); - static QCursor workingCursor (); - static QCursor arrowCursor (); - static QCursor upArrowCursor (); - static QCursor crossCursor (); - static QCursor waitCursor (); - static QCursor ibeamCursor (); - static QCursor sizeVerCursor (); - static QCursor sizeHorCursor (); - static QCursor sizeBDiagCursor (); - static QCursor sizeFDiagCursor (); - static QCursor sizeAllCursor (); - static QCursor blankCursor (); - static QCursor whatsThisCursor (); - static void setAutoHideCursor (QWidget*, bool); - static void setAutoHideCursor (QWidget*, bool, bool); - static void setHideCursorDelay (int); - static int hideCursorDelay (); - static void autoHideEventFilter (QObject*, QEvent*); - -}; // class KCursor - diff --git a/sip/kdeui/kdatepicker.sip b/sip/kdeui/kdatepicker.sip deleted file mode 100644 index ebd697e..0000000 --- a/sip/kdeui/kdatepicker.sip +++ /dev/null @@ -1,108 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KDatePicker : QFrame -{ -%TypeHeaderCode -#include -%End - - -public: - KDatePicker (QWidget* /TransferThis/ = 0, QDate = QDate ::currentDate (), const char* = 0); - -%If ( KDE_3_1_0 - ) - KDatePicker (QWidget* /TransferThis/, QDate, const char*, WFlags); - KDatePicker (QWidget* /TransferThis/, const char*); -%End - - QSize sizeHint () const; - bool setDate (const QDate&); - const QDate& getDate () const; - const QDate& date () const; - void setEnabled (bool); - -%If ( KDE_3_2_0 - ) - KDateTable* dateTable () const; -%End - - void setFontSize (int); - int fontSize () const; - -%If ( KDE_3_1_0 - ) - void setCloseButton (bool); - bool hasCloseButton () const; -%End - - -protected: - -%If ( KDE_3_1_0 - ) - virtual bool eventFilter (QObject*, QEvent*); - virtual void resizeEvent (QResizeEvent*); -%End - - -protected slots: - void dateChangedSlot (QDate); - void tableClickedSlot (); - void monthForwardClicked (); - void monthBackwardClicked (); - void yearForwardClicked (); - void yearBackwardClicked (); - -%If ( KDE_3_1_0 - ) - void selectWeekClicked (); -%End - - void selectMonthClicked (); - void selectYearClicked (); - void lineEnterPressed (); - -%If ( KDE_3_2_0 - ) - void todayButtonClicked (); - void weekSelected (int); -%End - - -signals: - void dateChanged (QDate); - void dateSelected (QDate); - void dateEntered (QDate); - void tableClicked (); - -protected: -//igx virtual void virtual_hook (int, void*); - -protected: - -%If ( - KDE_3_1_0 ) - void resizeEvent (QResizeEvent*); -%End - - -}; // class KDatePicker - diff --git a/sip/kdeui/kdatepik.sip b/sip/kdeui/kdatepik.sip deleted file mode 100644 index a5e6505..0000000 --- a/sip/kdeui/kdatepik.sip +++ /dev/null @@ -1,64 +0,0 @@ -// -// Copyright 2003 Jim Bublitz -// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE_3_1_1 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KDatePicker : QFrame -{ -%TypeHeaderCode -#include -%End - - -public: - KDatePicker (QWidget*/TransferThis/ = 0, QDate = QDate::currentDate(), const char* = 0); - QSize sizeHint () const; - bool setDate (const QDate&); - const QDate& getDate (); - void setEnabled (bool); - void setFontSize (int); - int fontSize () const; - -protected: - void resizeEvent (QResizeEvent*); - -protected slots: - void dateChangedSlot (QDate); - void tableClickedSlot (); - void monthForwardClicked (); - void monthBackwardClicked (); - void yearForwardClicked (); - void yearBackwardClicked (); - void selectMonthClicked (); - void selectYearClicked (); - void lineEnterPressed (); - -signals: - void dateChanged (QDate); - void dateSelected (QDate); - void dateEntered (QDate); - void tableClicked (); - -}; // class KDatePicker - diff --git a/sip/kdeui/kdatetbl.sip b/sip/kdeui/kdatetbl.sip deleted file mode 100644 index 58186d2..0000000 --- a/sip/kdeui/kdatetbl.sip +++ /dev/null @@ -1,303 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_1_0 - ) - -class KDateInternalWeekSelector : QLineEdit -{ -%TypeHeaderCode -#include -%End - - -protected: - -public slots: - void weekEnteredSlot (); - -%If ( KDE_3_2_0 - ) - void setMaxWeek (int); -%End - - -signals: - void closeMe (int); - -public: - -%If ( KDE_3_2_0 - ) - KDateInternalWeekSelector (QWidget* /TransferThis/ = 0, const char* = 0); -%End - - int getWeek (); - void setWeek (int); - -public: - -%If ( - KDE_3_2_0 ) - KDateInternalWeekSelector (int, QWidget* /TransferThis/ = 0, const char* = 0); -%End - - -}; // class KDateInternalWeekSelector - -%End - - -class KDateInternalMonthPicker : QGridView -{ -%TypeHeaderCode -#include -%End - - -protected: - -signals: - void closeMe (int); - -public: - -%If ( KDE_3_2_0 - ) - KDateInternalMonthPicker (const QDate&, QWidget* /TransferThis/, const char* = 0); -%End - - QSize sizeHint () const; - int getResult () const; - -protected: - void setupPainter (QPainter*); - -%If ( KDE_3_0_1 - ) - virtual void viewportResizeEvent (QResizeEvent*); -%End - - virtual void paintCell (QPainter*, int, int); - -%If ( KDE_3_0_1 - ) - virtual void contentsMousePressEvent (QMouseEvent*); - virtual void contentsMouseMoveEvent (QMouseEvent*); - virtual void contentsMouseReleaseEvent (QMouseEvent*); -%End - - -public: - -%If ( - KDE_3_2_0 ) - KDateInternalMonthPicker (int, QWidget* /TransferThis/, const char* = 0); -%End - - -protected: - -%If ( - KDE_3_0_1 ) - void viewportResizeEvent (QResizeEvent*); - void contentsMousePressEvent (QMouseEvent*); - void contentsMouseMoveEvent (QMouseEvent*); - void contentsMouseReleaseEvent (QMouseEvent*); -%End - - -}; // class KDateInternalMonthPicker - - -class KDateInternalYearSelector : QLineEdit -{ -%TypeHeaderCode -#include -%End - - -protected: - -public slots: - void yearEnteredSlot (); - -signals: - void closeMe (int); - -public: - -%If ( KDE_3_2_0 - ) - KDateInternalYearSelector (QWidget* /TransferThis/ = 0, const char* = 0); -%End - - int getYear (); - void setYear (int); - -public: - -%If ( - KDE_3_2_0 ) - KDateInternalYearSelector (int, QWidget* /TransferThis/ = 0, const char* = 0); -%End - - -}; // class KDateInternalYearSelector - - -class KPopupFrame : QFrame -{ -%TypeHeaderCode -#include -%End - - -protected: - -%If ( KDE_3_0_1 - ) - virtual void keyPressEvent (QKeyEvent*); -%End - - -public slots: - void close (int); - -%If ( KDE_3_5_0 - ) - void hide (); -%End - - -public: - KPopupFrame (QWidget* /TransferThis/ = 0, const char* = 0); - void setMainWidget (QWidget*); - -%If ( KDE_3_0_1 - ) - virtual void resizeEvent (QResizeEvent*); -%End - - void popup (const QPoint&); - int exec (QPoint) /PyName=exec_/; - int exec (int, int) /PyName=exec_/; - -protected: -//igx virtual void virtual_hook (int, void*); - -protected: - -%If ( - KDE_3_0_1 ) - void keyPressEvent (QKeyEvent*); -%End - - -public: - -%If ( - KDE_3_0_1 ) - void resizeEvent (QResizeEvent*); -%End - - -}; // class KPopupFrame - - -class KDateValidator : QValidator -{ -%TypeHeaderCode -#include -%End - - -public: - KDateValidator (QWidget* /TransferThis/ = 0, const char* = 0); - virtual State validate (QString&, int&) const; - virtual void fixup (QString&) const; - State date (const QString&, QDate&) const; - -}; // class KDateValidator - - -class KDateTable : QGridView -{ -%TypeHeaderCode -#include -%End - - -public: - KDateTable (QWidget* /TransferThis/ = 0, QDate = QDate ::currentDate (), const char* = 0, WFlags = 0); - -%If ( KDE_3_4_0 - ) - KDateTable (QWidget* /TransferThis/, const char*, WFlags = 0); -%End - - virtual QSize sizeHint () const; - void setFontSize (int); - bool setDate (const QDate&); - const QDate& getDate () const; - -%If ( KDE_3_2_0 - ) - void setPopupMenuEnabled (bool); - bool popupMenuEnabled () const; - - enum BackgroundMode - { - NoBgMode, - RectangleMode, - CircleMode - }; - - void setCustomDatePainting (const QDate&, const QColor&, BackgroundMode = NoBgMode , const QColor& = QColor ()); - void unsetCustomDatePainting (const QDate&); -%End - - -protected: - -%If ( KDE_3_2_0 - ) - int posFromDate (const QDate&); - QDate dateFromPos (int); -%End - - virtual void paintCell (QPainter*, int, int); - virtual void viewportResizeEvent (QResizeEvent*); - virtual void contentsMousePressEvent (QMouseEvent*); - -%If ( KDE_3_1_0 - ) - virtual void wheelEvent (QWheelEvent*); -%End - - virtual void keyPressEvent (QKeyEvent*); - virtual void focusInEvent (QFocusEvent*); - virtual void focusOutEvent (QFocusEvent*); - -signals: - void dateChanged (QDate); - -%If ( KDE_3_2_0 - ) - void dateChanged (const QDate&, const QDate&); -%End - - void tableClicked (); - -%If ( KDE_3_2_0 - ) - void aboutToShowContextMenu (KPopupMenu*, const QDate&); -%End - - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KDateTable - diff --git a/sip/kdeui/kdatetimewidget.sip b/sip/kdeui/kdatetimewidget.sip deleted file mode 100644 index 76eaaa5..0000000 --- a/sip/kdeui/kdatetimewidget.sip +++ /dev/null @@ -1,50 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_2_0 - ) - -class KDateTimeWidget : QWidget -{ -%TypeHeaderCode -#include -%End - - -public: - KDateTimeWidget (QWidget* /TransferThis/ = 0, const char* = 0); - KDateTimeWidget (const QDateTime&, QWidget* /TransferThis/ = 0, const char* = 0); - QDateTime dateTime () const; - -public slots: - void setDateTime (const QDateTime&); - -signals: - void valueChanged (const QDateTime&); - -}; // class KDateTimeWidget - -%End - diff --git a/sip/kdeui/kdatewidget.sip b/sip/kdeui/kdatewidget.sip deleted file mode 100644 index 6ca065e..0000000 --- a/sip/kdeui/kdatewidget.sip +++ /dev/null @@ -1,58 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KDateWidget : QWidget -{ -%TypeHeaderCode -#include -%End - - -public: - KDateWidget (QWidget* /TransferThis/, const char* = 0); - KDateWidget (QDate, QWidget* /TransferThis/, const char* = 0); - QDate date () const; - void setDate (QDate); - -signals: - void changed (QDate); - -protected: - void init (); - -%If ( KDE_3_2_0 - ) - void init (const QDate&); -%End - - -protected slots: - void slotDateChanged (); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KDateWidget - diff --git a/sip/kdeui/kdbtn.sip b/sip/kdeui/kdbtn.sip deleted file mode 100644 index d493b0c..0000000 --- a/sip/kdeui/kdbtn.sip +++ /dev/null @@ -1,61 +0,0 @@ -// -// Copyright 2003 Jim Bublitz -// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE_3_1_1 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KDirectionButton : QButton -{ -%TypeHeaderCode -#include -%End - - -public: - KDirectionButton (QWidget*/TransferThis/ = 0, const char* = 0); - KDirectionButton (ArrowType, QWidget*/TransferThis/ = 0, const char* = 0); - void setDirection (ArrowType); - ArrowType direction (); - -protected: - virtual void drawButton (QPainter*); - -}; // class KDirectionButton - - -class KTabButton : KDirectionButton -{ -%TypeHeaderCode -#include -%End - - -public: - KTabButton (QWidget*/TransferThis/ = 0, const char* = 0); - KTabButton (ArrowType, QWidget*/TransferThis/ = 0, const char* = 0); - -protected: - virtual void drawButton (QPainter*); - -}; // class KTabButton - diff --git a/sip/kdeui/kdcopactionproxy.sip b/sip/kdeui/kdcopactionproxy.sip deleted file mode 100644 index e5c3fd2..0000000 --- a/sip/kdeui/kdcopactionproxy.sip +++ /dev/null @@ -1,48 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KDCOPActionProxy : DCOPObjectProxy -{ -%TypeHeaderCode -#include -%End - - -public: - KDCOPActionProxy (KActionCollection*, DCOPObject* /TransferThis/); - KDCOPActionProxy (DCOPObject* /TransferThis/); - virtual QValueList actions () const; - virtual KAction* action (const char*) const; - virtual QCString actionObjectId (const QCString&) const; - virtual QMap actionMap (const QCString& = QCString ()) const; - virtual bool process (const QCString&, const QCString&, const QByteArray&, QCString&, QByteArray&); - virtual bool processAction (const QCString&, const QCString&, const QByteArray&, QCString&, QByteArray&, KAction*); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KDCOPActionProxy - diff --git a/sip/kdeui/kdeui-kde310.diff b/sip/kdeui/kdeui-kde310.diff deleted file mode 100644 index bde4a8e..0000000 --- a/sip/kdeui/kdeui-kde310.diff +++ /dev/null @@ -1,4 +0,0 @@ -+ %Include kaccelmanager.sip -+ %Include kpassivepopup.sip -+ %Include ktextedit.sip -+ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde311.diff b/sip/kdeui/kdeui-kde311.diff deleted file mode 100644 index bde4a8e..0000000 --- a/sip/kdeui/kdeui-kde311.diff +++ /dev/null @@ -1,4 +0,0 @@ -+ %Include kaccelmanager.sip -+ %Include kpassivepopup.sip -+ %Include ktextedit.sip -+ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde312.diff b/sip/kdeui/kdeui-kde312.diff deleted file mode 100644 index bde4a8e..0000000 --- a/sip/kdeui/kdeui-kde312.diff +++ /dev/null @@ -1,4 +0,0 @@ -+ %Include kaccelmanager.sip -+ %Include kpassivepopup.sip -+ %Include ktextedit.sip -+ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde313.diff b/sip/kdeui/kdeui-kde313.diff deleted file mode 100644 index bde4a8e..0000000 --- a/sip/kdeui/kdeui-kde313.diff +++ /dev/null @@ -1,4 +0,0 @@ -+ %Include kaccelmanager.sip -+ %Include kpassivepopup.sip -+ %Include ktextedit.sip -+ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde314.diff b/sip/kdeui/kdeui-kde314.diff deleted file mode 100644 index bde4a8e..0000000 --- a/sip/kdeui/kdeui-kde314.diff +++ /dev/null @@ -1,4 +0,0 @@ -+ %Include kaccelmanager.sip -+ %Include kpassivepopup.sip -+ %Include ktextedit.sip -+ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde315.diff b/sip/kdeui/kdeui-kde315.diff deleted file mode 100644 index bde4a8e..0000000 --- a/sip/kdeui/kdeui-kde315.diff +++ /dev/null @@ -1,4 +0,0 @@ -+ %Include kaccelmanager.sip -+ %Include kpassivepopup.sip -+ %Include ktextedit.sip -+ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde320.diff b/sip/kdeui/kdeui-kde320.diff deleted file mode 100644 index 0066974..0000000 --- a/sip/kdeui/kdeui-kde320.diff +++ /dev/null @@ -1,13 +0,0 @@ -+ %Include kactionclasses.sip -+ %Include kactioncollection.sip -+ %Include kconfigdialog.sip -+ %Include kdatetimewidget.sip -+ %Include kfontrequester.sip -+ %Include kinputdialog.sip -+ %Include kpassivepopup.sip -+ %Include ksplashscreen.sip -+ %Include ktabbar.sip -+ %Include ktabwidget.sip -+ %Include ktextedit.sip -+ %Include ktimewidget.sip -+ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde321.diff b/sip/kdeui/kdeui-kde321.diff deleted file mode 100644 index 0066974..0000000 --- a/sip/kdeui/kdeui-kde321.diff +++ /dev/null @@ -1,13 +0,0 @@ -+ %Include kactionclasses.sip -+ %Include kactioncollection.sip -+ %Include kconfigdialog.sip -+ %Include kdatetimewidget.sip -+ %Include kfontrequester.sip -+ %Include kinputdialog.sip -+ %Include kpassivepopup.sip -+ %Include ksplashscreen.sip -+ %Include ktabbar.sip -+ %Include ktabwidget.sip -+ %Include ktextedit.sip -+ %Include ktimewidget.sip -+ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde322.diff b/sip/kdeui/kdeui-kde322.diff deleted file mode 100644 index 0066974..0000000 --- a/sip/kdeui/kdeui-kde322.diff +++ /dev/null @@ -1,13 +0,0 @@ -+ %Include kactionclasses.sip -+ %Include kactioncollection.sip -+ %Include kconfigdialog.sip -+ %Include kdatetimewidget.sip -+ %Include kfontrequester.sip -+ %Include kinputdialog.sip -+ %Include kpassivepopup.sip -+ %Include ksplashscreen.sip -+ %Include ktabbar.sip -+ %Include ktabwidget.sip -+ %Include ktextedit.sip -+ %Include ktimewidget.sip -+ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde323.diff b/sip/kdeui/kdeui-kde323.diff deleted file mode 100644 index 2aab948..0000000 --- a/sip/kdeui/kdeui-kde323.diff +++ /dev/null @@ -1,14 +0,0 @@ -+ %Include kactionclasses.sip -+ %Include kactioncollection.sip -+ %Include kconfigdialog.sip -+ %Include kdatetimewidget.sip -+ %Include kfontrequester.sip -+ %Include kinputdialog.sip -+ %Include kpassivepopup.sip -//+ %Include ksharedpixmap.sip -+ %Include ksplashscreen.sip -+ %Include ktabbar.sip -+ %Include ktabwidget.sip -+ %Include ktextedit.sip -+ %Include ktimewidget.sip -+ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde330.diff b/sip/kdeui/kdeui-kde330.diff deleted file mode 100644 index 6be7d89..0000000 --- a/sip/kdeui/kdeui-kde330.diff +++ /dev/null @@ -1,16 +0,0 @@ -+ %Include kactionclasses.sip -+ %Include kactioncollection.sip -+ %Include kactionselector.sip -+ %Include kconfigdialog.sip -+ %Include kdatetimewidget.sip -+ %Include kfontrequester.sip -+ %Include kinputdialog.sip -+ %Include klanguagebutton.sip -+ %Include klistviewsearchline.sip -+ %Include kpassivepopup.sip -+ %Include ksplashscreen.sip -+ %Include ktabbar.sip -+ %Include ktabwidget.sip -+ %Include ktextedit.sip -+ %Include ktimewidget.sip -+ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde331.diff b/sip/kdeui/kdeui-kde331.diff deleted file mode 100644 index 6be7d89..0000000 --- a/sip/kdeui/kdeui-kde331.diff +++ /dev/null @@ -1,16 +0,0 @@ -+ %Include kactionclasses.sip -+ %Include kactioncollection.sip -+ %Include kactionselector.sip -+ %Include kconfigdialog.sip -+ %Include kdatetimewidget.sip -+ %Include kfontrequester.sip -+ %Include kinputdialog.sip -+ %Include klanguagebutton.sip -+ %Include klistviewsearchline.sip -+ %Include kpassivepopup.sip -+ %Include ksplashscreen.sip -+ %Include ktabbar.sip -+ %Include ktabwidget.sip -+ %Include ktextedit.sip -+ %Include ktimewidget.sip -+ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde332.diff b/sip/kdeui/kdeui-kde332.diff deleted file mode 100644 index 6be7d89..0000000 --- a/sip/kdeui/kdeui-kde332.diff +++ /dev/null @@ -1,16 +0,0 @@ -+ %Include kactionclasses.sip -+ %Include kactioncollection.sip -+ %Include kactionselector.sip -+ %Include kconfigdialog.sip -+ %Include kdatetimewidget.sip -+ %Include kfontrequester.sip -+ %Include kinputdialog.sip -+ %Include klanguagebutton.sip -+ %Include klistviewsearchline.sip -+ %Include kpassivepopup.sip -+ %Include ksplashscreen.sip -+ %Include ktabbar.sip -+ %Include ktabwidget.sip -+ %Include ktextedit.sip -+ %Include ktimewidget.sip -+ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde340.diff b/sip/kdeui/kdeui-kde340.diff deleted file mode 100644 index cdefe26..0000000 --- a/sip/kdeui/kdeui-kde340.diff +++ /dev/null @@ -1,21 +0,0 @@ -+ %Include kactionclasses.sip -+ %Include kactioncollection.sip -+ %Include kactionselector.sip -+ %Include kconfigdialog.sip -+ %Include kdatetimewidget.sip -+ %Include kfontrequester.sip -+ %Include kiconviewsearchline.sip -+ %Include kinputdialog.sip -+ %Include klanguagebutton.sip -+ %Include klistviewsearchline.sip -+ %Include kpassivepopup.sip -+ %Include kpixmapregionselectordialog.sip -+ %Include kpixmapregionselectorwidget.sip -+ %Include kshortcutdialog.sip -+ %Include ksplashscreen.sip -+ %Include ktabbar.sip -+ %Include ktabwidget.sip -+ %Include ktextedit.sip -+ %Include ktimewidget.sip -+ %Include ktoolbarlabelaction.sip -+ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde341.diff b/sip/kdeui/kdeui-kde341.diff deleted file mode 100644 index cdefe26..0000000 --- a/sip/kdeui/kdeui-kde341.diff +++ /dev/null @@ -1,21 +0,0 @@ -+ %Include kactionclasses.sip -+ %Include kactioncollection.sip -+ %Include kactionselector.sip -+ %Include kconfigdialog.sip -+ %Include kdatetimewidget.sip -+ %Include kfontrequester.sip -+ %Include kiconviewsearchline.sip -+ %Include kinputdialog.sip -+ %Include klanguagebutton.sip -+ %Include klistviewsearchline.sip -+ %Include kpassivepopup.sip -+ %Include kpixmapregionselectordialog.sip -+ %Include kpixmapregionselectorwidget.sip -+ %Include kshortcutdialog.sip -+ %Include ksplashscreen.sip -+ %Include ktabbar.sip -+ %Include ktabwidget.sip -+ %Include ktextedit.sip -+ %Include ktimewidget.sip -+ %Include ktoolbarlabelaction.sip -+ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde342.diff b/sip/kdeui/kdeui-kde342.diff deleted file mode 100644 index cdefe26..0000000 --- a/sip/kdeui/kdeui-kde342.diff +++ /dev/null @@ -1,21 +0,0 @@ -+ %Include kactionclasses.sip -+ %Include kactioncollection.sip -+ %Include kactionselector.sip -+ %Include kconfigdialog.sip -+ %Include kdatetimewidget.sip -+ %Include kfontrequester.sip -+ %Include kiconviewsearchline.sip -+ %Include kinputdialog.sip -+ %Include klanguagebutton.sip -+ %Include klistviewsearchline.sip -+ %Include kpassivepopup.sip -+ %Include kpixmapregionselectordialog.sip -+ %Include kpixmapregionselectorwidget.sip -+ %Include kshortcutdialog.sip -+ %Include ksplashscreen.sip -+ %Include ktabbar.sip -+ %Include ktabwidget.sip -+ %Include ktextedit.sip -+ %Include ktimewidget.sip -+ %Include ktoolbarlabelaction.sip -+ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde343.diff b/sip/kdeui/kdeui-kde343.diff deleted file mode 100644 index cdefe26..0000000 --- a/sip/kdeui/kdeui-kde343.diff +++ /dev/null @@ -1,21 +0,0 @@ -+ %Include kactionclasses.sip -+ %Include kactioncollection.sip -+ %Include kactionselector.sip -+ %Include kconfigdialog.sip -+ %Include kdatetimewidget.sip -+ %Include kfontrequester.sip -+ %Include kiconviewsearchline.sip -+ %Include kinputdialog.sip -+ %Include klanguagebutton.sip -+ %Include klistviewsearchline.sip -+ %Include kpassivepopup.sip -+ %Include kpixmapregionselectordialog.sip -+ %Include kpixmapregionselectorwidget.sip -+ %Include kshortcutdialog.sip -+ %Include ksplashscreen.sip -+ %Include ktabbar.sip -+ %Include ktabwidget.sip -+ %Include ktextedit.sip -+ %Include ktimewidget.sip -+ %Include ktoolbarlabelaction.sip -+ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde350.diff b/sip/kdeui/kdeui-kde350.diff deleted file mode 100644 index 965e2c3..0000000 --- a/sip/kdeui/kdeui-kde350.diff +++ /dev/null @@ -1,23 +0,0 @@ -+ %Include kactionclasses.sip -+ %Include kactioncollection.sip -+ %Include kactionselector.sip -+ %Include kconfigdialog.sip -+ %Include kdatetimewidget.sip -+ %Include kfontrequester.sip -+ %Include kiconviewsearchline.sip -+ %Include kinputdialog.sip -+ %Include klanguagebutton.sip -+ %Include klistviewsearchline.sip -+ %Include kpassivepopup.sip -+ %Include kpixmapregionselectordialog.sip -+ %Include kpixmapregionselectorwidget.sip -+ %Include kscrollview.sip -+ %Include kshortcutdialog.sip -+ %Include ksplashscreen.sip -+ %Include ktabbar.sip -+ %Include ktabwidget.sip -+ %Include ktextedit.sip -+ %Include ktimewidget.sip -+ %Include ktimezonewidget.sip -+ %Include ktoolbarlabelaction.sip -+ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde351.diff b/sip/kdeui/kdeui-kde351.diff deleted file mode 100644 index 965e2c3..0000000 --- a/sip/kdeui/kdeui-kde351.diff +++ /dev/null @@ -1,23 +0,0 @@ -+ %Include kactionclasses.sip -+ %Include kactioncollection.sip -+ %Include kactionselector.sip -+ %Include kconfigdialog.sip -+ %Include kdatetimewidget.sip -+ %Include kfontrequester.sip -+ %Include kiconviewsearchline.sip -+ %Include kinputdialog.sip -+ %Include klanguagebutton.sip -+ %Include klistviewsearchline.sip -+ %Include kpassivepopup.sip -+ %Include kpixmapregionselectordialog.sip -+ %Include kpixmapregionselectorwidget.sip -+ %Include kscrollview.sip -+ %Include kshortcutdialog.sip -+ %Include ksplashscreen.sip -+ %Include ktabbar.sip -+ %Include ktabwidget.sip -+ %Include ktextedit.sip -+ %Include ktimewidget.sip -+ %Include ktimezonewidget.sip -+ %Include ktoolbarlabelaction.sip -+ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde352.diff b/sip/kdeui/kdeui-kde352.diff deleted file mode 100644 index 965e2c3..0000000 --- a/sip/kdeui/kdeui-kde352.diff +++ /dev/null @@ -1,23 +0,0 @@ -+ %Include kactionclasses.sip -+ %Include kactioncollection.sip -+ %Include kactionselector.sip -+ %Include kconfigdialog.sip -+ %Include kdatetimewidget.sip -+ %Include kfontrequester.sip -+ %Include kiconviewsearchline.sip -+ %Include kinputdialog.sip -+ %Include klanguagebutton.sip -+ %Include klistviewsearchline.sip -+ %Include kpassivepopup.sip -+ %Include kpixmapregionselectordialog.sip -+ %Include kpixmapregionselectorwidget.sip -+ %Include kscrollview.sip -+ %Include kshortcutdialog.sip -+ %Include ksplashscreen.sip -+ %Include ktabbar.sip -+ %Include ktabwidget.sip -+ %Include ktextedit.sip -+ %Include ktimewidget.sip -+ %Include ktimezonewidget.sip -+ %Include ktoolbarlabelaction.sip -+ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde353.diff b/sip/kdeui/kdeui-kde353.diff deleted file mode 100644 index 965e2c3..0000000 --- a/sip/kdeui/kdeui-kde353.diff +++ /dev/null @@ -1,23 +0,0 @@ -+ %Include kactionclasses.sip -+ %Include kactioncollection.sip -+ %Include kactionselector.sip -+ %Include kconfigdialog.sip -+ %Include kdatetimewidget.sip -+ %Include kfontrequester.sip -+ %Include kiconviewsearchline.sip -+ %Include kinputdialog.sip -+ %Include klanguagebutton.sip -+ %Include klistviewsearchline.sip -+ %Include kpassivepopup.sip -+ %Include kpixmapregionselectordialog.sip -+ %Include kpixmapregionselectorwidget.sip -+ %Include kscrollview.sip -+ %Include kshortcutdialog.sip -+ %Include ksplashscreen.sip -+ %Include ktabbar.sip -+ %Include ktabwidget.sip -+ %Include ktextedit.sip -+ %Include ktimewidget.sip -+ %Include ktimezonewidget.sip -+ %Include ktoolbarlabelaction.sip -+ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeuimod.sip.in b/sip/kdeui/kdeuimod.sip.in deleted file mode 100644 index e9f603c..0000000 --- a/sip/kdeui/kdeuimod.sip.in +++ /dev/null @@ -1,123 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE_3_5_2 - -%Copying - - This software is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License as - published by the Free Software Foundation; either version 2 of - the License, or (at your option) any later version. - - This software is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public - License along with this library; see the file COPYING. - If not, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -%End - -%Module tdeui - -%Import qt/qtmod.sip -%Import qtxml/qtxmlmod.sip -%Import dcopmod.sip -%Import tdecoremod.sip -%Import tdefxmod.sip - -%Include kaboutapplication.sip -%Include kaboutdialog.sip -%Include kaboutkde.sip -%Include kaction.sip -%Include kactionshortcutlist.sip -%Include kactivelabel.sip -%Include kanimwidget.sip -%Include karrowbutton.sip -%Include kauthicon.sip -%Include kbugreport.sip -%Include kbuttonbox.sip -%Include kcharselect.sip -%Include kcmenumngr.sip -%Include kcmodule.sip -%Include kcolorbtn.sip -%Include kcolorcombo.sip -%Include kcolordialog.sip -%Include kcolordrag.sip -%Include kcombobox.sip -%Include kcommand.sip -%Include kcompletionbox.sip -%Include kcursor.sip -%Include kdatepicker.sip -%Include kdatetbl.sip -%Include kdatewidget.sip -%Include kdcopactionproxy.sip -%Include kdialog.sip -%Include kdialogbase.sip -%Include kdockwidget.sip -%Include kdualcolorbutton.sip -%Include keditcl.sip -%Include keditlistbox.sip -%Include kedittoolbar.sip -%Include kfontcombo.sip -%Include kfontdialog.sip -%Include kguiitem.sip -%Include khelpmenu.sip -%Include kiconview.sip -%Include kjanuswidget.sip -%Include kkeybutton.sip -%Include kkeydialog.sip -%Include kled.sip -%Include klineedit.sip -%Include klineeditdlg.sip -%Include klistbox.sip -%Include klistview.sip -%Include kmainwindow.sip -%Include kmainwindowiface.sip -%Include kmenubar.sip -%Include kmessagebox.sip -%Include knuminput.sip -%Include knumvalidator.sip -%Include kpanelapplet.sip -%Include kpanelappmenu.sip -%Include kpanelextension.sip -%Include kpanelmenu.sip -%Include kpassdlg.sip -%Include kpixmapio.sip -%Include kpopupmenu.sip -%Include kprogress.sip -%Include kpushbutton.sip -%Include krestrictedline.sip -%Include krootpixmap.sip -%Include kruler.sip -%Include kselect.sip -%Include kseparator.sip -%Include ksqueezedtextlabel.sip -%Include kstatusbar.sip -%Include kstdaction.sip -%Include kstdguiitem.sip -%Include kstringvalidator.sip -%Include ksystemtray.sip -%Include ktabctl.sip -%Include ktextbrowser.sip -%Include ktip.sip -%Include ktoolbar.sip -%Include ktoolbarbutton.sip -%Include ktoolbarradiogroup.sip -%Include kurllabel.sip -%Include kwindowlistmenu.sip -%Include kwizard.sip -%Include kwordwrap.sip -%Include kxmlguibuilder.sip -%Include kxmlguiclient.sip -%Include kxmlguifactory.sip -%Include qxembed.sip -@mark@ diff --git a/sip/kdeui/kdialog.sip b/sip/kdeui/kdialog.sip deleted file mode 100644 index 9770c47..0000000 --- a/sip/kdeui/kdialog.sip +++ /dev/null @@ -1,90 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KDialog : QDialog -{ -%TypeHeaderCode -#include -%End - - -public: - KDialog (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, WFlags = 0); - static int marginHint (); - static int spacingHint (); - static void resizeLayout (QWidget*, int, int); - static void resizeLayout (QLayoutItem*, int, int); - -%If ( KDE_3_1_0 - ) - static void centerOnScreen (QWidget*, int = -1); - -%If ( KDE_3_2_0 - ) - static bool avoidArea (QWidget*, const QRect&, int = -1); -%End - -%End - - -public slots: - virtual void polish (); - virtual void setCaption (const QString&); - virtual void setPlainCaption (const QString&); - -protected: - virtual void keyPressEvent (QKeyEvent*); - -signals: - void layoutHintChanged (); - -protected: -//igx virtual void virtual_hook (int, void*); -//force - -private: - KDialog (const KDialog&); -//end - -}; // class KDialog - - -class KDialogQueue : QObject -{ -%TypeHeaderCode -#include -%End - - -public: - static void queueDialog (QDialog*); - -protected: - KDialogQueue (); - static KDialogQueue* self (); - -protected: - -}; // class KDialogQueue - diff --git a/sip/kdeui/kdialogbase.sip b/sip/kdeui/kdialogbase.sip deleted file mode 100644 index 44d7d3c..0000000 --- a/sip/kdeui/kdialogbase.sip +++ /dev/null @@ -1,283 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KDialogBase : KDialog -{ -%TypeHeaderCode -#include -%End - - -public: - -%If ( KDE_3_3_0 - ) - - enum ButtonCode - { - Help, - Default, - Ok, - Apply, - Try, - Cancel, - Close, - User1, - User2, - User3, - No, - Yes, - Details, - Filler, - Stretch, - NoDefault - }; - -%End - - - enum ActionButtonStyle - { - ActionStyle0, - ActionStyle1, - ActionStyle2, - ActionStyle3, - ActionStyle4, - ActionStyleMAX - }; - - - enum DialogType - { - TreeList, - Tabbed, - Plain, - Swallow, - IconList - }; - - -public: - KDialogBase (QWidget* /TransferThis/ = 0, const char* = 0, bool = 1, const QString& = QString ::null , int = Ok |Apply |Cancel , KDialogBase::ButtonCode = Ok , bool = 0, const KGuiItem& = KGuiItem (), const KGuiItem& = KGuiItem (), const KGuiItem& = KGuiItem ()); - KDialogBase (int, const QString&, int, KDialogBase::ButtonCode, QWidget* /TransferThis/ = 0, const char* = 0, bool = 1, bool = 0, const KGuiItem& = KGuiItem (), const KGuiItem& = KGuiItem (), const KGuiItem& = KGuiItem ()); - -%If ( KDE_3_2_0 - ) - KDialogBase (KDialogBase::DialogType, WFlags, QWidget* /TransferThis/ = 0, const char* = 0, bool = 1, const QString& = QString ::null , int = Ok |Apply |Cancel , KDialogBase::ButtonCode = Ok , bool = 0, const KGuiItem& = KGuiItem (), const KGuiItem& = KGuiItem (), const KGuiItem& = KGuiItem ()); -%End - - KDialogBase (const QString&, int = Yes |No |Cancel , KDialogBase::ButtonCode = Yes , KDialogBase::ButtonCode = Cancel , QWidget* /TransferThis/ = 0, const char* = 0, bool = 1, bool = 0, const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const KGuiItem& = KStdGuiItem ::cancel ()); - void setButtonBoxOrientation (int); - void setEscapeButton (KDialogBase::ButtonCode); - virtual void adjustSize (); - virtual QSize sizeHint () const; - virtual QSize minimumSizeHint () const; - QFrame* plainPage (); - QFrame* addPage (const QString&, const QString& = QString ::null , const QPixmap& = QPixmap ()); - QFrame* addPage (const QStringList&, const QString& = QString ::null , const QPixmap& = QPixmap ()); - QVBox* addVBoxPage (const QString&, const QString& = QString ::null , const QPixmap& = QPixmap ()); - QVBox* addVBoxPage (const QStringList&, const QString& = QString ::null , const QPixmap& = QPixmap ()); - QHBox* addHBoxPage (const QString&, const QString& = QString ::null , const QPixmap& = QPixmap ()); - QHBox* addHBoxPage (const QStringList&, const QString& = QString ::null , const QPixmap& = QPixmap ()); - QGrid* addGridPage (int, Qt::Orientation, const QString&, const QString& = QString ::null , const QPixmap& = QPixmap ()); - QGrid* addGridPage (int, Qt::Orientation, const QStringList&, const QString& = QString ::null , const QPixmap& = QPixmap ()); - void setFolderIcon (const QStringList&, const QPixmap&); - QFrame* makeMainWidget (); - QVBox* makeVBoxMainWidget (); - QHBox* makeHBoxMainWidget (); - QGrid* makeGridMainWidget (int, Qt::Orientation); - void enableButtonSeparator (bool); - void showButton (KDialogBase::ButtonCode, bool); - void showButtonOK (bool); - void showButtonApply (bool); - void showButtonCancel (bool); - bool showPage (int); - int activePageIndex () const; - int pageIndex (QWidget*) const; - void setMainWidget (QWidget*); - QWidget* mainWidget (); - void disableResize (); - void setInitialSize (const QSize&, bool = 0); - void incInitialSize (const QSize&, bool = 0); - QSize configDialogSize (const QString&) const; - -%If ( KDE_3_2_0 - ) - QSize configDialogSize (KConfig&, const QString&) const; -%End - - void saveDialogSize (const QString&, bool = 0); - -%If ( KDE_3_2_0 - ) - void saveDialogSize (KConfig&, const QString&, bool = 0) const; - void setButtonOK (const KGuiItem& = KStdGuiItem ::ok ()); -%End - - void setButtonOKText (const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null ); - -%If ( KDE_3_2_0 - ) - void setButtonApply (const KGuiItem& = KStdGuiItem ::apply ()); -%End - - void setButtonApplyText (const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null ); - -%If ( KDE_3_2_0 - ) - void setButtonCancel (const KGuiItem& = KStdGuiItem ::cancel ()); -%End - - void setButtonCancelText (const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null ); - void setButtonText (KDialogBase::ButtonCode, const QString&); - void setButtonTip (KDialogBase::ButtonCode, const QString&); - void setButtonWhatsThis (KDialogBase::ButtonCode, const QString&); - -%If ( KDE_3_3_0 - ) - void setButtonGuiItem (KDialogBase::ButtonCode, const KGuiItem&); -%End - - void setTreeListAutoResize (bool); - void setShowIconsInTreeList (bool); - void setRootIsDecorated (bool); - -%If ( KDE_3_2_0 - ) - void unfoldTreeList (bool = 0); - void addWidgetBelowList (QWidget*); - void addButtonBelowList (const QString&, QObject*, const char*); - void addButtonBelowList (const KGuiItem&, QObject*, const char*); -%End - - void setIconListAllVisible (bool); - static bool haveBackgroundTile (); - static const QPixmap* backgroundTile (); - static const QPixmap* getBackgroundTile (); - static void setBackgroundTile (const QPixmap*); - void showTile (bool); - void getBorderWidths (int&, int&, int&, int&) const; - QRect getContentsRect (); - QSize calculateSize (int, int); - QString helpLinkText (); - QPushButton* actionButton (KDialogBase::ButtonCode); - -public slots: - void enableButton (KDialogBase::ButtonCode, bool); - void enableButtonOK (bool); - void enableButtonApply (bool); - void enableButtonCancel (bool); - void enableLinkedHelp (bool); - -%If ( KDE_3_1_0 - ) - void delayedDestruct (); -%End - - void setHelpLinkText (const QString&); - void setHelp (const QString&, const QString& = QString ::null ); - void helpClickedSlot (const QString&); - void setDetails (bool); - void setDetailsWidget (QWidget*); - void updateBackground (); - -%If ( KDE_3_1_0 - ) - void cancel (); -%End - - -signals: - void helpClicked (); - void defaultClicked (); - void user3Clicked (); - void user2Clicked (); - void user1Clicked (); - void applyClicked (); - void tryClicked (); - void okClicked (); - void yesClicked (); - void noClicked (); - void cancelClicked (); - void closeClicked (); - void apply (); - void backgroundChanged (); - void hidden (); - void finished (); - void aboutToShowDetails (); - void aboutToShowPage (QWidget*); - -protected: - virtual void keyPressEvent (QKeyEvent*); - virtual void hideEvent (QHideEvent*); - virtual void closeEvent (QCloseEvent*); - -protected slots: - virtual void slotHelp (); - virtual void slotDefault (); - virtual void slotDetails (); - virtual void slotUser3 (); - virtual void slotUser2 (); - virtual void slotUser1 (); - virtual void slotOk (); - virtual void slotApply (); - virtual void slotTry (); - virtual void slotYes (); - virtual void slotNo (); - virtual void slotCancel (); - virtual void slotClose (); - virtual void applyPressed (); - void updateGeometry (); - void slotDelayedDestruct (); - -protected: -//igx virtual void virtual_hook (int, void*); - -public: - -%If ( - KDE_3_3_0 ) - - enum ButtonCode - { - Help, - Default, - Ok, - Apply, - Try, - Cancel, - Close, - User1, - User2, - User3, - No, - Yes, - Details, - Filler, - Stretch - }; - -%End - - -public: - -%If ( - KDE_3_1_0 ) - void delayedDestruct (); -%End - - -}; // class KDialogBase - diff --git a/sip/kdeui/kdocktabctl.sip b/sip/kdeui/kdocktabctl.sip deleted file mode 100644 index 33e538f..0000000 --- a/sip/kdeui/kdocktabctl.sip +++ /dev/null @@ -1,186 +0,0 @@ -// -// Copyright 2003 Jim Bublitz -// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE_3_1_1 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KDockTabCtl_PrivateStruct -{ -%TypeHeaderCode -#include -%End - - -public: - KDockTabCtl_PrivateStruct (QWidget*, int); - QWidget* widget; - int id; - bool enabled; - -}; // class KDockTabCtl_PrivateStruct - - -class KDockTabBar : QWidget -{ -%TypeHeaderCode -#include -%End - - -public: - KDockTabBar (QWidget*/TransferThis/ = 0, const char* = 0); - - enum TabPos - { - TAB_TOP, - TAB_RIGHT - }; - - void setTabPos (KDockTabBar::TabPos); - int insertTab (const QString&, int = -1, int = -1); - void setPixmap (int, const QPixmap&); - void setToolTip (int, const QString&); - void setTextColor (int, const QColor&); - const QColor& textColor (int); - void removeTab (int); - int currentTab (); - void setCurrentTab (int, bool = 0); - void setTabEnabled (int, bool); - bool isTabEnabled (int); - void setTabCaption (int, const QString&); - QString tabCaption (int); - virtual void show (); - virtual void setFont (const QFont&); - void showTabIcon (bool); - bool isShowTabIcon (); - -signals: - void tabSelected (int); - void rightButtonPress (int, QPoint); - -protected slots: - void leftClicked (); - void rightClicked (); - -protected: - virtual void paintEvent (QPaintEvent*); - virtual void resizeEvent (QResizeEvent*); - virtual void keyPressEvent (QKeyEvent*); - -}; // class KDockTabBar - - -class KDockTabBarPainter : QWidget -{ -%TypeHeaderCode -#include -%End - - -public: - QString tip (const QPoint&); - QRect findBarRectByPos (int, int); - -private: - KDockTabBarPainter (KDockTabBar*/TransferThis/); - -protected: - virtual void mousePressEvent (QMouseEvent*); - virtual void mouseReleaseEvent (QMouseEvent*); - virtual void resizeEvent (QResizeEvent*); - virtual void paintEvent (QPaintEvent*); - -}; // class KDockTabBarPainter - - -class KDockTabCtl : QWidget -{ -%TypeHeaderCode -#include -%End - - -public: - KDockTabCtl (QWidget*/TransferThis/ = 0, const char* = 0); - virtual void setTabPos (KDockTabBar::TabPos); - KDockTabBar::TabPos getTabPos (); - int insertPage (QWidget*, const QString&, int = -1, int = -1); - void setPageCaption (QWidget*, const QString&); - void setPageCaption (int, const QString&); - QString pageCaption (QWidget*); - QString pageCaption (int); - void captionAutoSet (bool); - bool isCaptionAutoSet (); - void setPixmap (QWidget*, const QPixmap&); - void setPixmap (int, const QPixmap&); - void setToolTip (QWidget*, const QString&); - void setTabTextColor (QWidget*, const QColor&); - void setTabTextColor (int, const QColor&); - const QColor& tabTextColor (QWidget*); - const QColor& tabTextColor (int); - bool isPageEnabled (QWidget*); - bool isPageEnabled (int); - void setPageEnabled (QWidget*, bool); - void setPageEnabled (int, bool); - QWidget* page (int); - int id (QWidget*); - int index (QWidget*); - void removePage (QWidget*); - void removePage (int); - QWidget* visiblePage (); - int visiblePageId (); - void setVisiblePage (QWidget*, bool = 0); - void setTabFont (const QFont&); - QFont tabFont (); - void showTabIcon (bool); - bool isShowTabIcon (); - int pageCount (); - QWidget* getFirstPage (); - QWidget* getLastPage (); - QWidget* getNextPage (QWidget*); - QWidget* getPrevPage (QWidget*); - virtual void show (); - virtual bool eventFilter (QObject*, QEvent*); - -public slots: - virtual void setEnabled (bool); - void setVisiblePage (int); - -protected: - void paintEvent (QPaintEvent*); - -signals: - void aboutToShow (QWidget*); - void pageSelected (QWidget*); - void tabShowPopup (int, QPoint); - -protected slots: - void rightButtonPress (int, QPoint); - -protected: - KDockTabCtl_PrivateStruct* findData (QWidget*); - KDockTabCtl_PrivateStruct* findData (int); - void showPage (QWidget*, bool = 0); - -}; // class KDockTabCtl - diff --git a/sip/kdeui/kdockwidget.sip b/sip/kdeui/kdockwidget.sip deleted file mode 100644 index c65d398..0000000 --- a/sip/kdeui/kdockwidget.sip +++ /dev/null @@ -1,469 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KDockWidgetAbstractHeader : QFrame -{ -%TypeHeaderCode -#include -%End - - -public: - KDockWidgetAbstractHeader (KDockWidget* /TransferThis/, const char* = 0); - virtual void setTopLevel (bool); - virtual void saveConfig (KConfig*); - virtual void loadConfig (KConfig*); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KDockWidgetAbstractHeader - - -class KDockWidgetAbstractHeaderDrag : QFrame -{ -%TypeHeaderCode -#include -%End - - -public: - KDockWidgetAbstractHeaderDrag (KDockWidgetAbstractHeader* /TransferThis/, KDockWidget*, const char* = 0); - KDockWidget* dockWidget (); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KDockWidgetAbstractHeaderDrag - - -class KDockWidgetHeaderDrag : KDockWidgetAbstractHeaderDrag -{ -%TypeHeaderCode -#include -%End - - -public: - KDockWidgetHeaderDrag (KDockWidgetAbstractHeader* /TransferThis/, KDockWidget*, const char* = 0); - -protected: - virtual void paintEvent (QPaintEvent*); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KDockWidgetHeaderDrag - - -class KDockWidgetHeader : KDockWidgetAbstractHeader -{ -%TypeHeaderCode -#include -%End - - -public: - KDockWidgetHeader (KDockWidget* /TransferThis/, const char* = 0); - virtual void setTopLevel (bool); - void setDragPanel (KDockWidgetHeaderDrag*); - -%If ( KDE_3_4_0 - ) - KDockWidgetHeaderDrag* dragPanel (); -%End - - bool dragEnabled (); - void setDragEnabled (bool); - -%If ( KDE_3_1_0 - ) - void showUndockButton (bool); - -%If ( KDE_3_2_0 - ) - void forceCloseButtonHidden (bool = 1); -%End - -%End - - virtual void saveConfig (KConfig*); - virtual void loadConfig (KConfig*); - -%If ( KDE_3_2_0 - ) -//ig void addButton (KDockButton_Private*); -//ig void removeButton (KDockButton_Private*); -%End - - -protected slots: - void slotStayClicked (); - -protected: - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KDockWidgetHeader - - -class KDockTabGroup : QTabWidget -{ -%TypeHeaderCode -#include -%End - - -public: - KDockTabGroup (QWidget* /TransferThis/ = 0, const char* = 0); - -%If ( KDE_3_2_0 - ) - QWidget* transientTo (); -%End - - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KDockTabGroup - - -class KDockWidget : QWidget -{ -%TypeHeaderCode -#include -%End - - -public: - KDockWidget (KDockManager*, const char*, const QPixmap&, QWidget* /TransferThis/ = 0, const QString& = 0, const QString& = " ", WFlags = 0); - -%If ( KDE_3_1_0 - ) - - enum DockPosition - { - DockNone, - DockTop, - DockLeft, - DockRight, - DockBottom, - DockCenter, - DockDesktop, - DockToSpecialSites, - DockCorner, - DockFullSite, - DockFullDocking - }; - -%End - - KDockWidget* manualDock (KDockWidget*, KDockWidget::DockPosition, int = 50, QPoint = QPoint (0 ,0 ), bool = 0, int = -1); - void setEnableDocking (int); - int enableDocking (); - void setDockSite (int); - int dockSite (); - void setWidget (QWidget*); - QWidget* getWidget (); - void setHeader (KDockWidgetAbstractHeader*); - -%If ( KDE_3_2_0 - ) - KDockWidgetAbstractHeader* getHeader (); -%End - - void makeDockVisible (); - bool mayBeHide (); - bool mayBeShow (); - KDockManager* dockManager (); - void setToolTipString (const QString&); - const QString& toolTipString (); - bool isDockBackPossible (); - void setTabPageLabel (const QString&); - const QString& tabPageLabel (); - virtual bool event (QEvent*); - virtual void show (); - KDockTabGroup* parentDockTabGroup (); - -%If ( KDE_3_1_0 - ) - QWidget* parentDockContainer () const; -%End - - void setDockWindowType (NET::WindowType); - void setDockWindowTransient (QWidget* /Transfer/, bool); - -%If ( KDE_3_2_0 - ) - QWidget* transientTo (); -%End - - -%If ( KDE_3_1_0 - ) - KDockWidget* findNearestDockWidget (KDockWidget::DockPosition); - -%If ( KDE_3_2_0 - ) - void setPixmap (const QPixmap& = QPixmap ()); - const QPixmap& pixmap () const; - -%If ( KDE_3_3_0 - ) - KDockWidget::DockPosition currentDockPosition () const; -%End - -%End - -%End - - -public slots: - -%If ( KDE_3_1_0 - ) - void setForcedFixedWidth (int); - void setForcedFixedHeight (int); - void restoreFromForcedFixedSize (); - int forcedFixedWidth (); - int forcedFixedHeight (); -%End - - void dockBack (); - void changeHideShowState (); - void undock (); - -%If ( KDE_3_1_0 - ) - void toDesktop (); -%End - - -protected: - void updateHeader (); - -%If ( KDE_3_1_0 - ) - void setLatestKDockContainer (QWidget*); - QWidget* latestKDockContainer (); - -%If ( KDE_3_2_1 - ) - void setFormerBrotherDockWidget (KDockWidget*); -%End - -%End - - -signals: - -%If ( KDE_3_2_0 - ) - void widgetSet (QWidget*); -%End - - void docking (KDockWidget*, KDockWidget::DockPosition); - void setDockDefaultPos (); - void headerCloseButtonClicked (); - void headerDockbackButtonClicked (); - void iMBeingClosed (); - void hasUndocked (); - -protected slots: - void loseFormerBrotherDockWidget (); - -%If ( KDE_3_1_0 - ) - virtual void paintEvent (QPaintEvent*); - virtual void mousePressEvent (QMouseEvent*); - virtual void mouseReleaseEvent (QMouseEvent*); - virtual void mouseMoveEvent (QMouseEvent*); - virtual void leaveEvent (QEvent*); -%End - - -protected: - -protected: -//igx virtual void virtual_hook (int, void*); - -public: - -%If ( - KDE_3_1_0 ) - - enum DockPosition - { - DockNone, - DockTop, - DockLeft, - DockRight, - DockBottom, - DockCenter, - DockDesktop, - DockCorner, - DockFullSite, - DockFullDocking - }; - -%End - - -}; // class KDockWidget - - -class KDockManager : QObject -{ -%TypeHeaderCode -#include -%End - - -public: - -%If ( KDE_3_2_0 - ) - - enum EnReadDockConfigMode - { - Unknown, - WrapExistingWidgetsOnly, - RestoreAllDockwidgets - }; - -%End - - -public: - KDockManager (QWidget*, const char* = 0); - -%If ( KDE_3_2_0 - ) - void dumpDockWidgets (); -%End - - void writeConfig (KConfig* = 0, QString = QString ::null ); - void readConfig (KConfig* = 0, QString = QString ::null ); - -%If ( KDE_3_1_0 - ) - void setMainDockWidget2 (KDockWidget*); -%End - - void writeConfig (QDomElement&); - void readConfig (QDomElement&); - void activate (); - virtual bool eventFilter (QObject*, QEvent*); - KDockWidget* findWidgetParentDock (QWidget*); - void makeWidgetDockVisible (QWidget*); - QPopupMenu* dockHideShowMenu (); - KDockWidget* getDockWidgetFromName (const QString&); - void setSplitterOpaqueResize (bool = 1); - bool splitterOpaqueResize () const; - void setSplitterKeepSize (bool = 1); - bool splitterKeepSize () const; - void setSplitterHighResolution (bool = 1); - bool splitterHighResolution () const; - -%If ( KDE_3_2_0 - ) - void setSpecialLeftDockContainer (KDockWidget*); - void setSpecialTopDockContainer (KDockWidget*); - void setSpecialRightDockContainer (KDockWidget*); - void setSpecialBottomDockContainer (KDockWidget*); - void removeFromAutoCreateList (KDockWidget*); - void finishReadDockConfig (); - void setReadDockConfigMode (int); -%End - - -signals: - void change (); - void replaceDock (KDockWidget*, KDockWidget*); - void setDockDefaultPos (KDockWidget*); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KDockManager - - -class KDockMainWindow : KMainWindow -{ -%TypeHeaderCode -#include -%End - - -public: - KDockMainWindow (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = WType_TopLevel |WDestructiveClose ); - KDockManager* manager (); - void setMainDockWidget (KDockWidget*); - KDockWidget* getMainDockWidget (); - KDockWidget* createDockWidget (const QString&, const QPixmap&, QWidget* /Transfer/ = 0, const QString& = 0, const QString& = " "); - void writeDockConfig (QDomElement&); - void readDockConfig (QDomElement&); - void writeDockConfig (KConfig* = 0, QString = QString ::null ); - void readDockConfig (KConfig* = 0, QString = QString ::null ); - void activateDock (); - QPopupMenu* dockHideShowMenu (); - void makeDockVisible (KDockWidget*); - void makeDockInvisible (KDockWidget*); - void makeWidgetDockVisible (QWidget*); - void setView (QWidget*); - -signals: - void dockWidgetHasUndocked (KDockWidget*); - -protected: - -protected slots: - void slotDockWidgetUndocked (); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KDockMainWindow - - -class KDockArea : QWidget -{ -%TypeHeaderCode -#include -%End - - -public: - KDockArea (QWidget* /TransferThis/ = 0, const char* = 0); - KDockManager* manager (); - void setMainDockWidget (KDockWidget*); - KDockWidget* getMainDockWidget (); - KDockWidget* createDockWidget (const QString&, const QPixmap&, QWidget* /Transfer/ = 0, const QString& = 0, const QString& = " "); - void writeDockConfig (QDomElement&); - void readDockConfig (QDomElement&); - void writeDockConfig (KConfig* = 0, QString = QString ::null ); - void readDockConfig (KConfig* = 0, QString = QString ::null ); - void activateDock (); - QPopupMenu* dockHideShowMenu (); - void makeDockVisible (KDockWidget*); - void makeDockInvisible (KDockWidget*); - void makeWidgetDockVisible (QWidget*); - -signals: - void dockWidgetHasUndocked (KDockWidget*); - -protected: - -protected slots: - void slotDockWidgetUndocked (); - -public: - virtual void resizeEvent (QResizeEvent*); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KDockArea - diff --git a/sip/kdeui/kdockwindow.sip b/sip/kdeui/kdockwindow.sip deleted file mode 100644 index af46e2a..0000000 --- a/sip/kdeui/kdockwindow.sip +++ /dev/null @@ -1,38 +0,0 @@ -// -// Copyright 2005 Jim Bublitz -// Earlier copyrights 1998 - 2004 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE_3_4_0 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KDockWindow : KSystemTray -{ -%TypeHeaderCode -#include -%End - - -public: - KDockWindow (QWidget* /TransferThis/ = 0, const char* = 0); - -}; // class KDockWindow - diff --git a/sip/kdeui/kdualcolorbtn.sip b/sip/kdeui/kdualcolorbtn.sip deleted file mode 100644 index 210c397..0000000 --- a/sip/kdeui/kdualcolorbtn.sip +++ /dev/null @@ -1,73 +0,0 @@ -// -// Copyright 2003 Jim Bublitz -// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE_3_1_1 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KDualColorButton : QWidget -{ -%TypeHeaderCode -#include -%End - - -public: - - enum DualColor - { - Foreground, - Background - }; - - KDualColorButton (QWidget*/TransferThis/ = 0, const char* = 0); - KDualColorButton (QWidget*/TransferThis/, const char*, QWidget*); - KDualColorButton (const QColor&, const QColor&, QWidget*/TransferThis/ = 0, const char* = 0); - KDualColorButton (const QColor&, const QColor&, QWidget*/TransferThis/, const char*, QWidget*); - QColor foreground () const; - QColor background () const; - DualColor current () const; - QColor currentColor () const; - virtual QSize sizeHint () const; - -public slots: - void setForeground (const QColor&); - void setBackground (const QColor&); - void setCurrent (KDualColorButton::DualColor); - void setCurrentColor (const QColor&); - -signals: - void fgChanged (const QColor&); - void bgChanged (const QColor&); - void currentChanged (KDualColorButton::DualColor); - -protected: - virtual void metrics (QRect&, QRect&); - virtual void paintEvent (QPaintEvent*); - virtual void mousePressEvent (QMouseEvent*); - virtual void mouseMoveEvent (QMouseEvent*); - virtual void mouseReleaseEvent (QMouseEvent*); - virtual void dragEnterEvent (QDragEnterEvent*); - virtual void dropEvent (QDropEvent*); - -}; // class KDualColorButton - diff --git a/sip/kdeui/kdualcolorbutton.sip b/sip/kdeui/kdualcolorbutton.sip deleted file mode 100644 index 739dad9..0000000 --- a/sip/kdeui/kdualcolorbutton.sip +++ /dev/null @@ -1,74 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KDualColorButton : QWidget -{ -%TypeHeaderCode -#include -%End - - -public: - - enum DualColor - { - Foreground, - Background - }; - - KDualColorButton (QWidget* /TransferThis/ = 0, const char* = 0, QWidget* = 0); - KDualColorButton (const QColor&, const QColor&, QWidget* /TransferThis/ = 0, const char* = 0, QWidget* = 0); - QColor foreground () const; - QColor background () const; - KDualColorButton::DualColor current () const; - QColor currentColor () const; - virtual QSize sizeHint () const; - -public slots: - void setForeground (const QColor&); - void setBackground (const QColor&); - void setCurrent (KDualColorButton::DualColor); - void setCurrentColor (const QColor&); - -signals: - void fgChanged (const QColor&); - void bgChanged (const QColor&); - void currentChanged (KDualColorButton::DualColor); - -protected: - virtual void metrics (QRect&, QRect&); - virtual void paintEvent (QPaintEvent*); - virtual void mousePressEvent (QMouseEvent*); - virtual void mouseMoveEvent (QMouseEvent*); - virtual void mouseReleaseEvent (QMouseEvent*); - virtual void dragEnterEvent (QDragEnterEvent*); - virtual void dropEvent (QDropEvent*); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KDualColorButton - diff --git a/sip/kdeui/keditcl.sip b/sip/kdeui/keditcl.sip deleted file mode 100644 index 89674c3..0000000 --- a/sip/kdeui/keditcl.sip +++ /dev/null @@ -1,224 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KEdGotoLine : KDialogBase -{ -%TypeHeaderCode -#include -%End - - -public: - KEdGotoLine (QWidget* /TransferThis/ = 0, const char* = 0, bool = 1); - int getLineNumber (); - -public slots: - void selected (int); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KEdGotoLine - - -class KEdFind : KDialogBase -{ -%TypeHeaderCode -#include -%End - - -public: - KEdFind (QWidget* /TransferThis/ = 0, const char* = 0, bool = 1); - QString getText () const; - void setText (QString); - void setCaseSensitive (bool); - bool case_sensitive () const; - void setDirection (bool); - bool get_direction () const; - KHistoryCombo* searchCombo () const; - -protected slots: - void slotCancel (); - void slotUser1 (); - void textSearchChanged (const QString&); - -protected: - -signals: - void search (); - void done (); - -protected: -//igx virtual void virtual_hook (int, void*); -//force - -private: - virtual void done (int); -//end - -}; // class KEdFind - - -class KEdReplace : KDialogBase -{ -%TypeHeaderCode -#include -%End - - -public: - KEdReplace (QWidget* /TransferThis/ = 0, const char* = 0, bool = 1); - QString getText (); - QString getReplaceText (); - void setText (QString); - KHistoryCombo* searchCombo () const; - KHistoryCombo* replaceCombo () const; - bool case_sensitive (); - bool get_direction (); - -protected slots: - void slotCancel (); - void slotClose (); - void slotUser1 (); - void slotUser2 (); - void slotUser3 (); - void textSearchChanged (const QString&); - -signals: - void replace (); - void find (); - void replaceAll (); - void done (); - -protected: -//igx virtual void virtual_hook (int, void*); -//force - -private: - virtual void done (int); -//end - -}; // class KEdReplace - - -class KEdit : QMultiLineEdit -{ -%TypeHeaderCode -#include -%End - - -public: - KEdit (QWidget* /TransferThis/ = 0, const char* = 0); - - enum - { - NONE, - FORWARD, - BACKWARD - }; - - void insertText (QTextStream*); - -%If ( KDE_3_1_0 - ) - void saveText (QTextStream*, bool); -%End - - void saveText (QTextStream*); - void selectFont (); - void search (); - bool repeatSearch (); - void replace (); - void doGotoLine (); - void cleanWhiteSpace (); - void installRBPopup (QPopupMenu*); - int currentLine (); - int currentColumn (); - void spellcheck_start (); - void spellcheck_stop (); - void setOverwriteEnabled (bool); - -%If ( KDE_3_2_0 - ) - QString selectWordUnderCursor (); - -%If ( KDE_3_2_3 - ) - QPopupMenu* createPopupMenu (const QPoint&); - -%If ( KDE_3_3_0 - ) - void setAutoUpdate (bool); -%End - -%End - -%End - - -signals: - void gotUrlDrop (QDropEvent*); - void CursorPositionChanged (); - void toggle_overwrite_signal (); - -public slots: - -%If ( KDE_3_2_0 - ) - void corrected (const QString&, const QString&, uint); - void misspelling (const QString&, const QStringList&, uint); -%End - - -protected: - void computePosition (); - int doSearch (QString, bool, bool, bool, int, int); - int doReplace (QString, bool, bool, bool, int, int, bool); - void posToRowCol (uint, uint&, uint&); - virtual void create (WId = 0, bool = 1, bool = 1); - -%If ( KDE_3_3_0 - ) - virtual void ensureCursorVisible (); - virtual void setCursor (const QCursor&); - virtual void viewportPaintEvent (QPaintEvent*); -%End - - -protected: - void keyPressEvent (QKeyEvent*); - void dragMoveEvent (QDragMoveEvent*); - void dragEnterEvent (QDragEnterEvent*); - void dropEvent (QDropEvent*); - -%If ( KDE_3_1_3 - ) - void contentsDragMoveEvent (QDragMoveEvent*); - void contentsDragEnterEvent (QDragEnterEvent*); - void contentsDropEvent (QDropEvent*); -%End - - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KEdit - diff --git a/sip/kdeui/keditlistbox.sip b/sip/kdeui/keditlistbox.sip deleted file mode 100644 index d63ae25..0000000 --- a/sip/kdeui/keditlistbox.sip +++ /dev/null @@ -1,206 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -%ModuleHeaderCode -const char **PyQtListToArray(PyObject *); -%End - - -class KEditListBox : QGroupBox -{ -%TypeHeaderCode -#include -%End - - -public: - -%If ( KDE_3_1_0 - ) - - class CustomEditor - { - - public: - CustomEditor (); - CustomEditor (QWidget*, KLineEdit*); - CustomEditor (KComboBox*); - void setRepresentationWidget (QWidget*); - void setLineEdit (KLineEdit*); - virtual QWidget* representationWidget () const; - virtual KLineEdit* lineEdit () const; - - protected: - - }; // class CustomEditor - - -public: -%End - - -public: - -%If ( KDE_3_5_0 - ) - - enum Button - { - Add, - Remove, - UpDown - }; - - - enum - { - All - }; - -%End - - KEditListBox (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, int = All ); - KEditListBox (const QString&, QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, int = All ); - -%If ( KDE_3_1_0 - ) - KEditListBox (const QString&, const KEditListBox::CustomEditor&, QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, int = All ); -%End - - QListBox* listBox () const; - KLineEdit* lineEdit () const; - QPushButton* addButton () const; - QPushButton* removeButton () const; - QPushButton* upButton () const; - QPushButton* downButton () const; - int count () const; - void insertStringList (const QStringList&, int = -1); - void insertStrList (const QStrList*, int = -1); - void insertStrList (const QStrList&, int = -1); - void insertStrList (SIP_PYLIST, int = -1) [void (const char**, int = -1, int = -1)]; -%MethodCode -//takes list | (a Python list of strings) | index | (int) - - int n; - - if ((n = PyList_Size (a0)) == 0) - return NULL; - - const char **strings; - - if ((strings = PyQtListToArray(a0)) == NULL) - return NULL; - - Py_BEGIN_ALLOW_THREADS - sipCpp->insertStrList (strings, n, a1); - Py_END_ALLOW_THREADS - - sipFree((ANY *)strings); -%End - - void insertItem (const QString&, int = -1); - void clear (); - QString text (int) const; - int currentItem () const; - QString currentText () const; - QStringList items () const; - -%If ( KDE_3_4_0 - ) - void setItems (const QStringList&); - int buttons () const; - void setButtons (uint); -%End - - -signals: - void changed (); - -%If ( KDE_3_2_0 - ) - void added (const QString&); - void removed (const QString&); -%End - - -protected slots: - void moveItemUp (); - void moveItemDown (); - void addItem (); - void removeItem (); - void enableMoveButtons (int); - void typedSomething (const QString&); - -protected: -//igx virtual void virtual_hook (int, void*); - -public: - -%If ( - KDE_3_5_0 ) - - enum Button - { - Add, - Remove, - UpDown, - All - }; - -%End - - -}; // class KEditListBox - - - -%ModuleCode -// Convert a list of strings to an array of strings on the heap. Also used by -// QPixmap. - -const char **PyQtListToArray(PyObject *lst) -{ - int nstr; - const char **str, **sp; - - nstr = PyList_Size(lst); - - if ((str = (const char **)sipMalloc(nstr * sizeof (char *))) == NULL) - return NULL; - - // Convert the list. - - sp = str; - - for (int i = 0; i < nstr; ++i) - { - char *s; - - if ((s = PyString_AsString(PyList_GetItem(lst,i))) == NULL) - { - sipFree((ANY *)str); - return NULL; - } - - *sp++ = s; - } - - return str; -} -%End diff --git a/sip/kdeui/kedittoolbar.sip b/sip/kdeui/kedittoolbar.sip deleted file mode 100644 index fb1074f..0000000 --- a/sip/kdeui/kedittoolbar.sip +++ /dev/null @@ -1,156 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KEditToolbar : KDialogBase -{ -%TypeHeaderCode -#include -%End - - -public: - KEditToolbar (KActionCollection*, const QString& = QString ::null , bool = 1, QWidget* /TransferThis/ = 0, const char* = 0); - -%If ( KDE_3_2_0 - ) - KEditToolbar (const QString&, KActionCollection*, const QString& = QString ::null , bool = 1, QWidget* /TransferThis/ = 0, const char* = 0); -%End - - KEditToolbar (KXMLGUIFactory*, QWidget* /TransferThis/ = 0, const char* = 0); - -%If ( KDE_3_2_0 - ) - KEditToolbar (const QString&, KXMLGUIFactory*, QWidget* /TransferThis/ = 0, const char* = 0); - -%If ( KDE_3_3_0 - ) - static void setDefaultToolbar (const char*); -%End - -%End - - -protected slots: - virtual void slotOk (); - virtual void slotApply (); - void acceptOK (bool); - -%If ( KDE_3_5_0 - ) - void slotDefault (); -%End - - -signals: - void newToolbarConfig (); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KEditToolbar - - -class KEditToolbarWidget : QWidget, KXMLGUIClient -{ -%TypeHeaderCode -#include -%End - - -public: - KEditToolbarWidget (KActionCollection*, const QString& = QString ::null , bool = 1, QWidget* /TransferThis/ = 0); - -%If ( KDE_3_2_0 - ) - KEditToolbarWidget (const QString&, KActionCollection*, const QString& = QString ::null , bool = 1, QWidget* /TransferThis/ = 0); -%End - - KEditToolbarWidget (KXMLGUIFactory*, QWidget* /TransferThis/ = 0); - -%If ( KDE_3_2_0 - ) - KEditToolbarWidget (const QString&, KXMLGUIFactory*, QWidget* /TransferThis/ = 0); -%End - - -%If ( KDE_3_1_0 - ) - virtual KActionCollection* actionCollection () const; -%End - - bool save (); - -%If ( KDE_3_5_0 - ) - void rebuildKXMLGUIClients (); -%End - - -signals: - void enableOk (bool); - -protected slots: - void slotToolbarSelected (const QString&); - void slotInactiveSelected (QListViewItem*); - void slotActiveSelected (QListViewItem*); - -%If ( KDE_3_3_0 - ) - void slotDropped (KListView*, QDropEvent*, QListViewItem*); -%End - - void slotInsertButton (); - void slotRemoveButton (); - void slotUpButton (); - void slotDownButton (); - -%If ( KDE_3_3_0 - ) - void slotChangeIcon (); -%End - - -protected: - void setupLayout (); - -%If ( KDE_3_3_0 - ) -//ig void insertActive (ToolbarItem*, QListViewItem*, bool = 0); -//ig void removeActive (ToolbarItem*); -//ig void moveActive (ToolbarItem*, QListViewItem*); -%End - - -%If ( KDE_3_2_0 - ) - void initNonKPart (KActionCollection*, const QString&, bool); - void initKPart (KXMLGUIFactory*); - void loadToolbarCombo (const QString& = QString ::null ); -%End - - void loadActionList (QDomElement&); - void updateLocal (QDomElement&); - -protected: -//igx virtual void virtual_hook (int, void*); - -protected: - -%If ( - KDE_3_2_0 ) - void loadToolbarCombo (); -%End - - -}; // class KEditToolbarWidget - diff --git a/sip/kdeui/kfontcombo.sip b/sip/kdeui/kfontcombo.sip deleted file mode 100644 index 7bca452..0000000 --- a/sip/kdeui/kfontcombo.sip +++ /dev/null @@ -1,67 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KFontCombo : KComboBox -{ -%TypeHeaderCode -#include -%End - - -public: - KFontCombo (QWidget* /TransferThis/, const char* = 0); - KFontCombo (const QStringList&, QWidget* /TransferThis/, const char* = 0); - void setFonts (const QStringList&); - void setCurrentFont (const QString&); - QString currentFont () const; - void setBold (bool); - bool bold () const; - void setItalic (bool); - bool italic () const; - void setUnderline (bool); - bool underline () const; - void setStrikeOut (bool); - bool strikeOut () const; - void setSize (int); - int size () const; - static bool displayFonts (); - virtual void setCurrentItem (int); - -protected slots: - -%If ( KDE_3_3_0 - ) - void slotModified (int); -%End - - -protected: - void updateFonts (); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KFontCombo - diff --git a/sip/kdeui/kfontdialog.sip b/sip/kdeui/kfontdialog.sip deleted file mode 100644 index 8ef9b57..0000000 --- a/sip/kdeui/kfontdialog.sip +++ /dev/null @@ -1,184 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KFontChooser : QWidget -{ -%TypeHeaderCode -#include -#include -%End - - -public: - -%If ( KDE_3_1_0 - ) - - enum FontColumn - { - FamilyList, - StyleList, - SizeList - }; - -%End - - - enum FontDiff - { - FontDiffFamily, - FontDiffStyle, - FontDiffSize - }; - - KFontChooser (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, const QStringList& = QStringList (), bool = 1, int = 8, bool = 0, QButton::ToggleState = QButton ::Off ) [(QWidget* = 0, const char* = 0, bool = 0, const QStringList& = QStringList (), bool = 1, int = 8, bool = 0, QButton::ToggleState* = 0)]; -%MethodCode -//takes parent | (QWidget = 0) | name | (string = "") | onlyFixed | (bool = 0) | fontList | (QStringList = QStringList()) | makeFrame | (bool = 1) | visibleListSize | (int = 8) | diff | (bool = 0) | sizeIsRelativeState | (QButton::ToggleState = 0) -//returns - Py_BEGIN_ALLOW_THREADS - sipCpp = (sipKFontChooser *) new KFontChooser (a0, a1, a2, *a3, a4, a5, a6, &a7); - Py_END_ALLOW_THREADS -%End - - void enableColumn (int, bool); - void setFont (const QFont&, bool = 0); - int fontDiffFlags (); - QFont font () const; - void setColor (const QColor&); - QColor color () const; - void setBackgroundColor (const QColor&); - QColor backgroundColor () const; - void setSizeIsRelative (QButton::ToggleState); - QButton::ToggleState sizeIsRelative () const; - QString sampleText () const; - void setSampleText (const QString&); - -%If ( KDE_3_5_0 - ) - void setSampleBoxVisible (bool); -%End - - static QString getXLFD (const QFont&); - - enum FontListCriteria - { - FixedWidthFonts, - ScalableFonts, - SmoothScalableFonts - }; - - static void getFontList (QStringList&, bool); - virtual QSize sizeHint () const; - -signals: - void fontSelected (const QFont&); - -protected: -//igx virtual void virtual_hook (int, void*); - -public: - -%If ( - KDE_3_1_0 ) - - enum FontColumn - { - FamilyList, - StyleList, - SizeList, - CharsetList - }; - -%End - - -}; // class KFontChooser - - -class KFontDialog : KDialogBase -{ -%TypeHeaderCode -#include -%End - - -public: - KFontDialog (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, bool = 0, const QStringList& = QStringList (), bool = 1, bool = 0, QButton::ToggleState = QButton ::Off ) [(QWidget* = 0, const char* = 0, bool = 0, bool = 0, const QStringList& = QStringList (), bool = 1, bool = 0, QButton::ToggleState* = 0)]; -%MethodCode -//takes parent | (QWidget = 0) | name | (string = "") | onlyFixed | (bool = 0) | modal | (bool = 0) | fontlist | (QStringList = QStringList()) | makeFrame | (bool = 1) | diff | (bool = 0) | sizeIsRelativeState | (QButton::ToggleState = 0) - Py_BEGIN_ALLOW_THREADS - sipCpp = (sipKFontDialog *)new KFontDialog (a0, a1, a2, a3, *a4, a5, a6, &a7); - Py_END_ALLOW_THREADS -%End - - void setFont (const QFont&, bool = 0); - QFont font () const; - void setSizeIsRelative (QButton::ToggleState); - QButton::ToggleState sizeIsRelative () const; - static SIP_PYTUPLE getFont (QFont&, bool = 0, QWidget* /Transfer/ = 0, bool = 1, QButton::ToggleState /In/ = QButton ::Off ) [int (QFont&, bool = 0, QWidget* = 0, bool = 1, QButton::ToggleState* = 0)]; -%MethodCode -//returns (int) sizeIsRelative (QButton::ToggleState) -//takes theFont | (QFont) | onlyFixed | (bool = False) | parent | (QWidget = 0) | makeFrame | (bool = True) | sizeIsRelative | (QButton::ToggleState = QButton.Off) - int res; - Py_BEGIN_ALLOW_THREADS - res = KFontDialog::getFont (*a0, a1, a2, a3, &a4); - Py_END_ALLOW_THREADS - - sipRes = Py_BuildValue ("ii", res, (int)a4); -%End - - static SIP_PYTUPLE getFontDiff (QFont&, int&, bool = 0, QWidget* /Transfer/ = 0, bool = 1, QButton::ToggleState /In/ = QButton ::Off ) [int (QFont&, int&, bool = 0, QWidget* = 0, bool = 1, QButton::ToggleState* = 0)]; -%MethodCode -//returns (int) sizeIsRelative (QButton::ToggleState) -//takes theFont | (QFont) | diffFlags | (int) | onlyFixed | (bool = False) | parent | (QWidget = 0) | makeFrame | (bool = true) | sizeIsRelative | (QButton::ToggleState = QButton.Off) - int res; - Py_BEGIN_ALLOW_THREADS - res = KFontDialog::getFontDiff (*a0, a1, a2, a3, a4, &a5); - Py_END_ALLOW_THREADS - - sipRes = Py_BuildValue ("ii", res, (int)a5); -%End - - static SIP_PYTUPLE getFontAndText (QFont&, QString&, bool = 0, QWidget* /Transfer/ = 0, bool = 1, QButton::ToggleState /In/ = QButton ::Off ) [int (QFont&, QString&, bool = 0, QWidget* = 0, bool = 1, QButton::ToggleState* = 0)]; -%MethodCode -//returns (int) sizeIsRelative (QButton::ToggleState) -//takes theFont | (QFont) | theString | (QString) | onlyFixed | (bool = False) | parent | (QWidget = 0) | makeFrame | (bool = true) | sizeIsRelative | (QButton::ToggleState = QButton.Off) - int res; - Py_BEGIN_ALLOW_THREADS - res = KFontDialog::getFontAndText (*a0, *a1, a2, a3, a4, &a5); - Py_END_ALLOW_THREADS - - sipRes = Py_BuildValue ("ii", res, (int)a5); -%End - - -signals: - void fontSelected (const QFont&); - -protected: - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KFontDialog - diff --git a/sip/kdeui/kfontrequester.sip b/sip/kdeui/kfontrequester.sip deleted file mode 100644 index 7e707bd..0000000 --- a/sip/kdeui/kfontrequester.sip +++ /dev/null @@ -1,63 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_2_0 - ) - -class KFontRequester : QWidget -{ -%TypeHeaderCode -#include -%End - - -public: - KFontRequester (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0); - QFont font () const; - bool isFixedOnly () const; - QString sampleText () const; - QString title () const; - QLabel* label () const; - QPushButton* button () const; - virtual void setFont (const QFont&, bool = 0); - virtual void setSampleText (const QString&); - virtual void setTitle (const QString&); - -signals: - void fontSelected (const QFont&); - -protected: - void displaySampleText (); - void setToolTip (); - -protected slots: - virtual void buttonClicked (); - -protected: - -}; // class KFontRequester - -%End - diff --git a/sip/kdeui/kguiitem.sip b/sip/kdeui/kguiitem.sip deleted file mode 100644 index 90796ca..0000000 --- a/sip/kdeui/kguiitem.sip +++ /dev/null @@ -1,57 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KGuiItem -{ -%TypeHeaderCode -#include -%End - - -public: - KGuiItem (); - KGuiItem (const QString&, const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null ); - KGuiItem (const QString&, const QIconSet&, const QString& = QString ::null , const QString& = QString ::null ); - KGuiItem (const KGuiItem&); - QString text () const; - QString plainText () const; - QIconSet iconSet (KIcon::Group, int = 0, KInstance* = KGlobal ::instance ()) const; - QIconSet iconSet () const; - QString iconName () const; - QString toolTip () const; - QString whatsThis () const; - bool isEnabled () const; - bool hasIcon () const; - bool hasIconSet () const; - void setText (const QString&); - void setIconSet (const QIconSet&); - void setIconName (const QString&); - void setToolTip (const QString&); - void setWhatsThis (const QString&); - void setEnabled (bool); - -}; // class KGuiItem - diff --git a/sip/kdeui/khelpmenu.sip b/sip/kdeui/khelpmenu.sip deleted file mode 100644 index 97e0680..0000000 --- a/sip/kdeui/khelpmenu.sip +++ /dev/null @@ -1,63 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KHelpMenu : QObject -{ -%TypeHeaderCode -#include -%End - - -public: - - enum MenuId - { - menuHelpContents, - menuWhatsThis, - menuAboutApp, - menuAboutKDE, - menuReportBug - }; - - KHelpMenu (QWidget* /TransferThis/ = 0, const QString& = QString ::null , bool = 1); - KHelpMenu (QWidget* /TransferThis/, const KAboutData*, bool = 1, KActionCollection* = 0); - KPopupMenu* menu (); - -public slots: - void appHelpActivated (); - void contextHelpActivated (); - void aboutApplication (); - void aboutKDE (); - void reportBug (); - -signals: - void showAboutApplication (); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KHelpMenu - diff --git a/sip/kdeui/kiconview.sip b/sip/kdeui/kiconview.sip deleted file mode 100644 index 11ffa56..0000000 --- a/sip/kdeui/kiconview.sip +++ /dev/null @@ -1,147 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KIconView : QIconView -{ -%TypeHeaderCode -#include -%End - - -public: - KIconView (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); - - enum Mode - { - Execute, - Select - }; - - void setMode (KIconView::Mode); - Mode mode () const; - virtual void setFont (const QFont&); - -%If ( KDE_3_3_0 - ) - void setIconTextHeight (int); - int iconTextHeight () const; - -%If ( KDE_3_4_0 - ) - virtual void takeItem (QIconViewItem*); -%End - -%End - - -signals: - void executed (QIconViewItem*); - void executed (QIconViewItem*, const QPoint&); - -%If ( KDE_3_3_0 - ) - void held (QIconViewItem*); -%End - - void doubleClicked (QIconViewItem*, const QPoint&); - -protected slots: - void slotOnItem (QIconViewItem*); - void slotOnViewport (); - void slotSettingsChanged (int); - void slotAutoSelect (); - -protected: - void emitExecute (QIconViewItem*, const QPoint&); - -%If ( KDE_3_5_0 - ) - void updateDragHoldItem (QDropEvent*); -%End - - virtual void focusOutEvent (QFocusEvent*); - virtual void leaveEvent (QEvent*); - virtual void contentsMousePressEvent (QMouseEvent*); - virtual void contentsMouseDoubleClickEvent (QMouseEvent*); - virtual void contentsMouseReleaseEvent (QMouseEvent*); - -%If ( KDE_3_3_0 - ) - virtual void contentsDragEnterEvent (QDragEnterEvent*); - -%If ( KDE_3_5_0 - ) - virtual void contentsDragLeaveEvent (QDragLeaveEvent*); -%End - - virtual void contentsDragMoveEvent (QDragMoveEvent*); - virtual void contentsDropEvent (QDropEvent*); - virtual void wheelEvent (QWheelEvent*); - -%If ( KDE_3_4_0 - ) - void cancelPendingHeldSignal (); -%End - -%End - - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KIconView - - -class KIconViewItem : QIconViewItem -{ -%TypeHeaderCode -#include -%End - - -public: - KIconViewItem (QIconView* /TransferThis/); - KIconViewItem (QIconView* /TransferThis/, QIconViewItem*); - KIconViewItem (QIconView* /TransferThis/, const QString&); - KIconViewItem (QIconView* /TransferThis/, QIconViewItem*, const QString&); - KIconViewItem (QIconView* /TransferThis/, const QString&, const QPixmap&); - KIconViewItem (QIconView* /TransferThis/, QIconViewItem*, const QString&, const QPixmap&); - KIconViewItem (QIconView* /TransferThis/, const QString&, const QPicture&); - KIconViewItem (QIconView* /TransferThis/, QIconViewItem*, const QString&, const QPicture&); - -%If ( KDE_3_3_0 - ) - void setPixmapSize (const QSize&); - QSize pixmapSize () const; -%End - - -protected: - void init (); - virtual void calcRect (const QString& = QString ::null ); - virtual void paintItem (QPainter*, const QColorGroup&); - -%If ( KDE_3_2_0 - ) - KWordWrap* wordWrap (); - void paintPixmap (QPainter*, const QColorGroup&); - void paintText (QPainter*, const QColorGroup&); -%End - - -}; // class KIconViewItem - diff --git a/sip/kdeui/kiconviewsearchline.sip b/sip/kdeui/kiconviewsearchline.sip deleted file mode 100644 index 0dac3f4..0000000 --- a/sip/kdeui/kiconviewsearchline.sip +++ /dev/null @@ -1,61 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_4_0 - ) - -class KIconViewSearchLine : KLineEdit -{ -%TypeHeaderCode -#include -%End - - -public: - KIconViewSearchLine (QWidget* /TransferThis/ = 0, QIconView* = 0, const char* = 0); - KIconViewSearchLine (QWidget* /TransferThis/, const char*); - bool caseSensitive () const; - QIconView* iconView () const; - -public slots: - virtual void updateSearch (const QString& = QString ::null ); - void setCaseSensitive (bool); - void setIconView (QIconView*); - void clear (); - -protected: - virtual bool itemMatches (const QIconViewItem*, const QString&) const; - void init (QIconView* = 0); - void hideItem (QIconViewItem*); - void showItem (QIconViewItem*); - -protected slots: - void queueSearch (const QString&); - void activateSearch (); - -}; // class KIconViewSearchLine - -%End - diff --git a/sip/kdeui/kinputdialog.sip b/sip/kdeui/kinputdialog.sip deleted file mode 100644 index acae513..0000000 --- a/sip/kdeui/kinputdialog.sip +++ /dev/null @@ -1,66 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_2_0 - ) - -class KInputDialog : KDialogBase -{ -%TypeHeaderCode -#include -%End - - -private: - KInputDialog (const QString&, const QString&, const QString&, QWidget* /TransferThis/, const char*, QValidator*, const QString&); - -%If ( KDE_3_3_0 - ) - KInputDialog (const QString&, const QString&, const QString&, QWidget* /TransferThis/, const char*); -%End - - KInputDialog (const QString&, const QString&, int, int, int, int, int, QWidget* /TransferThis/, const char*); - KInputDialog (const QString&, const QString&, const QStringList&, int, bool, QWidget* /TransferThis/, const char*); - KInputDialog (const QString&, const QString&, const QStringList&, const QStringList&, bool, QWidget* /TransferThis/, const char*); - ~KInputDialog (); - -public: - static QString getText (const QString&, const QString&, const QString& = QString ::null , bool* = 0, QWidget* /Transfer/ = 0, const char* = 0, QValidator* = 0, const QString& = QString ::null ); - -%If ( KDE_3_3_0 - ) - static QString text (const QString&, const QString&, const QString& = QString ::null , bool* = 0, QWidget* /Transfer/ = 0, const char* = 0, QValidator* = 0, const QString& = QString ::null , const QString& = QString ::null ); - static QString getMultiLineText (const QString&, const QString&, const QString& = QString ::null , bool* = 0, QWidget* /Transfer/ = 0, const char* = 0); -%End - - static int getInteger (const QString&, const QString&, int = 0, int = -2147483647, int = 2147483647, int = 1, int = 10, bool* = 0, QWidget* /Transfer/ = 0, const char* = 0); -//ig static int getInteger (const QString&, const QString&, int = 0, int = -2147483647, int = 2147483647, int = 1, bool* = 0, QWidget* /Transfer/ = 0, const char* = 0); - static double getDouble (const QString&, const QString&, double = 0, double = -2147483647, double = 2147483647, double = 0.1, int = 1, bool* = 0, QWidget* /Transfer/ = 0, const char* = 0); -//ig static double getDouble (const QString&, const QString&, double = 0, double = -2147483647, double = 2147483647, int = 1, bool* = 0, QWidget* /Transfer/ = 0, const char* = 0); - static QString getItem (const QString&, const QString&, const QStringList&, int = 0, bool = 0, bool* = 0, QWidget* /Transfer/ = 0, const char* = 0); - static QStringList getItemList (const QString&, const QString&, const QStringList& = QStringList (), const QStringList& = QStringList (), bool = 0, bool* = 0, QWidget* /Transfer/ = 0, const char* = 0); - -}; // class KInputDialog - -%End - diff --git a/sip/kdeui/kjanuswidget.sip b/sip/kdeui/kjanuswidget.sip deleted file mode 100644 index 7dd299a..0000000 --- a/sip/kdeui/kjanuswidget.sip +++ /dev/null @@ -1,110 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KJanusWidget : QWidget -{ -%TypeHeaderCode -#include -%End - - -public: - - enum Face - { - TreeList, - Tabbed, - Plain, - Swallow, - IconList - }; - - -public: - KJanusWidget (QWidget* /TransferThis/ = 0, const char* = 0, int = Plain ); - virtual bool showPage (int); - virtual int activePageIndex () const; - virtual bool isValid () const; - virtual int face () const; - virtual QSize minimumSizeHint () const; - virtual QSize sizeHint () const; - virtual QFrame* plainPage (); - virtual QFrame* addPage (const QString&, const QString& = QString ::null , const QPixmap& = QPixmap ()); - virtual QFrame* addPage (const QStringList&, const QString& = QString ::null , const QPixmap& = QPixmap ()); - virtual QVBox* addVBoxPage (const QString&, const QString& = QString ::null , const QPixmap& = QPixmap ()); - virtual QVBox* addVBoxPage (const QStringList&, const QString& = QString ::null , const QPixmap& = QPixmap ()); - virtual QHBox* addHBoxPage (const QString&, const QString& = QString ::null , const QPixmap& = QPixmap ()); - virtual QHBox* addHBoxPage (const QStringList&, const QString& = QString ::null , const QPixmap& = QPixmap ()); - virtual QGrid* addGridPage (int, Qt::Orientation, const QString&, const QString& = QString ::null , const QPixmap& = QPixmap ()); - virtual QGrid* addGridPage (int, Qt::Orientation, const QStringList&, const QString& = QString ::null , const QPixmap& = QPixmap ()); - -%If ( KDE_3_1_0 - ) - void removePage (QWidget*); -%End - - virtual int pageIndex (QWidget*) const; - virtual bool setSwallowedWidget (QWidget*); - virtual void setTreeListAutoResize (bool); - virtual void setShowIconsInTreeList (bool); - virtual void setRootIsDecorated (bool); - -%If ( KDE_3_2_0 - ) - void unfoldTreeList (bool = 0); - void addWidgetBelowList (QWidget*); - void addButtonBelowList (const QString&, QObject*, const char*); - void addButtonBelowList (const KGuiItem&, QObject*, const char*); -%End - - virtual void setIconListAllVisible (bool); - virtual void setFolderIcon (const QStringList&, const QPixmap&); - -%If ( KDE_3_2_0 - ) - QString pageTitle (int) const; - QWidget* pageWidget (int) const; -%End - - -signals: - void aboutToShowPage (QWidget*); - -public slots: - virtual void setFocus (); - -protected: - virtual void showEvent (QShowEvent*); - virtual bool eventFilter (QObject*, QEvent*); - -protected: - bool showPage (QWidget*); - void addPageWidget (QFrame*, const QStringList&, const QString&, const QPixmap&); - void InsertTreeListItem (const QStringList&, const QPixmap&, QFrame*); - QWidget* FindParent (); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KJanusWidget - diff --git a/sip/kdeui/kkeybutton.sip b/sip/kdeui/kkeybutton.sip deleted file mode 100644 index 56fca38..0000000 --- a/sip/kdeui/kkeybutton.sip +++ /dev/null @@ -1,59 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KKeyButton : QPushButton -{ -%TypeHeaderCode -#include -#include -%End - - -public: - KKeyButton (QWidget* /TransferThis/ = 0, const char* = 0); - void setShortcut (const KShortcut&); - -%If ( KDE_3_1_0 - ) - void setShortcut (const KShortcut&, bool); -%End - - const KShortcut& shortcut () const; - void setText (const QString&); - -signals: - void capturedShortcut (const KShortcut&); - -public slots: - void captureShortcut (); - -protected: - void drawButton (QPainter*); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KKeyButton - diff --git a/sip/kdeui/kkeydialog.sip b/sip/kdeui/kkeydialog.sip deleted file mode 100644 index 96d4ff9..0000000 --- a/sip/kdeui/kkeydialog.sip +++ /dev/null @@ -1,266 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KKeyChooser : QWidget -{ -%TypeHeaderCode -#include -%End - - -public: - - enum ActionType - { - Application, - ApplicationGlobal, - Standard, - Global - }; - - KKeyChooser (QWidget* /TransferThis/, KKeyChooser::ActionType = Application , bool = 1); - KKeyChooser (KActionCollection*, QWidget* /TransferThis/, bool = 1); - KKeyChooser (KAccel*, QWidget* /TransferThis/, bool = 1); - KKeyChooser (KGlobalAccel*, QWidget* /TransferThis/); - KKeyChooser (KShortcutList*, QWidget* /TransferThis/, KKeyChooser::ActionType = Application , bool = 1); - bool insert (KActionCollection*); - -%If ( KDE_3_1_0 - ) - bool insert (KActionCollection*, const QString&); -%End - - void syncToConfig (const QString&, KConfigBase*, bool); - void commitChanges (); - void save (); - -%If ( KDE_3_2_0 - ) - static bool checkGlobalShortcutsConflict (const KShortcut&, bool, QWidget* /Transfer/); - static bool checkStandardShortcutsConflict (const KShortcut&, bool, QWidget* /Transfer/); -%End - - -signals: - void keyChange (); - -public slots: - void allDefault (); - void setPreferFourModifierKeys (bool); - -protected: - void initGUI (KKeyChooser::ActionType, bool); - bool insert (KAccel*); - bool insert (KGlobalAccel*); - bool insert (KShortcutList*); - -%If ( KDE_3_1_0 - ) - void buildListView (uint, const QString& = QString ::null ); -%End - - void readGlobalKeys (); - void updateButtons (); - void fontChange (const QFont&); - void setShortcut (const KShortcut&); - bool isKeyPresent (const KShortcut&, bool = 1); - -%If ( KDE_3_1_0 - ) -//ig bool isKeyPresentLocally (const KShortcut&, KKeyChooserItem*, const QString&); -%End - - void _warning (const KKeySequence&, QString, QString); - -protected slots: - void slotNoKey (); - void slotDefaultKey (); - void slotCustomKey (); - void slotListItemSelected (QListViewItem*); - void capturedShortcut (const KShortcut&); - -%If ( KDE_3_1_0 - ) - void slotSettingsChanged (int); - -%If ( KDE_3_1_2 - ) - void slotListItemDoubleClicked (QListViewItem*, const QPoint&, int); -%End - -%End - - -protected: - -public: - KKeyChooser (KAccel*, QWidget* /TransferThis/, bool, bool, bool = 0); - KKeyChooser (KGlobalAccel*, QWidget* /TransferThis/, bool, bool, bool = 0); - -public slots: - void listSync (); - -protected: -//igx virtual void virtual_hook (int, void*); - -protected: - -%If ( - KDE_3_1_0 ) - void buildListView (uint); -%End - - -}; // class KKeyChooser - - -class KKeyDialog : KDialogBase -{ -%TypeHeaderCode -#include -%End - - -public: - KKeyDialog (bool = 1, QWidget* /TransferThis/ = 0, const char* = 0); - bool insert (KActionCollection*); - -%If ( KDE_3_1_0 - ) - bool insert (KActionCollection*, const QString&); -%End - - bool configure (bool = 1); - void commitChanges (); - static int configure (KActionCollection*, QWidget* /Transfer/ = 0, bool = 1); - static int configure (KAccel*, QWidget* /Transfer/ = 0, bool = 1); - static int configure (KGlobalAccel*, QWidget* /Transfer/ = 0, bool = 1); - -%If ( KDE_3_1_0 - ) - static int configure (KActionCollection*, bool, QWidget* /Transfer/ = 0, bool = 1); - static int configure (KAccel*, bool, QWidget* /Transfer/ = 0, bool = 1); - static int configure (KGlobalAccel*, bool, QWidget* /Transfer/ = 0, bool = 1); -%End - - static int configureKeys (KAccel*, bool = 1, QWidget* /Transfer/ = 0); - static int configureKeys (KGlobalAccel*, bool = 1, QWidget* /Transfer/ = 0); - static int configureKeys (KActionCollection*, const QString&, bool = 1, QWidget* /Transfer/ = 0); - -%If ( KDE_3_1_0 - ) - -private: - KKeyDialog (KKeyChooser::ActionType, bool = 1, QWidget* /TransferThis/ = 0, const char* = 0); -%End - - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KKeyDialog - -typedef KKeyChooser KKeyChooser; - - -%MappedType IntDict -//converts a Python dict of QString:int -{ -%TypeHeaderCode -#include -typedef QDict IntDict; -%End - -%ConvertFromTypeCode -// Convert to a Python dictionary - - if (!sipCpp) - return PyDict_New(); - - PyObject *dict; - - // Create the dictionary. - - if ((dict = PyDict_New()) == NULL) - return NULL; - - // Get it. - - QDict qdict = *sipCpp; - QDictIterator it (qdict); - - while (it.current ()) - { - QString current_key = it.currentKey (); - PyObject *a0 = sipConvertFromInstance (¤t_key, sipClass_QCString, sipTransferObj); - PyObject *a1 = PyInt_FromLong ((long) it.current ()); - - if ((a0 == NULL) || (a1 == NULL) || (PyDict_SetItem (dict, a0, a1) < 0)) - { - Py_XDECREF (a0); - Py_XDECREF (a1); - Py_DECREF (dict); - return NULL; - } - } - - return dict; -%End - - -%ConvertToTypeCode - // Convert a Python dictionary to a QDict on the heap. - - if (sipIsErr == NULL) - return PyDict_Check(sipPy); - - QDict* qdict = new QDict; - - PyObject *key, *value; - SIP_SSIZE_T pos = 0; - QString *a0; - int a1; - - while (PyDict_Next(sipPy, &pos, &key, &value)) - { - int iserr = 0, a0_state; - - a0 = (QString *)sipForceConvertToType(key, sipType_QString, sipTransferObj, SIP_NOT_NONE, &a0_state, &iserr); - - if ((iserr) || (!PyInt_Check (value))) - { - if (a0) - sipReleaseType(a0, sipType_QString, a0_state); - - *sipIsErr = 1; - delete qdict; - return 0; - } - - a1 = (int) PyInt_AS_LONG (value); - - qdict->insert (*a0, &a1); - - sipReleaseType(a0, sipType_QString, a0_state); - } - - *sipCppPtr = qdict; - - return 1; -%End -}; - - diff --git a/sip/kdeui/klanguagebutton.sip b/sip/kdeui/klanguagebutton.sip deleted file mode 100644 index 9e37774..0000000 --- a/sip/kdeui/klanguagebutton.sip +++ /dev/null @@ -1,60 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_3_0 - ) - -class KLanguageButton : QWidget -{ -%TypeHeaderCode -#include -%End - - -public: - KLanguageButton (QWidget* /TransferThis/ = 0, const char* = 0); - KLanguageButton (const QString&, QWidget* /TransferThis/ = 0, const char* = 0); - void insertItem (const QIconSet&, const QString&, const QString&, const QString& = QString ::null , int = -1); - void insertItem (const QString&, const QString&, const QString& = QString ::null , int = -1); - void insertSeparator (const QString& = QString ::null , int = -1); - void insertSubmenu (const QIconSet&, const QString&, const QString&, const QString& = QString ::null , int = -1); - void insertSubmenu (const QString&, const QString&, const QString& = QString ::null , int = -1); - void insertLanguage (const QString&, const QString&, const QString& = QString ::null , const QString& = QString ::null , int = -1); - int count () const; - void clear (); - void setText (const QString&); - QString current () const; - bool contains (const QString&) const; - void setCurrentItem (const QString&); - QString id (int) const; - -signals: - void activated (const QString&); - void highlighted (const QString&); - -}; // class KLanguageButton - -%End - diff --git a/sip/kdeui/kled.sip b/sip/kdeui/kled.sip deleted file mode 100644 index c281a90..0000000 --- a/sip/kdeui/kled.sip +++ /dev/null @@ -1,97 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KLed : QWidget -{ -%TypeHeaderCode -#include -%End - - -public: - - enum State - { - Off, - On - }; - - - enum Shape - { - Rectangular, - Circular - }; - - - enum Look - { - Flat, - Raised, - Sunken - }; - - KLed (QWidget* /TransferThis/ = 0, const char* = 0); -//ig KLed (const QColor&, QWidget* /TransferThis/ = 0, const char* = 0); - KLed (const QColor&, KLed::State, KLed::Look, KLed::Shape, QWidget* /TransferThis/ = 0, const char* = 0); - State state () const; - Shape shape () const; - const QColor color () const; - Look look () const; - int darkFactor () const; - void setState (KLed::State); - void setShape (KLed::Shape); - void toggleState (); - void setColor (const QColor&); - void setDarkFactor (int); - void setLook (KLed::Look); - virtual QSize sizeHint () const; - virtual QSize minimumSizeHint () const; - -public slots: - void toggle (); - void on (); - void off (); - -protected: - virtual void paintFlat (); - virtual void paintRound (); - virtual void paintSunken (); - virtual void paintRect (); - virtual void paintRectFrame (bool); - void paintEvent (QPaintEvent*); - -%If ( KDE_3_3_0 - ) - int ensureRoundLed (); - bool paintCachedPixmap (); -%End - - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KLed - diff --git a/sip/kdeui/klineedit.sip b/sip/kdeui/klineedit.sip deleted file mode 100644 index 2cb05a0..0000000 --- a/sip/kdeui/klineedit.sip +++ /dev/null @@ -1,146 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KLineEdit : QLineEdit, KCompletionBase -{ -%TypeHeaderCode -#include -%End - - -public: - KLineEdit (const QString&, QWidget* /TransferThis/, const char* = 0); - KLineEdit (QWidget* /TransferThis/ = 0, const char* = 0); - void setURL (const KURL&); - void cursorAtEnd (); - virtual void setCompletionMode (KGlobalSettings::Completion); - virtual void setContextMenuEnabled (bool); - bool isContextMenuEnabled () const; - void setURLDropsEnabled (bool); - bool isURLDropsEnabled () const; - void setTrapReturnKey (bool); - bool trapReturnKey () const; - virtual bool eventFilter (QObject*, QEvent*); - KCompletionBox* completionBox (bool); - virtual void setCompletionObject (KCompletion*, bool = 1); - -%If ( KDE_3_1_0 - ) - virtual void copy () const; - -%If ( KDE_3_2_0 - ) - void setEnableSqueezedText (bool); - bool isSqueezedTextEnabled () const; - QString originalText () const; - -%If ( KDE_3_4_0 - ) - void setCompletionBox (KCompletionBox*); -%End - -%End - -%End - - -signals: - -%If ( KDE_3_1_0 - ) - void completionBoxActivated (const QString&); -%End - - void returnPressed (const QString&); - void completion (const QString&); - void substringCompletion (const QString&); - void textRotation (KCompletionBase::KeyBindingType); - void completionModeChanged (KGlobalSettings::Completion); - void aboutToShowContextMenu (QPopupMenu*); - -public slots: - virtual void setReadOnly (bool); - void rotateText (KCompletionBase::KeyBindingType); - virtual void setCompletedText (const QString&); - void setCompletedItems (const QStringList&); - -%If ( KDE_3_3_0 - ) - void setCompletedItems (const QStringList&, bool); -%End - - virtual void clear (); - -%If ( KDE_3_1_0 - ) - void setSqueezedText (const QString&); - -%If ( KDE_3_2_0 - ) - virtual void setText (const QString&); -%End - -%End - - -protected slots: - virtual void makeCompletion (const QString&); - void slotAboutToShow (); - void slotCancelled (); - -%If ( KDE_3_2_0 - ) - void userCancelled (const QString&); -%End - - -protected: - -%If ( KDE_3_1_0 - ) - virtual void resizeEvent (QResizeEvent*); -%End - - virtual void keyPressEvent (QKeyEvent*); - virtual void mousePressEvent (QMouseEvent*); - virtual void mouseDoubleClickEvent (QMouseEvent*); - -%If ( KDE_3_3_1 - ) - virtual void contextMenuEvent (QContextMenuEvent*); -%End - - virtual QPopupMenu* createPopupMenu (); - virtual void dropEvent (QDropEvent*); - virtual void setCompletedText (const QString&, bool); - -%If ( KDE_3_2_0 - ) - void setUserSelection (bool); -%End - - virtual void create (WId = 0, bool = 1, bool = 1); - -%If ( KDE_3_4_0 - ) - virtual void focusInEvent (QFocusEvent*); - bool autoSuggest () const; -%End - - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KLineEdit - diff --git a/sip/kdeui/klineeditdlg.sip b/sip/kdeui/klineeditdlg.sip deleted file mode 100644 index 7b30054..0000000 --- a/sip/kdeui/klineeditdlg.sip +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KLineEditDlg : KDialogBase -{ -%TypeHeaderCode -#include -%End - - -public: - KLineEditDlg (const QString&, const QString&, QWidget* /TransferThis/); - QString text (); - KLineEdit* lineEdit () const; - static QString getText (const QString&, const QString&, bool*, QWidget* /Transfer/, QValidator* = 0); - static QString getText (const QString&, const QString&, const QString& = QString ::null , bool* = 0, QWidget* /Transfer/ = 0, QValidator* = 0); - -public slots: - void slotClear (); - -protected slots: - void slotTextChanged (const QString&); - -protected: - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KLineEditDlg - diff --git a/sip/kdeui/klistbox.sip b/sip/kdeui/klistbox.sip deleted file mode 100644 index aec4359..0000000 --- a/sip/kdeui/klistbox.sip +++ /dev/null @@ -1,60 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KListBox : QListBox -{ -%TypeHeaderCode -#include -%End - - -public: - KListBox (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); - -signals: - void executed (QListBoxItem*); - void executed (QListBoxItem*, const QPoint&); - void doubleClicked (QListBoxItem*, const QPoint&); - -protected slots: - void slotOnItem (QListBoxItem*); - void slotOnViewport (); - void slotSettingsChanged (int); - void slotAutoSelect (); - -protected: - void emitExecute (QListBoxItem*, const QPoint&); - virtual void keyPressEvent (QKeyEvent*); - virtual void focusOutEvent (QFocusEvent*); - virtual void leaveEvent (QEvent*); - virtual void contentsMousePressEvent (QMouseEvent*); - virtual void contentsMouseDoubleClickEvent (QMouseEvent*); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KListBox - diff --git a/sip/kdeui/klistview.sip b/sip/kdeui/klistview.sip deleted file mode 100644 index 88231f9..0000000 --- a/sip/kdeui/klistview.sip +++ /dev/null @@ -1,336 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KListView : QListView -{ -%TypeHeaderCode -#include -%End - - -public: - - enum SelectionModeExt - { - Single, - Multi, - Extended, - NoSelection, - FileManager - }; - - KListView (QWidget* /TransferThis/ = 0, const char* = 0); - virtual void setAcceptDrops (bool); - virtual bool isExecuteArea (const QPoint&); - bool isExecuteArea (int); - QPtrList selectedItems () const; - -%If ( KDE_3_4_0 - ) - QPtrList selectedItems (bool) const; -%End - - void moveItem (QListViewItem*, QListViewItem* /Transfer/, QListViewItem*); - QListViewItem* lastItem () const; - QListViewItem* lastChild () const; - -%If ( KDE_3_1_0 - ) - KLineEdit* renameLineEdit () const; -%End - - bool itemsMovable () const; - bool itemsRenameable () const; - bool dragEnabled () const; - bool autoOpen () const; - bool isRenameable (int) const; - bool dropVisualizer () const; - int tooltipColumn () const; - bool createChildren () const; - bool dropHighlighter () const; - int dropVisualizerWidth () const; - SelectionModeExt selectionModeExt () const; - int itemIndex (const QListViewItem*) const; - QListViewItem* itemAtIndex (int); - void setFullWidth (); - void setFullWidth (bool); - bool fullWidth () const; - -%If ( KDE_3_0_1 - ) - virtual int addColumn (const QString&, int = -1); - virtual int addColumn (const QIconSet&, const QString&, int = -1); - virtual void removeColumn (int); -%End - - void setAlternateBackground (const QColor&); - const QColor& alternateBackground () const; - void saveLayout (KConfig*, const QString&) const; - void restoreLayout (KConfig*, const QString&); - virtual void setSorting (int, bool = 1); - int columnSorted () const; - bool ascendingSort () const; - -%If ( KDE_3_2_0 - ) - virtual void takeItem (QListViewItem*); - -%If ( KDE_3_4_0 - ) - void setShadeSortColumn (bool); - bool shadeSortColumn () const; -%End - -%End - - -signals: - void executed (QListViewItem*); - void executed (QListViewItem*, const QPoint&, int); - void dropped (QDropEvent*, QListViewItem*); - void dropped (KListView*, QDropEvent*, QListViewItem*); - void dropped (KListView*, QDropEvent*, QListViewItem* /Transfer/, QListViewItem*); - void dropped (QDropEvent*, QListViewItem* /Transfer/, QListViewItem*); - void moved (); - void aboutToMove (); - void moved (QListViewItem*, QListViewItem*, QListViewItem*); - void moved (QPtrList&, QPtrList&, QPtrList&); - void itemRenamed (QListViewItem*, const QString&, int); - void itemRenamed (QListViewItem*); - void menuShortCutPressed (KListView*, QListViewItem*); - void contextMenu (KListView*, QListViewItem*, const QPoint&); - -%If ( KDE_3_3_0 - ) - void itemAdded (QListViewItem*); - void itemRemoved (QListViewItem*); -%End - - -public slots: - virtual void rename (QListViewItem*, int); - void setRenameable (int, bool = 1); - virtual void setItemsMovable (bool); - virtual void setItemsRenameable (bool); - virtual void setDragEnabled (bool); - virtual void setAutoOpen (bool); - virtual void setDropVisualizer (bool); - void setDropVisualizerWidth (int); - virtual void setTooltipColumn (int); - virtual void setDropHighlighter (bool); - virtual void setCreateChildren (bool); - void setSelectionModeExt (KListView::SelectionModeExt); - -%If ( KDE_3_1_0 - ) - void setTabOrderedRenaming (bool); - bool tabOrderedRenaming () const; -%End - - -protected: - bool below (const QRect&, const QPoint&); - bool below (QListViewItem*, const QPoint&); - virtual bool event (QEvent*); - void emitExecute (QListViewItem*, const QPoint&, int); - virtual void focusInEvent (QFocusEvent*); - virtual void focusOutEvent (QFocusEvent*); - virtual void leaveEvent (QEvent*); - virtual QString tooltip (QListViewItem*, int) const; - virtual bool showTooltip (QListViewItem*, const QPoint&, int) const; - virtual void contentsDragMoveEvent (QDragMoveEvent*); - virtual void contentsMousePressEvent (QMouseEvent*); - virtual void contentsMouseMoveEvent (QMouseEvent*); - virtual void contentsMouseDoubleClickEvent (QMouseEvent*); - virtual void contentsDragLeaveEvent (QDragLeaveEvent*); - virtual void contentsMouseReleaseEvent (QMouseEvent*); - virtual void contentsDropEvent (QDropEvent*); - virtual void contentsDragEnterEvent (QDragEnterEvent*); -//ig virtual QDragObject* dragObject () const; - virtual bool acceptDrag (QDropEvent*) const; - virtual QRect drawDropVisualizer (QPainter*, QListViewItem* /Transfer/, QListViewItem*); - virtual QRect drawItemHighlighter (QPainter*, QListViewItem*); - virtual void startDrag (); - virtual void keyPressEvent (QKeyEvent*); - virtual void viewportPaintEvent (QPaintEvent*); - void activateAutomaticSelection (); - void deactivateAutomaticSelection (); - bool automaticSelection () const; - virtual void viewportResizeEvent (QResizeEvent*); - -%If ( KDE_3_2_0 - ) - void disableAutoSelection (); - void resetAutoSelection (); - -%If ( KDE_3_3_0 - ) - void doubleClicked (QListViewItem*, const QPoint&, int); -%End - -%End - - -protected slots: - void slotSettingsChanged (int); - void slotMouseButtonClicked (int, QListViewItem*, const QPoint&, int); - void doneEditing (QListViewItem*, int); - void cleanDropVisualizer (); - void cleanItemHighlighter (); - void emitContextMenu (QListViewItem*, const QPoint&, int); - void emitContextMenu (KListView*, QListViewItem*); - void slotOnItem (QListViewItem*); - void slotOnViewport (); - void slotAutoSelect (); - -%If ( KDE_3_2_0 - ) - void slotDragExpand (); -%End - - void slotHeaderChanged (); - -protected: - virtual void movableDropEvent (QListViewItem*, QListViewItem*); - virtual void findDrop (const QPoint&, QListViewItem*&, QListViewItem*&); - void fileManagerKeyPressEvent (QKeyEvent*); - int depthToPixels (int); - -protected: -//igx virtual void virtual_hook (int, void*); - -signals: - -%If ( - KDE_3_3_0 ) - void doubleClicked (QListViewItem*, const QPoint&, int); -%End - - -protected: -//force - virtual QDragObject* dragObject (); -//end - -}; // class KListView - - -class KListViewItem : QListViewItem -{ -%TypeHeaderCode -#include -%End - - -public: - KListViewItem (QListView* /TransferThis/); - KListViewItem (QListViewItem* /TransferThis/); - KListViewItem (QListView* /TransferThis/, QListViewItem*); - KListViewItem (QListViewItem* /TransferThis/, QListViewItem*); - KListViewItem (QListView* /TransferThis/, QString, QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null ); - KListViewItem (QListViewItem* /TransferThis/, QString, QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null ); - KListViewItem (QListView* /TransferThis/, QListViewItem*, QString, QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null ); - KListViewItem (QListViewItem* /TransferThis/, QListViewItem*, QString, QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null ); - -%If ( KDE_3_3_0 - ) - virtual void insertItem (QListViewItem*); - virtual void takeItem (QListViewItem*); -%End - - bool isAlternate (); - const QColor& backgroundColor (); - -%If ( KDE_3_4_0 - ) - QColor backgroundColor (int); -%End - - virtual void paintCell (QPainter*, const QColorGroup&, int, int, int); - -}; // class KListViewItem - - - -%MappedType QPtrList -//converts a Python list of QListViewItem -{ -%TypeHeaderCode -#include -#include -typedef QPtrList ListViewItems; -%End - -%ConvertFromTypeCode - if (!sipCpp) - return PyList_New (0); - - PyObject *pylist; - - // Create the list - - if ((pylist = PyList_New(0)) == NULL) - return NULL; - - // Get it. - - QPtrList *cpplist = (QPtrList *)sipCpp; - QListViewItem *cpp; - PyObject *inst; - - // the loop depends on the type of iterator the template makes available - for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) - { - if (((inst = sipConvertFromInstance (cpp, sipClass_QListViewItem, sipTransferObj)) == NULL) - || PyList_Append (pylist, inst) < 0) - { - Py_DECREF (pylist); - return NULL; - } - } - - return pylist; -%End - -%ConvertToTypeCode - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - QPtrList *cpplist = new QPtrList; - - PyObject *elem; - QListViewItem *cpp; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - elem = PyList_GET_ITEM (sipPy, i); - cpp = (QListViewItem *)sipForceConvertToType(elem, sipType_QListViewItem, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - diff --git a/sip/kdeui/klistviewlineedit.sip b/sip/kdeui/klistviewlineedit.sip deleted file mode 100644 index 52aeebf..0000000 --- a/sip/kdeui/klistviewlineedit.sip +++ /dev/null @@ -1,51 +0,0 @@ -// -// Copyright 2003 Jim Bublitz -// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE_3_1_1 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KListViewLineEdit : KLineEdit -{ -%TypeHeaderCode -#include -%End - - -public: - KListViewLineEdit (KListView*/TransferThis/); - -signals: - void done (QListViewItem*, int); - -public slots: - void terminate (); - void load (QListViewItem*, int); - -protected: - virtual void focusOutEvent (QFocusEvent*); - virtual void keyPressEvent (QKeyEvent*); - virtual void paintEvent (QPaintEvent*); - void terminate (bool); - -}; // class KListViewLineEdit - diff --git a/sip/kdeui/klistviewsearchline.sip b/sip/kdeui/klistviewsearchline.sip deleted file mode 100644 index 117583f..0000000 --- a/sip/kdeui/klistviewsearchline.sip +++ /dev/null @@ -1,84 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_3_0 - ) - -class KListViewSearchLine : KLineEdit -{ -%TypeHeaderCode -#include -%End - - -public: - KListViewSearchLine (QWidget* /TransferThis/ = 0, KListView* = 0, const char* = 0); - KListViewSearchLine (QWidget* /TransferThis/, const char*); - bool caseSensitive () const; - QValueList searchColumns () const; - bool keepParentsVisible () const; - KListView* listView () const; - -public slots: - virtual void updateSearch (const QString& = QString ::null ); - void setCaseSensitive (bool); - void setKeepParentsVisible (bool); - void setSearchColumns (const QValueList&); - void setListView (KListView*); - -protected: - virtual bool itemMatches (const QListViewItem*, const QString&) const; - virtual QPopupMenu* createPopupMenu (); - -protected slots: - void queueSearch (const QString&); - void activateSearch (); - -}; // class KListViewSearchLine - -%End - - -%If ( KDE_3_4_0 - ) - -class KListViewSearchLineWidget : QHBox -{ -%TypeHeaderCode -#include -%End - - -public: - KListViewSearchLineWidget (KListView* = 0, QWidget* /TransferThis/ = 0, const char* = 0); - virtual KListViewSearchLine* createSearchLine (KListView*); - KListViewSearchLine* searchLine () const; - -protected slots: - virtual void createWidgets (); - -}; // class KListViewSearchLineWidget - -%End - diff --git a/sip/kdeui/kmainwindow.sip b/sip/kdeui/kmainwindow.sip deleted file mode 100644 index abf9895..0000000 --- a/sip/kdeui/kmainwindow.sip +++ /dev/null @@ -1,273 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KMainWindow : QMainWindow, KXMLGUIBuilder, KXMLGUIClient -{ -%TypeHeaderCode -#include -%End - - -public: - KMainWindow (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = WType_TopLevel |WDestructiveClose ); - -%If ( KDE_3_2_0 - ) - - enum CreationFlags - { - NoDCOPObject - }; - - KMainWindow (int, QWidget* /TransferThis/ = 0, const char* = 0, WFlags = WType_TopLevel |WDestructiveClose ); -%End - - KPopupMenu* helpMenu (const QString& = QString ::null , bool = 1); - KPopupMenu* customHelpMenu (bool = 1); - static bool canBeRestored (int); - static const QString classNameOfToplevel (int); - -%If ( KDE_3_2_0 - ) - virtual void show (); - virtual void hide (); -%End - - bool restore (int, bool = 1); - virtual KXMLGUIFactory* guiFactory (); - void createGUI (const QString& = QString ::null , bool = 1); - void setHelpMenuEnabled (bool = 1); - bool isHelpMenuEnabled (); - -%If ( KDE_3_1_0 - ) - bool hasMenuBar (); -%End - - KMenuBar* menuBar (); - KStatusBar* statusBar (); - QPtrList* memberList; - -%If ( KDE_3_4_0 - ) - static QPtrList* getMemberList (); -%End - - KToolBar* toolBar (const char* = 0); -//ig QPtrListIterator toolBarIterator (); - KAccel* accel (); - void setFrameBorderWidth (int); - void setAutoSaveSettings (const QString& = QString ::fromLatin1 ("MainWindow" ), bool = 1); - void resetAutoSaveSettings (); - -%If ( KDE_3_1_0 - ) - bool autoSaveSettings () const; - QString autoSaveGroup () const; - -%If ( KDE_3_3_0 - ) - void applyMainWindowSettings (KConfig*, const QString&, bool); -%End - -%End - - void applyMainWindowSettings (KConfig*, const QString& = QString ::null ); - void saveMainWindowSettings (KConfig*, const QString& = QString ::null ); - -%If ( KDE_3_1_0 - ) - void setStandardToolBarMenuEnabled (bool); - bool isStandardToolBarMenuEnabled () const; - -%If ( KDE_3_2_0 - ) - void createStandardStatusBarAction (); - -%If ( KDE_3_3_0 - ) - - enum StandardWindowOptions - { - ToolBar, - Keys, - StatusBar, - Save, - Create - }; - - void setupGUI (int = ToolBar |Keys |StatusBar |Save |Create , const QString& = QString ::null ); - -%If ( KDE_3_5_0 - ) - void setupGUI (QSize, int = ToolBar |Keys |StatusBar |Save |Create , const QString& = QString ::null ); -%End - -%End - -%End - - KAction* toolBarMenuAction (); - -%If ( KDE_3_3_1 - ) - void setupToolbarMenuActions (); -%End - - virtual void finalizeGUI (KXMLGUIClient*); -%End - - void finalizeGUI (bool); - bool initialGeometrySet () const; - -%If ( KDE_3_2_0 - ) - void ignoreInitialGeometry (); -%End - - QSize sizeForCentralWidgetSize (QSize); - -%If ( KDE_3_3_2 - ) - virtual void setIcon (const QPixmap&); -%End - - -public slots: - -%If ( KDE_3_3_0 - ) - int configureToolbars (); -%End - - virtual void setCaption (const QString&); - virtual void setCaption (const QString&, bool); - virtual void setPlainCaption (const QString&); - void appHelpActivated (); - virtual void slotStateChanged (const QString&); - -%If ( KDE_3_1_0 - ) - void slotStateChanged (const QString&, KXMLGUIClient::ReverseStateChange); -%End - - void setSettingsDirty (); - -protected: - void paintEvent (QPaintEvent*); - void childEvent (QChildEvent*); - void resizeEvent (QResizeEvent*); - virtual void closeEvent (QCloseEvent*); - virtual bool queryExit (); - virtual bool queryClose (); - virtual void saveProperties (KConfig*); - virtual void readProperties (KConfig*); - virtual void saveGlobalProperties (KConfig*); - virtual void readGlobalProperties (KConfig*); - void savePropertiesInternal (KConfig*, int); - bool readPropertiesInternal (KConfig*, int); - bool settingsDirty () const; - QString settingsGroup () const; - void saveWindowSize (KConfig*) const; - void restoreWindowSize (KConfig*); - void parseGeometry (bool); - -protected slots: - -%If ( KDE_3_3_0 - ) - void saveNewToolbarConfig (); -%End - - virtual void showAboutApplication (); - -%If ( KDE_3_2_0 - ) - void saveAutoSaveSettings (); -%End - - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KMainWindow - - - -%MappedType QPtrList -//converts a Python list of KMainWindow -{ -%TypeHeaderCode -#include -#include -%End - -%ConvertFromTypeCode - if (!sipCpp) - return PyList_New (0); - - PyObject *pylist; - - // Create the list - - if ((pylist = PyList_New(0)) == NULL) - return NULL; - - // Get it. - - QPtrList *cpplist = (QPtrList *)sipCpp; - KMainWindow *cpp; - PyObject *inst; - - // the loop depends on the type of iterator the tmeplate makes available - for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) - { - if (((inst = sipConvertFromInstance (cpp, sipClass_KMainWindow, sipTransferObj)) == NULL) - || PyList_Append (pylist, inst) < 0) - { - Py_DECREF (pylist); - return NULL; - } - } - - return pylist; -%End - -%ConvertToTypeCode - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - QPtrList *cpplist = new QPtrList; - - PyObject *elem; - KMainWindow *cpp; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - elem = PyList_GET_ITEM (sipPy, i); - cpp = (KMainWindow *)sipForceConvertToType(elem, sipType_KMainWindow, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - diff --git a/sip/kdeui/kmainwindowiface.sip b/sip/kdeui/kmainwindowiface.sip deleted file mode 100644 index 0f739fc..0000000 --- a/sip/kdeui/kmainwindowiface.sip +++ /dev/null @@ -1,71 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KMainWindowInterface : DCOPObject -{ -%TypeHeaderCode -#include -%End - - -public: - -%If ( KDE_3_1_4 - ) - virtual bool process (const QCString&, const QByteArray&, QCString&, QByteArray&); - QCStringList functions (); - QCStringList interfaces (); -%End - - -public: - KMainWindowInterface (KMainWindow*); - QCStringList functionsDynamic (); - bool processDynamic (const QCString&, const QByteArray&, QCString&, QByteArray&); - -public: - QCStringList actions (); - bool activateAction (QCString); - bool disableAction (QCString); - bool enableAction (QCString); - bool actionIsEnabled (QCString); - QCString actionToolTip (QCString); - DCOPRef action (const QCString&); - QMap actionMap (); - int getWinID (); - void grabWindowToClipBoard (); - void hide (); - void maximize (); - void minimize (); - void resize (int, int); - void move (int, int); - void setGeometry (int, int, int, int); - void raise () /PyName=raise_/; - void lower (); - void restore (); - void show (); - -}; // class KMainWindowInterface - diff --git a/sip/kdeui/kmenubar.sip b/sip/kdeui/kmenubar.sip deleted file mode 100644 index b5b420b..0000000 --- a/sip/kdeui/kmenubar.sip +++ /dev/null @@ -1,91 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KMenuBar : QMenuBar -{ -%TypeHeaderCode -#include -%End - - -public: - KMenuBar (QWidget* /TransferThis/ = 0, const char* = 0); - void setTopLevelMenu (bool = 1); - bool isTopLevelMenu () const; - -%If ( KDE_3_1_0 - ) - virtual void setGeometry (const QRect&); -%End - - virtual void setGeometry (int, int, int, int); - -%If ( KDE_3_2_0 - ) - virtual void resize (int, int); - void resize (const QSize&); -%End - - virtual void show (); - -%If ( KDE_3_2_0 - ) - virtual void setFrameStyle (int); - virtual void setLineWidth (int); - virtual void setMargin (int); - -%If ( KDE_3_4_0 - ) - virtual QSize sizeHint () const; -%End - -%End - - -protected slots: - void slotReadConfig (); - -protected: - -%If ( KDE_3_1_0 - ) - virtual void showEvent (QShowEvent*); - virtual void resizeEvent (QResizeEvent*); - virtual bool eventFilter (QObject*, QEvent*); -//ig virtual bool x11Event (XEvent*); - -%If ( KDE_3_2_3 - ) - virtual void closeEvent (QCloseEvent*); - -%If ( KDE_3_3_0 - ) - virtual void drawContents (QPainter*); -%End - -%End - -%End - - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KMenuBar - diff --git a/sip/kdeui/kmessagebox.sip b/sip/kdeui/kmessagebox.sip deleted file mode 100644 index 557a419..0000000 --- a/sip/kdeui/kmessagebox.sip +++ /dev/null @@ -1,260 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KMessageBox -{ -%TypeHeaderCode -#include -%End - - -public: - - enum ButtonCode - { - Ok, - Cancel, - Yes, - No, - Continue - }; - - - enum DialogType - { - QuestionYesNo, - WarningYesNo, - WarningContinueCancel, - WarningYesNoCancel, - Information, - Sorry, - Error, - QuestionYesNoCancel - }; - - -%If ( KDE_3_4_0 - ) - - enum OptionsType - { - Notify, - AllowLink, - Dangerous, - PlainCaption, - NoExec - }; - -%End - - static int questionYesNo (QWidget* /Transfer/, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); - -%If ( KDE_3_2_0 - ) - static int questionYesNoWId (WId, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); -%End - - static int questionYesNoCancel (QWidget* /Transfer/, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); - -%If ( KDE_3_2_0 - ) - static int questionYesNoCancelWId (WId, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); -%End - - static int questionYesNoList (QWidget* /Transfer/, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); - -%If ( KDE_3_2_0 - ) - static int questionYesNoListWId (WId, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); -%End - - static int warningYesNo (QWidget* /Transfer/, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); - -%If ( KDE_3_2_0 - ) - static int warningYesNoWId (WId, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify |Dangerous ); - static int warningYesNoList (QWidget* /Transfer/, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify |Dangerous ); - static int warningYesNoListWId (WId, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify |Dangerous ); -%End - - static int warningContinueCancel (QWidget* /Transfer/, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::cont (), const QString& = QString ::null , int = Notify ); - -%If ( KDE_3_2_0 - ) - static int warningContinueCancelWId (WId, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::cont (), const QString& = QString ::null , int = Notify ); -%End - - -%If ( KDE_3_1_0 - ) - static int warningContinueCancelList (QWidget* /Transfer/, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::cont (), const QString& = QString ::null , int = Notify ); - -%If ( KDE_3_2_0 - ) - static int warningContinueCancelListWId (WId, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::cont (), const QString& = QString ::null , int = Notify ); -%End - -%End - - static int warningYesNoCancel (QWidget* /Transfer/, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); - -%If ( KDE_3_2_0 - ) - static int warningYesNoCancelWId (WId, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); - static int warningYesNoCancelList (QWidget* /Transfer/, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); - static int warningYesNoCancelListWId (WId, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); -%End - - static void error (QWidget* /Transfer/, const QString&, const QString& = QString ::null , bool = 1); - -%If ( KDE_3_2_0 - ) - static void errorWId (WId, const QString&, const QString& = QString ::null , int = Notify ); - -%If ( KDE_3_4_0 - ) - static void errorList (QWidget* /Transfer/, const QString&, const QStringList&, const QString& = QString ::null , int = Notify ); - static void errorListWId (WId, const QString&, const QStringList&, const QString& = QString ::null , int = Notify ); -%End - -%End - - static void detailedError (QWidget* /Transfer/, const QString&, const QString&, const QString& = QString ::null , bool = 1); - -%If ( KDE_3_2_0 - ) - static void detailedErrorWId (WId, const QString&, const QString&, const QString& = QString ::null , int = Notify ); -%End - - static void queuedDetailedError (QWidget* /Transfer/, const QString&, const QString&, const QString& = QString ::null ); - -%If ( KDE_3_2_0 - ) - static void queuedDetailedErrorWId (WId, const QString&, const QString&, const QString& = QString ::null ); -%End - - static void sorry (QWidget* /Transfer/, const QString&, const QString& = QString ::null , bool = 1); - -%If ( KDE_3_2_0 - ) - static void sorryWId (WId, const QString&, const QString& = QString ::null , int = Notify ); -%End - - static void detailedSorry (QWidget* /Transfer/, const QString&, const QString&, const QString& = QString ::null , bool = 1); - -%If ( KDE_3_2_0 - ) - static void detailedSorryWId (WId, const QString&, const QString&, const QString& = QString ::null , int = Notify ); -%End - - static void information (QWidget* /Transfer/, const QString&, const QString& = QString ::null , const QString& = QString ::null , bool = 1); - -%If ( KDE_3_2_0 - ) - static void informationWId (WId, const QString&, const QString& = QString ::null , const QString& = QString ::null , int = Notify ); -%End - - -%If ( KDE_3_1_0 - ) - static void informationList (QWidget* /Transfer/, const QString&, const QStringList&, const QString& = QString ::null , const QString& = QString ::null , int = Notify ); - -%If ( KDE_3_2_0 - ) - static void informationListWId (WId, const QString&, const QStringList&, const QString& = QString ::null , const QString& = QString ::null , int = Notify ); -%End - -%End - - static void enableAllMessages (); - -%If ( KDE_3_2_0 - ) - static void enableMessage (const QString&); -%End - - static void about (QWidget* /Transfer/, const QString&, const QString& = QString ::null , bool = 1); - -%If ( KDE_3_2_0 - ) - static int messageBox (QWidget* /Transfer/, KMessageBox::DialogType, const QString&, const QString&, const KGuiItem&, const KGuiItem&, const QString&, int = Notify ); -%End - - static int messageBox (QWidget* /Transfer/, KMessageBox::DialogType, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), int = Notify ); - -%If ( KDE_3_2_0 - ) - static int messageBoxWId (WId, KMessageBox::DialogType, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); -%End - - -%If ( KDE_3_1_0 - ) - static void queuedMessageBox (QWidget* /Transfer/, KMessageBox::DialogType, const QString&, const QString&, int); - -%If ( KDE_3_2_0 - ) - static void queuedMessageBoxWId (WId, KMessageBox::DialogType, const QString&, const QString&, int); -%End - -%End - - static void queuedMessageBox (QWidget* /Transfer/, KMessageBox::DialogType, const QString&, const QString& = QString ::null ); - -%If ( KDE_3_2_0 - ) - static void queuedMessageBoxWId (WId, KMessageBox::DialogType, const QString&, const QString& = QString ::null ); - static bool shouldBeShownYesNo (const QString&, KMessageBox::ButtonCode&); - static bool shouldBeShownContinue (const QString&); - static void saveDontShowAgainYesNo (const QString&, KMessageBox::ButtonCode); - static void saveDontShowAgainContinue (const QString&); - static void setDontShowAskAgainConfig (KConfig*); - -%If ( KDE_3_3_0 - ) - static int createKMessageBox (KDialogBase*, QMessageBox::Icon, const QString&, const QStringList&, const QString&, bool*, int, const QString& = QString ::null ); - static int createKMessageBox (KDialogBase*, QPixmap, const QString&, const QStringList&, const QString&, bool*, int, const QString& = QString ::null , QMessageBox::Icon = QMessageBox ::Information ); -%End - -%End - - -public: - -%If ( KDE_3_2_0 - KDE_3_4_0 ) - - enum OptionsType - { - Notify, - AllowLink, - Dangerous - }; - -%End - - -public: - -%If ( - KDE_3_2_0 ) - - enum OptionsType - { - Notify, - AllowLink - }; - -%End - - -public: - -%If ( - KDE_3_0_3 ) -//ig static int warningContinueCancelList (QWidget* /Transfer/, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = QString ::null , const QString& = QString ::null , int = Notify ); -%End - - -%If ( KDE_3_0_3 - KDE_3_1_0 ) - static int warningContinueCancelList (QWidget* /Transfer/, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = KGuiItem (), const QString& = QString ::null , int = Notify ); -%End - - -}; // class KMessageBox - diff --git a/sip/kdeui/knuminput.sip b/sip/kdeui/knuminput.sip deleted file mode 100644 index 56e9501..0000000 --- a/sip/kdeui/knuminput.sip +++ /dev/null @@ -1,261 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KNumInput : QWidget -{ -%TypeHeaderCode -#include -%End - - -public: - KNumInput (QWidget* /TransferThis/ = 0, const char* = 0); - KNumInput (KNumInput*, QWidget* /TransferThis/ = 0, const char* = 0); - virtual void setLabel (const QString&, int = AlignLeft |AlignTop ); - QString label () const; - -%If ( KDE_3_1_0 - ) - bool showSlider () const; -%End - - void setSteps (int, int); - QSizePolicy sizePolicy () const; - virtual QSize sizeHint () const; - -protected: - void layout (bool); - virtual void doLayout () = 0; - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KNumInput - - -class KIntNumInput : KNumInput -{ -%TypeHeaderCode -#include -%End - - -public: - KIntNumInput (QWidget* /TransferThis/ = 0, const char* = 0); - KIntNumInput (int, QWidget* /TransferThis/ = 0, int = 10, const char* = 0); - KIntNumInput (KNumInput*, int, QWidget* /TransferThis/ = 0, int = 10, const char* = 0); - int value () const; - -%If ( KDE_3_1_0 - ) - double relativeValue () const; - int referencePoint () const; -%End - - QString suffix () const; - QString prefix () const; - QString specialValueText () const; - void setRange (int, int, int = 1, bool = 1); - void setMinValue (int); - int minValue () const; - void setMaxValue (int); - int maxValue () const; - void setSpecialValueText (const QString&); - virtual void setLabel (const QString&, int = AlignLeft |AlignTop ); - virtual QSize minimumSizeHint () const; - -public slots: - void setValue (int); - -%If ( KDE_3_1_0 - ) - void setRelativeValue (double); - void setReferencePoint (int); -%End - - void setSuffix (const QString&); - void setPrefix (const QString&); - void setEditFocus (bool = 1); - -signals: - void valueChanged (int); - -%If ( KDE_3_1_0 - ) - void relativeValueChanged (double); -%End - - -protected: - virtual void doLayout (); - void resizeEvent (QResizeEvent*); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KIntNumInput - - -class KDoubleNumInput : KNumInput -{ -%TypeHeaderCode -#include -%End - - -public: - KDoubleNumInput (QWidget* /TransferThis/ = 0, const char* = 0); - KDoubleNumInput (double, QWidget* /TransferThis/ = 0, const char* = 0); - -%If ( KDE_3_1_0 - ) - KDoubleNumInput (double, double, double, double = 0.01, int = 2, QWidget* /TransferThis/ = 0, const char* = 0); -%End - - KDoubleNumInput (KNumInput*, double, QWidget* /TransferThis/ = 0, const char* = 0); - -%If ( KDE_3_1_0 - ) - KDoubleNumInput (KNumInput*, double, double, double, double = 0.02, int = 2, QWidget* /TransferThis/ = 0, const char* = 0); -%End - - double value () const; - QString suffix () const; - QString prefix () const; - int precision () const; - QString specialValueText () const; - void setRange (double, double, double = 1, bool = 1); - void setMinValue (double); - double minValue () const; - void setMaxValue (double); - double maxValue () const; - void setPrecision (int); - -%If ( KDE_3_1_0 - ) - double referencePoint () const; - double relativeValue () const; -%End - - void setSpecialValueText (const QString&); - virtual void setLabel (const QString&, int = AlignLeft |AlignTop ); - virtual QSize minimumSizeHint () const; - virtual bool eventFilter (QObject*, QEvent*); - -public slots: - void setValue (double); - -%If ( KDE_3_1_0 - ) - void setRelativeValue (double); - void setReferencePoint (double); -%End - - void setSuffix (const QString&); - void setPrefix (const QString&); - -signals: - void valueChanged (double); - -%If ( KDE_3_1_0 - ) - void relativeValueChanged (double); -%End - - -protected: - virtual void doLayout (); - void resizeEvent (QResizeEvent*); - virtual void resetEditBox (); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KDoubleNumInput - - -class KIntSpinBox : QSpinBox -{ -%TypeHeaderCode -#include -%End - - -public: - KIntSpinBox (QWidget* /TransferThis/ = 0, const char* = 0); - KIntSpinBox (int, int, int, int, int = 10, QWidget* /TransferThis/ = 0, const char* = 0); - void setBase (int); - int base () const; - void setEditFocus (bool); - -protected: - virtual QString mapValueToText (int); -//ig virtual int mapTextToValue (bool*); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KIntSpinBox - - -%If ( KDE_3_1_0 - ) - -class KDoubleSpinBox : QSpinBox -{ -%TypeHeaderCode -#include -%End - - -public: - KDoubleSpinBox (QWidget* /TransferThis/ = 0, const char* = 0); - KDoubleSpinBox (double, double, double, double, int = 2, QWidget* /TransferThis/ = 0, const char* = 0); - bool acceptLocalizedNumbers () const; - virtual void setAcceptLocalizedNumbers (bool); - void setRange (double, double, double = 0.01, int = 2); - int precision () const; - void setPrecision (int); - virtual void setPrecision (int, bool); - double value () const; - double minValue () const; - void setMinValue (double); - double maxValue () const; - void setMaxValue (double); - double lineStep () const; - void setLineStep (double); - void setValidator (const QValidator*); - -signals: - void valueChanged (double); - -public slots: - virtual void setValue (double); - -protected: - virtual QString mapValueToText (int); -//ig virtual int mapTextToValue (bool*); - -protected slots: - void slotValueChanged (int); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KDoubleSpinBox - -%End - diff --git a/sip/kdeui/knumvalidator.sip b/sip/kdeui/knumvalidator.sip deleted file mode 100644 index d79d6e9..0000000 --- a/sip/kdeui/knumvalidator.sip +++ /dev/null @@ -1,89 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KIntValidator : QValidator -{ -%TypeHeaderCode -#include -%End - - -public: - KIntValidator (QWidget* /TransferThis/, int = 10, const char* = 0); - KIntValidator (int, int, QWidget* /TransferThis/, int = 10, const char* = 0); - virtual State validate (QString&, int&) const; - virtual void fixup (QString&) const; - virtual void setRange (int, int); - virtual void setBase (int); - virtual int bottom () const; - virtual int top () const; - virtual int base () const; - -}; // class KIntValidator - - -class KFloatValidator : QValidator -{ -%TypeHeaderCode -#include -%End - - -public: - KFloatValidator (QWidget* /TransferThis/, const char* = 0); - KFloatValidator (double, double, QWidget* /TransferThis/, const char* = 0); - KFloatValidator (double, double, bool, QWidget* /TransferThis/, const char* = 0); - virtual State validate (QString&, int&) const; - virtual void fixup (QString&) const; - virtual void setRange (double, double); - virtual double bottom () const; - virtual double top () const; - void setAcceptLocalizedNumbers (bool); - bool acceptLocalizedNumbers () const; - -}; // class KFloatValidator - - -%If ( KDE_3_1_0 - ) - -class KDoubleValidator : QDoubleValidator -{ -%TypeHeaderCode -#include -%End - - -public: - KDoubleValidator (QObject* /TransferThis/, const char* = 0); - KDoubleValidator (double, double, int, QObject* /TransferThis/, const char* = 0); - virtual QValidator::State validate (QString&, int&) const; - bool acceptLocalizedNumbers () const; - void setAcceptLocalizedNumbers (bool); - -}; // class KDoubleValidator - -%End - diff --git a/sip/kdeui/kpanelapplet.sip b/sip/kdeui/kpanelapplet.sip deleted file mode 100644 index 0f97cd1..0000000 --- a/sip/kdeui/kpanelapplet.sip +++ /dev/null @@ -1,140 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KPanelApplet : QFrame -{ -%TypeHeaderCode -#include -%End - - -public: - - enum Type - { - Normal, - Stretch - }; - - - enum Action - { - About, - Help, - Preferences, - ReportBug - }; - - - enum Position - { - pLeft, - pRight, - pTop, - pBottom - }; - - - enum Alignment - { - LeftTop, - Center, - RightBottom - }; - - - enum Direction - { - Up, - Down, - Left, - Right - }; - - KPanelApplet (const QString&, KPanelApplet::Type = Normal , int = 0, QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); - virtual int widthForHeight (int) const; - virtual int heightForWidth (int) const; - KConfig* config () const; - -%If ( KDE_3_2_0 - ) - KSharedConfig::Ptr sharedConfig () const; -%End - - Type type () const; - int actions () const; - virtual void action (KPanelApplet::Action); - -%If ( KDE_3_2_0 - ) - const QPopupMenu* customMenu () const; -%End - - void setPosition (KPanelApplet::Position); - void setAlignment (KPanelApplet::Alignment); - -signals: - void updateLayout (); - void requestFocus (); - -%If ( KDE_3_4_0 - ) - void requestFocus (bool); -%End - - -protected: - virtual void about (); - virtual void help (); - virtual void preferences (); - virtual void reportBug (); - Orientation orientation () const; - KPanelApplet::Position position () const; - KPanelApplet::Alignment alignment () const; - virtual void positionChange (KPanelApplet::Position); - virtual void alignmentChange (KPanelApplet::Alignment); - -%If ( KDE_3_2_0 - ) - void setCustomMenu (const QPopupMenu*); - -%If ( KDE_3_4_0 - ) - void watchForFocus (QWidget*, bool = 1); - void needsFocus (bool); -%End - -%End - - virtual void orientationChange (Orientation); - Direction popupDirection (); - virtual void popupDirectionChange (KPanelApplet::Direction); - -%If ( KDE_3_4_0 - ) - bool eventFilter (QObject*, QEvent*); -%End - - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KPanelApplet - diff --git a/sip/kdeui/kpanelappmenu.sip b/sip/kdeui/kpanelappmenu.sip deleted file mode 100644 index 97fe0a2..0000000 --- a/sip/kdeui/kpanelappmenu.sip +++ /dev/null @@ -1,51 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KPanelAppMenu : QObject, DCOPObject -{ -%TypeHeaderCode -#include -%End - - -public: - KPanelAppMenu (const QString&, QObject* /TransferThis/ = 0, const char* = 0); - KPanelAppMenu (const QPixmap&, const QString&, QObject* /TransferThis/, const char*); - KPanelAppMenu (QObject* /TransferThis/, const char*); - int insertItem (const QString&, int = -1); - int insertItem (const QPixmap&, const QString&, int = -1); - KPanelAppMenu* insertMenu (const QPixmap&, const QString&, int = -1); - void clear (); - bool process (const QCString&, const QByteArray&, QCString&, QByteArray&); - -signals: - void activated (int); - -protected: - void init (const QPixmap&, const QString&); - -}; // class KPanelAppMenu - diff --git a/sip/kdeui/kpanelextension.sip b/sip/kdeui/kpanelextension.sip deleted file mode 100644 index d1b8d8f..0000000 --- a/sip/kdeui/kpanelextension.sip +++ /dev/null @@ -1,159 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KPanelExtension : QFrame -{ -%TypeHeaderCode -#include -%End - - -public: - - enum Type - { - Normal, - Stretch - }; - - - enum Action - { - About, - Help, - Preferences, - ReportBug - }; - - -%If ( KDE_3_4_0 - ) - - enum Position - { - Left, - Right, - Top, - Bottom, - Floating - }; - -%End - - - enum Alignment - { - LeftTop, - Center, - RightBottom - }; - - -%If ( KDE_3_1_0 - ) - - enum Size - { - SizeTiny, - SizeSmall, - SizeNormal, - SizeLarge, - SizeCustom - }; - -%End - - KPanelExtension (const QString&, KPanelExtension::Type = Normal , int = 0, QWidget* /TransferThis/ = 0, const char* = 0); - virtual QSize sizeHint (KPanelExtension::Position, QSize) const; - KConfig* config () const; - Type type () const; - int actions () const; - virtual void action (KPanelExtension::Action); - virtual Position preferedPosition () const; - void setPosition (KPanelExtension::Position); - void setAlignment (KPanelExtension::Alignment); - -%If ( KDE_3_1_0 - ) - void setSize (KPanelExtension::Size, int); - KPanelExtension::Size sizeSetting () const; - int customSize () const; - -%If ( KDE_3_4_0 - ) - QPopupMenu* customMenu () const; - bool reserveStrut () const; -%End - -%End - - -signals: - void updateLayout (); - -%If ( KDE_3_4_0 - ) - void maintainFocus (bool); -%End - - -protected: - virtual void about (); - virtual void help (); - virtual void preferences (); - virtual void reportBug (); - Position position () const; - KPanelExtension::Alignment alignment () const; - Orientation orientation (); - -%If ( KDE_3_1_0 - ) - int sizeInPixels () const; -%End - - virtual void positionChange (KPanelExtension::Position); - virtual void alignmentChange (KPanelExtension::Alignment); - -%If ( KDE_3_4_0 - ) - void setCustomMenu (QPopupMenu*); - void setReserveStrut (bool); -%End - - -protected: -//igx virtual void virtual_hook (int, void*); - -public: - -%If ( - KDE_3_4_0 ) - - enum Position - { - Left, - Right, - Top, - Bottom - }; - -%End - - -}; // class KPanelExtension - diff --git a/sip/kdeui/kpanelmenu.sip b/sip/kdeui/kpanelmenu.sip deleted file mode 100644 index b8da99c..0000000 --- a/sip/kdeui/kpanelmenu.sip +++ /dev/null @@ -1,65 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KPanelMenu : KPopupMenu -{ -%TypeHeaderCode -#include -%End - - -public: - KPanelMenu (QWidget* /TransferThis/ = 0, const char* = 0); - KPanelMenu (const QString&, QWidget* /TransferThis/ = 0, const char* = 0); - const QString& path () const; - void setPath (const QString&); - bool initialized () const; - void setInitialized (bool); - void disableAutoClear (); - -public slots: - void reinitialize (); - -%If ( KDE_3_1_0 - ) - void deinitialize (); -%End - - -protected slots: - virtual void slotAboutToShow (); - virtual void slotExec (int) = 0; - virtual void initialize () = 0; - void slotClear (); - -protected: - virtual void hideEvent (QHideEvent*); - void init (const QString& = QString ::null ); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KPanelMenu - diff --git a/sip/kdeui/kpassdlg.sip b/sip/kdeui/kpassdlg.sip deleted file mode 100644 index 45c0780..0000000 --- a/sip/kdeui/kpassdlg.sip +++ /dev/null @@ -1,138 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KPasswordEdit : QLineEdit -{ -%TypeHeaderCode -#include -%End - - -public: - - enum EchoModes - { - OneStar, - ThreeStars, - NoEcho - }; - - KPasswordEdit (QWidget* /TransferThis/ = 0, const char* = 0); - KPasswordEdit (EchoMode, QWidget* /TransferThis/, const char*); - -%If ( KDE_3_2_0 - ) - KPasswordEdit (KPasswordEdit::EchoModes, QWidget* /TransferThis/, const char*); -%End - - KPasswordEdit (QWidget* /TransferThis/, const char*, int); - const char* password (); - void erase (); -//ig const int PassLen; - -%If ( KDE_3_4_0 - ) - void setMaxPasswordLength (int); - int maxPasswordLength () const; -%End - - -public slots: - -%If ( KDE_3_1_2 - ) - virtual void insert (const QString&); -%End - - -protected: - virtual void keyPressEvent (QKeyEvent*); - virtual void focusInEvent (QFocusEvent*); - virtual bool event (QEvent*); - -}; // class KPasswordEdit - - -class KPasswordDialog : KDialogBase -{ -%TypeHeaderCode -#include -%End - - -public: - - enum Types - { - Password, - NewPassword - }; - - KPasswordDialog (KPasswordDialog::Types, bool, int, QWidget* /TransferThis/ = 0, const char* = 0); - KPasswordDialog (int, QString, bool = 0, int = 0); - -%If ( KDE_3_3_0 - ) - KPasswordDialog (KPasswordDialog::Types, bool, int, const QString&, QWidget* /TransferThis/ = 0, const char* = 0); -%End - - void setPrompt (QString); - QString prompt () const; - void addLine (QString, QString); - -%If ( KDE_3_4_0 - ) - void setAllowEmptyPasswords (bool); - bool allowEmptyPasswords () const; - void setMinimumPasswordLength (int); - int minimumPasswordLength () const; - void setMaximumPasswordLength (int); - int maximumPasswordLength () const; - void setReasonablePasswordLength (int); - int reasonablePasswordLength () const; - void setPasswordStrengthWarningLevel (int); - int passwordStrengthWarningLevel () const; -%End - - const char* password () const; - -%If ( KDE_3_3_0 - ) - void clearPassword (); -%End - - bool keep () const; - static int getPassword (QCString&, QString, int* = 0); - static int getNewPassword (QCString&, QString); - static void disableCoreDumps (); - -protected slots: - void slotOk (); - void slotCancel (); - void slotKeep (bool); - -protected: - virtual bool checkPassword (const char*); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KPasswordDialog - diff --git a/sip/kdeui/kpassivepopup.sip b/sip/kdeui/kpassivepopup.sip deleted file mode 100644 index 1cb7972..0000000 --- a/sip/kdeui/kpassivepopup.sip +++ /dev/null @@ -1,112 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_1_0 - ) - -class KPassivePopup : QFrame -{ -%TypeHeaderCode -#include -%End - - -public: - -%If ( KDE_3_5_0 - ) - - enum PopupStyle - { - Boxed, - Balloon, - CustomStyle - }; - -%End - - KPassivePopup (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); - KPassivePopup (WId, const char* = 0, WFlags = 0); - -%If ( KDE_3_5_0 - ) - KPassivePopup (int, QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); - KPassivePopup (int, WId /TransferThis/, const char* = 0, WFlags = 0); -%End - - void setView (QWidget*); - void setView (const QString&, const QString& = QString ::null ); - virtual void setView (const QString&, const QString&, const QPixmap&); - QVBox* standardView (const QString&, const QString&, const QPixmap&, QWidget* /Transfer/ = 0); - QWidget* view () const; - int timeout () const; - virtual void setAutoDelete (bool); - bool autoDelete () const; - -%If ( KDE_3_5_0 - ) - void setAnchor (const QPoint&); -%End - - static KPassivePopup* message (const QString&, QWidget* /Transfer/, const char* = 0); - static KPassivePopup* message (const QString&, const QString&, QWidget* /Transfer/, const char* = 0); - static KPassivePopup* message (const QString&, const QString&, const QPixmap&, QWidget* /Transfer/, const char* = 0, int = -1); - static KPassivePopup* message (const QString&, const QString&, const QPixmap&, WId, const char* = 0, int = -1); - -%If ( KDE_3_5_0 - ) - static KPassivePopup* message (int, const QString&, QWidget* /Transfer/, const char* = 0); - static KPassivePopup* message (int, const QString&, const QString&, QWidget* /Transfer/, const char* = 0); - static KPassivePopup* message (int, const QString&, const QString&, const QPixmap&, QWidget* /Transfer/, const char* = 0, int = -1); - static KPassivePopup* message (int, const QString&, const QString&, const QPixmap&, WId, const char* = 0, int = -1); -%End - - -public slots: - void setTimeout (int); - virtual void show (); - -%If ( KDE_3_5_0 - ) - void show (const QPoint&); -%End - - -signals: - void clicked (); - void clicked (QPoint); - -protected: - virtual void positionSelf (); - virtual void hideEvent (QHideEvent*); - void moveNear (QRect); - virtual void mouseReleaseEvent (QMouseEvent*); - QRect defaultArea () const; - -%If ( KDE_3_5_0 - ) - void updateMask (); - virtual void paintEvent (QPaintEvent*); -%End - - -}; // class KPassivePopup - -%End - diff --git a/sip/kdeui/kpixmapio.sip b/sip/kdeui/kpixmapio.sip deleted file mode 100644 index be5a5fa..0000000 --- a/sip/kdeui/kpixmapio.sip +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KPixmapIO -{ -%TypeHeaderCode -#include -%End - - -public: - KPixmapIO (); - QPixmap convertToPixmap (const QImage&); - QImage convertToImage (const QPixmap&); - void putImage (QPixmap*, int, int, const QImage*); - void putImage (QPixmap*, const QPoint&, const QImage*); - QImage getImage (const QPixmap*, int, int, int, int); - QImage getImage (const QPixmap*, const QRect&); - - enum ShmPolicies - { - ShmDontKeep, - ShmKeepAndGrow - }; - - void setShmPolicy (int); - void preAllocShm (int); - -}; // class KPixmapIO - diff --git a/sip/kdeui/kpixmapregionselectordialog.sip b/sip/kdeui/kpixmapregionselectordialog.sip deleted file mode 100644 index 8c68828..0000000 --- a/sip/kdeui/kpixmapregionselectordialog.sip +++ /dev/null @@ -1,49 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_4_0 - ) - -class KPixmapRegionSelectorDialog : KDialogBase -{ -%TypeHeaderCode -#include -%End - - -public: - KPixmapRegionSelectorDialog (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0); - KPixmapRegionSelectorWidget* pixmapRegionSelectorWidget () const; - static QRect getSelectedRegion (const QPixmap&, QWidget* /Transfer/ = 0); - static QRect getSelectedRegion (const QPixmap&, int, int, QWidget* /Transfer/ = 0); - static QImage getSelectedImage (const QPixmap&, QWidget* /Transfer/ = 0); - static QImage getSelectedImage (const QPixmap&, int, int, QWidget* /Transfer/ = 0); - -protected: - -}; // class KPixmapRegionSelectorDialog - -%End - diff --git a/sip/kdeui/kpixmapregionselectorwidget.sip b/sip/kdeui/kpixmapregionselectorwidget.sip deleted file mode 100644 index fb756aa..0000000 --- a/sip/kdeui/kpixmapregionselectorwidget.sip +++ /dev/null @@ -1,60 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_4_0 - ) - -class KPixmapRegionSelectorWidget : QWidget -{ -%TypeHeaderCode -#include -%End - - -public: - KPixmapRegionSelectorWidget (QWidget* /TransferThis/ = 0, const char* = 0); - void setPixmap (const QPixmap&); - QPixmap pixmap () const; - void setSelectedRegion (const QRect&); - QRect selectedRegion () const; - QRect unzoomedSelectedRegion () const; - void resetSelection (); - QImage selectedImage () const; - void setSelectionAspectRatio (int, int); - void setFreeSelectionAspectRatio (); - void setMaximumWidgetSize (int, int); - void rotate (KImageEffect::RotateDirection); - -public slots: - void rotateClockwise (); - void rotateCounterclockwise (); - -protected: - virtual KPopupMenu* createPopupMenu (); - -}; // class KPixmapRegionSelectorWidget - -%End - diff --git a/sip/kdeui/kpopupmenu.sip b/sip/kdeui/kpopupmenu.sip deleted file mode 100644 index b3fcb50..0000000 --- a/sip/kdeui/kpopupmenu.sip +++ /dev/null @@ -1,149 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KPopupTitle : QWidget -{ -%TypeHeaderCode -#include -%End - - -public: - KPopupTitle (QWidget* /TransferThis/ = 0, const char* = 0); - KPopupTitle (KPixmapEffect::GradientType, const QColor&, const QColor&, QWidget* /TransferThis/ = 0, const char* = 0); - KPopupTitle (const KPixmap&, const QColor&, const QColor&, QWidget* /TransferThis/ = 0, const char* = 0); - void setTitle (const QString&, const QPixmap* = 0); - QString title (); - QPixmap icon (); - QSize sizeHint () const; - -public slots: - -%If ( KDE_3_1_0 - ) - void setText (const QString&); - void setIcon (const QPixmap&); -%End - - -protected: - -%If ( KDE_3_2_0 - ) - void calcSize (); -%End - - void paintEvent (QPaintEvent*); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KPopupTitle - - -class KPopupMenu : QPopupMenu -{ -%TypeHeaderCode -#include -%End - - -public: - KPopupMenu (QWidget* /TransferThis/ = 0, const char* = 0); - int insertTitle (const QString&, int = -1, int = -1); - int insertTitle (const QPixmap&, const QString&, int = -1, int = -1); - void changeTitle (int, const QString&); - void changeTitle (int, const QPixmap&, const QString&); - QString title (int = -1); - QPixmap titlePixmap (int); - -%If ( KDE_3_1_0 - ) - void setKeyboardShortcutsEnabled (bool); - void setKeyboardShortcutsExecute (bool); -%End - - KPopupMenu (const QString&, QWidget* /TransferThis/ = 0, const char* = 0); - void setTitle (const QString&); - -%If ( KDE_3_2_0 - ) - QPopupMenu* contextMenu (); - void hideContextMenu (); - static KPopupMenu* contextMenuFocus (); - static int contextMenuFocusItem (); - -%If ( KDE_3_4_0 - ) - virtual void activateItemAt (int); - Qt::ButtonState state () const; -%End - -%End - - -signals: - -%If ( KDE_3_2_0 - ) - void aboutToShowContextMenu (KPopupMenu*, int, QPopupMenu*); -%End - - -protected: - -%If ( KDE_3_1_0 - ) - virtual void closeEvent (QCloseEvent*); - virtual void keyPressEvent (QKeyEvent*); - -%If ( KDE_3_4_0 - ) - virtual void mouseReleaseEvent (QMouseEvent*); -%End - - -%If ( KDE_3_2_0 - ) - virtual void mousePressEvent (QMouseEvent*); - virtual bool focusNextPrevChild (bool); - virtual void contextMenuEvent (QContextMenuEvent*); - virtual void hideEvent (QHideEvent*); -%End - -%End - -//igx virtual void virtual_hook (int, void*); - -protected slots: - -%If ( KDE_3_1_0 - ) - QString underlineText (const QString&, uint); - void resetKeyboardVars (bool = 0); - -%If ( KDE_3_2_0 - ) - void itemHighlighted (int); - void showCtxMenu (QPoint); - void ctxMenuHiding (); - void ctxMenuHideShowingMenu (); -%End - -%End - - -}; // class KPopupMenu - diff --git a/sip/kdeui/kprogress.sip b/sip/kdeui/kprogress.sip deleted file mode 100644 index 7195db5..0000000 --- a/sip/kdeui/kprogress.sip +++ /dev/null @@ -1,102 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KProgress : QProgressBar -{ -%TypeHeaderCode -#include -%End - - -public: - KProgress (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); - KProgress (int, QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); - void setTextEnabled (bool); - int value () const; - bool textEnabled () const; - QString format () const; - void setRange (int, int); - int maxValue (); - -public slots: - void setFormat (const QString&); - void setTotalSteps (int); - virtual void setProgress (int); - void setValue (int); - virtual void advance (int); - -signals: - void percentageChanged (int); - -protected: - virtual bool setIndicator (QString&, int, int); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KProgress - - -class KProgressDialog : KDialogBase -{ -%TypeHeaderCode -#include -%End - - -public: - KProgressDialog (QWidget* /TransferThis/ = 0, const char* = 0, const QString& = QString ::null , const QString& = QString ::null , bool = 0); - KProgress* progressBar (); - void setLabel (const QString&); - QString labelText (); - void setAllowCancel (bool); - bool allowCancel (); - void showCancelButton (bool); - void setAutoClose (bool); - bool autoClose (); - void setAutoReset (bool); - bool autoReset (); - bool wasCancelled (); - void setButtonText (const QString&); - QString buttonText (); - void setMinimumDuration (int); - int minimumDuration (); - -%If ( KDE_3_5_3 - ) - virtual void show (); -%End - - -protected slots: - void slotAutoShow (); - void slotAutoActions (int); - void slotCancel (); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KProgressDialog - diff --git a/sip/kdeui/kpushbutton.sip b/sip/kdeui/kpushbutton.sip deleted file mode 100644 index 25dc131..0000000 --- a/sip/kdeui/kpushbutton.sip +++ /dev/null @@ -1,67 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KPushButton : QPushButton -{ -%TypeHeaderCode -#include -%End - - -public: - KPushButton (QWidget* /TransferThis/, const char* = 0); - KPushButton (const QString&, QWidget* /TransferThis/, const char* = 0); - KPushButton (const QIconSet&, const QString&, QWidget* /TransferThis/, const char* = 0); - KPushButton (const KGuiItem&, QWidget* /TransferThis/, const char* = 0); - void setDragEnabled (bool); - bool isDragEnabled () const; - void setGuiItem (const KGuiItem&); - -%If ( KDE_3_4_0 - ) - void setGuiItem (KStdGuiItem::StdItem); - KStdGuiItem::StdItem guiItem () const; - void setGuiItm (int); - int guiItm () const; -%End - - -%If ( KDE_3_2_0 - ) - void setIconSet (const QIconSet&); - void setText (const QString&); -%End - - -protected: - virtual QDragObject* dragObject (); - virtual void mousePressEvent (QMouseEvent*); - virtual void mouseMoveEvent (QMouseEvent*); - virtual void startDrag (); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KPushButton - diff --git a/sip/kdeui/krestrictedline.sip b/sip/kdeui/krestrictedline.sip deleted file mode 100644 index 4739fe2..0000000 --- a/sip/kdeui/krestrictedline.sip +++ /dev/null @@ -1,49 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KRestrictedLine : KLineEdit -{ -%TypeHeaderCode -#include -%End - - -public: - KRestrictedLine (QWidget* /TransferThis/ = 0, const char* = 0, const QString& = QString ::null ); - void setValidChars (const QString&); - QString validChars () const; - -signals: - void invalidChar (int); - -protected: - void keyPressEvent (QKeyEvent*); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KRestrictedLine - diff --git a/sip/kdeui/krootpixmap.sip b/sip/kdeui/krootpixmap.sip deleted file mode 100644 index a4ce0d3..0000000 --- a/sip/kdeui/krootpixmap.sip +++ /dev/null @@ -1,71 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KRootPixmap : QObject -{ -%TypeHeaderCode -#include -%End - - -public: - KRootPixmap (QWidget*, const char* = 0); - KRootPixmap (QWidget*, QObject* /TransferThis/, const char* = 0); - bool isAvailable () const; - bool isActive () const; - int currentDesktop () const; - bool customPainting () const; - bool checkAvailable (bool); - -%If ( KDE_3_2_0 - ) - const QColor& color () const; - double opacity () const; -%End - - -public slots: - virtual void start (); - virtual void stop (); - void setFadeEffect (double, const QColor&); - void repaint (bool); - void repaint (); - void setCustomPainting (bool); - void enableExports (); - -%If ( KDE_3_2_0 - ) -//ig static QString pixmapName (int); -%End - - -signals: - void backgroundUpdated (const QPixmap&); - -protected: - virtual bool eventFilter (QObject*, QEvent*); -//ig virtual void updateBackground (KSharedPixmap*); - -}; // class KRootPixmap - diff --git a/sip/kdeui/kruler.sip b/sip/kdeui/kruler.sip deleted file mode 100644 index 40458a2..0000000 --- a/sip/kdeui/kruler.sip +++ /dev/null @@ -1,108 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KRuler : QFrame -{ -%TypeHeaderCode -#include -%End - - -public: - - enum MetricStyle - { - Custom, - Pixel, - Inch, - Millimetres, - Centimetres, - Metres - }; - - KRuler (QWidget* /TransferThis/ = 0, const char* = 0); - KRuler (Orientation, QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); - KRuler (Orientation, int, QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); - void setMinValue (int); - int minValue () const; - void setMaxValue (int); - int maxValue () const; - void setRange (int, int); - void setValue (int); - int value () const; - void setTinyMarkDistance (int); - int tinyMarkDistance () const; - void setLittleMarkDistance (int); - int littleMarkDistance () const; - void setMediumMarkDistance (int); - int mediumMarkDistance () const; - void setBigMarkDistance (int); - int bigMarkDistance () const; - void setShowTinyMarks (bool); - bool showTinyMarks () const; - void setShowLittleMarks (bool); - bool showLittleMarks () const; - void setShowMediumMarks (bool); - bool showMediumMarks () const; - void setShowBigMarks (bool); - bool showBigMarks () const; - void setShowEndMarks (bool); - bool showEndMarks () const; - void setShowPointer (bool); - bool showPointer () const; - void setValuePerLittleMark (int); - void setValuePerMediumMark (int); - void setValuePerBigMark (int); - void setShowEndLabel (bool); - bool showEndLabel () const; - void setEndLabel (const QString&); - QString endLabel () const; - void setRulerMetricStyle (KRuler::MetricStyle); - void setPixelPerMark (double); - double pixelPerMark () const; - void setLength (int); - int length () const; - void setLengthFixed (bool); - bool lengthFixed () const; - void slideUp (int = 1); - void slideDown (int = 1); - void setOffset (int); - int offset () const; - int endOffset () const; - -public slots: - void slotNewValue (int); - void slotNewOffset (int); - void slotEndOffset (int); - -protected: - virtual void drawContents (QPainter*); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KRuler - diff --git a/sip/kdeui/kscrollview.sip b/sip/kdeui/kscrollview.sip deleted file mode 100644 index 8a10fa9..0000000 --- a/sip/kdeui/kscrollview.sip +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_5_0 - ) - -class KScrollView : QScrollView -{ -%TypeHeaderCode -#include -%End - - -public: - KScrollView (QWidget* /TransferThis/ = 0, const char* = 0, Qt::WFlags = 0); - -public slots: - void scrollBy (int, int); - -protected: - virtual void wheelEvent (QWheelEvent*); - void startScrolling (); - void stopScrolling (); - -protected slots: - void scrollTick (); - -}; // class KScrollView - -%End - diff --git a/sip/kdeui/kselect.sip b/sip/kdeui/kselect.sip deleted file mode 100644 index 06650d9..0000000 --- a/sip/kdeui/kselect.sip +++ /dev/null @@ -1,142 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KXYSelector : QWidget -{ -%TypeHeaderCode -#include -%End - - -public: - KXYSelector (QWidget* /TransferThis/ = 0, const char* = 0); - void setValues (int, int); - -%If ( KDE_3_3_0 - ) - void setXValue (int); - void setYValue (int); -%End - - void setRange (int, int, int, int); - int xValue (); - int yValue (); - QRect contentsRect () const; - -signals: - void valueChanged (int, int); - -protected: - virtual void drawContents (QPainter*); - virtual void drawCursor (QPainter*, int, int); - virtual void paintEvent (QPaintEvent*); - virtual void mousePressEvent (QMouseEvent*); - virtual void mouseMoveEvent (QMouseEvent*); - -%If ( KDE_3_2_0 - ) - virtual void wheelEvent (QWheelEvent*); - void valuesFromPosition (int, int, int&, int&) const; -%End - - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KXYSelector - - -class KSelector : QWidget, QRangeControl -{ -%TypeHeaderCode -#include -%End - - -public: - KSelector (QWidget* /TransferThis/ = 0, const char* = 0); - KSelector (Orientation, QWidget* /TransferThis/ = 0, const char* = 0); - Orientation orientation () const; - QRect contentsRect () const; - void setIndent (bool); - bool indent () const; - void setValue (int); - int value () const; - void setMinValue (int); - int minValue () const; - void setMaxValue (int); - int maxValue () const; - -signals: - void valueChanged (int); - -protected: - virtual void drawContents (QPainter*); - virtual void drawArrow (QPainter*, bool, const QPoint&); - virtual void valueChange (); - virtual void paintEvent (QPaintEvent*); - virtual void mousePressEvent (QMouseEvent*); - virtual void mouseMoveEvent (QMouseEvent*); - -%If ( KDE_3_2_0 - ) - virtual void wheelEvent (QWheelEvent*); -%End - - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KSelector - - -class KGradientSelector : KSelector -{ -%TypeHeaderCode -#include -%End - - -public: - KGradientSelector (QWidget* /TransferThis/ = 0, const char* = 0); - KGradientSelector (Orientation, QWidget* /TransferThis/ = 0, const char* = 0); - void setColors (const QColor&, const QColor&); - void setText (const QString&, const QString&); - void setFirstColor (const QColor&); - void setSecondColor (const QColor&); - void setFirstText (const QString&); - void setSecondText (const QString&); - const QColor firstColor () const; - const QColor secondColor () const; - const QString firstText () const; - const QString secondText () const; - -protected: - virtual void drawContents (QPainter*); - virtual QSize minimumSize () const; - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KGradientSelector - diff --git a/sip/kdeui/kseparator.sip b/sip/kdeui/kseparator.sip deleted file mode 100644 index 1c2425d..0000000 --- a/sip/kdeui/kseparator.sip +++ /dev/null @@ -1,48 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KSeparator : QFrame -{ -%TypeHeaderCode -#include -%End - - -public: - KSeparator (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); - KSeparator (int, QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); - int orientation () const; - void setOrientation (int); - virtual QSize sizeHint () const; - -protected: - virtual void drawFrame (QPainter*); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KSeparator - diff --git a/sip/kdeui/ksharedpixmap.sip b/sip/kdeui/ksharedpixmap.sip deleted file mode 100644 index 003873f..0000000 --- a/sip/kdeui/ksharedpixmap.sip +++ /dev/null @@ -1,62 +0,0 @@ -// -// Copyright 2004 Jim Bublitz -// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE_3_3_0 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KSharedPixmap : QWidget, KPixmap -{ -%TypeHeaderCode -#include -#include -#include -#include -#include -%End - - -public: - KSharedPixmap (); - -%If ( KDE_3_1_2 - ) - bool loadFromShared (const QString&, const QRect& = QRect ()); - bool isAvailable (const QString&) const; -%End - - -signals: - void done (bool); - -protected: -//ig bool x11Event (XEvent*); - -public: - -%If ( - KDE_3_1_2 ) - bool loadFromShared (QString, QRect = QRect ()); - bool isAvailable (QString); -%End - - -}; // class KSharedPixmap - diff --git a/sip/kdeui/kshortcutdialog.sip b/sip/kdeui/kshortcutdialog.sip deleted file mode 100644 index d671f91..0000000 --- a/sip/kdeui/kshortcutdialog.sip +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_4_0 - ) - -class KShortcutDialog : KDialogBase -{ -%TypeHeaderCode -#include -%End - - -public: - KShortcutDialog (const KShortcut&, bool, QWidget* /TransferThis/ = 0, const char* = 0); - void setShortcut (const KShortcut&); - const KShortcut& shortcut () const; - -protected slots: - void slotDetails (); - void slotSelectPrimary (); - void slotSelectAlternate (); - void slotClearShortcut (); - void slotClearPrimary (); - void slotClearAlternate (); - void slotMultiKeyMode (bool); - -}; // class KShortcutDialog - -%End - diff --git a/sip/kdeui/ksplashscreen.sip b/sip/kdeui/ksplashscreen.sip deleted file mode 100644 index 351fc73..0000000 --- a/sip/kdeui/ksplashscreen.sip +++ /dev/null @@ -1,42 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_2_0 - ) - -class KSplashScreen : QSplashScreen -{ -%TypeHeaderCode -#include -%End - - -public: - KSplashScreen (const QPixmap&, WFlags = 0); - -}; // class KSplashScreen - -%End - diff --git a/sip/kdeui/ksqueezedtextlabel.sip b/sip/kdeui/ksqueezedtextlabel.sip deleted file mode 100644 index c983d19..0000000 --- a/sip/kdeui/ksqueezedtextlabel.sip +++ /dev/null @@ -1,60 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KSqueezedTextLabel : QLabel -{ -%TypeHeaderCode -#include -%End - - -public: - KSqueezedTextLabel (QWidget* /TransferThis/, const char* = 0); - KSqueezedTextLabel (const QString&, QWidget* /TransferThis/, const char* = 0); - virtual QSize minimumSizeHint () const; - -%If ( KDE_3_3_0 - ) - virtual QSize sizeHint () const; - -%If ( KDE_3_4_0 - ) - virtual void setAlignment (int); -%End - -%End - - -public slots: - void setText (const QString&); - -protected: - void resizeEvent (QResizeEvent*); - void squeezeTextToLabel (); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KSqueezedTextLabel - diff --git a/sip/kdeui/kstatusbar.sip b/sip/kdeui/kstatusbar.sip deleted file mode 100644 index 9d12f75..0000000 --- a/sip/kdeui/kstatusbar.sip +++ /dev/null @@ -1,82 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KStatusBarLabel : QLabel -{ -%TypeHeaderCode -#include -%End - - -public: - KStatusBarLabel (const QString&, int, KStatusBar* /TransferThis/ = 0, const char* = 0); - -protected: - void mousePressEvent (QMouseEvent*); - void mouseReleaseEvent (QMouseEvent*); - -signals: - void itemPressed (int); - void itemReleased (int); - -}; // class KStatusBarLabel - - -class KStatusBar : QStatusBar -{ -%TypeHeaderCode -#include -%End - - -public: - - enum BarStatus - { - Toggle, - Show, - Hide - }; - - KStatusBar (QWidget* /TransferThis/ = 0, const char* = 0); - void insertItem (const QString&, int, int = 0, bool = 0); - void insertFixedItem (const QString&, int, bool = 0); - void removeItem (int); - -%If ( KDE_3_2_0 - ) - bool hasItem (int) const; -%End - - void changeItem (const QString&, int); - void setItemAlignment (int, int); - void setItemFixed (int, int = -1); - -signals: - void pressed (int); - void released (int); - -}; // class KStatusBar - diff --git a/sip/kdeui/kstdaction.sip b/sip/kdeui/kstdaction.sip deleted file mode 100644 index 8ba3428..0000000 --- a/sip/kdeui/kstdaction.sip +++ /dev/null @@ -1,327 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -namespace KStdAction -{ - -%If ( KDE_3_2_0 - ) - -enum StdAction -{ - ActionNone, - New, - Open, - OpenRecent, - Save, - SaveAs, - Revert, - Close, - Print, - PrintPreview, - Mail, - Quit, - Undo, - Redo, - Cut, - Copy, - Paste, - SelectAll, - Deselect, - Find, - FindNext, - FindPrev, - Replace, - ActualSize, - FitToPage, - FitToWidth, - FitToHeight, - ZoomIn, - ZoomOut, - Zoom, - Redisplay, - Up, - Back, - Forward, - Home, - Prior, - Next, - Goto, - GotoPage, - GotoLine, - FirstPage, - LastPage, - AddBookmark, - EditBookmarks, - Spelling, - ShowMenubar, - ShowToolbar, - ShowStatusbar, - SaveOptions, - KeyBindings, - Preferences, - ConfigureToolbars, - Help, - HelpContents, - WhatsThis, - ReportBug, - AboutApp, - AboutKDE, - TipofDay, - ConfigureNotifications, - FullScreen, - Clear, - PasteText -}; - -%End - -KAction* create (KStdAction::StdAction, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/); -const char* name (KStdAction::StdAction); - -%If ( KDE_3_1_0 - ) -QStringList stdNames (); -%End - -KAction* openNew (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* open (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KRecentFilesAction* openRecent (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* save (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* saveAs (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* revert (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* close (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* print (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0) /PyName=print_/; -KAction* printPreview (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* mail (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* quit (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* undo (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* redo (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* cut (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* copy (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* paste (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); - -%If ( KDE_3_2_0 - ) -KAction* pasteText (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection*, const char* = 0); -KAction* clear (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection*, const char* = 0); -%End - -KAction* selectAll (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* deselect (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* find (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* findNext (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* findPrev (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* replace (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* actualSize (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* fitToPage (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* fitToWidth (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* fitToHeight (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* zoomIn (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* zoomOut (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* zoom (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* redisplay (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* up (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* back (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* forward (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* home (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* prior (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* next (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* goTo (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* gotoPage (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* gotoLine (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* firstPage (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* lastPage (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* addBookmark (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* editBookmarks (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* spelling (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KToggleAction* showMenubar (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KToggleAction* showToolbar (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); - -%If ( KDE_3_1_0 - ) -KToggleToolBarAction* showToolbar (const char*, KActionCollection* /Transfer/, const char* = 0); -%End - -KToggleAction* showStatusbar (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); - -%If ( KDE_3_2_0 - ) -KToggleFullScreenAction* fullScreen (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection*, QWidget*, const char* = 0); -%End - -KAction* saveOptions (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* keyBindings (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* preferences (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* configureToolbars (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); - -%If ( KDE_3_1_0 - ) -KAction* configureNotifications (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -%End - -KAction* help (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* helpContents (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* whatsThis (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); - -%If ( KDE_3_1_0 - ) -KAction* tipOfDay (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -%End - -KAction* reportBug (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* aboutApp (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); -KAction* aboutKDE (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); - -%If ( KDE_3_1_0 - KDE_3_2_0 ) - -enum StdAction -{ - ActionNone, - New, - Open, - OpenRecent, - Save, - SaveAs, - Revert, - Close, - Print, - PrintPreview, - Mail, - Quit, - Undo, - Redo, - Cut, - Copy, - Paste, - SelectAll, - Deselect, - Find, - FindNext, - FindPrev, - Replace, - ActualSize, - FitToPage, - FitToWidth, - FitToHeight, - ZoomIn, - ZoomOut, - Zoom, - Redisplay, - Up, - Back, - Forward, - Home, - Prior, - Next, - Goto, - GotoPage, - GotoLine, - FirstPage, - LastPage, - AddBookmark, - EditBookmarks, - Spelling, - ShowMenubar, - ShowToolbar, - ShowStatusbar, - SaveOptions, - KeyBindings, - Preferences, - ConfigureToolbars, - Help, - HelpContents, - WhatsThis, - ReportBug, - AboutApp, - AboutKDE, - TipofDay, - ConfigureNotifications -}; - -%End - - -%If ( - KDE_3_1_0 ) - -enum StdAction -{ - ActionNone, - New, - Open, - OpenRecent, - Save, - SaveAs, - Revert, - Close, - Print, - PrintPreview, - Mail, - Quit, - Undo, - Redo, - Cut, - Copy, - Paste, - SelectAll, - Deselect, - Find, - FindNext, - FindPrev, - Replace, - ActualSize, - FitToPage, - FitToWidth, - FitToHeight, - ZoomIn, - ZoomOut, - Zoom, - Redisplay, - Up, - Back, - Forward, - Home, - Prior, - Next, - Goto, - GotoPage, - GotoLine, - FirstPage, - LastPage, - AddBookmark, - EditBookmarks, - Spelling, - ShowMenubar, - ShowToolbar, - ShowStatusbar, - SaveOptions, - KeyBindings, - Preferences, - ConfigureToolbars, - Help, - HelpContents, - WhatsThis, - ReportBug, - AboutApp, - AboutKDE -}; - -%End - -}; // namespace KStdAction - diff --git a/sip/kdeui/kstdguiitem.sip b/sip/kdeui/kstdguiitem.sip deleted file mode 100644 index 7a26b12..0000000 --- a/sip/kdeui/kstdguiitem.sip +++ /dev/null @@ -1,350 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KStdGuiItem -{ -%TypeHeaderCode -#include -%End - - -public: - - enum BidiMode - { - UseRTL, - IgnoreRTL - }; - - -%If ( KDE_3_5_0 - ) - - enum StdItem - { - Ok, - Cancel, - Yes, - No, - Discard, - Save, - DontSave, - SaveAs, - Apply, - Clear, - Help, - Defaults, - Close, - Back, - Forward, - Print, - Continue, - Open, - Quit, - AdminMode, - Reset, - Delete, - Insert, - Configure, - Find, - Stop, - Add, - Remove, - Test, - Properties, - Overwrite - }; - -%End - - static KGuiItem guiItem (KStdGuiItem::StdItem); - static QString stdItem (KStdGuiItem::StdItem); - static KGuiItem ok (); - static KGuiItem cancel (); - static KGuiItem yes (); - static KGuiItem no (); - -%If ( KDE_3_3_0 - ) - static KGuiItem insert (); -%End - - static KGuiItem discard (); - static KGuiItem save (); - static KGuiItem help (); - static KGuiItem dontSave (); - static KGuiItem saveAs (); - static KGuiItem apply (); - static KGuiItem clear (); - static KGuiItem defaults (); - static KGuiItem close (); - static KGuiItem print () /PyName=print_/; - -%If ( KDE_3_4_0 - ) - static KGuiItem properties (); -%End - - -%If ( KDE_3_3_0 - ) - static KGuiItem reset (); - -%If ( KDE_3_5_0 - ) - static KGuiItem overwrite (); -%End - - static KGuiItem adminMode (); -%End - - static KGuiItem cont (); - -%If ( KDE_3_3_0 - ) - static KGuiItem del (); -%End - - -%If ( KDE_3_2_0 - ) - static KGuiItem open (); -%End - - static KGuiItem back (KStdGuiItem::BidiMode = IgnoreRTL ); - static KGuiItem forward (KStdGuiItem::BidiMode = IgnoreRTL ); - -%If ( KDE_3_4_0 - ) - static KGuiItem configure (); -%End - - static QPair backAndForward (); - -%If ( KDE_3_2_0 - ) - static KGuiItem quit (); - -%If ( KDE_3_4_0 - ) - static KGuiItem find (); - static KGuiItem stop (); - static KGuiItem add (); - static KGuiItem remove (); - static KGuiItem test (); -%End - -%End - - -public: - -%If ( KDE_3_4_0 - KDE_3_5_0 ) - - enum StdItem - { - Ok, - Cancel, - Yes, - No, - Discard, - Save, - DontSave, - SaveAs, - Apply, - Clear, - Help, - Defaults, - Close, - Back, - Forward, - Print, - Continue, - Open, - Quit, - AdminMode, - Reset, - Delete, - Insert, - Configure, - Find, - Stop, - Add, - Remove, - Test, - Properties - }; - -%End - - -public: - -%If ( KDE_3_3_0 - KDE_3_4_0 ) - - enum StdItem - { - Ok, - Cancel, - Yes, - No, - Discard, - Save, - DontSave, - SaveAs, - Apply, - Clear, - Help, - Defaults, - Close, - Back, - Forward, - Print, - Continue, - Open, - Quit, - AdminMode, - Reset, - Delete, - Insert - }; - -%End - - -public: - -%If ( KDE_3_2_0 - KDE_3_3_0 ) - - enum StdItem - { - Ok, - Cancel, - Yes, - No, - Discard, - Save, - DontSave, - SaveAs, - Apply, - Clear, - Help, - Defaults, - Close, - Back, - Forward, - Print, - Continue, - Open, - Quit - }; - -%End - - -public: - -%If ( - KDE_3_2_0 ) - - enum StdItem - { - Ok, - Cancel, - Yes, - No, - Discard, - Save, - DontSave, - SaveAs, - Apply, - Clear, - Help, - Defaults, - Close, - Back, - Forward, - Print, - Continue - }; - -%End - - -}; // class KStdGuiItem - - - -%MappedType QPair -//converts a Python tuple (KGuiItem,KGuiItem) -{ -%TypeHeaderCode -#include -%End - -%ConvertFromTypeCode - if (!sipCpp) - return PyTuple_New(0); - - // Create the tuple - PyObject *pytuple; - if ((pytuple = PyTuple_New(0)) == NULL) - return NULL; - - QPair *cpp = (QPair *)sipCpp; - PyObject *inst = NULL; - - // Get it. - KGuiItem g1 = (*cpp).first; - KGuiItem g2 = (*cpp).second; - PyObject *pyg1 = sipConvertFromNewType(new KGuiItem(g1), sipType_KGuiItem, NULL); - PyObject *pyg2 = sipConvertFromNewType(new KGuiItem(g2), sipType_KGuiItem, NULL); - if ((pyg1 == NULL) || (pyg2 == NULL) || ((inst = Py_BuildValue ("NN", pyg1, pyg2)) == NULL)) - { - Py_XDECREF (inst); - Py_XDECREF (pyg1); - Py_XDECREF (pyg2); - return NULL; - } - - return inst; -%End - - -%ConvertToTypeCode - if (sipIsErr == NULL) - return PyTuple_Check(sipPy); - - KGuiItem *g1, *g2; - int iserr = 0; - - PyObject *pyg1 = PyTuple_GET_ITEM (sipPy, 0); - PyObject *pyg2 = PyTuple_GET_ITEM (sipPy, 1); - g1 = (KGuiItem *)sipForceConvertToType(pyg1, sipType_KGuiItem, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); - g2 = (KGuiItem *)sipForceConvertToType(pyg2, sipType_KGuiItem, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); - - if (iserr) - { - *sipIsErr = 1; - return 0; - } - - *sipCppPtr = new QPair (*g1, *g2); - - return 1; -%End -}; - - diff --git a/sip/kdeui/kstringvalidator.sip b/sip/kdeui/kstringvalidator.sip deleted file mode 100644 index b917566..0000000 --- a/sip/kdeui/kstringvalidator.sip +++ /dev/null @@ -1,63 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KStringListValidator : QValidator -{ -%TypeHeaderCode -#include -%End - - -public: - KStringListValidator (const QStringList& = QStringList (), bool = 1, bool = 0, QObject* /TransferThis/ = 0, const char* = 0); - virtual State validate (QString&, int&) const; - virtual void fixup (QString&) const; - void setRejecting (bool); - bool isRejecting () const; - void setFixupEnabled (bool); - bool isFixupEnabled () const; - void setStringList (const QStringList&); - QStringList stringList () const; - -protected: - -}; // class KStringListValidator - - -class KMimeTypeValidator : QValidator -{ -%TypeHeaderCode -#include -%End - - -public: - KMimeTypeValidator (QObject* /TransferThis/, const char* = 0); - virtual State validate (QString&, int&) const; - virtual void fixup (QString&) const; - -}; // class KMimeTypeValidator - diff --git a/sip/kdeui/ksystemtray.sip b/sip/kdeui/ksystemtray.sip deleted file mode 100644 index 444f922..0000000 --- a/sip/kdeui/ksystemtray.sip +++ /dev/null @@ -1,84 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KSystemTray : QLabel -{ -%TypeHeaderCode -#include -%End - - -public: - KSystemTray (QWidget* /TransferThis/ = 0, const char* = 0); - -%If ( KDE_3_2_0 - ) - KPopupMenu* contextMenu () const; - KActionCollection* actionCollection (); - -%If ( KDE_3_4_0 - ) - virtual void setPixmap (const QPixmap&); - virtual void setCaption (const QString&); -%End - - static QPixmap loadIcon (const QString&, KInstance* = KGlobal ::instance ()); -%End - - -signals: - -%If ( KDE_3_1_0 - ) - void quitSelected (); -%End - - -public slots: - -%If ( KDE_3_3_0 - ) - void toggleActive (); - void setActive (); - void setInactive (); -%End - - -protected: - void mousePressEvent (QMouseEvent*); - void mouseReleaseEvent (QMouseEvent*); - virtual void contextMenuAboutToShow (KPopupMenu*); - void showEvent (QShowEvent*); - void enterEvent (QEvent*); - -protected: -//igx virtual void virtual_hook (int, void*); - -protected: - -%If ( - KDE_3_2_0 ) - KPopupMenu* contextMenu (); -%End - - -}; // class KSystemTray - diff --git a/sip/kdeui/ktabbar.sip b/sip/kdeui/ktabbar.sip deleted file mode 100644 index 27ed2b7..0000000 --- a/sip/kdeui/ktabbar.sip +++ /dev/null @@ -1,98 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_2_0 - ) - -class KTabBar : QTabBar -{ -%TypeHeaderCode -#include -%End - - -public: - KTabBar (QWidget* /TransferThis/ = 0, const char* = 0); - virtual void setTabEnabled (int, bool); - const QColor& tabColor (int) const; - void setTabColor (int, const QColor&); - -%If ( KDE_3_3_0 - ) - virtual int insertTab (QTab*, int = -1); -%End - - virtual void removeTab (QTab*); - void setTabReorderingEnabled (bool); - bool isTabReorderingEnabled () const; - void setHoverCloseButton (bool); - bool hoverCloseButton () const; - void setHoverCloseButtonDelayed (bool); - bool hoverCloseButtonDelayed () const; - -%If ( KDE_3_3_0 - ) - void setTabCloseActivatePrevious (bool); - bool tabCloseActivatePrevious () const; -%End - - -signals: - void contextMenu (int, const QPoint&); - void mouseDoubleClick (int); - void mouseMiddleClick (int); - void initiateDrag (int); -//ig void testCanDecode (const QDragMoveEvent*, bool&); - void receivedDropEvent (int, QDropEvent*); - void moveTab (int, int); - void closeRequest (int); - -%If ( KDE_3_3_0 - ) - void wheelDelta (int); -%End - - -protected: - virtual void mouseDoubleClickEvent (QMouseEvent*); - virtual void mousePressEvent (QMouseEvent*); - virtual void mouseMoveEvent (QMouseEvent*); - virtual void mouseReleaseEvent (QMouseEvent*); - -%If ( KDE_3_3_0 - ) - virtual void wheelEvent (QWheelEvent*); -%End - - virtual void dragMoveEvent (QDragMoveEvent*); - virtual void dropEvent (QDropEvent*); - virtual void paintLabel (QPainter*, const QRect&, QTab*, bool) const; - -protected slots: - virtual void closeButtonClicked (); - virtual void onLayoutChange (); - virtual void enableCloseButton (); - virtual void activateDragSwitchTab (); - -}; // class KTabBar - -%End - diff --git a/sip/kdeui/ktabctl.sip b/sip/kdeui/ktabctl.sip deleted file mode 100644 index 26bdfa9..0000000 --- a/sip/kdeui/ktabctl.sip +++ /dev/null @@ -1,64 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KTabCtl : QWidget -{ -%TypeHeaderCode -#include -%End - - -public: - KTabCtl (QWidget* /TransferThis/ = 0, const char* = 0); - void show (); - void setFont (const QFont&); - void setTabFont (const QFont&); - void addTab (QWidget*, const QString&); - bool isTabEnabled (const QString&); - void setTabEnabled (const QString&, bool); - void setBorder (bool); - void setShape (QTabBar::Shape); - virtual QSize sizeHint () const; - -protected: - void paintEvent (QPaintEvent*); - void resizeEvent (QResizeEvent*); - -signals: - void tabSelected (int); - -protected slots: - void showTab (int); - -protected: - void setSizes (); - QRect getChildRect () const; - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KTabCtl - diff --git a/sip/kdeui/ktabwidget.sip b/sip/kdeui/ktabwidget.sip deleted file mode 100644 index e828e7b..0000000 --- a/sip/kdeui/ktabwidget.sip +++ /dev/null @@ -1,144 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_2_0 - ) - -class KTabWidget : QTabWidget -{ -%TypeHeaderCode -#include -%End - - -public: - KTabWidget (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); - void setTabColor (QWidget*, const QColor&); - QColor tabColor (QWidget*) const; - bool isTabReorderingEnabled () const; - bool hoverCloseButton () const; - bool hoverCloseButtonDelayed () const; - -%If ( KDE_3_3_0 - ) - bool tabCloseActivatePrevious () const; - -%If ( KDE_3_4_0 - ) - bool automaticResizeTabs () const; - void setTabBarHidden (bool); - bool isTabBarHidden () const; - virtual void insertTab (QWidget*, const QString&, int = -1); - virtual void insertTab (QWidget*, const QIconSet&, const QString&, int = -1); - virtual void insertTab (QWidget*, QTab*, int = -1); - void changeTab (QWidget*, const QString&); - void changeTab (QWidget*, const QIconSet&, const QString&); - QString label (int) const; - QString tabLabel (QWidget*) const; - void setTabLabel (QWidget*, const QString&); -%End - -%End - - -public slots: - virtual void moveTab (int, int); - -%If ( KDE_3_4_0 - ) - virtual void removePage (QWidget*); -%End - - void setTabReorderingEnabled (bool); - void setHoverCloseButton (bool); - void setHoverCloseButtonDelayed (bool); - -%If ( KDE_3_3_0 - ) - void setTabCloseActivatePrevious (bool); - -%If ( KDE_3_4_0 - ) - void setAutomaticResizeTabs (bool); -%End - -%End - - -signals: -//ig void testCanDecode (const QDragMoveEvent*, bool&); - void receivedDropEvent (QDropEvent*); - void receivedDropEvent (QWidget*, QDropEvent*); - void initiateDrag (QWidget*); -//ig void contextMenu (const QPoint&); - void contextMenu (QWidget*, const QPoint&); - void movedTab (int, int); - -%If ( KDE_3_3_0 - ) - void mouseDoubleClick (); -%End - - void mouseDoubleClick (QWidget*); - void mouseMiddleClick (); - void mouseMiddleClick (QWidget*); - void closeRequest (QWidget*); - -protected: - -%If ( KDE_3_3_0 - ) - virtual void mouseDoubleClickEvent (QMouseEvent*); -%End - - virtual void mousePressEvent (QMouseEvent*); - virtual void dragMoveEvent (QDragMoveEvent*); - virtual void dropEvent (QDropEvent*); - -%If ( KDE_3_4_0 - ) - uint tabBarWidthForMaxChars (uint); -%End - - -%If ( KDE_3_3_0 - ) - virtual void wheelEvent (QWheelEvent*); - -%If ( KDE_3_4_0 - ) - virtual void resizeEvent (QResizeEvent*); -%End - -%End - - -protected slots: -//ig virtual void receivedDropEvent (int, QDropEvent*); -//ig virtual void initiateDrag (int); -//ig virtual void contextMenu (int, const QPoint&); -//ig virtual void mouseDoubleClick (int); -//ig virtual void mouseMiddleClick (int); -//ig virtual void closeRequest (int); - -%If ( KDE_3_3_0 - ) - virtual void wheelDelta (int); -%End - - -}; // class KTabWidget - -%End - diff --git a/sip/kdeui/ktextbrowser.sip b/sip/kdeui/ktextbrowser.sip deleted file mode 100644 index 91a1fc3..0000000 --- a/sip/kdeui/ktextbrowser.sip +++ /dev/null @@ -1,58 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KTextBrowser : QTextBrowser -{ -%TypeHeaderCode -#include -%End - - -public: - KTextBrowser (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0); - void setNotifyClick (bool); - bool isNotifyClick () const; - -protected: - void setSource (const QString&); - virtual void keyPressEvent (QKeyEvent*); - virtual void viewportMouseMoveEvent (QMouseEvent*); - virtual void contentsWheelEvent (QWheelEvent*); - -%If ( KDE_3_3_0 - ) - virtual QPopupMenu* createPopupMenu (const QPoint&); -%End - - -signals: - void mailClick (const QString&, const QString&); - void urlClick (const QString&); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KTextBrowser - diff --git a/sip/kdeui/ktextedit.sip b/sip/kdeui/ktextedit.sip deleted file mode 100644 index e85bcff..0000000 --- a/sip/kdeui/ktextedit.sip +++ /dev/null @@ -1,83 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_1_0 - ) - -class KTextEdit : QTextEdit -{ -%TypeHeaderCode -#include -%End - - -public: - KTextEdit (const QString&, const QString& = QString ::null , QWidget* /TransferThis/ = 0, const char* = 0); - KTextEdit (QWidget* /TransferThis/ = 0, const char* = 0); - virtual void setReadOnly (bool); - -%If ( KDE_3_1_1 - ) - virtual void setPalette (const QPalette&); - -%If ( KDE_3_2_0 - ) - void setCheckSpellingEnabled (bool); - bool checkSpellingEnabled () const; - void highLightWord (uint, uint); -%End - -%End - - -public slots: - -%If ( KDE_3_2_0 - ) - void checkSpelling (); -%End - - -protected: - virtual void keyPressEvent (QKeyEvent*); - -%If ( KDE_3_2_0 - ) - virtual void focusInEvent (QFocusEvent*); -%End - - virtual void contentsWheelEvent (QWheelEvent*); - virtual void deleteWordBack (); - virtual void deleteWordForward (); - -%If ( KDE_3_2_0 - ) - virtual QPopupMenu* createPopupMenu (const QPoint&); - virtual QPopupMenu* createPopupMenu (); -%End - - -protected: -//ig virtual void virtual_hook (int, void*); - -}; // class KTextEdit - -%End - diff --git a/sip/kdeui/kthemebase.sip b/sip/kdeui/kthemebase.sip deleted file mode 100644 index 6909d32..0000000 --- a/sip/kdeui/kthemebase.sip +++ /dev/null @@ -1,258 +0,0 @@ -// -// Copyright 2003 Jim Bublitz -// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE_3_1_1 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KThemePixmap : KPixmap -{ -%TypeHeaderCode -#include -%End - - -public: - - enum BorderType - { - Top = 0, - Bottom, - Left, - Right, - TopLeft, - TopRight, - BottomLeft, - BottomRight - }; - - KThemePixmap (bool = 1); - KThemePixmap (const KThemePixmap&); - QPixmap* border (KThemePixmap::BorderType); - void setBorder (KThemePixmap::BorderType, const QPixmap&); - void updateAccessed (); - bool isOld (); - -protected: - -}; // class KThemePixmap - - -class KThemeCache : QObject -{ -%TypeHeaderCode -#include -%End - - -public: - - enum ScaleHint - { - FullScale, - HorizontalScale, - VerticalScale - }; - - KThemeCache (int, QObject*/TransferThis/ = 0, const char* = 0); - bool insert (KThemePixmap*, KThemeCache::ScaleHint, int, bool = 0, bool = 0); - KThemePixmap* pixmap (int, int, int, bool = 0, bool = 0); - KThemePixmap* horizontalPixmap (int, int); - KThemePixmap* verticalPixmap (int, int); - -protected slots: - void flushTimeout (); - -protected: - -}; // class KThemeCache - - -class KThemeBase : KStyle -{ -%TypeHeaderCode -#include -%End - - -public: - KThemeBase (const QString&); - - enum ScaleHint - { - FullScale, - HorizontalScale, - VerticalScale, - TileScale - }; - - - enum ArrowStyle - { - MotifArrow, - LargeArrow, - SmallArrow - }; - - - enum ShadeStyle - { - Motif, - Windows, - Next, - KDE - }; - - - enum SButton - { - SBBottomLeft, - SBBottomRight, - SBOpposite - }; - - - enum Gradient - { - GrNone, - GrHorizontal, - GrVertical, - GrDiagonal, - GrPyramid, - GrRectangle, - GrElliptic, - GrReverseBevel - }; - - - enum WidgetType - { - PushButton = 0, - ComboBox, - HScrollBarSlider, - VScrollBarSlider, - Bevel, - ToolButton, - ScrollButton, - HScrollDeco, - VScrollDeco, - ComboDeco, - MenuItem, - InactiveTab, - ArrowUp, - ArrowDown, - ArrowLeft, - ArrowRight, - PushButtonDown, - ComboBoxDown, - HScrollBarSliderDown, - VScrollBarSliderDown, - BevelDown, - ToolButtonDown, - ScrollButtonDown, - HScrollDecoDown, - VScrollDecoDown, - ComboDecoDown, - MenuItemDown, - ActiveTab, - SunkenArrowUp, - SunkenArrowDown, - SunkenArrowLeft, - SunkenArrowRight, - HScrollGroove, - VScrollGroove, - Slider, - SliderGroove, - IndicatorOn, - IndicatorOff, - ExIndicatorOn, - ExIndicatorOff, - HBarHandle, - VBarHandle, - ToolBar, - Splitter, - CheckMark, - MenuBar, - DisArrowUp, - DisArrowDown, - DisArrowLeft, - DisArrowRight, - ProgressBar, - ProgressBg, - MenuBarItem, - Background - }; - - ScaleHint scaleHint (KThemeBase::WidgetType) const; - Gradient gradientHint (KThemeBase::WidgetType) const; - const QColorGroup* colorGroup (const QColorGroup&, KThemeBase::WidgetType) const; - QBrush pixmapBrush (const QColorGroup&, QColorGroup::ColorRole, int, int, KThemeBase::WidgetType); - bool isPixmap (KThemeBase::WidgetType) const; - bool isColor (KThemeBase::WidgetType) const; - bool is3DFocus () const; - int focusOffset () const; - int borderWidth (KThemeBase::WidgetType) const; - int pixBorderWidth (KThemeBase::WidgetType) const; - KThemePixmap* borderPixmap (KThemeBase::WidgetType); - int highlightWidth (KThemeBase::WidgetType) const; - int decoWidth (KThemeBase::WidgetType) const; - int getSBExtent () const; - SButton scrollBarLayout () const; - ArrowStyle arrowType () const; - ShadeStyle shade () const; - int frameWidth () const; - int splitWidth () const; - int bevelContrast (KThemeBase::WidgetType) const; - int buttonXShift () const; - int buttonYShift () const; - int sliderButtonLength () const; - bool roundButton () const; - bool roundComboBox () const; - bool roundSlider () const; - bool activeTabLine () const; - bool inactiveTabLine () const; - KThemePixmap* uncached (KThemeBase::WidgetType) const; - virtual KThemePixmap* scalePixmap (int, int, KThemeBase::WidgetType); - static void applyConfigFile (const QString&); - -protected: - QImage* image (KThemeBase::WidgetType) const; - QColor* gradientHigh (KThemeBase::WidgetType) const; - QColor* gradientLow (KThemeBase::WidgetType) const; - void readConfig (Qt::GUIStyle = Qt::WindowsStyle); -//ig void readWidgetConfig (int, KConfig*, QString*, QString*, bool*); - void copyWidgetConfig (int, int, QString*, QString*); - QColorGroup* makeColorGroup (QColor&, QColor&, Qt::GUIStyle = Qt::WindowsStyle); - KThemePixmap* scale (int, int, KThemeBase::WidgetType); - KThemePixmap* scaleBorder (int, int, KThemeBase::WidgetType); - KThemePixmap* gradient (int, int, KThemeBase::WidgetType); - KThemePixmap* blend (KThemeBase::WidgetType); - void generateBorderPix (int); - void applyResourceGroup (KConfig*, int); - void applyMiscResourceGroup (KConfig*); - void readResourceGroup (int, QString*, QString*, bool*); - void readMiscResourceGroup (); - KThemePixmap* loadPixmap (QString&); - QImage* loadImage (QString&); - -}; // class KThemeBase - diff --git a/sip/kdeui/kthemestyle.sip b/sip/kdeui/kthemestyle.sip deleted file mode 100644 index 6521f00..0000000 --- a/sip/kdeui/kthemestyle.sip +++ /dev/null @@ -1,89 +0,0 @@ -// -// Copyright 2003 Jim Bublitz -// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE_3_1_1 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KThemeStyle : KThemeBase -{ -%TypeHeaderCode -#include -%End - - -public: - KThemeStyle (const QString& = QString::null); - virtual void polish (QWidget*); - virtual void unPolish (QWidget*); - virtual void polish (QApplication*); - virtual void unPolish (QApplication*); - virtual void polish (QPalette&); - virtual void drawBaseButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, bool = 0, WidgetType = Bevel, const QBrush* = 0); - virtual void drawBaseMask (QPainter*, int, int, int, int, bool); - virtual void drawButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, const QBrush* = 0); - virtual void drawBevelButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, const QBrush* = 0); - virtual void drawKToolBarButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, bool = 1, bool = 1, bool = 0, KToolButtonType = Icon, const QString& = QString::null, const QPixmap* = 0, QFont* = 0, QWidget* = 0); - void drawKBarHandle (QPainter*, int, int, int, int, const QColorGroup&, KToolBarPos, QBrush* = 0); - void drawKToolBar (QPainter*, int, int, int, int, const QColorGroup&, KToolBarPos, QBrush* = 0); - virtual QRect buttonRect (int, int, int, int); - virtual void drawArrow (QPainter*, Qt::ArrowType, bool, int, int, int, int, const QColorGroup&, bool = 1, const QBrush* = 0); - virtual QSize exclusiveIndicatorSize () const; - virtual void drawExclusiveIndicator (QPainter*, int, int, int, int, const QColorGroup&, bool, bool = 0, bool = 1); - virtual void drawExclusiveIndicatorMask (QPainter*, int, int, int, int, bool); - virtual void drawIndicatorMask (QPainter*, int, int, int, int, int); - virtual void drawButtonMask (QPainter*, int, int, int, int); - virtual void drawComboButtonMask (QPainter*, int, int, int, int); - virtual QSize indicatorSize () const; - virtual void drawIndicator (QPainter*, int, int, int, int, const QColorGroup&, int, bool = 0, bool = 1); - virtual void drawComboButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, bool = 0, bool = 1, const QBrush* = 0); - virtual void drawPushButton (QPushButton*, QPainter*); -//ig virtual void getButtonShift (int&, int&); - virtual int defaultFrameWidth () const; -//ig virtual void scrollBarMetrics (const QScrollBar*, int&, int&, int&, int&); - virtual void drawScrollBarControls (QPainter*, const QScrollBar*, int, uint, uint); - virtual ScrollControl scrollBarPointOver (const QScrollBar*, int, const QPoint&); - virtual int sliderLength () const; - virtual void drawSlider (QPainter*, int, int, int, int, const QColorGroup&, Orientation, bool, bool); - void drawSliderGroove (QPainter*, int, int, int, int, const QColorGroup&, QCOORD, Orientation); - virtual void drawSliderMask (QPainter*, int, int, int, int, Orientation, bool, bool); - virtual void drawScrollBarGroove (QPainter*, const QScrollBar*, bool, QRect, QColorGroup); - virtual void drawShade (QPainter*, int, int, int, int, const QColorGroup&, bool, bool, int, int, ShadeStyle); - virtual void drawPushButtonLabel (QPushButton*, QPainter*); - void drawKMenuBar (QPainter*, int, int, int, int, const QColorGroup&, bool, QBrush* = 0); -//ig virtual void drawKMenuItem (QPainter*, int, int, int, int, const QColorGroup&, bool, QMenuItem*, QBrush* = 0); - virtual int splitterWidth () const; - virtual void drawSplitter (QPainter*, int, int, int, int, const QColorGroup&, Orientation); - virtual void drawCheckMark (QPainter*, int, int, int, int, const QColorGroup&, bool, bool); -//ig virtual void drawPopupMenuItem (QPainter*, bool, int, int, QMenuItem*, const QPalette&, bool, bool, int, int, int, int); -//ig int popupMenuItemHeight (bool, QMenuItem*, const QFontMetrics&); - void drawFocusRect (QPainter*, const QRect&, const QColorGroup&, const QColor* = 0, bool = 0); - virtual void drawKProgressBlock (QPainter*, int, int, int, int, const QColorGroup&, QBrush*); - virtual void getKProgressBackground (const QColorGroup&, QBrush&); -//ig virtual void tabbarMetrics (const QTabBar*, int&, int&, int&); - virtual void drawTab (QPainter*, const QTabBar*, QTab*, bool); - virtual void drawTabMask (QPainter*, const QTabBar*, QTab*, bool); - -protected: - -}; // class KThemeStyle - diff --git a/sip/kdeui/ktimewidget.sip b/sip/kdeui/ktimewidget.sip deleted file mode 100644 index b582698..0000000 --- a/sip/kdeui/ktimewidget.sip +++ /dev/null @@ -1,50 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_2_0 - ) - -class KTimeWidget : QWidget -{ -%TypeHeaderCode -#include -%End - - -public: - KTimeWidget (QWidget* /TransferThis/ = 0, const char* = 0); - KTimeWidget (const QTime&, QWidget* /TransferThis/ = 0, const char* = 0); - QTime time () const; - -public slots: - void setTime (const QTime&); - -signals: - void valueChanged (const QTime&); - -}; // class KTimeWidget - -%End - diff --git a/sip/kdeui/ktimezonewidget.sip b/sip/kdeui/ktimezonewidget.sip deleted file mode 100644 index fb612ee..0000000 --- a/sip/kdeui/ktimezonewidget.sip +++ /dev/null @@ -1,45 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_5_0 - ) - -class KTimezoneWidget : KListView -{ -%TypeHeaderCode -#include -%End - - -public: - KTimezoneWidget (QWidget* /TransferThis/ = 0, const char* = 0, KTimezones* = 0); - QStringList selection () const; - void setSelected (const QString&, bool); - static QString displayName (const KTimezone*); - -}; // class KTimezoneWidget - -%End - diff --git a/sip/kdeui/ktip.sip b/sip/kdeui/ktip.sip deleted file mode 100644 index 82be08b..0000000 --- a/sip/kdeui/ktip.sip +++ /dev/null @@ -1,82 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KTipDatabase -{ -%TypeHeaderCode -#include -%End - - -public: - KTipDatabase (const QString& = QString ::null ); - -%If ( KDE_3_2_0 - ) - KTipDatabase (const QStringList&); -%End - - QString tip () const; - void nextTip (); - void prevTip (); - -}; // class KTipDatabase - - -class KTipDialog : KDialog -{ -%TypeHeaderCode -#include -%End - - -public: - -%If ( KDE_3_1_0 - ) - KTipDialog (KTipDatabase*, QWidget* /TransferThis/ = 0, const char* = 0); -%End - - static void showTip (QWidget* /Transfer/, const QString& = QString ::null , bool = 0); - -%If ( KDE_3_2_0 - ) - static void showMultiTip (QWidget* /Transfer/, const QStringList&, bool = 0); -%End - - static void showTip (const QString& = QString ::null , bool = 0); - static void setShowOnStart (bool); - -protected: - bool eventFilter (QObject*, QEvent*); -//igx virtual void virtual_hook (int, void*); - -protected: - -%If ( - KDE_3_1_0 ) - KTipDialog (KTipDatabase*, QWidget* /TransferThis/ = 0, const char* = 0); -%End - - -}; // class KTipDialog - diff --git a/sip/kdeui/ktmainwindow.sip b/sip/kdeui/ktmainwindow.sip deleted file mode 100644 index 90afbab..0000000 --- a/sip/kdeui/ktmainwindow.sip +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright 2003 Jim Bublitz -// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE_3_1_1 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KTMainWindow : KMainWindow -{ -%TypeHeaderCode -#include -%End - - -public: - KTMainWindow (const char* = 0, WFlags = WDestructiveClose); - void setView (QWidget*, bool = 0); - QWidget* view () const; - void enableStatusBar (KStatusBar::BarStatus = KStatusBar::Toggle); - void enableToolBar (KToolBar::BarStatus = KToolBar::Toggle, int = 0); - void setEnableToolBar (KToolBar::BarStatus = KToolBar::Toggle, const char* = "mainToolBar"); - int addToolBar (KToolBar*, int = -1); - KToolBar* toolBar (int = 0); - void setMenu (KMenuBar*); - void setStatusBar (KStatusBar*); - bool hasMenuBar (); - bool hasStatusBar (); - bool hasToolBar (int = 0); - -protected slots: - virtual void updateRects (); - -}; // class KTMainWindow - diff --git a/sip/kdeui/ktoolbar.sip b/sip/kdeui/ktoolbar.sip deleted file mode 100644 index 74bdc9e..0000000 --- a/sip/kdeui/ktoolbar.sip +++ /dev/null @@ -1,263 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KToolBarSeparator : QFrame -{ -%TypeHeaderCode -#include -%End - - -public: - KToolBarSeparator (Orientation, bool, QToolBar* /TransferThis/, const char* = 0); - QSize sizeHint () const; - Orientation orientation () const; - QSizePolicy sizePolicy () const; - bool showLine () const; - -public slots: - void setOrientation (Orientation); - -protected: - void styleChange (QStyle&); - -%If ( KDE_3_2_0 - ) - void drawContents (QPainter*); -%End - - -}; // class KToolBarSeparator - - -class KToolBar : QToolBar -{ -%TypeHeaderCode -#include -%End - - -public: - - enum IconText - { - IconOnly, - IconTextRight, - TextOnly, - IconTextBottom - }; - - - enum BarStatus - { - Toggle, - Show, - Hide - }; - - - enum BarPosition - { - Unmanaged, - Floating, - Top, - Bottom, - Right, - Left, - Flat - }; - - KToolBar (QWidget* /TransferThis/, const char* = 0, bool = 0, bool = 1); -//ig KToolBar (QMainWindow*, QMainWindow::ToolBarDock, bool = 0, const char* = 0, bool = 0, bool = 1); - KToolBar (QMainWindow*, QWidget*, bool = 0, const char* = 0, bool = 0, bool = 1); - int insertButton (const QString&, int, bool = 1, const QString& = QString ::null , int = -1, KInstance* = KGlobal ::instance ()); - int insertButton (const QString&, int, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), bool = 1, const QString& = QString ::null , int = -1, KInstance* = KGlobal ::instance ()); - int insertButton (const QPixmap&, int, bool = 1, const QString& = QString ::null , int = -1); - int insertButton (const QPixmap&, int, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), bool = 1, const QString& = QString ::null , int = -1); - int insertButton (const QString&, int, QPopupMenu*, bool, const QString&, int = -1); - int insertButton (const QPixmap&, int, QPopupMenu*, bool, const QString&, int = -1); - int insertLined (const QString&, int, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), bool = 1, const QString& = QString ::null , int = 70, int = -1); - int insertCombo (const QStringList&, int, bool, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), bool = 1, const QString& = QString ::null , int = 70, int = -1, QComboBox::Policy = QComboBox ::AtBottom ); - -%If ( KDE_3_2_0 - ) - int insertCombo (const QString&, int, bool, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1, const QString& = QString ::null , int = 70, int = -1, QComboBox::Policy = QComboBox ::AtBottom ); -%End - - int insertSeparator (int, int); - int insertLineSeparator (int, int); - int insertWidget (int, int, QWidget*, int = -1); - int insertAnimatedWidget (int, SIP_RXOBJ_CON, SIP_SLOT_CON (int), const QString&, int = -1); - KAnimWidget* animatedWidget (int); - void addConnection (int, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int)); - void setItemEnabled (int, bool); - void setButtonIcon (int, const QString&); - void setButtonPixmap (int, const QPixmap&); - void setButtonIconSet (int, const QIconSet&); - void setDelayedPopup (int, QPopupMenu*, bool = 0); - void setAutoRepeat (int, bool = 1); - void setToggle (int, bool = 1); - void toggleButton (int); - void setButton (int, bool); - bool isButtonOn (int); - void setLinedText (int, const QString&); - QString getLinedText (int); - void insertComboItem (int, const QString&, int); - void insertComboList (int, const QStringList&, int); - void removeComboItem (int, int); - void setCurrentComboItem (int, int); - void changeComboItem (int, const QString&, int = -1); - void clearCombo (int); - QString getComboItem (int, int = -1); - KComboBox* getCombo (int); - KLineEdit* getLined (int); - KToolBarButton* getButton (int); - void alignItemRight (int, bool = 1); - QWidget* getWidget (int); - void setItemAutoSized (int, bool = 1); - void clear (); - void removeItem (int); - -%If ( KDE_3_2_0 - ) - void removeItemDelayed (int); -%End - - void hideItem (int); - void showItem (int); - -%If ( KDE_3_2_0 - ) - int itemIndex (int); - int idAt (int); -%End - - void setFullSize (bool = 1); - bool fullSize () const; - void enableMoving (bool = 1); - void setBarPos (KToolBar::BarPosition); - BarPosition barPos () const; - bool enable (KToolBar::BarStatus); - void setMaxHeight (int); - int maxHeight (); - void setMaxWidth (int); - int maxWidth (); - void setTitle (const QString&); - void enableFloating (bool); - void setIconText (KToolBar::IconText); - void setIconText (KToolBar::IconText, bool); - IconText iconText () const; - void setIconSize (int); - void setIconSize (int, bool); - int iconSize () const; - -%If ( KDE_3_4_0 - ) - int iconSizeDefault () const; -%End - - void setEnableContextMenu (bool = 1); - bool contextMenuEnabled () const; - void setItemNoStyle (int, bool = 1); - void setFlat (bool); - int count (); - void saveState (); - void saveSettings (KConfig*, const QString&); - -%If ( KDE_3_3_0 - ) - void applySettings (KConfig*, const QString&, bool); -%End - - void applySettings (KConfig*, const QString&); - void setXMLGUIClient (KXMLGUIClient*); - void setText (const QString&); - QString text () const; - void setStretchableWidget (QWidget*); - QSizePolicy sizePolicy () const; - bool highlight () const; - QSize sizeHint () const; - QSize minimumSizeHint () const; - QSize minimumSize () const; - void hide (); - void show (); - void updateRects (bool = 0); - void loadState (const QDomElement&); - void saveState (QDomElement&); - void positionYourself (bool); - -signals: - void clicked (int); - void doubleClicked (int); - void pressed (int); - void released (int); - void toggled (int); - void highlighted (int, bool); - void highlighted (int); - void moved (KToolBar::BarPosition); - void modechange (); - -%If ( KDE_3_1_0 - ) - void toolbarDestroyed (); -%End - - -public: - -%If ( KDE_3_1_0 - ) - static bool highlightSetting (); - static bool transparentSetting (); - static KToolBar::IconText iconTextSetting (); -%End - - -public slots: - virtual void setIconText (const QString&); - -protected: - void mousePressEvent (QMouseEvent*); - void childEvent (QChildEvent*); - void showEvent (QShowEvent*); - void resizeEvent (QResizeEvent*); - bool event (QEvent*); - void applyAppearanceSettings (KConfig*, const QString&, bool = 0); - QString settingsGroup () const; - -protected: -//igx virtual void virtual_hook (int, void*); - -public: - -%If ( - KDE_3_2_0 ) - int insertCombo (const QString&, int, bool, const char*, QObject*, const char*, bool = 1, const QString& = QString ::null , int = 70, int = -1, QComboBox::Policy = QComboBox ::AtBottom ); -%End - - -signals: - -%If ( - KDE_3_1_0 ) -//ig static bool highlightSetting (); -//ig static bool transparentSetting (); -//ig static IconText iconTextSetting (); -%End - - -}; // class KToolBar - diff --git a/sip/kdeui/ktoolbarbutton.sip b/sip/kdeui/ktoolbarbutton.sip deleted file mode 100644 index e451f70..0000000 --- a/sip/kdeui/ktoolbarbutton.sip +++ /dev/null @@ -1,123 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KToolBarButton : QToolButton -{ -%TypeHeaderCode -#include -%End - - -public: - KToolBarButton (const QString&, int, QWidget* /TransferThis/, const char* = 0, const QString& = QString ::null , KInstance* = KGlobal ::instance ()); - KToolBarButton (const QPixmap&, int, QWidget* /TransferThis/, const char* = 0, const QString& = QString ::null ); - KToolBarButton (QWidget* /TransferThis/ = 0, const char* = 0); - virtual void setPixmap (const QPixmap&); - void setDefaultPixmap (const QPixmap&); - void setDisabledPixmap (const QPixmap&); - virtual void setText (const QString&); - virtual void setIcon (const QString&); - -%If ( KDE_3_0_1 - ) - virtual void setIcon (const QPixmap&); -%End - - virtual void setIconSet (const QIconSet&); - void setIcon (const QString&, bool); - void setDefaultIcon (const QString&); - void setDisabledIcon (const QString&); - void on (bool = 1); - void toggle (); - void setToggle (bool = 1); - QPopupMenu* popup (); - -%If ( KDE_3_2_0 - ) - int id () const; -%End - - void setPopup (QPopupMenu*, bool); - void setDelayedPopup (QPopupMenu*, bool = 0); - void setRadio (bool = 1); - void setNoStyle (bool = 1); - -signals: - void clicked (int); - -%If ( KDE_3_4_2 - ) - void buttonClicked (int, Qt::ButtonState); -%End - - void doubleClicked (int); - void pressed (int); - void released (int); - void toggled (int); - void highlighted (int, bool); - -public slots: - void modeChange (); - virtual void setTextLabel (const QString&, bool); - -protected: - -%If ( KDE_3_5_0 - ) - bool event (QEvent*); -%End - - void paletteChange (const QPalette&); - void leaveEvent (QEvent*); - void enterEvent (QEvent*); - void drawButton (QPainter*); - bool eventFilter (QObject*, QEvent*); - -%If ( KDE_3_4_2 - ) - void mousePressEvent (QMouseEvent*); - void mouseReleaseEvent (QMouseEvent*); -%End - - void showMenu (); - QSize sizeHint () const; - QSize minimumSizeHint () const; - QSize minimumSize () const; - -%If ( KDE_3_0_1 - ) - bool isRaised () const; - bool isActive () const; - int iconTextMode () const; -%End - - -protected slots: - void slotClicked (); - void slotPressed (); - void slotReleased (); - void slotToggled (); - void slotDelayTimeout (); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KToolBarButton - diff --git a/sip/kdeui/ktoolbarlabelaction.sip b/sip/kdeui/ktoolbarlabelaction.sip deleted file mode 100644 index e196cbf..0000000 --- a/sip/kdeui/ktoolbarlabelaction.sip +++ /dev/null @@ -1,51 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_4_0 - ) - -class KToolBarLabelAction : KWidgetAction -{ -%TypeHeaderCode -#include -%End - - -public: - KToolBarLabelAction (const QString&, const KShortcut&, const QObject*, const char*, KActionCollection* /TransferThis/, const char*); - KToolBarLabelAction (QWidget*, const QString&, const KShortcut&, const QObject*, const char*, KActionCollection* /TransferThis/, const char*); - KToolBarLabelAction (QLabel*, const KShortcut&, const QObject*, const char*, KActionCollection* /TransferThis/, const char*); - virtual void setText (const QString&); - virtual void setBuddy (QWidget*); - QWidget* buddy () const; - QLabel* label () const; - -protected: - virtual void virtual_hook (int, void*); - -}; // class KToolBarLabelAction - -%End - diff --git a/sip/kdeui/ktoolbarradiogroup.sip b/sip/kdeui/ktoolbarradiogroup.sip deleted file mode 100644 index 37515b9..0000000 --- a/sip/kdeui/ktoolbarradiogroup.sip +++ /dev/null @@ -1,43 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KToolBarRadioGroup : QObject -{ -%TypeHeaderCode -#include -%End - - -public: - KToolBarRadioGroup (KToolBar*, const char* = 0); - void addButton (int); - void removeButton (int); - -public slots: - void slotToggled (int); - -}; // class KToolBarRadioGroup - diff --git a/sip/kdeui/kurllabel.sip b/sip/kdeui/kurllabel.sip deleted file mode 100644 index f1bb990..0000000 --- a/sip/kdeui/kurllabel.sip +++ /dev/null @@ -1,108 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KURLLabel : QLabel -{ -%TypeHeaderCode -#include -%End - - -public: - KURLLabel (QWidget* /TransferThis/ = 0, const char* = 0); - KURLLabel (const QString&, const QString& = QString ::null , QWidget* /TransferThis/ = 0, const char* = 0); - const QString& url () const; - const QString& tipText () const; - bool useTips () const; - bool useCursor () const; - bool isGlowEnabled () const; - bool isFloatEnabled () const; - const QPixmap* altPixmap () const; - -%If ( KDE_3_5_1 - ) - virtual void setMargin (int); - virtual void setFocusPolicy (FocusPolicy); - -%If ( KDE_3_5_2 - ) - virtual void setSizePolicy (QSizePolicy); -%End - -%End - - -public slots: - void setUnderline (bool = 1); - void setURL (const QString&); - virtual void setFont (const QFont&); - void setUseTips (bool = 1); - void setTipText (const QString&); - void setHighlightedColor (const QColor&); - void setHighlightedColor (const QString&); - void setSelectedColor (const QColor&); - void setSelectedColor (const QString&); - -%If ( KDE_3_5_1 - ) - virtual void setCursor (const QCursor&); - virtual void unsetCursor (); -%End - - void setUseCursor (bool, QCursor* = 0); - void setGlow (bool = 1); - void setFloat (bool = 1); - void setAltPixmap (const QPixmap&); - -signals: - void enteredURL (const QString&); - void enteredURL (); - void leftURL (const QString&); - void leftURL (); - void leftClickedURL (const QString&); - void leftClickedURL (); - void rightClickedURL (const QString&); - void rightClickedURL (); - void middleClickedURL (const QString&); - void middleClickedURL (); - -protected: - virtual void mouseReleaseEvent (QMouseEvent*); - virtual void enterEvent (QEvent*); - virtual void leaveEvent (QEvent*); - -%If ( KDE_3_2_0 - ) - virtual bool event (QEvent*); - -%If ( KDE_3_5_1 - ) - QRect activeRect () const; -%End - -%End - - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KURLLabel - diff --git a/sip/kdeui/kwindowinfo.sip b/sip/kdeui/kwindowinfo.sip deleted file mode 100644 index a7445bb..0000000 --- a/sip/kdeui/kwindowinfo.sip +++ /dev/null @@ -1,61 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_1_0 - ) - -class KWindowInfo : QObject -{ -%TypeHeaderCode -#include -%End - - -public: - KWindowInfo (QWidget* /TransferThis/, const char* = 0); - bool autoDelete () const; - void setAutoDelete (bool); - static void showMessage (QWidget*, const QString&, int = -1); - static void showMessage (QWidget*, const QString&, const QPixmap&, int = -1); - -public slots: - void message (const QString&); - void message (const QString&, const QPixmap&); - void message (const QString&, int); - void message (const QString&, const QPixmap&, int); - void permanent (const QString&); - void permanent (const QString&, const QPixmap&); - -protected: - virtual void display (const QString&, const QPixmap&); - -protected slots: - virtual void save (); - virtual void restore (); - -}; // class KWindowInfo - -%End - diff --git a/sip/kdeui/kwindowlistmenu.sip b/sip/kdeui/kwindowlistmenu.sip deleted file mode 100644 index 31f3242..0000000 --- a/sip/kdeui/kwindowlistmenu.sip +++ /dev/null @@ -1,54 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KWindowListMenu : KPopupMenu -{ -%TypeHeaderCode -#include -%End - - -public: - KWindowListMenu (QWidget* /TransferThis/ = 0, const char* = 0); - void init (); - -public slots: - -%If ( KDE_3_3_0 - ) - void selectActiveWindow (); -%End - - -protected slots: - void slotExec (int); - void slotUnclutterWindows (); - void slotCascadeWindows (); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KWindowListMenu - diff --git a/sip/kdeui/kwizard.sip b/sip/kdeui/kwizard.sip deleted file mode 100644 index b9f7b30..0000000 --- a/sip/kdeui/kwizard.sip +++ /dev/null @@ -1,38 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KWizard : QWizard -{ -%TypeHeaderCode -#include -%End - - -public: - KWizard (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, WFlags = 0); - -}; // class KWizard - diff --git a/sip/kdeui/kwordwrap.sip b/sip/kdeui/kwordwrap.sip deleted file mode 100644 index 4909f98..0000000 --- a/sip/kdeui/kwordwrap.sip +++ /dev/null @@ -1,82 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KWordWrap -{ -%TypeHeaderCode -#include -%End - - -public: - -%If ( KDE_3_3_0 - ) - - enum - { - FadeOut, - Truncate - }; - -%End - - static KWordWrap* formatText (QFontMetrics&, const QRect&, int, const QString&, int = -1); - QRect boundingRect () const; - QString wrappedString () const; - QString truncatedString (bool = 1) const; - void drawText (QPainter*, int, int, int = Qt ::AlignAuto ) const; - -%If ( KDE_3_2_0 - ) - static void drawFadeoutText (QPainter*, int, int, int, const QString&); - -%If ( KDE_3_3_0 - ) - static void drawTruncateText (QPainter*, int, int, int, const QString&); -%End - -%End - - -%If ( KDE_3_2_0 - ) - -private: - KWordWrap (const QRect&); -%End - - -public: - -%If ( KDE_3_2_0 - KDE_3_3_0 ) - - enum - { - FadeOut - }; - -%End - - -}; // class KWordWrap - diff --git a/sip/kdeui/kxmlgui.sip b/sip/kdeui/kxmlgui.sip deleted file mode 100644 index 05c16e8..0000000 --- a/sip/kdeui/kxmlgui.sip +++ /dev/null @@ -1,26 +0,0 @@ -// -// Copyright 2003 Jim Bublitz -// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE_3_1_1 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - diff --git a/sip/kdeui/kxmlguibuilder.sip b/sip/kdeui/kxmlguibuilder.sip deleted file mode 100644 index 4972c49..0000000 --- a/sip/kdeui/kxmlguibuilder.sip +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KXMLGUIBuilder -{ -%TypeHeaderCode -#include -%End - - -public: - KXMLGUIBuilder (QWidget*); - KXMLGUIClient* builderClient () const; - void setBuilderClient (KXMLGUIClient*); - KInstance* builderInstance () const; - void setBuilderInstance (KInstance*); - QWidget* widget (); - virtual QStringList containerTags () const; -//ig virtual QWidget* createContainer (QWidget* /Transfer/, int, const QDomElement&, int&); - virtual void removeContainer (QWidget*, QWidget* /Transfer/, QDomElement&, int); - virtual QStringList customTags () const; - virtual int createCustomElement (QWidget* /Transfer/, int, const QDomElement&); - virtual void removeCustomElement (QWidget* /Transfer/, int); - virtual void finalizeGUI (KXMLGUIClient*); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KXMLGUIBuilder - diff --git a/sip/kdeui/kxmlguiclient.sip b/sip/kdeui/kxmlguiclient.sip deleted file mode 100644 index 6479093..0000000 --- a/sip/kdeui/kxmlguiclient.sip +++ /dev/null @@ -1,101 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KXMLGUIClient -{ -%TypeHeaderCode -#include -%End - - -public: - KXMLGUIClient (); - KXMLGUIClient (KXMLGUIClient* /TransferThis/); - KAction* action (const char*) const; - virtual KAction* action (const QDomElement&) const; - virtual KActionCollection* actionCollection () const; - virtual KInstance* instance () const; - virtual QDomDocument domDocument () const; - virtual QString xmlFile () const; - virtual QString localXMLFile () const; - void setXMLGUIBuildDocument (const QDomDocument&); - QDomDocument xmlguiBuildDocument () const; - void setFactory (KXMLGUIFactory*); - KXMLGUIFactory* factory () const; - KXMLGUIClient* parentClient () const; - void insertChildClient (KXMLGUIClient*); - void removeChildClient (KXMLGUIClient*); - const QPtrList* childClients (); - void setClientBuilder (KXMLGUIBuilder*); - KXMLGUIBuilder* clientBuilder () const; - void reloadXML (); - void plugActionList (const QString&, const QPtrList&); - void unplugActionList (const QString&); - static QString findMostRecentXMLFile (const QStringList&, QString&); - void addStateActionEnabled (const QString&, const QString&); - void addStateActionDisabled (const QString&, const QString&); - - enum ReverseStateChange - { - StateNoReverse, - StateReverse - }; - - - class StateChange - { - - public: - QStringList actionsToEnable; - QStringList actionsToDisable; - - }; // class StateChange - - -public: - KXMLGUIClient::StateChange getActionsToChangeForState (const QString&); - -%If ( KDE_3_1_0 - ) - void beginXMLPlug (QWidget*); - void endXMLPlug (); - void prepareXMLUnplug (QWidget*); -%End - - -protected: - virtual void setInstance (KInstance*); - virtual void setXMLFile (const QString&, bool = 0, bool = 1); - virtual void setLocalXMLFile (const QString&); - virtual void setXML (const QString&, bool = 0); - virtual void setDOMDocument (const QDomDocument&, bool = 0); - virtual void conserveMemory (); - virtual void stateChanged (const QString&, KXMLGUIClient::ReverseStateChange = StateNoReverse ); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KXMLGUIClient - diff --git a/sip/kdeui/kxmlguifactory.sip b/sip/kdeui/kxmlguifactory.sip deleted file mode 100644 index 681ced4..0000000 --- a/sip/kdeui/kxmlguifactory.sip +++ /dev/null @@ -1,297 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KXMLGUIFactory : QObject -{ -%TypeHeaderCode -#include -%End - - -public: - KXMLGUIFactory (KXMLGUIBuilder*, QObject* /TransferThis/ = 0, const char* = 0); - static QString readConfigFile (const QString&, bool, const KInstance* = 0); - static QString readConfigFile (const QString&, const KInstance* = 0); - static bool saveConfigFile (const QDomDocument&, const QString&, const KInstance* = 0); - static QString documentToXML (const QDomDocument&); - static QString elementToXML (const QDomElement&); - static void removeDOMComments (QDomNode&); - -%If ( KDE_3_3_0 - ) - static QDomElement actionPropertiesElement (QDomDocument&); - static QDomElement findActionByName (QDomElement&, const QString&, bool); -%End - - void addClient (KXMLGUIClient*); - void removeClient (KXMLGUIClient*); - void plugActionList (KXMLGUIClient*, const QString&, const QPtrList&); - void unplugActionList (KXMLGUIClient*, const QString&); - QPtrList clients () const; - QWidget* container (const QString&, KXMLGUIClient*, bool = 0); - QPtrList containers (const QString&); - void reset (); - void resetContainer (const QString&, bool = 0); - -public slots: - -%If ( KDE_3_3_0 - ) - int configureShortcuts (bool = 1, bool = 1); -%End - - -signals: - void clientAdded (KXMLGUIClient*); - void clientRemoved (KXMLGUIClient*); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KXMLGUIFactory - -//force -QPtrList testKActionList (QPtrList); -%MethodCode -//takes list | (QPtrList) -//returns (QPtrList) - - sipRes = a0; -%End - -//end - - -%MappedType QPtrList -//converts a Python list of KAction -{ -%TypeHeaderCode -#include -#include -%End - -%ConvertFromTypeCode - if (!sipCpp) - return PyList_New (0); - - PyObject *pylist; - - // Create the list - - if ((pylist = PyList_New(0)) == NULL) - return NULL; - - // Get it. - - QPtrList *cpplist = (QPtrList *)sipCpp; - KAction *cpp; - PyObject *inst; - - // the loop depends on the type of iterator the tmeplate makes available - for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) - { - if (((inst = sipConvertFromInstance (cpp, sipClass_KAction, sipTransferObj)) == NULL) - || PyList_Append (pylist, inst) < 0) - { - Py_DECREF (pylist); - return NULL; - } - } - - return pylist; -%End - -%ConvertToTypeCode - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - QPtrList *cpplist = new QPtrList; - - PyObject *elem; - KAction *cpp; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - elem = PyList_GET_ITEM (sipPy, i); - cpp = (KAction *)sipForceConvertToType(elem, sipType_KAction, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - -%MappedType QPtrList -//converts a Python list of KXMLGUIClient -{ -%TypeHeaderCode -#include -#include -%End - -%ConvertFromTypeCode - if (!sipCpp) - return PyList_New (0); - - PyObject *pylist; - - // Create the list - - if ((pylist = PyList_New(0)) == NULL) - return NULL; - - // Get it. - - QPtrList *cpplist = (QPtrList *)sipCpp; - KXMLGUIClient *cpp; - PyObject *inst; - - // the loop depends on the type of iterator the tmeplate makes available - for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) - { - if (((inst = sipConvertFromNewType(new KXMLGUIClient(*cpp), sipType_KXMLGUIClient, NULL)) == NULL) - || PyList_Append (pylist, inst) < 0) - { - Py_DECREF (pylist); - return NULL; - } - } - - return pylist; -%End - -%ConvertToTypeCode - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - QPtrList *cpplist = new QPtrList; - - PyObject *elem; - KXMLGUIClient *cpp; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - elem = PyList_GET_ITEM (sipPy, i); - cpp = (KXMLGUIClient *)sipForceConvertToType(elem, sipType_KXMLGUIClient, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - -%MappedType QPtrList -//converts a Python list of QWidget -{ -%TypeHeaderCode -#include -%End - -%ConvertFromTypeCode - if (!sipCpp) - return PyList_New (0); - - PyObject *pylist; - - // Create the list - - if ((pylist = PyList_New(0)) == NULL) - return NULL; - - // Get it. - - QPtrList *cpplist = (QPtrList *)sipCpp; - QWidget *cpp; - PyObject *inst; - - // the loop depends on the type of iterator the tmeplate makes available - for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) - { - if (((inst = sipConvertFromInstance (cpp, sipClass_QWidget, sipTransferObj)) == NULL) - || PyList_Append (pylist, inst) < 0) - { - Py_DECREF (pylist); - return NULL; - } - } - - return pylist; -%End - -%ConvertToTypeCode - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - QPtrList *cpplist = new QPtrList; - - PyObject *elem; - QWidget *cpp; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - elem = PyList_GET_ITEM (sipPy, i); - cpp = (QWidget *)sipForceConvertToType(elem, sipType_QWidget, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - diff --git a/sip/kdeui/qxembed.sip b/sip/kdeui/qxembed.sip deleted file mode 100644 index d091384..0000000 --- a/sip/kdeui/qxembed.sip +++ /dev/null @@ -1,113 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class QXEmbed : QWidget -{ -%TypeHeaderCode -#include -%End - - -public: - QXEmbed (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); - static void initialize (); - -%If ( KDE_3_1_1 - ) - - enum Protocol - { - XEMBED, - XPLAIN - }; - - void setProtocol (QXEmbed::Protocol); - QXEmbed::Protocol protocol (); -%End - - void embed (WId); - WId embeddedWinId () const; - static void embedClientIntoWindow (QWidget*, WId); - static bool processClientCmdline (QWidget*, SIP_PYLIST) [bool (QWidget*, int&, char**)]; -%MethodCode -//returns (bool) -//takes client | (QWidget) | argv | (a Python list of strings which may be modified) - -//returns -//takes list (a Python list of strings) | index (int) - - int n; - - if ((n = PyList_Size (a1)) == 0) - return NULL; - - char **strings; - - if ((strings = (char **)PyQtListToArray(a1)) == NULL) - return NULL; - - Py_BEGIN_ALLOW_THREADS - sipRes = QXEmbed::processClientCmdline (a0, n, strings); - Py_END_ALLOW_THREADS - - sipFree((ANY *)strings); -%End - - -%If ( KDE_3_2_0 - ) - void sendDelete (); -%End - - void setAutoDelete (bool); - bool autoDelete () const; - QSize sizeHint () const; - QSize minimumSizeHint () const; - QSizePolicy sizePolicy () const; - bool eventFilter (QObject*, QEvent*); - bool customWhatsThis () const; - void enterWhatsThisMode (); - -%If ( KDE_3_2_0 - ) - virtual void reparent (QWidget* /Transfer/, WFlags, const QPoint&, bool = 0); -%End - - -signals: - void embeddedWindowDestroyed (); - -protected: - bool event (QEvent*); - void keyPressEvent (QKeyEvent*); - void keyReleaseEvent (QKeyEvent*); - void focusInEvent (QFocusEvent*); - void focusOutEvent (QFocusEvent*); - void resizeEvent (QResizeEvent*); - void showEvent (QShowEvent*); -//ig bool x11Event (XEvent*); - virtual void windowChanged (WId); - bool focusNextPrevChild (bool); - -}; // class QXEmbed - diff --git a/sip/tdecore/bytearray.sip b/sip/tdecore/bytearray.sip new file mode 100644 index 0000000..aae4780 --- /dev/null +++ b/sip/tdecore/bytearray.sip @@ -0,0 +1,945 @@ +// +// Copyright 2004 Jim Bublitz +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + +// module tdecore version KDE_3_2_2 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%ModuleHeaderCode +#include +%End + + +void dcop_add (QDataStream&, QWidget::FocusPolicy /Constrained/); +void dcop_add (QDataStream&, int /Constrained/, const QCString& = "int"); +//void dcop_add (QDataStream&, longlong); +//void dcop_add (QDataStream&, ulonglong); +void dcop_add (QDataStream&, double, const QCString& = "double"); +void dcop_add (QDataStream&, QString); +void dcop_add (QDataStream&, QStringList); +void dcop_add (QDataStream&, QCString); +void dcop_add (QDataStream&, KURL); +void dcop_add (QDataStream&, KURL::List); +void dcop_add (QDataStream&, QSize); +void dcop_add (QDataStream&, QRect); +void dcop_add (QDataStream&, QRegion); +void dcop_add (QDataStream&, QPoint); +void dcop_add (QDataStream&, QFont); +void dcop_add (QDataStream&, QCursor); +void dcop_add (QDataStream&, QPixmap); +void dcop_add (QDataStream&, QColor); +void dcop_add (QDataStream&, QColorGroup); +void dcop_add (QDataStream&, QPalette); +void dcop_add (QDataStream&, QBrush); +void dcop_add (QDataStream&, DCOPRef); +void dcop_add (QDataStream&, QVariant); +void dcop_add (QDataStream&, QDate); +void dcop_add (QDataStream&, QTime); +void dcop_add (QDataStream&, QDateTime); +void dcop_add (QDataStream&, QImage); +void dcop_add (QDataStream&, QKeySequence); +void dcop_add (QDataStream&, QPen); +void dcop_add (QDataStream&, QPicture); +void dcop_add (QDataStream&, QPointArray); +void dcop_add (QDataStream&, QByteArray); + +void dcop_add (QDataStream&, SIP_PYDICT, QCString); +%MethodCode + const sipTypeDef *map_td = sipFindType(*a2); + + if (map_td) + { + int iserr = 0; + void *map_v; + + map_v = sipForceConvertToType(a1, map_td, NULL, + SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + sipIsErr = 1; + } + else if (*a2 == "QMap") + { + QMap *map = (QMap *)map_v; + + *a0 << *map; + } + else if (*a2 == "QMap") + { + QMap *map = (QMap *)map_v; + + *a0 << *map; + } + else if (*a2 == "QMap") + { + QMap *map = (QMap *)map_v; + + *a0 << *map; + } + else if (*a2 == "QMap") + { + QMap *map = (QMap *)map_v; + + *a0 << *map; + } + } +%End + + +void dcop_add (QDataStream&, SIP_PYLIST, QCString); +%MethodCode + const sipTypeDef *list_td = sipFindType(*a2); + + if (list_td) + { + int iserr = 0; + void *list_v; + + list_v = sipForceConvertToType(a1, list_td, NULL, + SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + sipIsErr = 1; + } + else if (*a2 == "QValueList") + { + QValueList *list = (QValueList *)list_v; + + *a0 << *list; + } + else if (*a2 == "QValueList") + { + QValueList *list = (QValueList *)list_v; + + *a0 << *list; + } + } +%End + + +void dcop_next (QDataStream&, QCString&); +%MethodCode + if (*a1 == "char") + { + Q_INT8 res; + *a0 >> res; + return PyInt_FromLong ((long)res); + } + else if (*a1 == "bool") + { + bool res; + *a0 >> res; + return PyBool_FromLong ((long)res); + } + else if (*a1 == "int") + { + int res; + *a0 >> res; + return PyInt_FromLong ((long)res); + } + else if (*a1 == "long") + { + long res; + *a0 >> res; + return PyLong_FromLong (res); + } + else if (*a1 == "short") + { + short res; + *a0 >> res; + return PyInt_FromLong ((long)res); + } + if (*a1 == "uchar" || *a1 == "unsigned char") + { + Q_UINT8 res; + *a0 >> res; + return PyInt_FromLong ((long)res); + } + else if (*a1 == "uint" || *a1 == "unsigned int") + { + unsigned int res; + *a0 >> res; + return PyInt_FromLong ((long)res); + } + else if (*a1 == "ulong" || *a1 == "unsigned long") + { + unsigned long res; + *a0 >> res; + return PyLong_FromLong (res); + } + else if (*a1 == "Q_INT32") + { + Q_INT32 res; + *a0 >> res; + return PyLong_FromLong ((long)res); + } + else if (*a1 == "pid_t") + { + pid_t res; + *a0 >> res; + return PyLong_FromLong ((long)res); + } + else if (*a1 == "ushort" || *a1 == "unsigned short") + { + unsigned short res; + *a0 >> res; + return PyInt_FromLong ((long)res); + } + else if (*a1 == "float") + { + float res; + *a0 >> res; + return PyFloat_FromDouble ((double)res); + } + else if (*a1 == "double") + { + double res; + *a0 >> res; + return PyFloat_FromDouble (res); + } + else if (*a1 == "QString") + { + QString res; + *a0 >> res; + return sipConvertFromNewType(new QString(res), sipType_QString, NULL); + } + else if (*a1 == "QStringList") + { + QStringList res; + *a0 >> res; + return sipConvertFromNewType(new QStringList(res), sipType_QStringList, NULL); + } + else if (*a1 == "QCString") + { + QCString res; + *a0 >> res; + return sipConvertFromNewType(new QCString(res), sipType_QCString, NULL); + } + else if (*a1 == "KURL") + { + KURL res; + *a0 >> res; + return sipConvertFromNewType(new KURL(res), sipType_KURL, NULL); + } + else if (*a1 == "KURL::List") + { + KURL::List res; + *a0 >> res; + return sipConvertFromNewType(new KURL::List(res), sipType_KURL_List, NULL); + } + else if (*a1 == "QSize") + { + QSize res; + *a0 >> res; + return sipConvertFromNewType(new QSize(res), sipType_QSize, NULL); + } + else if (*a1 == "QRect") + { + QRect res; + *a0 >> res; + return sipConvertFromNewType(new QRect(res), sipType_QRect, NULL); + } + else if (*a1 == "QRegion") + { + QRect res; + *a0 >> res; + return sipConvertFromNewType(new QRegion(res), sipType_QRegion, NULL); + } + else if (*a1 == "QPoint") + { + QPoint res; + *a0 >> res; + return sipConvertFromNewType(new QPoint(res), sipType_QPoint, NULL); + } + else if (*a1 == "QFont") + { + QFont res; + *a0 >> res; + return sipConvertFromNewType(new QFont(res), sipType_QFont, NULL); + } + else if (*a1 == "QCursor") + { + QCursor res; + *a0 >> res; + return sipConvertFromNewType(new QCursor(res), sipType_QCursor, NULL); + } + else if (*a1 == "QPixmap") + { + QPixmap res; + *a0 >> res; + return sipConvertFromNewType(new QPixmap(res), sipType_QPixmap, NULL); + } + else if (*a1 == "QColor") + { + QColor res; + *a0 >> res; + return sipConvertFromNewType(new QColor(res), sipType_QColor, NULL); + } + else if (*a1 == "QColorGroup") + { + QColorGroup res; + *a0 >> res; + return sipConvertFromNewType(new QColorGroup(res), sipType_QColorGroup, NULL); + } + else if (*a1 == "QPalette") + { + QPalette res; + *a0 >> res; + return sipConvertFromNewType(new QPalette(res), sipType_QPalette, NULL); + } + else if (*a1 == "QBrush") + { + QBrush res; + *a0 >> res; + return sipConvertFromNewType(new QBrush(res), sipType_QBrush, NULL); + } + else if (*a1 == "FocusPolicy") + { + unsigned int res; + *a0 >> res; + return PyInt_FromLong ((long)res); + } + else if (*a1 == "DCOPRef") + { + DCOPRef res; + *a0 >> res; + return sipConvertFromNewType(new DCOPRef(res), sipType_DCOPRef, NULL); + } + else if (*a1 == "QVariant") + { + QVariant res; + *a0 >> res; + return sipConvertFromNewType(new QVariant(res), sipType_QVariant, NULL); + } + else if (*a1 == "QDate") + { + QDate res; + *a0 >> res; + return sipConvertFromNewType(new QDate(res), sipType_QDate, NULL); + } + else if (*a1 == "QTime") + { + QTime res; + *a0 >> res; + return sipConvertFromNewType(new QTime(res), sipType_QTime, NULL); + } + else if (*a1 == "QDateTime") + { + QDateTime res; + *a0 >> res; + return sipConvertFromNewType(new QDateTime(res), sipType_QDateTime, NULL); + } + else if (*a1 == "QImage") + { + QImage res; + *a0 >> res; + return sipConvertFromNewType(new QImage(res), sipType_QImage, NULL); + } + else if (*a1 == "QKeySequence") + { + QKeySequence res; + *a0 >> res; + return sipConvertFromNewType(new QKeySequence(res), sipType_QKeySequence, NULL); + } + else if (*a1 == "QPen") + { + QPen res; + *a0 >> res; + return sipConvertFromNewType(new QPen(res), sipType_QPen, NULL); + } + else if (*a1 == "QPicture") + { + QPicture res; + *a0 >> res; + return sipConvertFromNewType(new QPicture(res), sipType_QPicture, NULL); + } + else if (*a1 == "QPointArray") + { + QPointArray res; + *a0 >> res; + return sipConvertFromNewType(new QPointArray(res), sipType_QPointArray, NULL); + } + else if (*a1 == "QByteArray") + { + QByteArray res; + *a0 >> res; + return sipConvertFromNewType(new QByteArray(res), sipType_QByteArray, NULL); + } + else if (*a1 == "QMap") + { + QMap res; + *a0 >> res; + return sipConvertFromType(&res, sipFindType(*a1), NULL); + } + else if (*a1 == "QMap") + { + QMap res; + *a0 >> res; + return sipConvertFromType(&res, sipFindType(*a1), NULL); + } + else if (*a1 == "QMap") + { + QMap res; + *a0 >> res; + return sipConvertFromType(&res, sipFindType(*a1), NULL); + } + else if (*a1 == "QMap") + { + QMap res; + *a0 >> res; + return sipConvertFromType(&res, sipFindType(*a1), NULL); + } + else if (*a1 == "QValueList") + { + QValueList res; + *a0 >> res; + return sipConvertFromType(&res, sipFindType(*a1), NULL); + } + else if (*a1 == "QValueList" || *a1 == "QCStringList") + { + QValueList res; + *a0 >> res; + return sipConvertFromType(&res, sipFindType(*a1), NULL); + } + +%End + +%ModuleHeaderCode +#include +#include +#include +%End + +%ModuleCode + +void dcop_add (QDataStream& s, int value, const QCString& type_) +{ + if (type_ == "char") + s << (Q_INT8)value; + else if (type_ == "bool") + s << (bool)value; + else if (type_ == "short") + s << (short)value; + else if (type_ == "int") + s << (int)value; + else if (type_ == "long") + s << (long)value; + else if (type_== "uchar" || type_ == "unsigned char") + s << (Q_UINT8)value; + else if (type_ == "ushort" || type_ == "unsigned short") + s << (ushort)value; + else if (type_ == "uint" || type_ == "unsigned int") + s << (uint)value; + else if (type_ == "ulong" || type_ == "unsigned long") + s << (long)value; +} + +/*void dcop_add (QDataStream& s, longlong value) +{ + s << value; +} + +void dcop_add (QDataStream& s, ulonglong value) +{ + s << value; +}*/ + +void dcop_add (QDataStream& s, double value, const QCString& type_) +{ + if (type_ == "double") + s << value; + else if (type_ == "float") + s << (float)value; +} + +void dcop_add (QDataStream& s, QString value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QStringList value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QCString value) +{ + s << value; +} + +void dcop_add (QDataStream& s, KURL value) +{ + s << value; +} + +void dcop_add (QDataStream& s, KURL::List value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QSize value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QRect value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QRegion value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QPoint value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QFont value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QCursor value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QPixmap value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QColor value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QColorGroup value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QPalette value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QBrush value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QWidget::FocusPolicy value) +{ + s << value; +} + +void dcop_add (QDataStream& s, DCOPRef value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QVariant value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QDate value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QTime value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QDateTime value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QImage value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QKeySequence value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QPen value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QPicture value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QPointArray value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QByteArray value) +{ + s << value; +} + +%End + + +%MappedType QMap +//converts a Python dict of QCString:DCOPRef +{ +%TypeHeaderCode +#include +//typedef QMap DCOPRefMap; +%End + +%ConvertFromTypeCode + // Convert to a Python dict + + if (!sipCpp) + return PyDict_New(); + + PyObject *dict; + + // Create the dictionary. + + if ((dict = PyDict_New()) == NULL) + return NULL; + + // Get it. + + const QMap cppmap = *sipCpp; + QMap::ConstIterator it; + + for (it = cppmap.begin (); it != cppmap.end (); ++it) + { + QCString acpp = it.key (); + DCOPRef bcpp = it.data (); + PyObject *ainst; + PyObject *binst = NULL; + if (((ainst = sipConvertFromNewType(new QCString(acpp), sipType_QCString, NULL)) == NULL) + || ((binst = sipConvertFromNewType(new DCOPRef(bcpp), sipType_DCOPRef, NULL)) == NULL) + || (PyDict_SetItem (dict, ainst, binst) < 0)) + { + Py_XDECREF (ainst); + Py_XDECREF (binst); + Py_DECREF (dict); + return NULL; + } + } + + return dict; +%End + + +%ConvertToTypeCode + // Convert a Python dictionary to a QMap on the heap. + + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + QMap *cppmap = new QMap; + + PyObject *aelem, *belem; + SIP_SSIZE_T pos = 0; + QCString *acpp; + DCOPRef *bcpp; + + while (PyDict_Next(sipPy, &pos, &aelem, &belem)) + { + int iserr = 0; + + acpp = (QCString *)sipForceConvertToType(aelem, sipType_QCString, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + bcpp = (DCOPRef *)sipForceConvertToType(belem, sipType_DCOPRef, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cppmap; + return 0; + } + + cppmap->insert (*acpp, *bcpp); + } + + *sipCppPtr = cppmap; + + return 1; +%End +}; + +%MappedType QMap +//converts a Python dict of QString:DCOPRef +{ +%TypeHeaderCode +#include +//typedef QMap DCOPRefMap; +%End + +%ConvertFromTypeCode + // Convert to a Python dict + + if (!sipCpp) + return PyDict_New(); + + PyObject *dict; + + // Create the dictionary. + + if ((dict = PyDict_New()) == NULL) + return NULL; + + // Get it. + + const QMap cppmap = *sipCpp; + QMap::ConstIterator it; + + for (it = cppmap.begin (); it != cppmap.end (); ++it) + { + QString acpp = it.key (); + DCOPRef bcpp = it.data (); + PyObject *ainst; + PyObject *binst = NULL; + if (((ainst = sipConvertFromNewType(new QString(acpp), sipType_QString, sipTransferObj)) == NULL) + || ((binst = sipConvertFromNewType(new DCOPRef(bcpp), sipType_DCOPRef, sipTransferObj)) == NULL) + || (PyDict_SetItem (dict, ainst, binst) < 0)) + { + Py_XDECREF (ainst); + Py_XDECREF (binst); + Py_DECREF (dict); + return NULL; + } + } + + return dict; +%End + + +%ConvertToTypeCode + // Convert a Python dictionary to a QMap on the heap. + + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + QMap *cppmap = new QMap; + + PyObject *aelem, *belem; + SIP_SSIZE_T pos = 0; + QString *acpp; + DCOPRef *bcpp; + + while (PyDict_Next(sipPy, &pos, &aelem, &belem)) + { + int iserr = 0, acpp_state; + + acpp = (QString *)sipForceConvertToType(aelem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr); + bcpp = (DCOPRef *)sipForceConvertToType(belem, sipType_DCOPRef, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + if (acpp) + sipReleaseType(acpp, sipType_QString, acpp_state); + + *sipIsErr = 1; + delete cppmap; + return 0; + } + + cppmap->insert (*acpp, *bcpp); + + sipReleaseType(acpp, sipType_QString, acpp_state); + } + + *sipCppPtr = cppmap; + + return 1; +%End +}; + + +//%MappedType QMap is available in tdecore/kconfig.sip + + +%MappedType QMap +//converts a Python dict of QString:QByteArray +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + // Convert to a Python dict + + if (!sipCpp) + return PyDict_New(); + + PyObject *dict; + + // Create the dictionary. + + if ((dict = PyDict_New()) == NULL) + return NULL; + + // Get it. + + const QMap cppmap = *sipCpp; + QMap::ConstIterator it; + + for (it = cppmap.begin (); it != cppmap.end (); ++it) + { + QString acpp = it.key (); + QByteArray bcpp = it.data (); + PyObject *ainst; + PyObject *binst = NULL; + if (((ainst = sipConvertFromNewType(new QString(acpp), sipType_QString, sipTransferObj)) == NULL) + || ((binst = sipConvertFromNewType(new QByteArray(bcpp), sipType_QByteArray, sipTransferObj)) == NULL) + || (PyDict_SetItem (dict, ainst, binst) < 0)) + { + Py_XDECREF (ainst); + Py_XDECREF (binst); + Py_DECREF (dict); + return NULL; + } + } + + return dict; +%End + + +%ConvertToTypeCode + // Convert a Python dictionary to a QMap on the heap. + + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + QMap *cppmap = new QMap; + + PyObject *aelem, *belem; + SIP_SSIZE_T pos = 0; + QString *acpp; + QByteArray *bcpp; + + while (PyDict_Next(sipPy, &pos, &aelem, &belem)) + { + int iserr = 0, acpp_state, bcpp_state; + + acpp = (QString *)sipForceConvertToType(aelem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr); + bcpp = (QByteArray *)sipForceConvertToType(belem, sipType_QByteArray, sipTransferObj, SIP_NOT_NONE, &bcpp_state, &iserr); + + if (iserr) + { + if (acpp) + sipReleaseType(acpp, sipType_QString, acpp_state); + + *sipIsErr = 1; + delete cppmap; + return 0; + } + + cppmap->insert (*acpp, *bcpp); + + sipReleaseType(acpp, sipType_QString, acpp_state); + sipReleaseType(bcpp, sipType_QByteArray, bcpp_state); + } + + *sipCppPtr = cppmap; + + return 1; +%End +}; + + + +%MappedType QValueList +//converts a Python list of DCOPRef +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList *cpplist = (QValueList *)sipCpp; + PyObject *inst; + + // Get it. + QValueList::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromNewType(new DCOPRef(*it), sipType_DCOPRef, NULL)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList *cpplist = new QValueList; + + PyObject *elem; + DCOPRef *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (DCOPRef *)sipForceConvertToType(elem, sipType_DCOPRef, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (*cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + diff --git a/sip/tdecore/fixx11h.sip b/sip/tdecore/fixx11h.sip new file mode 100644 index 0000000..22fe789 --- /dev/null +++ b/sip/tdecore/fixx11h.sip @@ -0,0 +1,30 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%ModuleHeaderCode +#include +#include +%End + diff --git a/sip/tdecore/kaboutdata.sip b/sip/tdecore/kaboutdata.sip new file mode 100644 index 0000000..1117cda --- /dev/null +++ b/sip/tdecore/kaboutdata.sip @@ -0,0 +1,301 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KAboutPerson +{ +%TypeHeaderCode +#include +%End + + +public: + KAboutPerson (const char*, const char*, const char*, const char*); + KAboutPerson (); + QString name () const; + QString task () const; + QString emailAddress () const; + QString webAddress () const; + +}; // class KAboutPerson + + +class KAboutTranslator +{ +%TypeHeaderCode +#include +%End + + +public: + KAboutTranslator (const QString& = QString ::null , const QString& = QString ::null ); + QString name () const; + QString emailAddress () const; + +}; // class KAboutTranslator + + +class KAboutData +{ +%TypeHeaderCode +#include +%End + + +public: + + enum LicenseKey + { + License_Custom, + License_File, + License_Unknown, + License_GPL, + License_GPL_V2, + License_LGPL, + License_LGPL_V2, + License_BSD, + License_Artistic, + License_QPL, + License_QPL_V1_0 + }; + + +public: + KAboutData (const char*, const char*, const char*, const char* = 0, int = License_Unknown , const char* = 0, const char* = 0, const char* = 0, const char* = "submit@bugs.kde.org"); + void addAuthor (const char*, const char* = 0, const char* = 0, const char* = 0); + void addCredit (const char*, const char* = 0, const char* = 0, const char* = 0); + void setTranslator (const char*, const char*); + void setLicenseText (const char*); + void setLicenseTextFile (const QString&); + +%If ( KDE_3_3_0 - ) + void setAppName (const char*); + void setProgramName (const char*); + +%If ( KDE_3_4_0 - ) + void setProgramLogo (const QImage&); +%End + + void setVersion (const char*); + void setShortDescription (const char*); + void setLicense (KAboutData::LicenseKey); + void setCopyrightStatement (const char*); + void setOtherText (const char*); + void setHomepage (const char*); + void setBugAddress (const char*); +%End + + +%If ( KDE_3_2_0 - ) + void setProductName (const char*); +%End + + const char* appName () const; + +%If ( KDE_3_2_0 - ) + const char* productName () const; +%End + + QString programName () const; + +%If ( KDE_3_5_1 - ) + const char* internalProgramName () const; + void translateInternalProgramName () const; +%End + + +%If ( KDE_3_4_0 - ) + QImage programLogo () const; +%End + + QString version () const; + +%If ( KDE_3_5_1 - ) + const char* internalVersion () const; +%End + + QString shortDescription () const; + QString homepage () const; + QString bugAddress () const; + +%If ( KDE_3_5_1 - ) + const char* internalBugAddress () const; +%End + + const QValueList authors () const; + const QValueList credits () const; + const QValueList translators () const; + static QString aboutTranslationTeam (); + QString otherText () const; + QString license () const; + QString copyrightStatement () const; + +%If ( KDE_3_5_0 - ) + QString customAuthorPlainText () const; + QString customAuthorRichText () const; + bool customAuthorTextEnabled () const; + void setCustomAuthorText (const QString&, const QString&); + void unsetCustomAuthorText (); +%End + + +}; // class KAboutData + + + +%MappedType QValueList +//converts a Python list of KAboutPerson +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList *cpplist = (QValueList *)sipCpp; + PyObject *inst; + + // Get it. + QValueList::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromNewType(new KAboutPerson(*it), sipType_KAboutPerson, NULL)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList *cpplist = new QValueList; + + PyObject *elem; + KAboutPerson *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KAboutPerson *)sipForceConvertToType(elem, sipType_KAboutPerson, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (*cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + +%MappedType QValueList +//converts a Python list of KAboutTranslator +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList *cpplist = (QValueList *)sipCpp; + PyObject *inst; + + // Get it. + QValueList::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromNewType(new KAboutTranslator(*it), sipType_KAboutTranslator, NULL)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList *cpplist = new QValueList; + + PyObject *elem; + KAboutTranslator *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KAboutTranslator *)sipForceConvertToType(elem, sipType_KAboutTranslator, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (*cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + diff --git a/sip/tdecore/kaccel.sip b/sip/tdecore/kaccel.sip new file mode 100644 index 0000000..301aba2 --- /dev/null +++ b/sip/tdecore/kaccel.sip @@ -0,0 +1,240 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KAccel : QAccel +{ +%TypeHeaderCode +#include +%End + + +public: + KAccel (QWidget* /TransferThis/, const char* = 0); + KAccel (QWidget*, QObject* /TransferThis/, const char* = 0); + KAccelActions& actions (); + bool isEnabled () const; + void setEnabled (bool); + bool setAutoUpdate (bool); + +%If ( KDE_3_1_4 - ) + KAccelAction* insert (const QString&, const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1, bool = 1); + KAccelAction* insert (const QString&, const QString&, const QString&, const KShortcut&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1, bool = 1); + KAccelAction* insert (const char*, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1, bool = 1); + KAccelAction* insert (KStdAccel::StdAccel, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1, bool = 1); +%End + + bool remove (const QString&); + bool updateConnections (); + const KShortcut& shortcut (const QString&) const; + bool setShortcut (const QString&, const KShortcut&); + +%If ( KDE_3_1_4 - ) + bool setSlot (const QString&, SIP_RXOBJ_CON, SIP_SLOT_CON ()); +%End + + bool setEnabled (const QString&, bool); + const QString& configGroup () const; + void setConfigGroup (const QString&); + bool readSettings (KConfigBase* = 0); + bool writeSettings (KConfigBase* = 0) const; + void emitKeycodeChanged (); + +signals: + void keycodeChanged (); + +public: + bool insertItem (const QString&, const QString&, const char*, int = 0, QPopupMenu* = 0, bool = 1); + bool insertItem (const QString&, const QString&, int, int, QPopupMenu*, bool = 1); + bool insertStdItem (KStdAccel::StdAccel, const QString& = QString ::null ); + +%If ( KDE_3_1_4 - ) + bool connectItem (const QString&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1); + bool connectItem (KStdAccel::StdAccel, SIP_RXOBJ_CON, SIP_SLOT_CON ()); +%End + + bool removeItem (const QString&); + bool setItemEnabled (const QString&, bool); + void changeMenuAccel (QPopupMenu*, int, const QString&); + void changeMenuAccel (QPopupMenu*, int, KStdAccel::StdAccel); + static int stringToKey (const QString&); + int currentKey (const QString&) const; + QString findKey (int) const; + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_2_0 ) +//ig bool getAutoUpdate (); +//ig KAccelAction* insert (const QString&, const QString&); +%End + + +public: + +%If ( - KDE_3_1_4 ) + KAccelAction* insert (const QString&, const QString&, const QString&, const KShortcut&, const QObject*, const char*, bool = 1, bool = 1); + KAccelAction* insert (const QString&, const QString&, const QString&, const KShortcut&, const KShortcut&, const QObject*, const char*, bool = 1, bool = 1); + KAccelAction* insert (const char*, const KShortcut&, const QObject*, const char*, bool = 1, bool = 1); + KAccelAction* insert (KStdAccel::StdAccel, const QObject*, const char*, bool = 1, bool = 1); + bool setSlot (const QString&, const QObject*, const char*); +%End + + +public: + +%If ( - KDE_3_1_4 ) + bool connectItem (const QString&, const QObject*, const char*, bool = 1); + bool connectItem (KStdAccel::StdAccel, const QObject*, const char*); + +//force +%ConvertToSubClassCode + // The table of Python class objects indexed by their names. The table + // must be sorted by name. + + static sipStringTypeClassMap map[] = { + {sipName_KAccel, &sipClass_KAccel}, + {sipName_KApplication, &sipClass_KApplication}, + {sipName_KAsyncIO, &sipClass_KAsyncIO}, + {sipName_KAudioPlayer, &sipClass_KAudioPlayer}, + {sipName_KBufferedIO, &sipClass_KBufferedIO}, +#if KDE_VERSION >= 0x030100 + {sipName_KClipboardSynchronizer, &sipClass_KClipboardSynchronizer}, +#endif + {sipName_KCompletion, &sipClass_KCompletion}, + {sipName_KConfig, &sipClass_KConfig}, + {sipName_KConfigBase, &sipClass_KConfigBase}, + {sipName_KConfigGroup, &sipClass_KConfigGroup}, + {sipName_KDesktopFile, &sipClass_KDesktopFile}, + {sipName_KGlobalAccel, &sipClass_KGlobalAccel}, + {sipName_KLibFactory, &sipClass_KLibFactory}, + {sipName_KLibLoader, &sipClass_KLibLoader}, + {sipName_KLibrary, &sipClass_KLibrary}, + {sipName_KMultipleDrag, &sipClass_KMultipleDrag}, + {sipName_KProcIO, &sipClass_KProcIO}, + {sipName_KProcess, &sipClass_KProcess}, + {sipName_KProcessController, &sipClass_KProcessController}, + {sipName_KServerSocket, &sipClass_KServerSocket}, + {sipName_KShellProcess, &sipClass_KShellProcess}, + {sipName_KSimpleConfig, &sipClass_KSimpleConfig}, + {sipName_KSocket, &sipClass_KSocket}, + {sipName_KStartupInfo, &sipClass_KStartupInfo}, + {sipName_KUniqueApplication, &sipClass_KUniqueApplication}, + {sipName_KWinModule, &sipClass_KWinModule}, + }; + + sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0])); +%End +//end +%End + + +}; // class KAccel + + + +%MappedType QMap +//converts a Python dict of int:QString +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + + if (!sipCpp) + return PyDict_New(); + + PyObject *dict; + + // Create the dictionary. + + if ((dict = PyDict_New()) == NULL) + return NULL; + + // Get it. + + const QMap map = *sipCpp; + QMap::ConstIterator it; + + for (it = map.begin (); it != map.end (); ++it) + { + PyObject *iKey = PyInt_FromLong (((long) it.key ())); + PyObject *sData = PyString_FromString ((char *)((QString *)&it.data ())); + + if ((iKey == NULL) || (sData == NULL) || (PyDict_SetItem (dict, iKey, sData) < 0)) + { + Py_XDECREF (iKey); + Py_XDECREF (sData); + Py_DECREF (dict); + return NULL; + } + } + + return dict; +%End + + +%ConvertToTypeCode + // Convert a Python dictionary to a KKeyMapOrder on the heap. + + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + QMap *map = new QMap; + + PyObject *key, *value; + SIP_SSIZE_T pos = 0; + int iKey; + QString *sData; + + while (PyDict_Next(sipPy, &pos, &key, &value)) + { + int iserr = 0, sData_state; + + iKey = PyInt_AS_LONG (key); + sData = (QString *)sipForceConvertToType(value, sipType_QString, sipTransferObj, SIP_NOT_NONE, &sData_state, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete map; + return 0; + } + + map->insert (iKey, *sData); + + sipReleaseType(sData, sipType_QString, sData_state); + } + + *sipCppPtr = map; + + return 1; +%End +}; + + diff --git a/sip/tdecore/kaccelaction.sip b/sip/tdecore/kaccelaction.sip new file mode 100644 index 0000000..20947b6 --- /dev/null +++ b/sip/tdecore/kaccelaction.sip @@ -0,0 +1,122 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KAccelAction +{ +%TypeHeaderCode +#include +%End + + +public: + KAccelAction (); + KAccelAction (const KAccelAction&); + KAccelAction (const QString&, const QString&, const QString&, const KShortcut&, const KShortcut&, const QObject*, const char*, bool, bool); + void clear (); + bool init (const QString&, const QString&, const QString&, const KShortcut&, const KShortcut&, const QObject*, const char*, bool, bool); + const QString& name () const; + const QString& label () const; + const QString& whatsThis () const; + const KShortcut& shortcut () const; + const KShortcut& shortcutDefault () const; + const KShortcut& shortcutDefault3 () const; + const KShortcut& shortcutDefault4 () const; + const QObject* objSlotPtr () const; + const char* methodSlotPtr () const; + bool isConfigurable () const; + bool isEnabled () const; + void setName (const QString&); + void setLabel (const QString&); + void setWhatsThis (const QString&); + bool setShortcut (const KShortcut&); + void setSlot (const QObject*, const char*); + void setConfigurable (bool); + void setEnabled (bool); + int getID () const; + void setID (int); + bool isConnected () const; + bool setKeySequence (uint, const KKeySequence&); + void clearShortcut (); + bool contains (const KKeySequence&); + QString toString () const; + QString toStringInternal () const; + static bool useFourModifierKeys (); + static void useFourModifierKeys (bool); + +protected: + void incConnections (); + void decConnections (); + +}; // class KAccelAction + + +class KAccelActions +{ +%TypeHeaderCode +#include +%End + + +public: + KAccelActions (); + KAccelActions (const KAccelActions&); + void clear (); + bool init (const KAccelActions&); + bool init (KConfigBase&, const QString&); + void updateShortcuts (KAccelActions&); + int actionIndex (const QString&) const; + KAccelAction* actionPtr (uint); + KAccelAction* actionPtr (const QString&); + KAccelAction* actionPtr (KKeySequence); + +%If ( KDE_3_1_4 - ) + KAccelAction& operator [] (uint); +%MethodCode +//returns (KAccelAction&) +//takes index | (uint) + sipRes = &((*sipCpp) [a0]); +%End + +%End + + KAccelAction* insert (const QString&, const QString&, const QString&, const KShortcut&, const KShortcut&, const QObject* = 0, const char* = 0, bool = 1, bool = 1); + KAccelAction* insert (const QString&, const QString&); + bool remove (const QString&); + bool readActions (const QString& = "Shortcuts", KConfigBase* = 0); + bool writeActions (const QString& = "Shortcuts", KConfigBase* = 0, bool = 0, bool = 0) const; + void emitKeycodeChanged (); + uint count () const; + +protected: + void resize (uint); + void insertPtr (KAccelAction*); + +private: + KAccelActions (KAccelBase*); + KAccelActions &operator=(const KAccelActions &); + +}; // class KAccelActions + diff --git a/sip/tdecore/kaccelbase.sip b/sip/tdecore/kaccelbase.sip new file mode 100644 index 0000000..334c6d8 --- /dev/null +++ b/sip/tdecore/kaccelbase.sip @@ -0,0 +1,102 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KAccelBase +{ +%TypeHeaderCode +#include +%End + + +public: + + enum Init + { + QT_KEYS, + NATIVE_KEYS + }; + + + enum Signal + { + KEYCODE_CHANGED + }; + + KAccelBase (int); + uint actionCount () const; + KAccelActions& actions (); + bool isEnabled () const; + KAccelAction* actionPtr (const QString&); + KAccelAction* actionPtr (const KKey&); + KAccelAction* actionPtr (const KKeyServer::Key&); + const QString& configGroup () const; + void setConfigGroup (const QString&); + void setConfigGlobal (bool); + virtual void setEnabled (bool) = 0; + bool getAutoUpdate (); + bool setAutoUpdate (bool); + KAccelAction* insert (const QString&, const QString&); + KAccelAction* insert (const QString&, const QString&, const QString&, const KShortcut&, const KShortcut&, const QObject*, const char*, bool = 1, bool = 1); + bool remove (const QString&); + bool setActionSlot (const QString&, const QObject*, const char*); + bool updateConnections (); + bool setShortcut (const QString&, const KShortcut&); + bool setActionEnabled (const QString&, bool); + void readSettings (KConfigBase* = 0); + void writeSettings (KConfigBase* = 0) const; + QPopupMenu* createPopupMenu (QWidget*, const KKeySequence&); + +protected: + void slotRemoveAction (KAccelAction*); +//ig void createKeyList (QValueVector&); + bool insertConnection (KAccelAction*); + bool removeConnection (KAccelAction*); + virtual bool emitSignal (KAccelBase::Signal) = 0; + virtual bool connectKey (KAccelAction&, const KKeyServer::Key&) = 0; + virtual bool connectKey (const KKeyServer::Key&) = 0; + virtual bool disconnectKey (KAccelAction&, const KKeyServer::Key&) = 0; + virtual bool disconnectKey (const KKeyServer::Key&) = 0; + +protected: + +%If ( KDE_3_5_0 - ) + virtual bool isEnabledInternal () const; +%End + + +//ig class ActionInfo; + +//ig typedef QMap KKeyToActionMap; + +protected: + +%If ( - KDE_3_1_1 ) +//igx virtual void virtual_hook (int, void*); +%End + + +}; // class KAccelBase + diff --git a/sip/tdecore/kallocator.sip b/sip/tdecore/kallocator.sip new file mode 100644 index 0000000..7272123 --- /dev/null +++ b/sip/tdecore/kallocator.sip @@ -0,0 +1,48 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KZoneAllocator +{ +%TypeHeaderCode +#include +%End + + +public: + KZoneAllocator (long = 131072); + void* allocate (size_t); + void deallocate (void*); + void free_since (void*); + +protected: +//ig typedef QValueList MemList; +//ig void addBlock (KZoneAllocator::MemBlock*); +//ig void delBlock (KZoneAllocator::MemBlock*); +//ig void insertHash (KZoneAllocator::MemBlock*); + void initHash (); + +}; // class KZoneAllocator + diff --git a/sip/tdecore/kapplication.sip b/sip/tdecore/kapplication.sip new file mode 100644 index 0000000..e91de01 --- /dev/null +++ b/sip/tdecore/kapplication.sip @@ -0,0 +1,449 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KApplication : QApplication, KInstance +{ +%TypeHeaderCode +#include +#include +extern char **pyArgvToC(PyObject *argvlist,int *argcp); +extern void updatePyArgv(PyObject *argvlist,int argc,char **argv); +%End + + +public: + + enum CaptionLayout + { + CaptionAppLast, + CaptionAppFirst, + CaptionNoApp + }; + + KApplication (bool = 1, bool = 1); + +%If ( KDE_3_3_0 - ) +//ig KApplication (Display*, Qt::HANDLE = 0, Qt::HANDLE = 0, bool = 1); +%End + +//ig KApplication (Display*, int&, char**, const QCString&, bool = 1, bool = 1); + KApplication (SIP_PYLIST, QCString&, bool = 1, bool = 1) [(int&, char**, const QCString&, bool = 1, bool = 1)]; +%MethodCode +//takes argv | (a Python list of strings) | rAppName | (Python string) | allowStyles | (bool = 1) | GUIenabled | (bool = 1) + + int argc, nargc; + char **argv; + + // Convert the list. + + if ((argv = pyArgvToC(a0, &argc)) == NULL) + return NULL; + + // Create it now the arguments are right. + + nargc = argc; + + Py_BEGIN_ALLOW_THREADS + + // The following two lines simulate the actual ctor call + // which is commented out below + KCmdLineArgs::init (nargc, argv, (char *)"unknown", (char *)"KDE Application", NULL, false); + sipCpp = new sipKApplication((bool)a1,(bool)a2); + + // This method calls KCmdLineArgs::initIgnore, which is a private method +// sipCpp = new sipKApplication (nargc,argv, qc, a1, a2); + + Py_END_ALLOW_THREADS + + // Now modify the original list. + + updatePyArgv(a0, argc, argv); +%End + + static void addCmdLineOptions (); + static KApplication* kApplication (); + KConfig* sessionConfig (); + bool isRestored () const; + void disableSessionManagement (); + +%If ( KDE_3_2_0 - ) + void enableSessionManagement (); +%End + + + enum ShutdownConfirm + { + ShutdownConfirmDefault, + ShutdownConfirmNo, + ShutdownConfirmYes + }; + + + enum ShutdownType + { + ShutdownTypeDefault, + ShutdownTypeNone, + ShutdownTypeReboot, + ShutdownTypeHalt + }; + + + enum ShutdownMode + { + ShutdownModeDefault, + ShutdownModeSchedule, + ShutdownModeTryNow, + ShutdownModeForceNow, + ShutdownModeInteractive + }; + + bool requestShutDown (KApplication::ShutdownConfirm = ShutdownConfirmDefault , KApplication::ShutdownType = ShutdownTypeDefault , KApplication::ShutdownMode = ShutdownModeDefault ); + void propagateSessionManager (); + void commitData (QSessionManager&); + void saveState (QSessionManager&); + +%If ( KDE_3_1_1 - ) + bool sessionSaving () const; +%End + + static DCOPClient* dcopClient (); + static void disableAutoDcopRegistration (); + QPixmap icon () const; + QString iconName () const; + QPixmap miniIcon () const; + QString miniIconName () const; + void setTopWidget (QWidget*); + +%If ( KDE_3_2_0 - ) + void invokeHelp (const QString&, const QString&, const QCString&) const; +%End + + void invokeHelp (const QString& = QString ::null , const QString& = QString ::null ) const; + void invokeHTMLHelp (const QString&, const QString& = QString ::null ) const; + +%If ( KDE_3_2_0 - ) + void invokeMailer (const QString&, const QString&, const QCString&); +%End + + void invokeMailer (const QString&, const QString&); + +%If ( KDE_3_3_0 - ) + void invokeMailer (const KURL&, const QCString&, bool); +%End + + +%If ( KDE_3_2_0 - ) + void invokeMailer (const KURL&, const QCString&); +%End + + void invokeMailer (const KURL&); + +%If ( KDE_3_2_0 - ) + void invokeMailer (const QString&, const QString&, const QString&, const QString&, const QString&, const QString&, const QStringList&, const QCString&); +%End + + void invokeMailer (const QString&, const QString&, const QString&, const QString&, const QString&, const QString& = QString ::null , const QStringList& = QStringList ()); + +public slots: + +%If ( KDE_3_2_0 - ) + void invokeBrowser (const QString&, const QCString&); +%End + + void invokeBrowser (const QString&); + +%If ( KDE_3_2_0 - ) + void cut (); + void copy (); + void paste (); + void clear (); + void selectAll (); +%End + + +public: + static QCString launcher (); + static int startServiceByName (const QString&, const QString&, QString* /Out/, QCString* /Out/, int*, const QCString& = QCString ("" ), bool = 0); + static int startServiceByName (const QString&, const QStringList&, QString* /Out/, QCString* /Out/, int*, const QCString& = QCString ("" ), bool = 0); + static int startServiceByDesktopPath (const QString&, const QString&, QString* /Out/, QCString* /Out/, int*, const QCString& = QCString ("" ), bool = 0); + static int startServiceByDesktopPath (const QString&, const QStringList&, QString* /Out/, QCString* /Out/, int*, const QCString& = QCString ("" ), bool = 0); + static int startServiceByDesktopName (const QString&, const QString&, QString* /Out/, QCString* /Out/, int*, const QCString& = QCString ("" ), bool = 0); + static int startServiceByDesktopName (const QString&, const QStringList&, QString* /Out/, QCString* /Out/, int*, const QCString& = QCString ("" ), bool = 0); + +%If ( KDE_3_2_0 - ) + static int tdeinitExec (const QString&, const QStringList&, QString* /Out/, int*, QCString&); +%End + + static int tdeinitExec (const QString&, const QStringList&, QString* /Out/, int*); + +%If ( KDE_3_2_0 - ) + static int tdeinitExecWait (const QString&, const QStringList&, QString* /Out/, int*, QCString&); +%End + + static int tdeinitExecWait (const QString&, const QStringList&, QString* /Out/, int*); + QString caption () const; +//ig KStyle* kstyle () const; + QString makeStdCaption (const QString&, bool = 1, bool = 0) const; + QString tempSaveName (const QString&) const; + QString checkRecoverFile (const QString&, bool&) const; + Display* getDisplay (); + void enableStyles (); + void disableStyles (); + void installX11EventFilter (QWidget*); + +%If ( KDE_3_2_0 - ) + void removeX11EventFilter (const QWidget*); +%End + + static int random (); + static QString randomString (int); + void addKipcEventMask (int); + void removeKipcEventMask (int); + QCString startupId () const; + void setStartupId (const QCString&); + +%If ( KDE_3_2_0 - ) + void updateUserTimestamp (ulong = 0); + +%If ( KDE_3_2_3 - ) + ulong userTimestamp () const; + +%If ( KDE_3_3_0 - ) + void updateRemoteUserTimestamp (const QCString&, ulong = 0); +%End + +%End + +%End + + QString geometryArgument () const; + void installKDEPropertyMap (); + bool authorize (const QString&); + bool authorizeKAction (const char*); + +%If ( KDE_3_1_0 - ) + bool authorizeURLAction (const QString&, const KURL&, const KURL&); + +%If ( KDE_3_2_0 - ) + void allowURLAction (const QString&, const KURL&, const KURL&); + bool authorizeControlModule (const QString&); + QStringList authorizeControlModules (const QStringList&); + +%If ( KDE_3_4_0 - ) + static ButtonState keyboardMouseState (); +%End + +%End + + + enum + { + ShiftModifier, + LockModifier, + ControlModifier, + Modifier1, + Modifier2, + Modifier3, + Modifier4, + Modifier5 + }; + + static uint keyboardModifiers (); + + enum + { + Button1Pressed, + Button2Pressed, + Button3Pressed, + Button4Pressed, + Button5Pressed + }; + + static uint mouseState (); +%End + + +public slots: + void ref (); + void deref (); + +protected: + KApplication (bool, bool, KInstance*); + +%If ( KDE_3_3_0 - ) +//ig KApplication (Display*, Qt::HANDLE, Qt::HANDLE, bool, KInstance*); +%End + +//ig bool x11EventFilter (XEvent*); + +%If ( KDE_3_2_0 - ) + void invokeEditSlot (const char*); +%End + + +public: + bool notify (QObject*, QEvent*); + +%If ( KDE_3_2_0 - ) +//ig int xErrhandler (Display*, void*); +//ig int xioErrhandler (Display*); +%End + + +%If ( KDE_3_0_1 - ) +//ig void iceIOErrorHandler (_IceConn*); +%End + + bool loadedByKdeinit; + static void startKdeinit (); + + enum SettingsCategory + { + SETTINGS_MOUSE, + SETTINGS_COMPLETION, + SETTINGS_PATHS, + SETTINGS_POPUPMENU, + SETTINGS_QT, + SETTINGS_SHORTCUTS + }; + + +%If ( KDE_3_1_0 - ) + static QPalette createApplicationPalette (); + static QPalette createApplicationPalette (KConfig*, int); + +%If ( KDE_3_2_0 - ) + static void installSigpipeHandler (); + static bool guiEnabled (); +%End + +%End + + +signals: + void kdisplayPaletteChanged (); + void kdisplayStyleChanged (); + void kdisplayFontChanged (); + void appearanceChanged (); + void toolbarAppearanceChanged (int); + void backgroundChanged (int); + void settingsChanged (int); + void iconChanged (int); + void kipcMessage (int, int); + void saveYourself (); + void shutDown (); + +private: + KApplication (const KApplication&); + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_2_0 ) + int xioErrhandler (); +%End + + +}; // class KApplication + + +class KSessionManaged +{ +%TypeHeaderCode +#include +%End + + +public: + KSessionManaged (); + virtual bool saveState (QSessionManager&); + virtual bool commitData (QSessionManager&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KSessionManaged + +typedef ulong Atom; +//ig typedef void Display; +//ig bool checkAccess (const QString&, int); + + +%ModuleCode +#include + +// Convert a Python argv list to a conventional C argc count and argv array. +char **pyArgvToC(PyObject *argvlist,int *argcp) +{ + int argc; + char **argv; + + argc = PyList_Size(argvlist); + + // Allocate space for two copies of the argument pointers, plus the + // terminating NULL. + if ((argv = (char **)sipMalloc(2 * (argc + 1) * sizeof (char *))) == NULL) + return NULL; + + // Convert the list. + for (int a = 0; a < argc; ++a) + { + char *arg; + + // Get the argument and allocate memory for it. + if ((arg = PyString_AsString(PyList_GetItem(argvlist,a))) == NULL || + (argv[a] = (char *)sipMalloc(strlen(arg) + 1)) == NULL) + return NULL; + + // Copy the argument and save a pointer to it. + strcpy(argv[a],arg); + argv[a + argc + 1] = argv[a]; + } + + argv[argc + argc + 1] = argv[argc] = NULL; + + *argcp = argc; + + return argv; +} + + +// Remove arguments from the Python argv list that have been removed from the +// C argv array. +void updatePyArgv(PyObject *argvlist,int argc,char **argv) +{ + for (int a = 0, na = 0; a < argc; ++a) + { + // See if it was removed. + if (argv[na] == argv[a + argc + 1]) + ++na; + else + PyList_SetSlice(argvlist,na,na + 1,NULL); + } +} +%End diff --git a/sip/tdecore/kasyncio.sip b/sip/tdecore/kasyncio.sip new file mode 100644 index 0000000..3c716df --- /dev/null +++ b/sip/tdecore/kasyncio.sip @@ -0,0 +1,52 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KAsyncIO : QObject, QIODevice +{ +%TypeHeaderCode +#include +%End + + +protected: + KAsyncIO (); + +private: + KAsyncIO (KAsyncIO&); + +public: + virtual void enableRead (bool) = 0; + virtual void enableWrite (bool) = 0; + +signals: + void readyRead (); + void readyWrite (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KAsyncIO + diff --git a/sip/tdecore/kaudioplayer.sip b/sip/tdecore/kaudioplayer.sip new file mode 100644 index 0000000..e211058 --- /dev/null +++ b/sip/tdecore/kaudioplayer.sip @@ -0,0 +1,42 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KAudioPlayer : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KAudioPlayer (const QString&, QObject* /TransferThis/ = 0, const char* = 0); + static void play (const QString&); + +public slots: + void play (); + +}; // class KAudioPlayer + diff --git a/sip/tdecore/kbufferedio.sip b/sip/tdecore/kbufferedio.sip new file mode 100644 index 0000000..bb79121 --- /dev/null +++ b/sip/tdecore/kbufferedio.sip @@ -0,0 +1,73 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KBufferedIO : KAsyncIO +{ +%TypeHeaderCode +#include +%End + + +protected: + KBufferedIO (); + +public: + + enum closeModes + { + availRead, + dirtyWrite, + involuntary, + delayed, + closedNow + }; + + virtual void closeNow () = 0; + virtual bool setBufferSize (int, int = -2); + virtual int bytesAvailable () const; + virtual int waitForMore (int) = 0; + virtual int bytesToWrite () const; + virtual bool canReadLine () const; + virtual int peekBlock (char*, uint) = 0; + virtual int unreadBlock (const char*, uint); + +signals: + void bytesWritten (int); + void closed (int); + +protected: + virtual uint consumeReadBuffer (uint, char*, bool = 1); + virtual void consumeWriteBuffer (uint); + virtual uint feedReadBuffer (uint, const char*, bool = 0); + virtual uint feedWriteBuffer (uint, const char*); + virtual uint readBufferSize () const; + virtual uint writeBufferSize () const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KBufferedIO + diff --git a/sip/tdecore/kcalendarsystem.sip b/sip/tdecore/kcalendarsystem.sip new file mode 100644 index 0000000..0cd4023 --- /dev/null +++ b/sip/tdecore/kcalendarsystem.sip @@ -0,0 +1,78 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KCalendarSystem +{ +%TypeHeaderCode +#include +%End + + +public: + KCalendarSystem (const KLocale* = 0); + virtual int year (const QDate&) const = 0; + virtual QString yearString (const QDate&, bool) const; + virtual int yearStringToInteger (const QString&, int& /Out/) const; + virtual int month (const QDate&) const = 0; + virtual QString monthString (const QDate&, bool) const; + virtual int monthStringToInteger (const QString&, int& /Out/) const; + virtual int day (const QDate&) const = 0; + virtual QString dayString (const QDate&, bool) const; + virtual int dayStringToInteger (const QString&, int& /Out/) const; + virtual int dayOfWeek (const QDate&) const = 0; + virtual int dayOfYear (const QDate&) const = 0; + virtual bool setYMD (QDate&, int, int, int) const = 0; + virtual QDate addYears (const QDate&, int) const = 0; + virtual QDate addMonths (const QDate&, int) const = 0; + virtual QDate addDays (const QDate&, int) const = 0; + virtual int monthsInYear (const QDate&) const = 0; + virtual int daysInYear (const QDate&) const = 0; + virtual int daysInMonth (const QDate&) const = 0; + virtual int weeksInYear (int) const = 0; + virtual int weekNumber (const QDate&, int* = 0) const = 0; + virtual QString monthName (int, int, bool = 0) const = 0; + virtual QString monthName (const QDate&, bool = 0) const = 0; + virtual QString monthNamePossessive (int, int, bool = 0) const = 0; + virtual QString monthNamePossessive (const QDate&, bool = 0) const = 0; + virtual QString weekDayName (int, bool = 0) const = 0; + virtual QString weekDayName (const QDate&, bool = 0) const = 0; + virtual int minValidYear () const = 0; + virtual int maxValidYear () const = 0; + virtual int weekDayOfPray () const = 0; + virtual QString calendarName () const = 0; + virtual bool isLunar () const = 0; + virtual bool isLunisolar () const = 0; + virtual bool isSolar () const = 0; + +protected: + const KLocale* locale () const; + +}; // class KCalendarSystem + +%End + diff --git a/sip/tdecore/kcalendarsystemfactory.sip b/sip/tdecore/kcalendarsystemfactory.sip new file mode 100644 index 0000000..20c4f35 --- /dev/null +++ b/sip/tdecore/kcalendarsystemfactory.sip @@ -0,0 +1,44 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KCalendarSystemFactory +{ +%TypeHeaderCode +#include +%End + + +public: + KCalendarSystemFactory (); + static KCalendarSystem* create (const QString& = QString ::fromLatin1 ("gregorian" ), const KLocale* = 0); + static QStringList calendarSystems (); + +}; // class KCalendarSystemFactory + +%End + diff --git a/sip/tdecore/kcatalogue.sip b/sip/tdecore/kcatalogue.sip new file mode 100644 index 0000000..3469af8 --- /dev/null +++ b/sip/tdecore/kcatalogue.sip @@ -0,0 +1,64 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KCatalogue +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_3_0 - ) + KCatalogue (const QString& = QString ::null , const QString& = QString ::null ); +%End + + KCatalogue (const KCatalogue&); + QString name () const; + +%If ( KDE_3_3_0 - ) + QString language () const; + int pluralType () const; + void setPluralType (int); +%End + + const char* translate (const char*) const; + +public: + +%If ( - KDE_3_3_0 ) + +%If ( D_MANDRAKE ) + KCatalogue (const QString& = QString ::null ); + void setFileName (const QString&); +%End + +%End + + +}; // class KCatalogue + diff --git a/sip/tdecore/kcharsets.sip b/sip/tdecore/kcharsets.sip new file mode 100644 index 0000000..9be4386 --- /dev/null +++ b/sip/tdecore/kcharsets.sip @@ -0,0 +1,62 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KCharsets +{ +%TypeHeaderCode +#include +%End + + +protected: + KCharsets (); + +public: + QTextCodec* codecForName (const QString&) const; + QTextCodec* codecForName (const QString&, bool& /Out/) const /PyName=codecForName2/; + QChar fromEntity (const QString&) const; + QChar fromEntity (const QString&, int& /Out/) const /PyName=fromEntity2/; + QString toEntity (const QChar&) const; + +%If ( KDE_3_1_0 - ) + static QString resolveEntities (const QString&); +%End + + QStringList availableEncodingNames (); + QStringList descriptiveEncodingNames (); + QString languageForEncoding (const QString&); + QString encodingForName (const QString&); + +public: + +%If ( - KDE_3_2_0 ) +//ig QStringList languages (); +//ig QStringList encodingsForLanguage (const QString&); +%End + + +}; // class KCharsets + diff --git a/sip/tdecore/kclipboard.sip b/sip/tdecore/kclipboard.sip new file mode 100644 index 0000000..4abc45a --- /dev/null +++ b/sip/tdecore/kclipboard.sip @@ -0,0 +1,52 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) + +class KClipboardSynchronizer : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + static KClipboardSynchronizer* self (); + static void setSynchronizing (bool); + static bool isSynchronizing (); + static void setReverseSynchronizing (bool); + static bool isReverseSynchronizing (); + +protected: + ~KClipboardSynchronizer (); + +private: + KClipboardSynchronizer (QObject* /TransferThis/ = 0, const char* = 0); + +}; // class KClipboardSynchronizer + +%End + diff --git a/sip/tdecore/kcmdlineargs.sip b/sip/tdecore/kcmdlineargs.sip new file mode 100644 index 0000000..c9831f6 --- /dev/null +++ b/sip/tdecore/kcmdlineargs.sip @@ -0,0 +1,264 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KCmdLineOptions +{ +%TypeHeaderCode +#include +extern char **pyArgvToC(PyObject *argvlist,int *argcp); +extern void updatePyArgv(PyObject *argvlist,int argc,char **argv); +%End + + +public: + const char* name; + const char* description; + +%If ( KDE_3_5_3 - ) +// def is a Python keyword - use /PyName=/ +//pykwd const char* def; +%End + + +}; // class KCmdLineOptions + + +class KCmdLineArgs +{ +%TypeHeaderCode +#include +#include +%End + + +public: + +%If ( KDE_3_2_0 - ) + static void init (SIP_PYLIST, const char*, const char*, const char*, const char*, bool = 0) [void (int, char**, const char*, const char*, const char*, const char*, bool = 0)]; +%MethodCode +//takes _argc | (int) | _argv | (char) | _appname | (char) | programName | (char) | _description | (char) | _version | (char) | noKApp | (bool = 0) + + int argc, nargc; + char **argv; + + // Convert the list. + + if ((argv = pyArgvToC(a0, &argc)) == NULL) + return NULL; + + // Create it now the arguments are right. + nargc = argc; + + Py_BEGIN_ALLOW_THREADS + KCmdLineArgs::init (nargc,argv, a1, a2, a3, a4, a5); + Py_END_ALLOW_THREADS + + // Now modify the original list. + + updatePyArgv (a0, argc, argv); +%End + +%End + + static void init (SIP_PYLIST, const char*, const char*, const char*, bool = 0) [void (int, char**, const char*, const char*, const char*, bool = 0)]; +%MethodCode +//takes _argv | (a Python list of strings which may be modified) | _appname | (char) | _description | (char) | _version | (char) | noKApp | (bool = False) + + int argc, nargc; + char **argv; + + // Convert the list. + + if ((argv = pyArgvToC(a0, &argc)) == NULL) + return NULL; + + // Create it now the arguments are right. + nargc = argc; + + Py_BEGIN_ALLOW_THREADS + KCmdLineArgs::init (nargc,argv, a1, a2, a3, a4); + Py_END_ALLOW_THREADS + + // Now modify the original list. + + updatePyArgv (a0, argc, argv); +%End + + static void init (SIP_PYLIST, const KAboutData*, bool = 0) [void (int, char**, const KAboutData*, bool = 0)]; +%MethodCode +//takes _argv | (a Python list of strings which may be modified) | about | (KAboutData) | noKApp | (bool = 0) + + int argc, nargc; //, iserr = 0; + char **argv; + + // Convert the list. + + if ((argv = pyArgvToC (a0, &argc)) == NULL) + return NULL; + + // Create it now the arguments are right. + nargc = argc; + + Py_BEGIN_ALLOW_THREADS + KCmdLineArgs::init (nargc, argv, a1, a2); + Py_END_ALLOW_THREADS + + // Now modify the original list. + + updatePyArgv (a0, argc, argv); +%End + + static void init (const KAboutData*); + static void addCmdLineOptions (SIP_PYLIST, const char* = 0, const char* = 0, const char* = 0) [void (const KCmdLineOptions*, const char* = 0, const char* = 0, const char* = 0)]; +%MethodCode +//takes options | (a Python list of tuples) | name | (char = 0) | id | (char = 0) | afterId | (char = 0) + +//doc +// A Pytbon list of tuples (name, description, default) is the first parameter +// instead of a KCmdLineOptions object (KCmdLineOptions is not used); +// NULL (or None) parameters to mark the end of the list are not required +//end + + int n; + + if ((n = PyList_Size (a0)) == 0) + return NULL; + + // opts is persistent + KCmdLineOptions *opts; + + Py_BEGIN_ALLOW_THREADS + opts = new KCmdLineOptions [n + 1]; + Py_END_ALLOW_THREADS + + int i, tsz; + for (i = 0; i < n; i++) + { + PyObject *tuple; + + if ((tuple = PyList_GetItem (a0, i)) != NULL) + { + tsz = PyTuple_Size (tuple); + PyObject *member; + + if (tsz == 0) + goto errorExit; + + member = PyTuple_GET_ITEM (tuple, 0); + if (PyString_Check (member)) + opts [i].name = PyString_AS_STRING (member); + else + goto errorExit; + + if (tsz > 1) + { + member = PyTuple_GET_ITEM (tuple, 1); + if PyString_Check (member) + opts [i].description = PyString_AS_STRING (member); + else + goto errorExit; + } + else + opts [i].description = NULL; + + + if (tsz > 2) + { + member = PyTuple_GET_ITEM (tuple, 2); + if PyString_Check (member) + opts [i].def = PyString_AS_STRING (member); + else + goto errorExit; + } + else + opts [i].def = NULL; + } + else + goto errorExit; + } + + // mark the end of the list + opts [n].name = NULL; + opts [n].description = NULL; + opts [n].def = NULL; + + Py_BEGIN_ALLOW_THREADS + KCmdLineArgs::addCmdLineOptions (opts, a1, a2, a3); + Py_END_ALLOW_THREADS + + Py_INCREF (Py_None); + return Py_None; + +errorExit: + delete opts; + return NULL; +%End + + static KCmdLineArgs* parsedArgs (const char* = 0); + static QString cwd (); + static const char* appName (); + static void usage (const char* = 0); + static void usage (const QString&); + static void enable_i18n (); + QCString getOption (const char*); + +%If ( KDE_3_1_4 - ) + QCStringList getOptionList (const char*) const; +%End + + bool isSet (const char*); + int count (); + const char* arg (int); + KURL url (int); + static KURL makeURL (const char*); + static void setCwd (char*); + void clear (); + +%If ( KDE_3_2_0 - ) + static void reset (); + static void loadAppArgs (QDataStream&); + +%If ( KDE_3_4_0 - ) + static void addTempFileOption (); + static bool isTempFileSet (); +%End + +%End + + +protected: + KCmdLineArgs (const KCmdLineOptions*, const char*, const char*); + ~KCmdLineArgs (); + +public: + +%If ( - KDE_3_1_3 ) + QValueList getOptionList (const char*); +%End + + +}; // class KCmdLineArgs + diff --git a/sip/tdecore/kcompletion.sip b/sip/tdecore/kcompletion.sip new file mode 100644 index 0000000..268480d --- /dev/null +++ b/sip/tdecore/kcompletion.sip @@ -0,0 +1,227 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KCompletion : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + + enum CompOrder + { + Sorted, + Insertion, + Weighted + }; + + KCompletion (); + virtual QString makeCompletion (const QString&); + QStringList substringCompletion (const QString&) const; + QString previousMatch (); + QString nextMatch (); + virtual const QString& lastMatch () const; + QStringList items () const; + +%If ( KDE_3_3_0 - ) + bool isEmpty () const; +%End + + virtual void setCompletionMode (KGlobalSettings::Completion); + KGlobalSettings::Completion completionMode () const; + virtual void setOrder (KCompletion::CompOrder); + CompOrder order () const; + virtual void setIgnoreCase (bool); + bool ignoreCase () const; + QStringList allMatches (); + QStringList allMatches (const QString&); +//ig KCompletionMatches allWeightedMatches (); +//ig KCompletionMatches allWeightedMatches (const QString&); + virtual void setEnableSounds (bool); + bool isSoundsEnabled () const; + bool hasMultipleMatches () const; + void enableSounds (); + void disableSounds (); + +public slots: + void slotMakeCompletion (const QString&); + void slotPreviousMatch (); + void slotNextMatch (); + void insertItems (const QStringList&); + virtual void setItems (const QStringList&); + void addItem (const QString&); + void addItem (const QString&, uint); + void removeItem (const QString&); + virtual void clear (); + +signals: + void match (const QString&); + void matches (const QStringList&); + void multipleMatches (); + +protected: + virtual void postProcessMatch (QString*); + virtual void postProcessMatches (QStringList*); +//ig virtual void postProcessMatches (KCompletionMatches*) const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KCompletion + + +//ig class KCompletionMatches : KCompletionMatchesList; + + +class KCompletionBase +{ +%TypeHeaderCode +#include +%End + + +public: + + enum KeyBindingType + { + TextCompletion, + PrevCompletionMatch, + NextCompletionMatch, + SubstringCompletion + }; + + typedef QMap KeyBindingMap; + KCompletionBase (); + KCompletion* completionObject (bool = 1); + virtual void setCompletionObject (KCompletion*, bool = 1); + virtual void setHandleSignals (bool); + bool isCompletionObjectAutoDeleted () const; + void setAutoDeleteCompletionObject (bool); + void setEnableSignals (bool); + bool handleSignals () const; + bool emitSignals () const; + virtual void setCompletionMode (KGlobalSettings::Completion); + KGlobalSettings::Completion completionMode () const; + bool setKeyBinding (KCompletionBase::KeyBindingType, const KShortcut&); + const KShortcut& getKeyBinding (KCompletionBase::KeyBindingType) const; + void useGlobalKeyBindings (); + virtual void setCompletedText (const QString&) = 0; + virtual void setCompletedItems (const QStringList&) = 0; + KCompletion* compObj () const; + +protected: + KCompletionBase::KeyBindingMap getKeyBindings () const; + void setDelegate (KCompletionBase*); + KCompletionBase* delegate () const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KCompletionBase + +//ig typedef KSortableValueList KCompletionMatchesList; + + +%MappedType KCompletionBase::KeyBindingMap +//converts a Python dict of int:KShortcut +{ +%TypeHeaderCode +#include +%End +%ConvertFromTypeCode + + if (!sipCpp) + return PyDict_New(); + + PyObject *dict; + + // Create the dictionary. + + if ((dict = PyDict_New()) == NULL) + return NULL; + + // Get it. + + const QMap map = *sipCpp; + QMap::ConstIterator it; + + PyObject *key; + PyObject *value; + + for (it = map.begin (); it != map.end (); ++it) + { + key = PyInt_FromLong ((int) it.key ()); + value = sipConvertFromInstance ((void *)&(it.data ()), sipClass_KShortcut, sipTransferObj); + if ((value == NULL) || (PyDict_SetItem (dict, key, value) < 0)) + { + Py_XDECREF (key); + Py_XDECREF (value); + Py_DECREF (dict); + return NULL; + } + } + + + return dict; +%End + + +%ConvertToTypeCode + // Convert a Python dictionary to a KeyBindingMap on the heap. + + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + QMap *kbmap = new QMap; + + PyObject *key, *value; + SIP_SSIZE_T pos = 0; + KShortcut *cValue; + int iserr; + + while (PyDict_Next(sipPy, &pos, &key, &value)) + { + cValue = (KShortcut *)sipForceConvertToType(value, sipType_KShortcut, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr || !PyInt_Check (key)) + { + *sipIsErr = 1; + delete kbmap; + return 0; + } + + kbmap->insert ((KCompletionBase::KeyBindingType)PyInt_AS_LONG (key), *cValue); + } + + *sipCppPtr = kbmap; + + return 1; +%End +}; + + diff --git a/sip/tdecore/kconfig.sip b/sip/tdecore/kconfig.sip new file mode 100644 index 0000000..ed09152 --- /dev/null +++ b/sip/tdecore/kconfig.sip @@ -0,0 +1,238 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KConfig : KConfigBase +{ +%TypeHeaderCode +#include +%End + + +public: + KConfig (const QString& = QString ::null , bool = 0, bool = 1, const char* = "config"); + +%If ( KDE_3_2_0 - ) + KConfig (KConfigBackEnd*, bool = 0); +%End + + virtual void rollback (bool = 1); + virtual QStringList groupList () const; + virtual QMap entryMap (const QString&) const; + virtual void reparseConfiguration (); + void setFileWriteMode (int); + void setForceGlobal (bool); + bool forceGlobal () const; + +%If ( KDE_3_1_0 - ) + void checkUpdate (const QString&, const QString&); + +%If ( KDE_3_2_0 - ) + KConfig* copyTo (const QString&, KConfig* = 0) const; + +%If ( KDE_3_3_0 - ) + KLockFile::Ptr lockFile (bool = 0); +%End + +%End + +%End + + +protected: + virtual bool internalHasGroup (const QCString&) const; + virtual KEntryMap internalEntryMap (const QString&) const; + virtual KEntryMap internalEntryMap () const; + virtual void putData (const KEntryKey&, const KEntry&, bool = 1); + virtual KEntry lookupData (const KEntryKey&) const; + +private: + KConfig (const KConfig&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KConfig + + +%If ( KDE_3_2_0 - ) + +class KSharedConfig : KConfig, KShared +{ +%TypeHeaderCode +#include +%End + + +public: +//ig typedef KSharedPtr Ptr; + +public: + static KSharedConfig::Ptr openConfig (const QString&, bool = 0, bool = 1); + +private: + KSharedConfig (const QString&, bool, bool); + ~KSharedConfig (); + +}; // class KSharedConfig + +%End + + + +%MappedType QMap +//converts a Python dict of QString:QString +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + // Convert to a Python dict + + if (!sipCpp) + return PyDict_New(); + + PyObject *dict; + + // Create the dictionary. + + if ((dict = PyDict_New()) == NULL) + return NULL; + + // Get it. + + const QMap cppmap = *sipCpp; + QMap::ConstIterator it; + + for (it = cppmap.begin (); it != cppmap.end (); ++it) + { + QString acpp = it.key (); + QString bcpp = it.data (); + PyObject *ainst; + PyObject *binst = NULL; + if (((ainst = sipConvertFromNewType(new QString(acpp), sipType_QString, sipTransferObj)) == NULL) + || ((binst = sipConvertFromNewType(new QString(bcpp), sipType_QString, sipTransferObj)) == NULL) + || (PyDict_SetItem (dict, ainst, binst) < 0)) + { + Py_XDECREF (ainst); + Py_XDECREF (binst); + Py_DECREF (dict); + return NULL; + } + } + + return dict; +%End + + +%ConvertToTypeCode + // Convert a Python dictionary to a QMap on the heap. + + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + QMap *cppmap = new QMap; + + PyObject *aelem, *belem; + SIP_SSIZE_T pos = 0; + QString *acpp; + QString *bcpp; + + while (PyDict_Next(sipPy, &pos, &aelem, &belem)) + { + int iserr = 0, acpp_state, bcpp_state; + + acpp = (QString *)sipForceConvertToType(aelem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr); + bcpp = (QString *)sipForceConvertToType(belem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &bcpp_state, &iserr); + + if (iserr) + { + if (acpp) + sipReleaseType(acpp, sipType_QString, acpp_state); + + *sipIsErr = 1; + delete cppmap; + return 0; + } + + cppmap->insert (*acpp, *bcpp); + + sipReleaseType(acpp, sipType_QString, acpp_state); + sipReleaseType(bcpp, sipType_QString, bcpp_state); + } + + *sipCppPtr = cppmap; + + return 1; +%End +}; + + +%If (KDE_3_2_0 - ) +%MappedType KSharedConfig::Ptr +//converts KSharedConfig +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + // Convert to a Python instance + + if (!sipCpp) + return NULL; + + KSharedPtr *cPtr = new KSharedPtr (*(KSharedPtr *)sipCpp); + KSharedConfig *cpp = cPtr->data (); + PyObject *obj = sipConvertFromInstance (cpp, sipClass_KSharedConfig, sipTransferObj); + + return obj; +%End + +%ConvertToTypeCode + // Convert a Python instance to a Ptr on the heap. + + if (sipIsErr == NULL) + return PyInstance_Check(sipPy); + + int iserr = 0; + KSharedConfig *cpp = (KSharedConfig *)sipForceConvertToType(sipPy, sipType_KSharedConfig, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + return 0; + } + + *sipCppPtr = new KSharedPtr (cpp); + + return 1; +%End +}; +%End + + diff --git a/sip/tdecore/kconfigbackend.sip b/sip/tdecore/kconfigbackend.sip new file mode 100644 index 0000000..ca10d9e --- /dev/null +++ b/sip/tdecore/kconfigbackend.sip @@ -0,0 +1,93 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KConfigBackEnd +{ +%TypeHeaderCode +#include +%End + + +public: + KConfigBackEnd (KConfigBase*, const QString&, const char*, bool); + virtual bool parseConfigFiles () = 0; + virtual void sync (bool = 1) = 0; + void changeFileName (const QString&, const char*, bool); + virtual KConfigBase::ConfigState getConfigState () const; + QString fileName () const; + const char* resource () const; + void setLocaleString (const QCString&); + void setFileWriteMode (int); + +%If ( KDE_3_2_0 - ) + bool checkConfigFilesWritable (bool); + +%If ( KDE_3_3_0 - ) + KLockFile::Ptr lockFile (bool = 0); +%End + +%End + + QString filename () const; + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +}; // class KConfigBackEnd + + +class KConfigINIBackEnd : KConfigBackEnd +{ +%TypeHeaderCode +#include +#include +%End + + +public: + KConfigINIBackEnd (KConfigBase*, const QString&, const char*, bool = 1); + bool parseConfigFiles (); + virtual void sync (bool = 1); + +protected: + void parseSingleConfigFile (QFile&, KEntryMap* = 0, bool = 0, bool = 0); + bool writeConfigFile (QString, bool = 0, bool = 1); + +%If ( KDE_3_2_0 - ) + bool getEntryMap (KEntryMap&, bool, QFile*); +//ig void writeEntries (FILE*, const KEntryMap&); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KConfigINIBackEnd + diff --git a/sip/tdecore/kconfigbase.sip b/sip/tdecore/kconfigbase.sip new file mode 100644 index 0000000..cde14d9 --- /dev/null +++ b/sip/tdecore/kconfigbase.sip @@ -0,0 +1,333 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%ModuleHeaderCode +typedef long long longlong; +typedef unsigned long long ulonglong; +%End + + +class KConfigBase : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KConfigBase (); + void setGroup (const QString&); + void setDesktopGroup (); + QString group () const; + bool hasGroup (const QString&) const; + virtual QStringList groupList () const = 0; + QString locale () const; + QString readEntry (const QString&, const QString& = QString ::null ) const; + QString readEntry (const char*, const QString& = QString ::null ) const; + QVariant readPropertyEntry (const QString&, QVariant::Type) const; + QVariant readPropertyEntry (const char*, QVariant::Type) const; + QVariant readPropertyEntry (const QString&, const QVariant&) const; + QVariant readPropertyEntry (const char*, const QVariant&) const; + int readListEntry (const QString&, QStrList&, char = ',') const; + int readListEntry (const char*, QStrList&, char = ',') const; + QStringList readListEntry (const QString&, char = ',') const; + QStringList readListEntry (const char*, char = ',') const; + +%If ( KDE_3_3_0 - ) + QStringList readListEntry (const char*, const QStringList&, char = ',') const; +%End + + QValueList readIntListEntry (const QString&) const; + QValueList readIntListEntry (const char*) const; + QString readPathEntry (const QString&, const QString& = QString ::null ) const; + QString readPathEntry (const char*, const QString& = QString ::null ) const; + +%If ( KDE_3_1_3 - ) + QStringList readPathListEntry (const QString&, char = ',') const; + QStringList readPathListEntry (const char*, char = ',') const; +%End + + int readNumEntry (const QString&, int = 0) const; + int readNumEntry (const char*, int = 0) const; + uint readUnsignedNumEntry (const QString&, uint = 0) const; + uint readUnsignedNumEntry (const char*, uint = 0) const; + long readLongNumEntry (const QString&, long = 0) const; + long readLongNumEntry (const char*, long = 0) const; + ulong readUnsignedLongNumEntry (const QString&, ulong = 0) const; + ulong readUnsignedLongNumEntry (const char*, ulong = 0) const; + +%If ( KDE_3_2_0 - ) + longlong readNum64Entry (const QString&, longlong = 0) const; + longlong readNum64Entry (const char*, longlong = 0) const; + ulonglong readUnsignedNum64Entry (const QString&, ulonglong = 0) const; + ulonglong readUnsignedNum64Entry (const char*, ulonglong = 0) const; +%End + + double readDoubleNumEntry (const QString&, double = 0.0) const; + double readDoubleNumEntry (const char*, double = 0.0) const; + QFont readFontEntry (const QString&, const QFont* = 0) const; + QFont readFontEntry (const char*, const QFont* = 0) const; + bool readBoolEntry (const QString&, const bool = 0) const; + bool readBoolEntry (const char*, const bool = 0) const; + QRect readRectEntry (const QString&, const QRect* = 0) const; + QRect readRectEntry (const char*, const QRect* = 0) const; + QPoint readPointEntry (const QString&, const QPoint* = 0) const; + QPoint readPointEntry (const char*, const QPoint* = 0) const; + QSize readSizeEntry (const QString&, const QSize* = 0) const; + QSize readSizeEntry (const char*, const QSize* = 0) const; + QColor readColorEntry (const QString&, const QColor* = 0) const; + QColor readColorEntry (const char*, const QColor* = 0) const; + QDateTime readDateTimeEntry (const QString&, const QDateTime* = 0) const; + QDateTime readDateTimeEntry (const char*, const QDateTime* = 0) const; + QString readEntryUntranslated (const QString&, const QString& = QString ::null ) const; + QString readEntryUntranslated (const char*, const QString& = QString ::null ) const; + void writeEntry (const QString&, const QString&, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const QString&, bool = 1, bool = 0, bool = 0); + void writeEntry (const QString&, const QVariant&, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const QVariant&, bool = 1, bool = 0, bool = 0); + void writeEntry (const QString&, const QStrList&, char = ',', bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const QStrList&, char = ',', bool = 1, bool = 0, bool = 0); + void writeEntry (const QString&, const QStringList&, char = ',', bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const QStringList&, char = ',', bool = 1, bool = 0, bool = 0); + void writeEntry (const QString&, const QValueList&, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const QValueList&, bool = 1, bool = 0, bool = 0); + void writeEntry (const QString&, const char*, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const char*, bool = 1, bool = 0, bool = 0); + void writeEntry (const QString&, int, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, int, bool = 1, bool = 0, bool = 0); + +%If ( KDE_3_2_0 - ) + void writeEntry (const QString&, longlong, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, longlong, bool = 1, bool = 0, bool = 0); + void writeEntry (const QString&, ulonglong, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, ulonglong, bool = 1, bool = 0, bool = 0); +%End + +//ig void writeEntry (const QString&, double, bool = 1, bool = 0, char = 'g', int = 6, bool = 0); +//ig void writeEntry (const char*, double, bool = 1, bool = 0, char = 'g', int = 6, bool = 0); + void writeEntry (const QString&, const QFont&, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const QFont&, bool = 1, bool = 0, bool = 0); + void writeEntry (const QString&, const QColor&, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const QColor&, bool = 1, bool = 0, bool = 0); + void writeEntry (const QString&, const QDateTime&, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const QDateTime&, bool = 1, bool = 0, bool = 0); + void writeEntry (const QString&, const QRect&, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const QRect&, bool = 1, bool = 0, bool = 0); + void writeEntry (const QString&, const QPoint&, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const QPoint&, bool = 1, bool = 0, bool = 0); + void writeEntry (const QString&, const QSize&, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const QSize&, bool = 1, bool = 0, bool = 0); + void writePathEntry (const QString&, const QString&, bool = 1, bool = 0, bool = 0); + void writePathEntry (const char*, const QString&, bool = 1, bool = 0, bool = 0); + +%If ( KDE_3_1_3 - ) + void writePathEntry (const QString&, const QStringList&, char = ',', bool = 1, bool = 0, bool = 0); + void writePathEntry (const char*, const QStringList&, char = ',', bool = 1, bool = 0, bool = 0); +%End + + void deleteEntry (const QString&, bool = 0, bool = 0); + void deleteEntry (const char*, bool = 0, bool = 0); + bool deleteGroup (const QString&, bool = 1, bool = 0); + void setDollarExpansion (bool = 1); + bool isDollarExpansion () const; + virtual void rollback (bool = 1); + virtual void sync (); + bool isDirty () const; + virtual void setReadOnly (bool); + bool isReadOnly () const; + bool hasKey (const QString&) const; + virtual QMap entryMap (const QString&) const = 0; + virtual void reparseConfiguration () = 0; + bool isImmutable () const; + bool groupIsImmutable (const QString&) const; + bool entryIsImmutable (const QString&) const; + + enum ConfigState + { + NoAccess, + ReadOnly, + ReadWrite + }; + + ConfigState getConfigState () const; + +%If ( KDE_3_2_0 - ) + bool checkConfigFilesWritable (bool); + void setReadDefaults (bool); + bool readDefaults () const; + void revertToDefault (const QString&); + bool hasDefault (const QString&) const; +%End + + +protected: + void setLocale (); + virtual void setDirty (bool = 1); + virtual void parseConfigFiles (); + virtual KEntryMap internalEntryMap (const QString&) const = 0; + virtual KEntryMap internalEntryMap () const = 0; + virtual void putData (const KEntryKey&, const KEntry&, bool = 1) = 0; + virtual KEntry lookupData (const KEntryKey&) const = 0; + virtual bool internalHasGroup (const QCString&) const = 0; + +public: + void setGroup (const QCString&); + void setGroup (const char*); + bool hasGroup (const QCString&) const; + bool hasGroup (const char*) const; + bool hasKey (const char*) const; + +protected: + QCString readEntryUtf8 (const char*) const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KConfigBase + + +class KConfigGroupSaver +{ +%TypeHeaderCode +#include +%End + + +public: + KConfigGroupSaver (KConfigBase*, QString); + KConfigGroupSaver (KConfigBase*, const char*); + KConfigGroupSaver (KConfigBase*, const QCString&); + KConfigBase* config (); + +private: + KConfigGroupSaver (const KConfigGroupSaver&); + +}; // class KConfigGroupSaver + + +class KConfigGroup : KConfigBase +{ +%TypeHeaderCode +#include +%End + + +public: + KConfigGroup (KConfigBase*, const QCString&); + KConfigGroup (KConfigBase*, const QString&); + KConfigGroup (KConfigBase*, const char*); + void deleteGroup (bool = 0); + +%If ( KDE_3_4_0 - ) + bool groupIsImmutable () const; +%End + + virtual void setDirty (bool); + virtual void putData (const KEntryKey&, const KEntry&, bool = 1); + virtual KEntry lookupData (const KEntryKey&) const; + virtual void sync (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KConfigGroup + + + +%MappedType longlong +//converts a Python long +{ +%TypeHeaderCode +#if PY_MAJOR_VERSION >= 2 && PY_MINOR_VERSION >= 3 +#define LONG_LONG PY_LONG_LONG +#endif +%End +%ConvertFromTypeCode + if (!sipCpp) + Py_INCREF (Py_None); + return Py_None; + +// PyObject *LongLong; + + return PyLong_FromLongLong (*(LONG_LONG *)sipCpp); +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyLong_Check (sipPy) || PyInt_Check (sipPy); + + long long *ll = new long long; + *ll = 0; + + if (PyLong_Check (sipPy)) + *ll = PyLong_AsLongLong (sipPy); + else if (PyInt_Check (sipPy)) + *ll = (long long)PyInt_AS_LONG (sipPy); + + *sipCppPtr = ll; + + return 1; +%End + +}; + + +%MappedType ulonglong +//converts a Python long +{ +%TypeHeaderCode +#if PY_MAJOR_VERSION >= 2 && PY_MINOR_VERSION >= 3 +#define LONG_LONG PY_LONG_LONG +#endif +%End +%ConvertFromTypeCode + if (!sipCpp) + Py_INCREF (Py_None); + return Py_None; + + return PyLong_FromUnsignedLongLong (*(LONG_LONG *)sipCpp); +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyLong_Check (sipPy) || PyInt_Check (sipPy); + + unsigned long long *ul = new unsigned long long; + *ul = 0; + + if (PyLong_Check (sipPy)) + *ul = PyLong_AsUnsignedLongLong (sipPy); + else if (PyInt_Check (sipPy)) + *ul = (unsigned long long)PyInt_AS_LONG (sipPy); + + *sipCppPtr = ul; + + return 1; +%End + +}; + + diff --git a/sip/tdecore/kconfigdata.sip b/sip/tdecore/kconfigdata.sip new file mode 100644 index 0000000..b22ef03 --- /dev/null +++ b/sip/tdecore/kconfigdata.sip @@ -0,0 +1,172 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KEntry +{ +%TypeHeaderCode +#include +%End + + +public: + KEntry (); + QCString mValue; + bool bDirty; + bool bNLS; + bool bGlobal; + bool bImmutable; + bool bDeleted; + +%If ( KDE_3_1_0 - ) + bool bExpand; +%End + + +}; // class KEntry + + +class KEntryKey +{ +%TypeHeaderCode +#include +%End + + +public: + KEntryKey (const QCString& = QCString ("" ), const QCString& = QCString ("" )); + QCString mGroup; + QCString mKey; + bool bLocal; + bool bDefault; + const char* c_key; + +}; // class KEntryKey + +//ig typedef QMap::Iterator KEntryMapIterator; +//ig typedef QMap::ConstIterator KEntryMapConstIterator; +//force +KEntryMap testKEntryMap (SIP_PYOBJECT) [KEntryMap (KEntryMap)]; +%MethodCode +//takes dict | (KEntryMap) +//returns (QMap +#include +%End + +%ConvertFromTypeCode + // Convert to a Python dict + + if (!sipCpp) + return PyDict_New(); + + PyObject *dict; + + // Create the dictionary. + + if ((dict = PyDict_New()) == NULL) + return NULL; + + // Get it. + + const KEntryMap cppmap = *sipCpp; + KEntryMap::ConstIterator it; + + for (it = cppmap.begin (); it != cppmap.end (); ++it) + { + KEntryKey acpp = it.key (); + KEntry bcpp = it.data (); + PyObject *ainst; + PyObject *binst = NULL; + if (((ainst = sipConvertFromNewType(new KEntryKey(acpp), sipType_KEntryKey, NULL)) == NULL) + || ((binst = sipConvertFromNewType(new KEntry(bcpp), sipType_KEntry, NULL)) == NULL) + || (PyDict_SetItem (dict, ainst, binst) < 0)) + { + Py_XDECREF (ainst); + Py_XDECREF (binst); + Py_DECREF (dict); + return NULL; + } + } + + return dict; +%End + + +%ConvertToTypeCode + // Convert a Python dictionary to a QMap on the heap. + + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + + KEntryMap *cppmap = new KEntryMap; + + PyObject *aelem, *belem; + SIP_SSIZE_T pos = 0; + KEntryKey *acpp; + KEntry *bcpp; + + while (PyDict_Next(sipPy, &pos, &aelem, &belem)) + { + int iserr = 0; + + acpp = (KEntryKey *)sipForceConvertToType(aelem, sipType_KEntryKey, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + bcpp = (KEntry *)sipForceConvertToType(belem, sipType_KEntry, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cppmap; + return 0; + } + + cppmap->insert (*acpp, *bcpp); + } + + *sipCppPtr = cppmap; + + return 1; +%End +}; + + diff --git a/sip/tdecore/kconfigdialogmanager.sip b/sip/tdecore/kconfigdialogmanager.sip new file mode 100644 index 0000000..5c97582 --- /dev/null +++ b/sip/tdecore/kconfigdialogmanager.sip @@ -0,0 +1,64 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KConfigDialogManager : QObject +{ +%TypeHeaderCode +#include +%End + + +signals: + void settingsChanged (); + void settingsChanged (QWidget*); + void widgetModified (); + +public: + KConfigDialogManager (QWidget* /TransferThis/, KConfigSkeleton*, const char* = 0); + void addWidget (QWidget*); + bool hasChanged (); + bool isDefault (); + +public slots: + void updateSettings (); + void updateWidgets (); + void updateWidgetsDefault (); + +protected: + void init (bool); + bool parseChildren (const QWidget*, bool); + void setProperty (QWidget*, const QVariant&); + QVariant property (QWidget*); + void setupWidget (QWidget*, KConfigSkeletonItem*); + +protected: + +}; // class KConfigDialogManager + +%End + diff --git a/sip/tdecore/kconfigskeleton.sip b/sip/tdecore/kconfigskeleton.sip new file mode 100644 index 0000000..638f5f5 --- /dev/null +++ b/sip/tdecore/kconfigskeleton.sip @@ -0,0 +1,1146 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KConfigSkeletonItem +{ +%TypeHeaderCode +#include +#include +%End + + +public: + typedef QValueList List; +//ig typedef QDict Dict; +//ig typedef QDictIterator DictIterator; + KConfigSkeletonItem (const QString&, const QString&); + void setGroup (const QString&); + QString group () const; + void setKey (const QString&); + QString key () const; + void setName (const QString&); + QString name () const; + void setLabel (const QString&); + QString label () const; + void setWhatsThis (const QString&); + QString whatsThis () const; + virtual void readConfig (KConfig*) = 0; + virtual void writeConfig (KConfig*) = 0; + virtual void readDefault (KConfig*) = 0; + virtual void setProperty (const QVariant&) = 0; + virtual QVariant property () const = 0; + virtual QVariant minValue () const; + virtual QVariant maxValue () const; + virtual void setDefault () = 0; + virtual void swapDefault () = 0; + bool isImmutable () const; + +protected: + void readImmutability (KConfig*); + +//force +%ConvertToSubClassCode + if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemBool; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemColor; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemDateTime; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemDouble; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemEnum; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemFont; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemInt; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemInt64; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemIntList; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemLong; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemPassword; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemPath; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemPoint; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemProperty; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemRect; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemSize; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemString; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemStringList; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemUInt; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemUInt64; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemULong; + else + sipClass = NULL; +%End +//end + +}; // class KConfigSkeletonItem + +%End + + +%If ( KDE_3_2_0 - ) + +class KConfigSkeleton +{ +%TypeHeaderCode +#include +typedef QValueList IntList; +%End + + +public: + + class ItemPassword : KConfigSkeleton::ItemString + { + + public: + ItemPassword (const QString&, const QString&, QString&, const QString& = QString ::fromLatin1 ("" )); + + }; // class ItemPassword + + +public: + + class ItemPath : KConfigSkeleton::ItemString + { + + public: + ItemPath (const QString&, const QString&, QString&, const QString& = QString ::null ); + + }; // class ItemPath + + +public: + + class ItemEnum : KConfigSkeleton::ItemInt + { + + public: + + class Choice + { + + public: + QString name; + QString label; + QString whatsThis; + + }; // class Choice + + + public: + ItemEnum (const QString&, const QString&, int, const QValueList&, int = 0) [(const QString&, const QString&, int&, const QValueList&, int = 0)]; +%MethodCode +//takes group | (QString) | key | (QString) | reference | (int) | choices | (QValueList) |defaultValue | (int = 1) + + class PyItemEnum : public KConfigSkeleton::ItemEnum + { + public: + PyItemEnum (const QString& group, const QString& key, int& val, const QValueList& choices, int defaultValue = 0) : + KConfigSkeleton::ItemEnum(group, key, this->value, choices, defaultValue) + { + value = val; + }; + + private: + int value; + }; + + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipKConfigSkeleton_ItemEnum *) new PyItemEnum (*a0, *a1, a2, *a3, a4); + Py_END_ALLOW_THREADS +%End + + QValueList choices () const; + void readConfig (KConfig*); + void writeConfig (KConfig*); + + public: +//force + void setValue (const int&); + int value (); + virtual void setDefaultValue (const int&); + virtual void setDefault (); + void swapDefault (); +//end + + }; // class ItemEnum + + +public: + +%If ( KDE_3_4_0 - ) + + class ItemPathList : KConfigSkeleton::ItemStringList + { + + public: + ItemPathList (const QString&, const QString&, QStringList&, const QStringList& = QStringList ()); + void readConfig (KConfig*); + void writeConfig (KConfig*); + + }; // class ItemPathList + + +public: +%End + + +public: + KConfigSkeleton (const QString& = QString ::null ); + KConfigSkeleton (KSharedConfig::Ptr); + void setDefaults (); + void readConfig (); + void writeConfig (); + void setCurrentGroup (const QString&); + QString currentGroup (); + void addItem (KConfigSkeletonItem*, const QString& = QString ::null ); + ItemString* addItemString (const QString&, QString&, const QString& = QString ::fromLatin1 ("" ), const QString& = QString ::null ); + KConfigSkeleton::ItemPassword* addItemPassword (const QString&, QString&, const QString& = QString ::fromLatin1 ("" ), const QString& = QString ::null ); + KConfigSkeleton::ItemPath* addItemPath (const QString&, QString&, const QString& = QString ::fromLatin1 ("" ), const QString& = QString ::null ); + ItemProperty* addItemProperty (const QString&, QVariant&, const QVariant& = QVariant (), const QString& = QString ::null ); + ItemBool* addItemBool (const QString&, bool&, bool = 0, const QString& = QString ::null ); +%MethodCode +//takes name | (QString) | value | (bool) | defaultValue | (bool) | key | (QString = QString::null) + + class PyItemBool : public KConfigSkeleton::ItemBool + { + public: + PyItemBool (const QString &group, const QString &key, bool val, bool defaultValue = 0) : + KConfigSkeleton::ItemBool (group, key, this->value, defaultValue) + { + value = val; + } + + private: + bool value; + }; + + Py_BEGIN_ALLOW_THREADS + sipRes = new PyItemBool (sipCpp->currentGroup(), a3->isNull() ? *a0 : *a3, a1, a2); + sipCpp->addItem(sipRes, *a0); + Py_END_ALLOW_THREADS +%End + + ItemInt* addItemInt (const QString&, int&, int = 0, const QString& = QString ::null ); +%MethodCode +//takes name | (QString) | value | (int) | defaultValue | (int) | key | (QString = QString::null) + + class PyItemInt : public KConfigSkeleton::ItemInt + { + public: + PyItemInt(const QString &group, const QString &key, int val, int defaultValue=0) : + KConfigSkeleton::ItemInt (group, key, this->value, defaultValue) + { + value = val; + } + + private: + int value; + }; + + Py_BEGIN_ALLOW_THREADS + sipRes = new PyItemInt(sipCpp->currentGroup(), a3->isNull() ? *a0 : *a3, a1, a2); + sipCpp->addItem(sipRes, *a0); + Py_END_ALLOW_THREADS +%End + + ItemUInt* addItemUInt (const QString&, uint&, uint = 0, const QString& = QString ::null ); +%MethodCode +//takes name | (QString) | value | (uint) | defaultValue | (uint) | key | (QString = QString::null) + + class PyItemUInt : public KConfigSkeleton::ItemUInt + { + public: + PyItemUInt(const QString &group, const QString &key, uint val, uint defaultValue = 0) : + KConfigSkeleton::ItemUInt (group, key, this->value, defaultValue) + { + value = val; + } + + private: + uint value; + }; + + Py_BEGIN_ALLOW_THREADS + sipRes = new PyItemUInt(sipCpp->currentGroup(), a3->isNull() ? *a0 : *a3, a1, a2); + sipCpp->addItem(sipRes, *a0); + Py_END_ALLOW_THREADS +%End + + ItemLong* addItemLong (const QString&, long&, long = 0, const QString& = QString ::null ); +%MethodCode +//takes name | (QString) | value | (long) | defaultValue | (long) | key | (QString = QString::null) + + class PyItemLong : public KConfigSkeleton::ItemLong + { + public: + PyItemLong(const QString &group, const QString &key, long val, long defaultValue=0) : + KConfigSkeleton::ItemLong (group, key, this->value, defaultValue) + { + value = val; + } + + private: + long value; + }; + + Py_BEGIN_ALLOW_THREADS + sipRes = new PyItemLong(sipCpp->currentGroup(), a3->isNull() ? *a0 : *a3, a1, a2); + sipCpp->addItem(sipRes, *a0); + Py_END_ALLOW_THREADS +%End + + ItemULong* addItemULong (const QString&, ulong&, ulong = 0, const QString& = QString ::null ); +%MethodCode +//takes name | (QString) | value | (ulong) | defaultValue | (ulong) | key | (QString = QString::null) + + class PyItemULong : public KConfigSkeleton::ItemULong + { + public: + PyItemULong(const QString &group, const QString &key, ulong val, ulong defaultValue = 0) : + KConfigSkeleton::ItemULong (group, key, this->value, defaultValue) + { + value = val; + } + + private: + ulong value; + }; + + Py_BEGIN_ALLOW_THREADS + sipRes = new PyItemULong(sipCpp->currentGroup(), a3->isNull() ? *a0 : *a3, a1, a2); + sipCpp->addItem(sipRes, *a0); + Py_END_ALLOW_THREADS +%End + + KConfigSkeleton::ItemInt64* addItemInt64 (const QString&, longlong&, longlong = 0, const QString& = QString ::null ); + KConfigSkeleton::ItemUInt64* addItemUInt64 (const QString&, ulonglong&, ulonglong = 0, const QString& = QString ::null ); + ItemDouble* addItemDouble (const QString&, double&, double = 0.0, const QString& = QString ::null ); +%MethodCode +//takes name | (QString) | value | (double) | defaultValue | (double) | key | (QString = QString::null) + + class PyItemDouble : public KConfigSkeleton::ItemDouble + { + public: + PyItemDouble(const QString &group, const QString &key, double val, double defaultValue=0.0) : + KConfigSkeleton::ItemDouble(group, key, this->value, defaultValue) + { + value = val; + }; + + private: + double value; + }; + + Py_BEGIN_ALLOW_THREADS + sipRes = new PyItemDouble(sipCpp->currentGroup(), a3->isNull() ? *a0 : *a3, a1, a2); + sipCpp->addItem(sipRes, *a0); + Py_END_ALLOW_THREADS +%End + + ItemColor* addItemColor (const QString&, QColor&, const QColor& = QColor (128 ,128 ,128 ), const QString& = QString ::null ); + ItemFont* addItemFont (const QString&, QFont&, const QFont& = KGlobalSettings ::generalFont (), const QString& = QString ::null ); + ItemRect* addItemRect (const QString&, QRect&, const QRect& = QRect (), const QString& = QString ::null ); + ItemPoint* addItemPoint (const QString&, QPoint&, const QPoint& = QPoint (), const QString& = QString ::null ); + ItemSize* addItemSize (const QString&, QSize&, const QSize& = QSize (), const QString& = QString ::null ); + ItemDateTime* addItemDateTime (const QString&, QDateTime&, const QDateTime& = QDateTime (), const QString& = QString ::null ); + KConfigSkeleton::ItemStringList* addItemStringList (const QString&, QStringList&, const QStringList& = QStringList (), const QString& = QString ::null ); + KConfigSkeleton::ItemIntList* addItemIntList (const QString&, QValueList&, const QValueList& = IntList (), const QString& = QString ::null ); +%MethodCode +//returns a Python list of int +//takes name | (QString) | reference | (a Python list of int) | defaultValue | (a Python list of int = []) | key | (QString = QString::null) + if (a2 == NULL) *(QValueList *)a2 = QValueList(); + Py_BEGIN_ALLOW_THREADS + sipRes = sipCpp->addItemIntList (*a0, *a1, *a2, *a3); + Py_END_ALLOW_THREADS +%End + + KConfig* config () const; + SIP_PYLIST items () const [KConfigSkeletonItem::List ()]; +%MethodCode +//returns (a Python list of Items) + + KConfigSkeletonItem::List list; + + Py_BEGIN_ALLOW_THREADS + list = sipCpp->items (); + Py_END_ALLOW_THREADS + + int n = list.count (); + if (n > 0) + for (int i = 0; i < n; i++) + PyList_Append (sipRes, sipConvertFromInstance (&(list [i]), sipClass_KConfigSkeletonItem, NULL)); +%End + + bool isImmutable (const QString&); + KConfigSkeletonItem* findItem (const QString&); + bool useDefaults (bool); + +protected: + virtual void usrUseDefaults (bool); + virtual void usrSetDefaults (); + virtual void usrReadConfig (); + virtual void usrWriteConfig (); + +public: +//force + + class ItemString : KConfigSkeletonItem + { + + public: + + enum Type + { + Normal, + Password, + Path + }; + + ItemString (const QString&, const QString&, QString&, const QString& = QString ::fromLatin1 ("" ), KConfigSkeleton::ItemString::Type = KConfigSkeleton ::ItemString ::Normal ); + void setValue (const QString&); + QString& value (); + virtual void setDefaultValue (const QString&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (KConfig*); + void readConfig (KConfig*); + void setProperty (const QVariant&); + QVariant property () const; + + }; // class ItemString + + +public: +//end + +public: +//force + + class ItemProperty : KConfigSkeletonItem + { + + public: + ItemProperty (const QString&, const QString&, QVariant, QVariant = 0) [(const QString&, const QString&, QVariant&, QVariant = 0)]; +%MethodCode +//takes group | (QString) | key | (QString) | reference | (QVariant) | defaultValue | (QVariant = 0) + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipKConfigSkeleton_ItemProperty *) new KConfigSkeleton::ItemProperty (*a0, *a1, *a2, *a3); + Py_END_ALLOW_THREADS +%End + + void setValue (const QVariant&); + QVariant& value (); + virtual void setDefaultValue (const QVariant&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (KConfig*); + void readConfig (KConfig*); + void setProperty (const QVariant&); + QVariant property () const; + + }; // class ItemProperty + + +public: +//end + +public: +//force + + class ItemBool : KConfigSkeletonItem + { + + public: + ItemBool (const QString&, const QString&, bool, bool = 1) [(const QString&, const QString&, bool&, bool = 1)]; +%MethodCode +//takes group | (QString) | key | (QString) | reference | (bool) | defaultValue | (bool = 1) + + class PyItemBool : public KConfigSkeleton::ItemBool + { + public: + PyItemBool(const QString &group, const QString &key, bool val, bool defaultValue = false) : + KConfigSkeleton::ItemBool(group, key, this->value, defaultValue) + { + value = val; + }; + + private: + bool value; + }; + + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipKConfigSkeleton_ItemBool *) new PyItemBool (*a0, *a1, a2); + Py_END_ALLOW_THREADS +%End + + void setValue (const bool&); + bool value (); + virtual void setDefaultValue (const bool&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (KConfig*); + void readConfig (KConfig*); + void setProperty (const QVariant&); + QVariant property () const; + + }; // class ItemBool + + +public: +//end + +public: +//force + + class ItemInt : KConfigSkeletonItem + { + + public: + ItemInt (const QString&, const QString&, int, int = 1) [(const QString&, const QString&, int&, int = 1)]; +%MethodCode +//takes group | (QString) | key | (QString) | reference | (int) | defaultValue | (int = 1) + + class PyItemInt : public KConfigSkeleton::ItemInt + { + public: + PyItemInt(const QString &group, const QString &key, int val, int defaultValue = 0) : + KConfigSkeleton::ItemInt(group, key, this->value, defaultValue) + { + value = val; + }; + + private: + int value; + }; + + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipKConfigSkeleton_ItemInt *) new PyItemInt (*a0, *a1, a2); + Py_END_ALLOW_THREADS +%End + + void setValue (const int&); + int value (); + virtual void setDefaultValue (const int&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (KConfig*); + void readConfig (KConfig*); + void setProperty (const QVariant&); + QVariant property () const; + QVariant minValue () const; + QVariant maxValue () const; + void setMinValue (int); + void setMaxValue (int); + + }; // class ItemInt + + +public: +//end + +public: +//force + + class ItemInt64 : KConfigSkeletonItem + { + + public: + ItemInt64 (const QString&, const QString&, longlong&, longlong = 0); +%MethodCode +//takes group | (QString) | key | (QString) | reference | (longlong) | defaultValue | (longlong = 0) + + class PyItemInt64 : public KConfigSkeleton::ItemInt64 + { + public: + PyItemInt64(const QString &group, const QString &key, Q_INT64 val, Q_INT64 defaultValue=0) : + KConfigSkeleton::ItemInt64(group, key, this->value, defaultValue) + { + value = val; + }; + + private: + Q_INT64 value; + }; + + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipKConfigSkeleton_ItemInt64 *) new PyItemInt64 (*a0, *a1, *a2, *a3); + Py_END_ALLOW_THREADS +%End + + void setValue (const longlong&); + longlong& value (); + virtual void setDefaultValue (const longlong&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (KConfig*); + void readConfig (KConfig*); + void setProperty (const QVariant&); + QVariant property () const; + QVariant minValue () const; + QVariant maxValue () const; + void setMinValue (longlong); + void setMaxValue (longlong); + + }; // class ItemInt64 + + +public: +//end + +public: +//force + + class ItemUInt : KConfigSkeletonItem + { + + public: + ItemUInt (const QString&, const QString&, uint, uint = 0) [(const QString&, const QString&, uint&, uint = 0)]; +%MethodCode +//takes group | (QString) | key | (QString) | reference | (uint) | defaultValue | (uint = 1) + + class PyItemUInt : public KConfigSkeleton::ItemUInt + { + public: + PyItemUInt(const QString &group, const QString &key, uint val, uint defaultValue = 0) : + KConfigSkeleton::ItemUInt(group, key, this->value, defaultValue) + { + value = val; + }; + + private: + uint value; + }; + + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipKConfigSkeleton_ItemUInt *) new PyItemUInt (*a0, *a1, a2); + Py_END_ALLOW_THREADS +%End + + void setValue (const uint&); + uint value (); + virtual void setDefaultValue (const uint&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (KConfig*); + void readConfig (KConfig*); + void setProperty (const QVariant&); + QVariant property () const; + QVariant minValue () const; + QVariant maxValue () const; + void setMinValue (uint); + void setMaxValue (uint); + + }; // class ItemUInt + + +public: + +public: + + class ItemLong : KConfigSkeletonItem + { + + public: + ItemLong (const QString&, const QString&, long&, long = 0) [(const QString&, const QString&, long&, long = 0)]; +%MethodCode +//takes group | (QString) | key | (QString) | reference | (long) | defaultValue | (long = 1) + + class PyItemLong : public KConfigSkeleton::ItemLong + { + public: + PyItemLong(const QString &group, const QString &key, long val, long defaultValue = 0) : + KConfigSkeleton::ItemLong(group, key, this->value, defaultValue) + { + value = val; + }; + + private: + long value; + }; + + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipKConfigSkeleton_ItemLong *) new PyItemLong (*a0, *a1, a2); + Py_END_ALLOW_THREADS +%End + + void setValue (const long&); + long value (); + virtual void setDefaultValue (const long&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (KConfig*); + void readConfig (KConfig*); + void setProperty (const QVariant&); + QVariant property () const; + QVariant minValue () const; + QVariant maxValue () const; + void setMinValue (long); + void setMaxValue (long); + + }; // class ItemLong + + +public: +//end + +public: +//force + + class ItemULong : KConfigSkeletonItem + { + + public: + ItemULong (const QString&, const QString&, ulong, ulong = 0) [(const QString&, const QString&, ulong&, ulong = 0)]; +%MethodCode +//takes group | (QString) | key | (QString) | reference | (ulong) | defaultValue | (ulong = 1) + + class PyItemULong : public KConfigSkeleton::ItemULong + { + public: + PyItemULong(const QString &group, const QString &key, ulong val, ulong defaultValue = 0) : + KConfigSkeleton::ItemULong(group, key, this->value, defaultValue) + { + value = val; + }; + + private: + ulong value; + }; + + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipKConfigSkeleton_ItemULong *) new PyItemULong (*a0, *a1, a2); + Py_END_ALLOW_THREADS +%End + + void setValue (const ulong&); + ulong value (); + virtual void setDefaultValue (const ulong&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (KConfig*); + void readConfig (KConfig*); + void setProperty (const QVariant&); + QVariant property () const; + QVariant minValue () const; + QVariant maxValue () const; + void setMinValue (ulong); + void setMaxValue (ulong); + + }; // class ItemULong + + +public: +//end + +public: +//force + + class ItemUInt64 : KConfigSkeletonItem + { + + public: + ItemUInt64 (const QString&, const QString&, ulonglong&, ulonglong = 0); +%MethodCode +//takes group | (QString) | key | (QString) | reference | (ulonglong) | defaultValue | (ulonglong = 0) + + class PyItemUInt64 : public KConfigSkeleton::ItemUInt64 + { + public: + PyItemUInt64(const QString &group, const QString &key, Q_UINT64 val, Q_UINT64 defaultValue = 0) : + KConfigSkeleton::ItemUInt64(group, key, this->value, defaultValue) + { + value = val; + }; + + private: + Q_UINT64 value; + }; + + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipKConfigSkeleton_ItemUInt64 *) new PyItemUInt64 (*a0, *a1, *a2, *a3); + Py_END_ALLOW_THREADS +%End + + void setValue (const ulonglong&); + ulonglong value (); + virtual void setDefaultValue (const ulonglong&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (KConfig*); + void readConfig (KConfig*); + void setProperty (const QVariant&); + QVariant property () const; + QVariant minValue () const; + QVariant maxValue () const; + void setMinValue (ulonglong); + void setMaxValue (ulonglong); + + }; // class ItemUInt64 + + +public: +//end + +public: +//force + + class ItemDouble : KConfigSkeletonItem + { + + public: + ItemDouble (const QString&, const QString&, double, double = 0) [(const QString&, const QString&, double&, double = 0)]; +%MethodCode +//takes group | (QString) | key | (QString) | reference | (double) | defaultValue | (double = 0) + class PyItemDouble : public KConfigSkeleton::ItemDouble + { + public: + PyItemDouble(const QString &group, const QString &key, double val, double defaultValue=0.0) : + KConfigSkeleton::ItemDouble(group, key, this->value, defaultValue) + { + value = val; + }; + + private: + double value; + }; + + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipKConfigSkeleton_ItemDouble *) new PyItemDouble (*a0, *a1, a2, a3); + Py_END_ALLOW_THREADS +%End + + void setValue (const double&); + double value (); + virtual void setDefaultValue (const double&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (KConfig*); + void readConfig (KConfig*); + void setProperty (const QVariant&); + QVariant property () const; + QVariant minValue () const; + QVariant maxValue () const; + void setMinValue (double); + void setMaxValue (double); + + }; // class ItemDouble + + +public: +//end + +public: +//force + + class ItemColor : KConfigSkeletonItem + { + + public: + ItemColor (const QString&, const QString&, QColor&, const QColor& = QColor (128 ,128 ,128 )); + void setValue (const QColor&); + QColor& value (); + virtual void setDefaultValue (const QColor&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (KConfig*); + void readConfig (KConfig*); + void setProperty (const QVariant&); + QVariant property () const; + + }; // class ItemColor + + +public: +//end + +public: +//force + + class ItemFont : KConfigSkeletonItem + { + + public: + ItemFont (const QString&, const QString&, QFont&, const QFont& = KGlobalSettings ::generalFont ()); + void setValue (const QFont&); + QFont& value (); + virtual void setDefaultValue (const QFont&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (KConfig*); + void readConfig (KConfig*); + void setProperty (const QVariant&); + QVariant property () const; + + }; // class ItemFont + + +public: +//end + +public: +//force + + class ItemRect : KConfigSkeletonItem + { + + public: + ItemRect (const QString&, const QString&, QRect&, const QRect& = QRect ()); + void setValue (const QRect&); + QRect& value (); + virtual void setDefaultValue (const QRect&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (KConfig*); + void readConfig (KConfig*); + void setProperty (const QVariant&); + QVariant property () const; + + }; // class ItemRect + + +public: +//end + +public: +//force + + class ItemPoint : KConfigSkeletonItem + { + + public: + ItemPoint (const QString&, const QString&, QPoint&, const QPoint& = QPoint ()); + void setValue (const QPoint&); + QPoint& value (); + virtual void setDefaultValue (const QPoint&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (KConfig*); + void readConfig (KConfig*); + void setProperty (const QVariant&); + QVariant property () const; + + }; // class ItemPoint + + +public: +//end + +public: +//force + + class ItemSize : KConfigSkeletonItem + { + + public: + ItemSize (const QString&, const QString&, QSize&, const QSize& = QSize ()); + void setValue (const QSize&); + QSize& value (); + virtual void setDefaultValue (const QSize&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (KConfig*); + void readConfig (KConfig*); + void setProperty (const QVariant&); + QVariant property () const; + + }; // class ItemSize + + +public: +//end + +public: +//force + + class ItemDateTime : KConfigSkeletonItem + { + + public: + ItemDateTime (const QString&, const QString&, QDateTime&, const QDateTime& = QDateTime ()); + void setValue (const QDateTime&); + QDateTime& value (); + virtual void setDefaultValue (const QDateTime&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (KConfig*); + void readConfig (KConfig*); + void setProperty (const QVariant&); + QVariant property () const; + + }; // class ItemDateTime + + +public: +//end + +public: +//force + + class ItemStringList : KConfigSkeletonItem + { + + public: + ItemStringList (const QString&, const QString&, QStringList&, const QStringList& = QStringList ()); + void setValue (const QStringList&); + QStringList& value (); + virtual void setDefaultValue (const QStringList&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (KConfig*); + void readConfig (KConfig*); + void setProperty (const QVariant&); + QVariant property () const; + + }; // class ItemStringList + + +public: +//end + +public: +//force + + class ItemIntList : KConfigSkeletonItem + { + + public: + ItemIntList (const QString&, const QString&, QValueList&, const QValueList& = IntList ()); +%MethodCode +//takes group | (QString) | key | (QString) | reference | (a Python list of int) | defaultValue | (a Python list of int = 0) + if (a3 == NULL) *(QValueList *)a3 = QValueList(); + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipKConfigSkeleton_ItemIntList *) new KConfigSkeleton::ItemIntList (*a0, *a1, *a2, *a3); + Py_END_ALLOW_THREADS +%End + + void setValue (const QValueList&); + QValueList& value (); + virtual void setDefaultValue (const QValueList&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (KConfig*); + void readConfig (KConfig*); + void setProperty (const QVariant&); + QVariant property () const; + + }; // class ItemIntList + + +public: +//end + +}; // class KConfigSkeleton + +%End + + + +%If (KDE_3_2_0 - ) +%MappedType QValueList +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList *cpplist = (QValueList *)sipCpp; + PyObject *inst; + + // Get it. + QValueList::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromNewType(new KConfigSkeleton::ItemEnum::Choice(*it), sipType_KConfigSkeleton_ItemEnum_Choice, NULL)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList *cpplist = new QValueList; + + PyObject *elem; + KConfigSkeleton::ItemEnum::Choice *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KConfigSkeleton::ItemEnum::Choice *)sipForceConvertToType(elem, sipType_KConfigSkeleton_ItemEnum_Choice, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (*cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; +%End + + diff --git a/sip/tdecore/kcrash.sip b/sip/tdecore/kcrash.sip new file mode 100644 index 0000000..ebf2252 --- /dev/null +++ b/sip/tdecore/kcrash.sip @@ -0,0 +1,51 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KCrash +{ +%TypeHeaderCode +#include +%End + + +public: + static void defaultCrashHandler (int); +//ig static void setCrashHandler (HandlerType = defaultCrashHandler ); +//ig static HandlerType crashHandler (); +//ig static void setEmergencySaveFunction (HandlerType = 0 ); +//ig static HandlerType emergencySaveFunction (); + +%If ( KDE_3_2_0 - ) + static void setSafer (bool); +%End + + static void setApplicationPath (QString); + static void setApplicationName (QString); + +protected: + +}; // class KCrash + diff --git a/sip/tdecore/kdcoppropertyproxy.sip b/sip/tdecore/kdcoppropertyproxy.sip new file mode 100644 index 0000000..b6da6be --- /dev/null +++ b/sip/tdecore/kdcoppropertyproxy.sip @@ -0,0 +1,44 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDCOPPropertyProxy +{ +%TypeHeaderCode +#include +%End + + +public: + KDCOPPropertyProxy (QObject*); + bool isPropertyRequest (const QCString&); + bool processPropertyRequest (const QCString&, const QByteArray&, QCString&, QByteArray&); + QValueList functions (); + static QValueList functions (QObject*); + static bool isPropertyRequest (const QCString&, QObject*); + static bool processPropertyRequest (const QCString&, const QByteArray&, QCString&, QByteArray&, QObject*); + +}; // class KDCOPPropertyProxy + diff --git a/sip/tdecore/kdebug.sip b/sip/tdecore/kdebug.sip new file mode 100644 index 0000000..19d8ddd --- /dev/null +++ b/sip/tdecore/kdebug.sip @@ -0,0 +1,67 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class kdbgstream +{ +%TypeHeaderCode +#include +%End + + +public: + kdbgstream (uint, uint, bool = 1); + kdbgstream (const char*, uint, uint, bool = 1); + void flush (); +//ig kdbgstream& form (const char*, ...); + +}; // class kdbgstream + + +class kndbgstream +{ +%TypeHeaderCode +#include +%End + + +public: + kndbgstream (); + void flush (); +//ig kndbgstream& form (const char*, ...); + +}; // class kndbgstream + +//ig void kDebugFatal (const char*, ...); +//ig void kDebugFatal (ushort, const char*, ...); +kdbgstream& perror (kdbgstream&); +kdbgstream kdDebug (int = 0); +kdbgstream kdDebug (bool, int = 0); +kdbgstream kdWarning (int = 0); +kdbgstream kdWarning (bool, int = 0); +kdbgstream kdError (int = 0); +kdbgstream kdError (bool, int = 0); +kdbgstream kdFatal (int = 0); +kdbgstream kdFatal (bool, int = 0); diff --git a/sip/tdecore/kdesktopfile.sip b/sip/tdecore/kdesktopfile.sip new file mode 100644 index 0000000..47e83fd --- /dev/null +++ b/sip/tdecore/kdesktopfile.sip @@ -0,0 +1,85 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDesktopFile : KConfig +{ +%TypeHeaderCode +#include +%End + + +public: + KDesktopFile (const QString&, bool = 0, const char* = "apps"); + static bool isDesktopFile (const QString&); + +%If ( KDE_3_1_0 - ) + static bool isAuthorizedDesktopFile (const QString&); + +%If ( KDE_3_2_0 - ) + static QString locateLocal (const QString&); +%End + +%End + + QString readType () const; + QString readIcon () const; + QString readName () const; + QString readComment () const; + QString readGenericName () const; + QString readPath () const; + QString readDevice () const; + QString readURL () const; + QStringList readActions () const; + void setActionGroup (const QString&); + bool hasActionGroup (const QString&) const; + bool hasLinkType () const; + bool hasApplicationType () const; + bool hasMimeTypeType () const; + bool hasDeviceType () const; + bool tryExec () const; + QString fileName () const; + QString resource () const; + +%If ( KDE_3_1_0 - ) + QString readDocPath () const; +%End + + QStringList sortOrder () const; + +%If ( KDE_3_2_0 - ) + KDesktopFile* copyTo (const QString&) const; +%End + + QString filename () const; + +private: + KDesktopFile (const KDesktopFile&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDesktopFile + diff --git a/sip/tdecore/kdesktopwidget.sip b/sip/tdecore/kdesktopwidget.sip new file mode 100644 index 0000000..cf97c1e --- /dev/null +++ b/sip/tdecore/kdesktopwidget.sip @@ -0,0 +1,45 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDesktopWidget : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KDesktopWidget (); + bool isVirtualDesktop () const; + int numScreens () const; + int primaryScreen () const; + int screenNumber (QWidget* = 0) const; + int screenNumber (const QPoint&) const; + QWidget* screen (int = -1); + const QRect& screenGeometry (int = -1) const; + +}; // class KDesktopWidget + diff --git a/sip/tdecore/kdestyle.sip b/sip/tdecore/kdestyle.sip new file mode 100644 index 0000000..2456913 --- /dev/null +++ b/sip/tdecore/kdestyle.sip @@ -0,0 +1,108 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDEAniMenu : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KDEAniMenu (QPopupMenu*); + +protected: + void scrollIn (); + +protected slots: + void slotDestroyFake (); + void slotFinished (); + +}; // class KDEAniMenu + + +class KDEStyle : KStyle +{ +%TypeHeaderCode +#include +%End + + +public: + KDEStyle (); + virtual void polish (QWidget*); + virtual void unPolish (QWidget*); + virtual void polish (QPalette&); + void drawButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, const QBrush* = 0); + void drawButtonMask (QPainter*, int, int, int, int); + void drawComboButtonMask (QPainter*, int, int, int, int); + QRect buttonRect (int, int, int, int); + void drawBevelButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, const QBrush* = 0); + void drawPushButton (QPushButton*, QPainter*); + virtual void drawPushButtonLabel (QPushButton*, QPainter*); + void drawScrollBarControls (QPainter*, const QScrollBar*, int, uint, uint); + QStyle::ScrollControl scrollBarPointOver (const QScrollBar*, int, const QPoint&); + void scrollBarMetrics (const QScrollBar*, int&/Out/, int&/Out/, int&/Out/, int&/Out/); + QSize indicatorSize () const; + void drawIndicator (QPainter*, int, int, int, int, const QColorGroup&, int, bool = 0, bool = 1); + void drawIndicatorMask (QPainter*, int, int, int, int, int); + QSize exclusiveIndicatorSize () const; + void drawExclusiveIndicator (QPainter*, int, int, int, int, const QColorGroup&, bool, bool = 0, bool = 1); + void drawExclusiveIndicatorMask (QPainter*, int, int, int, int, bool); + void drawComboButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, bool = 0, bool = 1, const QBrush* = 0); + QRect comboButtonRect (int, int, int, int); + QRect comboButtonFocusRect (int, int, int, int); + int sliderLength () const; + void drawArrow (QPainter*, Qt::ArrowType, bool, int, int, int, int, const QColorGroup&, bool = 1, const QBrush* = 0); + void drawSlider (QPainter*, int, int, int, int, const QColorGroup&, Orientation, bool, bool); + void drawSliderMask (QPainter*, int, int, int, int, Orientation, bool, bool); + void drawKToolBar (QPainter*, int, int, int, int, const QColorGroup&, KToolBarPos, QBrush* = 0); + void drawKBarHandle (QPainter*, int, int, int, int, const QColorGroup&, KToolBarPos, QBrush* = 0); + void drawKMenuBar (QPainter*, int, int, int, int, const QColorGroup&, bool, QBrush* = 0); + void drawKToolBarButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, bool = 1, bool = 1, bool = 0, KToolButtonType = Icon, const QString& = QString::null, const QPixmap* = 0, QFont* = 0, QWidget* = 0); +//ig void drawKMenuItem (QPainter*, int, int, int, int, const QColorGroup&, bool, QMenuItem*, QBrush* = 0); +//ig void drawPopupMenuItem (QPainter*, bool, int, int, QMenuItem*, const QPalette&, bool, bool, int, int, int, int); +//ig int popupMenuItemHeight (bool, QMenuItem*, const QFontMetrics&); + void drawKProgressBlock (QPainter*, int, int, int, int, const QColorGroup&, QBrush*); + void drawFocusRect (QPainter*, const QRect&, const QColorGroup&, const QColor*, bool); + int defaultFrameWidth () const; + void polishPopupMenu (QPopupMenu*); + void drawTab (QPainter*, const QTabBar*, QTab*, bool); + void drawTabMask (QPainter*, const QTabBar*, QTab*, bool); + void tabbarMetrics (const QTabBar*, int&/Out/, int&/Out/, int&/Out/); + void drawSplitter (QPainter*, int, int, int, int, const QColorGroup&, Orientation); + int splitterWidth () const; + void drawPanel (QPainter*, int, int, int, int, const QColorGroup&, bool, int, const QBrush*); + void drawKickerAppletHandle (QPainter*, int, int, int, int, const QColorGroup&, QBrush*); + bool eventFilter (QObject*, QEvent*); + +protected: + void drawSBDeco (QPainter*, const QRect&, const QColorGroup&, bool); + void drawSBButton (QPainter*, const QRect&, const QColorGroup&, bool = 0); + void kColorBitmaps (QPainter*, const QColorGroup&, int, int, QBitmap* = 0, QBitmap* = 0, QBitmap* = 0, QBitmap* = 0, QBitmap* = 0, QBitmap* = 0); + +}; // class KDEStyle + diff --git a/sip/tdecore/kdeversion.sip b/sip/tdecore/kdeversion.sip new file mode 100644 index 0000000..0f71d17 --- /dev/null +++ b/sip/tdecore/kdeversion.sip @@ -0,0 +1,45 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%ModuleHeaderCode +#include +%End + + +%If ( KDE_3_1_4 - ) +namespace KDE +{ + +%If ( KDE_3_2_0 - ) +uint version (); +%End + +uint versionMajor (); +uint versionMinor (); +uint versionRelease (); +const char* versionString (); +}; // namespace KDE + +%End diff --git a/sip/tdecore/kglobal.sip b/sip/tdecore/kglobal.sip new file mode 100644 index 0000000..b8947e0 --- /dev/null +++ b/sip/tdecore/kglobal.sip @@ -0,0 +1,65 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KGlobal +{ +%TypeHeaderCode +#include +%End + + +public: + static KInstance* instance (); + static KStandardDirs* dirs (); + static KConfig* config (); + +%If ( KDE_3_2_0 - ) + static KSharedConfig* sharedConfig (); +%End + + static KIconLoader* iconLoader (); + static KLocale* locale (); + static KCharsets* charsets (); + static const QString& staticQString (const char*); + static const QString& staticQString (const QString&); + static void registerStaticDeleter (KStaticDeleterBase*); + static void unregisterStaticDeleter (KStaticDeleterBase*); + static void deleteStaticDeleters (); +//ig KStringDict* _stringDict; +//ig KInstance* _instance; +//ig KLocale* _locale; +//ig KCharsets* _charsets; +//ig KStaticDeleterList* _staticDeleters; + static void setActiveInstance (KInstance*); + static KInstance* activeInstance (); +//ig KInstance* _activeInstance; + +}; // class KGlobal + + +%If ( KDE_3_4_0 - ) +int kasciistricmp (const char*, const char*); +%End diff --git a/sip/tdecore/kglobalaccel.sip b/sip/tdecore/kglobalaccel.sip new file mode 100644 index 0000000..1e757f5 --- /dev/null +++ b/sip/tdecore/kglobalaccel.sip @@ -0,0 +1,87 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KGlobalAccel : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KGlobalAccel (QObject*, const char* = 0); + bool isEnabled () const; + void setEnabled (bool); + KAccelAction* insert (const QString&, const QString&, const QString&, const KShortcut&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1, bool = 1); + +%If ( KDE_3_1_0 - ) + bool remove (const QString&); +%End + + KAccelAction* insert (const QString&, const QString&); + bool updateConnections (); + const KShortcut& shortcut (const QString&) const; + bool setShortcut (const QString&, const KShortcut&); + bool setSlot (const QString&, SIP_RXOBJ_CON, SIP_SLOT_CON ()); + +%If ( KDE_3_4_0 - ) + bool setActionEnabled (const QString&, bool); +%End + + +%If ( KDE_3_3_0 - ) + QString label (const QString&) const; +%End + + const QString& configGroup () const; + void setConfigGroup (const QString&); + bool readSettings (KConfigBase* = 0); + bool writeSettings (KConfigBase* = 0) const; + +%If ( KDE_3_1_0 - ) + bool writeSettings (KConfigBase*, bool) const; +%End + + static bool useFourModifierKeys (); + +%If ( KDE_3_5_0 - ) + static void blockShortcuts (bool); + void disableBlocking (bool); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_2_0 ) +//ig bool setEnabled (const QString&, bool); +%End + + +}; // class KGlobalAccel + diff --git a/sip/tdecore/kglobalsettings.sip b/sip/tdecore/kglobalsettings.sip new file mode 100644 index 0000000..08386c6 --- /dev/null +++ b/sip/tdecore/kglobalsettings.sip @@ -0,0 +1,157 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KGlobalSettings +{ +%TypeHeaderCode +#include +%End + + +public: + static int dndEventDelay (); + static bool singleClick (); + +%If ( KDE_3_1_0 - ) + + enum TearOffHandle + { + Disable, + ApplicationLevel, + Enable + }; + + static KGlobalSettings::TearOffHandle insertTearOffHandle (); +%End + + static bool changeCursorOverIcon (); + static bool visualActivate (); + static uint visualActivateSpeed (); + static int autoSelectDelay (); + static int contextMenuKey (); + static bool showContextMenusOnPress (); + + enum Completion + { + CompletionNone, + CompletionAuto, + CompletionMan, + CompletionShell, + CompletionPopup, + CompletionPopupAuto + }; + + static Completion completionMode (); + + class KMouseSettings + { + + public: + + enum + { + RightHanded, + LeftHanded + }; + + int handed; + + }; // class KMouseSettings + + +public: + static KGlobalSettings::KMouseSettings& mouseSettings (); + static QString desktopPath (); + static QString autostartPath (); + static QString trashPath (); + static QString documentPath (); + static QColor toolBarHighlightColor (); + static QColor inactiveTitleColor (); + static QColor inactiveTextColor (); + static QColor activeTitleColor (); + static QColor activeTextColor (); + static int contrast (); + +%If ( KDE_3_4_0 - ) + static QColor buttonBackground (); + static QColor buttonTextColor (); +%End + + static QColor baseColor (); + static QColor textColor (); + static QColor linkColor (); + static QColor visitedLinkColor (); + static QColor highlightedTextColor (); + static QColor highlightColor (); + static QColor alternateBackgroundColor (); + static QColor calculateAlternateBackgroundColor (const QColor&); + +%If ( KDE_3_4_0 - ) + static bool shadeSortColumn (); +%End + + static QFont generalFont (); + static QFont fixedFont (); + static QFont toolBarFont (); + static QFont menuFont (); + static QFont windowTitleFont (); + static QFont taskbarFont (); + +%If ( KDE_3_1_0 - ) + static QFont largeFont (const QString& = QString ::null ); +%End + + static bool isMultiHead (); + +%If ( KDE_3_1_0 - ) + static bool wheelMouseZooms (); + +%If ( KDE_3_2_0 - ) + static QRect splashScreenDesktopGeometry (); + static QRect desktopGeometry (const QPoint&); + static QRect desktopGeometry (QWidget*); + static bool showIconsOnPushButtons (); + static bool showFilePreview (const KURL&); + static bool opaqueResize (); + +%If ( KDE_3_3_0 - ) + static int buttonLayout (); +%End + +%End + +%End + + +public: + +%If ( - KDE_3_1_0 ) + static bool insertTearOffHandle (); +%End + + +}; // class KGlobalSettings + diff --git a/sip/tdecore/kiconeffect.sip b/sip/tdecore/kiconeffect.sip new file mode 100644 index 0000000..a157ee4 --- /dev/null +++ b/sip/tdecore/kiconeffect.sip @@ -0,0 +1,102 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KIconEffect +{ +%TypeHeaderCode +#include +%End + + +public: + KIconEffect (); + +%If ( KDE_3_4_0 - ) + + enum Effects + { + NoEffect, + ToGray, + Colorize, + ToGamma, + DeSaturate, + ToMonochrome, + LastEffect + }; + +%End + + void init (); + bool hasEffect (int, int) const; + QString fingerprint (int, int); + QImage apply (QImage, int, int); + QImage apply (QImage, int, float, const QColor, bool); + +%If ( KDE_3_4_0 - ) + QImage apply (QImage, int, float, const QColor, const QColor, bool) const; +%End + + QPixmap apply (QPixmap, int, int); + QPixmap apply (QPixmap, int, float, const QColor, bool); + +%If ( KDE_3_4_0 - ) + QPixmap apply (QPixmap, int, float, const QColor, const QColor, bool) const; +%End + + QImage doublePixels (QImage); + static void visualActivate (QWidget*, QRect); + static void toGray (QImage&, float); + static void colorize (QImage&, const QColor&, float); + +%If ( KDE_3_4_0 - ) + static void toMonochrome (QImage&, const QColor&, const QColor&, float); +%End + + static void deSaturate (QImage&, float); + static void toGamma (QImage&, float); + static void semiTransparent (QImage&); + static void semiTransparent (QPixmap&); + static void overlay (QImage&, QImage&); + +public: + +%If ( - KDE_3_4_0 ) + + enum Effects + { + NoEffect, + ToGray, + Colorize, + ToGamma, + DeSaturate, + LastEffect + }; + +%End + + +}; // class KIconEffect + diff --git a/sip/tdecore/kiconloader.sip b/sip/tdecore/kiconloader.sip new file mode 100644 index 0000000..a4fd24d --- /dev/null +++ b/sip/tdecore/kiconloader.sip @@ -0,0 +1,97 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KIconLoader +{ +%TypeHeaderCode +#include +%End + + +public: + KIconLoader (const QString& = QString ::null , KStandardDirs* = 0); + void addAppDir (const QString&); + QPixmap loadIcon (const QString&, KIcon::Group, int = 0, int = KIcon ::DefaultState , QString* = 0, bool = 0) const; + +%If ( KDE_3_5_0 - ) + QIconSet loadIconSet (const QString&, KIcon::Group, int, bool, bool); +%End + + +%If ( KDE_3_1_0 - ) + QIconSet loadIconSet (const QString&, KIcon::Group, int, bool); +%End + + QIconSet loadIconSet (const QString&, KIcon::Group, int = 0); + QString iconPath (const QString&, int, bool = 0) const; + QMovie loadMovie (const QString&, KIcon::Group, int = 0) const; + QString moviePath (const QString&, KIcon::Group, int = 0) const; + QStringList loadAnimated (const QString&, KIcon::Group, int = 0) const; + QStringList queryIcons (int, KIcon::Context = KIcon ::Any ) const; + QStringList queryIconsByContext (int, KIcon::Context = KIcon ::Any ) const; + +%If ( KDE_3_1_0 - ) + QStringList queryIconsByDir (const QString&) const; +%End + + int currentSize (KIcon::Group) const; + KIconTheme* theme (); + KIconEffect* iconEffect (); + void reconfigure (const QString&, KStandardDirs*); + static QPixmap unknown (); + bool alphaBlending (KIcon::Group) const; + +%If ( KDE_3_1_0 - ) + void addExtraDesktopThemes (); + bool extraDesktopThemesAdded () const; + void enableDelayedIconSetLoading (bool); + bool isDelayedIconSetLoadingEnabled () const; +%End + + +}; // class KIconLoader + + +%ModuleCode +#include +%End + +QPixmap DesktopIcon (const QString&, int = 0, int = KIcon ::DefaultState , KInstance* = KGlobal ::instance ()); +QPixmap DesktopIcon (const QString&, KInstance*); +QIconSet DesktopIconSet (const QString&, int = 0, KInstance* = KGlobal ::instance ()); +QPixmap BarIcon (const QString&, int = 0, int = KIcon ::DefaultState , KInstance* = KGlobal ::instance ()); +QPixmap BarIcon (const QString&, KInstance*); +QIconSet BarIconSet (const QString&, int = 0, KInstance* = KGlobal ::instance ()); +QPixmap SmallIcon (const QString&, int = 0, int = KIcon ::DefaultState , KInstance* = KGlobal ::instance ()); +QPixmap SmallIcon (const QString&, KInstance*); +QIconSet SmallIconSet (const QString&, int = 0, KInstance* = KGlobal ::instance ()); +QPixmap MainBarIcon (const QString&, int = 0, int = KIcon ::DefaultState , KInstance* = KGlobal ::instance ()); +QPixmap MainBarIcon (const QString&, KInstance*); +QIconSet MainBarIconSet (const QString&, int = 0, KInstance* = KGlobal ::instance ()); +QPixmap UserIcon (const QString&, int = KIcon ::DefaultState , KInstance* = KGlobal ::instance ()); +QPixmap UserIcon (const QString&, KInstance*); +QIconSet UserIconSet (const QString&, KInstance* = KGlobal ::instance ()); +int IconSize (KIcon::Group, KInstance* = KGlobal ::instance ()); diff --git a/sip/tdecore/kicontheme.sip b/sip/tdecore/kicontheme.sip new file mode 100644 index 0000000..269a8b0 --- /dev/null +++ b/sip/tdecore/kicontheme.sip @@ -0,0 +1,249 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KIcon +{ +%TypeHeaderCode +#include +%End + + +public: + KIcon (); + bool isValid () const; + + enum Context + { + Any, + Action, + Application, + Device, + FileSystem, + MimeType + }; + + + enum Type + { + Fixed, + Scalable, + Threshold + }; + + + enum MatchType + { + MatchExact, + MatchBest + }; + + +%If ( KDE_3_2_0 - ) + + enum Group + { + NoGroup, + Desktop, + FirstGroup, + Toolbar, + MainToolbar, + Small, + Panel, + LastGroup, + User + }; + + +%If ( KDE_3_3_1 - ) + + enum StdSizes + { + SizeSmall, + SizeSmallMedium, + SizeMedium, + SizeLarge, + SizeHuge, + SizeEnormous + }; + +%End + +%End + + + enum States + { + DefaultState, + ActiveState, + DisabledState, + LastState + }; + + +%If ( KDE_3_1_0 - ) + + enum Overlays + { + LockOverlay, + ZipOverlay, + LinkOverlay, + HiddenOverlay, + ShareOverlay, + OverlayMask + }; + +%End + + int size; + Context context; + Type type; + int threshold; + QString path; + +public: + +%If ( KDE_3_3_0 - KDE_3_3_1 ) + + enum StdSizes + { + SizeSmall, + SizeSmallMedium, + SizeMedium, + SizeLarge, + SizeHuge + }; + +%End + + +public: + +%If ( KDE_3_2_0 - KDE_3_3_0 ) + + enum StdSizes + { + SizeSmall, + SizeMedium, + SizeLarge, + SizeHuge + }; + +%End + + +public: + +%If ( - KDE_3_2_0 ) + + enum Group + { + NoGroup, + Desktop, + FirstGroup, + Toolbar, + MainToolbar, + Small, + Panel, + LastGroup, + User + }; + + + enum StdSizes + { + SizeSmall, + SizeMedium, + SizeLarge + }; + +%End + + +public: + +%If ( - KDE_3_1_0 ) + + enum Overlays + { + LockOverlay, + ZipOverlay, + LinkOverlay, + HiddenOverlay, + OverlayMask + }; + +%End + + +}; // class KIcon + + +class KIconTheme +{ +%TypeHeaderCode +#include +%End + + +public: + KIconTheme (const QString&, const QString& = QString ::null ); + QString name () const; + QString description () const; + QString example () const; + QString screenshot () const; + QString linkOverlay () const; + QString zipOverlay () const; + QString lockOverlay () const; + +%If ( KDE_3_1_0 - ) + QString shareOverlay () const; +%End + + QString dir () const; + QStringList inherits () const; + bool isValid () const; + +%If ( KDE_3_1_0 - ) + bool isHidden () const; +%End + + int depth () const; + int defaultSize (KIcon::Group) const; + QValueList querySizes (KIcon::Group) const; + QStringList queryIcons (int, KIcon::Context = KIcon ::Any ) const; + QStringList queryIconsByContext (int, KIcon::Context = KIcon ::Any ) const; + KIcon iconPath (const QString&, int, KIcon::MatchType) const; + static QStringList list (); + static QString current (); + static void reconfigure (); + +%If ( KDE_3_1_0 - ) + static QString defaultThemeName (); +%End + + +}; // class KIconTheme + diff --git a/sip/tdecore/kidna.sip b/sip/tdecore/kidna.sip new file mode 100644 index 0000000..e3e0cd5 --- /dev/null +++ b/sip/tdecore/kidna.sip @@ -0,0 +1,40 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%ModuleHeaderCode +#include +%End + + +%If ( KDE_3_2_0 - ) +namespace KIDNA +{ +QCString toAsciiCString (const QString&); +QString toAscii (const QString&); +QString toUnicode (const QString&); +}; // namespace KIDNA + +%End + diff --git a/sip/tdecore/kinstance.sip b/sip/tdecore/kinstance.sip new file mode 100644 index 0000000..82df1be --- /dev/null +++ b/sip/tdecore/kinstance.sip @@ -0,0 +1,75 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KInstance +{ +%TypeHeaderCode +#include +%End + + +public: + KInstance (const QCString&); + KInstance (const KAboutData*); + KInstance (KInstance*); + KStandardDirs* dirs () const; + KConfig* config () const; + +%If ( KDE_3_2_0 - ) + KSharedConfig* sharedConfig () const; +%End + + KIconLoader* iconLoader () const; + void newIconLoader () const; + const KAboutData* aboutData () const; + QCString instanceName () const; + KMimeSourceFactory* mimeSourceFactory () const; + +protected: +//ig KInstance (const KInstance&); + +%If ( KDE_3_1_0 - ) + void setConfigName (const QString&); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_2_0 ) +//ig KCharsets* charsets () const; +%End + +//force + +private: + KInstance (const KInstance&); +//end + +}; // class KInstance + diff --git a/sip/tdecore/kipc.sip b/sip/tdecore/kipc.sip new file mode 100644 index 0000000..4e86b1a --- /dev/null +++ b/sip/tdecore/kipc.sip @@ -0,0 +1,98 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KIPC +{ +%TypeHeaderCode +#include +#include +%End + + +public: + +%If ( KDE_3_5_0 - ) + + enum Message + { + PaletteChanged, + FontChanged, + StyleChanged, + BackgroundChanged, + SettingsChanged, + IconChanged, + ToolbarStyleChanged, + ClipboardConfigChanged, + BlockShortcuts, + UserMessage + }; + +%End + + static void sendMessage (KIPC::Message, WId, int = 0); + static void sendMessageAll (KIPC::Message, int = 0); + +public: + +%If ( KDE_3_1_0 - KDE_3_5_0 ) + + enum Message + { + PaletteChanged, + FontChanged, + StyleChanged, + BackgroundChanged, + SettingsChanged, + IconChanged, + ToolbarStyleChanged, + ClipboardConfigChanged, + UserMessage + }; + +%End + + +public: + +%If ( - KDE_3_1_0 ) + + enum Message + { + PaletteChanged, + FontChanged, + StyleChanged, + BackgroundChanged, + SettingsChanged, + IconChanged, + ToolbarStyleChanged, + UserMessage + }; + +%End + + +}; // class KIPC + diff --git a/sip/tdecore/kkeynative.sip b/sip/tdecore/kkeynative.sip new file mode 100644 index 0000000..55af059 --- /dev/null +++ b/sip/tdecore/kkeynative.sip @@ -0,0 +1,90 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KKeyNative +{ +%TypeHeaderCode +#include +%End + + +public: + KKeyNative (); +//ig KKeyNative (const XEvent*); + KKeyNative (const KKey&); + KKeyNative (const KKeyNative&); + KKeyNative (uint, uint, uint); + void clear (); +//ig bool init (const XEvent*); + bool init (const KKey&); + bool init (const KKeyNative&); + int keyCodeQt () const; + KKey key () const; + +%If ( KDE_3_1_4 - ) +//ig operator KKey () const; +%End + + uint code () const; + uint mod () const; + uint sym () const; + bool isNull () const; + int compare (const KKeyNative&) const; + +%If ( KDE_3_1_4 - ) + bool operator == (const KKeyNative&) const; + bool operator != (const KKeyNative&) const; + bool operator < (const KKeyNative&) const; +%End + + static KKeyNative& null (); + static bool keyboardHasWinKey (); + static uint modX (KKey::ModFlag); + static uint accelModMaskX (); + +%If ( KDE_3_1_3 - ) + static uint modXNumLock (); + static uint modXLock (); + static uint modXScrollLock (); + +%If ( KDE_3_4_3 - ) + static uint modXModeSwitch (); +%End + +%End + + +}; // class KKeyNative + + +%If ( KDE_3_1_4 - ) +//ig typedef union _XEvent XEvent; +%End + + +%If ( - KDE_3_1_4 ) +//ig typedef _XEvent XEvent; +%End diff --git a/sip/tdecore/kkeyserver_x11.sip b/sip/tdecore/kkeyserver_x11.sip new file mode 100644 index 0000000..a50ff80 --- /dev/null +++ b/sip/tdecore/kkeyserver_x11.sip @@ -0,0 +1,187 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%ModuleHeaderCode +#include +%End + +namespace KKeyServer +{ + +%If ( KDE_3_1_0 - ) + +enum ExtraModFlag +{ + MODE_SWITCH +}; + +%End + + +class Sym +{ +%TypeHeaderCode +#include +%End + + +public: + uint m_sym; + Sym (); + Sym (uint); + Sym (const QString&); + bool initQt (int); + bool init (const QString&); + int qt () const; + QString toStringInternal () const; + QString toString () const; + uint getModsRequired () const; + uint getSymVariation () const; + +%If ( KDE_3_1_4 - ) +//ig operator uint () const; +%End + + +}; // class Sym + + +class Key +{ +%TypeHeaderCode +#include +%End + + +public: + + enum + { + CODE_FOR_QT + }; + + uint m_code; + uint m_mod; + uint m_sym; + bool init (const KKey&, bool); + bool isNative () const; + uint code () const; + uint mod () const; + uint sym () const; + int keyCodeQt () const; + void setKeycodeQt (int); + int compare (const KKeyServer::Key&) const; + +%If ( KDE_3_1_4 - ) + bool operator == (const KKeyServer::Key&) const; + bool operator < (const KKeyServer::Key&) const; +%End + + KKey key () const; + +}; // class Key + + +class Variations +{ +%TypeHeaderCode +#include +%End + + +public: + + enum + { + MAX_VARIATIONS + }; + +//ig KKeyServer::Key m_rgkey[MAX_VARIATIONS]; + uint m_nVariations; + Variations (); + void init (const KKey&, bool); + uint count () const; + const KKeyServer::Key& key (uint) const; + +}; // class Variations + +bool initializeMods (); +uint modX (KKey::ModFlag); +bool keyboardHasWinKey (); +uint modXShift (); +uint modXLock (); +uint modXCtrl (); +uint modXAlt (); +uint modXNumLock (); +uint modXWin (); +uint modXScrollLock (); + +%If ( KDE_3_4_2 - ) +uint modXModeSwitch (); +%End + +uint accelModMaskX (); +//ig bool keyQtToSym (int, uint&); +//ig bool keyQtToMod (int, uint&); +//ig bool symToKeyQt (uint, int&); +//ig bool modToModQt (uint, int&); +//ig bool modToModX (uint, uint&); +//ig bool modXToModQt (uint, int&); + +%If ( KDE_3_4_2 - ) +//ig int qtButtonStateToMod (Qt::ButtonState); +%End + +//ig bool modXToMod (uint, uint&); +//ig bool codeXToSym (uchar, uint, uint&); +//ig QString modToStringInternal (uint); +//ig QString modToStringUser (uint); + +%If ( KDE_3_5_0 - ) +uint stringUserToMod (const QString&); +%End + +//ig bool stringToSymMod (const QString&, uint&, uint&); +//ig void keyQtToKeyX (uint, uchar*, uint*, uint*); + +%If ( - KDE_3_2_0 ) + +class CodeMod +{ +%TypeHeaderCode +#include +%End + + +public: + int code; + int mod; + +}; // class CodeMod + +%End + +}; // namespace KKeyServer + diff --git a/sip/tdecore/klibloader.sip b/sip/tdecore/klibloader.sip new file mode 100644 index 0000000..80fa29f --- /dev/null +++ b/sip/tdecore/klibloader.sip @@ -0,0 +1,103 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KLibrary : QObject +{ +%TypeHeaderCode +#include +%End + + +public: +//ig KLibrary (const QString&, const QString&, void*); + QString name () const; + QString fileName () const; + KLibFactory* factory (); + void* symbol (const char*); + +%If ( KDE_3_1_0 - ) + bool hasSymbol (const char*) const; +%End + + void unload () const; + +private: + ~KLibrary (); +//force + KLibrary (const QString&, const QString&, void*); +//end + +}; // class KLibrary + + +class KLibLoader : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KLibFactory* factory (const char*); + virtual KLibrary* library (const char*); + KLibrary* globalLibrary (const char*); + QString lastErrorMessage () const; + virtual void unloadLibrary (const char*); + static KLibLoader* self (); + static void cleanUp (); + static QString findLibrary (const char*, const KInstance* = KGlobal ::instance ()); + +protected: + KLibLoader (QObject* /TransferThis/ = 0, const char* = 0); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KLibLoader + + +class KLibFactory : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KLibFactory (QObject* /TransferThis/ = 0, const char* = 0); + QObject* create (QObject* /Transfer/ = 0, const char* = 0, const char* = "QObject", const QStringList& = QStringList ()); + +signals: + void objectCreated (QObject*); + +protected: + virtual QObject* createObject (QObject* /Transfer/ = 0, const char* = 0, const char* = "QObject", const QStringList& = QStringList ()) /Factory/; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KLibFactory + diff --git a/sip/tdecore/klocale.sip b/sip/tdecore/klocale.sip new file mode 100644 index 0000000..ffe12a0 --- /dev/null +++ b/sip/tdecore/klocale.sip @@ -0,0 +1,243 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KLocale +{ +%TypeHeaderCode +#include +%End + + +public: + KLocale (const QString&, KConfig* = 0); +//ig KLocale (const KLocale&); + QString translate (const char*) const; + QString translate (const char*, const char*) const; + QString translate (const char*, const char*, ulong) const; + bool setEncoding (int); + bool setLanguage (const QString&); + bool setLanguage (const QStringList&); + bool setCountry (const QString&); + + enum SignPosition + { + ParensAround, + BeforeQuantityMoney, + AfterQuantityMoney, + BeforeMoney, + AfterMoney + }; + + QString decimalSymbol () const; + QString thousandsSeparator () const; + QString currencySymbol () const; + QString monetaryDecimalSymbol () const; + QString monetaryThousandsSeparator () const; + QString positiveSign () const; + QString negativeSign () const; + int fracDigits () const; + bool positivePrefixCurrencySymbol () const; + bool negativePrefixCurrencySymbol () const; + SignPosition positiveMonetarySignPosition () const; + SignPosition negativeMonetarySignPosition () const; + QString formatMoney (double, const QString& = QString ::null , int = -1) const; + QString formatNumber (double, int = -1) const; + QString formatNumber (const QString&) const; + +%If ( KDE_3_5_0 - ) + QString formatNumber (const QString&, bool, int) const; +%End + + +%If ( KDE_3_2_0 - ) + QString formatLong (long) const; +%End + + +%If ( KDE_3_1_0 - ) + bool nounDeclension () const; +%End + + QString formatDate (const QDate&, bool = 0) const; + +%If ( KDE_3_1_0 - ) + bool dateMonthNamePossessive () const; + +%If ( KDE_3_3_0 - ) + QString formatTime (const QTime&, bool, bool) const; +%End + +%End + + QString formatTime (const QTime&, bool = 0) const; + bool use12Clock () const; + bool weekStartsMonday () const; + +%If ( KDE_3_1_0 - ) + int weekStartDay () const; +%End + + QString monthName (int, bool = 0) const; + +%If ( KDE_3_1_0 - ) + QString monthNamePossessive (int, bool = 0) const; +%End + + QString weekDayName (int, bool = 0) const; + +%If ( KDE_3_2_0 - ) + const KCalendarSystem* calendar () const; + QString calendarType () const; + void setCalendar (const QString&); +%End + + QString formatDateTime (const QDateTime&, bool, bool = 0) const; + double readMoney (const QString&, bool* = 0) const; + double readNumber (const QString&, bool* = 0) const; + QDate readDate (const QString&, bool* = 0) const; + QDate readDate (const QString&, const QString&, bool* = 0) const; + +%If ( KDE_3_2_0 - ) + + enum ReadDateFlags + { + NormalFormat, + ShortFormat + }; + + QDate readDate (const QString&, KLocale::ReadDateFlags, bool* = 0) const; +%End + + QTime readTime (const QString&, bool* = 0) const; + +%If ( KDE_3_2_0 - ) + + enum ReadTimeFlags + { + WithSeconds, + WithoutSeconds + }; + + QTime readTime (const QString&, KLocale::ReadTimeFlags, bool* = 0) const; +%End + + QString language () const; + QString country () const; + QStringList languagesTwoAlpha () const; + QStringList languageList () const; + const char* encoding () const; + int encodingMib () const; + QTextCodec* codecForEncoding () const; + +%If ( KDE_3_2_0 - ) + int fileEncodingMib () const; +%End + + void setDateFormat (const QString&); + void setDateFormatShort (const QString&); + +%If ( KDE_3_1_0 - ) + void setDateMonthNamePossessive (bool); +%End + + void setTimeFormat (const QString&); + void setWeekStartsMonday (bool); + +%If ( KDE_3_1_0 - ) + void setWeekStartDay (int); +%End + + QString dateFormat () const; + QString dateFormatShort () const; + QString timeFormat () const; + void setDecimalSymbol (const QString&); + void setThousandsSeparator (const QString&); + void setPositiveSign (const QString&); + void setNegativeSign (const QString&); + void setPositiveMonetarySignPosition (KLocale::SignPosition); + void setNegativeMonetarySignPosition (KLocale::SignPosition); + void setPositivePrefixCurrencySymbol (bool); + void setNegativePrefixCurrencySymbol (bool); + void setFracDigits (int); + void setMonetaryThousandsSeparator (const QString&); + void setMonetaryDecimalSymbol (const QString&); + void setCurrencySymbol (const QString&); + int pageSize () const; + void setPageSize (int); + + enum MeasureSystem + { + Metric, + Imperial + }; + + KLocale::MeasureSystem measureSystem () const; + void setMeasureSystem (KLocale::MeasureSystem); + void insertCatalogue (const QString&); + void removeCatalogue (const QString&); + void setActiveCatalogue (const QString&); + QString translateQt (const char*, const char*, const char*) const; + +%If ( KDE_3_1_0 - ) + QStringList allLanguagesTwoAlpha () const; + QString twoAlphaToLanguageName (const QString&) const; + QStringList allCountriesTwoAlpha () const; + QString twoAlphaToCountryName (const QString&) const; +%End + + static void splitLocale (const QString&, QString&, QString&, QString&); + static void setMainCatalogue (const char*); + static QString langLookup (const QString&, const char* = "html"); + static QString defaultLanguage (); + static QString defaultCountry (); + +%If ( KDE_3_0_1 - ) + static QString _initLanguage (KConfigBase*); +%End + + QString formatMoney (const QString&) const; + QString languages () const; +//ig bool setCharset (const QString&); +//ig QString charset () const; + +protected: +//ig static void initInstance (); +//force + +private: + KLocale (const KLocale&); +//end + +}; // class KLocale + + +%ModuleCode +#include +%End + +QString i18n (const char*); +QString i18n (const char*, const char*); +QString i18n (const char*, const char*, ulong); diff --git a/sip/tdecore/klockfile.sip b/sip/tdecore/klockfile.sip new file mode 100644 index 0000000..0e1aeb5 --- /dev/null +++ b/sip/tdecore/klockfile.sip @@ -0,0 +1,112 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) + +class KLockFile : KShared +{ +%TypeHeaderCode +#include +%End + + +public: + typedef KSharedPtr Ptr; + KLockFile (const QString&); + + enum LockResult + { + LockOK, + LockFail, + LockError, + LockStale + }; + + + enum LockOptions + { + LockNoBlock, + LockForce + }; + + KLockFile::LockResult lock (int = 0); + bool isLocked () const; + void unlock (); + int staleTime () const; + void setStaleTime (int); + bool getLockInfo (int& /Out/, QString& /Out/, QString& /Out/); + +}; // class KLockFile + +%End + + + +%If (KDE_3_3_0 - ) +%MappedType KLockFile::Ptr +//converts KLockFile +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + // Convert to a Python instance + + if (!sipCpp) + return NULL; + + KSharedPtr *cPtr = new KSharedPtr (*(KSharedPtr *)sipCpp); + KLockFile *cpp = cPtr->data (); + PyObject *obj = sipConvertFromInstance (cpp, sipClass_KLockFile, sipTransferObj); + + return obj; +%End + +%ConvertToTypeCode + // Convert a Python instance to a Ptr on the heap. + + if (sipIsErr == NULL) + return PyInstance_Check(sipPy); + + int iserr = 0; + KLockFile *cpp = (KLockFile *)sipForceConvertToType(sipPy, sipType_KLockFile, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + return 0; + } + + *sipCppPtr = new KSharedPtr (cpp); + + return 1; +%End +}; +%End + + diff --git a/sip/tdecore/kmacroexpander.sip b/sip/tdecore/kmacroexpander.sip new file mode 100644 index 0000000..6316a9d --- /dev/null +++ b/sip/tdecore/kmacroexpander.sip @@ -0,0 +1,384 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%ModuleHeaderCode +#include +%End + + +%If ( KDE_3_2_0 - ) + +class KMacroExpanderBase +{ +%TypeHeaderCode +#include +%End + + +public: + KMacroExpanderBase (QChar = '%'); + void expandMacros (QString&); + bool expandMacrosShellQuote (QString&, uint& /In, Out/); + bool expandMacrosShellQuote (QString&); + void setEscapeChar (QChar); + QChar escapeChar () const; + +protected: + virtual int expandPlainMacro (const QString&, uint, QStringList&); + virtual int expandEscapedMacro (const QString&, uint, QStringList&); + +}; // class KMacroExpanderBase + +%End + + +%If ( KDE_3_3_0 - ) + +class KWordMacroExpander : KMacroExpanderBase +{ +%TypeHeaderCode +#include +%End + + +public: + KWordMacroExpander (QChar = '%'); + +protected: + virtual int expandPlainMacro (const QString&, uint, QStringList&); + virtual int expandEscapedMacro (const QString&, uint, QStringList&); + virtual bool expandMacro (const QString&, QStringList&) = 0; + +}; // class KWordMacroExpander + +%End + + +%If ( KDE_3_3_0 - ) + +class KCharMacroExpander : KMacroExpanderBase +{ +%TypeHeaderCode +#include +%End + + +public: + KCharMacroExpander (QChar = '%'); + +protected: + virtual int expandPlainMacro (const QString&, uint, QStringList&); + virtual int expandEscapedMacro (const QString&, uint, QStringList&); + virtual bool expandMacro (QChar, QStringList&) = 0; + +}; // class KCharMacroExpander + +%End + + +%If ( KDE_3_2_0 - ) +namespace KMacroExpander +{ +QString expandMacros (const QString&, const QMap&, QChar = '%'); +QString expandMacrosShellQuote (const QString&, const QMap&, QChar = '%'); +QString expandMacros (const QString&, const QMap&, QChar = '%'); +QString expandMacrosShellQuote (const QString&, const QMap&, QChar = '%'); +QString expandMacros (const QString&, const QMap&, QChar = '%'); +QString expandMacros (const QString&, const QMap&, QChar = '%'); +QString expandMacrosShellQuote (const QString&, const QMap&, QChar = '%'); +QString expandMacrosShellQuote (const QString&, const QMap&, QChar = '%'); +}; // namespace KMacroExpander + +%End + + + +%MappedType QMap +//converts a Python dict of QChar:QString +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + + if (!sipCpp) + return PyDict_New(); + + PyObject *dict; + + // Create the dictionary. + + if ((dict = PyDict_New()) == NULL) + return NULL; + + // Get it. + + const QMap map = *sipCpp; + QMap::ConstIterator it; + + for (it = map.begin (); it != map.end (); ++it) + { + QChar acpp = it.key (); + PyObject *binst = PyString_FromString ((char *)((QString *)&it.data ())); + PyObject *ainst; + if (((ainst = sipConvertFromNewType(new QChar(acpp), sipType_QChar, sipTransferObj)) == NULL) + || (binst == NULL) + || (PyDict_SetItem (dict, ainst, binst) < 0)) + { + Py_XDECREF (ainst); + Py_XDECREF (binst); + Py_DECREF (dict); + return NULL; + } + } + + return dict; +%End + + +%ConvertToTypeCode +// Convert a Python dictionary to a QMap + + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + QMap *map = new QMap; + + PyObject *key, *value; + SIP_SSIZE_T pos = 0; + QChar *cKey; + QString *sData; + + while (PyDict_Next(sipPy, &pos, &key, &value)) + { + int iserr = 0, cKey_state, sData_state; + + cKey = (QChar *)sipForceConvertToType(key, sipType_QChar, sipTransferObj, SIP_NOT_NONE, &cKey_state, &iserr); + sData = (QString *)sipForceConvertToType(value, sipType_QString, sipTransferObj, SIP_NOT_NONE, &sData_state, &iserr); + + if (iserr) + { + if (cKey) + sipReleaseType(cKey, sipType_QChar, cKey_state); + + *sipIsErr = 1; + delete map; + return 0; + } + + map->insert (*cKey, *sData); + + sipReleaseType(cKey, sipType_QChar, cKey_state); + sipReleaseType(sData, sipType_QString, sData_state); + } + + *sipCppPtr = map; + + return 1; +%End +}; + + +%MappedType QMap +//converts a Python dict of QString:QStringList +{ +%TypeHeaderCode +#include +#include +#include +%End + +%ConvertFromTypeCode + + if (!sipCpp) + return PyDict_New(); + + PyObject *dict; + + // Create the dictionary. + + if ((dict = PyDict_New()) == NULL) + return NULL; + + // Get it. + + const QMap map = *sipCpp; + QMap::ConstIterator it; + + for (it = map.begin (); it != map.end (); ++it) + { + QStringList bcpp = it.data (); + PyObject *ainst = PyString_FromString ((char *)((QString *)&it.key ())); + PyObject *binst; + if (((binst = sipConvertFromNewType(new QStringList(bcpp), sipType_QStringList, sipTransferObj)) == NULL) + || (ainst == NULL) + || (PyDict_SetItem (dict, ainst, binst) < 0)) + { + Py_XDECREF (ainst); + Py_XDECREF (binst); + Py_DECREF (dict); + return NULL; + } + } + + return dict; +%End + + +%ConvertToTypeCode +// Convert a Python dictionary to a QMap on the heap. + + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + QMap *map = new QMap; + + PyObject *key, *value; + SIP_SSIZE_T pos = 0; + QString *sKey; + QStringList *slData; + + while (PyDict_Next(sipPy, &pos, &key, &value)) + { + int iserr = 0, sKey_state, slData_state; + + sKey = (QString *)sipForceConvertToType(key, sipType_QString, sipTransferObj, SIP_NOT_NONE, &sKey_state, &iserr); + slData = (QStringList *)sipForceConvertToType(value, sipType_QStringList, sipTransferObj, SIP_NOT_NONE, &slData_state, &iserr); + + if (iserr) + { + if (sKey) + sipReleaseType(sKey, sipType_QString, sKey_state); + + *sipIsErr = 1; + delete map; + return 0; + } + + map->insert (*sKey, *slData); + + sipReleaseType(sKey, sipType_QString, sKey_state); + sipReleaseType(slData, sipType_QStringList, slData_state); + } + + *sipCppPtr = map; + + return 1; +%End +}; + + +%MappedType QMap +//converts a Python dict of QChar:QStringList +{ +%TypeHeaderCode +#include +#include +#include +%End + +%ConvertFromTypeCode + + if (!sipCpp) + return PyDict_New(); + + PyObject *dict; + + // Create the dictionary. + + if ((dict = PyDict_New()) == NULL) + return NULL; + + // Get it. + + const QMap map = *sipCpp; + QMap::ConstIterator it; + + for (it = map.begin (); it != map.end (); ++it) + { + QChar acpp = it.key (); + QStringList bcpp = it.data (); + PyObject *binst; + PyObject *ainst; + if (((ainst = sipConvertFromNewType(new QChar(acpp), sipType_QChar, sipTransferObj)) == NULL) + || (binst = sipConvertFromNewType(new QStringList(bcpp), sipType_QStringList, sipTransferObj)) + || (PyDict_SetItem (dict, ainst, binst) < 0)) + { + Py_XDECREF (ainst); + Py_XDECREF (binst); + Py_DECREF (dict); + return NULL; + } + } + + return dict; +%End + + +%ConvertToTypeCode +// Convert a Python dictionary to a QMap on the heap. + + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + QMap *map = new QMap; + + PyObject *key, *value; + SIP_SSIZE_T pos = 0; + QChar *cKey; + QStringList *slData; + + while (PyDict_Next(sipPy, &pos, &key, &value)) + { + int iserr = 0, cKey_state, slData_state; + + cKey = (QChar *)sipForceConvertToType(key, sipType_QChar, sipTransferObj, SIP_NOT_NONE, &cKey_state, &iserr); + slData = (QStringList *)sipForceConvertToType(value, sipType_QStringList, sipTransferObj, SIP_NOT_NONE, &slData_state, &iserr); + + if (iserr) + { + if (cKey) + sipReleaseType(cKey, sipType_QChar, cKey_state); + + *sipIsErr = 1; + delete map; + return 0; + } + + map->insert (*cKey, *slData); + + sipReleaseType(cKey, sipType_QChar, cKey_state); + sipReleaseType(slData, sipType_QStringList, slData_state); + } + + *sipCppPtr = map; + + return 1; +%End +}; + + diff --git a/sip/tdecore/kmanagerselection.sip b/sip/tdecore/kmanagerselection.sip new file mode 100644 index 0000000..a43fd2e --- /dev/null +++ b/sip/tdecore/kmanagerselection.sip @@ -0,0 +1,91 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KSelectionOwner : QObject +{ +%TypeHeaderCode +#include +#include +#include +%End + + +public: + KSelectionOwner (Atom, int = -1, QObject* /TransferThis/ = 0); + KSelectionOwner (const char*, int = -1, QObject* /TransferThis/ = 0); + bool claim (bool, bool = 1); + void release (); + Window ownerWindow () const; +//ig bool filterEvent (XEvent*); + +signals: + void lostOwnership (); + +protected: +//ig virtual bool handleMessage (XEvent*); + virtual bool genericReply (Atom, Atom, Window); + virtual void replyTargets (Atom, Window); + virtual void getAtoms (); + void setData (long, long); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KSelectionOwner + +%End + + +%If ( KDE_3_2_0 - ) + +class KSelectionWatcher : QObject +{ +%TypeHeaderCode +#include +#include +#include +%End + + +public: + KSelectionWatcher (Atom, int = -1, QObject* /TransferThis/ = 0); + KSelectionWatcher (const char*, int = -1, QObject* /TransferThis/ = 0); + Window owner (); +//ig void filterEvent (XEvent*); + +signals: + void newOwner (Window); + void lostOwner (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KSelectionWatcher + +%End + diff --git a/sip/tdecore/kmdcodec.sip b/sip/tdecore/kmdcodec.sip new file mode 100644 index 0000000..e554fc5 --- /dev/null +++ b/sip/tdecore/kmdcodec.sip @@ -0,0 +1,156 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KCodecs +{ +%TypeHeaderCode +#include +%End + + +public: + static QCString quotedPrintableEncode (const QByteArray&, bool); + static QCString quotedPrintableEncode (const QCString&, bool = 1); + static void quotedPrintableEncode (const QByteArray&, QByteArray&, bool); + static QCString quotedPrintableDecode (const QByteArray&); + static QCString quotedPrintableDecode (const QCString&); + static void quotedPrintableDecode (const QByteArray&, QByteArray&); + static QCString uuencode (const QByteArray&); + static QCString uuencode (const QCString&); + static void uuencode (const QByteArray&, QByteArray&); + static QCString uudecode (const QByteArray&); + static QCString uudecode (const QCString&); + static void uudecode (const QByteArray&, QByteArray&); + static QCString base64Encode (const QByteArray&, bool); + static QCString base64Encode (const QCString&, bool); + static void base64Encode (const QByteArray&, QByteArray&, bool); + static QCString base64Decode (const QByteArray&); + static QCString base64Decode (const QCString&); + static void base64Decode (const QByteArray&, QByteArray&); + +private: + KCodecs (); + +}; // class KCodecs + + +class KMD5 +{ +%TypeHeaderCode +#include +%End + + +public: +//ig typedef uchar Digest[16]; + KMD5 (); + KMD5 (const char*, int = -1); + KMD5 (const QByteArray&); + KMD5 (const QCString&); + void update (const char*, int = -1); +//igx void update (const uchar*, int = -1); + void update (const QByteArray&); + void update (const QCString&); + bool update (QIODevice&); + void reset (); +//ig const Digest& rawDigest (); +//ig void rawDigest (KMD5::Digest&); + QCString hexDigest (); + void hexDigest (QCString&); + QCString base64Digest (); +//ig bool verify (const KMD5::Digest&); + bool verify (const QCString&); + +protected: + +%If ( KDE_3_1_0 - ) +//ig void transform (const uchar); +%End + + void finalize (); + +private: + KMD5 (const KMD5&); + +protected: + +%If ( KDE_3_1_0 - ) +//force + void transform (const uchar*); +%End + +//end + +protected: + +%If ( - KDE_3_1_0 ) + void transform (const uchar*); +%End + + +}; // class KMD5 + + +%If ( KDE_3_4_0 - ) + +class KMD4 +{ +%TypeHeaderCode +#include +%End + + +public: +//ig typedef uchar Digest[16]; + KMD4 (); + KMD4 (const char*, int = -1); + KMD4 (const QByteArray&); + KMD4 (const QCString&); + void update (const char*, int = -1); +//igx void update (const uchar*, int = -1); + void update (const QByteArray&); + void update (const QCString&); + bool update (QIODevice&); + void reset (); +//ig const Digest& rawDigest (); +//ig void rawDigest (KMD4::Digest&); + QCString hexDigest (); + void hexDigest (QCString&); + QCString base64Digest (); +//ig bool verify (const KMD4::Digest&); + bool verify (const QCString&); + +protected: +//ig void transform (ulong, const ulong); + void finalize (); + +private: + KMD4 (const KMD4&); + +}; // class KMD4 + +%End + diff --git a/sip/tdecore/kmimesourcefactory.sip b/sip/tdecore/kmimesourcefactory.sip new file mode 100644 index 0000000..b15e8d3 --- /dev/null +++ b/sip/tdecore/kmimesourcefactory.sip @@ -0,0 +1,42 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KMimeSourceFactory : QMimeSourceFactory +{ +%TypeHeaderCode +#include +%End + + +public: + KMimeSourceFactory (KIconLoader* = KGlobal ::iconLoader ()); + virtual QString makeAbsolute (const QString&, const QString&) const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KMimeSourceFactory + diff --git a/sip/tdecore/kmountpoint.sip b/sip/tdecore/kmountpoint.sip new file mode 100644 index 0000000..13f22da --- /dev/null +++ b/sip/tdecore/kmountpoint.sip @@ -0,0 +1,186 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KMountPoint : KShared +{ +%TypeHeaderCode +#include +%End + + +public: +//ig typedef KSharedPtr Ptr; +//ig typedef QValueList List; + +public: + + enum + { + NeedMountOptions, + NeedRealDeviceName + }; + + static KMountPoint::List possibleMountPoints (int = 0); + static KMountPoint::List currentMountPoints (int = 0); + QString mountedFrom () const; + QString realDeviceName () const; + QString mountPoint () const; + QString mountType () const; + QStringList mountOptions () const; + +%If ( KDE_3_4_0 - ) + static QString devNameFromOptions (const QStringList&); +%End + + +private: + KMountPoint (); + +}; // class KMountPoint + +%End + + + +%MappedType KMountPoint::Ptr +//converts KMountPoint +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + // Convert to a Python instance + + if (!sipCpp) + return NULL; + + KSharedPtr *cPtr = new KSharedPtr (*(KSharedPtr *)sipCpp); + KMountPoint *cpp = cPtr->data (); + PyObject *obj = sipConvertFromInstance (cpp, sipClass_KMountPoint, sipTransferObj); + + return obj; +%End + +%ConvertToTypeCode + // Convert a Python instance to a Ptr on the heap. + + if (sipIsErr == NULL) + return PyInstance_Check(sipPy); + + int iserr = 0; + KMountPoint *cpp = (KMountPoint *)sipForceConvertToType(sipPy, sipType_KMountPoint, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + return 0; + } + + *sipCppPtr = new KSharedPtr (cpp); + + return 1; +%End +}; + + +%MappedType KMountPoint::List +//converts a Python list of KMountPoint +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + // Convert to a Python list of Ptr (KMountPoint). + if (!sipCpp) + return PyList_New (0); + + PyObject *plist; + + // Create the list + if ((plist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + KMountPoint::List *cList = (KMountPoint::List *)sipCpp; + PyObject *inst; + + KMountPoint::List::Iterator it; + for( it = cList->begin(); it != cList->end(); ++it ) + { + inst = sipConvertFromType(static_cast(*it), sipType_KMountPoint_Ptr, sipTransferObj); + + if ((inst == NULL) || (PyList_Append (plist, inst) < 0)) + { + Py_XDECREF (inst); + Py_DECREF (plist); + return NULL; + } + } + + return plist; +%End + +%ConvertToTypeCode + // Convert a Python list to List on the heap. + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + KMountPoint::List *cList = new KMountPoint::List; + + PyObject *elem; + KMountPoint *mtpt; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + mtpt = (KMountPoint *)sipForceConvertToType(elem, sipType_KMountPoint, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + KMountPoint::Ptr *ptr = new KMountPoint::Ptr (mtpt); + + if (iserr) + { + *sipIsErr = 1; + delete cList; + return 0; + } + + cList->append (*ptr); + } + + *sipCppPtr = cList; + + return 1; +%End +}; + + diff --git a/sip/tdecore/kmultipledrag.sip b/sip/tdecore/kmultipledrag.sip new file mode 100644 index 0000000..b064d01 --- /dev/null +++ b/sip/tdecore/kmultipledrag.sip @@ -0,0 +1,58 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KMultipleDrag : QDragObject +{ +%TypeHeaderCode +#include +%End + + +public: + KMultipleDrag (QWidget* = 0, const char* = 0); + void addDragObject (QDragObject*); + +%If ( KDE_3_5_0 - ) + virtual QByteArray encodedData (const char*) const; + virtual const char* format (int) const; +%End + + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( - KDE_3_5_0 ) + virtual QByteArray encodedData (const char*) const; + virtual const char* format (int) const; +%End + + +}; // class KMultipleDrag + diff --git a/sip/tdecore/knotifyclient.sip b/sip/tdecore/knotifyclient.sip new file mode 100644 index 0000000..a5a5adf --- /dev/null +++ b/sip/tdecore/knotifyclient.sip @@ -0,0 +1,139 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%ModuleHeaderCode +#include +%End + +namespace KNotifyClient +{ + +class Instance +{ +%TypeHeaderCode +#include +%End + + +public: + Instance (KInstance*); + bool useSystemBell () const; + static KInstance* current (); + static KNotifyClient::Instance* currentInstance (); + +}; // class Instance + + +%If ( KDE_3_2_0 - ) + +enum +{ + Default, +//ig None, + Sound, + Messagebox, + Logfile, + Stderr, + PassivePopup, + Execute, + Taskbar +}; + +%End + + +enum +{ + Notification, + Warning, + Error, + Catastrophe +}; + + +enum StandardEvent +{ + cannotOpenFile, + notification, + warning, + fatalError, + catastrophe +}; + +bool startDaemon (); + +%If ( KDE_3_2_0 - ) +int event (const QString&, const QString& = QString ::null ); +int event (KNotifyClient::StandardEvent, const QString& = QString ::null ); + +%If ( KDE_3_2_1 - ) +int userEvent (const QString& = QString ::null , int = KNotifyClient ::Default , int = KNotifyClient ::Default , const QString& = QString ::null , const QString& = QString ::null ); +%End + +int event (int, const QString&, const QString& = QString ::null ); +int event (int, KNotifyClient::StandardEvent, const QString& = QString ::null ); +int userEvent (int, const QString& = QString ::null , int = KNotifyClient ::Default , int = KNotifyClient ::Default , const QString& = QString ::null , const QString& = QString ::null ); +%End + +void beep (const QString& = QString ::null ); +int getPresentation (const QString&); +QString getFile (const QString&, int); +int getDefaultPresentation (const QString&); +QString getDefaultFile (const QString&, int); +KInstance* instance (); + +%If ( KDE_3_1_0 - KDE_3_2_0 ) + +enum +{ + Default, +//ig None, + Sound, + Messagebox, + Logfile, + Stderr, + PassivePopup, + Execute +}; + +%End + + +%If ( - KDE_3_1_0 ) + +enum +{ + Default, +//ig None, + Sound, + Messagebox, + Logfile, + Stderr +}; + +%End + +}; // namespace KNotifyClient + diff --git a/sip/tdecore/kpalette.sip b/sip/tdecore/kpalette.sip new file mode 100644 index 0000000..8989844 --- /dev/null +++ b/sip/tdecore/kpalette.sip @@ -0,0 +1,63 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPalette +{ +%TypeHeaderCode +#include +%End + + +public: + static QStringList getPaletteList (); + KPalette (const QString& = QString ::null ); + KPalette (const KPalette&); + bool save (); + QString description (); + void setDescription (const QString&); + QString name (); + void setName (const QString&); + + enum Editable + { + Yes, + No, + Ask + }; + + Editable editable (); + void setEditable (KPalette::Editable); + int nrColors (); + QColor color (int); + int findColor (const QColor&); + QString colorName (int); + QString colorName (const QColor&); + int addColor (const QColor&, const QString& = QString ::null ); + int changeColor (int, const QColor&, const QString& = QString ::null ); + int changeColor (const QColor&, const QColor&, const QString& = QString ::null ); + +}; // class KPalette + diff --git a/sip/tdecore/kpixmapprovider.sip b/sip/tdecore/kpixmapprovider.sip new file mode 100644 index 0000000..5909306 --- /dev/null +++ b/sip/tdecore/kpixmapprovider.sip @@ -0,0 +1,41 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPixmapProvider +{ +%TypeHeaderCode +#include +%End + + +public: + virtual QPixmap pixmapFor (const QString&, int = 0) = 0; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KPixmapProvider + diff --git a/sip/tdecore/kprocctrl.sip b/sip/tdecore/kprocctrl.sip new file mode 100644 index 0000000..c437dd8 --- /dev/null +++ b/sip/tdecore/kprocctrl.sip @@ -0,0 +1,95 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KProcessController : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_2_0 - ) + static void ref (); + static void deref (); +%End + + KProcessController* theKProcessController; + static void theSigCHLDHandler (int); + +%If ( KDE_3_0_3 - ) + bool waitForProcessExit (int); + +%If ( KDE_3_2_0 - ) + void unscheduleCheck (); + void rescheduleCheck (); + int notifierFd () const; +%End + +%End + + void addKProcess (KProcess*); + void removeKProcess (KProcess*); + +%If ( KDE_3_2_0 - ) + void addProcess (int); +%End + + +%If ( KDE_3_1_0 - ) + +private: + KProcessController (); +%End + + ~KProcessController (); + KProcessController (KProcessController&); + +public: + +%If ( - KDE_3_1_0 ) + KProcessController (); +%End + + +public: + +%If ( - KDE_3_2_0 ) + static void setupHandlers (); + static void resetHandlers (); +%End + + +public slots: + +%If ( - KDE_3_2_0 ) + void slotDoHousekeeping (int); +%End + + +}; // class KProcessController + diff --git a/sip/tdecore/kprocess.sip b/sip/tdecore/kprocess.sip new file mode 100644 index 0000000..53ab178 --- /dev/null +++ b/sip/tdecore/kprocess.sip @@ -0,0 +1,272 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KProcess : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_5_2 - ) + + enum Communication + { + NoCommunication, + Stdin, + Stdout, + Stderr, + AllOutput, + All, + NoRead, + CTtyOnly, + MergedStderr + }; + +%End + + +%If ( KDE_3_2_0 - ) + + enum RunMode + { + DontCare, + NotifyOnExit, + Block, + OwnGroup + }; + + KProcess (QObject* /TransferThis/, const char* = 0); +%End + + KProcess (); + bool setExecutable (const QString&); + +%If ( KDE_3_1_4 - ) + KProcess& operator << (const QString&); + KProcess& operator << (const char*); + KProcess& operator << (const QCString&); + KProcess& operator << (const QStringList&); +%End + + void clearArguments (); + virtual bool start (KProcess::RunMode = NotifyOnExit , KProcess::Communication = NoCommunication ); + virtual bool kill (int = SIGTERM ); + bool isRunning () const; + pid_t pid () const; + pid_t getPid () const; + void suspend (); + void resume (); + +%If ( KDE_3_2_0 - ) + bool wait (int = -1); +%End + + bool normalExit () const; + +%If ( KDE_3_2_0 - ) + bool signalled () const; + bool coreDumped () const; +%End + + int exitStatus () const; + +%If ( KDE_3_2_0 - ) + int exitSignal () const; +%End + + bool writeStdin (const char*, int); + bool closeStdin (); + bool closeStdout (); + bool closeStderr (); + +%If ( KDE_3_2_0 - ) + bool closePty (); + void closeAll (); +%End + + const QValueList& args (); + void setRunPrivileged (bool); + bool runPrivileged () const; + void setEnvironment (const QString&, const QString&); + void setWorkingDirectory (const QString&); + +%If ( KDE_3_1_0 - ) + void setUseShell (bool, const char* = 0); + static QString quote (const QString&); +%End + + void detach (); + +%If ( KDE_3_2_0 - ) + + enum + { + PrioLowest, + PrioLow, + PrioLower, + PrioNormal, + PrioHigher, + PrioHigh, + PrioHighest + }; + + bool setPriority (int); +%End + + +signals: + void processExited (KProcess*); + void receivedStdout (KProcess*, char*, int); +//ig void receivedStdout (int, int&); + void receivedStderr (KProcess*, char*, int); + void wroteStdin (KProcess*); + +protected slots: + void slotChildOutput (int); + void slotChildError (int); + void slotSendData (int); + +protected: + void setupEnvironment (); + virtual int setupCommunication (KProcess::Communication); + virtual int commSetupDoneP (); + virtual int commSetupDoneC (); + virtual void processHasExited (int); + virtual void commClose (); + +%If ( KDE_3_2_0 - ) + void setBinaryExecutable (const char*); +%End + + int childOutput (int); + int childError (int); + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_5_2 ) + + enum Communication + { + NoCommunication, + Stdin, + Stdout, + Stderr, + AllOutput, + All, + NoRead + }; + +%End + + +public: + +%If ( KDE_3_2_0 - KDE_3_4_0 ) + void setUsePty (KProcess::Communication, bool); + KPty* pty () const; +%End + + +public: + +%If ( - KDE_3_2_0 ) + + enum RunMode + { + DontCare, + NotifyOnExit, + Block + }; + +%End + + +%If ( - KDE_3_2_0 ) + +private: + KProcess (const KProcess&); +%End + + +public: +//force + void setArguments (SIP_PYLIST) [void (char**)]; +%MethodCode +//takes arglist | (a Python list of strings) +//doc +// setArguments is the PyKDE equivalent of the stream operator methods (<<) +// in KDE's KProcess class - provide with a list of strings representing +// the arguments to the executable program set with setExecutable (PyKDE +// will continue to provide setExecutable even though it's deprecated in +// KDE (to also be replaced with stream operators) +//end + + PyObject *elem; + + for (int i = 0; i < PyList_Size (a0); i++) + { + elem = PyList_GET_ITEM (a0, i); + *sipCpp << PyString_AsString (elem); + } + + +%End + +//end + +}; // class KProcess + + +class KShellProcess : KProcess +{ +%TypeHeaderCode +#include +%End + + +public: + KShellProcess (const char* = 0); + virtual bool start (RunMode = NotifyOnExit , Communication = NoCommunication ); + static QString quote (const QString&); + +protected: +//igx virtual void virtual_hook (int, void*); + +%If ( - KDE_3_2_0 ) + +private: + KShellProcess (const KShellProcess&); +%End + + +}; // class KShellProcess + diff --git a/sip/tdecore/kprocio.sip b/sip/tdecore/kprocio.sip new file mode 100644 index 0000000..bb99e9a --- /dev/null +++ b/sip/tdecore/kprocio.sip @@ -0,0 +1,67 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KProcIO : KProcess +{ +%TypeHeaderCode +#include +%End + + +public: + KProcIO (QTextCodec* = 0); + +%If ( KDE_3_2_0 - ) + void setComm (Communication); +%End + + bool start (RunMode = NotifyOnExit , bool = 0); + bool writeStdin (const QString&, bool = 1); + bool writeStdin (const QCString&, bool); + bool writeStdin (const QByteArray&); + bool fputs (const QString&, bool = 1); + void closeWhenDone (); + int readln (QString& /Out/, bool = 1, bool* = 0); + int fgets (QString&, bool = 0); + void resetAll (); + void ackRead (); + void enableReadSignals (bool); + +signals: + void readReady (KProcIO*); + +protected: + void controlledEmission (); + +protected slots: + void received (KProcess*, char*, int); + void sent (KProcess*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KProcIO + diff --git a/sip/tdecore/kpty.sip b/sip/tdecore/kpty.sip new file mode 100644 index 0000000..7a27ee4 --- /dev/null +++ b/sip/tdecore/kpty.sip @@ -0,0 +1,52 @@ +// +// Copyright 2005 Jim Bublitz +// Earlier copyrights 1998 - 2004 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE_3_3_2 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KPty +{ +%TypeHeaderCode +#include +%End + + +public: + KPty (); + bool open (); + void close (); + void setCTty (); + void login (const char* = 0, const char* = 0); + void logout (); + void setWinSize (int, int); + void setXonXoff (bool); + const char* ttyName () const; + int masterFd () const; + int slaveFd () const; + +}; // class KPty + +%End + diff --git a/sip/tdecore/krandomsequence.sip b/sip/tdecore/krandomsequence.sip new file mode 100644 index 0000000..34474f4 --- /dev/null +++ b/sip/tdecore/krandomsequence.sip @@ -0,0 +1,45 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KRandomSequence +{ +%TypeHeaderCode +#include +%End + + +public: + KRandomSequence (long = 0); + KRandomSequence (const KRandomSequence&); + void setSeed (long = 1); + double getDouble (); + ulong getLong (ulong); + bool getBool (); +//ig void randomize (QGList*); + void modulate (int); + +}; // class KRandomSequence + diff --git a/sip/tdecore/kregexp.sip b/sip/tdecore/kregexp.sip new file mode 100644 index 0000000..03b9f5c --- /dev/null +++ b/sip/tdecore/kregexp.sip @@ -0,0 +1,44 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KRegExp +{ +%TypeHeaderCode +#include +%End + + +public: + KRegExp (); + KRegExp (const char*, const char* = ""); + bool compile (const char*, const char* = ""); + bool match (const char*); + const char* group (int); + int groupStart (int); + int groupEnd (int); + +}; // class KRegExp + diff --git a/sip/tdecore/krfcdate.sip b/sip/tdecore/krfcdate.sip new file mode 100644 index 0000000..7628e37 --- /dev/null +++ b/sip/tdecore/krfcdate.sip @@ -0,0 +1,42 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KRFCDate +{ +%TypeHeaderCode +#include +%End + + +public: + static time_t parseDate (const QString&); + static time_t parseDateISO8601 (const QString&); + static int localUTCOffset (); + static QCString rfc2822DateString (time_t, int); + static QCString rfc2822DateString (time_t); + +}; // class KRFCDate + diff --git a/sip/tdecore/krootprop.sip b/sip/tdecore/krootprop.sip new file mode 100644 index 0000000..66d3d72 --- /dev/null +++ b/sip/tdecore/krootprop.sip @@ -0,0 +1,52 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KRootProp +{ +%TypeHeaderCode +#include +%End + + +public: + KRootProp (const QString& = QString ::null ); + void setProp (const QString& = ""); + QString prop () const; + void destroy (); + QString readEntry (const QString&, const QString& = QString ::null ) const; + int readNumEntry (const QString&, int = 0) const; + QFont readFontEntry (const QString&, const QFont* = 0) const; + QColor readColorEntry (const QString&, const QColor* = 0) const; + QString writeEntry (const QString&, const QString&); + QString writeEntry (const QString&, int); + QString writeEntry (const QString&, const QFont&); + QString writeEntry (const QString&, const QColor&); + QString removeEntry (const QString&); + QStringList listEntries () const; + void sync (); + +}; // class KRootProp + diff --git a/sip/tdecore/ksavefile.sip b/sip/tdecore/ksavefile.sip new file mode 100644 index 0000000..84975c9 --- /dev/null +++ b/sip/tdecore/ksavefile.sip @@ -0,0 +1,52 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KSaveFile +{ +%TypeHeaderCode +#include +%End + + +public: + KSaveFile (const QString&, int = 438); + int status (); + QString name (); + int handle (); +//ig FILE* fstream (); + QFile* file (); + QTextStream* textStream (); + QDataStream* dataStream (); + void abort (); + bool close (); + +%If ( KDE_3_2_0 - ) + static bool backupFile (const QString&, const QString& = QString ::null , const QString& = QString ::fromLatin1 ("~" )); +%End + + +}; // class KSaveFile + diff --git a/sip/tdecore/ksharedptr.sip b/sip/tdecore/ksharedptr.sip new file mode 100644 index 0000000..f6ca092 --- /dev/null +++ b/sip/tdecore/ksharedptr.sip @@ -0,0 +1,45 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KShared +{ +%TypeHeaderCode +#include +%End + + +public: + KShared (); + KShared (const KShared&); + void _KShared_ref (); + void _KShared_unref (); + int _KShared_count (); + +protected: + ~KShared (); + +}; // class KShared + diff --git a/sip/tdecore/kshell.sip b/sip/tdecore/kshell.sip new file mode 100644 index 0000000..3285446 --- /dev/null +++ b/sip/tdecore/kshell.sip @@ -0,0 +1,77 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%ModuleHeaderCode +#include +extern char **pyArgvToC(PyObject *argvlist,int *argcp); +%End + + +%If ( KDE_3_2_0 - ) +namespace KShell +{ + +enum Options +{ + NoOptions, + TildeExpand, + AbortOnMeta +}; + + +enum Errors +{ + NoError, + BadQuoting, + FoundMeta +}; + +QStringList splitArgs (const QString&, int = 0, int* = 0); +QString joinArgs (const QStringList&); +QString joinArgsDQ (const QStringList&); +QString joinArgs (SIP_PYLIST) [QString (const char**, int = -1)]; +%MethodCode +//returns (QString) +//takes a0 | a Python list of strings + int argc; + char **argv; + + // Convert the list. + + if ((argv = pyArgvToC(a0, &argc)) == NULL) + return NULL; + + Py_BEGIN_ALLOW_THREADS + sipRes = new QString (KShell::joinArgs (argv, argc)); + Py_END_ALLOW_THREADS + +%End + +QString tildeExpand (const QString&); +QString homeDir (const QString&); +}; // namespace KShell + +%End + diff --git a/sip/tdecore/kshortcut.sip b/sip/tdecore/kshortcut.sip new file mode 100644 index 0000000..bfc03c9 --- /dev/null +++ b/sip/tdecore/kshortcut.sip @@ -0,0 +1,261 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KKey +{ +%TypeHeaderCode +#include +%End + + +public: + + enum + { + MOD_FLAG_COUNT + }; + + +%If ( KDE_3_1_3 - ) + + enum + { + QtWIN + }; + +%End + + + enum ModFlag + { + SHIFT, + CTRL, + ALT, + WIN + }; + + KKey (); + KKey (int); + KKey (const QKeySequence&); + KKey (const QKeyEvent*); + KKey (const KKey&); + KKey (const QString&); + KKey (uint, uint); + void clear (); + bool init (int); + bool init (const QKeySequence&); + bool init (const QKeyEvent*); + bool init (const KKey&); + bool init (const QString&); + bool init (uint, uint); + bool isNull () const; + uint sym () const; + uint modFlags () const; + int compare (const KKey&) const; + +%If ( KDE_3_1_4 - ) + bool operator == (const KKey&) const; + bool operator != (const KKey&) const; + bool operator < (const KKey&) const; +%End + + int keyCodeQt () const; + QString toString () const; + QString toStringInternal () const; + void simplify (); + static KKey& null (); + static QString modFlagLabel (KKey::ModFlag); + +public: + +%If ( - KDE_3_2_0 ) +//ig bool isValidQt () const; +//ig bool isValidNative () const; +%End + + +public: + +%If ( KDE_3_1_2 - KDE_3_1_3 ) + + enum + { + QtWIN + }; + +%End + + +public: + +%If ( - KDE_3_1_2 ) + + enum + { + QtWIN + }; + +%End + + +}; // class KKey + + +class KKeySequence +{ +%TypeHeaderCode +#include +%End + + +public: + + enum + { + MAX_KEYS + }; + + KKeySequence (); + KKeySequence (const QKeySequence&); + KKeySequence (const KKey&); +//ig KKeySequence (const KKeyNative&); + KKeySequence (const KKeySequence&); + KKeySequence (const QString&); + void clear (); + bool init (const QKeySequence&); + bool init (const KKey&); +//ig bool init (const KKeyNative&); + bool init (const KKeySequence&); + bool init (const QString&); + uint count () const; + const KKey& key (uint) const; + bool isTriggerOnRelease () const; + bool setKey (uint, const KKey&); + bool isNull () const; + bool startsWith (const KKeySequence&) const; + int compare (const KKeySequence&) const; + +%If ( KDE_3_1_4 - ) + bool operator == (const KKeySequence&) const; + bool operator != (const KKeySequence&) const; + bool operator < (const KKeySequence&) const; +%End + + QKeySequence qt () const; + int keyCodeQt () const; + QString toString () const; + QString toStringInternal () const; + static KKeySequence& null (); + +protected: + +public: + +%If ( - KDE_3_2_0 ) +//ig void setTriggerOnRelease (bool); +%End + + +}; // class KKeySequence + + +class KShortcut +{ +%TypeHeaderCode +#include +%End + + +public: + + enum + { + MAX_SEQUENCES + }; + + KShortcut (); + KShortcut (int); + KShortcut (const QKeySequence&); + KShortcut (const KKey&); + KShortcut (const KKeySequence&); + KShortcut (const KShortcut&); + KShortcut (const char*); + KShortcut (const QString&); + void clear (); + bool init (int); + bool init (const QKeySequence&); + bool init (const KKey&); + bool init (const KKeySequence&); + bool init (const KShortcut&); + bool init (const QString&); + uint count () const; + const KKeySequence& seq (uint) const; + int keyCodeQt () const; + bool isNull () const; + int compare (const KShortcut&) const; + +%If ( KDE_3_1_4 - ) + bool operator == (const KShortcut&) const; + bool operator != (const KShortcut&) const; + bool operator < (const KShortcut&) const; +%End + + bool contains (const KKey&) const; + bool contains (const KKeyNative&) const; + bool contains (const KKeySequence&) const; + bool setSeq (uint, const KKeySequence&); + bool append (const KKeySequence&); + +%If ( KDE_3_3_0 - ) + void remove (const KKeySequence&); +%End + + +%If ( KDE_3_2_0 - ) + bool append (const KKey&); + bool append (const KShortcut&); +%End + + +%If ( KDE_3_1_4 - ) +//ig operator QKeySequence () const; +%End + + QString toString () const; + QString toStringInternal (const KShortcut* = 0) const; + static KShortcut& null (); + +protected: + +public: + +%If ( KDE_3_1_4 - ) +//ig operator int () const; +%End + + +}; // class KShortcut + diff --git a/sip/tdecore/kshortcutlist.sip b/sip/tdecore/kshortcutlist.sip new file mode 100644 index 0000000..cdf22c9 --- /dev/null +++ b/sip/tdecore/kshortcutlist.sip @@ -0,0 +1,133 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KShortcutList +{ +%TypeHeaderCode +#include +#include +#include +%End + + +public: + KShortcutList (); + virtual uint count () const = 0; + virtual QString name (uint) const = 0; + virtual QString label (uint) const = 0; + virtual QString whatsThis (uint) const = 0; + virtual const KShortcut& shortcut (uint) const = 0; + virtual const KShortcut& shortcutDefault (uint) const = 0; + virtual bool isConfigurable (uint) const = 0; + virtual bool setShortcut (uint, const KShortcut&) = 0; + virtual bool isGlobal (uint) const; + virtual int index (const QString&) const; + virtual int index (const KKeySequence&) const; + virtual const KInstance* instance () const; + + enum Other + { + + }; + + virtual QVariant getOther (KShortcutList::Other, uint) const = 0; + virtual bool setOther (KShortcutList::Other, uint, QVariant) = 0; + virtual bool save () const = 0; + virtual bool readSettings (const QString& = QString ::null , KConfigBase* = 0); + virtual bool writeSettings (const QString& = QString ::null , KConfigBase* = 0, bool = 0, bool = 0) const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KShortcutList + + +class KAccelShortcutList : KShortcutList +{ +%TypeHeaderCode +#include +#include +#include +%End + + +public: + KAccelShortcutList (KAccel*); + KAccelShortcutList (KGlobalAccel*); + KAccelShortcutList (KAccelActions&, bool); + virtual uint count () const; + virtual QString name (uint) const; + virtual QString label (uint) const; + virtual QString whatsThis (uint) const; + virtual const KShortcut& shortcut (uint) const; + virtual const KShortcut& shortcutDefault (uint) const; + virtual bool isConfigurable (uint) const; + virtual bool setShortcut (uint, const KShortcut&); + virtual bool isGlobal (uint) const; + virtual QVariant getOther (KShortcutList::Other, uint) const; + virtual bool setOther (KShortcutList::Other, uint, QVariant); + virtual bool save () const; + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KAccelShortcutList + +namespace KStdAccel +{ + +class ShortcutList : KShortcutList +{ +%TypeHeaderCode +#include +#include +#include +%End + + +public: + ShortcutList (); + virtual uint count () const; + virtual QString name (uint) const; + virtual QString label (uint) const; + virtual QString whatsThis (uint) const; + virtual const KShortcut& shortcut (uint) const; + virtual const KShortcut& shortcutDefault (uint) const; + virtual bool isConfigurable (uint) const; + virtual bool setShortcut (uint, const KShortcut&); + virtual QVariant getOther (KShortcutList::Other, uint) const; + virtual bool setOther (KShortcutList::Other, uint, QVariant); + virtual bool save () const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class ShortcutList + +}; // namespace KStdAccel + diff --git a/sip/tdecore/ksimpleconfig.sip b/sip/tdecore/ksimpleconfig.sip new file mode 100644 index 0000000..17b70a3 --- /dev/null +++ b/sip/tdecore/ksimpleconfig.sip @@ -0,0 +1,50 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KSimpleConfig : KConfig +{ +%TypeHeaderCode +#include +%End + + +public: + KSimpleConfig (const QString&, bool = 0); + +%If ( KDE_3_2_0 - ) + KSimpleConfig (KConfigBackEnd*, bool = 0); +%End + + virtual void sync (); + +private: + KSimpleConfig (const KSimpleConfig&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KSimpleConfig + diff --git a/sip/tdecore/ksock.sip b/sip/tdecore/ksock.sip new file mode 100644 index 0000000..5cb653e --- /dev/null +++ b/sip/tdecore/ksock.sip @@ -0,0 +1,97 @@ +// +// Copyright 2005 Jim Bublitz +// Earlier copyrights 1998 - 2004 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE_3_3_2 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KSocket : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KSocket (int); + KSocket (const char*, ushort, int = 30); + KSocket (const char*); + int socket () const; + void enableRead (bool); + void enableWrite (bool); + +signals: + void readEvent (KSocket*); + void writeEvent (KSocket*); + void closeEvent (KSocket*); + +public slots: + void slotWrite (int); + void slotRead (int); + +protected: + bool connect (const QString&, ushort, int = 0); + bool connect (const char*); + +private: + KSocket (const KSocket&); + +}; // class KSocket + + +class KServerSocket : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KServerSocket (ushort, bool); + KServerSocket (const char*, bool); + bool bindAndListen (); + int socket () const; + ushort port (); + +public slots: + virtual void slotAccept (int); + +signals: + void accepted (KSocket*); + +protected: + bool init (ushort); + bool init (const char*); + +private: + KServerSocket (const KServerSocket&); + +public: + +%If ( - KDE_3_1_2 ) + KServerSocket (ushort); + KServerSocket (const char*); +%End + + +}; // class KServerSocket + diff --git a/sip/tdecore/kstartupinfo.sip b/sip/tdecore/kstartupinfo.sip new file mode 100644 index 0000000..319ee2d --- /dev/null +++ b/sip/tdecore/kstartupinfo.sip @@ -0,0 +1,280 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KStartupInfo : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_2_0 - ) + static void disableAutoAppStartedSending (bool = 1); +%End + + static void appStarted (); + +%If ( KDE_3_2_0 - ) + static void appStarted (const QCString&); + static void setNewStartupId (QWidget*, const QCString&); + static void silenceStartup (bool); + +%If ( KDE_3_3_0 - ) + static QCString createNewStartupId (); +%End + +%End + + +%If ( KDE_3_1_1 - ) + + enum + { + CleanOnCantDetect, + DisableKWinModule, + AnnounceSilenceChanges + }; + +%End + + KStartupInfo (bool, QObject* /TransferThis/ = 0, const char* = 0); + static bool sendStartup (const KStartupInfoId&, const KStartupInfoData&); +//ig static bool sendStartupX (Display*, const KStartupInfoId&, const KStartupInfoData&); + static bool sendChange (const KStartupInfoId&, const KStartupInfoData&); +//ig static bool sendChangeX (Display*, const KStartupInfoId&, const KStartupInfoData&); + static bool sendFinish (const KStartupInfoId&); +//ig static bool sendFinishX (Display*, const KStartupInfoId&); + static bool sendFinish (const KStartupInfoId&, const KStartupInfoData&); +//ig static bool sendFinishX (Display*, const KStartupInfoId&, const KStartupInfoData&); + static KStartupInfoId currentStartupIdEnv (); + static void resetStartupEnv (); + + enum startup_t + { + NoMatch, + Match, + CantDetect + }; + + KStartupInfo::startup_t checkStartup (WId); + KStartupInfo::startup_t checkStartup (WId, KStartupInfoId&); + KStartupInfo::startup_t checkStartup (WId, KStartupInfoData&); + KStartupInfo::startup_t checkStartup (WId, KStartupInfoId&, KStartupInfoData&); + void setTimeout (uint); + static void setWindowStartupId (WId, const QCString&); + static QCString windowStartupId (WId); + +%If ( KDE_3_2_0 - ) + static void handleAutoAppStartedSending (); +%End + + +signals: + void gotNewStartup (const KStartupInfoId&, const KStartupInfoData&); + void gotStartupChange (const KStartupInfoId&, const KStartupInfoData&); + void gotRemoveStartup (const KStartupInfoId&, const KStartupInfoData&); + +protected: + virtual void customEvent (QCustomEvent*); + +}; // class KStartupInfo + + +class KStartupInfoId +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_1_4 - ) + bool operator == (const KStartupInfoId&) const; + bool operator != (const KStartupInfoId&) const; +%End + + bool none () const; + void initId (const QCString& = ""); + const QCString& id () const; + +%If ( KDE_3_3_0 - ) + ulong timestamp () const; +%End + + bool setupStartupEnv () const; + KStartupInfoId (); + KStartupInfoId (const KStartupInfoId&); + +%If ( KDE_3_1_4 - ) + bool operator < (const KStartupInfoId&) const; +%End + + +private: + KStartupInfoId (const QString&); + +}; // class KStartupInfoId + + +class KStartupInfoData +{ +%TypeHeaderCode +#include +%End + + +public: + void setBin (const QString&); + const QString& bin () const; + void setName (const QString&); + const QString& findName () const; + const QString& name () const; + +%If ( KDE_3_2_0 - ) + void setDescription (const QString&); + const QString& findDescription () const; + const QString& description () const; +%End + + void setIcon (const QString&); + const QString& findIcon () const; + const QString& icon () const; + void setDesktop (int); + int desktop () const; + void setWMClass (const QCString&); + const QCString findWMClass () const; + const QCString& WMClass () const; + void addPid (pid_t); + const QValueList& pids () const; + bool is_pid (pid_t) const; + void setHostname (const QCString& = QCString ()); + const QCString& hostname () const; + +%If ( KDE_3_1_1 - ) + + enum TriState + { + Yes, + No, + Unknown + }; + + void setSilent (KStartupInfoData::TriState); + KStartupInfoData::TriState silent () const; + +%If ( KDE_3_2_0 - ) + void setTimestamp (ulong); + ulong timestamp () const; + int screen () const; + void setScreen (int); +%End + +%End + + void update (const KStartupInfoData&); + KStartupInfoData (); + KStartupInfoData (const KStartupInfoData&); + +private: + KStartupInfoData (const QString&); + +}; // class KStartupInfoData + +/*%MappedType QValueList +//converts a Python list of long +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + // Handle no list. + + if (!sipCpp) + return PyList_New(0); + + // Convert to a Python list of long. + + PyObject *l; + + // Create the list. + + if ((l = PyList_New(sipCpp -> count())) == NULL) + return NULL; + + // Get it. + + for (uint i = 0; i < sipCpp -> count(); ++i) + if (PyList_SetItem(l,i,PyLong_FromLong((long)(*sipCpp)[i])) < 0) + { + Py_DECREF(l); + + return NULL; + } + + return l; +%End + +%ConvertToTypeCode + // Convert a Python list of long to a QValueList on the heap. + + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + if (sipPy == Py_None) + { + *sipCppPtr = NULL; + + return 0; + } + + QValueList *qvl = new QValueList; + + PyErr_Clear(); + + for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) + { + qvl -> append((pid_t)PyLong_AsLong(PyList_GET_ITEM(sipPy,i))); + + if (PyErr_Occurred() != NULL) + { + delete qvl; + *sipIsErr = 1; + + return 0; + } + } + + *sipCppPtr = qvl; + + return 1; +%End +};*/ + + diff --git a/sip/tdecore/kstaticdeleter.sip b/sip/tdecore/kstaticdeleter.sip new file mode 100644 index 0000000..fb3778d --- /dev/null +++ b/sip/tdecore/kstaticdeleter.sip @@ -0,0 +1,38 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KStaticDeleterBase +{ +%TypeHeaderCode +#include +%End + + +public: + virtual void destructObject () = 0; + +}; // class KStaticDeleterBase + diff --git a/sip/tdecore/kstdaccel.sip b/sip/tdecore/kstdaccel.sip new file mode 100644 index 0000000..f0ecb36 --- /dev/null +++ b/sip/tdecore/kstdaccel.sip @@ -0,0 +1,441 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%ModuleHeaderCode +#include +%End + +namespace KStdAccel +{ + +%If ( KDE_3_4_0 - ) + +enum StdAccel +{ + AccelNone, + Open, + New, + Close, + Save, + Print, + Quit, + Undo, + Redo, + Cut, + Copy, + Paste, + SelectAll, + Deselect, + DeleteWordBack, + DeleteWordForward, + Find, + FindNext, + FindPrev, + Replace, + Home, + End, + Prior, + Next, + GotoLine, + AddBookmark, + ZoomIn, + ZoomOut, + Up, + Back, + Forward, + Reload, + PopupMenuContext, + ShowMenubar, + Help, + WhatsThis, + TextCompletion, + PrevCompletion, + NextCompletion, + SubstringCompletion, + RotateUp, + RotateDown, + TabNext, + TabPrev, + FullScreen, + BackwardWord, + ForwardWord, + BeginningOfLine, + EndOfLine, + PasteSelection, + WhatThis +}; + +%End + +const KShortcut& shortcut (KStdAccel::StdAccel); +QString name (KStdAccel::StdAccel); +QString label (KStdAccel::StdAccel); +QString whatsThis (KStdAccel::StdAccel); +KStdAccel::StdAccel findStdAccel (const KKeySequence&); +KShortcut shortcutDefault (KStdAccel::StdAccel); +KShortcut shortcutDefault3 (KStdAccel::StdAccel); +KShortcut shortcutDefault4 (KStdAccel::StdAccel); +const KShortcut& open (); +const KShortcut& openNew (); +const KShortcut& close (); +const KShortcut& save (); +const KShortcut& print () /PyName=print_/; +const KShortcut& quit (); +const KShortcut& undo (); +const KShortcut& redo (); +const KShortcut& cut (); +const KShortcut& copy (); +const KShortcut& paste (); + +%If ( KDE_3_4_0 - ) +const KShortcut& pasteSelection (); +%End + +const KShortcut& selectAll (); +const KShortcut& deleteWordBack (); +const KShortcut& deleteWordForward (); +const KShortcut& find (); +const KShortcut& findNext (); +const KShortcut& findPrev (); +const KShortcut& replace (); +const KShortcut& zoomIn (); +const KShortcut& zoomOut (); +//ig const KShortcut& insert (); +const KShortcut& home (); +const KShortcut& end (); + +%If ( KDE_3_3_0 - ) +const KShortcut& beginningOfLine (); +const KShortcut& endOfLine (); +%End + +const KShortcut& prior (); +const KShortcut& next (); +const KShortcut& gotoLine (); +const KShortcut& addBookmark (); + +%If ( KDE_3_2_0 - ) +const KShortcut& tabNext (); +const KShortcut& tabPrev (); +const KShortcut& fullScreen (); +%End + +const KShortcut& help (); +const KShortcut& completion (); +const KShortcut& prevCompletion (); +const KShortcut& nextCompletion (); +const KShortcut& substringCompletion (); +const KShortcut& rotateUp (); +const KShortcut& rotateDown (); +const KShortcut& popupMenuContext (); +const KShortcut& whatsThis (); +const KShortcut& reload (); +const KShortcut& up (); +const KShortcut& back (); +const KShortcut& forward (); + +%If ( KDE_3_3_0 - ) +const KShortcut& backwardWord (); +const KShortcut& forwardWord (); +%End + +const KShortcut& showMenubar (); +QString action (KStdAccel::StdAccel); +QString description (KStdAccel::StdAccel); +int key (KStdAccel::StdAccel); +int defaultKey (KStdAccel::StdAccel); +bool isEqual (const QKeyEvent*, int); + +%If ( KDE_3_3_0 - KDE_3_4_0 ) + +enum StdAccel +{ + AccelNone, + Open, + New, + Close, + Save, + Print, + Quit, + Undo, + Redo, + Cut, + Copy, + Paste, + SelectAll, + Deselect, + DeleteWordBack, + DeleteWordForward, + Find, + FindNext, + FindPrev, + Replace, + Home, + End, + Prior, + Next, + GotoLine, + AddBookmark, + ZoomIn, + ZoomOut, + Up, + Back, + Forward, + Reload, + PopupMenuContext, + ShowMenubar, + Help, + WhatsThis, + TextCompletion, + PrevCompletion, + NextCompletion, + SubstringCompletion, + RotateUp, + RotateDown, + TabNext, + TabPrev, + FullScreen, + BackwardWord, + ForwardWord, + BeginningOfLine, + EndOfLine, + WhatThis +}; + +%End + + +%If ( KDE_3_2_0 - KDE_3_3_0 ) + +enum StdAccel +{ + AccelNone, + Open, + New, + Close, + Save, + Print, + Quit, + Undo, + Redo, + Cut, + Copy, + Paste, + SelectAll, + Deselect, + DeleteWordBack, + DeleteWordForward, + Find, + FindNext, + FindPrev, + Replace, + Home, + End, + Prior, + Next, + GotoLine, + AddBookmark, + ZoomIn, + ZoomOut, + Up, + Back, + Forward, + Reload, + PopupMenuContext, + ShowMenubar, + Help, + WhatsThis, + TextCompletion, + PrevCompletion, + NextCompletion, + SubstringCompletion, + RotateUp, + RotateDown, + TabNext, + TabPrev, + FullScreen, + WhatThis +}; + +%End + + +%If ( KDE_3_1_3 - KDE_3_2_0 ) + +enum StdAccel +{ + AccelNone, + Open, + New, + Close, + Save, + Print, + Quit, + Undo, + Redo, + Cut, + Copy, + Paste, + SelectAll, + Deselect, + DeleteWordBack, + DeleteWordForward, + Find, + FindNext, + FindPrev, + Replace, + Home, + End, + Prior, + Next, + GotoLine, + AddBookmark, + ZoomIn, + ZoomOut, + Up, + Back, + Forward, + Reload, + PopupMenuContext, + ShowMenubar, + Help, + WhatsThis, + TextCompletion, + PrevCompletion, + NextCompletion, + SubstringCompletion, + RotateUp, + RotateDown, + WhatThis +}; + +%End + + +%If ( KDE_3_1_2 - KDE_3_1_3 ) + +enum StdAccel +{ + AccelNone, + Open, + New, + Close, + Save, + Print, + Quit, + Undo, + Redo, + Cut, + Copy, + Paste, + SelectAll, + Deselect, + DeleteWordBack, + DeleteWordForward, + Find, + FindNext, + FindPrev, + Replace, + Home, + End, + Prior, + Next, + GotoLine, + AddBookmark, + ZoomIn, + ZoomOut, + Up, + Back, + Forward, + Reload, + PopupMenuContext, + ShowMenubar, + Help, + WhatsThis, + TextCompletion, + PrevCompletion, + NextCompletion, + SubstringCompletion, + RotateUp, + RotateDown, + WhatThis +}; + +%End + + +%If ( - KDE_3_1_2 ) + +enum StdAccel +{ + AccelNone, + Open, + New, + Close, + Save, + Print, + Quit, + Undo, + Redo, + Cut, + Copy, + Paste, + SelectAll, + Deselect, + DeleteWordBack, + DeleteWordForward, + Find, + FindNext, + FindPrev, + Replace, + Home, + End, + Prior, + Next, + GotoLine, + AddBookmark, + ZoomIn, + ZoomOut, + Up, + Back, + Forward, + Reload, + PopupMenuContext, + ShowMenubar, + Help, + WhatsThis, + TextCompletion, + PrevCompletion, + NextCompletion, + SubstringCompletion, + RotateUp, + RotateDown, + WhatThis +}; + +%End + +}; // namespace KStdAccel + diff --git a/sip/tdecore/kstddirs.sip b/sip/tdecore/kstddirs.sip new file mode 100644 index 0000000..c83819c --- /dev/null +++ b/sip/tdecore/kstddirs.sip @@ -0,0 +1,69 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KStandardDirs +{ +%TypeHeaderCode +#include +%End + + +public: + KStandardDirs (); + void addPrefix (const QString&); + bool addResourceType (const char*, const QString&); + bool addResourceDir (const char*, const QString&); + QString findResource (const char*, const QString&) const; + Q_UINT32 calcResourceHash (const char*, const QString&, bool) const; + QStringList findDirs (const char*, const QString&) const; + QString findResourceDir (const char*, const QString&) const; + QStringList findAllResources (const char*, const QString& = QString::null, bool = 0, bool = 0) const; + QStringList findAllResources (const char*, const QString&, bool, bool, QStringList&) const; + static QString findExe (const QString&, const QString& = QString::null, bool = 0); + static int findAllExe (QStringList&, const QString&, const QString& = QString::null, bool = 0); + void addKDEDefaults (); + bool addCustomized (KConfig*); + QStringList resourceDirs (const char*) const; + QStringList allTypes () const; + QString saveLocation (const char*, const QString& = QString::null, bool = 1) const; + static bool makeDir (const QString&, int = 493); + static QString kde_default (const char*); + QString kfsstnd_prefixes (); + QString localkdedir () const; + static bool exists (const QString&); + +private: + KStandardDirs (const KStandardDirs&); + +}; // class KStandardDirs + + +%ModuleCode +#include +%End + +QString locate (const char*, const QString&, const KInstance* = KGlobal::instance()); +QString locateLocal (const char*, const QString&, const KInstance* = KGlobal::instance()); diff --git a/sip/tdecore/kstringhandler.sip b/sip/tdecore/kstringhandler.sip new file mode 100644 index 0000000..3084b52 --- /dev/null +++ b/sip/tdecore/kstringhandler.sip @@ -0,0 +1,89 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KStringHandler +{ +%TypeHeaderCode +#include +%End + + +public: + static QString word (const QString&, uint); + static QString word (const QString&, const char*); + static QString insword (const QString&, const QString&, uint); + static QString setword (const QString&, const QString&, uint); + static QString remrange (const QString&, const char*); + static QString remword (const QString&, uint); + static QString remword (const QString&, const QString&); + static QString capwords (const QString&); + static QStringList capwords (const QStringList&); + static QString reverse (const QString&); + static QStringList reverse (const QStringList&); + static QString ljust (const QString&, uint); + static QString rjust (const QString&, uint); + static QString center (const QString&, uint); + static QString lsqueeze (const QString&, uint = 40); + +%If ( KDE_3_2_0 - ) + static QString lEmSqueeze (const QString&, const QFontMetrics&, uint = 30); + static QString lPixelSqueeze (const QString&, const QFontMetrics&, uint); +%End + + static QString csqueeze (const QString&, uint = 40); + +%If ( KDE_3_2_0 - ) + static QString cEmSqueeze (const QString&, const QFontMetrics&, uint = 30); + static QString cPixelSqueeze (const QString&, const QFontMetrics&, uint); +%End + + static QString rsqueeze (const QString&, uint = 40); + +%If ( KDE_3_2_0 - ) + static QString rEmSqueeze (const QString&, const QFontMetrics&, uint = 30); + static QString rPixelSqueeze (const QString&, const QFontMetrics&, uint); +%End + + static bool matchFileName (const QString&, const QString&); +//ig static QStringList perlSplit (const QString&, const QString&, uint = 0); +//ig static QStringList perlSplit (const QChar&, const QString&, uint = 0); +//ig static QStringList perlSplit (const QRegExp&, const QString&, uint = 0); + +%If ( KDE_3_1_0 - ) + static QString tagURLs (const QString&); + +%If ( KDE_3_2_0 - ) + static QString obscure (const QString&); + static bool isUtf8 (const char*); + static QString from8Bit (const char*); +%End + +%End + + static bool matchFilename (const QString&, const QString&); + +}; // class KStringHandler + diff --git a/sip/tdecore/ktempdir.sip b/sip/tdecore/ktempdir.sip new file mode 100644 index 0000000..26da116 --- /dev/null +++ b/sip/tdecore/ktempdir.sip @@ -0,0 +1,58 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KTempDir +{ +%TypeHeaderCode +#include +#include +%End + + +public: + KTempDir (QString = QString ::null , int = 448); + void setAutoDelete (bool); + int status () const; + QString name () const; + QDir* qDir (); + void unlink (); + bool existing () const; + +%If ( KDE_3_5_2 - ) + static bool removeDir (const QString&); +%End + + +protected: + bool create (const QString&, int); + void setError (int); + +}; // class KTempDir + +%End + diff --git a/sip/tdecore/ktempfile.sip b/sip/tdecore/ktempfile.sip new file mode 100644 index 0000000..108b292 --- /dev/null +++ b/sip/tdecore/ktempfile.sip @@ -0,0 +1,58 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KTempFile +{ +%TypeHeaderCode +#include +%End + + +public: + KTempFile (QString = QString ::null , QString = QString ::null , int = 384); + void setAutoDelete (bool); + int status (); + QString name (); + int handle (); +//ig FILE* fstream (); + QTextStream* textStream (); + QDataStream* dataStream (); + QFile* file (); + void unlink (); + +%If ( KDE_3_3_0 - ) + bool sync (); +%End + + bool close (); + +protected: + KTempFile (bool); + bool create (const QString&, const QString&, int); + void setError (int); + +}; // class KTempFile + diff --git a/sip/tdecore/ktimezones.sip b/sip/tdecore/ktimezones.sip new file mode 100644 index 0000000..dc31c4f --- /dev/null +++ b/sip/tdecore/ktimezones.sip @@ -0,0 +1,272 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_5_0 - ) + +class KTimezoneSource : KShared +{ +%TypeHeaderCode +#include +%End + + +public: + KTimezoneSource (const QString&); + virtual QString db (); + virtual bool parse (const QString&, KTimezoneDetails&) const; + +}; // class KTimezoneSource + +%End + + +%If ( KDE_3_5_0 - ) + +class KTimezone +{ +%TypeHeaderCode +#include +%End + + +public: + static const float UNKNOWN; + static bool isValidLatitude (float); + static bool isValidLongitude (float); + KTimezone (KSharedPtr, const QString&, const QString& = QString (), float = KTimezone ::UNKNOWN , float = KTimezone ::UNKNOWN , const QString& = QString ()); + QString name () const; + QString countryCode () const; + float latitude () const; + float longitude () const; + int offset (Qt::TimeSpec = Qt ::UTC ) const; + int offset (const QDateTime&) const; + QDateTime convert (const KTimezone*, const QDateTime&) const; + QString comment () const; + bool parse (KTimezoneDetails&) const; + +private: + KTimezone (const KTimezone&); + +public: +//force + typedef KSharedPtr TZSourcePtr; +//end + +}; // class KTimezone + +%End + + +%If ( KDE_3_5_0 - ) + +class KTimezoneDetails +{ +%TypeHeaderCode +#include +%End + + +public: + KTimezoneDetails (); + virtual void parseEnded (); + virtual void parseStarted (); + virtual void gotHeader (uint, uint, uint, uint, uint, uint); + virtual void gotTransitionTime (int, uint); + virtual void gotLocalTimeIndex (int, uint); + virtual void gotLocalTime (int, int, bool, uint); + virtual void gotAbbreviation (int, const QString&); + virtual void gotLeapAdjustment (int, uint, uint); + virtual void gotIsStandard (int, bool); + virtual void gotIsUTC (int, bool); + +}; // class KTimezoneDetails + +%End + + +%If ( KDE_3_5_0 - ) + +class KTimezones +{ +%TypeHeaderCode +#include +%End + + +public: + KTimezones (); + const KTimezone* local (); + const KTimezone* zone (const QString&); + typedef QMap ZoneMap; + const KTimezones::ZoneMap allZones (); + void add (KTimezone*); + +private: + KTimezones (const KTimezones&); + +}; // class KTimezones + +%End + + + +%If (KDE_3_5_0 - ) +%MappedType KSharedPtr +//converts KSharedPtr +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + // Convert to a Python instance + + if (!sipCpp) + return NULL; + + KSharedPtr *cPtr = new KSharedPtr (*(KSharedPtr *)sipCpp); + KTimezoneSource *cpp = cPtr->data (); + PyObject *obj = sipConvertFromInstance (cpp, sipClass_KTimezoneSource, sipTransferObj); + + return obj; +%End + +%ConvertToTypeCode + // Convert a Python instance to a Ptr on the heap. + + if (sipIsErr == NULL) + return PyInstance_Check(sipPy); + + int iserr = 0; + KTimezoneSource *cpp = (KTimezoneSource *)sipForceConvertToType(sipPy, sipType_KTimezoneSource, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + return 0; + } + + *sipCppPtr = new KSharedPtr (cpp); + + return 1; +%End +}; +%End + + +%If (KDE_3_5_0 - ) +%MappedType KTimezones::ZoneMap +//converts a Python dict of QString:KTimezone +{ +%TypeHeaderCode +#include +#include +#include +%End + +%ConvertFromTypeCode + // Convert to a Python dict + + if (!sipCpp) + return PyDict_New(); + + PyObject *dict; + + // Create the dictionary. + + if ((dict = PyDict_New()) == NULL) + return NULL; + + // Get it. + + const QMap cppmap = *sipCpp; + QMap::ConstIterator it; + + for (it = cppmap.begin (); it != cppmap.end (); ++it) + { + QString acpp = it.key (); + KTimezone *bcpp = it.data (); + PyObject *ainst; + PyObject *binst = NULL; + if (((ainst = sipConvertFromNewType(new QString(acpp), sipType_QString, sipTransferObj)) == NULL) + || ((binst = sipConvertFromType(bcpp, sipType_KTimezone, sipTransferObj)) == NULL) + || (PyDict_SetItem (dict, ainst, binst) < 0)) + { + Py_XDECREF (ainst); + Py_XDECREF (binst); + Py_DECREF (dict); + return NULL; + } + } + + return dict; +%End + + +%ConvertToTypeCode + // Convert a Python dictionary to a QMap on the heap. + + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + QMap *cppmap = new QMap; + + PyObject *aelem, *belem; + SIP_SSIZE_T pos = 0; + QString *acpp; + KTimezone *bcpp; + + while (PyDict_Next(sipPy, &pos, &aelem, &belem)) + { + int iserr = 0, acpp_state; + + acpp = (QString *)sipForceConvertToType(aelem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr); + bcpp = (KTimezone *)sipForceConvertToType(belem, sipType_KTimezone, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + if (acpp) + sipReleaseType(acpp, sipType_QString, acpp_state); + + *sipIsErr = 1; + delete cppmap; + return 0; + } + + cppmap->insert (*acpp, bcpp); + + sipReleaseType(acpp, sipType_QString, acpp_state); + } + + *sipCppPtr = cppmap; + + return 1; +%End +}; +%End + + diff --git a/sip/tdecore/kuniqueapplication.sip b/sip/tdecore/kuniqueapplication.sip new file mode 100644 index 0000000..a15e8ad --- /dev/null +++ b/sip/tdecore/kuniqueapplication.sip @@ -0,0 +1,68 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KUniqueApplication : KApplication, DCOPObject +{ +%TypeHeaderCode +#include +%End + + +public: + KUniqueApplication (bool, bool, bool); + +%If ( KDE_3_3_0 - ) +//ig KUniqueApplication (Display*, Qt::HANDLE = 0, Qt::HANDLE = 0, bool = 1, bool = 0); +%End + + static void addCmdLineOptions (); + static bool start (); + bool process (const QCString&, const QByteArray&, QCString&, QByteArray&); + virtual int newInstance (); + +%If ( KDE_3_3_0 - ) + bool restoringSession (); + static void setHandleAutoStarted (); +%End + + +protected: + +%If ( KDE_3_3_0 - ) + virtual void virtual_hook (int, void*); +%End + + +public: + +%If ( - KDE_3_3_0 ) + KUniqueApplication (bool = 1, bool = 1); + virtual DCOPClient* dcopClient (); +%End + + +}; // class KUniqueApplication + diff --git a/sip/tdecore/kurl.sip b/sip/tdecore/kurl.sip new file mode 100644 index 0000000..7acf594 --- /dev/null +++ b/sip/tdecore/kurl.sip @@ -0,0 +1,408 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KURL +{ +%TypeHeaderCode +#include +%End + + +public: + + enum AdjustementFlags + { + NoAdjustements, + StripFileProtocol + }; + + +%If ( KDE_3_2_0 - ) + + enum URIMode + { + Auto, + Invalid, + RawURI, + URL, + Mailto + }; + +%End + + KURL (); + KURL (const QString&, int = 0); + KURL (const char*, int = 0); + KURL (const QCString&, int = 0); + KURL (const KURL&); + KURL (const QUrl&); + KURL (const KURL&, const QString&, int = 0); + QString protocol () const; + void setProtocol (const QString&); + +%If ( KDE_3_2_0 - ) + int uriMode () const; +%End + + QString user () const; + void setUser (const QString&); + bool hasUser () const; + QString pass () /PyName=pass_/; + void setPass (const QString&); + bool hasPass () const; + QString host () const; + void setHost (const QString&); + bool hasHost () const; + ushort port () const; + void setPort (ushort); + QString path () const; + QString path (int) const; + void setPath (const QString&); + bool hasPath () const; + void cleanPath (bool = 0); + void adjustPath (int); + void setEncodedPathAndQuery (const QString&, int = 0); + void setEncodedPath (const QString&, int = 0); + QString encodedPathAndQuery (int = 0, bool = 0, int = 0) const; + void setQuery (const QString&, int = 0); + QString query () const; + QString ref () const; + void setRef (const QString&); + bool hasRef () const; + QString htmlRef () const; + QString encodedHtmlRef () const; + void setHTMLRef (const QString&); + bool hasHTMLRef () const; + bool isValid () const; + bool isMalformed () const; + bool isLocalFile () const; + void setFileEncoding (const QString&); + QString fileEncoding () const; + bool hasSubURL () const; + void addPath (const QString&); + QString queryItem (const QString&) const; + +%If ( KDE_3_2_0 - ) + QString queryItem (const QString&, int) const; +%End + + +%If ( KDE_3_1_0 - ) + + enum QueryItemsOptions + { + CaseInsensitiveKeys + }; + + QMap queryItems (int = 0) const; + +%If ( KDE_3_2_0 - ) + QMap queryItems (int, int) const; +%End + + void addQueryItem (const QString&, const QString&, int = 0); + void removeQueryItem (const QString&); +%End + + void setFileName (const QString&); + QString fileName (bool = 1) const; + QString directory (bool = 1, bool = 1) const; + +%If ( KDE_3_2_0 - ) + void setDirectory (const QString&); +%End + + bool cd (const QString&); + QString url (int = 0, int = 0) const; + QString prettyURL (int = 0) const; + QString prettyURL (int, KURL::AdjustementFlags) const; + +%If ( KDE_3_4_0 - ) + QString pathOrURL () const; +%End + + +%If ( KDE_3_0_1 - ) + QString htmlURL () const; +%End + + bool isEmpty () const; + KURL upURL () const; + +%If ( KDE_3_2_0 - ) + bool operator < (const KURL&) const; +%End + + +%If ( KDE_3_1_4 - ) + bool operator == (const KURL&) const; + bool operator == (const QString&) const; + bool operator != (const KURL&) const; + bool operator != (const QString&) const; +%End + + bool cmp (const KURL&, bool = 0) const; + +%If ( KDE_3_1_0 - ) + bool equals (const KURL&, bool = 0) const; +%End + + bool isParentOf (const KURL&) const; + static KURL::List split (const QString&); + static KURL::List split (const KURL&); + static KURL join (const KURL::List&); + +%If ( KDE_3_1_0 - ) + static KURL fromPathOrURL (const QString&); +%End + + static QString encode_string (const QString&, int = 0); + static QString encode_string_no_slash (const QString&, int = 0); + static QString decode_string (const QString&, int = 0); + static bool isRelativeURL (const QString&); + +%If ( KDE_3_2_0 - ) + static QString relativeURL (const KURL&, const KURL&, int = 0); + static QString relativePath (const QString&, const QString&, bool* = 0); + static KURL::URIMode uriModeForProtocol (const QString&); +%End + + QString filename (bool = 1) const; + +protected: + void reset (); + +%If ( KDE_3_2_0 - ) + void parseURL (const QString&, int = 0); + void parseRawURI (const QString&, int = 0); + void parseMailto (const QString&, int = 0); +%End + + void parse (const QString&, int = 0); + +public: +//force + + class List + { + + public: + List (); + List (const QStringList&); + QStringList toStringList () const; + bool isEmpty () const; + void append (const KURL&); + void prepend (const KURL&); + void remove (const KURL&); + const KURL& first () const; + const KURL& last () const; + int findIndex (const KURL&) const; + uint contains (const KURL&) const; + uint count () const; + void clear (); + int __len__ () /NonLazy/; +%MethodCode +//returns (int) + Py_BEGIN_ALLOW_THREADS + sipRes = sipCpp -> count(); + Py_END_ALLOW_THREADS +%End + + void __setitem__ (int, const KURL&); +%MethodCode +//takes index | (int) | value | (KURL) + int len; + + len = sipCpp -> count(); + + if ((a0 = sipConvertFromSequenceIndex(a0,len)) < 0) + sipIsErr = 1; + else + (*sipCpp)[a0] = *a1; +%End + + void __setitem__ (SIP_PYSLICE, const KURL::List&); +%MethodCode +//takes range | (a Python slice) | urlList | (KURL.List) + + int len; + SIP_SSIZE_T start, stop, step, slicelength; + + len = sipCpp -> count(); + + if (sipConvertFromSliceObject(a0,len,&start,&stop,&step,&slicelength) < 0) + sipIsErr = 1; + else + { + int vlen = a1 -> count(); + if (vlen != slicelength) + { + sipBadLengthForSlice(vlen,slicelength); + sipIsErr = 1; + } + else + { + KURL::List::ConstIterator it = a1 -> begin(); + for (int i = 0; i < slicelength; ++i) + { + (*sipCpp)[start] = *it; + start += step; + ++it; + } + } + } +%End + + void __delitem__ (int); +%MethodCode +//takes index | (int) + int len; + + len = sipCpp -> count(); + + if ((a0 = sipConvertFromSequenceIndex(a0,len)) < 0) + sipIsErr = 1; + else + sipCpp -> remove(sipCpp -> at(a0)); +%End + + void __delitem__ (SIP_PYSLICE); +%MethodCode +//takes range | (a Python slice) + int len; + SIP_SSIZE_T start, stop, step, slicelength; + + len = sipCpp -> count(); + if (sipConvertFromSliceObject(a0,len,&start,&stop,&step,&slicelength) < 0) + sipIsErr = 1; + else + for (int i = 0; i < slicelength; ++i) + { + sipCpp -> remove(sipCpp -> at(start)); + start += step - 1; + } +%End + + KURL operator [] (int); +%MethodCode +//returns (KURL) +//takes index | (int) + int len; + + len = sipCpp -> count(); + + if ((a0 = sipConvertFromSequenceIndex(a0,len)) < 0) + sipIsErr = 1; + else + sipRes = new KURL((*sipCpp)[a0]); +%End + + KURL::List operator [] (SIP_PYSLICE); +%MethodCode +//returns (KURL.List) +//takes range | (a Python slice) + int len; + SIP_SSIZE_T start, stop, step, slicelength; + + len = sipCpp -> count(); + + if (sipConvertFromSliceObject(a0,len,&start,&stop,&step,&slicelength) < 0) + sipIsErr = 1; + else + { + sipRes = new KURL::List(); + + for (int i = 0; i < slicelength; ++i) + { + (*sipRes) += (*sipCpp)[start]; + start += step; + } + } +%End + + KURL::List operator + (const KURL::List&); +%MethodCode +//returns (KURL.List) +//takes listToAdd | (KURL.List) + Py_BEGIN_ALLOW_THREADS +// sipRes = new KURL::List((const KURL::List&)((*sipCpp) + *a0)); + sipRes = new KURL::List (*sipCpp); + (*sipRes) += (*a0); + Py_END_ALLOW_THREADS +%End + + KURL::List& operator += (const KURL::List&); + KURL::List operator * (int); +%MethodCode + sipRes = new KURL::List(); + + for (int i = 0; i < a0; ++i) + (*sipRes) += (*sipCpp); +%End + + KURL::List& operator *= (int); +%MethodCode +//returns (KURL.List) +//takes val | (int) + KURL::List orig(*sipCpp); + + sipCpp -> clear(); + + for (int i = 0; i < a0; ++i) + (*sipCpp) += orig; +%End + + bool operator == (const KURL::List&); + bool operator != (const KURL::List&); + int __contains__ (KURL) /NonLazy/; +%MethodCode +//returns (bool) +//takes a0 | (KURL) + + QString s = a0->url (); + sipRes = 0; + KURL::List::Iterator it; + for (it = sipCpp->begin (); (it != sipCpp->end ()) && (sipRes == 0); it++) + if (s == (*it).url ()) + sipRes = 1; +%End + + + }; // class List + + +public: +//end + +}; // class KURL + +bool urlcmp (const QString&, const QString&); +bool urlcmp (const QString&, const QString&, bool, bool); + +%If ( KDE_3_1_4 - ) +//igx QDataStream& operator << (QDataStream&, const KURL&); +//igx QDataStream& operator >> (QDataStream&, KURL&); +%End diff --git a/sip/tdecore/kurldrag.sip b/sip/tdecore/kurldrag.sip new file mode 100644 index 0000000..11b971e --- /dev/null +++ b/sip/tdecore/kurldrag.sip @@ -0,0 +1,76 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_4 - ) + +class KURLDrag : QUriDrag +{ +%TypeHeaderCode +#include +%End + + +public: + KURLDrag (const KURL::List&, QWidget*, const char*); + KURLDrag (const KURL::List&, const QMap&, QWidget*, const char*); + +%If ( KDE_3_4_0 - ) + void setExportAsText (bool); +%End + + static KURLDrag* newDrag (const KURL::List&, QWidget* = 0, const char* = 0); + static KURLDrag* newDrag (const KURL::List&, const QMap&, QWidget* = 0, const char* = 0); + QMap& metaData (); + static bool decode (const QMimeSource*, KURL::List&); + static bool decode (const QMimeSource*, KURL::List&, QMap&); + +%If ( KDE_3_2_0 - ) + static QString urlToString (const KURL&); + static KURL stringToUrl (const QCString&); + +%If ( KDE_3_5_0 - ) + virtual const char* format (int) const; + virtual QByteArray encodedData (const char*) const; +%End + +%End + + +protected: + KURLDrag (const QStrList&, const QMap&, QWidget*, const char*); + +protected: + +%If ( - KDE_3_5_0 ) + virtual const char* format (int) const; + virtual QByteArray encodedData (const char*) const; +%End + + +}; // class KURLDrag + +%End + diff --git a/sip/tdecore/kuser.sip b/sip/tdecore/kuser.sip new file mode 100644 index 0000000..1ff5db9 --- /dev/null +++ b/sip/tdecore/kuser.sip @@ -0,0 +1,74 @@ +// +// Copyright 2004 Jim Bublitz +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE_3_2_2 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KUser +{ +%TypeHeaderCode +#include <../extra/kde320/ksharedptr.h> +#include +%End + + +public: + + enum UIDMode + { + UseEffectiveUID, + UseRealUserID + }; + + KUser (KUser::UIDMode = UseEffectiveUID ); + KUser (long); + KUser (const QString&); + KUser (const char*); +//ig KUser (passwd*); + bool operator == (const KUser&) const; + bool operator != (const KUser&) const; + bool isValid () const; + long uid () const; + long gid () const; + bool isSuperUser () const; + QString loginName () const; + QString fullName () const; + QString roomNumber () const; + QString workPhone () const; + QString homePhone () const; + QString homeDir () const; + QString shell () const; + +%If ( - KDE_3_2_1 ) + +private: + KUser (const KUser&); +%End + + +}; // class KUser + +%End + diff --git a/sip/tdecore/kvmallocator.sip b/sip/tdecore/kvmallocator.sip new file mode 100644 index 0000000..d75fa6d --- /dev/null +++ b/sip/tdecore/kvmallocator.sip @@ -0,0 +1,42 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KVMAllocator +{ +%TypeHeaderCode +#include +%End + +public: + KVMAllocator (); +//ig Block* allocate (size_t); +//ig void free (Block*); +//ig void copy (void*, Block*, int = 0, size_t = 0); +//ig void copy (Block*, void*, int = 0, size_t = 0); +//ig void* map (Block*); +//ig void unmap (Block*); + +}; // class KVMAllocator diff --git a/sip/tdecore/kwin.sip b/sip/tdecore/kwin.sip new file mode 100644 index 0000000..4340b39 --- /dev/null +++ b/sip/tdecore/kwin.sip @@ -0,0 +1,188 @@ +// +// Copyright 2005 Jim Bublitz +// Earlier copyrights 1998 - 2004 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE_3_3_2 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KWin +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_2_0 - ) + static void activateWindow (WId, long = 0); + static void forceActiveWindow (WId, long = 0); +%End + + static void setActiveWindow (WId); + +%If ( KDE_3_2_0 - ) + static void demandAttention (WId, bool = 1); + static void setUserTime (WId, long); +%End + + static void invokeContextHelp (); + static void setSystemTrayWindowFor (WId, WId); + +%If ( KDE_3_2_0 - ) + + class WindowInfo + { + + public: + WindowInfo (WId, ulong, ulong); + WindowInfo (); + bool valid (bool = 0) const; + WId win () const; + ulong state () const; + +%If ( KDE_3_2_1 - ) + bool hasState (ulong) const; +%End + + bool isMinimized () const; + NET::MappingState mappingState () const; + +%If ( KDE_3_3_0 - ) + NETExtendedStrut extendedStrut () const; +%End + + NETStrut strut () const; + NET::WindowType windowType (int) const; + QString visibleName () const; + QString visibleNameWithState () const; + QString name () const; + QString visibleIconName () const; + QString visibleIconNameWithState () const; + QString iconName () const; + bool isOnCurrentDesktop () const; + bool isOnDesktop (int) const; + bool onAllDesktops () const; + int desktop () const; + QRect geometry () const; + QRect frameGeometry () const; + WId transientFor () const; + WId groupLeader () const; + +%If ( KDE_3_3_0 - ) + QCString windowClassClass () const; + QCString windowClassName () const; + QCString windowRole () const; + QCString clientMachine () const; +%End + + bool actionSupported (NET::Action) const; + WindowInfo (const KWin::WindowInfo&); + + }; // class WindowInfo + + +public: +%End + + +%If ( KDE_3_2_0 - ) + static KWin::WindowInfo windowInfo (WId, ulong = 0, ulong = 0); + static WId transientFor (WId); + static WId groupLeader (WId); +%End + + static QPixmap icon (WId, int = -1, int = -1, bool = 0); + +%If ( KDE_3_2_0 - ) + + enum IconSource + { + NETWM, + WMHints, + ClassHint, + XApp + }; + + static QPixmap icon (WId, int, int, bool, int); +%End + + static void setIcons (WId, const QPixmap&, const QPixmap&); + static void setType (WId, NET::WindowType); + static void setState (WId, ulong); + static void clearState (WId, ulong); + static void setOnAllDesktops (WId, bool); + static void setOnDesktop (WId, int); + +%If ( KDE_3_3_0 - ) + static void setExtendedStrut (WId, int, int, int, int, int, int, int, int, int, int, int, int); +%End + + static void setStrut (WId, int, int, int, int); + static int currentDesktop (); + static int numberOfDesktops (); + static void setCurrentDesktop (int); + static void iconifyWindow (WId, bool = 1); + static void deIconifyWindow (WId, bool = 1); + +%If ( KDE_3_2_0 - ) + static void raiseWindow (WId); + static void lowerWindow (WId); + static bool icccmCompliantMappingState (); + static bool allowedActionsSupported (); + static QString readNameProperty (WId, ulong); +%End + + + class Info + { + + public: + WId win; + ulong state; + +%If ( KDE_3_2_0 - ) + bool isMinimized () const; +%End + + bool isIconified () const; + NET::MappingState mappingState; + NETStrut strut; + NET::WindowType windowType; + QString visibleName; + QString name; + int desktop; + bool onAllDesktops; + pid_t pid; + QRect geometry; + QRect frameGeometry; + QString visibleNameWithState () const; + + }; // class Info + + +public: + static KWin::Info info (WId); + static void appStarted (); + +}; // class KWin + diff --git a/sip/tdecore/kwinmodule.sip b/sip/tdecore/kwinmodule.sip new file mode 100644 index 0000000..8d31af4 --- /dev/null +++ b/sip/tdecore/kwinmodule.sip @@ -0,0 +1,158 @@ +// +// Copyright 2005 Jim Bublitz +// Earlier copyrights 1998 - 2004 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE_3_3_2 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KWinModule : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_2_0 - ) + + enum + { + INFO_DESKTOP, + INFO_WINDOWS, + INFO_ALL + }; + + KWinModule (QObject* /TransferThis/, int); +%End + + KWinModule (QObject* /TransferThis/ = 0); + const QValueList& windows () const; + const QValueList& stackingOrder () const; + bool hasWId (WId) const; + const QValueList& systemTrayWindows () const; + int currentDesktop () const; + int numberOfDesktops () const; + WId activeWindow () const; + QRect workArea (int = -1) const; + QRect workArea (const QValueList&, int = -1) const; + QString desktopName (int) const; + void setDesktopName (int, const QString&); + void doNotManage (const QString&); + +signals: + void currentDesktopChanged (int); + void windowAdded (WId); + void windowRemoved (WId); + void activeWindowChanged (WId); + void desktopNamesChanged (); + void numberOfDesktopsChanged (int); + void systemTrayWindowAdded (WId); + void systemTrayWindowRemoved (WId); + void workAreaChanged (); + void strutChanged (); + void stackingOrderChanged (); + +%If ( KDE_3_2_0 - ) +//ig void windowChanged (WId, const ulong*); +%End + + void windowChanged (WId, uint); + void windowChanged (WId); + +protected: + +%If ( KDE_3_2_0 - ) + virtual void connectNotify (const char*); +%End + + +}; // class KWinModule + + + +%MappedType QValueList +//converts a Python list of WId +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList *cpplist = (QValueList *)sipCpp; + + // Get it. + QValueList::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + WId cpp = *it; + if (PyList_Append (pylist, PyInt_FromLong ((int) cpp)) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList *cpplist = new QValueList; + + PyObject *elem; + WId cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (WId) PyInt_AS_LONG (elem); + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + diff --git a/sip/tdecore/kxmessages.sip b/sip/tdecore/kxmessages.sip new file mode 100644 index 0000000..68fa9bf --- /dev/null +++ b/sip/tdecore/kxmessages.sip @@ -0,0 +1,55 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE_3_1_0 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KXMessages : QWidget +{ +%TypeHeaderCode +#include +#include +%End + +public: + KXMessages (const char* = 0, QWidget*/TransferThis/ = 0); + void sendMessage (WId, const char*, const QString&); + void broadcastMessage (const char*, const QString&); +//ig static bool sendMessageX (Display*, WId, const char*, const QString&); +//ig static bool broadcastMessageX (Display*, const char*, const QString&); + +signals: + void gotMessage (const QString&); + +protected: +//ig virtual bool x11Event (XEvent*); + +protected: + +%If ( - KDE_3_0_1 ) +//ig static void send_message_internal (WId, const QString&, long, Display*, Atom, Window); +%End + + +}; // class KXMessages + diff --git a/sip/tdecore/netwm.sip b/sip/tdecore/netwm.sip new file mode 100644 index 0000000..a4f02df --- /dev/null +++ b/sip/tdecore/netwm.sip @@ -0,0 +1,628 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class NETRootInfo : NET +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_2_0 - ) + + enum + { + PROTOCOLS, + WINDOW_TYPES, + STATES, + PROTOCOLS2, + ACTIONS, + PROPERTIES_SIZE + }; + + NETRootInfo (Window, const char*, SIP_PYLIST, int = -1, bool = 1) [(Display*, Window, const char*, const ulong*, int, int = -1, bool = 1)]; +%MethodCode +//takes supportWindow | (Window) | wmName | (a Python string) | properties | (a Python list) | screen | (int = -1) | doActivate | (bool = True) + int count = PyList_Size (a2); + unsigned long *list = new unsigned long [count]; + + for (int i = 0; i < count; i++) + list [i] = (unsigned long)PyInt_AS_LONG (PyList_GET_ITEM (a2, i)); + + Py_BEGIN_ALLOW_THREADS + Display *d = qt_xdisplay (); + sipCpp = new sipNETRootInfo (d, a0, a1, list, count, a3, a4); + Py_END_ALLOW_THREADS + + delete list; +%End + +%End + + NETRootInfo (Window, const char*, ulong, int = -1, bool = 1) [(Display*, Window, const char*, ulong, int = -1, bool = 1)]; +%MethodCode +//takes supportWindow | (Window) | wmName | (a Python string) | properties | (ulong) | screen | (int = -1) | doActivate | (bool = 1) + + Py_BEGIN_ALLOW_THREADS + Display *d = qt_xdisplay (); + sipCpp = new sipNETRootInfo (d, a0, a1, a2, a3, a4); + Py_END_ALLOW_THREADS +%End + + +%If ( KDE_3_2_0 - ) + NETRootInfo (SIP_PYLIST, int = -1, bool = 1) [(Display*, const ulong*, int, int = -1, bool = 1)]; +%MethodCode +//takes properties | (ulong) | screen | (int = -1) | doActivate | (bool = 1) + int count = PyList_Size (a0); + unsigned long *list = new unsigned long [count]; + + for (int i = 0; i < count; i++) + list [i] = (unsigned long)PyInt_AS_LONG (PyList_GET_ITEM (a2, i)); + + Py_BEGIN_ALLOW_THREADS + Display *d = qt_xdisplay (); + sipCpp = new sipNETRootInfo (d, list, count, a1, a2); + Py_END_ALLOW_THREADS + + delete list; +%End + +%End + + NETRootInfo (ulong, int = -1, bool = 1) [(Display*, ulong, int = -1, bool = 1)]; +%MethodCode +//takes properties | (ulong) | screen | (int = -1) | doActivate | (bool = 1) + + Py_BEGIN_ALLOW_THREADS + Display *d = qt_xdisplay (); + sipCpp = new sipNETRootInfo (d, a0, a1, a2); + Py_END_ALLOW_THREADS +%End + + NETRootInfo (const NETRootInfo&); + Display* x11Display () const; + Window rootWindow () const; + Window supportWindow () const; + const char* wmName () const; + int screenNumber () const; + +%If ( KDE_3_2_0 - ) + bool isSupported (NET::Property) const; + bool isSupported (NET::Property2) const; + bool isSupported (NET::WindowType) const; + bool isSupported (NET::State) const; + bool isSupported (NET::Action) const; + SIP_PYLIST supportedProperties () const [ulong* ()]; +%MethodCode +//returns a Python list of ulong + int count = 5; + const ulong *props; + Py_BEGIN_ALLOW_THREADS + props = sipCpp->supportedProperties (); + Py_END_ALLOW_THREADS + + for (int i = 0; i < count; i++) + PyList_Append (sipRes, PyLong_FromUnsignedLong (props [i])); +%End + + SIP_PYLIST passedProperties () const [ulong* ()]; +%MethodCode +//returns a Python list of ulong + int count = 5; + const ulong *props; + Py_BEGIN_ALLOW_THREADS + props = sipCpp->passedProperties (); + Py_END_ALLOW_THREADS + + for (int i = 0; i < count; i++) + PyList_Append (sipRes, PyLong_FromUnsignedLong (props [i])); +%End + +%End + + ulong supported () const; + SIP_PYLIST clientList () const [Window* ()]; +%MethodCode +//returns a Python list of Window + int count = sipCpp->clientListCount (); + const Window *props; + Py_BEGIN_ALLOW_THREADS + props = sipCpp->clientList (); + Py_END_ALLOW_THREADS + + for (int i = 0; i < count; i++) + PyList_Append (sipRes, PyLong_FromUnsignedLong ((unsigned long)props [i])); +%End + + int clientListCount () const; + SIP_PYLIST clientListStacking () const [Window* ()]; +%MethodCode +//returns a Python list of Window + int count = sipCpp->clientListStackingCount (); + const Window *props; + Py_BEGIN_ALLOW_THREADS + props = sipCpp->clientListStacking (); + Py_END_ALLOW_THREADS + + for (int i = 0; i < count; i++) + PyList_Append (sipRes, PyLong_FromUnsignedLong ((unsigned long)props [i])); +%End + + int clientListStackingCount () const; + SIP_PYLIST kdeSystemTrayWindows () const [Window* ()]; +%MethodCode +//returns a Python list of Window + int count = sipCpp->kdeSystemTrayWindowsCount (); + const Window *props; + Py_BEGIN_ALLOW_THREADS + props = sipCpp->kdeSystemTrayWindows (); + Py_END_ALLOW_THREADS + + for (int i = 0; i < count; i++) + PyList_Append (sipRes, PyLong_FromUnsignedLong ((unsigned long)props [i])); +%End + + int kdeSystemTrayWindowsCount () const; + NETSize desktopGeometry (int) const; + NETPoint desktopViewport (int) const; + NETRect workArea (int) const; + const char* desktopName (int) const; + SIP_PYLIST virtualRoots () const [Window* ()]; +%MethodCode +//returns a Python list of Window + int count = sipCpp->virtualRootsCount (); + const Window *props; + Py_BEGIN_ALLOW_THREADS + props = sipCpp->virtualRoots (); + Py_END_ALLOW_THREADS + + for (int i = 0; i < count; i++) + PyList_Append (sipRes, PyLong_FromUnsignedLong ((unsigned long)props [i])); +%End + + int virtualRootsCount () const; + int numberOfDesktops () const; + int currentDesktop () const; + Window activeWindow () const; + void activate (); + void setClientList (SIP_PYLIST) [void (Window*, uint)]; +%MethodCode +//takes windows | (a Python list of Window) + + int n = PyList_Size (a0); + Window array [n]; + PyObject *elem; + + for (int i = 0; i < n; i++) + { + elem = PyList_GetItem (a0, i); + if (!PyLong_Check (elem)) + return NULL; + + array [i] = (Window) PyLong_AsUnsignedLong (elem); + } + + Py_BEGIN_ALLOW_THREADS + sipCpp->setClientList (array, n); + Py_END_ALLOW_THREADS +%End + + void setClientListStacking (SIP_PYLIST) [void (Window*, uint)]; +%MethodCode +//takes windows | (a Python list of Window) + + int n = PyList_Size (a0); + Window array [n]; + PyObject *elem; + + for (int i = 0; i < n; i++) + { + elem = PyList_GetItem (a0, i); + if (!PyLong_Check (elem)) + return NULL; + + array [i] = (Window) PyLong_AsUnsignedLong (elem); + } + + Py_BEGIN_ALLOW_THREADS + sipCpp->setClientListStacking (array, n); + Py_END_ALLOW_THREADS +%End + + void setKDESystemTrayWindows (SIP_PYLIST) [void (Window*, uint)]; +%MethodCode +//takes windows | (a Python list of Window) + + int n = PyList_Size (a0); + Window array [n]; + PyObject *elem; + + for (int i = 0; i < n; i++) + { + elem = PyList_GetItem (a0, i); + if (!PyLong_Check (elem)) + return NULL; + + array [i] = (Window) PyLong_AsUnsignedLong (elem); + } + + Py_BEGIN_ALLOW_THREADS + sipCpp->setKDESystemTrayWindows (array, n); + Py_END_ALLOW_THREADS +%End + + void setCurrentDesktop (int); + void setDesktopGeometry (int, const NETSize&); + void setDesktopViewport (int, const NETPoint&); + void setNumberOfDesktops (int); + void setDesktopName (int, const char*); + +%If ( KDE_3_2_0 - ) + void setActiveWindow (Window, NET::RequestSource, Time, Window); +%End + + void setActiveWindow (Window); + void setWorkArea (int, const NETRect&); + void setVirtualRoots (SIP_PYLIST) [void (Window*, uint)]; +%MethodCode +//takes windows | (a Python list of Window) + int n = PyList_Size (a0); + + Window array [n]; + PyObject *elem; + + for (int i = 0; i < n; i++) + { + elem = PyList_GetItem (a0, i); + if (!PyLong_Check (elem)) + return NULL; + + array [i] = (Window) PyLong_AsUnsignedLong (elem); + } + + Py_BEGIN_ALLOW_THREADS + sipCpp->setVirtualRoots (array, n); + Py_END_ALLOW_THREADS +%End + + +%If ( KDE_3_5_0 - ) + void setShowingDesktop (bool); + bool showingDesktop () const; +%End + + void closeWindowRequest (Window); + void moveResizeRequest (Window, int, int, Direction); + +%If ( KDE_3_2_0 - ) + void moveResizeWindowRequest (Window, int, int, int, int, int); + +%If ( KDE_3_3_0 - ) + void restackRequest (Window, RequestSource, Window, int, Time); +%End + + void restackRequest (Window, Window, int); +//ig void event (XEvent*, ulong*, int); +%End + +//ig ulong event (XEvent*); + +protected: + virtual void addClient (Window); + virtual void removeClient (Window); + virtual void addSystemTrayWin (Window); + virtual void removeSystemTrayWin (Window); + virtual void changeNumberOfDesktops (int); + virtual void changeDesktopGeometry (int, const NETSize&); + virtual void changeDesktopViewport (int, const NETPoint&); + virtual void changeCurrentDesktop (int); + virtual void changeActiveWindow (Window); + virtual void closeWindow (Window); + virtual void moveResize (Window, int, int, ulong); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class NETRootInfo + + +%If ( KDE_3_2_0 - ) + +class NETRootInfo2 : NETRootInfo +{ +%TypeHeaderCode +#include +%End + + +public: + NETRootInfo2 (Window, const char*, SIP_PYLIST, int = -1, bool = 1) [(Display*, Window, const char*, ulong*, int, int = -1, bool = 1)]; +%MethodCode +//takes window | (Window) | rootWindow | (Window) | properties | (ulong) | role | (int) | a3 | (Role = Client) + int count = PyList_Size (a2); + unsigned long *list = new unsigned long [count]; + + for (int i = 0; i < count; i++) + list [i] = (unsigned long)PyInt_AS_LONG (PyList_GET_ITEM (a2, i)); + + Py_BEGIN_ALLOW_THREADS + Display *d = qt_xdisplay (); + sipCpp = new sipNETRootInfo2 (d, a0, a1, list, count, a3, a4); + Py_END_ALLOW_THREADS + + delete list; +%End + +//ig NETRootInfo2 (Display*, const ulong*, int, int = -1, bool = 1); + void sendPing (Window, Time); + +protected: + virtual void gotPing (Window, Time); + virtual void changeActiveWindow (Window, NET::RequestSource, Time, Window); + virtual void restackWindow (Window, Window, int); + virtual void moveResizeWindow (Window, int, int, int, int, int); + +}; // class NETRootInfo2 + +%End + + +%If ( KDE_3_3_0 - ) + +class NETRootInfo3 : NETRootInfo2 +{ +%TypeHeaderCode +#include +%End + + +public: + NETRootInfo3 (Window, const char*, SIP_PYLIST, int = -1, bool = 1) [(Display*, Window, const char*, ulong*, int, int = -1, bool = 1)]; +%MethodCode +//takes window | (Window) | rootWindow | (Window) | properties | (ulong) | role | (int) | a3 | (Role = Client) + int count = PyList_Size (a2); + unsigned long *list = new unsigned long [count]; + + for (int i = 0; i < count; i++) + list [i] = (unsigned long)PyInt_AS_LONG (PyList_GET_ITEM (a2, i)); + + Py_BEGIN_ALLOW_THREADS + Display *d = qt_xdisplay (); + sipCpp = new sipNETRootInfo3 (d, a0, a1, list, count, a3, a4); + Py_END_ALLOW_THREADS + + delete list; +%End + +//ig NETRootInfo3 (Display*, const ulong*, int, int = -1, bool = 1); + void takeActivity (Window, Time, long); + +protected: + virtual void restackWindow (Window, RequestSource, Window, int, Time); + virtual void gotTakeActivity (Window, Time, long); + +}; // class NETRootInfo3 + +%End + + +%If ( KDE_3_5_0 - ) + +class NETRootInfo4 : NETRootInfo3 +{ +%TypeHeaderCode +#include +%End + + +public: + NETRootInfo4 (Window, const char*, SIP_PYLIST, int = -1, bool = 1) [(Display*, Window, const char*, ulong*, int, int = -1, bool = 1)]; +%MethodCode +//takes window | (Window) | rootWindow | (Window) | properties | (ulong) | role | (int) | a3 | (Role = Client) + int count = PyList_Size (a2); + unsigned long *list = new unsigned long [count]; + + for (int i = 0; i < count; i++) + list [i] = (unsigned long)PyInt_AS_LONG (PyList_GET_ITEM (a2, i)); + + Py_BEGIN_ALLOW_THREADS + Display *d = qt_xdisplay (); + sipCpp = new sipNETRootInfo4 (d, a0, a1, list, count, a3, a4); + Py_END_ALLOW_THREADS + + delete list; +%End + +//ig NETRootInfo4 (Display*, const ulong*, int, int = -1, bool = 1); + +protected: + virtual void changeShowingDesktop (bool); + +}; // class NETRootInfo4 + +%End + + +class NETWinInfo : NET +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_2_0 - ) + + enum + { + PROTOCOLS, + PROTOCOLS2, + PROPERTIES_SIZE + }; + + NETWinInfo (Window, Window, SIP_PYLIST, Role = Client ) [(Display*, Window, Window, const ulong*, int, Role = Client )]; +%MethodCode +//takes window | (Window) | rootWindow | (Window) | properties | (ulong) | role | (int) | a3 | (Role = Client) + int count = PyList_Size (a2); + unsigned long *list = new unsigned long [count]; + + for (int i = 0; i < count; i++) + list [i] = (unsigned long)PyInt_AS_LONG (PyList_GET_ITEM (a2, i)); + + Py_BEGIN_ALLOW_THREADS + Display *d = qt_xdisplay (); + sipCpp = new sipNETWinInfo (d, a0, a1, list, count, a3); + Py_END_ALLOW_THREADS + + delete list; +%End + +%End + + NETWinInfo (Window, Window, ulong, Role = Client ) [(Display*, Window, Window, ulong, Role = Client )]; +%MethodCode +//returns () +//takes window (Window) | rootWindow (Window) | properties (ulong) | role (Role = Client) + + Py_BEGIN_ALLOW_THREADS + Display *d = qt_xdisplay (); + sipCpp = new sipNETWinInfo (d, a0, a1, a2, a3); + Py_END_ALLOW_THREADS +%End + + NETWinInfo (const NETWinInfo&); + +%If ( KDE_3_2_0 - ) + bool hasNETSupport () const; + SIP_PYLIST passedProperties () const [ulong* ()]; +%MethodCode +//returns a Python list of ulong + int count = 2; + const ulong *props; + Py_BEGIN_ALLOW_THREADS + props = sipCpp->passedProperties (); + Py_END_ALLOW_THREADS + + for (int i = 0; i < count; i++) + PyList_Append (sipRes, PyLong_FromUnsignedLong (props [i])); +%End + +%End + + ulong properties () const; + NETRect iconGeometry () const; + ulong state () const; + +%If ( KDE_3_3_0 - ) + NETExtendedStrut extendedStrut () const; +%End + + NETStrut strut () const; + +%If ( KDE_3_2_0 - ) + WindowType windowType (ulong) const; +%End + + WindowType windowType () const; + const char* name () const; + const char* visibleName () const; + const char* iconName () const; + const char* visibleIconName () const; + int desktop () const; + int pid () const; + Bool handledIcons () const; + Window kdeSystemTrayWinFor () const; + MappingState mappingState () const; +//ig void setIcon (NETIcon, Bool = True); + void setIconGeometry (NETRect); + +%If ( KDE_3_3_0 - ) + void setExtendedStrut (const NETExtendedStrut&); +%End + + void setStrut (NETStrut); + void setState (ulong, ulong); + void setWindowType (WindowType); + void setName (const char*); + void setVisibleName (const char*); + void setIconName (const char*); + void setVisibleIconName (const char*); + void setDesktop (int); + void setPid (int); + void setHandledIcons (Bool); + void setKDESystemTrayWinFor (Window); + +%If ( KDE_3_5_0 - ) + void setFrameExtents (NETStrut); +%End + + void setKDEFrameStrut (NETStrut); +//ig NETIcon icon (int = -1, int = -1) const; + +%If ( KDE_3_2_0 - ) + void setUserTime (Time); + Time userTime () const; + void setStartupId (const char*); + const char* startupId () const; + void setAllowedActions (ulong); + ulong allowedActions () const; + Window transientFor () const; + Window groupLeader () const; + +%If ( KDE_3_3_0 - ) + const char* windowClassClass () const; + const char* windowClassName () const; + const char* windowRole () const; + const char* clientMachine () const; +%End + +%End + + void kdeGeometry (NETRect&, NETRect&); + +%If ( KDE_3_2_0 - ) +//ig void event (XEvent*, ulong*, int); +%End + +//ig ulong event (XEvent*); +//ig const int OnAllDesktops; + +protected: + virtual void changeDesktop (int); + virtual void changeState (ulong, ulong); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class NETWinInfo + +//force +typedef ulong Time; +//end diff --git a/sip/tdecore/netwm_def.sip b/sip/tdecore/netwm_def.sip new file mode 100644 index 0000000..f203ea1 --- /dev/null +++ b/sip/tdecore/netwm_def.sip @@ -0,0 +1,535 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class NETPoint +{ +%TypeHeaderCode +#include +%End + + +public: + NETPoint (); + int x; + int y; + +}; // class NETPoint + + +class NETSize +{ +%TypeHeaderCode +#include +%End + + +public: + NETSize (); + int width; + int height; + +}; // class NETSize + + +class NETRect +{ +%TypeHeaderCode +#include +%End + + +public: + NETPoint pos; + NETSize size; + +}; // class NETRect + + +class NETIcon +{ +%TypeHeaderCode +#include +%End + + +public: + NETIcon (); + NETSize size; +//ig uchar* data; + +}; // class NETIcon + + +%If ( KDE_3_3_0 - ) + +class NETExtendedStrut +{ +%TypeHeaderCode +#include +%End + + +public: + NETExtendedStrut (); + int left_width; + int left_start; + int left_end; + int right_width; + int right_start; + int right_end; + int top_width; + int top_start; + int top_end; + int bottom_width; + int bottom_start; + int bottom_end; + +}; // class NETExtendedStrut + +%End + + +class NETStrut +{ +%TypeHeaderCode +#include +%End + + +public: + NETStrut (); + int left; + int right; + int top; + int bottom; + +}; // class NETStrut + + +class NET +{ +%TypeHeaderCode +#include +%End + + +public: + + enum Role + { + Client, + WindowManager + }; + + +%If ( KDE_3_2_0 - ) + + enum WindowType + { + Unknown, + Normal, + Desktop, + Dock, + Toolbar, + Menu, + Dialog, + Override, + TopMenu, + Tool, + Utility, + Splash + }; + + + enum WindowTypeMask + { + NormalMask, + DesktopMask, + DockMask, + ToolbarMask, + MenuMask, + DialogMask, + OverrideMask, + TopMenuMask, + UtilityMask, + SplashMask + }; + + +%If ( KDE_3_3_1 - ) + + enum + { + AllTypesMask + }; + +%End + + +%If ( KDE_3_3_0 - ) + static bool typeMatchesMask (NET::WindowType, ulong); +%End + + + enum State + { + Modal, + Sticky, + MaxVert, + MaxHoriz, + Max, + Shaded, + SkipTaskbar, + KeepAbove, + StaysOnTop, + SkipPager, + Hidden, + FullScreen, + KeepBelow, + DemandsAttention + }; + + +%If ( KDE_3_5_1 - ) + + enum Direction + { + TopLeft, + Top, + TopRight, + Right, + BottomRight, + Bottom, + BottomLeft, + Left, + Move, + KeyboardSize, + KeyboardMove, + MoveResizeCancel + }; + +%End + +%End + + + enum MappingState + { + Visible, + Withdrawn, + Iconic + }; + + +%If ( KDE_3_2_0 - ) + + enum Action + { + ActionMove, + ActionResize, + ActionMinimize, + ActionShade, + ActionStick, + ActionMaxVert, + ActionMaxHoriz, + ActionMax, + ActionFullScreen, + ActionChangeDesktop, + ActionClose + }; + + +%If ( KDE_3_5_0 - ) + + enum Property + { + Supported, + ClientList, + ClientListStacking, + NumberOfDesktops, + DesktopGeometry, + DesktopViewport, + CurrentDesktop, + DesktopNames, + ActiveWindow, + WorkArea, + SupportingWMCheck, + VirtualRoots, + KDESystemTrayWindows, + CloseWindow, + WMMoveResize, + WMName, + WMVisibleName, + WMDesktop, + WMWindowType, + WMState, + WMStrut, + WMIconGeometry, + WMIcon, + WMPid, + WMHandledIcons, + WMPing, + WMKDESystemTrayWinFor, + XAWMState, + WMFrameExtents, + WMKDEFrameStrut, + WMIconName, + WMVisibleIconName, + WMGeometry + }; + +%End + + + enum + { + OnAllDesktops + }; + + + enum RequestSource + { + FromUnknown, + FromApplication, + FromTool + }; + + +%If ( KDE_3_5_3 - ) + static int timestampCompare (ulong, ulong); + static int timestampDiff (ulong, ulong); +%End + +%End + + +public: + +%If ( KDE_3_2_0 - KDE_3_5_1 ) + + enum Direction + { + TopLeft, + Top, + TopRight, + Right, + BottomRight, + Bottom, + BottomLeft, + Left, + Move, + KeyboardSize, + KeyboardMove + }; + +%End + + +public: + +%If ( - KDE_3_5_0 ) + + enum Property + { + Supported, + ClientList, + ClientListStacking, + NumberOfDesktops, + DesktopGeometry, + DesktopViewport, + CurrentDesktop, + DesktopNames, + ActiveWindow, + WorkArea, + SupportingWMCheck, + VirtualRoots, + KDESystemTrayWindows, + CloseWindow, + WMMoveResize, + WMName, + WMVisibleName, + WMDesktop, + WMWindowType, + WMState, + WMStrut, + WMIconGeometry, + WMIcon, + WMPid, + WMHandledIcons, + WMPing, + WMKDESystemTrayWinFor, + XAWMState, + WMKDEFrameStrut, + WMIconName, + WMVisibleIconName, + WMGeometry + }; + +%End + + +%If ( KDE_3_3_1 - ) + + enum Property2 + { + WM2UserTime, + WM2StartupId, + WM2TransientFor, + WM2GroupLeader, + WM2AllowedActions, + WM2RestackWindow, + WM2MoveResizeWindow, + WM2ExtendedStrut, + WM2TakeActivity, + WM2KDETemporaryRules, + WM2WindowClass, + WM2WindowRole, + WM2ClientMachine + }; + +%End + + +public: + +%If ( KDE_3_3_0 - KDE_3_3_1 ) + + enum + { + AllTypesMask + }; + + + enum Property2 + { + WM2UserTime, + WM2StartupId, + WM2TransientFor, + WM2GroupLeader, + WM2AllowedActions, + WM2RestackWindow, + WM2MoveResizeWindow, + WM2ExtendedStrut, + WM2TakeActivity, + WM2KDETemporaryRules + }; + +%End + + +public: + +%If ( KDE_3_2_0 - KDE_3_3_0 ) + + enum Property2 + { + WM2UserTime, + WM2StartupId, + WM2TransientFor, + WM2GroupLeader, + WM2AllowedActions, + WM2RestackWindow, + WM2MoveResizeWindow + }; + +%End + + +public: + +%If ( KDE_3_1_0 - KDE_3_2_0 ) + + enum WindowType + { + Unknown, + Normal, + Desktop, + Dock, + Toolbar, + Menu, + Dialog, + Override, + TopMenu, + Tool + }; + +%End + + +%If ( - KDE_3_2_0 ) + + enum State + { + Modal, + Sticky, + MaxVert, + MaxHoriz, + Max, + Shaded, + SkipTaskbar, + StaysOnTop, + SkipPager + }; + + + enum Direction + { + TopLeft, + Top, + TopRight, + Right, + BottomRight, + Bottom, + BottomLeft, + Left, + Move + }; + +%End + + +public: + +%If ( - KDE_3_1_0 ) + + enum WindowType + { + Unknown, + Normal, + Desktop, + Dock, + Tool, + Menu, + Dialog, + Override, + Toolbar + }; + +%End + + +}; // class NET + diff --git a/sip/tdecore/tdecore-kde310.diff b/sip/tdecore/tdecore-kde310.diff new file mode 100644 index 0000000..d87c911 --- /dev/null +++ b/sip/tdecore/tdecore-kde310.diff @@ -0,0 +1 @@ ++ %Include kclipboard.sip diff --git a/sip/tdecore/tdecore-kde311.diff b/sip/tdecore/tdecore-kde311.diff new file mode 100644 index 0000000..d87c911 --- /dev/null +++ b/sip/tdecore/tdecore-kde311.diff @@ -0,0 +1 @@ ++ %Include kclipboard.sip diff --git a/sip/tdecore/tdecore-kde312.diff b/sip/tdecore/tdecore-kde312.diff new file mode 100644 index 0000000..d87c911 --- /dev/null +++ b/sip/tdecore/tdecore-kde312.diff @@ -0,0 +1 @@ ++ %Include kclipboard.sip diff --git a/sip/tdecore/tdecore-kde313.diff b/sip/tdecore/tdecore-kde313.diff new file mode 100644 index 0000000..d87c911 --- /dev/null +++ b/sip/tdecore/tdecore-kde313.diff @@ -0,0 +1 @@ ++ %Include kclipboard.sip diff --git a/sip/tdecore/tdecore-kde314.diff b/sip/tdecore/tdecore-kde314.diff new file mode 100644 index 0000000..13e7719 --- /dev/null +++ b/sip/tdecore/tdecore-kde314.diff @@ -0,0 +1,3 @@ ++ %Include kclipboard.sip ++ %Include kdeversion.sip ++ %Include kurldrag.sip diff --git a/sip/tdecore/tdecore-kde315.diff b/sip/tdecore/tdecore-kde315.diff new file mode 100644 index 0000000..13e7719 --- /dev/null +++ b/sip/tdecore/tdecore-kde315.diff @@ -0,0 +1,3 @@ ++ %Include kclipboard.sip ++ %Include kdeversion.sip ++ %Include kurldrag.sip diff --git a/sip/tdecore/tdecore-kde320.diff b/sip/tdecore/tdecore-kde320.diff new file mode 100644 index 0000000..8476e6c --- /dev/null +++ b/sip/tdecore/tdecore-kde320.diff @@ -0,0 +1,16 @@ ++ %Include kcalendarsystem.sip ++ %Include kcalendarsystemfactory.sip ++ %Include kclipboard.sip ++ %Include kconfigdialogmanager.sip ++ %Include kconfigskeleton.sip ++ %Include kdeversion.sip ++ %Include kidna.sip ++ %Include kmacroexpander.sip ++ %Include kmountpoint.sip ++ %Include kpty.sip ++ %Include kshell.sip ++ %Include kurldrag.sip ++ %Include kuser.sip + + + diff --git a/sip/tdecore/tdecore-kde321.diff b/sip/tdecore/tdecore-kde321.diff new file mode 100644 index 0000000..5dc526d --- /dev/null +++ b/sip/tdecore/tdecore-kde321.diff @@ -0,0 +1,12 @@ ++ %Include kcalendarsystem.sip ++ %Include kcalendarsystemfactory.sip ++ %Include kclipboard.sip ++ %Include kconfigdialogmanager.sip ++ %Include kconfigskeleton.sip ++ %Include kdeversion.sip ++ %Include kidna.sip ++ %Include kmacroexpander.sip ++ %Include kmountpoint.sip ++ %Include kpty.sip ++ %Include kshell.sip ++ %Include kurldrag.sip diff --git a/sip/tdecore/tdecore-kde322.diff b/sip/tdecore/tdecore-kde322.diff new file mode 100644 index 0000000..e0d64ad --- /dev/null +++ b/sip/tdecore/tdecore-kde322.diff @@ -0,0 +1,13 @@ ++ %Include fixx11h.sip ++ %Include kcalendarsystem.sip ++ %Include kcalendarsystemfactory.sip ++ %Include kclipboard.sip ++ %Include kconfigdialogmanager.sip ++ %Include kconfigskeleton.sip ++ %Include kdeversion.sip ++ %Include kidna.sip ++ %Include kmacroexpander.sip ++ %Include kmountpoint.sip ++ %Include kpty.sip ++ %Include kshell.sip ++ %Include kurldrag.sip diff --git a/sip/tdecore/tdecore-kde323.diff b/sip/tdecore/tdecore-kde323.diff new file mode 100644 index 0000000..e0d64ad --- /dev/null +++ b/sip/tdecore/tdecore-kde323.diff @@ -0,0 +1,13 @@ ++ %Include fixx11h.sip ++ %Include kcalendarsystem.sip ++ %Include kcalendarsystemfactory.sip ++ %Include kclipboard.sip ++ %Include kconfigdialogmanager.sip ++ %Include kconfigskeleton.sip ++ %Include kdeversion.sip ++ %Include kidna.sip ++ %Include kmacroexpander.sip ++ %Include kmountpoint.sip ++ %Include kpty.sip ++ %Include kshell.sip ++ %Include kurldrag.sip diff --git a/sip/tdecore/tdecore-kde330.diff b/sip/tdecore/tdecore-kde330.diff new file mode 100644 index 0000000..d202574 --- /dev/null +++ b/sip/tdecore/tdecore-kde330.diff @@ -0,0 +1,15 @@ ++ %Include fixx11h.sip ++ %Include kcalendarsystem.sip ++ %Include kcalendarsystemfactory.sip ++ %Include kclipboard.sip ++ %Include kconfigdialogmanager.sip ++ %Include kconfigskeleton.sip ++ %Include kdeversion.sip ++ %Include kidna.sip ++ %Include klockfile.sip ++ %Include kmacroexpander.sip ++ %Include kmanagerselection.sip ++ %Include kmountpoint.sip ++ %Include kpty.sip ++ %Include kshell.sip ++ %Include kurldrag.sip diff --git a/sip/tdecore/tdecore-kde331.diff b/sip/tdecore/tdecore-kde331.diff new file mode 100644 index 0000000..d202574 --- /dev/null +++ b/sip/tdecore/tdecore-kde331.diff @@ -0,0 +1,15 @@ ++ %Include fixx11h.sip ++ %Include kcalendarsystem.sip ++ %Include kcalendarsystemfactory.sip ++ %Include kclipboard.sip ++ %Include kconfigdialogmanager.sip ++ %Include kconfigskeleton.sip ++ %Include kdeversion.sip ++ %Include kidna.sip ++ %Include klockfile.sip ++ %Include kmacroexpander.sip ++ %Include kmanagerselection.sip ++ %Include kmountpoint.sip ++ %Include kpty.sip ++ %Include kshell.sip ++ %Include kurldrag.sip diff --git a/sip/tdecore/tdecore-kde332.diff b/sip/tdecore/tdecore-kde332.diff new file mode 100644 index 0000000..d202574 --- /dev/null +++ b/sip/tdecore/tdecore-kde332.diff @@ -0,0 +1,15 @@ ++ %Include fixx11h.sip ++ %Include kcalendarsystem.sip ++ %Include kcalendarsystemfactory.sip ++ %Include kclipboard.sip ++ %Include kconfigdialogmanager.sip ++ %Include kconfigskeleton.sip ++ %Include kdeversion.sip ++ %Include kidna.sip ++ %Include klockfile.sip ++ %Include kmacroexpander.sip ++ %Include kmanagerselection.sip ++ %Include kmountpoint.sip ++ %Include kpty.sip ++ %Include kshell.sip ++ %Include kurldrag.sip diff --git a/sip/tdecore/tdecore-kde340.diff b/sip/tdecore/tdecore-kde340.diff new file mode 100644 index 0000000..d202574 --- /dev/null +++ b/sip/tdecore/tdecore-kde340.diff @@ -0,0 +1,15 @@ ++ %Include fixx11h.sip ++ %Include kcalendarsystem.sip ++ %Include kcalendarsystemfactory.sip ++ %Include kclipboard.sip ++ %Include kconfigdialogmanager.sip ++ %Include kconfigskeleton.sip ++ %Include kdeversion.sip ++ %Include kidna.sip ++ %Include klockfile.sip ++ %Include kmacroexpander.sip ++ %Include kmanagerselection.sip ++ %Include kmountpoint.sip ++ %Include kpty.sip ++ %Include kshell.sip ++ %Include kurldrag.sip diff --git a/sip/tdecore/tdecore-kde341.diff b/sip/tdecore/tdecore-kde341.diff new file mode 100644 index 0000000..d202574 --- /dev/null +++ b/sip/tdecore/tdecore-kde341.diff @@ -0,0 +1,15 @@ ++ %Include fixx11h.sip ++ %Include kcalendarsystem.sip ++ %Include kcalendarsystemfactory.sip ++ %Include kclipboard.sip ++ %Include kconfigdialogmanager.sip ++ %Include kconfigskeleton.sip ++ %Include kdeversion.sip ++ %Include kidna.sip ++ %Include klockfile.sip ++ %Include kmacroexpander.sip ++ %Include kmanagerselection.sip ++ %Include kmountpoint.sip ++ %Include kpty.sip ++ %Include kshell.sip ++ %Include kurldrag.sip diff --git a/sip/tdecore/tdecore-kde342.diff b/sip/tdecore/tdecore-kde342.diff new file mode 100644 index 0000000..d202574 --- /dev/null +++ b/sip/tdecore/tdecore-kde342.diff @@ -0,0 +1,15 @@ ++ %Include fixx11h.sip ++ %Include kcalendarsystem.sip ++ %Include kcalendarsystemfactory.sip ++ %Include kclipboard.sip ++ %Include kconfigdialogmanager.sip ++ %Include kconfigskeleton.sip ++ %Include kdeversion.sip ++ %Include kidna.sip ++ %Include klockfile.sip ++ %Include kmacroexpander.sip ++ %Include kmanagerselection.sip ++ %Include kmountpoint.sip ++ %Include kpty.sip ++ %Include kshell.sip ++ %Include kurldrag.sip diff --git a/sip/tdecore/tdecore-kde343.diff b/sip/tdecore/tdecore-kde343.diff new file mode 100644 index 0000000..d202574 --- /dev/null +++ b/sip/tdecore/tdecore-kde343.diff @@ -0,0 +1,15 @@ ++ %Include fixx11h.sip ++ %Include kcalendarsystem.sip ++ %Include kcalendarsystemfactory.sip ++ %Include kclipboard.sip ++ %Include kconfigdialogmanager.sip ++ %Include kconfigskeleton.sip ++ %Include kdeversion.sip ++ %Include kidna.sip ++ %Include klockfile.sip ++ %Include kmacroexpander.sip ++ %Include kmanagerselection.sip ++ %Include kmountpoint.sip ++ %Include kpty.sip ++ %Include kshell.sip ++ %Include kurldrag.sip diff --git a/sip/tdecore/tdecore-kde350.diff b/sip/tdecore/tdecore-kde350.diff new file mode 100644 index 0000000..b8dba4c --- /dev/null +++ b/sip/tdecore/tdecore-kde350.diff @@ -0,0 +1,16 @@ ++ %Include fixx11h.sip ++ %Include kcalendarsystem.sip ++ %Include kcalendarsystemfactory.sip ++ %Include kclipboard.sip ++ %Include kconfigdialogmanager.sip ++ %Include kconfigskeleton.sip ++ %Include kdeversion.sip ++ %Include kidna.sip ++ %Include klockfile.sip ++ %Include kmacroexpander.sip ++ %Include kmanagerselection.sip ++ %Include kmountpoint.sip ++ %Include kpty.sip ++ %Include kshell.sip ++ %Include ktimezones.sip ++ %Include kurldrag.sip diff --git a/sip/tdecore/tdecore-kde351.diff b/sip/tdecore/tdecore-kde351.diff new file mode 100644 index 0000000..b8dba4c --- /dev/null +++ b/sip/tdecore/tdecore-kde351.diff @@ -0,0 +1,16 @@ ++ %Include fixx11h.sip ++ %Include kcalendarsystem.sip ++ %Include kcalendarsystemfactory.sip ++ %Include kclipboard.sip ++ %Include kconfigdialogmanager.sip ++ %Include kconfigskeleton.sip ++ %Include kdeversion.sip ++ %Include kidna.sip ++ %Include klockfile.sip ++ %Include kmacroexpander.sip ++ %Include kmanagerselection.sip ++ %Include kmountpoint.sip ++ %Include kpty.sip ++ %Include kshell.sip ++ %Include ktimezones.sip ++ %Include kurldrag.sip diff --git a/sip/tdecore/tdecore-kde352.diff b/sip/tdecore/tdecore-kde352.diff new file mode 100644 index 0000000..b8dba4c --- /dev/null +++ b/sip/tdecore/tdecore-kde352.diff @@ -0,0 +1,16 @@ ++ %Include fixx11h.sip ++ %Include kcalendarsystem.sip ++ %Include kcalendarsystemfactory.sip ++ %Include kclipboard.sip ++ %Include kconfigdialogmanager.sip ++ %Include kconfigskeleton.sip ++ %Include kdeversion.sip ++ %Include kidna.sip ++ %Include klockfile.sip ++ %Include kmacroexpander.sip ++ %Include kmanagerselection.sip ++ %Include kmountpoint.sip ++ %Include kpty.sip ++ %Include kshell.sip ++ %Include ktimezones.sip ++ %Include kurldrag.sip diff --git a/sip/tdecore/tdecore-kde353.diff b/sip/tdecore/tdecore-kde353.diff new file mode 100644 index 0000000..b8dba4c --- /dev/null +++ b/sip/tdecore/tdecore-kde353.diff @@ -0,0 +1,16 @@ ++ %Include fixx11h.sip ++ %Include kcalendarsystem.sip ++ %Include kcalendarsystemfactory.sip ++ %Include kclipboard.sip ++ %Include kconfigdialogmanager.sip ++ %Include kconfigskeleton.sip ++ %Include kdeversion.sip ++ %Include kidna.sip ++ %Include klockfile.sip ++ %Include kmacroexpander.sip ++ %Include kmanagerselection.sip ++ %Include kmountpoint.sip ++ %Include kpty.sip ++ %Include kshell.sip ++ %Include ktimezones.sip ++ %Include kurldrag.sip diff --git a/sip/tdecore/tdecoremod.sip.in b/sip/tdecore/tdecoremod.sip.in new file mode 100644 index 0000000..60e93e0 --- /dev/null +++ b/sip/tdecore/tdecoremod.sip.in @@ -0,0 +1,99 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore version KDE_3_5_2 + +%Copying + + This software is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2 of + the License, or (at your option) any later version. + + This software is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public + License along with this library; see the file COPYING. + If not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%End + +%Module tdecore + +%Import qt/qtmod.sip +%Import dcopmod.sip + +%Include bytearray.sip +%Include kaboutdata.sip +%Include kaccel.sip +%Include kaccelaction.sip +%Include kaccelbase.sip +%Include kallocator.sip +%Include kapplication.sip +%Include kasyncio.sip +%Include kaudioplayer.sip +%Include kbufferedio.sip +%Include kcatalogue.sip +%Include kcharsets.sip +%Include kcmdlineargs.sip +%Include kcompletion.sip +%Include kconfig.sip +%Include kconfigbackend.sip +%Include kconfigbase.sip +%Include kconfigdata.sip +%Include kcrash.sip +%Include kdcoppropertyproxy.sip +%Include kdesktopfile.sip +%Include kglobal.sip +%Include kglobalaccel.sip +%Include kglobalsettings.sip +%Include kiconeffect.sip +%Include kiconloader.sip +%Include kicontheme.sip +%Include kinstance.sip +%Include kipc.sip +%Include kkeynative.sip +%Include kkeyserver_x11.sip +%Include klibloader.sip +%Include klocale.sip +%Include kmdcodec.sip +%Include kmimesourcefactory.sip +%Include kmultipledrag.sip +%Include knotifyclient.sip +%Include kpalette.sip +%Include kpixmapprovider.sip +%Include kprocctrl.sip +%Include kprocess.sip +%Include kprocio.sip +%Include krandomsequence.sip +%Include kregexp.sip +%Include krfcdate.sip +%Include krootprop.sip +%Include ksavefile.sip +%Include ksharedptr.sip +%Include kshortcut.sip +%Include kshortcutlist.sip +%Include ksimpleconfig.sip +%Include ksock.sip +%Include kstartupinfo.sip +%Include kstaticdeleter.sip +%Include kstdaccel.sip +%Include kstddirs.sip +%Include kstringhandler.sip +%Include ktempdir.sip +%Include ktempfile.sip +%Include kuniqueapplication.sip +%Include kurl.sip +%Include kwin.sip +%Include kwinmodule.sip +%Include netwm.sip +%Include netwm_def.sip +@mark@ diff --git a/sip/tdefx/kcpuinfo.sip b/sip/tdefx/kcpuinfo.sip new file mode 100644 index 0000000..12ce700 --- /dev/null +++ b/sip/tdefx/kcpuinfo.sip @@ -0,0 +1,52 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdefx version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KCPUInfo +{ +%TypeHeaderCode +#include +%End + + +public: + + enum Extensions + { + IntelMMX, + IntelSSE, + IntelSSE2, + AMD3DNOW, + AltiVec + }; + + static bool haveExtension (uint); + +}; // class KCPUInfo + +%End + diff --git a/sip/tdefx/kdrawutil.sip b/sip/tdefx/kdrawutil.sip new file mode 100644 index 0000000..b6abad9 --- /dev/null +++ b/sip/tdefx/kdrawutil.sip @@ -0,0 +1,39 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdefx version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%ModuleHeaderCode +#include +%End + +void kDrawNextButton (QPainter*, const QRect&, const QColorGroup&, bool = 0, const QBrush* = 0); +void kDrawNextButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, const QBrush* = 0); +void kDrawBeButton (QPainter*, QRect&, const QColorGroup&, bool = 0, const QBrush* = 0); +void kDrawBeButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, const QBrush* = 0); +void kDrawRoundButton (QPainter*, const QRect&, const QColorGroup&, bool = 0); +void kDrawRoundButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0); +void kRoundMaskRegion (QRegion&, int, int, int, int); +void kDrawRoundMask (QPainter*, int, int, int, int, bool = 0); +void kColorBitmaps (QPainter*, const QColorGroup&, int, int, QBitmap* = 0, QBitmap* = 0, QBitmap* = 0, QBitmap* = 0, QBitmap* = 0, QBitmap* = 0); +void kColorBitmaps (QPainter*, const QColorGroup&, int, int, int, int, bool = 1, const uchar* = 0, const uchar* = 0, const uchar* = 0, const uchar* = 0, const uchar* = 0, const uchar* = 0); diff --git a/sip/tdefx/kimageeffect.sip b/sip/tdefx/kimageeffect.sip new file mode 100644 index 0000000..6e332f6 --- /dev/null +++ b/sip/tdefx/kimageeffect.sip @@ -0,0 +1,205 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdefx version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KImageEffect +{ +%TypeHeaderCode +#include +%End + + +public: + + enum GradientType + { + VerticalGradient, + HorizontalGradient, + DiagonalGradient, + CrossDiagonalGradient, + PyramidGradient, + RectangleGradient, + PipeCrossGradient, + EllipticGradient + }; + + + enum RGBComponent + { + Red, + Green, + Blue, + Gray, + All + }; + + + enum Lighting + { + NorthLite, + NWLite, + WestLite, + SWLite, + SouthLite, + SELite, + EastLite, + NELite + }; + + + enum ModulationType + { + Intensity, + Saturation, + HueShift, + Contrast + }; + + + enum NoiseType + { + UniformNoise, + GaussianNoise, + MultiplicativeGaussianNoise, + ImpulseNoise, + LaplacianNoise, + PoissonNoise + }; + + + enum RotateDirection + { + Rotate90, + Rotate180, + Rotate270 + }; + + +%If ( KDE_3_3_0 - ) + + enum BumpmapType + { + Linear, + Spherical, + Sinuosidal + }; + +%End + + static QImage gradient (const QSize&, const QColor&, const QColor&, KImageEffect::GradientType, int = 3); + static QImage unbalancedGradient (const QSize&, const QColor&, const QColor&, KImageEffect::GradientType, int = 100, int = 100, int = 3); + static QImage& blend (const QColor&, QImage&, float); + static QImage& blend (QImage&, QImage&, float); + static QImage& blend (QImage&, float, const QColor&, KImageEffect::GradientType, bool = 0); + static QImage& blend (QImage&, QImage&, KImageEffect::GradientType, int = 100, int = 100); + static QImage& blend (QImage&, QImage&, QImage&, KImageEffect::RGBComponent); + static bool blend (const QImage&, const QImage&, QImage&); + static bool blend (int& /In, Out/, int& /In, Out/, const QImage&, const QImage&, QImage&); + static bool blendOnLower (int, int, const QImage&, const QImage&); + +%If ( KDE_3_2_0 - ) + static void blendOnLower (const QImage&, const QPoint&, QImage&, const QRect&); + static void blendOnLower (const QImage&, const QPoint&, QImage&, const QRect&, float); + + enum Disposition + { + NoImage, + Centered, + Tiled, + CenterTiled, + CenteredMaxpect, + TiledMaxpect, + Scaled, + CenteredAutoFit + }; + + static QRect computeDestinationRect (const QSize&, KImageEffect::Disposition, QImage&); + static void blendOnLower (QImage&, QImage&, KImageEffect::Disposition, float); +%End + + static QImage& channelIntensity (QImage&, float, KImageEffect::RGBComponent); + static QImage& fade (QImage&, float, const QColor&); + static QImage& flatten (QImage&, const QColor&, const QColor&, int = 0); + static QImage& hash (QImage&, KImageEffect::Lighting = NorthLite , uint = 0); + static QImage& intensity (QImage&, float); + static QImage& modulate (QImage&, QImage&, bool, KImageEffect::ModulationType, int, KImageEffect::RGBComponent); + static QImage& toGray (QImage&, bool = 0); + static QImage& desaturate (QImage&, float = 0.3); + static QImage& contrast (QImage&, int); +//ig static QImage& dither (QImage&, const QColor*, int); + static QImage& selectedImage (QImage&, const QColor&); + static void contrastHSV (QImage&, bool = 1); + static void normalize (QImage&); + static void equalize (QImage&); + static void threshold (QImage&, uint = 128); + static void solarize (QImage&, double = 50.0); + +%If ( KDE_3_2_0 - ) + static QImage emboss (QImage&, double, double); +%End + + static QImage emboss (QImage&); + static QImage despeckle (QImage&); + +%If ( KDE_3_2_0 - ) + static QImage charcoal (QImage&, double, double); +%End + + static QImage charcoal (QImage&, double = 50.0); + static QImage rotate (QImage&, KImageEffect::RotateDirection); + static QImage sample (QImage&, int, int); + static QImage addNoise (QImage&, KImageEffect::NoiseType = GaussianNoise ); + +%If ( KDE_3_2_0 - ) + static QImage blur (QImage&, double, double); +%End + + static QImage blur (QImage&, double = 50.0); + static QImage edge (QImage&, double = 50.0); + static QImage implode (QImage&, double = 30.0, uint = -1); + +%If ( KDE_3_2_0 - ) + static QImage oilPaintConvolve (QImage&, double); +%End + + static QImage oilPaint (QImage&, int = 3); + +%If ( KDE_3_2_0 - ) + static QImage sharpen (QImage&, double, double); +%End + + static QImage sharpen (QImage&, double = 30.0); + static QImage spread (QImage&, uint = 3); + static QImage shade (QImage&, bool = 1, double = 30.0, double = 30.0); + static QImage swirl (QImage&, double = 50.0, uint = -1); + static QImage wave (QImage&, double = 25.0, double = 150.0, uint = -1); + +%If ( KDE_3_3_0 - ) + static QImage bumpmap (QImage&, QImage&, double, double, int, int, int, int, int, bool, bool, KImageEffect::BumpmapType, bool); +%End + + +}; // class KImageEffect + diff --git a/sip/tdefx/kpixmap.sip b/sip/tdefx/kpixmap.sip new file mode 100644 index 0000000..efb93dd --- /dev/null +++ b/sip/tdefx/kpixmap.sip @@ -0,0 +1,65 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdefx version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPixmap : QPixmap +{ +%TypeHeaderCode +#include +#include +#include +%End + + +public: + + enum ColorMode + { + Auto, + Color, + Mono, + LowColor, + WebColor + }; + + + enum GradientMode + { + Horizontal, + Vertical, + Diagonal, + CrossDiagonal + }; + + KPixmap (); + KPixmap (const QPixmap&); + bool convertFromImage (const QImage&, int); + bool convertFromImage (const QImage&, ColorMode = WebColor ); + bool load (const QString&, const char*, int); + bool load (const QString&, const char* = 0, ColorMode = WebColor ); + bool checkColorTable (const QImage&); + +}; // class KPixmap + diff --git a/sip/tdefx/kpixmapeffect.sip b/sip/tdefx/kpixmapeffect.sip new file mode 100644 index 0000000..088e313 --- /dev/null +++ b/sip/tdefx/kpixmapeffect.sip @@ -0,0 +1,85 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdefx version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPixmapEffect +{ +%TypeHeaderCode +#include +%End + + +public: + + enum GradientType + { + VerticalGradient, + HorizontalGradient, + DiagonalGradient, + CrossDiagonalGradient, + PyramidGradient, + RectangleGradient, + PipeCrossGradient, + EllipticGradient + }; + + + enum RGBComponent + { + Red, + Green, + Blue + }; + + + enum Lighting + { + NorthLite, + NWLite, + WestLite, + SWLite, + SouthLite, + SELite, + EastLite, + NELite + }; + + static KPixmap& gradient (KPixmap&, const QColor&, const QColor&, KPixmapEffect::GradientType, int = 3); + static KPixmap& unbalancedGradient (KPixmap&, const QColor&, const QColor&, KPixmapEffect::GradientType, int = 100, int = 100, int = 3); + static KPixmap createTiled (const KPixmap&, QSize); + static KPixmap& intensity (KPixmap&, float); + static KPixmap& channelIntensity (KPixmap&, float, KPixmapEffect::RGBComponent); + static KPixmap& blend (KPixmap&, float, const QColor&, KPixmapEffect::GradientType, bool = 0, int = 3); + static KPixmap& hash (KPixmap&, KPixmapEffect::Lighting = NorthLite , uint = 0, int = 3); + static KPixmap pattern (const KPixmap&, QSize, const QColor&, const QColor&, int = 8); + static KPixmap& fade (KPixmap&, double, const QColor&); + static KPixmap& toGray (KPixmap&, bool = 0); + static KPixmap& desaturate (KPixmap&, float = 0.3); + static KPixmap& contrast (KPixmap&, int); + static KPixmap& dither (KPixmap&, const QColor*, int); + static KPixmap selectedPixmap (const KPixmap&, const QColor&); + +}; // class KPixmapEffect + diff --git a/sip/tdefx/kpixmapsplitter.sip b/sip/tdefx/kpixmapsplitter.sip new file mode 100644 index 0000000..7ff49b3 --- /dev/null +++ b/sip/tdefx/kpixmapsplitter.sip @@ -0,0 +1,46 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdefx version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPixmapSplitter +{ +%TypeHeaderCode +#include +%End + + +public: + KPixmapSplitter (); + void setPixmap (const QPixmap&); + const QPixmap& pixmap () const; + void setItemSize (const QSize&); + QSize itemSize () const; + void setVSpacing (int); + void setHSpacing (int); + QRect coordinates (int); + QRect coordinates (const QChar&); + +}; // class KPixmapSplitter + diff --git a/sip/tdefx/kstyle.sip b/sip/tdefx/kstyle.sip new file mode 100644 index 0000000..b559f6a --- /dev/null +++ b/sip/tdefx/kstyle.sip @@ -0,0 +1,126 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdefx version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KStyle : QCommonStyle +{ +%TypeHeaderCode +#include +%End + + +public: + typedef uint KStyleFlags; + + enum KStyleOption + { + Default, + AllowMenuTransparency, + FilledFrameWorkaround + }; + + + enum KStyleScrollBarType + { + WindowsStyleScrollBar, + PlatinumStyleScrollBar, + ThreeButtonScrollBar, + NextStyleScrollBar + }; + + KStyle (KStyle::KStyleFlags = KStyle ::Default , KStyle::KStyleScrollBarType = KStyle ::WindowsStyleScrollBar ); + +%If ( KDE_3_1_0 - ) + static QString defaultStyle (); +%End + + void setScrollBarType (KStyle::KStyleScrollBarType); + KStyle::KStyleFlags styleFlags () const; + virtual void renderMenuBlendPixmap (KPixmap&, const QColorGroup&, const QPopupMenu*) const; + + enum KStylePrimitive + { + KPE_DockWindowHandle, + KPE_ToolBarHandle, + KPE_GeneralHandle, + KPE_SliderGroove, + KPE_SliderHandle, + KPE_ListViewExpander, + KPE_ListViewBranch + }; + + virtual void drawKStylePrimitive (KStyle::KStylePrimitive, QPainter*, const QWidget*, const QRect&, const QColorGroup&, SFlags = Style_Default , const QStyleOption& = QStyleOption (QStyleOption ::Default )) const; + + enum KStylePixelMetric + { + KPM_MenuItemSeparatorHeight, + KPM_MenuItemHMargin, + KPM_MenuItemVMargin, + KPM_MenuItemHFrame, + KPM_MenuItemVFrame, + KPM_MenuItemCheckMarkHMargin, + KPM_MenuItemArrowHMargin, + KPM_MenuItemTabSpacing, + KPM_ListViewBranchThickness + }; + + int kPixelMetric (KStyle::KStylePixelMetric, const QWidget* = 0) const; + void polish (QWidget*); + void unPolish (QWidget*); + void polishPopupMenu (QPopupMenu*); + void drawPrimitive (PrimitiveElement, QPainter*, const QRect&, const QColorGroup&, SFlags = Style_Default , const QStyleOption& = QStyleOption (QStyleOption ::Default )) const; + void drawControl (ControlElement, QPainter*, const QWidget*, const QRect&, const QColorGroup&, SFlags = Style_Default , const QStyleOption& = QStyleOption (QStyleOption ::Default )) const; + void drawComplexControl (ComplexControl, QPainter*, const QWidget*, const QRect&, const QColorGroup&, SFlags = Style_Default , SCFlags = SC_All , SCFlags = SC_None , const QStyleOption& = QStyleOption (QStyleOption ::Default )) const; + SubControl querySubControl (ComplexControl, const QWidget*, const QPoint&, const QStyleOption& = QStyleOption (QStyleOption ::Default )) const; + QRect querySubControlMetrics (ComplexControl, const QWidget*, SubControl, const QStyleOption& = QStyleOption (QStyleOption ::Default )) const; + int pixelMetric (PixelMetric, const QWidget* = 0) const; + QRect subRect (SubRect, const QWidget*) const; + QPixmap stylePixmap (StylePixmap, const QWidget* = 0, const QStyleOption& = QStyleOption (QStyleOption ::Default )) const; + int styleHint (StyleHint, const QWidget* = 0, const QStyleOption& = QStyleOption (QStyleOption ::Default ), QStyleHintReturn* = 0) const; + +protected: + bool eventFilter (QObject*, QEvent*); + +private: + KStyle (const KStyle&); + +protected: +//igx virtual void virtual_hook (int, void*); + +//force +%ConvertToSubClassCode + // The table of Python class objects indexed by their names. The table + // must be sorted by name. + + static sipStringTypeClassMap map[] = { + {sipName_KStyle, &sipClass_KStyle}, + }; + + sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0])); +%End +//end + +}; // class KStyle + diff --git a/sip/tdefx/tdefx-kde320.diff b/sip/tdefx/tdefx-kde320.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/tdefx/tdefx-kde320.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/tdefx/tdefx-kde321.diff b/sip/tdefx/tdefx-kde321.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/tdefx/tdefx-kde321.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/tdefx/tdefx-kde322.diff b/sip/tdefx/tdefx-kde322.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/tdefx/tdefx-kde322.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/tdefx/tdefx-kde323.diff b/sip/tdefx/tdefx-kde323.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/tdefx/tdefx-kde323.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/tdefx/tdefx-kde330.diff b/sip/tdefx/tdefx-kde330.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/tdefx/tdefx-kde330.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/tdefx/tdefx-kde331.diff b/sip/tdefx/tdefx-kde331.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/tdefx/tdefx-kde331.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/tdefx/tdefx-kde332.diff b/sip/tdefx/tdefx-kde332.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/tdefx/tdefx-kde332.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/tdefx/tdefx-kde340.diff b/sip/tdefx/tdefx-kde340.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/tdefx/tdefx-kde340.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/tdefx/tdefx-kde341.diff b/sip/tdefx/tdefx-kde341.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/tdefx/tdefx-kde341.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/tdefx/tdefx-kde342.diff b/sip/tdefx/tdefx-kde342.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/tdefx/tdefx-kde342.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/tdefx/tdefx-kde343.diff b/sip/tdefx/tdefx-kde343.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/tdefx/tdefx-kde343.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/tdefx/tdefx-kde350.diff b/sip/tdefx/tdefx-kde350.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/tdefx/tdefx-kde350.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/tdefx/tdefx-kde351.diff b/sip/tdefx/tdefx-kde351.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/tdefx/tdefx-kde351.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/tdefx/tdefx-kde352.diff b/sip/tdefx/tdefx-kde352.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/tdefx/tdefx-kde352.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/tdefx/tdefx-kde353.diff b/sip/tdefx/tdefx-kde353.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/tdefx/tdefx-kde353.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/tdefx/tdefxmod.sip.in b/sip/tdefx/tdefxmod.sip.in new file mode 100644 index 0000000..27a3ade --- /dev/null +++ b/sip/tdefx/tdefxmod.sip.in @@ -0,0 +1,41 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdefx version KDE_3_5_2 + +%Copying + + This software is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2 of + the License, or (at your option) any later version. + + This software is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public + License along with this library; see the file COPYING. + If not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%End + +%Module tdefx + +%Import qt/qtmod.sip +%Import dcopmod.sip +%Import tdecoremod.sip + +%Include kdrawutil.sip +%Include kimageeffect.sip +%Include kpixmap.sip +%Include kpixmapeffect.sip +%Include kpixmapsplitter.sip +%Include kstyle.sip +@mark@ diff --git a/sip/tdeprint/driver.sip b/sip/tdeprint/driver.sip new file mode 100644 index 0000000..6b89860 --- /dev/null +++ b/sip/tdeprint/driver.sip @@ -0,0 +1,338 @@ +// +// Copyright 2005 Jim Bublitz +// Earlier copyrights 1998 - 2004 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeprint version KDE_3_4_0 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) + +class DrBase +{ +%TypeHeaderCode +#include +%End + + +public: + + enum Type + { + Base, + Main, + ChoiceGroup, + Group, + String, + Integer, + Float, + List, + Boolean + }; + + DrBase (); + DrBase::Type type () const; + bool isOption () const; + const QString& get (const QString&) const; + void set (const QString&, const QString&); + bool has (const QString&) const; + const QString& name () const; + void setName (const QString&); + bool conflict () const; + void setConflict (bool); + virtual QString valueText (); + virtual QString prettyText (); + virtual void setValueText (const QString&); +//ig virtual DriverItem* createItem (DriverItem* /Transfer/, DriverItem* = 0); + virtual void setOptions (const QMap&); + virtual void getOptions (QMap&, bool = 0); + virtual DrBase* clone (); + +protected: + +}; // class DrBase + +%End + + +%If ( KDE_3_1_0 - ) + +class DrGroup : DrBase +{ +%TypeHeaderCode +#include +%End + + +public: + DrGroup (); + void addOption (DrBase*); + void addGroup (DrGroup*); + void addObject (DrBase*); + void clearConflict (); + void removeOption (const QString&); + void removeGroup (DrGroup*); + bool isEmpty (); +//ig virtual DriverItem* createItem (DriverItem* /Transfer/, DriverItem* = 0); +//ig DrBase* findOption (const QString&, DrGroup** = 0); +//ig DrGroup* findGroup (DrGroup*, DrGroup** = 0); + void setOptions (const QMap&); + void getOptions (QMap&, bool = 0); + DrBase* clone (); +//ig const QPtrList& groups (); +//ig const QPtrList& options (); + +%If ( KDE_3_2_0 - ) + static QString groupForOption (const QString&); +%End + + +protected: +//ig void createTree (DriverItem* /Transfer/); +//ig void flattenGroup (QMap&, int&); + +protected: + +}; // class DrGroup + +%End + + +%If ( KDE_3_1_0 - ) + +class DrMain : DrGroup +{ +%TypeHeaderCode +#include +%End + + +public: + DrMain (); +//ig DriverItem* createTreeView (QListView* /Transfer/); + void addConstraint (DrConstraint*); + int checkConstraints (); + DrPageSize* findPageSize (const QString&); + void addPageSize (DrPageSize*); + void removeOptionGlobally (const QString&); + void removeGroupGlobally (DrGroup*); +//ig QMap flatten (); + DrMain* cloneDriver (); + +protected: + +}; // class DrMain + +%End + + +%If ( KDE_3_1_0 - ) + +class DrChoiceGroup : DrGroup +{ +%TypeHeaderCode +#include +%End + + +public: + DrChoiceGroup (); +//ig DriverItem* createItem (DriverItem* /Transfer/, DriverItem* = 0); + +}; // class DrChoiceGroup + +%End + + +%If ( KDE_3_1_0 - ) + +class DrStringOption : DrBase +{ +%TypeHeaderCode +#include +%End + + +public: + DrStringOption (); + virtual QString valueText (); + virtual void setValueText (const QString&); + +protected: + +}; // class DrStringOption + +%End + + +%If ( KDE_3_1_0 - ) + +class DrIntegerOption : DrBase +{ +%TypeHeaderCode +#include +%End + + +public: + DrIntegerOption (); + virtual QString valueText (); + virtual void setValueText (const QString&); + QString fixedVal (); + +protected: + +}; // class DrIntegerOption + +%End + + +%If ( KDE_3_1_0 - ) + +class DrFloatOption : DrBase +{ +%TypeHeaderCode +#include +%End + + +public: + DrFloatOption (); + virtual QString valueText (); + virtual void setValueText (const QString&); + QString fixedVal (); + +protected: + +}; // class DrFloatOption + +%End + + +%If ( KDE_3_1_0 - ) + +class DrListOption : DrBase +{ +%TypeHeaderCode +#include +%End + + +public: + DrListOption (); + void addChoice (DrBase*); +//ig QPtrList* choices (); + DrBase* currentChoice () const; + DrBase* findChoice (const QString&); + void setChoice (int); + virtual QString valueText (); + virtual QString prettyText (); + virtual void setValueText (const QString&); + void setOptions (const QMap&); + void getOptions (QMap&, bool = 0); +//ig DriverItem* createItem (DriverItem* /Transfer/, DriverItem* = 0); + DrBase* clone (); + +protected: + +}; // class DrListOption + +%End + + +%If ( KDE_3_1_0 - ) + +class DrBooleanOption : DrListOption +{ +%TypeHeaderCode +#include +%End + + +public: + DrBooleanOption (); + +}; // class DrBooleanOption + +%End + + +%If ( KDE_3_1_0 - ) + +class DrConstraint +{ +%TypeHeaderCode +#include +%End + + +public: + DrConstraint (const QString&, const QString&, const QString& = QString ::null , const QString& = QString ::null ); + DrConstraint (const DrConstraint&); + bool check (DrMain*); + +protected: + +}; // class DrConstraint + +%End + + +%If ( KDE_3_1_0 - ) + +class DrPageSize +{ +%TypeHeaderCode +#include +%End + + +public: + DrPageSize (const QString&, int, int, int, int, int, int); + DrPageSize (const DrPageSize&); + +%If ( KDE_3_2_0 - ) + float pageWidth () const; + float pageHeight () const; + float leftMargin () const; + float rightMargin () const; + float topMargin () const; + float bottomMargin () const; + QString pageName () const; +%End + + QSize pageSize () const; + QRect pageRect () const; + QSize margins () const; + +protected: + +public: + +%If ( - KDE_3_2_0 ) + QString name () const; +%End + + +}; // class DrPageSize + +%End + diff --git a/sip/tdeprint/kmjob.sip b/sip/tdeprint/kmjob.sip new file mode 100644 index 0000000..e691caf --- /dev/null +++ b/sip/tdeprint/kmjob.sip @@ -0,0 +1,113 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeprint version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) + +class KMJob : KMObject +{ +%TypeHeaderCode +#include +%End + + +public: + + enum JobAction + { + Remove, + Move, + Hold, + Resume, + Restart, + ShowCompleted, + All + }; + + + enum JobState + { + Printing, + Queued, + Held, + Error, + Cancelled, + Aborted, + Completed, + Unknown + }; + + + enum JobType + { + System, + Threaded + }; + + KMJob (); + KMJob (const KMJob&); + void copy (const KMJob&); + QString pixmap (); + QString stateString (); + bool isCompleted () const; + bool isActive () const; + int id () const; + void setId (int); + const QString& name () const; + void setName (const QString&); + const QString& printer () const; + void setPrinter (const QString&); + const QString& owner () const; + void setOwner (const QString&); + int state () const; + void setState (int); + int size () const; + void setSize (int); + const QString& uri () const; + void setUri (const QString&); + int type () const; + void setType (int); + int pages () const; + void setPages (int); + int processedPages () const; + void setProcessedPages (int); + int processedSize () const; + void setProcessedSize (int); + bool isRemote () const; + void setRemote (bool); + QString attribute (int) const; + void setAttribute (int, const QString&); + int attributeCount () const; + void setAttributeCount (int); + +protected: + void init (); + +protected: + +}; // class KMJob + +%End + diff --git a/sip/tdeprint/kmjobmanager.sip b/sip/tdeprint/kmjobmanager.sip new file mode 100644 index 0000000..2bbaad5 --- /dev/null +++ b/sip/tdeprint/kmjobmanager.sip @@ -0,0 +1,197 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeprint version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) + +class KMJobManager : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + + enum JobType + { + ActiveJobs, + CompletedJobs + }; + + + class JobFilter + { + + public: + JobFilter (); +//ig int m_type[2]; + +%If ( KDE_3_2_2 - ) + bool m_isspecial; +%End + + + }; // class JobFilter + + +public: + KMJobManager (QObject* /TransferThis/ = 0, const char* = 0); + static KMJobManager* self (); + +%If ( KDE_3_2_2 - ) + void addPrinter (const QString&, KMJobManager::JobType = ActiveJobs , bool = 0); +%End + + void removePrinter (const QString&, KMJobManager::JobType = ActiveJobs ); + void clearFilter (); +//ig QDict* filter (); + int limit (); + void setLimit (int); + KMJob* findJob (const QString&); + bool sendCommand (const QString&, int, const QString& = QString ::null ); + bool sendCommand (const QPtrList&, int, const QString& = QString ::null ); + const QPtrList& jobList (bool = 1); + void addJob (KMJob*); +//ig KMThreadJob* threadJob (); + virtual int actions (); + virtual QValueList createPluginActions (KActionCollection*); + virtual void validatePluginActions (KActionCollection*, const QPtrList&); + virtual bool doPluginAction (int, const QPtrList&); + +protected: + void discardAllJobs (); + void removeDiscardedJobs (); + +protected: + virtual bool listJobs (const QString&, KMJobManager::JobType, int = 0); + virtual bool sendCommandSystemJob (const QPtrList&, int, const QString& = QString ::null ); + bool sendCommandThreadJob (const QPtrList&, int, const QString& = QString ::null ); + +protected: + +public: + +%If ( - KDE_3_2_2 ) + void addPrinter (const QString&, KMJobManager::JobType = ActiveJobs ); + +//force +%ConvertToSubClassCode + // The table of Python class objects indexed by their names. The table + // must be sorted by name. + + static sipStringTypeClassMap map[] = { + {sipName_KMJobManager, &sipClass_KMJobManager}, + {sipName_KMManager, &sipClass_KMManager}, + {sipName_KPrintAction, &sipClass_KPrintAction}, + {sipName_KPrintDialogPage, &sipClass_KPrintDialogPage}, + }; + + sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0])); +%End +//end +%End + + +}; // class KMJobManager + +%End + + + +%If (KDE_3_1_0 - ) +%MappedType QPtrList +//converts a Python list of KMJob +{ +%TypeHeaderCode +#include +#include +typedef QPtrList KMJobList; +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList *cpplist = (QPtrList *)sipCpp; + KMJob *cpp; + PyObject *inst; + + // the loop depends on the type of iterator the tmeplate makes available + for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) + { + if (((inst = sipConvertFromInstance (cpp, sipClass_KMJob, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList *cpplist = new QPtrList; + + PyObject *elem; + KMJob *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KMJob *)sipForceConvertToType(elem, sipType_KMJob, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; +%End + + diff --git a/sip/tdeprint/kmmanager.sip b/sip/tdeprint/kmmanager.sip new file mode 100644 index 0000000..541c91f --- /dev/null +++ b/sip/tdeprint/kmmanager.sip @@ -0,0 +1,220 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeprint version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KMManager : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + + enum PrinterOperations + { + PrinterEnabling, + PrinterCreation, + PrinterDefault, + PrinterTesting, + PrinterConfigure, + PrinterRemoval, + PrinterAll + }; + + + enum ServerOperations + { + ServerRestarting, + ServerConfigure, + ServerAll + }; + + KMManager (QObject* /TransferThis/ = 0, const char* = 0); + static KMManager* self (); + QString errorMsg () const; + void setErrorMsg (const QString&); + bool hasManagement () const; + virtual bool createPrinter (KMPrinter*); + virtual bool removePrinter (KMPrinter*); + virtual bool enablePrinter (KMPrinter*, bool); + virtual bool startPrinter (KMPrinter*, bool); + virtual bool completePrinter (KMPrinter*); + virtual bool completePrinterShort (KMPrinter*); + virtual bool setDefaultPrinter (KMPrinter*); + virtual bool testPrinter (KMPrinter*); + bool upPrinter (KMPrinter*, bool); + bool modifyPrinter (KMPrinter*, KMPrinter*); + bool removePrinter (const QString&); + bool enablePrinter (const QString&, bool); + bool startPrinter (const QString&, bool); + bool completePrinter (const QString&); + bool setDefaultPrinter (const QString&); + int printerOperationMask () const; + int addPrinterWizard (QWidget* /Transfer/ = 0); + bool createSpecialPrinter (KMPrinter*); + bool removeSpecialPrinter (KMPrinter*); + KMPrinter* findPrinter (const QString&); + QPtrList* printerList (bool = 1); + QPtrList* printerListComplete (bool = 1); + KMPrinter* defaultPrinter (); + void enableFilter (bool); + bool isFilterEnabled () const; + virtual QString driverDbCreationProgram (); + virtual QString driverDirectory (); +//ig virtual DrMain* loadPrinterDriver (KMPrinter*, bool = 0); +//ig virtual DrMain* loadDbDriver (KMDBEntry*); +//ig virtual DrMain* loadFileDriver (const QString&); +//ig DrMain* loadDriver (KMPrinter*, bool = 0); +//ig virtual bool savePrinterDriver (KMPrinter*, DrMain*); +//ig virtual bool validateDbDriver (KMDBEntry*); + bool invokeOptionsDialog (QWidget* /Transfer/ = 0); + +%If ( KDE_3_1_0 - ) + virtual QString stateInformation (); +%End + + int serverOperationMask () const; + virtual bool restartServer (); + virtual bool configureServer (QWidget* /Transfer/ = 0); + virtual QStringList detectLocalPrinters (); + virtual void createPluginActions (KActionCollection*); + virtual void validatePluginActions (KActionCollection*, KMPrinter*); + +%If ( KDE_3_1_0 - ) + void checkUpdatePossible (); +%End + + +signals: + +%If ( KDE_3_1_0 - ) + void updatePossible (bool); +%End + + +protected: + virtual void listPrinters (); + void addPrinter (KMPrinter*); + void setHardDefault (KMPrinter*); + void setSoftDefault (KMPrinter*); + KMPrinter* softDefault () const; + KMPrinter* hardDefault () const; + bool uncompressFile (const QString&, QString&); + bool notImplemented (); + void setHasManagement (bool); + void setPrinterOperationMask (int); + void setServerOperationMask (int); + QString testPage (); + void discardAllPrinters (bool); + +%If ( KDE_3_1_0 - ) + void setUpdatePossible (bool); + virtual void checkUpdatePossibleInternal (); +%End + + +protected: + +}; // class KMManager + + + +%MappedType QPtrList +//converts a Python list of KMPrinter +{ +%TypeHeaderCode +#include +#include +#include +%End + +%ConvertFromTypeCode + // Convert to a Python list of KMPrinter + + if (!sipCpp) + return PyList_New (0); + + PyObject *plist; + + // Create the list + + if ((plist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList *kpList = (QPtrList *)sipCpp; + PyObject *inst; + KMPrinter *p; + + for(p = kpList->first (); p; p = kpList->next ()) + { + inst = sipConvertFromInstance (p, sipClass_KMPrinter, sipTransferObj); + if ((inst == NULL) || (PyList_Append (plist, inst) < 0)) + { + Py_XDECREF (inst); + Py_DECREF (plist); + return NULL; + } + } + + return plist; +%End + +%ConvertToTypeCode + // Convert a Python list to QPtrList on the heap. + + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList *kpList = new QPtrList; + + PyObject *elem; + KMPrinter *p; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + p = (KMPrinter *)sipForceConvertToType(elem, sipType_KMPrinter, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete kpList; + return 0; + } + + kpList->append (p); + } + + *sipCppPtr = kpList; + + return 1; +%End +}; + + diff --git a/sip/tdeprint/kmobject.sip b/sip/tdeprint/kmobject.sip new file mode 100644 index 0000000..1c5a5c0 --- /dev/null +++ b/sip/tdeprint/kmobject.sip @@ -0,0 +1,42 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeprint version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KMObject +{ +%TypeHeaderCode +#include +%End + + +public: + KMObject (); + bool isDiscarded () const; + void setDiscarded (bool = 1); + +protected: + +}; // class KMObject + diff --git a/sip/tdeprint/kmprinter.sip b/sip/tdeprint/kmprinter.sip new file mode 100644 index 0000000..46135bf --- /dev/null +++ b/sip/tdeprint/kmprinter.sip @@ -0,0 +1,178 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeprint version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KMPrinter : KMObject +{ +%TypeHeaderCode +#include +%End + + +public: + + enum PrinterType + { + Printer, + Class, + Implicit, + Virtual, + Remote, + Invalid, + Special + }; + + + enum PrinterState + { + Idle, + Stopped, + Processing, + Unknown, + Rejecting, + StateMask + }; + + +%If ( KDE_3_2_0 - ) + + enum PrinterCap + { + CapBW, + CapColor, + CapDuplex, + CapStaple, + CapCopies, + CapCollate, + CapPunch, + CapCover, + CapBind, + CapSort, + CapSmall, + CapMedium, + CapLarge, + CapVariable + }; + +%End + + KMPrinter (); + KMPrinter (const KMPrinter&); + void copy (const KMPrinter&); + const QString& name () const; + void setName (const QString&); + const QString& printerName () const; + void setPrinterName (const QString&); + const QString& instanceName () const; + void setInstanceName (const QString&); + int type () const; + void setType (int); + void addType (int); + KMPrinter::PrinterState state (bool = 0) const; + QString stateString () const; + void setState (KMPrinter::PrinterState); + bool acceptJobs () const; + void setAcceptJobs (bool); + +%If ( KDE_3_2_0 - ) + const QString& device () const; + QString deviceProtocol () const; + void setDevice (const QString&); +%End + + const QStringList& members () const; + void setMembers (const QStringList&); + void addMember (const QString&); + const QString& description () const; + void setDescription (const QString&); + const QString& location () const; + void setLocation (const QString&); + const KURL& uri () const; + void setUri (const KURL&); + const QString& manufacturer () const; + void setManufacturer (const QString&); + const QString& model () const; + void setModel (const QString&); + const QString& driverInfo () const; + void setDriverInfo (const QString&); + +%If ( KDE_3_2_0 - ) + int printerCap () const; + void setPrinterCap (int); + void addPrinterCap (int); +%End + + bool isClass (bool = 1) const; + bool isImplicit () const; + bool isPrinter () const; + bool isRemote () const; + bool isLocal () const; + bool isVirtual () const; + bool isValid () const; + bool isSpecial () const; +//ig KMDBEntry* dbEntry () const; +//ig void setDbEntry (KMDBEntry*); + QString pixmap (); + void setPixmap (const QString&); + bool isHardDefault () const; + void setHardDefault (bool); + bool isSoftDefault () const; + void setSoftDefault (bool); + bool ownSoftDefault () const; + void setOwnSoftDefault (bool); + static int compare (KMPrinter*, KMPrinter*); + const QString& option (const QString&) const; + bool hasOption (const QString&) const; + void setOption (const QString&, const QString&); + void removeOption (const QString&); + QMap options () const; + void setOptions (const QMap&); +//ig DrMain* driver () const; +//ig void setDriver (DrMain*); +//ig DrMain* takeDriver (); + bool autoConfigure (KPrinter*, QWidget* /Transfer/ = 0); + const QString& defaultOption (const QString&) const; + void setDefaultOption (const QString&, const QString&); + QMap defaultOptions () const; + void setDefaultOptions (const QMap&); + const QString& editedOption (const QString&) const; + void setEditedOption (const QString&, const QString&); + QMap editedOptions () const; + void setEditedOptions (const QMap&); + bool isEdited () const; + void setEdited (bool); + +protected: + +public: + +%If ( - KDE_3_2_0 ) + const KURL& device () const; + void setDevice (const KURL&); +%End + + +}; // class KMPrinter + diff --git a/sip/tdeprint/kpreloadobject.sip b/sip/tdeprint/kpreloadobject.sip new file mode 100644 index 0000000..831b67f --- /dev/null +++ b/sip/tdeprint/kpreloadobject.sip @@ -0,0 +1,43 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeprint version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPReloadObject +{ +%TypeHeaderCode +#include +%End + + +public: + KPReloadObject (bool = 0); + +protected: + virtual void reload () = 0; + virtual void aboutToReload (); + virtual void configChanged (); + +}; // class KPReloadObject + diff --git a/sip/tdeprint/kprintaction.sip b/sip/tdeprint/kprintaction.sip new file mode 100644 index 0000000..fc1f929 --- /dev/null +++ b/sip/tdeprint/kprintaction.sip @@ -0,0 +1,61 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeprint version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPrintAction : KActionMenu +{ +%TypeHeaderCode +#include +%End + + +public: + + enum PrinterType + { + All, + Regular, + Specials + }; + + KPrintAction (const QString&, KPrintAction::PrinterType = All , QWidget* = 0, QObject* /TransferThis/ = 0, const char* = 0); + KPrintAction (const QString&, const QIconSet&, KPrintAction::PrinterType = All , QWidget* = 0, QObject* /TransferThis/ = 0, const char* = 0); + KPrintAction (const QString&, const QString&, KPrintAction::PrinterType = All , QWidget* = 0, QObject* /TransferThis/ = 0, const char* = 0); + static KPrintAction* exportAll (QWidget* = 0, QObject* /Transfer/ = 0, const char* = 0); + static KPrintAction* exportRegular (QWidget* = 0, QObject* /Transfer/ = 0, const char* = 0); + static KPrintAction* exportSpecial (QWidget* = 0, QObject* /Transfer/ = 0, const char* = 0); + +signals: + void print (KPrinter*) /PyName=print_/; + +protected slots: + void slotAboutToShow (); + void slotActivated (int); + +protected: + void initialize (KPrintAction::PrinterType, QWidget*); + +}; // class KPrintAction + diff --git a/sip/tdeprint/kprintdialog.sip b/sip/tdeprint/kprintdialog.sip new file mode 100644 index 0000000..8e93dc8 --- /dev/null +++ b/sip/tdeprint/kprintdialog.sip @@ -0,0 +1,169 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeprint version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPrintDialog : KDialog, KPReloadObject +{ +%TypeHeaderCode +#include +%End + + +public: + KPrintDialog (QWidget* /TransferThis/ = 0, const char* = 0); + void setFlags (int); + void setDialogPages (QPtrList*); + +%If ( KDE_3_1_0 - ) + void enableDialogPage (int, bool = 1); +%End + + KPrinter* printer () const; + static KPrintDialog* printerDialog (KPrinter*, QWidget*, const QString& = QString ::null , bool = 0); + +signals: + void printRequested (KPrinter*); + +protected slots: + void slotPrinterSelected (int); + void slotProperties (); + void slotSetDefault (); + void slotOptions (); + virtual void done (int); + void slotWizard (); + void slotExtensionClicked (); + void slotToggleFilter (bool); + +%If ( KDE_3_1_0 - ) + void slotHelp (); + void slotOutputFileSelected (const QString&); + void slotUpdatePossible (bool); + void slotOpenFileDialog (); +%End + + +protected: + bool checkOutputFile (); + void enableSpecial (bool); + void enableOutputFile (bool); + void setOutputFileExtension (const QString&); + void reload (); + void configChanged (); + void expandDialog (bool = 1); + +%If ( KDE_3_1_0 - ) + void initialize (KPrinter*); + void init (); +%End + + +protected: + +public: + +%If ( - KDE_3_1_0 ) + void initialize (KPrinter*); +%End + + +}; // class KPrintDialog + + + +%MappedType QPtrList +//converts a Python list of KPrintDialogPage +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + // Convert to a Python list of KPrintDialogPage + + if (!sipCpp) + return PyList_New (0); + + PyObject *plist; + + // Create the list + + if ((plist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList *kpList = (QPtrList *)sipCpp; + PyObject *inst; + KPrintDialogPage *p; + + for(p = kpList->first (); p; p = kpList->next ()) + { + inst = sipConvertFromInstance (p, sipClass_KPrintDialogPage, sipTransferObj); + if ((inst == NULL) || (PyList_Append (plist, inst) < 0)) + { + Py_XDECREF (inst); + Py_DECREF (plist); + return NULL; + } + } + + return plist; +%End + +%ConvertToTypeCode + // Convert a Python list to QPtrList on the heap. + + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList *kpList = new QPtrList; + + PyObject *elem; + KPrintDialogPage *p; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + p = (KPrintDialogPage *)sipForceConvertToType(elem, sipType_KPrintDialogPage, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete kpList; + return 0; + } + + kpList->append (p); + } + + *sipCppPtr = kpList; + + return 1; +%End +}; + + diff --git a/sip/tdeprint/kprintdialogpage.sip b/sip/tdeprint/kprintdialogpage.sip new file mode 100644 index 0000000..3b1c1a9 --- /dev/null +++ b/sip/tdeprint/kprintdialogpage.sip @@ -0,0 +1,52 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeprint version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPrintDialogPage : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KPrintDialogPage (QWidget* /TransferThis/ = 0, const char* = 0); +//ig KPrintDialogPage (KMPrinter*, DrMain* = 0, QWidget* /TransferThis/ = 0, const char* = 0); + virtual void getOptions (QMap&, bool = 0); + virtual void setOptions (const QMap&); + virtual bool isValid (QString&); + int id () const; + void setId (int); + QString title () const; + void setTitle (const QString&); + bool onlyRealPrinters () const; + void setOnlyRealPrinters (bool = 1); +//ig DrMain* driver (); +//ig KMPrinter* printer (); + +protected: + +}; // class KPrintDialogPage + diff --git a/sip/tdeprint/kprinter.sip b/sip/tdeprint/kprinter.sip new file mode 100644 index 0000000..2229b9f --- /dev/null +++ b/sip/tdeprint/kprinter.sip @@ -0,0 +1,258 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeprint version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPrinter : QPaintDevice, KPReloadObject +{ +%TypeHeaderCode +#include +%End + + +public: + + enum StandardPageType + { + CopiesPage, + FilesPage, + Custom + }; + + + enum PageSelectionType + { + ApplicationSide, + SystemSide + }; + + + enum ApplicationType + { + Dialog, + StandAlone, + StandAlonePersistent + }; + + + enum PageSetType + { + AllPages, + OddPages, + EvenPages + }; + + + enum CollateType + { + Collate, + Uncollate + }; + + + enum ColorMode + { + GrayScale, + Color + }; + + + enum Orientation + { + Portrait, + Landscape + }; + + + enum PageOrder + { + FirstPageFirst, + LastPageFirst + }; + + + enum PageSize + { + A4, + B5, + Letter, + Legal, + Executive, + A0, + A1, + A2, + A3, + A5, + A6, + A7, + A8, + A9, + B0, + B1, + B10, + B2, + B3, + B4, + B6, + B7, + B8, + B9, + C5E, + Comm10E, + DLE, + Folio, + Ledger, + Tabloid, + NPageSize + }; + + KPrinter (bool = 1, QPrinter::PrinterMode = QPrinter ::ScreenResolution ); + bool newPage (); + bool abort (); + bool aborted () const; + bool outputToFile () const; + void setOutputToFile (bool); + QString outputFileName () const; + void setOutputFileName (const QString&); + QString docName () const; + void setDocName (const QString&); + QString creator () const; + void setCreator (const QString&); + bool fullPage () const; + void setFullPage (bool); + KPrinter::ColorMode colorMode () const; + void setColorMode (KPrinter::ColorMode); + int numCopies () const; + void setNumCopies (int); + KPrinter::Orientation orientation () const; + void setOrientation (KPrinter::Orientation); + KPrinter::PageOrder pageOrder () const; + void setPageOrder (KPrinter::PageOrder); + KPrinter::CollateType collate () const; + void setCollate (KPrinter::CollateType); + int minPage () const; + int maxPage () const; + void setMinMax (int, int); + int fromPage () const; + int toPage () const; + void setFromTo (int, int); + KPrinter::PageSize pageSize () const; + void setPageSize (KPrinter::PageSize); + QString printerName () const; + void setPrinterName (const QString&); + QString printProgram () const; + void setPrintProgram (const QString&); + QString printerSelectionOption () const; + void setPrinterSelectionOption (const QString&); + int currentPage () const; + void setCurrentPage (int = 0); + KPrinter::PageSetType pageSet () const; + bool setup (QWidget* /Transfer/ = 0, const QString& = QString ::null , bool = 0); + QSize margins () const; + void setMargins (QSize); + QSize realPageSize () const; + void setRealPageSize (QSize); + +%If ( KDE_3_1_0 - ) + void setRealDrawableArea (const QRect&); + QRect realDrawableArea () const; + void margins (uint*, uint*, uint*, uint*) const /PyName=marginsAsInts/; + +%If ( KDE_3_2_0 - ) + void setMargins (uint, uint, uint, uint); +%End + +%End + + QValueList pageList () const; + void setPreviewOnly (bool); + bool previewOnly () const; + +%If ( KDE_3_1_0 - ) + void setResolution (int); + int resolution () const; + +%If ( KDE_3_2_0 - ) + void setUsePrinterResolution (bool); +%End + +%End + +//ig KPrinterImpl* implementation () const; + bool printFiles (const QStringList&, bool = 0, bool = 1); + static void addDialogPage (KPrintDialogPage*); + static void setPageSelection (KPrinter::PageSelectionType); + static KPrinter::PageSelectionType pageSelection (); + static void setApplicationType (KPrinter::ApplicationType); + static KPrinter::ApplicationType applicationType (); + static void addStandardPage (int); + static void removeStandardPage (int); + const QString& option (const QString&) const; + void setOption (const QString&, const QString&); + const QMap& options () const; + void setOptions (const QMap&); + void initOptions (const QMap&); + QString searchName () const; + void setSearchName (const QString&); + QString errorMessage () const; + void setErrorMessage (const QString&); + bool autoConfigure (const QString& = QString ::null , QWidget* /Transfer/ = 0); + void setDocFileName (const QString&); + QString docFileName () const; + +%If ( KDE_3_1_0 - ) + void setDocDirectory (const QString&); + QString docDirectory () const; +%End + + +protected: +//ig virtual bool cmd (int, QPainter*, QPDevCmdParam*); + virtual int metric (int) const; + void translateQtOptions (); + void loadSettings (); + void saveSettings (); + void preparePrinting (); + void finishPrinting (); + void reload (); + void init (bool = 1, QPrinter::PrinterMode = QPrinter ::ScreenResolution ); + +%If ( KDE_3_1_0 - ) + bool doPreview (const QString&); + +%If ( KDE_3_2_0 - ) +//ig void setRealPageSize (DrPageSize*); + void setOption (const QString&, const QString&, bool); +%End + +%End + + +protected: + +}; // class KPrinter + +KPrinter::PageSize pageNameToPageSize (const QString&); +const char* pageSizeToPageName (KPrinter::PageSize); +//ig QSize rangeToSize (const QString&); diff --git a/sip/tdeprint/tdeprint-kde310.diff b/sip/tdeprint/tdeprint-kde310.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/tdeprint/tdeprint-kde310.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/tdeprint/tdeprint-kde311.diff b/sip/tdeprint/tdeprint-kde311.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/tdeprint/tdeprint-kde311.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/tdeprint/tdeprint-kde312.diff b/sip/tdeprint/tdeprint-kde312.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/tdeprint/tdeprint-kde312.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/tdeprint/tdeprint-kde313.diff b/sip/tdeprint/tdeprint-kde313.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/tdeprint/tdeprint-kde313.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/tdeprint/tdeprint-kde314.diff b/sip/tdeprint/tdeprint-kde314.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/tdeprint/tdeprint-kde314.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/tdeprint/tdeprint-kde315.diff b/sip/tdeprint/tdeprint-kde315.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/tdeprint/tdeprint-kde315.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/tdeprint/tdeprint-kde320.diff b/sip/tdeprint/tdeprint-kde320.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/tdeprint/tdeprint-kde320.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/tdeprint/tdeprint-kde321.diff b/sip/tdeprint/tdeprint-kde321.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/tdeprint/tdeprint-kde321.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/tdeprint/tdeprint-kde322.diff b/sip/tdeprint/tdeprint-kde322.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/tdeprint/tdeprint-kde322.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/tdeprint/tdeprint-kde323.diff b/sip/tdeprint/tdeprint-kde323.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/tdeprint/tdeprint-kde323.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/tdeprint/tdeprint-kde330.diff b/sip/tdeprint/tdeprint-kde330.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/tdeprint/tdeprint-kde330.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/tdeprint/tdeprint-kde331.diff b/sip/tdeprint/tdeprint-kde331.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/tdeprint/tdeprint-kde331.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/tdeprint/tdeprint-kde332.diff b/sip/tdeprint/tdeprint-kde332.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/tdeprint/tdeprint-kde332.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/tdeprint/tdeprint-kde340.diff b/sip/tdeprint/tdeprint-kde340.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/tdeprint/tdeprint-kde340.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/tdeprint/tdeprint-kde341.diff b/sip/tdeprint/tdeprint-kde341.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/tdeprint/tdeprint-kde341.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/tdeprint/tdeprint-kde342.diff b/sip/tdeprint/tdeprint-kde342.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/tdeprint/tdeprint-kde342.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/tdeprint/tdeprint-kde343.diff b/sip/tdeprint/tdeprint-kde343.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/tdeprint/tdeprint-kde343.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/tdeprint/tdeprint-kde350.diff b/sip/tdeprint/tdeprint-kde350.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/tdeprint/tdeprint-kde350.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/tdeprint/tdeprint-kde351.diff b/sip/tdeprint/tdeprint-kde351.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/tdeprint/tdeprint-kde351.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/tdeprint/tdeprint-kde352.diff b/sip/tdeprint/tdeprint-kde352.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/tdeprint/tdeprint-kde352.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/tdeprint/tdeprint-kde353.diff b/sip/tdeprint/tdeprint-kde353.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/tdeprint/tdeprint-kde353.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/tdeprint/tdeprintmod.sip.in b/sip/tdeprint/tdeprintmod.sip.in new file mode 100644 index 0000000..5e072d4 --- /dev/null +++ b/sip/tdeprint/tdeprintmod.sip.in @@ -0,0 +1,47 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeprint version KDE_3_5_2 + +%Copying + + This software is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2 of + the License, or (at your option) any later version. + + This software is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public + License along with this library; see the file COPYING. + If not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%End + +%Module tdeprint + +%Import qt/qtmod.sip +%Import qtxml/qtxmlmod.sip +%Import dcopmod.sip +%Import tdecoremod.sip +%Import tdefxmod.sip +%Import tdeuimod.sip + +%Include kmmanager.sip +%Include kmobject.sip +%Include kmprinter.sip +%Include kpreloadobject.sip +%Include kprintaction.sip +%Include kprintdialog.sip +%Include kprintdialogpage.sip +%Include kprinter.sip +@mark@ + diff --git a/sip/tdeui/kaboutapplication.sip b/sip/tdeui/kaboutapplication.sip new file mode 100644 index 0000000..10f479b --- /dev/null +++ b/sip/tdeui/kaboutapplication.sip @@ -0,0 +1,205 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KAboutApplication : KAboutDialog +{ +%TypeHeaderCode +#include +%End + + +public: + KAboutApplication (QWidget* /TransferThis/ = 0, const char* = 0, bool = 1); + KAboutApplication (const KAboutData*, QWidget* /TransferThis/ = 0, const char* = 0, bool = 1); + +protected: + void buildDialog (const KAboutData*); + +//force +%ConvertToSubClassCode + // The table of Python class objects indexed by their names. The table + // must be sorted by name. + + static sipStringTypeClassMap map[] = { + {sipName_KAboutApplication, &sipClass_KAboutApplication}, + {sipName_KAboutContainer, &sipClass_KAboutContainer}, + {sipName_KAboutContributor, &sipClass_KAboutContributor}, + {sipName_KAboutDialog, &sipClass_KAboutDialog}, + {sipName_KAboutKDE, &sipClass_KAboutKDE}, + {sipName_KAboutWidget, &sipClass_KAboutWidget}, + {sipName_KAction, &sipClass_KAction}, + {sipName_KActionCollection, &sipClass_KActionCollection}, + {sipName_KActionMenu, &sipClass_KActionMenu}, + {sipName_KActionSeparator, &sipClass_KActionSeparator}, + {sipName_KActiveLabel, &sipClass_KActiveLabel}, + {sipName_KAnimWidget, &sipClass_KAnimWidget}, + {sipName_KArrowButton, &sipClass_KArrowButton}, + {sipName_KAuthIcon, &sipClass_KAuthIcon}, + {sipName_KBugReport, &sipClass_KBugReport}, + {sipName_KButtonBox, &sipClass_KButtonBox}, + {sipName_KCModule, &sipClass_KCModule}, + {sipName_KCharSelect, &sipClass_KCharSelect}, + {sipName_KCharSelectTable, &sipClass_KCharSelectTable}, + {sipName_KColorButton, &sipClass_KColorButton}, + {sipName_KColorCells, &sipClass_KColorCells}, + {sipName_KColorCombo, &sipClass_KColorCombo}, + {sipName_KColorDialog, &sipClass_KColorDialog}, + {sipName_KColorDrag, &sipClass_KColorDrag}, + {sipName_KColorPatch, &sipClass_KColorPatch}, + {sipName_KComboBox, &sipClass_KComboBox}, + {sipName_KCommandHistory, &sipClass_KCommandHistory}, + {sipName_KCompletionBox, &sipClass_KCompletionBox}, + {sipName_KContextMenuManager, &sipClass_KContextMenuManager}, + {sipName_KDateInternalMonthPicker,&sipClass_KDateInternalMonthPicker}, +#if KDE_VERSION >= 0x030100 + {sipName_KDateInternalWeekSelector,&sipClass_KDateInternalWeekSelector}, +#endif + {sipName_KDateInternalYearSelector,&sipClass_KDateInternalYearSelector}, + {sipName_KDatePicker, &sipClass_KDatePicker}, + {sipName_KDatePicker, &sipClass_KDatePicker}, + {sipName_KDateTable, &sipClass_KDateTable}, + {sipName_KDateValidator, &sipClass_KDateValidator}, + {sipName_KDateWidget, &sipClass_KDateWidget}, + {sipName_KDialog, &sipClass_KDialog}, + {sipName_KDialogBase, &sipClass_KDialogBase}, + {sipName_KDialogQueue, &sipClass_KDialogQueue}, + {sipName_KDockArea, &sipClass_KDockArea}, + {sipName_KDockMainWindow, &sipClass_KDockMainWindow}, + {sipName_KDockManager, &sipClass_KDockManager}, + {sipName_KDockTabGroup, &sipClass_KDockTabGroup}, + {sipName_KDockWidget, &sipClass_KDockWidget}, + {sipName_KDockWidgetAbstractHeader,&sipClass_KDockWidgetAbstractHeader}, + {sipName_KDockWidgetAbstractHeaderDrag,&sipClass_KDockWidgetAbstractHeaderDrag}, + {sipName_KDockWidgetHeader, &sipClass_KDockWidgetHeader}, + {sipName_KDockWidgetHeaderDrag, &sipClass_KDockWidgetHeaderDrag}, +// {sipName_KDockWindow, &sipClass_KDockWindow}, +#if KDE_VERSION >= 0x030100 + {sipName_KDoubleSpinBox, &sipClass_KDoubleSpinBox}, + {sipName_KDoubleValidator, &sipClass_KDoubleValidator}, +#endif + {sipName_KDualColorButton, &sipClass_KDualColorButton}, + {sipName_KDualColorButton, &sipClass_KDualColorButton}, + {sipName_KEdFind, &sipClass_KEdFind}, + {sipName_KEdGotoLine, &sipClass_KEdGotoLine}, + {sipName_KEdReplace, &sipClass_KEdReplace}, + {sipName_KEdit, &sipClass_KEdit}, + {sipName_KEditListBox, &sipClass_KEditListBox}, + {sipName_KEditToolbar, &sipClass_KEditToolbar}, + {sipName_KEditToolbarWidget, &sipClass_KEditToolbarWidget}, + {sipName_KFloatValidator, &sipClass_KFloatValidator}, + {sipName_KFontAction, &sipClass_KFontAction}, + {sipName_KFontChooser, &sipClass_KFontChooser}, + {sipName_KFontCombo, &sipClass_KFontCombo}, + {sipName_KFontDialog, &sipClass_KFontDialog}, + {sipName_KFontSizeAction, &sipClass_KFontSizeAction}, + {sipName_KGradientSelector, &sipClass_KGradientSelector}, + {sipName_KHSSelector, &sipClass_KHSSelector}, + {sipName_KHelpMenu, &sipClass_KHelpMenu}, + {sipName_KHistoryCombo, &sipClass_KHistoryCombo}, + {sipName_KIconView, &sipClass_KIconView}, + {sipName_KIntSpinBox, &sipClass_KIntSpinBox}, + {sipName_KIntValidator, &sipClass_KIntValidator}, + {sipName_KJanusWidget, &sipClass_KJanusWidget}, + {sipName_KKeyButton, &sipClass_KKeyButton}, + {sipName_KKeyChooser, &sipClass_KKeyChooser}, + {sipName_KKeyDialog, &sipClass_KKeyDialog}, + {sipName_KLed, &sipClass_KLed}, + {sipName_KLineEdit, &sipClass_KLineEdit}, + {sipName_KLineEditDlg, &sipClass_KLineEditDlg}, + {sipName_KListAction, &sipClass_KListAction}, + {sipName_KListBox, &sipClass_KListBox}, + {sipName_KListView, &sipClass_KListView}, + {sipName_KMainWindow, &sipClass_KMainWindow}, + {sipName_KMenuBar, &sipClass_KMenuBar}, + {sipName_KMimeTypeValidator, &sipClass_KMimeTypeValidator}, + {sipName_KNumInput, &sipClass_KNumInput}, + {sipName_KPaletteTable, &sipClass_KPaletteTable}, + {sipName_KPanelApplet, &sipClass_KPanelApplet}, + {sipName_KPanelAppMenu, &sipClass_KPanelAppMenu}, + {sipName_KPanelExtension, &sipClass_KPanelExtension}, + {sipName_KPanelMenu, &sipClass_KPanelMenu}, +#if KDE_VERSION >= 0x030100 + {sipName_KPassivePopup, &sipClass_KPassivePopup}, +#endif + {sipName_KPasswordDialog, &sipClass_KPasswordDialog}, + {sipName_KPasswordEdit, &sipClass_KPasswordEdit}, + {sipName_KPopupFrame, &sipClass_KPopupFrame}, + {sipName_KPopupMenu, &sipClass_KPopupMenu}, + {sipName_KPopupTitle, &sipClass_KPopupTitle}, + {sipName_KProgress, &sipClass_KProgress}, + {sipName_KProgressDialog, &sipClass_KProgressDialog}, + {sipName_KPushButton, &sipClass_KPushButton}, + {sipName_KRadioAction, &sipClass_KRadioAction}, + {sipName_KRecentFilesAction, &sipClass_KRecentFilesAction}, + {sipName_KRestrictedLine, &sipClass_KRestrictedLine}, + {sipName_KRootPermsIcon, &sipClass_KRootPermsIcon}, + {sipName_KRootPixmap, &sipClass_KRootPixmap}, + {sipName_KRuler, &sipClass_KRuler}, + {sipName_KSelectAction, &sipClass_KSelectAction}, + {sipName_KSelector, &sipClass_KSelector}, + {sipName_KSeparator, &sipClass_KSeparator}, +// {sipName_KSharedPixmap, &sipClass_KSharedPixmap}, + {sipName_KSqueezedTextLabel, &sipClass_KSqueezedTextLabel}, + {sipName_KStatusBar, &sipClass_KStatusBar}, + {sipName_KStatusBarLabel, &sipClass_KStatusBarLabel}, + {sipName_KStringListValidator, &sipClass_KStringListValidator}, + {sipName_KSystemTray, &sipClass_KSystemTray}, + {sipName_KTabCtl, &sipClass_KTabCtl}, + {sipName_KTextBrowser, &sipClass_KTextBrowser}, +#if KDE_VERSION >= 0x030100 + {sipName_KTextEdit, &sipClass_KTextEdit}, +#endif + {sipName_KTipDialog, &sipClass_KTipDialog}, + {sipName_KToggleAction, &sipClass_KToggleAction}, +#if KDE_VERSION >= 0x030100 + {sipName_KToggleToolBarAction, &sipClass_KToggleToolBarAction}, +#endif + {sipName_KToolBar, &sipClass_KToolBar}, + {sipName_KToolBarButton, &sipClass_KToolBarButton}, + {sipName_KToolBarPopupAction, &sipClass_KToolBarPopupAction}, + {sipName_KToolBarRadioGroup, &sipClass_KToolBarRadioGroup}, + {sipName_KToolBarSeparator, &sipClass_KToolBarSeparator}, + {sipName_KURLLabel, &sipClass_KURLLabel}, + {sipName_KValueSelector, &sipClass_KValueSelector}, +#if KDE_VERSION >= 0x030100 + {sipName_KWidgetAction, &sipClass_KWidgetAction}, + {sipName_KWindowInfo, &sipClass_KWindowInfo}, +#endif + {sipName_KWindowListMenu, &sipClass_KWindowListMenu}, + {sipName_KWizard, &sipClass_KWizard}, + {sipName_KWritePermsIcon, &sipClass_KWritePermsIcon}, + {sipName_KXMLGUIFactory, &sipClass_KXMLGUIFactory}, + {sipName_KXYSelector, &sipClass_KXYSelector}, +// {sipName_PyKPanelApplet, &sipClass_PyKPanelApplet}, +// {sipName_QXEmbed, &sipClass_QXEmbed}, + }; + + sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0])); +%End +//end + +}; // class KAboutApplication + diff --git a/sip/tdeui/kaboutdialog.sip b/sip/tdeui/kaboutdialog.sip new file mode 100644 index 0000000..e1dd76b --- /dev/null +++ b/sip/tdeui/kaboutdialog.sip @@ -0,0 +1,190 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KAboutContainer : QFrame +{ +%TypeHeaderCode +#include +%End + + +public: + KAboutContainer (QWidget* /TransferThis/ = 0, const char* = 0, int = 0, int = 0, int = AlignCenter , int = AlignCenter ); + void addWidget (QWidget*); + void addPerson (const QString&, const QString&, const QString&, const QString&, bool = 0, bool = 0, bool = 0); + void addTitle (const QString&, int = AlignLeft , bool = 0, bool = 0); + void addImage (const QString&, int = AlignLeft ); + virtual QSize sizeHint () const; + virtual QSize minimumSizeHint () const; + +protected: + virtual void childEvent (QChildEvent*); + +signals: + void urlClick (const QString&); + void mailClick (const QString&, const QString&); + +}; // class KAboutContainer + + +class KAboutContributor : QFrame +{ +%TypeHeaderCode +#include +%End + + +public: + KAboutContributor (QWidget* /TransferThis/ = 0, const char* = 0, const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , bool = 0, bool = 1, bool = 0); + void setName (const QString&, const QString& = QString ::null , bool = 1); + void setEmail (const QString&, const QString& = QString ::null , bool = 1); + void setURL (const QString&, const QString& = QString ::null , bool = 1); + void setWork (const QString&, const QString& = QString ::null , bool = 1); + QString getName (); + QString getEmail (); + QString getURL (); + QString getWork (); + virtual QSize sizeHint () const; + +protected: + virtual void fontChange (const QFont&); + +protected slots: + void urlClickedSlot (const QString&); + void emailClickedSlot (const QString&); + +signals: + void sendEmail (const QString&, const QString&); + void openURL (const QString&); + +}; // class KAboutContributor + + +class KAboutWidget : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KAboutWidget (QWidget* /TransferThis/ = 0, const char* = 0); + void adjust (); + void setLogo (const QPixmap&); + void setAuthor (const QString&, const QString&, const QString&, const QString&); + void setMaintainer (const QString&, const QString&, const QString&, const QString&); + void addContributor (const QString&, const QString&, const QString&, const QString&); + void setVersion (const QString&); + +protected slots: + void sendEmailSlot (const QString&, const QString&); + void openURLSlot (const QString&); + +signals: + void sendEmail (const QString&, const QString&); + void openURL (const QString&); + +protected: + void resizeEvent (QResizeEvent*); + +}; // class KAboutWidget + + +class KAboutDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + + enum LayoutType + { + AbtPlain, + AbtTabbed, + AbtTitle, + AbtImageLeft, + AbtImageRight, + AbtImageOnly, + AbtProduct, + AbtKDEStandard, + AbtAppStandard, + AbtImageAndTitle + }; + + +public: + KAboutDialog (QWidget* /TransferThis/ = 0, const char* = 0, bool = 1); + KAboutDialog (int, const QString&, int, ButtonCode, QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, bool = 0, const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null ); + void adjust (); + virtual void show (); + virtual void show (QWidget*); + void setTitle (const QString&); + void setImage (const QString&); + +%If ( KDE_3_3_0 - ) + void setIcon (const QString&); + +%If ( KDE_3_4_0 - ) + void setProgramLogo (const QString&); + void setProgramLogo (const QPixmap&); +%End + +%End + + void setImageBackgroundColor (const QColor&); + void setImageFrame (bool); + void setProduct (const QString&, const QString&, const QString&, const QString&); + QFrame* addTextPage (const QString&, const QString&, bool = 0, int = 10); + QFrame* addLicensePage (const QString&, const QString&, int = 10); + KAboutContainer* addContainerPage (const QString&, int = AlignCenter , int = AlignCenter ); + KAboutContainer* addScrolledContainerPage (const QString&, int = AlignCenter , int = AlignCenter ); + KAboutContainer* addContainer (int, int); + QFrame* addPage (const QString&); + void setLogo (const QPixmap&); + void setAuthor (const QString&, const QString&, const QString&, const QString&); + void setMaintainer (const QString&, const QString&, const QString&, const QString&); + void addContributor (const QString&, const QString&, const QString&, const QString&); + void setVersion (const QString&); + static void imageURL (QWidget* /Transfer/, const QString&, const QString&, const QColor&, const QString&); + +signals: + void sendEmail (const QString&, const QString&); + void openURL (const QString&); + +protected: + +protected slots: + void sendEmailSlot (const QString&, const QString&); + void openURLSlot (const QString&); + virtual void mouseTrackSlot (int, const QMouseEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KAboutDialog + diff --git a/sip/tdeui/kaboutkde.sip b/sip/tdeui/kaboutkde.sip new file mode 100644 index 0000000..0351960 --- /dev/null +++ b/sip/tdeui/kaboutkde.sip @@ -0,0 +1,38 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KAboutKDE : KAboutDialog +{ +%TypeHeaderCode +#include +%End + + +public: + KAboutKDE (QWidget* /TransferThis/ = 0, const char* = 0, bool = 1); + +}; // class KAboutKDE + diff --git a/sip/tdeui/kaccelmanager.sip b/sip/tdeui/kaccelmanager.sip new file mode 100644 index 0000000..e260488 --- /dev/null +++ b/sip/tdeui/kaccelmanager.sip @@ -0,0 +1,43 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE_3_1_4 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) + +class KAcceleratorManager +{ +%TypeHeaderCode +#include +%End + + +public: + static void manage (QWidget*); + static void manage (QWidget*, bool); + +}; // class KAcceleratorManager + +%End + diff --git a/sip/tdeui/kaccelmenu.sip b/sip/tdeui/kaccelmenu.sip new file mode 100644 index 0000000..4b9dc17 --- /dev/null +++ b/sip/tdeui/kaccelmenu.sip @@ -0,0 +1,53 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KAccelMenu : KPopupMenu +{ +%TypeHeaderCode +#include +#include +#include +%End + + +public: + KAccelMenu (KAccel*, QWidget*/TransferThis/ = 0, const char* = 0); + int insItem (const QPixmap&, const char*, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), const char* = 0); + int insItem (const char*, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), const char* = 0); + int insItem (const QPixmap&, const char*, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), KStdAccel::StdAccel); + int insItem (const char*, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), KStdAccel::StdAccel); + +protected: + char* stripAnd (const char*); + void keyPressEvent (QKeyEvent*); + void popMsg (); + +protected slots: + void highl (int); + void aboutTS (); + +}; // class KAccelMenu + diff --git a/sip/tdeui/kaction.sip b/sip/tdeui/kaction.sip new file mode 100644 index 0000000..3c0ab83 --- /dev/null +++ b/sip/tdeui/kaction.sip @@ -0,0 +1,758 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KAction : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /TransferThis/, const char*); + KAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /TransferThis/, const char*); + KAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /TransferThis/, const char*); + KAction (const KGuiItem&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /TransferThis/, const char*); + KAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KAction (QObject* /TransferThis/ = 0, const char* = 0); + virtual int plug (QWidget*, int = -1); + virtual void plugAccel (KAccel*, bool = 1); + virtual void unplug (QWidget*); + virtual void unplugAccel (); + virtual bool isPlugged () const; + +%If ( KDE_3_1_0 - ) + bool isPlugged (const QWidget*) const; +%End + + virtual bool isPlugged (const QWidget*, int) const; + virtual bool isPlugged (const QWidget*, const QWidget*) const; + QWidget* container (int) const; + int itemId (int) const; + QWidget* representative (int) const; + int containerCount () const; + +%If ( KDE_3_1_0 - ) + uint kaccelCount () const; +%End + + virtual bool hasIcon () const; + bool hasIconSet () const; + virtual QString plainText () const; + virtual QString text () const; + virtual const KShortcut& shortcut () const; + virtual const KShortcut& shortcutDefault () const; + QString shortcutText () const; + void setShortcutText (const QString&); + virtual bool isEnabled () const; + virtual bool isShortcutConfigurable () const; + virtual QString group () const; + virtual QString whatsThis () const; + virtual QString toolTip () const; + virtual QIconSet iconSet (KIcon::Group, int = 0) const; + QIconSet iconSet () const; + virtual QString icon () const; + KActionCollection* parentCollection () const; + static int getToolButtonID (); + void unplugAll (); + +%If ( KDE_3_4_0 - ) + + enum ActivationReason + { + UnknownActivation, + EmulatedActivation, + AccelActivation, + PopupMenuActivation, + ToolBarActivation + }; + +%End + + +public slots: + virtual void setText (const QString&); + virtual bool setShortcut (const KShortcut&); + virtual void setGroup (const QString&); + virtual void setWhatsThis (const QString&); + virtual void setToolTip (const QString&); + virtual void setIconSet (const QIconSet&); + virtual void setIcon (const QString&); + virtual void setEnabled (bool); + +%If ( KDE_3_5_0 - ) + void setDisabled (bool); +%End + + virtual void setShortcutConfigurable (bool); + virtual void activate (); + +protected slots: + virtual void slotDestroyed (); + virtual void slotKeycodeChanged (); + virtual void slotActivated (); + +%If ( KDE_3_4_0 - ) + void slotPopupActivated (); + void slotButtonClicked (int, Qt::ButtonState); +%End + + +protected: + KToolBar* toolBar (int) const; + QPopupMenu* popupMenu (int) const; + void removeContainer (int); + int findContainer (const QWidget*) const; + +%If ( KDE_3_4_0 - ) + int findContainer (int) const; +%End + + void plugMainWindowAccel (QWidget*); + void addContainer (QWidget* /Transfer/, int); + void addContainer (QWidget* /Transfer/, QWidget*); + virtual void updateShortcut (int); + virtual void updateShortcut (QPopupMenu*, int); + virtual void updateGroup (int); + virtual void updateText (int); + virtual void updateEnabled (int); + virtual void updateIconSet (int); + virtual void updateIcon (int); + virtual void updateToolTip (int); + virtual void updateWhatsThis (int); + +%If ( KDE_3_1_0 - ) + QString whatsThisWithIcon () const; + +%If ( KDE_3_3_0 - ) + const KGuiItem& guiItem () const; +%End + +%End + + +signals: + void activated (); + +%If ( KDE_3_4_0 - ) + void activated (KAction::ActivationReason, Qt::ButtonState); +%End + + void enabled (bool); + +public: + int accel () const; + QString statusText () const; + void setAccel (int); + void setStatusText (const QString&); + int menuId (int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KAction + + +%If ( - KDE_3_2_0 ) + +class KToggleAction : KAction +{ +%TypeHeaderCode +#include +%End + + +public: + KToggleAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KToggleAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KToggleAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KToggleAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KToggleAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KToggleAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KToggleAction (QObject* /TransferThis/ = 0, const char* = 0); + virtual int plug (QWidget*, int = -1); + bool isChecked () const; + QString exclusiveGroup () const; + virtual void setExclusiveGroup (const QString&); + +public slots: + virtual void setChecked (bool); + +protected slots: + virtual void slotActivated (); + +protected: + virtual void updateChecked (int); + +signals: + void toggled (bool); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KToggleAction + +%End + + +%If ( - KDE_3_2_0 ) + +class KRadioAction : KToggleAction +{ +%TypeHeaderCode +#include +%End + + +public: + KRadioAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KRadioAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KRadioAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KRadioAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KRadioAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KRadioAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KRadioAction (QObject* /TransferThis/ = 0, const char* = 0); + +protected: + virtual void slotActivated (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KRadioAction + +%End + + +%If ( - KDE_3_2_0 ) + +class KSelectAction : KAction +{ +%TypeHeaderCode +#include +%End + + +public: + KSelectAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KSelectAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KSelectAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KSelectAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KSelectAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KSelectAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KSelectAction (QObject* /TransferThis/ = 0, const char* = 0); + virtual int plug (QWidget*, int = -1); + virtual bool isEditable () const; + virtual QStringList items () const; + virtual void changeItem (int, const QString&); + virtual QString currentText () const; + virtual int currentItem () const; + virtual int comboWidth () const; + QPopupMenu* popupMenu (); + +%If ( KDE_3_1_0 - ) + void setRemoveAmpersandsInCombo (bool); + bool removeAmpersandsInCombo () const; + void setMenuAccelsEnabled (bool); + bool menuAccelsEnabled () const; +%End + + +public slots: + virtual void setCurrentItem (int); + virtual void setItems (const QStringList&); + virtual void clear (); + virtual void setEditable (bool); + virtual void setComboWidth (int); + +protected: + virtual void changeItem (int, int, const QString&); + +%If ( KDE_3_1_0 - ) + QStringList comboItems () const; +%End + + +protected slots: + virtual void slotActivated (int); + virtual void slotActivated (const QString&); + virtual void slotActivated (); + +signals: + void activated (int); + void activated (const QString&); + +protected: + virtual void updateCurrentItem (int); + virtual void updateComboWidth (int); + virtual void updateItems (int); + virtual void updateClear (int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KSelectAction + +%End + + +%If ( - KDE_3_2_0 ) + +class KListAction : KSelectAction +{ +%TypeHeaderCode +#include +%End + + +public: + KListAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KListAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KListAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KListAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KListAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KListAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KListAction (QObject* /TransferThis/ = 0, const char* = 0); + virtual QString currentText () const; + virtual int currentItem () const; + +public slots: + virtual void setCurrentItem (int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KListAction + +%End + + +%If ( - KDE_3_2_0 ) + +class KRecentFilesAction : KListAction +{ +%TypeHeaderCode +#include +%End + + +public: + KRecentFilesAction (const QString&, const KShortcut&, QObject* /TransferThis/, const char* = 0, uint = 10); + KRecentFilesAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0, uint = 10); + KRecentFilesAction (const QString&, const QIconSet&, const KShortcut&, QObject* /TransferThis/, const char* = 0, uint = 10); + KRecentFilesAction (const QString&, const QString&, const KShortcut&, QObject* /TransferThis/, const char* = 0, uint = 10); + KRecentFilesAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0, uint = 10); + KRecentFilesAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0, uint = 10); + KRecentFilesAction (QObject* /TransferThis/ = 0, const char* = 0, uint = 10); + uint maxItems () const; + +public slots: + void setMaxItems (uint); + void loadEntries (KConfig*, QString = QString ::null ); + void saveEntries (KConfig*, QString = QString ::null ); + +public slots: + void addURL (const KURL&); + void removeURL (const KURL&); + void clearURLList (); + +signals: + void urlSelected (const KURL&); + +protected slots: + void itemSelected (const QString&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KRecentFilesAction + +%End + + +%If ( - KDE_3_2_0 ) + +class KFontAction : KSelectAction +{ +%TypeHeaderCode +#include +%End + + +public: + KFontAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KFontAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KFontAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KFontAction (QObject* /TransferThis/ = 0, const char* = 0); + QString font () const; + int plug (QWidget*, int = -1); + +public slots: + void setFont (const QString&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFontAction + +%End + + +%If ( - KDE_3_2_0 ) + +class KFontSizeAction : KSelectAction +{ +%TypeHeaderCode +#include +%End + + +public: + KFontSizeAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontSizeAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KFontSizeAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontSizeAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontSizeAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KFontSizeAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KFontSizeAction (QObject* /TransferThis/ = 0, const char* = 0); + virtual int fontSize () const; + +public slots: + virtual void setFontSize (int); + +protected slots: + virtual void slotActivated (int); + virtual void slotActivated (const QString&); + virtual void slotActivated (); + +signals: + void fontSizeChanged (int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFontSizeAction + +%End + + +%If ( - KDE_3_2_0 ) + +class KActionMenu : KAction +{ +%TypeHeaderCode +#include +%End + + +public: + KActionMenu (const QString&, QObject* /TransferThis/ = 0, const char* = 0); + KActionMenu (const QString&, const QIconSet&, QObject* /TransferThis/ = 0, const char* = 0); + KActionMenu (const QString&, const QString&, QObject* /TransferThis/ = 0, const char* = 0); + KActionMenu (QObject* /TransferThis/ = 0, const char* = 0); + virtual void insert (KAction*, int = -1); + virtual void remove (KAction*); + KPopupMenu* popupMenu (); + void popup (const QPoint&); + bool delayed () const; + void setDelayed (bool); + bool stickyMenu () const; + void setStickyMenu (bool); + virtual int plug (QWidget*, int = -1); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KActionMenu + +%End + + +%If ( - KDE_3_2_0 ) + +class KToolBarPopupAction : KAction +{ +%TypeHeaderCode +#include +%End + + +public: + KToolBarPopupAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KToolBarPopupAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/ = 0, const char* = 0); + KToolBarPopupAction (const KGuiItem&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /TransferThis/, const char*); + virtual int plug (QWidget*, int = -1); + KPopupMenu* popupMenu (); + bool delayed () const; + void setDelayed (bool); + bool stickyMenu () const; + void setStickyMenu (bool); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KToolBarPopupAction + +%End + + +%If ( KDE_3_1_0 - KDE_3_2_0 ) + +class KToggleToolBarAction : KToggleAction +{ +%TypeHeaderCode +#include +%End + + +public: + KToggleToolBarAction (const char*, const QString&, KActionCollection* /TransferThis/, const char*); + KToggleToolBarAction (KToolBar*, const QString&, KActionCollection* /TransferThis/, const char*); + virtual int plug (QWidget*, int = -1); + KToolBar* toolBar (); + +public slots: + virtual void setChecked (bool); + +protected: + virtual void virtual_hook (int, void*); + +}; // class KToggleToolBarAction + +%End + + +%If ( KDE_3_1_0 - KDE_3_2_0 ) + +class KWidgetAction : KAction +{ +%TypeHeaderCode +#include +%End + + +public: + KWidgetAction (QWidget*, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /TransferThis/, const char*); + QWidget* widget (); + void setAutoSized (bool); + virtual int plug (QWidget*, int = -1); + virtual void unplug (QWidget*); + +protected slots: + void slotToolbarDestroyed (); + +protected: + virtual void virtual_hook (int, void*); + +}; // class KWidgetAction + +%End + + +%If ( - KDE_3_2_0 ) + +class KActionSeparator : KAction +{ +%TypeHeaderCode +#include +%End + + +public: + KActionSeparator (QObject* /TransferThis/ = 0, const char* = 0); + virtual int plug (QWidget*, int = -1); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KActionSeparator + +%End + + +%If ( - KDE_3_2_0 ) + +class KActionCollection : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KActionCollection (QWidget* /TransferThis/, const char* = 0, KInstance* = 0); + KActionCollection (QWidget*, QObject* /TransferThis/, const char* = 0, KInstance* = 0); + KActionCollection (const KActionCollection&); + virtual void setWidget (QWidget*); + +%If ( KDE_3_1_0 - ) + void setAutoConnectShortcuts (bool); + bool isAutoConnectShortcuts (); + bool addDocCollection (KActionCollection*); +%End + + virtual KAccel* accel (); + +%If ( KDE_3_1_0 - ) + KAccel* kaccel (); + KAccel* builderKAccel () const; +%End + + virtual uint count () const; + bool isEmpty () const; + virtual KAction* action (int) const; + virtual KAction* action (const char*, const char* = 0) const; + virtual QStringList groups () const; + +%If ( KDE_3_1_5 - ) + virtual QValueList actions (const QString&) const; + virtual QValueList actions () const; +%End + + bool readShortcutSettings (const QString& = QString ::null , KConfigBase* = 0); + bool writeShortcutSettings (const QString& = QString ::null , KConfigBase* = 0) const; + void setInstance (KInstance*); + KInstance* instance () const; + void setXMLFile (const QString&); + const QString& xmlFile () const; + void setHighlightingEnabled (bool); + bool highlightingEnabled () const; + void connectHighlight (QWidget*, KAction*); + void disconnectHighlight (QWidget*, KAction*); + +signals: + void inserted (KAction*); + void removed (KAction*); + void actionHighlighted (KAction*); + void actionHighlighted (KAction*, bool); + void actionStatusText (const QString&); + void clearStatusText (); + +public: + KActionCollection (QObject* /TransferThis/ = 0, const char* = 0, KInstance* = 0); + void insert (KAction*); + void remove (KAction*); + KAction* take (KAction*); + +%If ( KDE_3_1_4 - ) + KActionCollection operator + (const KActionCollection&) const; + KActionCollection& operator += (const KActionCollection&); +%End + + +public slots: + void clear (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KActionCollection + +%End + + +%If ( - KDE_3_2_0 ) +//ig typedef QValueList KActionPtrList; +%End + + +%MappedType QValueList +//converts a Python list of KAction +{ +%TypeHeaderCode +#include +#include +//typedef QValueList KActionPtrList; +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList *cpplist = (QValueList *)sipCpp; + PyObject *inst; + + // Get it. + QValueList::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromInstance (*it, sipClass_KAction, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList *cpplist = new QValueList; + + PyObject *elem; + KAction* cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KAction *)sipForceConvertToType(elem, sipType_KAction, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + diff --git a/sip/tdeui/kactionclasses.sip b/sip/tdeui/kactionclasses.sip new file mode 100644 index 0000000..05d1eeb --- /dev/null +++ b/sip/tdeui/kactionclasses.sip @@ -0,0 +1,529 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KToggleAction : KAction +{ +%TypeHeaderCode +#include +%End + + +public: + KToggleAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KToggleAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KToggleAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KToggleAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KToggleAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KToggleAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KToggleAction (QObject* /TransferThis/ = 0, const char* = 0); + virtual int plug (QWidget*, int = -1); + bool isChecked () const; + QString exclusiveGroup () const; + virtual void setExclusiveGroup (const QString&); + +%If ( KDE_3_3_0 - ) + void setCheckedState (const KGuiItem&); + virtual QString toolTip () const; +%End + + +public slots: + virtual void setChecked (bool); + +protected slots: + virtual void slotActivated (); + +protected: + virtual void updateChecked (int); + +signals: + void toggled (bool); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KToggleAction + +%End + + +%If ( KDE_3_2_0 - ) + +class KRadioAction : KToggleAction +{ +%TypeHeaderCode +#include +%End + + +public: + KRadioAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KRadioAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KRadioAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KRadioAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KRadioAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KRadioAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KRadioAction (QObject* /TransferThis/ = 0, const char* = 0); + +protected: + virtual void slotActivated (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KRadioAction + +%End + + +%If ( KDE_3_2_0 - ) + +class KSelectAction : KAction +{ +%TypeHeaderCode +#include +%End + + +public: + KSelectAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KSelectAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KSelectAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KSelectAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KSelectAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KSelectAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KSelectAction (QObject* /TransferThis/ = 0, const char* = 0); + virtual int plug (QWidget*, int = -1); + virtual bool isEditable () const; + virtual QStringList items () const; + virtual void changeItem (int, const QString&); + virtual QString currentText () const; + virtual int currentItem () const; + virtual int comboWidth () const; + +%If ( KDE_3_5_0 - ) + void setMaxComboViewCount (int); +%End + + QPopupMenu* popupMenu () const; + void setRemoveAmpersandsInCombo (bool); + bool removeAmpersandsInCombo () const; + void setMenuAccelsEnabled (bool); + bool menuAccelsEnabled () const; + +%If ( KDE_3_5_0 - ) + virtual bool isShortcutConfigurable () const; +%End + + +public slots: + virtual void setCurrentItem (int); + virtual void setItems (const QStringList&); + virtual void clear (); + virtual void setEditable (bool); + virtual void setComboWidth (int); + +protected: + virtual void changeItem (int, int, const QString&); + QStringList comboItems () const; + +protected slots: + virtual void slotActivated (int); + virtual void slotActivated (const QString&); + virtual void slotActivated (); + +signals: + void activated (int); + void activated (const QString&); + +protected: + virtual void updateCurrentItem (int); + virtual void updateComboWidth (int); + virtual void updateItems (int); + virtual void updateClear (int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KSelectAction + +%End + + +%If ( KDE_3_2_0 - ) + +class KListAction : KSelectAction +{ +%TypeHeaderCode +#include +%End + + +public: + KListAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KListAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KListAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KListAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KListAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KListAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KListAction (QObject* /TransferThis/ = 0, const char* = 0); + virtual QString currentText () const; + virtual int currentItem () const; + +public slots: + virtual void setCurrentItem (int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KListAction + +%End + + +%If ( KDE_3_2_0 - ) + +class KRecentFilesAction : KListAction +{ +%TypeHeaderCode +#include +%End + + +public: + KRecentFilesAction (const QString&, const KShortcut&, QObject* /TransferThis/, const char* = 0, uint = 10); + KRecentFilesAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0, uint = 10); + KRecentFilesAction (const QString&, const QIconSet&, const KShortcut&, QObject* /TransferThis/, const char* = 0, uint = 10); + KRecentFilesAction (const QString&, const QString&, const KShortcut&, QObject* /TransferThis/, const char* = 0, uint = 10); + KRecentFilesAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0, uint = 10); + KRecentFilesAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0, uint = 10); + KRecentFilesAction (QObject* /TransferThis/ = 0, const char* = 0, uint = 10); + virtual int plug (QWidget*, int = -1); + uint maxItems () const; + +%If ( KDE_3_5_0 - ) + virtual QStringList items () const; + QStringList completeItems () const; +%End + + +public slots: + void setMaxItems (uint); + void loadEntries (KConfig*, QString = QString ::null ); + void saveEntries (KConfig*, QString = QString ::null ); + void addURL (const KURL&); + +%If ( KDE_3_5_0 - ) + void addURL (const KURL&, const QString&); +%End + + void removeURL (const KURL&); + void clearURLList (); + +signals: + void urlSelected (const KURL&); + +protected slots: + void itemSelected (const QString&); + void menuAboutToShow (); + void menuItemActivated (int); + void slotClicked (); + virtual void slotActivated (int); + virtual void slotActivated (const QString&); + virtual void slotActivated (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KRecentFilesAction + +%End + + +%If ( KDE_3_2_0 - ) + +class KFontAction : KSelectAction +{ +%TypeHeaderCode +#include +%End + + +public: + KFontAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KFontAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KFontAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + +%If ( KDE_3_3_0 - ) + KFontAction (uint, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontAction (uint, const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); +%End + + KFontAction (QObject* /TransferThis/ = 0, const char* = 0); + QString font () const; + int plug (QWidget*, int = -1); + +public slots: + void setFont (const QString&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFontAction + +%End + + +%If ( KDE_3_2_0 - ) + +class KFontSizeAction : KSelectAction +{ +%TypeHeaderCode +#include +%End + + +public: + KFontSizeAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontSizeAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KFontSizeAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontSizeAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontSizeAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KFontSizeAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KFontSizeAction (QObject* /TransferThis/ = 0, const char* = 0); + virtual int fontSize () const; + +public slots: + virtual void setFontSize (int); + +protected slots: + virtual void slotActivated (int); + virtual void slotActivated (const QString&); + virtual void slotActivated (); + +signals: + void fontSizeChanged (int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFontSizeAction + +%End + + +%If ( KDE_3_2_0 - ) + +class KActionMenu : KAction +{ +%TypeHeaderCode +#include +%End + + +public: + KActionMenu (const QString&, QObject* /TransferThis/ = 0, const char* = 0); + KActionMenu (const QString&, const QIconSet&, QObject* /TransferThis/ = 0, const char* = 0); + KActionMenu (const QString&, const QString&, QObject* /TransferThis/ = 0, const char* = 0); + KActionMenu (QObject* /TransferThis/ = 0, const char* = 0); + virtual void insert (KAction*, int = -1); + virtual void remove (KAction*); + KPopupMenu* popupMenu () const; + void popup (const QPoint&); + bool delayed () const; + void setDelayed (bool); + bool stickyMenu () const; + void setStickyMenu (bool); + virtual int plug (QWidget*, int = -1); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KActionMenu + +%End + + +%If ( KDE_3_2_0 - ) + +class KToolBarPopupAction : KAction +{ +%TypeHeaderCode +#include +%End + + +public: + KToolBarPopupAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KToolBarPopupAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/ = 0, const char* = 0); + KToolBarPopupAction (const KGuiItem&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /TransferThis/, const char*); + virtual int plug (QWidget*, int = -1); + KPopupMenu* popupMenu () const; + bool delayed () const; + void setDelayed (bool); + bool stickyMenu () const; + void setStickyMenu (bool); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KToolBarPopupAction + +%End + + +%If ( KDE_3_2_0 - ) + +class KToggleToolBarAction : KToggleAction +{ +%TypeHeaderCode +#include +%End + + +public: + KToggleToolBarAction (const char*, const QString&, KActionCollection* /TransferThis/, const char*); + KToggleToolBarAction (KToolBar*, const QString&, KActionCollection* /TransferThis/, const char*); + virtual int plug (QWidget*, int = -1); + KToolBar* toolBar (); + +public slots: + virtual void setChecked (bool); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KToggleToolBarAction + +%End + + +%If ( KDE_3_2_0 - ) + +class KToggleFullScreenAction : KToggleAction +{ +%TypeHeaderCode +#include +%End + + +public: + KToggleFullScreenAction (const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, QWidget*, const char*); + void setWindow (QWidget*); + +public slots: + virtual void setChecked (bool); + +protected: + virtual bool eventFilter (QObject*, QEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KToggleFullScreenAction + +%End + + +%If ( KDE_3_2_0 - ) + +class KWidgetAction : KAction +{ +%TypeHeaderCode +#include +%End + + +public: + KWidgetAction (QWidget*, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /TransferThis/, const char*); + QWidget* widget (); + void setAutoSized (bool); + virtual int plug (QWidget*, int = -1); + virtual void unplug (QWidget*); + +protected slots: + void slotToolbarDestroyed (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KWidgetAction + +%End + + +%If ( KDE_3_2_0 - ) + +class KActionSeparator : KAction +{ +%TypeHeaderCode +#include +%End + + +public: + KActionSeparator (QObject* /TransferThis/ = 0, const char* = 0); + virtual int plug (QWidget*, int = -1); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KActionSeparator + +%End + + +%If ( KDE_3_2_0 - ) + +class KPasteTextAction : KAction +{ +%TypeHeaderCode +#include +%End + + +public: + KPasteTextAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/ = 0, const char* = 0); + void setMixedMode (bool); + virtual int plug (QWidget*, int = -1); + +protected slots: + void menuAboutToShow (); + void menuItemActivated (int); + virtual void slotActivated (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KPasteTextAction + +%End + diff --git a/sip/tdeui/kactioncollection.sip b/sip/tdeui/kactioncollection.sip new file mode 100644 index 0000000..2ba8bea --- /dev/null +++ b/sip/tdeui/kactioncollection.sip @@ -0,0 +1,125 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KActionCollection : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KActionCollection (QWidget* /TransferThis/, const char* = 0, KInstance* = 0); + KActionCollection (QWidget*, QObject* /TransferThis/, const char* = 0, KInstance* = 0); + KActionCollection (const KActionCollection&); + virtual void setWidget (QWidget*); + void setAutoConnectShortcuts (bool); + bool isAutoConnectShortcuts (); + bool addDocCollection (KActionCollection*); + virtual KAccel* accel (); + KAccel* kaccel (); + KAccel* builderKAccel () const; + virtual uint count () const; + bool isEmpty () const; + virtual KAction* action (int) const; + virtual KAction* action (const char*, const char* = 0) const; + virtual QStringList groups () const; + virtual KActionPtrList actions (const QString&) const; + virtual KActionPtrList actions () const; + bool readShortcutSettings (const QString& = QString ::null , KConfigBase* = 0); + bool writeShortcutSettings (const QString& = QString ::null , KConfigBase* = 0) const; + void setInstance (KInstance*); + KInstance* instance () const; + void setXMLFile (const QString&); + const QString& xmlFile () const; + void setHighlightingEnabled (bool); + bool highlightingEnabled () const; + void connectHighlight (QWidget*, KAction*); + void disconnectHighlight (QWidget*, KAction*); + +%If ( KDE_3_3_0 - ) + const KXMLGUIClient* parentGUIClient () const; +%End + + +signals: + void inserted (KAction*); + void removed (KAction*); + void actionHighlighted (KAction*); + void actionHighlighted (KAction*, bool); + void actionStatusText (const QString&); + void clearStatusText (); + +public: + KActionCollection (QObject* /TransferThis/, const char* = 0, KInstance* = 0); + +public: + void insert (KAction*); + void remove (KAction*); + KAction* take (KAction*); + KActionCollection operator + (const KActionCollection&) const; + KActionCollection& operator += (const KActionCollection&); + +public slots: + void clear (); + +protected: +//igx virtual void virtual_hook (int, void*); + +%If ( KDE_3_3_0 - ) + +private: + KActionCollection (const char*, const KXMLGUIClient* /TransferThis/); +%End + + +public: + +%If ( - KDE_3_2_2 ) + +%If ( D_MANDRAKE ) + virtual QValueList actions (const QString&) const; + virtual QValueList actions () const; +%End + +%End + + +}; // class KActionCollection + +%End + + +%If ( KDE_3_2_0 - ) +typedef QValueList KActionPtrList; +%End + + +%If ( - KDE_3_2_2 ) +//ig typedef QValueList KActionPtrList; +%End diff --git a/sip/tdeui/kactionselector.sip b/sip/tdeui/kactionselector.sip new file mode 100644 index 0000000..9e04f3d --- /dev/null +++ b/sip/tdeui/kactionselector.sip @@ -0,0 +1,106 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) + +class KActionSelector : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KActionSelector (QWidget* /TransferThis/ = 0, const char* = 0); + QListBox* availableListBox () const; + QListBox* selectedListBox () const; + + enum MoveButton + { + ButtonAdd, + ButtonRemove, + ButtonUp, + ButtonDown + }; + + + enum ButtonIconSize + { + SmallIcon, + Small, + Medium, + Large, + XLarge + }; + + + enum InsertionPolicy + { + BelowCurrent, + Sorted, + AtTop, + AtBottom + }; + + bool moveOnDoubleClick () const; + void setMoveOnDoubleClick (bool); + bool keyboardEnabled () const; + void setKeyboardEnabled (bool); + QString availableLabel () const; + void setAvailableLabel (const QString&); + QString selectedLabel () const; + void setSelectedLabel (const QString&); + KActionSelector::ButtonIconSize buttonIconSize () const; + void setButtonIconSize (KActionSelector::ButtonIconSize); + KActionSelector::InsertionPolicy availableInsertionPolicy () const; + void setAvailableInsertionPolicy (KActionSelector::InsertionPolicy); + KActionSelector::InsertionPolicy selectedInsertionPolicy () const; + void setSelectedInsertionPolicy (KActionSelector::InsertionPolicy); + bool showUpDownButtons () const; + void setShowUpDownButtons (bool); + void setButtonIcon (const QString&, KActionSelector::MoveButton); + void setButtonIconSet (const QIconSet&, KActionSelector::MoveButton); + void setButtonTooltip (const QString&, KActionSelector::MoveButton); + void setButtonWhatsThis (const QString&, KActionSelector::MoveButton); + void setButtonsEnabled (); + +signals: + void added (QListBoxItem*); + void removed (QListBoxItem*); + void movedUp (QListBoxItem*); + void movedDown (QListBoxItem*); + +public slots: + void polish (); + +protected: + void keyPressEvent (QKeyEvent*); + bool eventFilter (QObject*, QEvent*); + +}; // class KActionSelector + +%End + diff --git a/sip/tdeui/kactionshortcutlist.sip b/sip/tdeui/kactionshortcutlist.sip new file mode 100644 index 0000000..e26b0cf --- /dev/null +++ b/sip/tdeui/kactionshortcutlist.sip @@ -0,0 +1,106 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KActionShortcutList : KShortcutList +{ +%TypeHeaderCode +#include +#include +#include +#include +%End + + +public: + KActionShortcutList (KActionCollection*); + virtual uint count () const; + virtual QString name (uint) const; + virtual QString label (uint) const; + virtual QString whatsThis (uint) const; + virtual const KShortcut& shortcut (uint) const; + virtual const KShortcut& shortcutDefault (uint) const; + virtual bool isConfigurable (uint) const; + virtual bool setShortcut (uint, const KShortcut&); + virtual const KInstance* instance () const; + virtual QVariant getOther (Other, uint) const; + virtual bool setOther (Other, uint, QVariant); + virtual bool save () const; + +%If ( KDE_3_3_0 - ) + const KAction* action (uint) const; +%End + + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KActionShortcutList + + +class KActionPtrShortcutList : KShortcutList +{ +%TypeHeaderCode +#include +#include +#include +#include +%End + + +public: + +%If ( KDE_3_2_0 - ) + KActionPtrShortcutList (KActionPtrList&); +%End + + virtual uint count () const; + virtual QString name (uint) const; + virtual QString label (uint) const; + virtual QString whatsThis (uint) const; + virtual const KShortcut& shortcut (uint) const; + virtual const KShortcut& shortcutDefault (uint) const; + virtual bool isConfigurable (uint) const; + virtual bool setShortcut (uint, const KShortcut&); + virtual QVariant getOther (Other, uint) const; + virtual bool setOther (Other, uint, QVariant); + virtual bool save () const; + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_2_0 ) + KActionPtrShortcutList (QValueList&); +%End + + +}; // class KActionPtrShortcutList + diff --git a/sip/tdeui/kactivelabel.sip b/sip/tdeui/kactivelabel.sip new file mode 100644 index 0000000..fa38bc5 --- /dev/null +++ b/sip/tdeui/kactivelabel.sip @@ -0,0 +1,58 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KActiveLabel : QTextBrowser +{ +%TypeHeaderCode +#include +%End + + +public: + KActiveLabel (QWidget* /TransferThis/, const char* = 0); + KActiveLabel (const QString&, QWidget* /TransferThis/, const char* = 0); + +%If ( KDE_3_1_0 - ) + QSize minimumSizeHint () const; + QSize sizeHint () const; +%End + + +public slots: + virtual void openLink (const QString&); + +protected: +//igx virtual void virtual_hook (int, void*); + virtual void focusInEvent (QFocusEvent*); + virtual void focusOutEvent (QFocusEvent*); + +%If ( KDE_3_4_0 - ) + virtual void keyPressEvent (QKeyEvent*); +%End + + +}; // class KActiveLabel + diff --git a/sip/tdeui/kalphapainter.sip b/sip/tdeui/kalphapainter.sip new file mode 100644 index 0000000..881e3c3 --- /dev/null +++ b/sip/tdeui/kalphapainter.sip @@ -0,0 +1,41 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KAlphaPainter +{ +%TypeHeaderCode +#include +%End + + +public: + static bool draw (QPainter*, const QImage&, QImage&, int, int, bool = 0, int = 0, int = 0); + static bool draw (QPainter*, const QImage&, const QPixmap&, int, int, bool = 0, int = 0, int = 0); + static bool draw (QPainter*, const QPixmap&, QImage&, int, int, bool = 0, int = 0, int = 0); + static bool draw (QPainter*, const QPixmap&, const QPixmap&, int, int, int = 0, int = 0); + +}; // class KAlphaPainter + diff --git a/sip/tdeui/kanimwidget.sip b/sip/tdeui/kanimwidget.sip new file mode 100644 index 0000000..21f439f --- /dev/null +++ b/sip/tdeui/kanimwidget.sip @@ -0,0 +1,92 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KAnimWidget : QFrame +{ +%TypeHeaderCode +#include +%End + + +public: + KAnimWidget (const QString&, int = 0, QWidget* /TransferThis/ = 0, const char* = 0); + void setSize (int); + +%If ( KDE_3_4_0 - ) + int size () const; + QString icons () const; +%End + + void setIcons (const QString&); + +public slots: + +%If ( KDE_3_4_0 - ) + void start (); + void stop (); +%End + + +signals: + void clicked (); + +protected: + virtual void drawContents (QPainter*); + virtual void leaveEvent (QEvent*); + virtual void enterEvent (QEvent*); + virtual void hideEvent (QHideEvent*); + virtual void showEvent (QShowEvent*); + virtual void mousePressEvent (QMouseEvent*); + +%If ( KDE_3_1_0 - ) + virtual void mouseReleaseEvent (QMouseEvent*); +%End + + +protected slots: + void slotTimerUpdate (); + void updateIcons (); + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_4_0 ) + void start (); + void stop (); +%End + + +public: + +%If ( - KDE_3_2_0 ) +//ig KAnimWidget (QWidget* /TransferThis/ = 0, const char* = 0); +%End + + +}; // class KAnimWidget + diff --git a/sip/tdeui/karrowbutton.sip b/sip/tdeui/karrowbutton.sip new file mode 100644 index 0000000..3d94594 --- /dev/null +++ b/sip/tdeui/karrowbutton.sip @@ -0,0 +1,55 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KArrowButton : QPushButton +{ +%TypeHeaderCode +#include +%End + + +public: + KArrowButton (QWidget* /TransferThis/ = 0, Qt::ArrowType = Qt ::UpArrow , const char* = 0); + virtual QSize sizeHint () const; + +%If ( KDE_3_4_0 - ) + Qt::ArrowType arrowType () const; + int arrowTp () const; + void setArrowTp (int); +%End + + +public slots: + void setArrowType (Qt::ArrowType); + +protected: + virtual void drawButton (QPainter*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KArrowButton + diff --git a/sip/tdeui/kauthicon.sip b/sip/tdeui/kauthicon.sip new file mode 100644 index 0000000..2ff31fe --- /dev/null +++ b/sip/tdeui/kauthicon.sip @@ -0,0 +1,101 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KAuthIcon : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KAuthIcon (QWidget* /TransferThis/ = 0, const char* = 0); + virtual QSize sizeHint () const; + virtual bool status () const = 0; + +public slots: + virtual void updateStatus () = 0; + +signals: + void authChanged (bool); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KAuthIcon + + +class KRootPermsIcon : KAuthIcon +{ +%TypeHeaderCode +#include +%End + + +public: + KRootPermsIcon (QWidget* /TransferThis/ = 0, const char* = 0); + bool status () const; + +public slots: + void updateStatus (); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KRootPermsIcon + + +class KWritePermsIcon : KAuthIcon +{ +%TypeHeaderCode +#include +%End + + +public: + KWritePermsIcon (const QString&, QWidget* /TransferThis/ = 0, const char* = 0); + bool status () const; + void setFileName (const QString&); + +%If ( KDE_3_4_0 - ) + QString fileName () const; +%End + + +public slots: + void updateStatus (); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KWritePermsIcon + diff --git a/sip/tdeui/kbugreport.sip b/sip/tdeui/kbugreport.sip new file mode 100644 index 0000000..558f767 --- /dev/null +++ b/sip/tdeui/kbugreport.sip @@ -0,0 +1,54 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KBugReport : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + KBugReport (QWidget* /TransferThis/ = 0, bool = 1, const KAboutData* = 0); + +protected slots: + virtual void slotConfigureEmail (); + virtual void slotSetFrom (); + virtual void slotUrlClicked (const QString&); + virtual void slotOk (); + virtual void slotCancel (); + void appChanged (int); + void updateURL (); + +protected: + QString text (); + bool sendBugReport (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KBugReport + diff --git a/sip/tdeui/kbuttonbox.sip b/sip/tdeui/kbuttonbox.sip new file mode 100644 index 0000000..4a62fec --- /dev/null +++ b/sip/tdeui/kbuttonbox.sip @@ -0,0 +1,59 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KButtonBox : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KButtonBox (QWidget* /TransferThis/, Orientation = Horizontal , int = 0, int = 6); + virtual QSize sizeHint () const; + virtual QSizePolicy sizePolicy () const; + virtual void resizeEvent (QResizeEvent*); + QPushButton* addButton (const QString&, bool = 0); + QPushButton* addButton (const QString&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 0); + +%If ( KDE_3_3_0 - ) + QPushButton* addButton (const KGuiItem&, bool = 0); + QPushButton* addButton (const KGuiItem&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 0); +%End + + void addStretch (int = 1); + void layout (); + +protected: + QSize bestButtonSize () const; + void placeButtons (); + QSize buttonSizeHint (QPushButton*) const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KButtonBox + diff --git a/sip/tdeui/kcharselect.sip b/sip/tdeui/kcharselect.sip new file mode 100644 index 0000000..d2f24d3 --- /dev/null +++ b/sip/tdeui/kcharselect.sip @@ -0,0 +1,130 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KCharSelectTable : QGridView +{ +%TypeHeaderCode +#include +%End + + +public: + KCharSelectTable (QWidget* /TransferThis/, const char*, const QString&, const QChar&, int); + virtual QSize sizeHint () const; + virtual void resizeEvent (QResizeEvent*); + virtual void setFont (const QString&); + virtual void setChar (const QChar&); + virtual void setTableNum (int); + virtual QChar chr (); + +protected: + virtual void paintCell (QPainter*, int, int); + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseDoubleClickEvent (QMouseEvent*); + virtual void mouseReleaseEvent (QMouseEvent*); + virtual void mouseMoveEvent (QMouseEvent*); + virtual void keyPressEvent (QKeyEvent*); + void gotoLeft (); + void gotoRight (); + void gotoUp (); + void gotoDown (); + +signals: + void highlighted (const QChar&); + void highlighted (); + void activated (const QChar&); + void activated (); + void focusItemChanged (); + void focusItemChanged (const QChar&); + void tableUp (); + void tableDown (); + void doubleClicked (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KCharSelectTable + + +class KCharSelect : QVBox +{ +%TypeHeaderCode +#include +%End + + +public: + KCharSelect (QWidget* /TransferThis/, const char*, const QString& = QString ::null , const QChar& = ' ', int = 0); + virtual QSize sizeHint () const; + virtual void setFont (const QString&); + virtual void setChar (const QChar&); + virtual void setTableNum (int); + virtual QChar chr () const; + virtual QString font () const; + virtual int tableNum () const; + virtual void enableFontCombo (bool); + virtual void enableTableSpinBox (bool); + virtual bool isFontComboEnabled () const; + virtual bool isTableSpinBoxEnabled () const; + +protected: + virtual void fillFontCombo (); + static void cleanupFontDatabase (); + +protected slots: + void fontSelected (const QString&); + void tableChanged (int); + void charHighlighted (const QChar&); + void charHighlighted (); + void charActivated (const QChar&); + void charActivated (); + void charFocusItemChanged (); + void charFocusItemChanged (const QChar&); + void charTableUp (); + void charTableDown (); + void slotDoubleClicked (); + +%If ( KDE_3_3_0 - ) + void slotUnicodeEntered (); + void slotUpdateUnicode (const QChar&); +%End + + +signals: + void highlighted (const QChar&); + void highlighted (); + void activated (const QChar&); + void activated (); + void fontChanged (const QString&); + void focusItemChanged (); + void focusItemChanged (const QChar&); + void doubleClicked (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KCharSelect + diff --git a/sip/tdeui/kcmenumngr.sip b/sip/tdeui/kcmenumngr.sip new file mode 100644 index 0000000..d3f89c3 --- /dev/null +++ b/sip/tdeui/kcmenumngr.sip @@ -0,0 +1,43 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KContextMenuManager : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + static void insert (QWidget*, QPopupMenu*); + static bool showOnButtonPress (); + +private: + KContextMenuManager (QObject* /TransferThis/ = 0, const char* = 0); + ~KContextMenuManager (); + +}; // class KContextMenuManager + diff --git a/sip/tdeui/kcmodule.sip b/sip/tdeui/kcmodule.sip new file mode 100644 index 0000000..8e37799 --- /dev/null +++ b/sip/tdeui/kcmodule.sip @@ -0,0 +1,183 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KCModule : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + + enum Button + { + Help, + Default, + Apply, + Reset, + Cancel, + Ok, + SysDefault + }; + + KCModule (QWidget* /TransferThis/ = 0, const char* = 0, const QStringList& = QStringList ()); + KCModule (KInstance*, QWidget* /TransferThis/ = 0, const QStringList& = QStringList ()); + virtual void load (); + virtual void save (); + virtual void defaults (); + virtual void sysdefaults (); + virtual QString quickHelp () const; + virtual const KAboutData* aboutData () const; + +%If ( KDE_3_3_0 - ) + void setAboutData (KAboutData*); +%End + + int buttons (); + QString rootOnlyMsg () const; + bool useRootOnlyMsg () const; + KInstance* instance () const; + +%If ( KDE_3_4_0 - ) + const QPtrList& configs () const; +%End + + +protected: + +%If ( KDE_3_3_0 - ) + KConfigDialogManager* addConfig (KConfigSkeleton*, QWidget*); + void setQuickHelp (const QString&); +%End + + +signals: + void changed (bool); + void quickHelpChanged (); + +protected slots: + +%If ( KDE_3_3_0 - ) + void changed (); + +%If ( KDE_3_4_0 - ) + void widgetChanged (); +%End + +%End + + +protected: + void setButtons (int); + void setRootOnlyMsg (const QString&); + void setUseRootOnlyMsg (bool); + +%If ( KDE_3_5_0 - ) + bool managedWidgetChangeState () const; + void unmanagedWidgetChangeState (bool); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KCModule + + + +%If (KDE_3_3_0 - ) +%MappedType QPtrList +//converts a Python list of KConfigDialogManager +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList *cpplist = (QPtrList *)sipCpp; + KConfigDialogManager *cpp; + PyObject *inst; + + // the loop depends on the type of iterator the tmeplate makes available + for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) + { + if (((inst = sipConvertFromInstance (cpp, sipClass_KConfigDialogManager, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList *cpplist = new QPtrList; + + PyObject *elem; + KConfigDialogManager *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KConfigDialogManager *)sipForceConvertToType(elem, sipType_KConfigDialogManager, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; +%End + + diff --git a/sip/tdeui/kcolorbtn.sip b/sip/tdeui/kcolorbtn.sip new file mode 100644 index 0000000..8ca3db3 --- /dev/null +++ b/sip/tdeui/kcolorbtn.sip @@ -0,0 +1,54 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KColorButton : QPushButton +{ +%TypeHeaderCode +#include +%End + + +public: + KColorButton (QWidget*/TransferThis/, const char* = 0); + KColorButton (const QColor&, QWidget*/TransferThis/, const char* = 0); + QColor color () const; + void setColor (const QColor&); + +signals: + void changed (const QColor&); + +protected slots: + void chooseColor (); + +protected: + virtual void drawButtonLabel (QPainter*); + virtual void dragEnterEvent (QDragEnterEvent*); + virtual void dropEvent (QDropEvent*); + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseMoveEvent (QMouseEvent*); + +}; // class KColorButton + diff --git a/sip/tdeui/kcolorcombo.sip b/sip/tdeui/kcolorcombo.sip new file mode 100644 index 0000000..21fa8e4 --- /dev/null +++ b/sip/tdeui/kcolorcombo.sip @@ -0,0 +1,51 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KColorCombo : QComboBox +{ +%TypeHeaderCode +#include +%End + + +public: + KColorCombo (QWidget* /TransferThis/, const char* = 0); + void setColor (const QColor&); + QColor color (); + void showEmptyList (); + +signals: + void activated (const QColor&); + void highlighted (const QColor&); + +protected: + virtual void resizeEvent (QResizeEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KColorCombo + diff --git a/sip/tdeui/kcolordialog.sip b/sip/tdeui/kcolordialog.sip new file mode 100644 index 0000000..a1e8bd7 --- /dev/null +++ b/sip/tdeui/kcolordialog.sip @@ -0,0 +1,237 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KHSSelector : KXYSelector +{ +%TypeHeaderCode +#include +%End + + +public: + KHSSelector (QWidget* /TransferThis/ = 0, const char* = 0); + +protected: + virtual void drawPalette (QPixmap*); + virtual void resizeEvent (QResizeEvent*); + virtual void drawContents (QPainter*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KHSSelector + + +class KValueSelector : KSelector +{ +%TypeHeaderCode +#include +%End + + +public: + KValueSelector (QWidget* /TransferThis/ = 0, const char* = 0); + KValueSelector (Orientation, QWidget* /TransferThis/ = 0, const char* = 0); + int hue () const; + void setHue (int); + int saturation () const; + void setSaturation (int); + void updateContents (); + +protected: + virtual void drawPalette (QPixmap*); + virtual void resizeEvent (QResizeEvent*); + virtual void drawContents (QPainter*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KValueSelector + + +class KColor : QColor +{ +%TypeHeaderCode +#include +%End + + +public: + KColor (); + KColor (const KColor&); + KColor (const QColor&); + +%If ( KDE_3_1_4 - ) + bool operator == (const KColor&) const; +%End + + void setHsv (int, int, int); + void setRgb (int, int, int); + void rgb (int*, int*, int*); + void hsv (int*, int*, int*); + +protected: + +}; // class KColor + + +class KPaletteTable : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KPaletteTable (QWidget* /TransferThis/, int = 210, int = 16); + void addToCustomColors (const QColor&); + void addToRecentColors (const QColor&); + QString palette (); + +public slots: + void setPalette (const QString&); + +signals: + void colorSelected (const QColor&, const QString&); + void colorDoubleClicked (const QColor&, const QString&); + +protected slots: + void slotColorCellSelected (int); + void slotColorCellDoubleClicked (int); + void slotColorTextSelected (const QString&); + void slotSetPalette (const QString&); + void slotShowNamedColorReadError (); + +protected: + void readNamedColor (); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KPaletteTable + + +class KColorCells : QGridView +{ +%TypeHeaderCode +#include +%End + + +public: + KColorCells (QWidget* /TransferThis/, int, int); + void setColor (int, const QColor&); + QColor color (int) const; + int numCells () const; + void setShading (bool); + void setAcceptDrags (bool); + int getSelected () const; + +signals: + void colorSelected (int); + void colorDoubleClicked (int); + +protected: + virtual void paintCell (QPainter*, int, int); + virtual void resizeEvent (QResizeEvent*); + virtual void mouseReleaseEvent (QMouseEvent*); + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseMoveEvent (QMouseEvent*); + virtual void dragEnterEvent (QDragEnterEvent*); + virtual void dropEvent (QDropEvent*); + virtual void mouseDoubleClickEvent (QMouseEvent*); + int posToCell (const QPoint&, bool = 0); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KColorCells + + +class KColorPatch : QFrame +{ +%TypeHeaderCode +#include +%End + + +public: + KColorPatch (QWidget* /TransferThis/); + void setColor (const QColor&); + +signals: + void colorChanged (const QColor&); + +protected: + virtual void drawContents (QPainter*); + virtual void mouseMoveEvent (QMouseEvent*); + virtual void dragEnterEvent (QDragEnterEvent*); + virtual void dropEvent (QDropEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KColorPatch + + +class KColorDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + KColorDialog (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0); + QColor color (); + static int getColor (QColor&, QWidget* /Transfer/ = 0); + static int getColor (QColor&, const QColor&, QWidget* /Transfer/ = 0); + static QColor grabColor (const QPoint&); + void setDefaultColor (const QColor&); + QColor defaultColor () const; + +public slots: + void setColor (const QColor&); + +signals: + void colorSelected (const QColor&); + +protected: + virtual void mouseReleaseEvent (QMouseEvent*); + virtual void keyPressEvent (QKeyEvent*); + +%If ( KDE_3_2_0 - ) + virtual bool eventFilter (QObject*, QEvent*); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KColorDialog + diff --git a/sip/tdeui/kcolordrag.sip b/sip/tdeui/kcolordrag.sip new file mode 100644 index 0000000..8ef7347 --- /dev/null +++ b/sip/tdeui/kcolordrag.sip @@ -0,0 +1,52 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KColorDrag : QStoredDrag +{ +%TypeHeaderCode +#include +%End + + +public: + KColorDrag (QWidget* = 0, const char* = 0); + KColorDrag (const QColor&, QWidget* = 0, const char* = 0); + +%If ( KDE_3_2_0 - ) + virtual const char* format (int) const; + virtual QByteArray encodedData (const char*) const; +%End + + void setColor (const QColor&); + static bool canDecode (QMimeSource*); + static bool decode (QMimeSource*, QColor&); + static KColorDrag* makeDrag (const QColor&, QWidget*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KColorDrag + diff --git a/sip/tdeui/kcombobox.sip b/sip/tdeui/kcombobox.sip new file mode 100644 index 0000000..956c0a8 --- /dev/null +++ b/sip/tdeui/kcombobox.sip @@ -0,0 +1,130 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KComboBox : QComboBox, KCompletionBase +{ +%TypeHeaderCode +#include +%End + + +public: + KComboBox (QWidget* /TransferThis/ = 0, const char* = 0); + KComboBox (bool, QWidget* /TransferThis/ = 0, const char* = 0); + void setEditURL (const KURL&); + void insertURL (const KURL&, int = -1); + void insertURL (const QPixmap&, const KURL&, int = -1); + void changeURL (const KURL&, int); + void changeURL (const QPixmap&, const KURL&, int); + int cursorPosition () const; + virtual void setAutoCompletion (bool); + bool autoCompletion () const; + virtual void setContextMenuEnabled (bool); + bool isContextMenuEnabled () const; + void setURLDropsEnabled (bool); + bool isURLDropsEnabled () const; + bool contains (const QString&) const; + void setTrapReturnKey (bool); + bool trapReturnKey () const; + virtual bool eventFilter (QObject*, QEvent*); + KCompletionBox* completionBox (bool); + virtual void setLineEdit (QLineEdit*); + +signals: + void returnPressed (); + void returnPressed (const QString&); + void completion (const QString&); + void substringCompletion (const QString&); + void textRotation (KCompletionBase::KeyBindingType); + void completionModeChanged (KGlobalSettings::Completion); + void aboutToShowContextMenu (QPopupMenu*); + +public slots: + void rotateText (KCompletionBase::KeyBindingType); + virtual void setCompletedText (const QString&); + void setCompletedItems (const QStringList&); + void setCurrentItem (const QString&, bool = 0, int = -1); + void setCurrentItem (int); + +protected slots: + virtual void itemSelected (QListBoxItem*); + virtual void makeCompletion (const QString&); + +protected: + virtual void setCompletedText (const QString&, bool); + virtual void create (WId = 0, bool = 1, bool = 1); + +%If ( KDE_3_1_0 - ) + virtual void wheelEvent (QWheelEvent*); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KComboBox + + +class KHistoryCombo : KComboBox +{ +%TypeHeaderCode +#include +%End + + +public: + KHistoryCombo (QWidget* /TransferThis/ = 0, const char* = 0); + KHistoryCombo (bool, QWidget* /TransferThis/ = 0, const char* = 0); + void setHistoryItems (QStringList); + void setHistoryItems (QStringList, bool); + QStringList historyItems () const; + bool removeFromHistory (const QString&); + void setPixmapProvider (KPixmapProvider*); + KPixmapProvider* pixmapProvider () const; + void reset (); + +public slots: + void addToHistory (const QString&); + void clearHistory (); + +signals: + void cleared (); + +protected: + virtual void keyPressEvent (QKeyEvent*); + +%If ( KDE_3_1_0 - ) + virtual void wheelEvent (QWheelEvent*); +%End + + void insertItems (const QStringList&); + bool useCompletion (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KHistoryCombo + diff --git a/sip/tdeui/kcommand.sip b/sip/tdeui/kcommand.sip new file mode 100644 index 0000000..09f5aeb --- /dev/null +++ b/sip/tdeui/kcommand.sip @@ -0,0 +1,131 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KCommand +{ +%TypeHeaderCode +#include +%End + + +protected: + KCommand (); + +public: + virtual void execute () = 0; + virtual void unexecute () = 0; + virtual QString name () const = 0; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KCommand + + +class KNamedCommand : KCommand +{ +%TypeHeaderCode +#include +%End + + +protected: + KNamedCommand (const QString&); + +public: + virtual QString name () const; + void setName (const QString&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KNamedCommand + + +class KMacroCommand : KNamedCommand +{ +%TypeHeaderCode +#include +%End + + +public: + KMacroCommand (const QString&); + void addCommand (KCommand*); + virtual void execute (); + virtual void unexecute (); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KMacroCommand + + +class KCommandHistory : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KCommandHistory (); + KCommandHistory (KActionCollection*, bool = 1); + void clear (); + void addCommand (KCommand*, bool = 1); + int undoLimit () const; + void setUndoLimit (int); + int redoLimit () const; + void setRedoLimit (int); + void updateActions (); + +public slots: + virtual void undo (); + virtual void redo (); + virtual void documentSaved (); + +protected slots: + void slotUndoAboutToShow (); + void slotUndoActivated (int); + void slotRedoAboutToShow (); + void slotRedoActivated (int); + +signals: + void commandExecuted (); + +%If ( KDE_3_5_0 - ) + void commandExecuted (KCommand*); +%End + + void documentRestored (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KCommandHistory + diff --git a/sip/tdeui/kcompletionbox.sip b/sip/tdeui/kcompletionbox.sip new file mode 100644 index 0000000..f6cec4a --- /dev/null +++ b/sip/tdeui/kcompletionbox.sip @@ -0,0 +1,86 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KCompletionBox : KListBox +{ +%TypeHeaderCode +#include +%End + + +public: + KCompletionBox (QWidget* /TransferThis/, const char* = 0); + virtual QSize sizeHint () const; + +%If ( KDE_3_4_3 - ) + bool activateOnSelect () const; +%End + + +public slots: + QStringList items () const; + void insertItems (const QStringList&, int = -1); + void setItems (const QStringList&); + virtual void popup (); + void setTabHandling (bool); + bool isTabHandling () const; + void setCancelledText (const QString&); + QString cancelledText () const; + +%If ( KDE_3_4_3 - ) + void setActivateOnSelect (bool); +%End + + void down (); + void up (); + void pageDown (); + void pageUp (); + void home (); + void end (); + virtual void show (); + virtual void hide (); + +signals: + void activated (const QString&); + void userCancelled (const QString&); + +protected: + +%If ( KDE_3_2_0 - ) + QRect calculateGeometry () const; + void sizeAndPosition (); +%End + + virtual bool eventFilter (QObject*, QEvent*); + +protected slots: + virtual void slotActivated (QListBoxItem*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KCompletionBox + diff --git a/sip/tdeui/kconfigdialog.sip b/sip/tdeui/kconfigdialog.sip new file mode 100644 index 0000000..f6db24f --- /dev/null +++ b/sip/tdeui/kconfigdialog.sip @@ -0,0 +1,69 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KConfigDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +signals: + void widgetModified (); + void settingsChanged (); + void settingsChanged (const char*); + +public: + KConfigDialog (QWidget* /TransferThis/, const char*, KConfigSkeleton*, KDialogBase::DialogType = KDialogBase ::IconList , int = KDialogBase ::Default |KDialogBase ::Ok |KDialogBase ::Apply |KDialogBase ::Cancel |KDialogBase ::Help , KDialogBase::ButtonCode = Ok , bool = 0); + void addPage (QWidget*, const QString&, const QString&, const QString& = QString ::null , bool = 1); + +%If ( KDE_3_3_0 - ) + void addPage (QWidget*, KConfigSkeleton*, const QString&, const QString&, const QString& = QString ::null ); +%End + + static KConfigDialog* exists (const char*); + static bool showDialog (const char*); + virtual void show (); + +protected slots: + virtual void updateSettings (); + virtual void updateWidgets (); + virtual void updateWidgetsDefault (); + +protected: + virtual bool hasChanged (); + virtual bool isDefault (); + +protected slots: + void updateButtons (); + void settingsChangedSlot (); + +}; // class KConfigDialog + +%End + diff --git a/sip/tdeui/kcontainer.sip b/sip/tdeui/kcontainer.sip new file mode 100644 index 0000000..6b57a6a --- /dev/null +++ b/sip/tdeui/kcontainer.sip @@ -0,0 +1,75 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KContainerLayout : QFrame +{ +%TypeHeaderCode +#include +%End + + +public: + + enum + { + Horizontal = 0, + Vertical + }; + + KContainerLayout (QWidget*/TransferThis/ = 0, const char* = 0, int = KContainerLayout::Horizontal, bool = 0, int = 5, WFlags = 0, bool = 1); + int getNumberOfWidgets () const; + int packStart (QWidget*, bool = 0, bool = 0, int = 1); + int packEnd (QWidget*, bool = 0, bool = 0, int = 1); + void setOrientation (int); + void setHomogeneos (bool); + void setSpacing (int); + void setStartOffset (int); + void setEndOffset (int); + int orientation () const; + bool homogeneos () const; + int spacing () const; + int startOffset () const; + int endOffset () const; + void sizeToFit (); + +protected: + +//ig class KContainerLayoutItem; + + void recalcLayout (); +//ig QSize widgetSize (KContainerLayout::KContainerLayoutItem*); + void repositionWidgets (); + int numberOfWidgetsWithExpand (); + void calculateSizeHint (); + QSize sizeOfLargerWidget (); +//ig QSize idealSizeOfWidget (KContainerLayout::KContainerLayoutItem*); + bool horizontal () const; + virtual void resizeEvent (QResizeEvent*); + virtual bool eventFilter (QObject*, QEvent*); + virtual QSize sizeHint () const; + +}; // class KContainerLayout + diff --git a/sip/tdeui/kcursor.sip b/sip/tdeui/kcursor.sip new file mode 100644 index 0000000..2ad3e34 --- /dev/null +++ b/sip/tdeui/kcursor.sip @@ -0,0 +1,57 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KCursor : Qt +{ +%TypeHeaderCode +#include +%End + + +public: + KCursor (); + static QCursor handCursor (); + static QCursor workingCursor (); + static QCursor arrowCursor (); + static QCursor upArrowCursor (); + static QCursor crossCursor (); + static QCursor waitCursor (); + static QCursor ibeamCursor (); + static QCursor sizeVerCursor (); + static QCursor sizeHorCursor (); + static QCursor sizeBDiagCursor (); + static QCursor sizeFDiagCursor (); + static QCursor sizeAllCursor (); + static QCursor blankCursor (); + static QCursor whatsThisCursor (); + static void setAutoHideCursor (QWidget*, bool); + static void setAutoHideCursor (QWidget*, bool, bool); + static void setHideCursorDelay (int); + static int hideCursorDelay (); + static void autoHideEventFilter (QObject*, QEvent*); + +}; // class KCursor + diff --git a/sip/tdeui/kdatepicker.sip b/sip/tdeui/kdatepicker.sip new file mode 100644 index 0000000..ebd697e --- /dev/null +++ b/sip/tdeui/kdatepicker.sip @@ -0,0 +1,108 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDatePicker : QFrame +{ +%TypeHeaderCode +#include +%End + + +public: + KDatePicker (QWidget* /TransferThis/ = 0, QDate = QDate ::currentDate (), const char* = 0); + +%If ( KDE_3_1_0 - ) + KDatePicker (QWidget* /TransferThis/, QDate, const char*, WFlags); + KDatePicker (QWidget* /TransferThis/, const char*); +%End + + QSize sizeHint () const; + bool setDate (const QDate&); + const QDate& getDate () const; + const QDate& date () const; + void setEnabled (bool); + +%If ( KDE_3_2_0 - ) + KDateTable* dateTable () const; +%End + + void setFontSize (int); + int fontSize () const; + +%If ( KDE_3_1_0 - ) + void setCloseButton (bool); + bool hasCloseButton () const; +%End + + +protected: + +%If ( KDE_3_1_0 - ) + virtual bool eventFilter (QObject*, QEvent*); + virtual void resizeEvent (QResizeEvent*); +%End + + +protected slots: + void dateChangedSlot (QDate); + void tableClickedSlot (); + void monthForwardClicked (); + void monthBackwardClicked (); + void yearForwardClicked (); + void yearBackwardClicked (); + +%If ( KDE_3_1_0 - ) + void selectWeekClicked (); +%End + + void selectMonthClicked (); + void selectYearClicked (); + void lineEnterPressed (); + +%If ( KDE_3_2_0 - ) + void todayButtonClicked (); + void weekSelected (int); +%End + + +signals: + void dateChanged (QDate); + void dateSelected (QDate); + void dateEntered (QDate); + void tableClicked (); + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( - KDE_3_1_0 ) + void resizeEvent (QResizeEvent*); +%End + + +}; // class KDatePicker + diff --git a/sip/tdeui/kdatepik.sip b/sip/tdeui/kdatepik.sip new file mode 100644 index 0000000..a5e6505 --- /dev/null +++ b/sip/tdeui/kdatepik.sip @@ -0,0 +1,64 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDatePicker : QFrame +{ +%TypeHeaderCode +#include +%End + + +public: + KDatePicker (QWidget*/TransferThis/ = 0, QDate = QDate::currentDate(), const char* = 0); + QSize sizeHint () const; + bool setDate (const QDate&); + const QDate& getDate (); + void setEnabled (bool); + void setFontSize (int); + int fontSize () const; + +protected: + void resizeEvent (QResizeEvent*); + +protected slots: + void dateChangedSlot (QDate); + void tableClickedSlot (); + void monthForwardClicked (); + void monthBackwardClicked (); + void yearForwardClicked (); + void yearBackwardClicked (); + void selectMonthClicked (); + void selectYearClicked (); + void lineEnterPressed (); + +signals: + void dateChanged (QDate); + void dateSelected (QDate); + void dateEntered (QDate); + void tableClicked (); + +}; // class KDatePicker + diff --git a/sip/tdeui/kdatetbl.sip b/sip/tdeui/kdatetbl.sip new file mode 100644 index 0000000..58186d2 --- /dev/null +++ b/sip/tdeui/kdatetbl.sip @@ -0,0 +1,303 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) + +class KDateInternalWeekSelector : QLineEdit +{ +%TypeHeaderCode +#include +%End + + +protected: + +public slots: + void weekEnteredSlot (); + +%If ( KDE_3_2_0 - ) + void setMaxWeek (int); +%End + + +signals: + void closeMe (int); + +public: + +%If ( KDE_3_2_0 - ) + KDateInternalWeekSelector (QWidget* /TransferThis/ = 0, const char* = 0); +%End + + int getWeek (); + void setWeek (int); + +public: + +%If ( - KDE_3_2_0 ) + KDateInternalWeekSelector (int, QWidget* /TransferThis/ = 0, const char* = 0); +%End + + +}; // class KDateInternalWeekSelector + +%End + + +class KDateInternalMonthPicker : QGridView +{ +%TypeHeaderCode +#include +%End + + +protected: + +signals: + void closeMe (int); + +public: + +%If ( KDE_3_2_0 - ) + KDateInternalMonthPicker (const QDate&, QWidget* /TransferThis/, const char* = 0); +%End + + QSize sizeHint () const; + int getResult () const; + +protected: + void setupPainter (QPainter*); + +%If ( KDE_3_0_1 - ) + virtual void viewportResizeEvent (QResizeEvent*); +%End + + virtual void paintCell (QPainter*, int, int); + +%If ( KDE_3_0_1 - ) + virtual void contentsMousePressEvent (QMouseEvent*); + virtual void contentsMouseMoveEvent (QMouseEvent*); + virtual void contentsMouseReleaseEvent (QMouseEvent*); +%End + + +public: + +%If ( - KDE_3_2_0 ) + KDateInternalMonthPicker (int, QWidget* /TransferThis/, const char* = 0); +%End + + +protected: + +%If ( - KDE_3_0_1 ) + void viewportResizeEvent (QResizeEvent*); + void contentsMousePressEvent (QMouseEvent*); + void contentsMouseMoveEvent (QMouseEvent*); + void contentsMouseReleaseEvent (QMouseEvent*); +%End + + +}; // class KDateInternalMonthPicker + + +class KDateInternalYearSelector : QLineEdit +{ +%TypeHeaderCode +#include +%End + + +protected: + +public slots: + void yearEnteredSlot (); + +signals: + void closeMe (int); + +public: + +%If ( KDE_3_2_0 - ) + KDateInternalYearSelector (QWidget* /TransferThis/ = 0, const char* = 0); +%End + + int getYear (); + void setYear (int); + +public: + +%If ( - KDE_3_2_0 ) + KDateInternalYearSelector (int, QWidget* /TransferThis/ = 0, const char* = 0); +%End + + +}; // class KDateInternalYearSelector + + +class KPopupFrame : QFrame +{ +%TypeHeaderCode +#include +%End + + +protected: + +%If ( KDE_3_0_1 - ) + virtual void keyPressEvent (QKeyEvent*); +%End + + +public slots: + void close (int); + +%If ( KDE_3_5_0 - ) + void hide (); +%End + + +public: + KPopupFrame (QWidget* /TransferThis/ = 0, const char* = 0); + void setMainWidget (QWidget*); + +%If ( KDE_3_0_1 - ) + virtual void resizeEvent (QResizeEvent*); +%End + + void popup (const QPoint&); + int exec (QPoint) /PyName=exec_/; + int exec (int, int) /PyName=exec_/; + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( - KDE_3_0_1 ) + void keyPressEvent (QKeyEvent*); +%End + + +public: + +%If ( - KDE_3_0_1 ) + void resizeEvent (QResizeEvent*); +%End + + +}; // class KPopupFrame + + +class KDateValidator : QValidator +{ +%TypeHeaderCode +#include +%End + + +public: + KDateValidator (QWidget* /TransferThis/ = 0, const char* = 0); + virtual State validate (QString&, int&) const; + virtual void fixup (QString&) const; + State date (const QString&, QDate&) const; + +}; // class KDateValidator + + +class KDateTable : QGridView +{ +%TypeHeaderCode +#include +%End + + +public: + KDateTable (QWidget* /TransferThis/ = 0, QDate = QDate ::currentDate (), const char* = 0, WFlags = 0); + +%If ( KDE_3_4_0 - ) + KDateTable (QWidget* /TransferThis/, const char*, WFlags = 0); +%End + + virtual QSize sizeHint () const; + void setFontSize (int); + bool setDate (const QDate&); + const QDate& getDate () const; + +%If ( KDE_3_2_0 - ) + void setPopupMenuEnabled (bool); + bool popupMenuEnabled () const; + + enum BackgroundMode + { + NoBgMode, + RectangleMode, + CircleMode + }; + + void setCustomDatePainting (const QDate&, const QColor&, BackgroundMode = NoBgMode , const QColor& = QColor ()); + void unsetCustomDatePainting (const QDate&); +%End + + +protected: + +%If ( KDE_3_2_0 - ) + int posFromDate (const QDate&); + QDate dateFromPos (int); +%End + + virtual void paintCell (QPainter*, int, int); + virtual void viewportResizeEvent (QResizeEvent*); + virtual void contentsMousePressEvent (QMouseEvent*); + +%If ( KDE_3_1_0 - ) + virtual void wheelEvent (QWheelEvent*); +%End + + virtual void keyPressEvent (QKeyEvent*); + virtual void focusInEvent (QFocusEvent*); + virtual void focusOutEvent (QFocusEvent*); + +signals: + void dateChanged (QDate); + +%If ( KDE_3_2_0 - ) + void dateChanged (const QDate&, const QDate&); +%End + + void tableClicked (); + +%If ( KDE_3_2_0 - ) + void aboutToShowContextMenu (KPopupMenu*, const QDate&); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDateTable + diff --git a/sip/tdeui/kdatetimewidget.sip b/sip/tdeui/kdatetimewidget.sip new file mode 100644 index 0000000..76eaaa5 --- /dev/null +++ b/sip/tdeui/kdatetimewidget.sip @@ -0,0 +1,50 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KDateTimeWidget : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KDateTimeWidget (QWidget* /TransferThis/ = 0, const char* = 0); + KDateTimeWidget (const QDateTime&, QWidget* /TransferThis/ = 0, const char* = 0); + QDateTime dateTime () const; + +public slots: + void setDateTime (const QDateTime&); + +signals: + void valueChanged (const QDateTime&); + +}; // class KDateTimeWidget + +%End + diff --git a/sip/tdeui/kdatewidget.sip b/sip/tdeui/kdatewidget.sip new file mode 100644 index 0000000..6ca065e --- /dev/null +++ b/sip/tdeui/kdatewidget.sip @@ -0,0 +1,58 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDateWidget : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KDateWidget (QWidget* /TransferThis/, const char* = 0); + KDateWidget (QDate, QWidget* /TransferThis/, const char* = 0); + QDate date () const; + void setDate (QDate); + +signals: + void changed (QDate); + +protected: + void init (); + +%If ( KDE_3_2_0 - ) + void init (const QDate&); +%End + + +protected slots: + void slotDateChanged (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDateWidget + diff --git a/sip/tdeui/kdbtn.sip b/sip/tdeui/kdbtn.sip new file mode 100644 index 0000000..d493b0c --- /dev/null +++ b/sip/tdeui/kdbtn.sip @@ -0,0 +1,61 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDirectionButton : QButton +{ +%TypeHeaderCode +#include +%End + + +public: + KDirectionButton (QWidget*/TransferThis/ = 0, const char* = 0); + KDirectionButton (ArrowType, QWidget*/TransferThis/ = 0, const char* = 0); + void setDirection (ArrowType); + ArrowType direction (); + +protected: + virtual void drawButton (QPainter*); + +}; // class KDirectionButton + + +class KTabButton : KDirectionButton +{ +%TypeHeaderCode +#include +%End + + +public: + KTabButton (QWidget*/TransferThis/ = 0, const char* = 0); + KTabButton (ArrowType, QWidget*/TransferThis/ = 0, const char* = 0); + +protected: + virtual void drawButton (QPainter*); + +}; // class KTabButton + diff --git a/sip/tdeui/kdcopactionproxy.sip b/sip/tdeui/kdcopactionproxy.sip new file mode 100644 index 0000000..e5c3fd2 --- /dev/null +++ b/sip/tdeui/kdcopactionproxy.sip @@ -0,0 +1,48 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDCOPActionProxy : DCOPObjectProxy +{ +%TypeHeaderCode +#include +%End + + +public: + KDCOPActionProxy (KActionCollection*, DCOPObject* /TransferThis/); + KDCOPActionProxy (DCOPObject* /TransferThis/); + virtual QValueList actions () const; + virtual KAction* action (const char*) const; + virtual QCString actionObjectId (const QCString&) const; + virtual QMap actionMap (const QCString& = QCString ()) const; + virtual bool process (const QCString&, const QCString&, const QByteArray&, QCString&, QByteArray&); + virtual bool processAction (const QCString&, const QCString&, const QByteArray&, QCString&, QByteArray&, KAction*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDCOPActionProxy + diff --git a/sip/tdeui/kdialog.sip b/sip/tdeui/kdialog.sip new file mode 100644 index 0000000..9770c47 --- /dev/null +++ b/sip/tdeui/kdialog.sip @@ -0,0 +1,90 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDialog : QDialog +{ +%TypeHeaderCode +#include +%End + + +public: + KDialog (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, WFlags = 0); + static int marginHint (); + static int spacingHint (); + static void resizeLayout (QWidget*, int, int); + static void resizeLayout (QLayoutItem*, int, int); + +%If ( KDE_3_1_0 - ) + static void centerOnScreen (QWidget*, int = -1); + +%If ( KDE_3_2_0 - ) + static bool avoidArea (QWidget*, const QRect&, int = -1); +%End + +%End + + +public slots: + virtual void polish (); + virtual void setCaption (const QString&); + virtual void setPlainCaption (const QString&); + +protected: + virtual void keyPressEvent (QKeyEvent*); + +signals: + void layoutHintChanged (); + +protected: +//igx virtual void virtual_hook (int, void*); +//force + +private: + KDialog (const KDialog&); +//end + +}; // class KDialog + + +class KDialogQueue : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + static void queueDialog (QDialog*); + +protected: + KDialogQueue (); + static KDialogQueue* self (); + +protected: + +}; // class KDialogQueue + diff --git a/sip/tdeui/kdialogbase.sip b/sip/tdeui/kdialogbase.sip new file mode 100644 index 0000000..44d7d3c --- /dev/null +++ b/sip/tdeui/kdialogbase.sip @@ -0,0 +1,283 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDialogBase : KDialog +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_3_0 - ) + + enum ButtonCode + { + Help, + Default, + Ok, + Apply, + Try, + Cancel, + Close, + User1, + User2, + User3, + No, + Yes, + Details, + Filler, + Stretch, + NoDefault + }; + +%End + + + enum ActionButtonStyle + { + ActionStyle0, + ActionStyle1, + ActionStyle2, + ActionStyle3, + ActionStyle4, + ActionStyleMAX + }; + + + enum DialogType + { + TreeList, + Tabbed, + Plain, + Swallow, + IconList + }; + + +public: + KDialogBase (QWidget* /TransferThis/ = 0, const char* = 0, bool = 1, const QString& = QString ::null , int = Ok |Apply |Cancel , KDialogBase::ButtonCode = Ok , bool = 0, const KGuiItem& = KGuiItem (), const KGuiItem& = KGuiItem (), const KGuiItem& = KGuiItem ()); + KDialogBase (int, const QString&, int, KDialogBase::ButtonCode, QWidget* /TransferThis/ = 0, const char* = 0, bool = 1, bool = 0, const KGuiItem& = KGuiItem (), const KGuiItem& = KGuiItem (), const KGuiItem& = KGuiItem ()); + +%If ( KDE_3_2_0 - ) + KDialogBase (KDialogBase::DialogType, WFlags, QWidget* /TransferThis/ = 0, const char* = 0, bool = 1, const QString& = QString ::null , int = Ok |Apply |Cancel , KDialogBase::ButtonCode = Ok , bool = 0, const KGuiItem& = KGuiItem (), const KGuiItem& = KGuiItem (), const KGuiItem& = KGuiItem ()); +%End + + KDialogBase (const QString&, int = Yes |No |Cancel , KDialogBase::ButtonCode = Yes , KDialogBase::ButtonCode = Cancel , QWidget* /TransferThis/ = 0, const char* = 0, bool = 1, bool = 0, const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const KGuiItem& = KStdGuiItem ::cancel ()); + void setButtonBoxOrientation (int); + void setEscapeButton (KDialogBase::ButtonCode); + virtual void adjustSize (); + virtual QSize sizeHint () const; + virtual QSize minimumSizeHint () const; + QFrame* plainPage (); + QFrame* addPage (const QString&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + QFrame* addPage (const QStringList&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + QVBox* addVBoxPage (const QString&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + QVBox* addVBoxPage (const QStringList&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + QHBox* addHBoxPage (const QString&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + QHBox* addHBoxPage (const QStringList&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + QGrid* addGridPage (int, Qt::Orientation, const QString&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + QGrid* addGridPage (int, Qt::Orientation, const QStringList&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + void setFolderIcon (const QStringList&, const QPixmap&); + QFrame* makeMainWidget (); + QVBox* makeVBoxMainWidget (); + QHBox* makeHBoxMainWidget (); + QGrid* makeGridMainWidget (int, Qt::Orientation); + void enableButtonSeparator (bool); + void showButton (KDialogBase::ButtonCode, bool); + void showButtonOK (bool); + void showButtonApply (bool); + void showButtonCancel (bool); + bool showPage (int); + int activePageIndex () const; + int pageIndex (QWidget*) const; + void setMainWidget (QWidget*); + QWidget* mainWidget (); + void disableResize (); + void setInitialSize (const QSize&, bool = 0); + void incInitialSize (const QSize&, bool = 0); + QSize configDialogSize (const QString&) const; + +%If ( KDE_3_2_0 - ) + QSize configDialogSize (KConfig&, const QString&) const; +%End + + void saveDialogSize (const QString&, bool = 0); + +%If ( KDE_3_2_0 - ) + void saveDialogSize (KConfig&, const QString&, bool = 0) const; + void setButtonOK (const KGuiItem& = KStdGuiItem ::ok ()); +%End + + void setButtonOKText (const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null ); + +%If ( KDE_3_2_0 - ) + void setButtonApply (const KGuiItem& = KStdGuiItem ::apply ()); +%End + + void setButtonApplyText (const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null ); + +%If ( KDE_3_2_0 - ) + void setButtonCancel (const KGuiItem& = KStdGuiItem ::cancel ()); +%End + + void setButtonCancelText (const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null ); + void setButtonText (KDialogBase::ButtonCode, const QString&); + void setButtonTip (KDialogBase::ButtonCode, const QString&); + void setButtonWhatsThis (KDialogBase::ButtonCode, const QString&); + +%If ( KDE_3_3_0 - ) + void setButtonGuiItem (KDialogBase::ButtonCode, const KGuiItem&); +%End + + void setTreeListAutoResize (bool); + void setShowIconsInTreeList (bool); + void setRootIsDecorated (bool); + +%If ( KDE_3_2_0 - ) + void unfoldTreeList (bool = 0); + void addWidgetBelowList (QWidget*); + void addButtonBelowList (const QString&, QObject*, const char*); + void addButtonBelowList (const KGuiItem&, QObject*, const char*); +%End + + void setIconListAllVisible (bool); + static bool haveBackgroundTile (); + static const QPixmap* backgroundTile (); + static const QPixmap* getBackgroundTile (); + static void setBackgroundTile (const QPixmap*); + void showTile (bool); + void getBorderWidths (int&, int&, int&, int&) const; + QRect getContentsRect (); + QSize calculateSize (int, int); + QString helpLinkText (); + QPushButton* actionButton (KDialogBase::ButtonCode); + +public slots: + void enableButton (KDialogBase::ButtonCode, bool); + void enableButtonOK (bool); + void enableButtonApply (bool); + void enableButtonCancel (bool); + void enableLinkedHelp (bool); + +%If ( KDE_3_1_0 - ) + void delayedDestruct (); +%End + + void setHelpLinkText (const QString&); + void setHelp (const QString&, const QString& = QString ::null ); + void helpClickedSlot (const QString&); + void setDetails (bool); + void setDetailsWidget (QWidget*); + void updateBackground (); + +%If ( KDE_3_1_0 - ) + void cancel (); +%End + + +signals: + void helpClicked (); + void defaultClicked (); + void user3Clicked (); + void user2Clicked (); + void user1Clicked (); + void applyClicked (); + void tryClicked (); + void okClicked (); + void yesClicked (); + void noClicked (); + void cancelClicked (); + void closeClicked (); + void apply (); + void backgroundChanged (); + void hidden (); + void finished (); + void aboutToShowDetails (); + void aboutToShowPage (QWidget*); + +protected: + virtual void keyPressEvent (QKeyEvent*); + virtual void hideEvent (QHideEvent*); + virtual void closeEvent (QCloseEvent*); + +protected slots: + virtual void slotHelp (); + virtual void slotDefault (); + virtual void slotDetails (); + virtual void slotUser3 (); + virtual void slotUser2 (); + virtual void slotUser1 (); + virtual void slotOk (); + virtual void slotApply (); + virtual void slotTry (); + virtual void slotYes (); + virtual void slotNo (); + virtual void slotCancel (); + virtual void slotClose (); + virtual void applyPressed (); + void updateGeometry (); + void slotDelayedDestruct (); + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_3_0 ) + + enum ButtonCode + { + Help, + Default, + Ok, + Apply, + Try, + Cancel, + Close, + User1, + User2, + User3, + No, + Yes, + Details, + Filler, + Stretch + }; + +%End + + +public: + +%If ( - KDE_3_1_0 ) + void delayedDestruct (); +%End + + +}; // class KDialogBase + diff --git a/sip/tdeui/kdocktabctl.sip b/sip/tdeui/kdocktabctl.sip new file mode 100644 index 0000000..33e538f --- /dev/null +++ b/sip/tdeui/kdocktabctl.sip @@ -0,0 +1,186 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDockTabCtl_PrivateStruct +{ +%TypeHeaderCode +#include +%End + + +public: + KDockTabCtl_PrivateStruct (QWidget*, int); + QWidget* widget; + int id; + bool enabled; + +}; // class KDockTabCtl_PrivateStruct + + +class KDockTabBar : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KDockTabBar (QWidget*/TransferThis/ = 0, const char* = 0); + + enum TabPos + { + TAB_TOP, + TAB_RIGHT + }; + + void setTabPos (KDockTabBar::TabPos); + int insertTab (const QString&, int = -1, int = -1); + void setPixmap (int, const QPixmap&); + void setToolTip (int, const QString&); + void setTextColor (int, const QColor&); + const QColor& textColor (int); + void removeTab (int); + int currentTab (); + void setCurrentTab (int, bool = 0); + void setTabEnabled (int, bool); + bool isTabEnabled (int); + void setTabCaption (int, const QString&); + QString tabCaption (int); + virtual void show (); + virtual void setFont (const QFont&); + void showTabIcon (bool); + bool isShowTabIcon (); + +signals: + void tabSelected (int); + void rightButtonPress (int, QPoint); + +protected slots: + void leftClicked (); + void rightClicked (); + +protected: + virtual void paintEvent (QPaintEvent*); + virtual void resizeEvent (QResizeEvent*); + virtual void keyPressEvent (QKeyEvent*); + +}; // class KDockTabBar + + +class KDockTabBarPainter : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + QString tip (const QPoint&); + QRect findBarRectByPos (int, int); + +private: + KDockTabBarPainter (KDockTabBar*/TransferThis/); + +protected: + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseReleaseEvent (QMouseEvent*); + virtual void resizeEvent (QResizeEvent*); + virtual void paintEvent (QPaintEvent*); + +}; // class KDockTabBarPainter + + +class KDockTabCtl : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KDockTabCtl (QWidget*/TransferThis/ = 0, const char* = 0); + virtual void setTabPos (KDockTabBar::TabPos); + KDockTabBar::TabPos getTabPos (); + int insertPage (QWidget*, const QString&, int = -1, int = -1); + void setPageCaption (QWidget*, const QString&); + void setPageCaption (int, const QString&); + QString pageCaption (QWidget*); + QString pageCaption (int); + void captionAutoSet (bool); + bool isCaptionAutoSet (); + void setPixmap (QWidget*, const QPixmap&); + void setPixmap (int, const QPixmap&); + void setToolTip (QWidget*, const QString&); + void setTabTextColor (QWidget*, const QColor&); + void setTabTextColor (int, const QColor&); + const QColor& tabTextColor (QWidget*); + const QColor& tabTextColor (int); + bool isPageEnabled (QWidget*); + bool isPageEnabled (int); + void setPageEnabled (QWidget*, bool); + void setPageEnabled (int, bool); + QWidget* page (int); + int id (QWidget*); + int index (QWidget*); + void removePage (QWidget*); + void removePage (int); + QWidget* visiblePage (); + int visiblePageId (); + void setVisiblePage (QWidget*, bool = 0); + void setTabFont (const QFont&); + QFont tabFont (); + void showTabIcon (bool); + bool isShowTabIcon (); + int pageCount (); + QWidget* getFirstPage (); + QWidget* getLastPage (); + QWidget* getNextPage (QWidget*); + QWidget* getPrevPage (QWidget*); + virtual void show (); + virtual bool eventFilter (QObject*, QEvent*); + +public slots: + virtual void setEnabled (bool); + void setVisiblePage (int); + +protected: + void paintEvent (QPaintEvent*); + +signals: + void aboutToShow (QWidget*); + void pageSelected (QWidget*); + void tabShowPopup (int, QPoint); + +protected slots: + void rightButtonPress (int, QPoint); + +protected: + KDockTabCtl_PrivateStruct* findData (QWidget*); + KDockTabCtl_PrivateStruct* findData (int); + void showPage (QWidget*, bool = 0); + +}; // class KDockTabCtl + diff --git a/sip/tdeui/kdockwidget.sip b/sip/tdeui/kdockwidget.sip new file mode 100644 index 0000000..c65d398 --- /dev/null +++ b/sip/tdeui/kdockwidget.sip @@ -0,0 +1,469 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDockWidgetAbstractHeader : QFrame +{ +%TypeHeaderCode +#include +%End + + +public: + KDockWidgetAbstractHeader (KDockWidget* /TransferThis/, const char* = 0); + virtual void setTopLevel (bool); + virtual void saveConfig (KConfig*); + virtual void loadConfig (KConfig*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDockWidgetAbstractHeader + + +class KDockWidgetAbstractHeaderDrag : QFrame +{ +%TypeHeaderCode +#include +%End + + +public: + KDockWidgetAbstractHeaderDrag (KDockWidgetAbstractHeader* /TransferThis/, KDockWidget*, const char* = 0); + KDockWidget* dockWidget (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDockWidgetAbstractHeaderDrag + + +class KDockWidgetHeaderDrag : KDockWidgetAbstractHeaderDrag +{ +%TypeHeaderCode +#include +%End + + +public: + KDockWidgetHeaderDrag (KDockWidgetAbstractHeader* /TransferThis/, KDockWidget*, const char* = 0); + +protected: + virtual void paintEvent (QPaintEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDockWidgetHeaderDrag + + +class KDockWidgetHeader : KDockWidgetAbstractHeader +{ +%TypeHeaderCode +#include +%End + + +public: + KDockWidgetHeader (KDockWidget* /TransferThis/, const char* = 0); + virtual void setTopLevel (bool); + void setDragPanel (KDockWidgetHeaderDrag*); + +%If ( KDE_3_4_0 - ) + KDockWidgetHeaderDrag* dragPanel (); +%End + + bool dragEnabled (); + void setDragEnabled (bool); + +%If ( KDE_3_1_0 - ) + void showUndockButton (bool); + +%If ( KDE_3_2_0 - ) + void forceCloseButtonHidden (bool = 1); +%End + +%End + + virtual void saveConfig (KConfig*); + virtual void loadConfig (KConfig*); + +%If ( KDE_3_2_0 - ) +//ig void addButton (KDockButton_Private*); +//ig void removeButton (KDockButton_Private*); +%End + + +protected slots: + void slotStayClicked (); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDockWidgetHeader + + +class KDockTabGroup : QTabWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KDockTabGroup (QWidget* /TransferThis/ = 0, const char* = 0); + +%If ( KDE_3_2_0 - ) + QWidget* transientTo (); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDockTabGroup + + +class KDockWidget : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KDockWidget (KDockManager*, const char*, const QPixmap&, QWidget* /TransferThis/ = 0, const QString& = 0, const QString& = " ", WFlags = 0); + +%If ( KDE_3_1_0 - ) + + enum DockPosition + { + DockNone, + DockTop, + DockLeft, + DockRight, + DockBottom, + DockCenter, + DockDesktop, + DockToSpecialSites, + DockCorner, + DockFullSite, + DockFullDocking + }; + +%End + + KDockWidget* manualDock (KDockWidget*, KDockWidget::DockPosition, int = 50, QPoint = QPoint (0 ,0 ), bool = 0, int = -1); + void setEnableDocking (int); + int enableDocking (); + void setDockSite (int); + int dockSite (); + void setWidget (QWidget*); + QWidget* getWidget (); + void setHeader (KDockWidgetAbstractHeader*); + +%If ( KDE_3_2_0 - ) + KDockWidgetAbstractHeader* getHeader (); +%End + + void makeDockVisible (); + bool mayBeHide (); + bool mayBeShow (); + KDockManager* dockManager (); + void setToolTipString (const QString&); + const QString& toolTipString (); + bool isDockBackPossible (); + void setTabPageLabel (const QString&); + const QString& tabPageLabel (); + virtual bool event (QEvent*); + virtual void show (); + KDockTabGroup* parentDockTabGroup (); + +%If ( KDE_3_1_0 - ) + QWidget* parentDockContainer () const; +%End + + void setDockWindowType (NET::WindowType); + void setDockWindowTransient (QWidget* /Transfer/, bool); + +%If ( KDE_3_2_0 - ) + QWidget* transientTo (); +%End + + +%If ( KDE_3_1_0 - ) + KDockWidget* findNearestDockWidget (KDockWidget::DockPosition); + +%If ( KDE_3_2_0 - ) + void setPixmap (const QPixmap& = QPixmap ()); + const QPixmap& pixmap () const; + +%If ( KDE_3_3_0 - ) + KDockWidget::DockPosition currentDockPosition () const; +%End + +%End + +%End + + +public slots: + +%If ( KDE_3_1_0 - ) + void setForcedFixedWidth (int); + void setForcedFixedHeight (int); + void restoreFromForcedFixedSize (); + int forcedFixedWidth (); + int forcedFixedHeight (); +%End + + void dockBack (); + void changeHideShowState (); + void undock (); + +%If ( KDE_3_1_0 - ) + void toDesktop (); +%End + + +protected: + void updateHeader (); + +%If ( KDE_3_1_0 - ) + void setLatestKDockContainer (QWidget*); + QWidget* latestKDockContainer (); + +%If ( KDE_3_2_1 - ) + void setFormerBrotherDockWidget (KDockWidget*); +%End + +%End + + +signals: + +%If ( KDE_3_2_0 - ) + void widgetSet (QWidget*); +%End + + void docking (KDockWidget*, KDockWidget::DockPosition); + void setDockDefaultPos (); + void headerCloseButtonClicked (); + void headerDockbackButtonClicked (); + void iMBeingClosed (); + void hasUndocked (); + +protected slots: + void loseFormerBrotherDockWidget (); + +%If ( KDE_3_1_0 - ) + virtual void paintEvent (QPaintEvent*); + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseReleaseEvent (QMouseEvent*); + virtual void mouseMoveEvent (QMouseEvent*); + virtual void leaveEvent (QEvent*); +%End + + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_1_0 ) + + enum DockPosition + { + DockNone, + DockTop, + DockLeft, + DockRight, + DockBottom, + DockCenter, + DockDesktop, + DockCorner, + DockFullSite, + DockFullDocking + }; + +%End + + +}; // class KDockWidget + + +class KDockManager : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_2_0 - ) + + enum EnReadDockConfigMode + { + Unknown, + WrapExistingWidgetsOnly, + RestoreAllDockwidgets + }; + +%End + + +public: + KDockManager (QWidget*, const char* = 0); + +%If ( KDE_3_2_0 - ) + void dumpDockWidgets (); +%End + + void writeConfig (KConfig* = 0, QString = QString ::null ); + void readConfig (KConfig* = 0, QString = QString ::null ); + +%If ( KDE_3_1_0 - ) + void setMainDockWidget2 (KDockWidget*); +%End + + void writeConfig (QDomElement&); + void readConfig (QDomElement&); + void activate (); + virtual bool eventFilter (QObject*, QEvent*); + KDockWidget* findWidgetParentDock (QWidget*); + void makeWidgetDockVisible (QWidget*); + QPopupMenu* dockHideShowMenu (); + KDockWidget* getDockWidgetFromName (const QString&); + void setSplitterOpaqueResize (bool = 1); + bool splitterOpaqueResize () const; + void setSplitterKeepSize (bool = 1); + bool splitterKeepSize () const; + void setSplitterHighResolution (bool = 1); + bool splitterHighResolution () const; + +%If ( KDE_3_2_0 - ) + void setSpecialLeftDockContainer (KDockWidget*); + void setSpecialTopDockContainer (KDockWidget*); + void setSpecialRightDockContainer (KDockWidget*); + void setSpecialBottomDockContainer (KDockWidget*); + void removeFromAutoCreateList (KDockWidget*); + void finishReadDockConfig (); + void setReadDockConfigMode (int); +%End + + +signals: + void change (); + void replaceDock (KDockWidget*, KDockWidget*); + void setDockDefaultPos (KDockWidget*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDockManager + + +class KDockMainWindow : KMainWindow +{ +%TypeHeaderCode +#include +%End + + +public: + KDockMainWindow (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = WType_TopLevel |WDestructiveClose ); + KDockManager* manager (); + void setMainDockWidget (KDockWidget*); + KDockWidget* getMainDockWidget (); + KDockWidget* createDockWidget (const QString&, const QPixmap&, QWidget* /Transfer/ = 0, const QString& = 0, const QString& = " "); + void writeDockConfig (QDomElement&); + void readDockConfig (QDomElement&); + void writeDockConfig (KConfig* = 0, QString = QString ::null ); + void readDockConfig (KConfig* = 0, QString = QString ::null ); + void activateDock (); + QPopupMenu* dockHideShowMenu (); + void makeDockVisible (KDockWidget*); + void makeDockInvisible (KDockWidget*); + void makeWidgetDockVisible (QWidget*); + void setView (QWidget*); + +signals: + void dockWidgetHasUndocked (KDockWidget*); + +protected: + +protected slots: + void slotDockWidgetUndocked (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDockMainWindow + + +class KDockArea : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KDockArea (QWidget* /TransferThis/ = 0, const char* = 0); + KDockManager* manager (); + void setMainDockWidget (KDockWidget*); + KDockWidget* getMainDockWidget (); + KDockWidget* createDockWidget (const QString&, const QPixmap&, QWidget* /Transfer/ = 0, const QString& = 0, const QString& = " "); + void writeDockConfig (QDomElement&); + void readDockConfig (QDomElement&); + void writeDockConfig (KConfig* = 0, QString = QString ::null ); + void readDockConfig (KConfig* = 0, QString = QString ::null ); + void activateDock (); + QPopupMenu* dockHideShowMenu (); + void makeDockVisible (KDockWidget*); + void makeDockInvisible (KDockWidget*); + void makeWidgetDockVisible (QWidget*); + +signals: + void dockWidgetHasUndocked (KDockWidget*); + +protected: + +protected slots: + void slotDockWidgetUndocked (); + +public: + virtual void resizeEvent (QResizeEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDockArea + diff --git a/sip/tdeui/kdockwindow.sip b/sip/tdeui/kdockwindow.sip new file mode 100644 index 0000000..af46e2a --- /dev/null +++ b/sip/tdeui/kdockwindow.sip @@ -0,0 +1,38 @@ +// +// Copyright 2005 Jim Bublitz +// Earlier copyrights 1998 - 2004 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE_3_4_0 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDockWindow : KSystemTray +{ +%TypeHeaderCode +#include +%End + + +public: + KDockWindow (QWidget* /TransferThis/ = 0, const char* = 0); + +}; // class KDockWindow + diff --git a/sip/tdeui/kdualcolorbtn.sip b/sip/tdeui/kdualcolorbtn.sip new file mode 100644 index 0000000..210c397 --- /dev/null +++ b/sip/tdeui/kdualcolorbtn.sip @@ -0,0 +1,73 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDualColorButton : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + + enum DualColor + { + Foreground, + Background + }; + + KDualColorButton (QWidget*/TransferThis/ = 0, const char* = 0); + KDualColorButton (QWidget*/TransferThis/, const char*, QWidget*); + KDualColorButton (const QColor&, const QColor&, QWidget*/TransferThis/ = 0, const char* = 0); + KDualColorButton (const QColor&, const QColor&, QWidget*/TransferThis/, const char*, QWidget*); + QColor foreground () const; + QColor background () const; + DualColor current () const; + QColor currentColor () const; + virtual QSize sizeHint () const; + +public slots: + void setForeground (const QColor&); + void setBackground (const QColor&); + void setCurrent (KDualColorButton::DualColor); + void setCurrentColor (const QColor&); + +signals: + void fgChanged (const QColor&); + void bgChanged (const QColor&); + void currentChanged (KDualColorButton::DualColor); + +protected: + virtual void metrics (QRect&, QRect&); + virtual void paintEvent (QPaintEvent*); + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseMoveEvent (QMouseEvent*); + virtual void mouseReleaseEvent (QMouseEvent*); + virtual void dragEnterEvent (QDragEnterEvent*); + virtual void dropEvent (QDropEvent*); + +}; // class KDualColorButton + diff --git a/sip/tdeui/kdualcolorbutton.sip b/sip/tdeui/kdualcolorbutton.sip new file mode 100644 index 0000000..739dad9 --- /dev/null +++ b/sip/tdeui/kdualcolorbutton.sip @@ -0,0 +1,74 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDualColorButton : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + + enum DualColor + { + Foreground, + Background + }; + + KDualColorButton (QWidget* /TransferThis/ = 0, const char* = 0, QWidget* = 0); + KDualColorButton (const QColor&, const QColor&, QWidget* /TransferThis/ = 0, const char* = 0, QWidget* = 0); + QColor foreground () const; + QColor background () const; + KDualColorButton::DualColor current () const; + QColor currentColor () const; + virtual QSize sizeHint () const; + +public slots: + void setForeground (const QColor&); + void setBackground (const QColor&); + void setCurrent (KDualColorButton::DualColor); + void setCurrentColor (const QColor&); + +signals: + void fgChanged (const QColor&); + void bgChanged (const QColor&); + void currentChanged (KDualColorButton::DualColor); + +protected: + virtual void metrics (QRect&, QRect&); + virtual void paintEvent (QPaintEvent*); + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseMoveEvent (QMouseEvent*); + virtual void mouseReleaseEvent (QMouseEvent*); + virtual void dragEnterEvent (QDragEnterEvent*); + virtual void dropEvent (QDropEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDualColorButton + diff --git a/sip/tdeui/keditcl.sip b/sip/tdeui/keditcl.sip new file mode 100644 index 0000000..89674c3 --- /dev/null +++ b/sip/tdeui/keditcl.sip @@ -0,0 +1,224 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KEdGotoLine : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + KEdGotoLine (QWidget* /TransferThis/ = 0, const char* = 0, bool = 1); + int getLineNumber (); + +public slots: + void selected (int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KEdGotoLine + + +class KEdFind : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + KEdFind (QWidget* /TransferThis/ = 0, const char* = 0, bool = 1); + QString getText () const; + void setText (QString); + void setCaseSensitive (bool); + bool case_sensitive () const; + void setDirection (bool); + bool get_direction () const; + KHistoryCombo* searchCombo () const; + +protected slots: + void slotCancel (); + void slotUser1 (); + void textSearchChanged (const QString&); + +protected: + +signals: + void search (); + void done (); + +protected: +//igx virtual void virtual_hook (int, void*); +//force + +private: + virtual void done (int); +//end + +}; // class KEdFind + + +class KEdReplace : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + KEdReplace (QWidget* /TransferThis/ = 0, const char* = 0, bool = 1); + QString getText (); + QString getReplaceText (); + void setText (QString); + KHistoryCombo* searchCombo () const; + KHistoryCombo* replaceCombo () const; + bool case_sensitive (); + bool get_direction (); + +protected slots: + void slotCancel (); + void slotClose (); + void slotUser1 (); + void slotUser2 (); + void slotUser3 (); + void textSearchChanged (const QString&); + +signals: + void replace (); + void find (); + void replaceAll (); + void done (); + +protected: +//igx virtual void virtual_hook (int, void*); +//force + +private: + virtual void done (int); +//end + +}; // class KEdReplace + + +class KEdit : QMultiLineEdit +{ +%TypeHeaderCode +#include +%End + + +public: + KEdit (QWidget* /TransferThis/ = 0, const char* = 0); + + enum + { + NONE, + FORWARD, + BACKWARD + }; + + void insertText (QTextStream*); + +%If ( KDE_3_1_0 - ) + void saveText (QTextStream*, bool); +%End + + void saveText (QTextStream*); + void selectFont (); + void search (); + bool repeatSearch (); + void replace (); + void doGotoLine (); + void cleanWhiteSpace (); + void installRBPopup (QPopupMenu*); + int currentLine (); + int currentColumn (); + void spellcheck_start (); + void spellcheck_stop (); + void setOverwriteEnabled (bool); + +%If ( KDE_3_2_0 - ) + QString selectWordUnderCursor (); + +%If ( KDE_3_2_3 - ) + QPopupMenu* createPopupMenu (const QPoint&); + +%If ( KDE_3_3_0 - ) + void setAutoUpdate (bool); +%End + +%End + +%End + + +signals: + void gotUrlDrop (QDropEvent*); + void CursorPositionChanged (); + void toggle_overwrite_signal (); + +public slots: + +%If ( KDE_3_2_0 - ) + void corrected (const QString&, const QString&, uint); + void misspelling (const QString&, const QStringList&, uint); +%End + + +protected: + void computePosition (); + int doSearch (QString, bool, bool, bool, int, int); + int doReplace (QString, bool, bool, bool, int, int, bool); + void posToRowCol (uint, uint&, uint&); + virtual void create (WId = 0, bool = 1, bool = 1); + +%If ( KDE_3_3_0 - ) + virtual void ensureCursorVisible (); + virtual void setCursor (const QCursor&); + virtual void viewportPaintEvent (QPaintEvent*); +%End + + +protected: + void keyPressEvent (QKeyEvent*); + void dragMoveEvent (QDragMoveEvent*); + void dragEnterEvent (QDragEnterEvent*); + void dropEvent (QDropEvent*); + +%If ( KDE_3_1_3 - ) + void contentsDragMoveEvent (QDragMoveEvent*); + void contentsDragEnterEvent (QDragEnterEvent*); + void contentsDropEvent (QDropEvent*); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KEdit + diff --git a/sip/tdeui/keditlistbox.sip b/sip/tdeui/keditlistbox.sip new file mode 100644 index 0000000..d63ae25 --- /dev/null +++ b/sip/tdeui/keditlistbox.sip @@ -0,0 +1,206 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%ModuleHeaderCode +const char **PyQtListToArray(PyObject *); +%End + + +class KEditListBox : QGroupBox +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_1_0 - ) + + class CustomEditor + { + + public: + CustomEditor (); + CustomEditor (QWidget*, KLineEdit*); + CustomEditor (KComboBox*); + void setRepresentationWidget (QWidget*); + void setLineEdit (KLineEdit*); + virtual QWidget* representationWidget () const; + virtual KLineEdit* lineEdit () const; + + protected: + + }; // class CustomEditor + + +public: +%End + + +public: + +%If ( KDE_3_5_0 - ) + + enum Button + { + Add, + Remove, + UpDown + }; + + + enum + { + All + }; + +%End + + KEditListBox (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, int = All ); + KEditListBox (const QString&, QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, int = All ); + +%If ( KDE_3_1_0 - ) + KEditListBox (const QString&, const KEditListBox::CustomEditor&, QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, int = All ); +%End + + QListBox* listBox () const; + KLineEdit* lineEdit () const; + QPushButton* addButton () const; + QPushButton* removeButton () const; + QPushButton* upButton () const; + QPushButton* downButton () const; + int count () const; + void insertStringList (const QStringList&, int = -1); + void insertStrList (const QStrList*, int = -1); + void insertStrList (const QStrList&, int = -1); + void insertStrList (SIP_PYLIST, int = -1) [void (const char**, int = -1, int = -1)]; +%MethodCode +//takes list | (a Python list of strings) | index | (int) + + int n; + + if ((n = PyList_Size (a0)) == 0) + return NULL; + + const char **strings; + + if ((strings = PyQtListToArray(a0)) == NULL) + return NULL; + + Py_BEGIN_ALLOW_THREADS + sipCpp->insertStrList (strings, n, a1); + Py_END_ALLOW_THREADS + + sipFree((ANY *)strings); +%End + + void insertItem (const QString&, int = -1); + void clear (); + QString text (int) const; + int currentItem () const; + QString currentText () const; + QStringList items () const; + +%If ( KDE_3_4_0 - ) + void setItems (const QStringList&); + int buttons () const; + void setButtons (uint); +%End + + +signals: + void changed (); + +%If ( KDE_3_2_0 - ) + void added (const QString&); + void removed (const QString&); +%End + + +protected slots: + void moveItemUp (); + void moveItemDown (); + void addItem (); + void removeItem (); + void enableMoveButtons (int); + void typedSomething (const QString&); + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_5_0 ) + + enum Button + { + Add, + Remove, + UpDown, + All + }; + +%End + + +}; // class KEditListBox + + + +%ModuleCode +// Convert a list of strings to an array of strings on the heap. Also used by +// QPixmap. + +const char **PyQtListToArray(PyObject *lst) +{ + int nstr; + const char **str, **sp; + + nstr = PyList_Size(lst); + + if ((str = (const char **)sipMalloc(nstr * sizeof (char *))) == NULL) + return NULL; + + // Convert the list. + + sp = str; + + for (int i = 0; i < nstr; ++i) + { + char *s; + + if ((s = PyString_AsString(PyList_GetItem(lst,i))) == NULL) + { + sipFree((ANY *)str); + return NULL; + } + + *sp++ = s; + } + + return str; +} +%End diff --git a/sip/tdeui/kedittoolbar.sip b/sip/tdeui/kedittoolbar.sip new file mode 100644 index 0000000..fb1074f --- /dev/null +++ b/sip/tdeui/kedittoolbar.sip @@ -0,0 +1,156 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KEditToolbar : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + KEditToolbar (KActionCollection*, const QString& = QString ::null , bool = 1, QWidget* /TransferThis/ = 0, const char* = 0); + +%If ( KDE_3_2_0 - ) + KEditToolbar (const QString&, KActionCollection*, const QString& = QString ::null , bool = 1, QWidget* /TransferThis/ = 0, const char* = 0); +%End + + KEditToolbar (KXMLGUIFactory*, QWidget* /TransferThis/ = 0, const char* = 0); + +%If ( KDE_3_2_0 - ) + KEditToolbar (const QString&, KXMLGUIFactory*, QWidget* /TransferThis/ = 0, const char* = 0); + +%If ( KDE_3_3_0 - ) + static void setDefaultToolbar (const char*); +%End + +%End + + +protected slots: + virtual void slotOk (); + virtual void slotApply (); + void acceptOK (bool); + +%If ( KDE_3_5_0 - ) + void slotDefault (); +%End + + +signals: + void newToolbarConfig (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KEditToolbar + + +class KEditToolbarWidget : QWidget, KXMLGUIClient +{ +%TypeHeaderCode +#include +%End + + +public: + KEditToolbarWidget (KActionCollection*, const QString& = QString ::null , bool = 1, QWidget* /TransferThis/ = 0); + +%If ( KDE_3_2_0 - ) + KEditToolbarWidget (const QString&, KActionCollection*, const QString& = QString ::null , bool = 1, QWidget* /TransferThis/ = 0); +%End + + KEditToolbarWidget (KXMLGUIFactory*, QWidget* /TransferThis/ = 0); + +%If ( KDE_3_2_0 - ) + KEditToolbarWidget (const QString&, KXMLGUIFactory*, QWidget* /TransferThis/ = 0); +%End + + +%If ( KDE_3_1_0 - ) + virtual KActionCollection* actionCollection () const; +%End + + bool save (); + +%If ( KDE_3_5_0 - ) + void rebuildKXMLGUIClients (); +%End + + +signals: + void enableOk (bool); + +protected slots: + void slotToolbarSelected (const QString&); + void slotInactiveSelected (QListViewItem*); + void slotActiveSelected (QListViewItem*); + +%If ( KDE_3_3_0 - ) + void slotDropped (KListView*, QDropEvent*, QListViewItem*); +%End + + void slotInsertButton (); + void slotRemoveButton (); + void slotUpButton (); + void slotDownButton (); + +%If ( KDE_3_3_0 - ) + void slotChangeIcon (); +%End + + +protected: + void setupLayout (); + +%If ( KDE_3_3_0 - ) +//ig void insertActive (ToolbarItem*, QListViewItem*, bool = 0); +//ig void removeActive (ToolbarItem*); +//ig void moveActive (ToolbarItem*, QListViewItem*); +%End + + +%If ( KDE_3_2_0 - ) + void initNonKPart (KActionCollection*, const QString&, bool); + void initKPart (KXMLGUIFactory*); + void loadToolbarCombo (const QString& = QString ::null ); +%End + + void loadActionList (QDomElement&); + void updateLocal (QDomElement&); + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( - KDE_3_2_0 ) + void loadToolbarCombo (); +%End + + +}; // class KEditToolbarWidget + diff --git a/sip/tdeui/kfontcombo.sip b/sip/tdeui/kfontcombo.sip new file mode 100644 index 0000000..7bca452 --- /dev/null +++ b/sip/tdeui/kfontcombo.sip @@ -0,0 +1,67 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KFontCombo : KComboBox +{ +%TypeHeaderCode +#include +%End + + +public: + KFontCombo (QWidget* /TransferThis/, const char* = 0); + KFontCombo (const QStringList&, QWidget* /TransferThis/, const char* = 0); + void setFonts (const QStringList&); + void setCurrentFont (const QString&); + QString currentFont () const; + void setBold (bool); + bool bold () const; + void setItalic (bool); + bool italic () const; + void setUnderline (bool); + bool underline () const; + void setStrikeOut (bool); + bool strikeOut () const; + void setSize (int); + int size () const; + static bool displayFonts (); + virtual void setCurrentItem (int); + +protected slots: + +%If ( KDE_3_3_0 - ) + void slotModified (int); +%End + + +protected: + void updateFonts (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFontCombo + diff --git a/sip/tdeui/kfontdialog.sip b/sip/tdeui/kfontdialog.sip new file mode 100644 index 0000000..8ef9b57 --- /dev/null +++ b/sip/tdeui/kfontdialog.sip @@ -0,0 +1,184 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KFontChooser : QWidget +{ +%TypeHeaderCode +#include +#include +%End + + +public: + +%If ( KDE_3_1_0 - ) + + enum FontColumn + { + FamilyList, + StyleList, + SizeList + }; + +%End + + + enum FontDiff + { + FontDiffFamily, + FontDiffStyle, + FontDiffSize + }; + + KFontChooser (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, const QStringList& = QStringList (), bool = 1, int = 8, bool = 0, QButton::ToggleState = QButton ::Off ) [(QWidget* = 0, const char* = 0, bool = 0, const QStringList& = QStringList (), bool = 1, int = 8, bool = 0, QButton::ToggleState* = 0)]; +%MethodCode +//takes parent | (QWidget = 0) | name | (string = "") | onlyFixed | (bool = 0) | fontList | (QStringList = QStringList()) | makeFrame | (bool = 1) | visibleListSize | (int = 8) | diff | (bool = 0) | sizeIsRelativeState | (QButton::ToggleState = 0) +//returns + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipKFontChooser *) new KFontChooser (a0, a1, a2, *a3, a4, a5, a6, &a7); + Py_END_ALLOW_THREADS +%End + + void enableColumn (int, bool); + void setFont (const QFont&, bool = 0); + int fontDiffFlags (); + QFont font () const; + void setColor (const QColor&); + QColor color () const; + void setBackgroundColor (const QColor&); + QColor backgroundColor () const; + void setSizeIsRelative (QButton::ToggleState); + QButton::ToggleState sizeIsRelative () const; + QString sampleText () const; + void setSampleText (const QString&); + +%If ( KDE_3_5_0 - ) + void setSampleBoxVisible (bool); +%End + + static QString getXLFD (const QFont&); + + enum FontListCriteria + { + FixedWidthFonts, + ScalableFonts, + SmoothScalableFonts + }; + + static void getFontList (QStringList&, bool); + virtual QSize sizeHint () const; + +signals: + void fontSelected (const QFont&); + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_1_0 ) + + enum FontColumn + { + FamilyList, + StyleList, + SizeList, + CharsetList + }; + +%End + + +}; // class KFontChooser + + +class KFontDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + KFontDialog (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, bool = 0, const QStringList& = QStringList (), bool = 1, bool = 0, QButton::ToggleState = QButton ::Off ) [(QWidget* = 0, const char* = 0, bool = 0, bool = 0, const QStringList& = QStringList (), bool = 1, bool = 0, QButton::ToggleState* = 0)]; +%MethodCode +//takes parent | (QWidget = 0) | name | (string = "") | onlyFixed | (bool = 0) | modal | (bool = 0) | fontlist | (QStringList = QStringList()) | makeFrame | (bool = 1) | diff | (bool = 0) | sizeIsRelativeState | (QButton::ToggleState = 0) + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipKFontDialog *)new KFontDialog (a0, a1, a2, a3, *a4, a5, a6, &a7); + Py_END_ALLOW_THREADS +%End + + void setFont (const QFont&, bool = 0); + QFont font () const; + void setSizeIsRelative (QButton::ToggleState); + QButton::ToggleState sizeIsRelative () const; + static SIP_PYTUPLE getFont (QFont&, bool = 0, QWidget* /Transfer/ = 0, bool = 1, QButton::ToggleState /In/ = QButton ::Off ) [int (QFont&, bool = 0, QWidget* = 0, bool = 1, QButton::ToggleState* = 0)]; +%MethodCode +//returns (int) sizeIsRelative (QButton::ToggleState) +//takes theFont | (QFont) | onlyFixed | (bool = False) | parent | (QWidget = 0) | makeFrame | (bool = True) | sizeIsRelative | (QButton::ToggleState = QButton.Off) + int res; + Py_BEGIN_ALLOW_THREADS + res = KFontDialog::getFont (*a0, a1, a2, a3, &a4); + Py_END_ALLOW_THREADS + + sipRes = Py_BuildValue ("ii", res, (int)a4); +%End + + static SIP_PYTUPLE getFontDiff (QFont&, int&, bool = 0, QWidget* /Transfer/ = 0, bool = 1, QButton::ToggleState /In/ = QButton ::Off ) [int (QFont&, int&, bool = 0, QWidget* = 0, bool = 1, QButton::ToggleState* = 0)]; +%MethodCode +//returns (int) sizeIsRelative (QButton::ToggleState) +//takes theFont | (QFont) | diffFlags | (int) | onlyFixed | (bool = False) | parent | (QWidget = 0) | makeFrame | (bool = true) | sizeIsRelative | (QButton::ToggleState = QButton.Off) + int res; + Py_BEGIN_ALLOW_THREADS + res = KFontDialog::getFontDiff (*a0, a1, a2, a3, a4, &a5); + Py_END_ALLOW_THREADS + + sipRes = Py_BuildValue ("ii", res, (int)a5); +%End + + static SIP_PYTUPLE getFontAndText (QFont&, QString&, bool = 0, QWidget* /Transfer/ = 0, bool = 1, QButton::ToggleState /In/ = QButton ::Off ) [int (QFont&, QString&, bool = 0, QWidget* = 0, bool = 1, QButton::ToggleState* = 0)]; +%MethodCode +//returns (int) sizeIsRelative (QButton::ToggleState) +//takes theFont | (QFont) | theString | (QString) | onlyFixed | (bool = False) | parent | (QWidget = 0) | makeFrame | (bool = true) | sizeIsRelative | (QButton::ToggleState = QButton.Off) + int res; + Py_BEGIN_ALLOW_THREADS + res = KFontDialog::getFontAndText (*a0, *a1, a2, a3, a4, &a5); + Py_END_ALLOW_THREADS + + sipRes = Py_BuildValue ("ii", res, (int)a5); +%End + + +signals: + void fontSelected (const QFont&); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFontDialog + diff --git a/sip/tdeui/kfontrequester.sip b/sip/tdeui/kfontrequester.sip new file mode 100644 index 0000000..7e707bd --- /dev/null +++ b/sip/tdeui/kfontrequester.sip @@ -0,0 +1,63 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KFontRequester : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KFontRequester (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0); + QFont font () const; + bool isFixedOnly () const; + QString sampleText () const; + QString title () const; + QLabel* label () const; + QPushButton* button () const; + virtual void setFont (const QFont&, bool = 0); + virtual void setSampleText (const QString&); + virtual void setTitle (const QString&); + +signals: + void fontSelected (const QFont&); + +protected: + void displaySampleText (); + void setToolTip (); + +protected slots: + virtual void buttonClicked (); + +protected: + +}; // class KFontRequester + +%End + diff --git a/sip/tdeui/kguiitem.sip b/sip/tdeui/kguiitem.sip new file mode 100644 index 0000000..90796ca --- /dev/null +++ b/sip/tdeui/kguiitem.sip @@ -0,0 +1,57 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KGuiItem +{ +%TypeHeaderCode +#include +%End + + +public: + KGuiItem (); + KGuiItem (const QString&, const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null ); + KGuiItem (const QString&, const QIconSet&, const QString& = QString ::null , const QString& = QString ::null ); + KGuiItem (const KGuiItem&); + QString text () const; + QString plainText () const; + QIconSet iconSet (KIcon::Group, int = 0, KInstance* = KGlobal ::instance ()) const; + QIconSet iconSet () const; + QString iconName () const; + QString toolTip () const; + QString whatsThis () const; + bool isEnabled () const; + bool hasIcon () const; + bool hasIconSet () const; + void setText (const QString&); + void setIconSet (const QIconSet&); + void setIconName (const QString&); + void setToolTip (const QString&); + void setWhatsThis (const QString&); + void setEnabled (bool); + +}; // class KGuiItem + diff --git a/sip/tdeui/khelpmenu.sip b/sip/tdeui/khelpmenu.sip new file mode 100644 index 0000000..97e0680 --- /dev/null +++ b/sip/tdeui/khelpmenu.sip @@ -0,0 +1,63 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KHelpMenu : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + + enum MenuId + { + menuHelpContents, + menuWhatsThis, + menuAboutApp, + menuAboutKDE, + menuReportBug + }; + + KHelpMenu (QWidget* /TransferThis/ = 0, const QString& = QString ::null , bool = 1); + KHelpMenu (QWidget* /TransferThis/, const KAboutData*, bool = 1, KActionCollection* = 0); + KPopupMenu* menu (); + +public slots: + void appHelpActivated (); + void contextHelpActivated (); + void aboutApplication (); + void aboutKDE (); + void reportBug (); + +signals: + void showAboutApplication (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KHelpMenu + diff --git a/sip/tdeui/kiconview.sip b/sip/tdeui/kiconview.sip new file mode 100644 index 0000000..11ffa56 --- /dev/null +++ b/sip/tdeui/kiconview.sip @@ -0,0 +1,147 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KIconView : QIconView +{ +%TypeHeaderCode +#include +%End + + +public: + KIconView (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + + enum Mode + { + Execute, + Select + }; + + void setMode (KIconView::Mode); + Mode mode () const; + virtual void setFont (const QFont&); + +%If ( KDE_3_3_0 - ) + void setIconTextHeight (int); + int iconTextHeight () const; + +%If ( KDE_3_4_0 - ) + virtual void takeItem (QIconViewItem*); +%End + +%End + + +signals: + void executed (QIconViewItem*); + void executed (QIconViewItem*, const QPoint&); + +%If ( KDE_3_3_0 - ) + void held (QIconViewItem*); +%End + + void doubleClicked (QIconViewItem*, const QPoint&); + +protected slots: + void slotOnItem (QIconViewItem*); + void slotOnViewport (); + void slotSettingsChanged (int); + void slotAutoSelect (); + +protected: + void emitExecute (QIconViewItem*, const QPoint&); + +%If ( KDE_3_5_0 - ) + void updateDragHoldItem (QDropEvent*); +%End + + virtual void focusOutEvent (QFocusEvent*); + virtual void leaveEvent (QEvent*); + virtual void contentsMousePressEvent (QMouseEvent*); + virtual void contentsMouseDoubleClickEvent (QMouseEvent*); + virtual void contentsMouseReleaseEvent (QMouseEvent*); + +%If ( KDE_3_3_0 - ) + virtual void contentsDragEnterEvent (QDragEnterEvent*); + +%If ( KDE_3_5_0 - ) + virtual void contentsDragLeaveEvent (QDragLeaveEvent*); +%End + + virtual void contentsDragMoveEvent (QDragMoveEvent*); + virtual void contentsDropEvent (QDropEvent*); + virtual void wheelEvent (QWheelEvent*); + +%If ( KDE_3_4_0 - ) + void cancelPendingHeldSignal (); +%End + +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KIconView + + +class KIconViewItem : QIconViewItem +{ +%TypeHeaderCode +#include +%End + + +public: + KIconViewItem (QIconView* /TransferThis/); + KIconViewItem (QIconView* /TransferThis/, QIconViewItem*); + KIconViewItem (QIconView* /TransferThis/, const QString&); + KIconViewItem (QIconView* /TransferThis/, QIconViewItem*, const QString&); + KIconViewItem (QIconView* /TransferThis/, const QString&, const QPixmap&); + KIconViewItem (QIconView* /TransferThis/, QIconViewItem*, const QString&, const QPixmap&); + KIconViewItem (QIconView* /TransferThis/, const QString&, const QPicture&); + KIconViewItem (QIconView* /TransferThis/, QIconViewItem*, const QString&, const QPicture&); + +%If ( KDE_3_3_0 - ) + void setPixmapSize (const QSize&); + QSize pixmapSize () const; +%End + + +protected: + void init (); + virtual void calcRect (const QString& = QString ::null ); + virtual void paintItem (QPainter*, const QColorGroup&); + +%If ( KDE_3_2_0 - ) + KWordWrap* wordWrap (); + void paintPixmap (QPainter*, const QColorGroup&); + void paintText (QPainter*, const QColorGroup&); +%End + + +}; // class KIconViewItem + diff --git a/sip/tdeui/kiconviewsearchline.sip b/sip/tdeui/kiconviewsearchline.sip new file mode 100644 index 0000000..0dac3f4 --- /dev/null +++ b/sip/tdeui/kiconviewsearchline.sip @@ -0,0 +1,61 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_4_0 - ) + +class KIconViewSearchLine : KLineEdit +{ +%TypeHeaderCode +#include +%End + + +public: + KIconViewSearchLine (QWidget* /TransferThis/ = 0, QIconView* = 0, const char* = 0); + KIconViewSearchLine (QWidget* /TransferThis/, const char*); + bool caseSensitive () const; + QIconView* iconView () const; + +public slots: + virtual void updateSearch (const QString& = QString ::null ); + void setCaseSensitive (bool); + void setIconView (QIconView*); + void clear (); + +protected: + virtual bool itemMatches (const QIconViewItem*, const QString&) const; + void init (QIconView* = 0); + void hideItem (QIconViewItem*); + void showItem (QIconViewItem*); + +protected slots: + void queueSearch (const QString&); + void activateSearch (); + +}; // class KIconViewSearchLine + +%End + diff --git a/sip/tdeui/kinputdialog.sip b/sip/tdeui/kinputdialog.sip new file mode 100644 index 0000000..acae513 --- /dev/null +++ b/sip/tdeui/kinputdialog.sip @@ -0,0 +1,66 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KInputDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +private: + KInputDialog (const QString&, const QString&, const QString&, QWidget* /TransferThis/, const char*, QValidator*, const QString&); + +%If ( KDE_3_3_0 - ) + KInputDialog (const QString&, const QString&, const QString&, QWidget* /TransferThis/, const char*); +%End + + KInputDialog (const QString&, const QString&, int, int, int, int, int, QWidget* /TransferThis/, const char*); + KInputDialog (const QString&, const QString&, const QStringList&, int, bool, QWidget* /TransferThis/, const char*); + KInputDialog (const QString&, const QString&, const QStringList&, const QStringList&, bool, QWidget* /TransferThis/, const char*); + ~KInputDialog (); + +public: + static QString getText (const QString&, const QString&, const QString& = QString ::null , bool* = 0, QWidget* /Transfer/ = 0, const char* = 0, QValidator* = 0, const QString& = QString ::null ); + +%If ( KDE_3_3_0 - ) + static QString text (const QString&, const QString&, const QString& = QString ::null , bool* = 0, QWidget* /Transfer/ = 0, const char* = 0, QValidator* = 0, const QString& = QString ::null , const QString& = QString ::null ); + static QString getMultiLineText (const QString&, const QString&, const QString& = QString ::null , bool* = 0, QWidget* /Transfer/ = 0, const char* = 0); +%End + + static int getInteger (const QString&, const QString&, int = 0, int = -2147483647, int = 2147483647, int = 1, int = 10, bool* = 0, QWidget* /Transfer/ = 0, const char* = 0); +//ig static int getInteger (const QString&, const QString&, int = 0, int = -2147483647, int = 2147483647, int = 1, bool* = 0, QWidget* /Transfer/ = 0, const char* = 0); + static double getDouble (const QString&, const QString&, double = 0, double = -2147483647, double = 2147483647, double = 0.1, int = 1, bool* = 0, QWidget* /Transfer/ = 0, const char* = 0); +//ig static double getDouble (const QString&, const QString&, double = 0, double = -2147483647, double = 2147483647, int = 1, bool* = 0, QWidget* /Transfer/ = 0, const char* = 0); + static QString getItem (const QString&, const QString&, const QStringList&, int = 0, bool = 0, bool* = 0, QWidget* /Transfer/ = 0, const char* = 0); + static QStringList getItemList (const QString&, const QString&, const QStringList& = QStringList (), const QStringList& = QStringList (), bool = 0, bool* = 0, QWidget* /Transfer/ = 0, const char* = 0); + +}; // class KInputDialog + +%End + diff --git a/sip/tdeui/kjanuswidget.sip b/sip/tdeui/kjanuswidget.sip new file mode 100644 index 0000000..7dd299a --- /dev/null +++ b/sip/tdeui/kjanuswidget.sip @@ -0,0 +1,110 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KJanusWidget : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + + enum Face + { + TreeList, + Tabbed, + Plain, + Swallow, + IconList + }; + + +public: + KJanusWidget (QWidget* /TransferThis/ = 0, const char* = 0, int = Plain ); + virtual bool showPage (int); + virtual int activePageIndex () const; + virtual bool isValid () const; + virtual int face () const; + virtual QSize minimumSizeHint () const; + virtual QSize sizeHint () const; + virtual QFrame* plainPage (); + virtual QFrame* addPage (const QString&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + virtual QFrame* addPage (const QStringList&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + virtual QVBox* addVBoxPage (const QString&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + virtual QVBox* addVBoxPage (const QStringList&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + virtual QHBox* addHBoxPage (const QString&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + virtual QHBox* addHBoxPage (const QStringList&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + virtual QGrid* addGridPage (int, Qt::Orientation, const QString&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + virtual QGrid* addGridPage (int, Qt::Orientation, const QStringList&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + +%If ( KDE_3_1_0 - ) + void removePage (QWidget*); +%End + + virtual int pageIndex (QWidget*) const; + virtual bool setSwallowedWidget (QWidget*); + virtual void setTreeListAutoResize (bool); + virtual void setShowIconsInTreeList (bool); + virtual void setRootIsDecorated (bool); + +%If ( KDE_3_2_0 - ) + void unfoldTreeList (bool = 0); + void addWidgetBelowList (QWidget*); + void addButtonBelowList (const QString&, QObject*, const char*); + void addButtonBelowList (const KGuiItem&, QObject*, const char*); +%End + + virtual void setIconListAllVisible (bool); + virtual void setFolderIcon (const QStringList&, const QPixmap&); + +%If ( KDE_3_2_0 - ) + QString pageTitle (int) const; + QWidget* pageWidget (int) const; +%End + + +signals: + void aboutToShowPage (QWidget*); + +public slots: + virtual void setFocus (); + +protected: + virtual void showEvent (QShowEvent*); + virtual bool eventFilter (QObject*, QEvent*); + +protected: + bool showPage (QWidget*); + void addPageWidget (QFrame*, const QStringList&, const QString&, const QPixmap&); + void InsertTreeListItem (const QStringList&, const QPixmap&, QFrame*); + QWidget* FindParent (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KJanusWidget + diff --git a/sip/tdeui/kkeybutton.sip b/sip/tdeui/kkeybutton.sip new file mode 100644 index 0000000..56fca38 --- /dev/null +++ b/sip/tdeui/kkeybutton.sip @@ -0,0 +1,59 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KKeyButton : QPushButton +{ +%TypeHeaderCode +#include +#include +%End + + +public: + KKeyButton (QWidget* /TransferThis/ = 0, const char* = 0); + void setShortcut (const KShortcut&); + +%If ( KDE_3_1_0 - ) + void setShortcut (const KShortcut&, bool); +%End + + const KShortcut& shortcut () const; + void setText (const QString&); + +signals: + void capturedShortcut (const KShortcut&); + +public slots: + void captureShortcut (); + +protected: + void drawButton (QPainter*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KKeyButton + diff --git a/sip/tdeui/kkeydialog.sip b/sip/tdeui/kkeydialog.sip new file mode 100644 index 0000000..96d4ff9 --- /dev/null +++ b/sip/tdeui/kkeydialog.sip @@ -0,0 +1,266 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KKeyChooser : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + + enum ActionType + { + Application, + ApplicationGlobal, + Standard, + Global + }; + + KKeyChooser (QWidget* /TransferThis/, KKeyChooser::ActionType = Application , bool = 1); + KKeyChooser (KActionCollection*, QWidget* /TransferThis/, bool = 1); + KKeyChooser (KAccel*, QWidget* /TransferThis/, bool = 1); + KKeyChooser (KGlobalAccel*, QWidget* /TransferThis/); + KKeyChooser (KShortcutList*, QWidget* /TransferThis/, KKeyChooser::ActionType = Application , bool = 1); + bool insert (KActionCollection*); + +%If ( KDE_3_1_0 - ) + bool insert (KActionCollection*, const QString&); +%End + + void syncToConfig (const QString&, KConfigBase*, bool); + void commitChanges (); + void save (); + +%If ( KDE_3_2_0 - ) + static bool checkGlobalShortcutsConflict (const KShortcut&, bool, QWidget* /Transfer/); + static bool checkStandardShortcutsConflict (const KShortcut&, bool, QWidget* /Transfer/); +%End + + +signals: + void keyChange (); + +public slots: + void allDefault (); + void setPreferFourModifierKeys (bool); + +protected: + void initGUI (KKeyChooser::ActionType, bool); + bool insert (KAccel*); + bool insert (KGlobalAccel*); + bool insert (KShortcutList*); + +%If ( KDE_3_1_0 - ) + void buildListView (uint, const QString& = QString ::null ); +%End + + void readGlobalKeys (); + void updateButtons (); + void fontChange (const QFont&); + void setShortcut (const KShortcut&); + bool isKeyPresent (const KShortcut&, bool = 1); + +%If ( KDE_3_1_0 - ) +//ig bool isKeyPresentLocally (const KShortcut&, KKeyChooserItem*, const QString&); +%End + + void _warning (const KKeySequence&, QString, QString); + +protected slots: + void slotNoKey (); + void slotDefaultKey (); + void slotCustomKey (); + void slotListItemSelected (QListViewItem*); + void capturedShortcut (const KShortcut&); + +%If ( KDE_3_1_0 - ) + void slotSettingsChanged (int); + +%If ( KDE_3_1_2 - ) + void slotListItemDoubleClicked (QListViewItem*, const QPoint&, int); +%End + +%End + + +protected: + +public: + KKeyChooser (KAccel*, QWidget* /TransferThis/, bool, bool, bool = 0); + KKeyChooser (KGlobalAccel*, QWidget* /TransferThis/, bool, bool, bool = 0); + +public slots: + void listSync (); + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( - KDE_3_1_0 ) + void buildListView (uint); +%End + + +}; // class KKeyChooser + + +class KKeyDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + KKeyDialog (bool = 1, QWidget* /TransferThis/ = 0, const char* = 0); + bool insert (KActionCollection*); + +%If ( KDE_3_1_0 - ) + bool insert (KActionCollection*, const QString&); +%End + + bool configure (bool = 1); + void commitChanges (); + static int configure (KActionCollection*, QWidget* /Transfer/ = 0, bool = 1); + static int configure (KAccel*, QWidget* /Transfer/ = 0, bool = 1); + static int configure (KGlobalAccel*, QWidget* /Transfer/ = 0, bool = 1); + +%If ( KDE_3_1_0 - ) + static int configure (KActionCollection*, bool, QWidget* /Transfer/ = 0, bool = 1); + static int configure (KAccel*, bool, QWidget* /Transfer/ = 0, bool = 1); + static int configure (KGlobalAccel*, bool, QWidget* /Transfer/ = 0, bool = 1); +%End + + static int configureKeys (KAccel*, bool = 1, QWidget* /Transfer/ = 0); + static int configureKeys (KGlobalAccel*, bool = 1, QWidget* /Transfer/ = 0); + static int configureKeys (KActionCollection*, const QString&, bool = 1, QWidget* /Transfer/ = 0); + +%If ( KDE_3_1_0 - ) + +private: + KKeyDialog (KKeyChooser::ActionType, bool = 1, QWidget* /TransferThis/ = 0, const char* = 0); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KKeyDialog + +typedef KKeyChooser KKeyChooser; + + +%MappedType IntDict +//converts a Python dict of QString:int +{ +%TypeHeaderCode +#include +typedef QDict IntDict; +%End + +%ConvertFromTypeCode +// Convert to a Python dictionary + + if (!sipCpp) + return PyDict_New(); + + PyObject *dict; + + // Create the dictionary. + + if ((dict = PyDict_New()) == NULL) + return NULL; + + // Get it. + + QDict qdict = *sipCpp; + QDictIterator it (qdict); + + while (it.current ()) + { + QString current_key = it.currentKey (); + PyObject *a0 = sipConvertFromInstance (¤t_key, sipClass_QCString, sipTransferObj); + PyObject *a1 = PyInt_FromLong ((long) it.current ()); + + if ((a0 == NULL) || (a1 == NULL) || (PyDict_SetItem (dict, a0, a1) < 0)) + { + Py_XDECREF (a0); + Py_XDECREF (a1); + Py_DECREF (dict); + return NULL; + } + } + + return dict; +%End + + +%ConvertToTypeCode + // Convert a Python dictionary to a QDict on the heap. + + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + QDict* qdict = new QDict; + + PyObject *key, *value; + SIP_SSIZE_T pos = 0; + QString *a0; + int a1; + + while (PyDict_Next(sipPy, &pos, &key, &value)) + { + int iserr = 0, a0_state; + + a0 = (QString *)sipForceConvertToType(key, sipType_QString, sipTransferObj, SIP_NOT_NONE, &a0_state, &iserr); + + if ((iserr) || (!PyInt_Check (value))) + { + if (a0) + sipReleaseType(a0, sipType_QString, a0_state); + + *sipIsErr = 1; + delete qdict; + return 0; + } + + a1 = (int) PyInt_AS_LONG (value); + + qdict->insert (*a0, &a1); + + sipReleaseType(a0, sipType_QString, a0_state); + } + + *sipCppPtr = qdict; + + return 1; +%End +}; + + diff --git a/sip/tdeui/klanguagebutton.sip b/sip/tdeui/klanguagebutton.sip new file mode 100644 index 0000000..9e37774 --- /dev/null +++ b/sip/tdeui/klanguagebutton.sip @@ -0,0 +1,60 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) + +class KLanguageButton : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KLanguageButton (QWidget* /TransferThis/ = 0, const char* = 0); + KLanguageButton (const QString&, QWidget* /TransferThis/ = 0, const char* = 0); + void insertItem (const QIconSet&, const QString&, const QString&, const QString& = QString ::null , int = -1); + void insertItem (const QString&, const QString&, const QString& = QString ::null , int = -1); + void insertSeparator (const QString& = QString ::null , int = -1); + void insertSubmenu (const QIconSet&, const QString&, const QString&, const QString& = QString ::null , int = -1); + void insertSubmenu (const QString&, const QString&, const QString& = QString ::null , int = -1); + void insertLanguage (const QString&, const QString&, const QString& = QString ::null , const QString& = QString ::null , int = -1); + int count () const; + void clear (); + void setText (const QString&); + QString current () const; + bool contains (const QString&) const; + void setCurrentItem (const QString&); + QString id (int) const; + +signals: + void activated (const QString&); + void highlighted (const QString&); + +}; // class KLanguageButton + +%End + diff --git a/sip/tdeui/kled.sip b/sip/tdeui/kled.sip new file mode 100644 index 0000000..c281a90 --- /dev/null +++ b/sip/tdeui/kled.sip @@ -0,0 +1,97 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KLed : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + + enum State + { + Off, + On + }; + + + enum Shape + { + Rectangular, + Circular + }; + + + enum Look + { + Flat, + Raised, + Sunken + }; + + KLed (QWidget* /TransferThis/ = 0, const char* = 0); +//ig KLed (const QColor&, QWidget* /TransferThis/ = 0, const char* = 0); + KLed (const QColor&, KLed::State, KLed::Look, KLed::Shape, QWidget* /TransferThis/ = 0, const char* = 0); + State state () const; + Shape shape () const; + const QColor color () const; + Look look () const; + int darkFactor () const; + void setState (KLed::State); + void setShape (KLed::Shape); + void toggleState (); + void setColor (const QColor&); + void setDarkFactor (int); + void setLook (KLed::Look); + virtual QSize sizeHint () const; + virtual QSize minimumSizeHint () const; + +public slots: + void toggle (); + void on (); + void off (); + +protected: + virtual void paintFlat (); + virtual void paintRound (); + virtual void paintSunken (); + virtual void paintRect (); + virtual void paintRectFrame (bool); + void paintEvent (QPaintEvent*); + +%If ( KDE_3_3_0 - ) + int ensureRoundLed (); + bool paintCachedPixmap (); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KLed + diff --git a/sip/tdeui/klineedit.sip b/sip/tdeui/klineedit.sip new file mode 100644 index 0000000..2cb05a0 --- /dev/null +++ b/sip/tdeui/klineedit.sip @@ -0,0 +1,146 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KLineEdit : QLineEdit, KCompletionBase +{ +%TypeHeaderCode +#include +%End + + +public: + KLineEdit (const QString&, QWidget* /TransferThis/, const char* = 0); + KLineEdit (QWidget* /TransferThis/ = 0, const char* = 0); + void setURL (const KURL&); + void cursorAtEnd (); + virtual void setCompletionMode (KGlobalSettings::Completion); + virtual void setContextMenuEnabled (bool); + bool isContextMenuEnabled () const; + void setURLDropsEnabled (bool); + bool isURLDropsEnabled () const; + void setTrapReturnKey (bool); + bool trapReturnKey () const; + virtual bool eventFilter (QObject*, QEvent*); + KCompletionBox* completionBox (bool); + virtual void setCompletionObject (KCompletion*, bool = 1); + +%If ( KDE_3_1_0 - ) + virtual void copy () const; + +%If ( KDE_3_2_0 - ) + void setEnableSqueezedText (bool); + bool isSqueezedTextEnabled () const; + QString originalText () const; + +%If ( KDE_3_4_0 - ) + void setCompletionBox (KCompletionBox*); +%End + +%End + +%End + + +signals: + +%If ( KDE_3_1_0 - ) + void completionBoxActivated (const QString&); +%End + + void returnPressed (const QString&); + void completion (const QString&); + void substringCompletion (const QString&); + void textRotation (KCompletionBase::KeyBindingType); + void completionModeChanged (KGlobalSettings::Completion); + void aboutToShowContextMenu (QPopupMenu*); + +public slots: + virtual void setReadOnly (bool); + void rotateText (KCompletionBase::KeyBindingType); + virtual void setCompletedText (const QString&); + void setCompletedItems (const QStringList&); + +%If ( KDE_3_3_0 - ) + void setCompletedItems (const QStringList&, bool); +%End + + virtual void clear (); + +%If ( KDE_3_1_0 - ) + void setSqueezedText (const QString&); + +%If ( KDE_3_2_0 - ) + virtual void setText (const QString&); +%End + +%End + + +protected slots: + virtual void makeCompletion (const QString&); + void slotAboutToShow (); + void slotCancelled (); + +%If ( KDE_3_2_0 - ) + void userCancelled (const QString&); +%End + + +protected: + +%If ( KDE_3_1_0 - ) + virtual void resizeEvent (QResizeEvent*); +%End + + virtual void keyPressEvent (QKeyEvent*); + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseDoubleClickEvent (QMouseEvent*); + +%If ( KDE_3_3_1 - ) + virtual void contextMenuEvent (QContextMenuEvent*); +%End + + virtual QPopupMenu* createPopupMenu (); + virtual void dropEvent (QDropEvent*); + virtual void setCompletedText (const QString&, bool); + +%If ( KDE_3_2_0 - ) + void setUserSelection (bool); +%End + + virtual void create (WId = 0, bool = 1, bool = 1); + +%If ( KDE_3_4_0 - ) + virtual void focusInEvent (QFocusEvent*); + bool autoSuggest () const; +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KLineEdit + diff --git a/sip/tdeui/klineeditdlg.sip b/sip/tdeui/klineeditdlg.sip new file mode 100644 index 0000000..7b30054 --- /dev/null +++ b/sip/tdeui/klineeditdlg.sip @@ -0,0 +1,53 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KLineEditDlg : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + KLineEditDlg (const QString&, const QString&, QWidget* /TransferThis/); + QString text (); + KLineEdit* lineEdit () const; + static QString getText (const QString&, const QString&, bool*, QWidget* /Transfer/, QValidator* = 0); + static QString getText (const QString&, const QString&, const QString& = QString ::null , bool* = 0, QWidget* /Transfer/ = 0, QValidator* = 0); + +public slots: + void slotClear (); + +protected slots: + void slotTextChanged (const QString&); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KLineEditDlg + diff --git a/sip/tdeui/klistbox.sip b/sip/tdeui/klistbox.sip new file mode 100644 index 0000000..aec4359 --- /dev/null +++ b/sip/tdeui/klistbox.sip @@ -0,0 +1,60 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KListBox : QListBox +{ +%TypeHeaderCode +#include +%End + + +public: + KListBox (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + +signals: + void executed (QListBoxItem*); + void executed (QListBoxItem*, const QPoint&); + void doubleClicked (QListBoxItem*, const QPoint&); + +protected slots: + void slotOnItem (QListBoxItem*); + void slotOnViewport (); + void slotSettingsChanged (int); + void slotAutoSelect (); + +protected: + void emitExecute (QListBoxItem*, const QPoint&); + virtual void keyPressEvent (QKeyEvent*); + virtual void focusOutEvent (QFocusEvent*); + virtual void leaveEvent (QEvent*); + virtual void contentsMousePressEvent (QMouseEvent*); + virtual void contentsMouseDoubleClickEvent (QMouseEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KListBox + diff --git a/sip/tdeui/klistview.sip b/sip/tdeui/klistview.sip new file mode 100644 index 0000000..88231f9 --- /dev/null +++ b/sip/tdeui/klistview.sip @@ -0,0 +1,336 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KListView : QListView +{ +%TypeHeaderCode +#include +%End + + +public: + + enum SelectionModeExt + { + Single, + Multi, + Extended, + NoSelection, + FileManager + }; + + KListView (QWidget* /TransferThis/ = 0, const char* = 0); + virtual void setAcceptDrops (bool); + virtual bool isExecuteArea (const QPoint&); + bool isExecuteArea (int); + QPtrList selectedItems () const; + +%If ( KDE_3_4_0 - ) + QPtrList selectedItems (bool) const; +%End + + void moveItem (QListViewItem*, QListViewItem* /Transfer/, QListViewItem*); + QListViewItem* lastItem () const; + QListViewItem* lastChild () const; + +%If ( KDE_3_1_0 - ) + KLineEdit* renameLineEdit () const; +%End + + bool itemsMovable () const; + bool itemsRenameable () const; + bool dragEnabled () const; + bool autoOpen () const; + bool isRenameable (int) const; + bool dropVisualizer () const; + int tooltipColumn () const; + bool createChildren () const; + bool dropHighlighter () const; + int dropVisualizerWidth () const; + SelectionModeExt selectionModeExt () const; + int itemIndex (const QListViewItem*) const; + QListViewItem* itemAtIndex (int); + void setFullWidth (); + void setFullWidth (bool); + bool fullWidth () const; + +%If ( KDE_3_0_1 - ) + virtual int addColumn (const QString&, int = -1); + virtual int addColumn (const QIconSet&, const QString&, int = -1); + virtual void removeColumn (int); +%End + + void setAlternateBackground (const QColor&); + const QColor& alternateBackground () const; + void saveLayout (KConfig*, const QString&) const; + void restoreLayout (KConfig*, const QString&); + virtual void setSorting (int, bool = 1); + int columnSorted () const; + bool ascendingSort () const; + +%If ( KDE_3_2_0 - ) + virtual void takeItem (QListViewItem*); + +%If ( KDE_3_4_0 - ) + void setShadeSortColumn (bool); + bool shadeSortColumn () const; +%End + +%End + + +signals: + void executed (QListViewItem*); + void executed (QListViewItem*, const QPoint&, int); + void dropped (QDropEvent*, QListViewItem*); + void dropped (KListView*, QDropEvent*, QListViewItem*); + void dropped (KListView*, QDropEvent*, QListViewItem* /Transfer/, QListViewItem*); + void dropped (QDropEvent*, QListViewItem* /Transfer/, QListViewItem*); + void moved (); + void aboutToMove (); + void moved (QListViewItem*, QListViewItem*, QListViewItem*); + void moved (QPtrList&, QPtrList&, QPtrList&); + void itemRenamed (QListViewItem*, const QString&, int); + void itemRenamed (QListViewItem*); + void menuShortCutPressed (KListView*, QListViewItem*); + void contextMenu (KListView*, QListViewItem*, const QPoint&); + +%If ( KDE_3_3_0 - ) + void itemAdded (QListViewItem*); + void itemRemoved (QListViewItem*); +%End + + +public slots: + virtual void rename (QListViewItem*, int); + void setRenameable (int, bool = 1); + virtual void setItemsMovable (bool); + virtual void setItemsRenameable (bool); + virtual void setDragEnabled (bool); + virtual void setAutoOpen (bool); + virtual void setDropVisualizer (bool); + void setDropVisualizerWidth (int); + virtual void setTooltipColumn (int); + virtual void setDropHighlighter (bool); + virtual void setCreateChildren (bool); + void setSelectionModeExt (KListView::SelectionModeExt); + +%If ( KDE_3_1_0 - ) + void setTabOrderedRenaming (bool); + bool tabOrderedRenaming () const; +%End + + +protected: + bool below (const QRect&, const QPoint&); + bool below (QListViewItem*, const QPoint&); + virtual bool event (QEvent*); + void emitExecute (QListViewItem*, const QPoint&, int); + virtual void focusInEvent (QFocusEvent*); + virtual void focusOutEvent (QFocusEvent*); + virtual void leaveEvent (QEvent*); + virtual QString tooltip (QListViewItem*, int) const; + virtual bool showTooltip (QListViewItem*, const QPoint&, int) const; + virtual void contentsDragMoveEvent (QDragMoveEvent*); + virtual void contentsMousePressEvent (QMouseEvent*); + virtual void contentsMouseMoveEvent (QMouseEvent*); + virtual void contentsMouseDoubleClickEvent (QMouseEvent*); + virtual void contentsDragLeaveEvent (QDragLeaveEvent*); + virtual void contentsMouseReleaseEvent (QMouseEvent*); + virtual void contentsDropEvent (QDropEvent*); + virtual void contentsDragEnterEvent (QDragEnterEvent*); +//ig virtual QDragObject* dragObject () const; + virtual bool acceptDrag (QDropEvent*) const; + virtual QRect drawDropVisualizer (QPainter*, QListViewItem* /Transfer/, QListViewItem*); + virtual QRect drawItemHighlighter (QPainter*, QListViewItem*); + virtual void startDrag (); + virtual void keyPressEvent (QKeyEvent*); + virtual void viewportPaintEvent (QPaintEvent*); + void activateAutomaticSelection (); + void deactivateAutomaticSelection (); + bool automaticSelection () const; + virtual void viewportResizeEvent (QResizeEvent*); + +%If ( KDE_3_2_0 - ) + void disableAutoSelection (); + void resetAutoSelection (); + +%If ( KDE_3_3_0 - ) + void doubleClicked (QListViewItem*, const QPoint&, int); +%End + +%End + + +protected slots: + void slotSettingsChanged (int); + void slotMouseButtonClicked (int, QListViewItem*, const QPoint&, int); + void doneEditing (QListViewItem*, int); + void cleanDropVisualizer (); + void cleanItemHighlighter (); + void emitContextMenu (QListViewItem*, const QPoint&, int); + void emitContextMenu (KListView*, QListViewItem*); + void slotOnItem (QListViewItem*); + void slotOnViewport (); + void slotAutoSelect (); + +%If ( KDE_3_2_0 - ) + void slotDragExpand (); +%End + + void slotHeaderChanged (); + +protected: + virtual void movableDropEvent (QListViewItem*, QListViewItem*); + virtual void findDrop (const QPoint&, QListViewItem*&, QListViewItem*&); + void fileManagerKeyPressEvent (QKeyEvent*); + int depthToPixels (int); + +protected: +//igx virtual void virtual_hook (int, void*); + +signals: + +%If ( - KDE_3_3_0 ) + void doubleClicked (QListViewItem*, const QPoint&, int); +%End + + +protected: +//force + virtual QDragObject* dragObject (); +//end + +}; // class KListView + + +class KListViewItem : QListViewItem +{ +%TypeHeaderCode +#include +%End + + +public: + KListViewItem (QListView* /TransferThis/); + KListViewItem (QListViewItem* /TransferThis/); + KListViewItem (QListView* /TransferThis/, QListViewItem*); + KListViewItem (QListViewItem* /TransferThis/, QListViewItem*); + KListViewItem (QListView* /TransferThis/, QString, QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null ); + KListViewItem (QListViewItem* /TransferThis/, QString, QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null ); + KListViewItem (QListView* /TransferThis/, QListViewItem*, QString, QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null ); + KListViewItem (QListViewItem* /TransferThis/, QListViewItem*, QString, QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null ); + +%If ( KDE_3_3_0 - ) + virtual void insertItem (QListViewItem*); + virtual void takeItem (QListViewItem*); +%End + + bool isAlternate (); + const QColor& backgroundColor (); + +%If ( KDE_3_4_0 - ) + QColor backgroundColor (int); +%End + + virtual void paintCell (QPainter*, const QColorGroup&, int, int, int); + +}; // class KListViewItem + + + +%MappedType QPtrList +//converts a Python list of QListViewItem +{ +%TypeHeaderCode +#include +#include +typedef QPtrList ListViewItems; +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList *cpplist = (QPtrList *)sipCpp; + QListViewItem *cpp; + PyObject *inst; + + // the loop depends on the type of iterator the template makes available + for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) + { + if (((inst = sipConvertFromInstance (cpp, sipClass_QListViewItem, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList *cpplist = new QPtrList; + + PyObject *elem; + QListViewItem *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (QListViewItem *)sipForceConvertToType(elem, sipType_QListViewItem, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + diff --git a/sip/tdeui/klistviewlineedit.sip b/sip/tdeui/klistviewlineedit.sip new file mode 100644 index 0000000..52aeebf --- /dev/null +++ b/sip/tdeui/klistviewlineedit.sip @@ -0,0 +1,51 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KListViewLineEdit : KLineEdit +{ +%TypeHeaderCode +#include +%End + + +public: + KListViewLineEdit (KListView*/TransferThis/); + +signals: + void done (QListViewItem*, int); + +public slots: + void terminate (); + void load (QListViewItem*, int); + +protected: + virtual void focusOutEvent (QFocusEvent*); + virtual void keyPressEvent (QKeyEvent*); + virtual void paintEvent (QPaintEvent*); + void terminate (bool); + +}; // class KListViewLineEdit + diff --git a/sip/tdeui/klistviewsearchline.sip b/sip/tdeui/klistviewsearchline.sip new file mode 100644 index 0000000..117583f --- /dev/null +++ b/sip/tdeui/klistviewsearchline.sip @@ -0,0 +1,84 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) + +class KListViewSearchLine : KLineEdit +{ +%TypeHeaderCode +#include +%End + + +public: + KListViewSearchLine (QWidget* /TransferThis/ = 0, KListView* = 0, const char* = 0); + KListViewSearchLine (QWidget* /TransferThis/, const char*); + bool caseSensitive () const; + QValueList searchColumns () const; + bool keepParentsVisible () const; + KListView* listView () const; + +public slots: + virtual void updateSearch (const QString& = QString ::null ); + void setCaseSensitive (bool); + void setKeepParentsVisible (bool); + void setSearchColumns (const QValueList&); + void setListView (KListView*); + +protected: + virtual bool itemMatches (const QListViewItem*, const QString&) const; + virtual QPopupMenu* createPopupMenu (); + +protected slots: + void queueSearch (const QString&); + void activateSearch (); + +}; // class KListViewSearchLine + +%End + + +%If ( KDE_3_4_0 - ) + +class KListViewSearchLineWidget : QHBox +{ +%TypeHeaderCode +#include +%End + + +public: + KListViewSearchLineWidget (KListView* = 0, QWidget* /TransferThis/ = 0, const char* = 0); + virtual KListViewSearchLine* createSearchLine (KListView*); + KListViewSearchLine* searchLine () const; + +protected slots: + virtual void createWidgets (); + +}; // class KListViewSearchLineWidget + +%End + diff --git a/sip/tdeui/kmainwindow.sip b/sip/tdeui/kmainwindow.sip new file mode 100644 index 0000000..abf9895 --- /dev/null +++ b/sip/tdeui/kmainwindow.sip @@ -0,0 +1,273 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KMainWindow : QMainWindow, KXMLGUIBuilder, KXMLGUIClient +{ +%TypeHeaderCode +#include +%End + + +public: + KMainWindow (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = WType_TopLevel |WDestructiveClose ); + +%If ( KDE_3_2_0 - ) + + enum CreationFlags + { + NoDCOPObject + }; + + KMainWindow (int, QWidget* /TransferThis/ = 0, const char* = 0, WFlags = WType_TopLevel |WDestructiveClose ); +%End + + KPopupMenu* helpMenu (const QString& = QString ::null , bool = 1); + KPopupMenu* customHelpMenu (bool = 1); + static bool canBeRestored (int); + static const QString classNameOfToplevel (int); + +%If ( KDE_3_2_0 - ) + virtual void show (); + virtual void hide (); +%End + + bool restore (int, bool = 1); + virtual KXMLGUIFactory* guiFactory (); + void createGUI (const QString& = QString ::null , bool = 1); + void setHelpMenuEnabled (bool = 1); + bool isHelpMenuEnabled (); + +%If ( KDE_3_1_0 - ) + bool hasMenuBar (); +%End + + KMenuBar* menuBar (); + KStatusBar* statusBar (); + QPtrList* memberList; + +%If ( KDE_3_4_0 - ) + static QPtrList* getMemberList (); +%End + + KToolBar* toolBar (const char* = 0); +//ig QPtrListIterator toolBarIterator (); + KAccel* accel (); + void setFrameBorderWidth (int); + void setAutoSaveSettings (const QString& = QString ::fromLatin1 ("MainWindow" ), bool = 1); + void resetAutoSaveSettings (); + +%If ( KDE_3_1_0 - ) + bool autoSaveSettings () const; + QString autoSaveGroup () const; + +%If ( KDE_3_3_0 - ) + void applyMainWindowSettings (KConfig*, const QString&, bool); +%End + +%End + + void applyMainWindowSettings (KConfig*, const QString& = QString ::null ); + void saveMainWindowSettings (KConfig*, const QString& = QString ::null ); + +%If ( KDE_3_1_0 - ) + void setStandardToolBarMenuEnabled (bool); + bool isStandardToolBarMenuEnabled () const; + +%If ( KDE_3_2_0 - ) + void createStandardStatusBarAction (); + +%If ( KDE_3_3_0 - ) + + enum StandardWindowOptions + { + ToolBar, + Keys, + StatusBar, + Save, + Create + }; + + void setupGUI (int = ToolBar |Keys |StatusBar |Save |Create , const QString& = QString ::null ); + +%If ( KDE_3_5_0 - ) + void setupGUI (QSize, int = ToolBar |Keys |StatusBar |Save |Create , const QString& = QString ::null ); +%End + +%End + +%End + + KAction* toolBarMenuAction (); + +%If ( KDE_3_3_1 - ) + void setupToolbarMenuActions (); +%End + + virtual void finalizeGUI (KXMLGUIClient*); +%End + + void finalizeGUI (bool); + bool initialGeometrySet () const; + +%If ( KDE_3_2_0 - ) + void ignoreInitialGeometry (); +%End + + QSize sizeForCentralWidgetSize (QSize); + +%If ( KDE_3_3_2 - ) + virtual void setIcon (const QPixmap&); +%End + + +public slots: + +%If ( KDE_3_3_0 - ) + int configureToolbars (); +%End + + virtual void setCaption (const QString&); + virtual void setCaption (const QString&, bool); + virtual void setPlainCaption (const QString&); + void appHelpActivated (); + virtual void slotStateChanged (const QString&); + +%If ( KDE_3_1_0 - ) + void slotStateChanged (const QString&, KXMLGUIClient::ReverseStateChange); +%End + + void setSettingsDirty (); + +protected: + void paintEvent (QPaintEvent*); + void childEvent (QChildEvent*); + void resizeEvent (QResizeEvent*); + virtual void closeEvent (QCloseEvent*); + virtual bool queryExit (); + virtual bool queryClose (); + virtual void saveProperties (KConfig*); + virtual void readProperties (KConfig*); + virtual void saveGlobalProperties (KConfig*); + virtual void readGlobalProperties (KConfig*); + void savePropertiesInternal (KConfig*, int); + bool readPropertiesInternal (KConfig*, int); + bool settingsDirty () const; + QString settingsGroup () const; + void saveWindowSize (KConfig*) const; + void restoreWindowSize (KConfig*); + void parseGeometry (bool); + +protected slots: + +%If ( KDE_3_3_0 - ) + void saveNewToolbarConfig (); +%End + + virtual void showAboutApplication (); + +%If ( KDE_3_2_0 - ) + void saveAutoSaveSettings (); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KMainWindow + + + +%MappedType QPtrList +//converts a Python list of KMainWindow +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList *cpplist = (QPtrList *)sipCpp; + KMainWindow *cpp; + PyObject *inst; + + // the loop depends on the type of iterator the tmeplate makes available + for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) + { + if (((inst = sipConvertFromInstance (cpp, sipClass_KMainWindow, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList *cpplist = new QPtrList; + + PyObject *elem; + KMainWindow *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KMainWindow *)sipForceConvertToType(elem, sipType_KMainWindow, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + diff --git a/sip/tdeui/kmainwindowiface.sip b/sip/tdeui/kmainwindowiface.sip new file mode 100644 index 0000000..0f739fc --- /dev/null +++ b/sip/tdeui/kmainwindowiface.sip @@ -0,0 +1,71 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KMainWindowInterface : DCOPObject +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_1_4 - ) + virtual bool process (const QCString&, const QByteArray&, QCString&, QByteArray&); + QCStringList functions (); + QCStringList interfaces (); +%End + + +public: + KMainWindowInterface (KMainWindow*); + QCStringList functionsDynamic (); + bool processDynamic (const QCString&, const QByteArray&, QCString&, QByteArray&); + +public: + QCStringList actions (); + bool activateAction (QCString); + bool disableAction (QCString); + bool enableAction (QCString); + bool actionIsEnabled (QCString); + QCString actionToolTip (QCString); + DCOPRef action (const QCString&); + QMap actionMap (); + int getWinID (); + void grabWindowToClipBoard (); + void hide (); + void maximize (); + void minimize (); + void resize (int, int); + void move (int, int); + void setGeometry (int, int, int, int); + void raise () /PyName=raise_/; + void lower (); + void restore (); + void show (); + +}; // class KMainWindowInterface + diff --git a/sip/tdeui/kmenubar.sip b/sip/tdeui/kmenubar.sip new file mode 100644 index 0000000..b5b420b --- /dev/null +++ b/sip/tdeui/kmenubar.sip @@ -0,0 +1,91 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KMenuBar : QMenuBar +{ +%TypeHeaderCode +#include +%End + + +public: + KMenuBar (QWidget* /TransferThis/ = 0, const char* = 0); + void setTopLevelMenu (bool = 1); + bool isTopLevelMenu () const; + +%If ( KDE_3_1_0 - ) + virtual void setGeometry (const QRect&); +%End + + virtual void setGeometry (int, int, int, int); + +%If ( KDE_3_2_0 - ) + virtual void resize (int, int); + void resize (const QSize&); +%End + + virtual void show (); + +%If ( KDE_3_2_0 - ) + virtual void setFrameStyle (int); + virtual void setLineWidth (int); + virtual void setMargin (int); + +%If ( KDE_3_4_0 - ) + virtual QSize sizeHint () const; +%End + +%End + + +protected slots: + void slotReadConfig (); + +protected: + +%If ( KDE_3_1_0 - ) + virtual void showEvent (QShowEvent*); + virtual void resizeEvent (QResizeEvent*); + virtual bool eventFilter (QObject*, QEvent*); +//ig virtual bool x11Event (XEvent*); + +%If ( KDE_3_2_3 - ) + virtual void closeEvent (QCloseEvent*); + +%If ( KDE_3_3_0 - ) + virtual void drawContents (QPainter*); +%End + +%End + +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KMenuBar + diff --git a/sip/tdeui/kmessagebox.sip b/sip/tdeui/kmessagebox.sip new file mode 100644 index 0000000..557a419 --- /dev/null +++ b/sip/tdeui/kmessagebox.sip @@ -0,0 +1,260 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KMessageBox +{ +%TypeHeaderCode +#include +%End + + +public: + + enum ButtonCode + { + Ok, + Cancel, + Yes, + No, + Continue + }; + + + enum DialogType + { + QuestionYesNo, + WarningYesNo, + WarningContinueCancel, + WarningYesNoCancel, + Information, + Sorry, + Error, + QuestionYesNoCancel + }; + + +%If ( KDE_3_4_0 - ) + + enum OptionsType + { + Notify, + AllowLink, + Dangerous, + PlainCaption, + NoExec + }; + +%End + + static int questionYesNo (QWidget* /Transfer/, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); + +%If ( KDE_3_2_0 - ) + static int questionYesNoWId (WId, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); +%End + + static int questionYesNoCancel (QWidget* /Transfer/, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); + +%If ( KDE_3_2_0 - ) + static int questionYesNoCancelWId (WId, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); +%End + + static int questionYesNoList (QWidget* /Transfer/, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); + +%If ( KDE_3_2_0 - ) + static int questionYesNoListWId (WId, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); +%End + + static int warningYesNo (QWidget* /Transfer/, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); + +%If ( KDE_3_2_0 - ) + static int warningYesNoWId (WId, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify |Dangerous ); + static int warningYesNoList (QWidget* /Transfer/, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify |Dangerous ); + static int warningYesNoListWId (WId, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify |Dangerous ); +%End + + static int warningContinueCancel (QWidget* /Transfer/, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::cont (), const QString& = QString ::null , int = Notify ); + +%If ( KDE_3_2_0 - ) + static int warningContinueCancelWId (WId, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::cont (), const QString& = QString ::null , int = Notify ); +%End + + +%If ( KDE_3_1_0 - ) + static int warningContinueCancelList (QWidget* /Transfer/, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::cont (), const QString& = QString ::null , int = Notify ); + +%If ( KDE_3_2_0 - ) + static int warningContinueCancelListWId (WId, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::cont (), const QString& = QString ::null , int = Notify ); +%End + +%End + + static int warningYesNoCancel (QWidget* /Transfer/, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); + +%If ( KDE_3_2_0 - ) + static int warningYesNoCancelWId (WId, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); + static int warningYesNoCancelList (QWidget* /Transfer/, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); + static int warningYesNoCancelListWId (WId, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); +%End + + static void error (QWidget* /Transfer/, const QString&, const QString& = QString ::null , bool = 1); + +%If ( KDE_3_2_0 - ) + static void errorWId (WId, const QString&, const QString& = QString ::null , int = Notify ); + +%If ( KDE_3_4_0 - ) + static void errorList (QWidget* /Transfer/, const QString&, const QStringList&, const QString& = QString ::null , int = Notify ); + static void errorListWId (WId, const QString&, const QStringList&, const QString& = QString ::null , int = Notify ); +%End + +%End + + static void detailedError (QWidget* /Transfer/, const QString&, const QString&, const QString& = QString ::null , bool = 1); + +%If ( KDE_3_2_0 - ) + static void detailedErrorWId (WId, const QString&, const QString&, const QString& = QString ::null , int = Notify ); +%End + + static void queuedDetailedError (QWidget* /Transfer/, const QString&, const QString&, const QString& = QString ::null ); + +%If ( KDE_3_2_0 - ) + static void queuedDetailedErrorWId (WId, const QString&, const QString&, const QString& = QString ::null ); +%End + + static void sorry (QWidget* /Transfer/, const QString&, const QString& = QString ::null , bool = 1); + +%If ( KDE_3_2_0 - ) + static void sorryWId (WId, const QString&, const QString& = QString ::null , int = Notify ); +%End + + static void detailedSorry (QWidget* /Transfer/, const QString&, const QString&, const QString& = QString ::null , bool = 1); + +%If ( KDE_3_2_0 - ) + static void detailedSorryWId (WId, const QString&, const QString&, const QString& = QString ::null , int = Notify ); +%End + + static void information (QWidget* /Transfer/, const QString&, const QString& = QString ::null , const QString& = QString ::null , bool = 1); + +%If ( KDE_3_2_0 - ) + static void informationWId (WId, const QString&, const QString& = QString ::null , const QString& = QString ::null , int = Notify ); +%End + + +%If ( KDE_3_1_0 - ) + static void informationList (QWidget* /Transfer/, const QString&, const QStringList&, const QString& = QString ::null , const QString& = QString ::null , int = Notify ); + +%If ( KDE_3_2_0 - ) + static void informationListWId (WId, const QString&, const QStringList&, const QString& = QString ::null , const QString& = QString ::null , int = Notify ); +%End + +%End + + static void enableAllMessages (); + +%If ( KDE_3_2_0 - ) + static void enableMessage (const QString&); +%End + + static void about (QWidget* /Transfer/, const QString&, const QString& = QString ::null , bool = 1); + +%If ( KDE_3_2_0 - ) + static int messageBox (QWidget* /Transfer/, KMessageBox::DialogType, const QString&, const QString&, const KGuiItem&, const KGuiItem&, const QString&, int = Notify ); +%End + + static int messageBox (QWidget* /Transfer/, KMessageBox::DialogType, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), int = Notify ); + +%If ( KDE_3_2_0 - ) + static int messageBoxWId (WId, KMessageBox::DialogType, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); +%End + + +%If ( KDE_3_1_0 - ) + static void queuedMessageBox (QWidget* /Transfer/, KMessageBox::DialogType, const QString&, const QString&, int); + +%If ( KDE_3_2_0 - ) + static void queuedMessageBoxWId (WId, KMessageBox::DialogType, const QString&, const QString&, int); +%End + +%End + + static void queuedMessageBox (QWidget* /Transfer/, KMessageBox::DialogType, const QString&, const QString& = QString ::null ); + +%If ( KDE_3_2_0 - ) + static void queuedMessageBoxWId (WId, KMessageBox::DialogType, const QString&, const QString& = QString ::null ); + static bool shouldBeShownYesNo (const QString&, KMessageBox::ButtonCode&); + static bool shouldBeShownContinue (const QString&); + static void saveDontShowAgainYesNo (const QString&, KMessageBox::ButtonCode); + static void saveDontShowAgainContinue (const QString&); + static void setDontShowAskAgainConfig (KConfig*); + +%If ( KDE_3_3_0 - ) + static int createKMessageBox (KDialogBase*, QMessageBox::Icon, const QString&, const QStringList&, const QString&, bool*, int, const QString& = QString ::null ); + static int createKMessageBox (KDialogBase*, QPixmap, const QString&, const QStringList&, const QString&, bool*, int, const QString& = QString ::null , QMessageBox::Icon = QMessageBox ::Information ); +%End + +%End + + +public: + +%If ( KDE_3_2_0 - KDE_3_4_0 ) + + enum OptionsType + { + Notify, + AllowLink, + Dangerous + }; + +%End + + +public: + +%If ( - KDE_3_2_0 ) + + enum OptionsType + { + Notify, + AllowLink + }; + +%End + + +public: + +%If ( - KDE_3_0_3 ) +//ig static int warningContinueCancelList (QWidget* /Transfer/, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = QString ::null , const QString& = QString ::null , int = Notify ); +%End + + +%If ( KDE_3_0_3 - KDE_3_1_0 ) + static int warningContinueCancelList (QWidget* /Transfer/, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = KGuiItem (), const QString& = QString ::null , int = Notify ); +%End + + +}; // class KMessageBox + diff --git a/sip/tdeui/knuminput.sip b/sip/tdeui/knuminput.sip new file mode 100644 index 0000000..56e9501 --- /dev/null +++ b/sip/tdeui/knuminput.sip @@ -0,0 +1,261 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KNumInput : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KNumInput (QWidget* /TransferThis/ = 0, const char* = 0); + KNumInput (KNumInput*, QWidget* /TransferThis/ = 0, const char* = 0); + virtual void setLabel (const QString&, int = AlignLeft |AlignTop ); + QString label () const; + +%If ( KDE_3_1_0 - ) + bool showSlider () const; +%End + + void setSteps (int, int); + QSizePolicy sizePolicy () const; + virtual QSize sizeHint () const; + +protected: + void layout (bool); + virtual void doLayout () = 0; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KNumInput + + +class KIntNumInput : KNumInput +{ +%TypeHeaderCode +#include +%End + + +public: + KIntNumInput (QWidget* /TransferThis/ = 0, const char* = 0); + KIntNumInput (int, QWidget* /TransferThis/ = 0, int = 10, const char* = 0); + KIntNumInput (KNumInput*, int, QWidget* /TransferThis/ = 0, int = 10, const char* = 0); + int value () const; + +%If ( KDE_3_1_0 - ) + double relativeValue () const; + int referencePoint () const; +%End + + QString suffix () const; + QString prefix () const; + QString specialValueText () const; + void setRange (int, int, int = 1, bool = 1); + void setMinValue (int); + int minValue () const; + void setMaxValue (int); + int maxValue () const; + void setSpecialValueText (const QString&); + virtual void setLabel (const QString&, int = AlignLeft |AlignTop ); + virtual QSize minimumSizeHint () const; + +public slots: + void setValue (int); + +%If ( KDE_3_1_0 - ) + void setRelativeValue (double); + void setReferencePoint (int); +%End + + void setSuffix (const QString&); + void setPrefix (const QString&); + void setEditFocus (bool = 1); + +signals: + void valueChanged (int); + +%If ( KDE_3_1_0 - ) + void relativeValueChanged (double); +%End + + +protected: + virtual void doLayout (); + void resizeEvent (QResizeEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KIntNumInput + + +class KDoubleNumInput : KNumInput +{ +%TypeHeaderCode +#include +%End + + +public: + KDoubleNumInput (QWidget* /TransferThis/ = 0, const char* = 0); + KDoubleNumInput (double, QWidget* /TransferThis/ = 0, const char* = 0); + +%If ( KDE_3_1_0 - ) + KDoubleNumInput (double, double, double, double = 0.01, int = 2, QWidget* /TransferThis/ = 0, const char* = 0); +%End + + KDoubleNumInput (KNumInput*, double, QWidget* /TransferThis/ = 0, const char* = 0); + +%If ( KDE_3_1_0 - ) + KDoubleNumInput (KNumInput*, double, double, double, double = 0.02, int = 2, QWidget* /TransferThis/ = 0, const char* = 0); +%End + + double value () const; + QString suffix () const; + QString prefix () const; + int precision () const; + QString specialValueText () const; + void setRange (double, double, double = 1, bool = 1); + void setMinValue (double); + double minValue () const; + void setMaxValue (double); + double maxValue () const; + void setPrecision (int); + +%If ( KDE_3_1_0 - ) + double referencePoint () const; + double relativeValue () const; +%End + + void setSpecialValueText (const QString&); + virtual void setLabel (const QString&, int = AlignLeft |AlignTop ); + virtual QSize minimumSizeHint () const; + virtual bool eventFilter (QObject*, QEvent*); + +public slots: + void setValue (double); + +%If ( KDE_3_1_0 - ) + void setRelativeValue (double); + void setReferencePoint (double); +%End + + void setSuffix (const QString&); + void setPrefix (const QString&); + +signals: + void valueChanged (double); + +%If ( KDE_3_1_0 - ) + void relativeValueChanged (double); +%End + + +protected: + virtual void doLayout (); + void resizeEvent (QResizeEvent*); + virtual void resetEditBox (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDoubleNumInput + + +class KIntSpinBox : QSpinBox +{ +%TypeHeaderCode +#include +%End + + +public: + KIntSpinBox (QWidget* /TransferThis/ = 0, const char* = 0); + KIntSpinBox (int, int, int, int, int = 10, QWidget* /TransferThis/ = 0, const char* = 0); + void setBase (int); + int base () const; + void setEditFocus (bool); + +protected: + virtual QString mapValueToText (int); +//ig virtual int mapTextToValue (bool*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KIntSpinBox + + +%If ( KDE_3_1_0 - ) + +class KDoubleSpinBox : QSpinBox +{ +%TypeHeaderCode +#include +%End + + +public: + KDoubleSpinBox (QWidget* /TransferThis/ = 0, const char* = 0); + KDoubleSpinBox (double, double, double, double, int = 2, QWidget* /TransferThis/ = 0, const char* = 0); + bool acceptLocalizedNumbers () const; + virtual void setAcceptLocalizedNumbers (bool); + void setRange (double, double, double = 0.01, int = 2); + int precision () const; + void setPrecision (int); + virtual void setPrecision (int, bool); + double value () const; + double minValue () const; + void setMinValue (double); + double maxValue () const; + void setMaxValue (double); + double lineStep () const; + void setLineStep (double); + void setValidator (const QValidator*); + +signals: + void valueChanged (double); + +public slots: + virtual void setValue (double); + +protected: + virtual QString mapValueToText (int); +//ig virtual int mapTextToValue (bool*); + +protected slots: + void slotValueChanged (int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDoubleSpinBox + +%End + diff --git a/sip/tdeui/knumvalidator.sip b/sip/tdeui/knumvalidator.sip new file mode 100644 index 0000000..d79d6e9 --- /dev/null +++ b/sip/tdeui/knumvalidator.sip @@ -0,0 +1,89 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KIntValidator : QValidator +{ +%TypeHeaderCode +#include +%End + + +public: + KIntValidator (QWidget* /TransferThis/, int = 10, const char* = 0); + KIntValidator (int, int, QWidget* /TransferThis/, int = 10, const char* = 0); + virtual State validate (QString&, int&) const; + virtual void fixup (QString&) const; + virtual void setRange (int, int); + virtual void setBase (int); + virtual int bottom () const; + virtual int top () const; + virtual int base () const; + +}; // class KIntValidator + + +class KFloatValidator : QValidator +{ +%TypeHeaderCode +#include +%End + + +public: + KFloatValidator (QWidget* /TransferThis/, const char* = 0); + KFloatValidator (double, double, QWidget* /TransferThis/, const char* = 0); + KFloatValidator (double, double, bool, QWidget* /TransferThis/, const char* = 0); + virtual State validate (QString&, int&) const; + virtual void fixup (QString&) const; + virtual void setRange (double, double); + virtual double bottom () const; + virtual double top () const; + void setAcceptLocalizedNumbers (bool); + bool acceptLocalizedNumbers () const; + +}; // class KFloatValidator + + +%If ( KDE_3_1_0 - ) + +class KDoubleValidator : QDoubleValidator +{ +%TypeHeaderCode +#include +%End + + +public: + KDoubleValidator (QObject* /TransferThis/, const char* = 0); + KDoubleValidator (double, double, int, QObject* /TransferThis/, const char* = 0); + virtual QValidator::State validate (QString&, int&) const; + bool acceptLocalizedNumbers () const; + void setAcceptLocalizedNumbers (bool); + +}; // class KDoubleValidator + +%End + diff --git a/sip/tdeui/kpanelapplet.sip b/sip/tdeui/kpanelapplet.sip new file mode 100644 index 0000000..0f97cd1 --- /dev/null +++ b/sip/tdeui/kpanelapplet.sip @@ -0,0 +1,140 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPanelApplet : QFrame +{ +%TypeHeaderCode +#include +%End + + +public: + + enum Type + { + Normal, + Stretch + }; + + + enum Action + { + About, + Help, + Preferences, + ReportBug + }; + + + enum Position + { + pLeft, + pRight, + pTop, + pBottom + }; + + + enum Alignment + { + LeftTop, + Center, + RightBottom + }; + + + enum Direction + { + Up, + Down, + Left, + Right + }; + + KPanelApplet (const QString&, KPanelApplet::Type = Normal , int = 0, QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + virtual int widthForHeight (int) const; + virtual int heightForWidth (int) const; + KConfig* config () const; + +%If ( KDE_3_2_0 - ) + KSharedConfig::Ptr sharedConfig () const; +%End + + Type type () const; + int actions () const; + virtual void action (KPanelApplet::Action); + +%If ( KDE_3_2_0 - ) + const QPopupMenu* customMenu () const; +%End + + void setPosition (KPanelApplet::Position); + void setAlignment (KPanelApplet::Alignment); + +signals: + void updateLayout (); + void requestFocus (); + +%If ( KDE_3_4_0 - ) + void requestFocus (bool); +%End + + +protected: + virtual void about (); + virtual void help (); + virtual void preferences (); + virtual void reportBug (); + Orientation orientation () const; + KPanelApplet::Position position () const; + KPanelApplet::Alignment alignment () const; + virtual void positionChange (KPanelApplet::Position); + virtual void alignmentChange (KPanelApplet::Alignment); + +%If ( KDE_3_2_0 - ) + void setCustomMenu (const QPopupMenu*); + +%If ( KDE_3_4_0 - ) + void watchForFocus (QWidget*, bool = 1); + void needsFocus (bool); +%End + +%End + + virtual void orientationChange (Orientation); + Direction popupDirection (); + virtual void popupDirectionChange (KPanelApplet::Direction); + +%If ( KDE_3_4_0 - ) + bool eventFilter (QObject*, QEvent*); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KPanelApplet + diff --git a/sip/tdeui/kpanelappmenu.sip b/sip/tdeui/kpanelappmenu.sip new file mode 100644 index 0000000..97fe0a2 --- /dev/null +++ b/sip/tdeui/kpanelappmenu.sip @@ -0,0 +1,51 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPanelAppMenu : QObject, DCOPObject +{ +%TypeHeaderCode +#include +%End + + +public: + KPanelAppMenu (const QString&, QObject* /TransferThis/ = 0, const char* = 0); + KPanelAppMenu (const QPixmap&, const QString&, QObject* /TransferThis/, const char*); + KPanelAppMenu (QObject* /TransferThis/, const char*); + int insertItem (const QString&, int = -1); + int insertItem (const QPixmap&, const QString&, int = -1); + KPanelAppMenu* insertMenu (const QPixmap&, const QString&, int = -1); + void clear (); + bool process (const QCString&, const QByteArray&, QCString&, QByteArray&); + +signals: + void activated (int); + +protected: + void init (const QPixmap&, const QString&); + +}; // class KPanelAppMenu + diff --git a/sip/tdeui/kpanelextension.sip b/sip/tdeui/kpanelextension.sip new file mode 100644 index 0000000..d1b8d8f --- /dev/null +++ b/sip/tdeui/kpanelextension.sip @@ -0,0 +1,159 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPanelExtension : QFrame +{ +%TypeHeaderCode +#include +%End + + +public: + + enum Type + { + Normal, + Stretch + }; + + + enum Action + { + About, + Help, + Preferences, + ReportBug + }; + + +%If ( KDE_3_4_0 - ) + + enum Position + { + Left, + Right, + Top, + Bottom, + Floating + }; + +%End + + + enum Alignment + { + LeftTop, + Center, + RightBottom + }; + + +%If ( KDE_3_1_0 - ) + + enum Size + { + SizeTiny, + SizeSmall, + SizeNormal, + SizeLarge, + SizeCustom + }; + +%End + + KPanelExtension (const QString&, KPanelExtension::Type = Normal , int = 0, QWidget* /TransferThis/ = 0, const char* = 0); + virtual QSize sizeHint (KPanelExtension::Position, QSize) const; + KConfig* config () const; + Type type () const; + int actions () const; + virtual void action (KPanelExtension::Action); + virtual Position preferedPosition () const; + void setPosition (KPanelExtension::Position); + void setAlignment (KPanelExtension::Alignment); + +%If ( KDE_3_1_0 - ) + void setSize (KPanelExtension::Size, int); + KPanelExtension::Size sizeSetting () const; + int customSize () const; + +%If ( KDE_3_4_0 - ) + QPopupMenu* customMenu () const; + bool reserveStrut () const; +%End + +%End + + +signals: + void updateLayout (); + +%If ( KDE_3_4_0 - ) + void maintainFocus (bool); +%End + + +protected: + virtual void about (); + virtual void help (); + virtual void preferences (); + virtual void reportBug (); + Position position () const; + KPanelExtension::Alignment alignment () const; + Orientation orientation (); + +%If ( KDE_3_1_0 - ) + int sizeInPixels () const; +%End + + virtual void positionChange (KPanelExtension::Position); + virtual void alignmentChange (KPanelExtension::Alignment); + +%If ( KDE_3_4_0 - ) + void setCustomMenu (QPopupMenu*); + void setReserveStrut (bool); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_4_0 ) + + enum Position + { + Left, + Right, + Top, + Bottom + }; + +%End + + +}; // class KPanelExtension + diff --git a/sip/tdeui/kpanelmenu.sip b/sip/tdeui/kpanelmenu.sip new file mode 100644 index 0000000..b8da99c --- /dev/null +++ b/sip/tdeui/kpanelmenu.sip @@ -0,0 +1,65 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPanelMenu : KPopupMenu +{ +%TypeHeaderCode +#include +%End + + +public: + KPanelMenu (QWidget* /TransferThis/ = 0, const char* = 0); + KPanelMenu (const QString&, QWidget* /TransferThis/ = 0, const char* = 0); + const QString& path () const; + void setPath (const QString&); + bool initialized () const; + void setInitialized (bool); + void disableAutoClear (); + +public slots: + void reinitialize (); + +%If ( KDE_3_1_0 - ) + void deinitialize (); +%End + + +protected slots: + virtual void slotAboutToShow (); + virtual void slotExec (int) = 0; + virtual void initialize () = 0; + void slotClear (); + +protected: + virtual void hideEvent (QHideEvent*); + void init (const QString& = QString ::null ); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KPanelMenu + diff --git a/sip/tdeui/kpassdlg.sip b/sip/tdeui/kpassdlg.sip new file mode 100644 index 0000000..45c0780 --- /dev/null +++ b/sip/tdeui/kpassdlg.sip @@ -0,0 +1,138 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPasswordEdit : QLineEdit +{ +%TypeHeaderCode +#include +%End + + +public: + + enum EchoModes + { + OneStar, + ThreeStars, + NoEcho + }; + + KPasswordEdit (QWidget* /TransferThis/ = 0, const char* = 0); + KPasswordEdit (EchoMode, QWidget* /TransferThis/, const char*); + +%If ( KDE_3_2_0 - ) + KPasswordEdit (KPasswordEdit::EchoModes, QWidget* /TransferThis/, const char*); +%End + + KPasswordEdit (QWidget* /TransferThis/, const char*, int); + const char* password (); + void erase (); +//ig const int PassLen; + +%If ( KDE_3_4_0 - ) + void setMaxPasswordLength (int); + int maxPasswordLength () const; +%End + + +public slots: + +%If ( KDE_3_1_2 - ) + virtual void insert (const QString&); +%End + + +protected: + virtual void keyPressEvent (QKeyEvent*); + virtual void focusInEvent (QFocusEvent*); + virtual bool event (QEvent*); + +}; // class KPasswordEdit + + +class KPasswordDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + + enum Types + { + Password, + NewPassword + }; + + KPasswordDialog (KPasswordDialog::Types, bool, int, QWidget* /TransferThis/ = 0, const char* = 0); + KPasswordDialog (int, QString, bool = 0, int = 0); + +%If ( KDE_3_3_0 - ) + KPasswordDialog (KPasswordDialog::Types, bool, int, const QString&, QWidget* /TransferThis/ = 0, const char* = 0); +%End + + void setPrompt (QString); + QString prompt () const; + void addLine (QString, QString); + +%If ( KDE_3_4_0 - ) + void setAllowEmptyPasswords (bool); + bool allowEmptyPasswords () const; + void setMinimumPasswordLength (int); + int minimumPasswordLength () const; + void setMaximumPasswordLength (int); + int maximumPasswordLength () const; + void setReasonablePasswordLength (int); + int reasonablePasswordLength () const; + void setPasswordStrengthWarningLevel (int); + int passwordStrengthWarningLevel () const; +%End + + const char* password () const; + +%If ( KDE_3_3_0 - ) + void clearPassword (); +%End + + bool keep () const; + static int getPassword (QCString&, QString, int* = 0); + static int getNewPassword (QCString&, QString); + static void disableCoreDumps (); + +protected slots: + void slotOk (); + void slotCancel (); + void slotKeep (bool); + +protected: + virtual bool checkPassword (const char*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KPasswordDialog + diff --git a/sip/tdeui/kpassivepopup.sip b/sip/tdeui/kpassivepopup.sip new file mode 100644 index 0000000..1cb7972 --- /dev/null +++ b/sip/tdeui/kpassivepopup.sip @@ -0,0 +1,112 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) + +class KPassivePopup : QFrame +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_5_0 - ) + + enum PopupStyle + { + Boxed, + Balloon, + CustomStyle + }; + +%End + + KPassivePopup (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + KPassivePopup (WId, const char* = 0, WFlags = 0); + +%If ( KDE_3_5_0 - ) + KPassivePopup (int, QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + KPassivePopup (int, WId /TransferThis/, const char* = 0, WFlags = 0); +%End + + void setView (QWidget*); + void setView (const QString&, const QString& = QString ::null ); + virtual void setView (const QString&, const QString&, const QPixmap&); + QVBox* standardView (const QString&, const QString&, const QPixmap&, QWidget* /Transfer/ = 0); + QWidget* view () const; + int timeout () const; + virtual void setAutoDelete (bool); + bool autoDelete () const; + +%If ( KDE_3_5_0 - ) + void setAnchor (const QPoint&); +%End + + static KPassivePopup* message (const QString&, QWidget* /Transfer/, const char* = 0); + static KPassivePopup* message (const QString&, const QString&, QWidget* /Transfer/, const char* = 0); + static KPassivePopup* message (const QString&, const QString&, const QPixmap&, QWidget* /Transfer/, const char* = 0, int = -1); + static KPassivePopup* message (const QString&, const QString&, const QPixmap&, WId, const char* = 0, int = -1); + +%If ( KDE_3_5_0 - ) + static KPassivePopup* message (int, const QString&, QWidget* /Transfer/, const char* = 0); + static KPassivePopup* message (int, const QString&, const QString&, QWidget* /Transfer/, const char* = 0); + static KPassivePopup* message (int, const QString&, const QString&, const QPixmap&, QWidget* /Transfer/, const char* = 0, int = -1); + static KPassivePopup* message (int, const QString&, const QString&, const QPixmap&, WId, const char* = 0, int = -1); +%End + + +public slots: + void setTimeout (int); + virtual void show (); + +%If ( KDE_3_5_0 - ) + void show (const QPoint&); +%End + + +signals: + void clicked (); + void clicked (QPoint); + +protected: + virtual void positionSelf (); + virtual void hideEvent (QHideEvent*); + void moveNear (QRect); + virtual void mouseReleaseEvent (QMouseEvent*); + QRect defaultArea () const; + +%If ( KDE_3_5_0 - ) + void updateMask (); + virtual void paintEvent (QPaintEvent*); +%End + + +}; // class KPassivePopup + +%End + diff --git a/sip/tdeui/kpixmapio.sip b/sip/tdeui/kpixmapio.sip new file mode 100644 index 0000000..be5a5fa --- /dev/null +++ b/sip/tdeui/kpixmapio.sip @@ -0,0 +1,53 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPixmapIO +{ +%TypeHeaderCode +#include +%End + + +public: + KPixmapIO (); + QPixmap convertToPixmap (const QImage&); + QImage convertToImage (const QPixmap&); + void putImage (QPixmap*, int, int, const QImage*); + void putImage (QPixmap*, const QPoint&, const QImage*); + QImage getImage (const QPixmap*, int, int, int, int); + QImage getImage (const QPixmap*, const QRect&); + + enum ShmPolicies + { + ShmDontKeep, + ShmKeepAndGrow + }; + + void setShmPolicy (int); + void preAllocShm (int); + +}; // class KPixmapIO + diff --git a/sip/tdeui/kpixmapregionselectordialog.sip b/sip/tdeui/kpixmapregionselectordialog.sip new file mode 100644 index 0000000..8c68828 --- /dev/null +++ b/sip/tdeui/kpixmapregionselectordialog.sip @@ -0,0 +1,49 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_4_0 - ) + +class KPixmapRegionSelectorDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + KPixmapRegionSelectorDialog (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0); + KPixmapRegionSelectorWidget* pixmapRegionSelectorWidget () const; + static QRect getSelectedRegion (const QPixmap&, QWidget* /Transfer/ = 0); + static QRect getSelectedRegion (const QPixmap&, int, int, QWidget* /Transfer/ = 0); + static QImage getSelectedImage (const QPixmap&, QWidget* /Transfer/ = 0); + static QImage getSelectedImage (const QPixmap&, int, int, QWidget* /Transfer/ = 0); + +protected: + +}; // class KPixmapRegionSelectorDialog + +%End + diff --git a/sip/tdeui/kpixmapregionselectorwidget.sip b/sip/tdeui/kpixmapregionselectorwidget.sip new file mode 100644 index 0000000..fb756aa --- /dev/null +++ b/sip/tdeui/kpixmapregionselectorwidget.sip @@ -0,0 +1,60 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_4_0 - ) + +class KPixmapRegionSelectorWidget : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KPixmapRegionSelectorWidget (QWidget* /TransferThis/ = 0, const char* = 0); + void setPixmap (const QPixmap&); + QPixmap pixmap () const; + void setSelectedRegion (const QRect&); + QRect selectedRegion () const; + QRect unzoomedSelectedRegion () const; + void resetSelection (); + QImage selectedImage () const; + void setSelectionAspectRatio (int, int); + void setFreeSelectionAspectRatio (); + void setMaximumWidgetSize (int, int); + void rotate (KImageEffect::RotateDirection); + +public slots: + void rotateClockwise (); + void rotateCounterclockwise (); + +protected: + virtual KPopupMenu* createPopupMenu (); + +}; // class KPixmapRegionSelectorWidget + +%End + diff --git a/sip/tdeui/kpopupmenu.sip b/sip/tdeui/kpopupmenu.sip new file mode 100644 index 0000000..b3fcb50 --- /dev/null +++ b/sip/tdeui/kpopupmenu.sip @@ -0,0 +1,149 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPopupTitle : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KPopupTitle (QWidget* /TransferThis/ = 0, const char* = 0); + KPopupTitle (KPixmapEffect::GradientType, const QColor&, const QColor&, QWidget* /TransferThis/ = 0, const char* = 0); + KPopupTitle (const KPixmap&, const QColor&, const QColor&, QWidget* /TransferThis/ = 0, const char* = 0); + void setTitle (const QString&, const QPixmap* = 0); + QString title (); + QPixmap icon (); + QSize sizeHint () const; + +public slots: + +%If ( KDE_3_1_0 - ) + void setText (const QString&); + void setIcon (const QPixmap&); +%End + + +protected: + +%If ( KDE_3_2_0 - ) + void calcSize (); +%End + + void paintEvent (QPaintEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KPopupTitle + + +class KPopupMenu : QPopupMenu +{ +%TypeHeaderCode +#include +%End + + +public: + KPopupMenu (QWidget* /TransferThis/ = 0, const char* = 0); + int insertTitle (const QString&, int = -1, int = -1); + int insertTitle (const QPixmap&, const QString&, int = -1, int = -1); + void changeTitle (int, const QString&); + void changeTitle (int, const QPixmap&, const QString&); + QString title (int = -1); + QPixmap titlePixmap (int); + +%If ( KDE_3_1_0 - ) + void setKeyboardShortcutsEnabled (bool); + void setKeyboardShortcutsExecute (bool); +%End + + KPopupMenu (const QString&, QWidget* /TransferThis/ = 0, const char* = 0); + void setTitle (const QString&); + +%If ( KDE_3_2_0 - ) + QPopupMenu* contextMenu (); + void hideContextMenu (); + static KPopupMenu* contextMenuFocus (); + static int contextMenuFocusItem (); + +%If ( KDE_3_4_0 - ) + virtual void activateItemAt (int); + Qt::ButtonState state () const; +%End + +%End + + +signals: + +%If ( KDE_3_2_0 - ) + void aboutToShowContextMenu (KPopupMenu*, int, QPopupMenu*); +%End + + +protected: + +%If ( KDE_3_1_0 - ) + virtual void closeEvent (QCloseEvent*); + virtual void keyPressEvent (QKeyEvent*); + +%If ( KDE_3_4_0 - ) + virtual void mouseReleaseEvent (QMouseEvent*); +%End + + +%If ( KDE_3_2_0 - ) + virtual void mousePressEvent (QMouseEvent*); + virtual bool focusNextPrevChild (bool); + virtual void contextMenuEvent (QContextMenuEvent*); + virtual void hideEvent (QHideEvent*); +%End + +%End + +//igx virtual void virtual_hook (int, void*); + +protected slots: + +%If ( KDE_3_1_0 - ) + QString underlineText (const QString&, uint); + void resetKeyboardVars (bool = 0); + +%If ( KDE_3_2_0 - ) + void itemHighlighted (int); + void showCtxMenu (QPoint); + void ctxMenuHiding (); + void ctxMenuHideShowingMenu (); +%End + +%End + + +}; // class KPopupMenu + diff --git a/sip/tdeui/kprogress.sip b/sip/tdeui/kprogress.sip new file mode 100644 index 0000000..7195db5 --- /dev/null +++ b/sip/tdeui/kprogress.sip @@ -0,0 +1,102 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KProgress : QProgressBar +{ +%TypeHeaderCode +#include +%End + + +public: + KProgress (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + KProgress (int, QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + void setTextEnabled (bool); + int value () const; + bool textEnabled () const; + QString format () const; + void setRange (int, int); + int maxValue (); + +public slots: + void setFormat (const QString&); + void setTotalSteps (int); + virtual void setProgress (int); + void setValue (int); + virtual void advance (int); + +signals: + void percentageChanged (int); + +protected: + virtual bool setIndicator (QString&, int, int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KProgress + + +class KProgressDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + KProgressDialog (QWidget* /TransferThis/ = 0, const char* = 0, const QString& = QString ::null , const QString& = QString ::null , bool = 0); + KProgress* progressBar (); + void setLabel (const QString&); + QString labelText (); + void setAllowCancel (bool); + bool allowCancel (); + void showCancelButton (bool); + void setAutoClose (bool); + bool autoClose (); + void setAutoReset (bool); + bool autoReset (); + bool wasCancelled (); + void setButtonText (const QString&); + QString buttonText (); + void setMinimumDuration (int); + int minimumDuration (); + +%If ( KDE_3_5_3 - ) + virtual void show (); +%End + + +protected slots: + void slotAutoShow (); + void slotAutoActions (int); + void slotCancel (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KProgressDialog + diff --git a/sip/tdeui/kpushbutton.sip b/sip/tdeui/kpushbutton.sip new file mode 100644 index 0000000..25dc131 --- /dev/null +++ b/sip/tdeui/kpushbutton.sip @@ -0,0 +1,67 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPushButton : QPushButton +{ +%TypeHeaderCode +#include +%End + + +public: + KPushButton (QWidget* /TransferThis/, const char* = 0); + KPushButton (const QString&, QWidget* /TransferThis/, const char* = 0); + KPushButton (const QIconSet&, const QString&, QWidget* /TransferThis/, const char* = 0); + KPushButton (const KGuiItem&, QWidget* /TransferThis/, const char* = 0); + void setDragEnabled (bool); + bool isDragEnabled () const; + void setGuiItem (const KGuiItem&); + +%If ( KDE_3_4_0 - ) + void setGuiItem (KStdGuiItem::StdItem); + KStdGuiItem::StdItem guiItem () const; + void setGuiItm (int); + int guiItm () const; +%End + + +%If ( KDE_3_2_0 - ) + void setIconSet (const QIconSet&); + void setText (const QString&); +%End + + +protected: + virtual QDragObject* dragObject (); + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseMoveEvent (QMouseEvent*); + virtual void startDrag (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KPushButton + diff --git a/sip/tdeui/krestrictedline.sip b/sip/tdeui/krestrictedline.sip new file mode 100644 index 0000000..4739fe2 --- /dev/null +++ b/sip/tdeui/krestrictedline.sip @@ -0,0 +1,49 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KRestrictedLine : KLineEdit +{ +%TypeHeaderCode +#include +%End + + +public: + KRestrictedLine (QWidget* /TransferThis/ = 0, const char* = 0, const QString& = QString ::null ); + void setValidChars (const QString&); + QString validChars () const; + +signals: + void invalidChar (int); + +protected: + void keyPressEvent (QKeyEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KRestrictedLine + diff --git a/sip/tdeui/krootpixmap.sip b/sip/tdeui/krootpixmap.sip new file mode 100644 index 0000000..a4ce0d3 --- /dev/null +++ b/sip/tdeui/krootpixmap.sip @@ -0,0 +1,71 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KRootPixmap : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KRootPixmap (QWidget*, const char* = 0); + KRootPixmap (QWidget*, QObject* /TransferThis/, const char* = 0); + bool isAvailable () const; + bool isActive () const; + int currentDesktop () const; + bool customPainting () const; + bool checkAvailable (bool); + +%If ( KDE_3_2_0 - ) + const QColor& color () const; + double opacity () const; +%End + + +public slots: + virtual void start (); + virtual void stop (); + void setFadeEffect (double, const QColor&); + void repaint (bool); + void repaint (); + void setCustomPainting (bool); + void enableExports (); + +%If ( KDE_3_2_0 - ) +//ig static QString pixmapName (int); +%End + + +signals: + void backgroundUpdated (const QPixmap&); + +protected: + virtual bool eventFilter (QObject*, QEvent*); +//ig virtual void updateBackground (KSharedPixmap*); + +}; // class KRootPixmap + diff --git a/sip/tdeui/kruler.sip b/sip/tdeui/kruler.sip new file mode 100644 index 0000000..40458a2 --- /dev/null +++ b/sip/tdeui/kruler.sip @@ -0,0 +1,108 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KRuler : QFrame +{ +%TypeHeaderCode +#include +%End + + +public: + + enum MetricStyle + { + Custom, + Pixel, + Inch, + Millimetres, + Centimetres, + Metres + }; + + KRuler (QWidget* /TransferThis/ = 0, const char* = 0); + KRuler (Orientation, QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + KRuler (Orientation, int, QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + void setMinValue (int); + int minValue () const; + void setMaxValue (int); + int maxValue () const; + void setRange (int, int); + void setValue (int); + int value () const; + void setTinyMarkDistance (int); + int tinyMarkDistance () const; + void setLittleMarkDistance (int); + int littleMarkDistance () const; + void setMediumMarkDistance (int); + int mediumMarkDistance () const; + void setBigMarkDistance (int); + int bigMarkDistance () const; + void setShowTinyMarks (bool); + bool showTinyMarks () const; + void setShowLittleMarks (bool); + bool showLittleMarks () const; + void setShowMediumMarks (bool); + bool showMediumMarks () const; + void setShowBigMarks (bool); + bool showBigMarks () const; + void setShowEndMarks (bool); + bool showEndMarks () const; + void setShowPointer (bool); + bool showPointer () const; + void setValuePerLittleMark (int); + void setValuePerMediumMark (int); + void setValuePerBigMark (int); + void setShowEndLabel (bool); + bool showEndLabel () const; + void setEndLabel (const QString&); + QString endLabel () const; + void setRulerMetricStyle (KRuler::MetricStyle); + void setPixelPerMark (double); + double pixelPerMark () const; + void setLength (int); + int length () const; + void setLengthFixed (bool); + bool lengthFixed () const; + void slideUp (int = 1); + void slideDown (int = 1); + void setOffset (int); + int offset () const; + int endOffset () const; + +public slots: + void slotNewValue (int); + void slotNewOffset (int); + void slotEndOffset (int); + +protected: + virtual void drawContents (QPainter*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KRuler + diff --git a/sip/tdeui/kscrollview.sip b/sip/tdeui/kscrollview.sip new file mode 100644 index 0000000..8a10fa9 --- /dev/null +++ b/sip/tdeui/kscrollview.sip @@ -0,0 +1,53 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_5_0 - ) + +class KScrollView : QScrollView +{ +%TypeHeaderCode +#include +%End + + +public: + KScrollView (QWidget* /TransferThis/ = 0, const char* = 0, Qt::WFlags = 0); + +public slots: + void scrollBy (int, int); + +protected: + virtual void wheelEvent (QWheelEvent*); + void startScrolling (); + void stopScrolling (); + +protected slots: + void scrollTick (); + +}; // class KScrollView + +%End + diff --git a/sip/tdeui/kselect.sip b/sip/tdeui/kselect.sip new file mode 100644 index 0000000..06650d9 --- /dev/null +++ b/sip/tdeui/kselect.sip @@ -0,0 +1,142 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KXYSelector : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KXYSelector (QWidget* /TransferThis/ = 0, const char* = 0); + void setValues (int, int); + +%If ( KDE_3_3_0 - ) + void setXValue (int); + void setYValue (int); +%End + + void setRange (int, int, int, int); + int xValue (); + int yValue (); + QRect contentsRect () const; + +signals: + void valueChanged (int, int); + +protected: + virtual void drawContents (QPainter*); + virtual void drawCursor (QPainter*, int, int); + virtual void paintEvent (QPaintEvent*); + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseMoveEvent (QMouseEvent*); + +%If ( KDE_3_2_0 - ) + virtual void wheelEvent (QWheelEvent*); + void valuesFromPosition (int, int, int&, int&) const; +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KXYSelector + + +class KSelector : QWidget, QRangeControl +{ +%TypeHeaderCode +#include +%End + + +public: + KSelector (QWidget* /TransferThis/ = 0, const char* = 0); + KSelector (Orientation, QWidget* /TransferThis/ = 0, const char* = 0); + Orientation orientation () const; + QRect contentsRect () const; + void setIndent (bool); + bool indent () const; + void setValue (int); + int value () const; + void setMinValue (int); + int minValue () const; + void setMaxValue (int); + int maxValue () const; + +signals: + void valueChanged (int); + +protected: + virtual void drawContents (QPainter*); + virtual void drawArrow (QPainter*, bool, const QPoint&); + virtual void valueChange (); + virtual void paintEvent (QPaintEvent*); + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseMoveEvent (QMouseEvent*); + +%If ( KDE_3_2_0 - ) + virtual void wheelEvent (QWheelEvent*); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KSelector + + +class KGradientSelector : KSelector +{ +%TypeHeaderCode +#include +%End + + +public: + KGradientSelector (QWidget* /TransferThis/ = 0, const char* = 0); + KGradientSelector (Orientation, QWidget* /TransferThis/ = 0, const char* = 0); + void setColors (const QColor&, const QColor&); + void setText (const QString&, const QString&); + void setFirstColor (const QColor&); + void setSecondColor (const QColor&); + void setFirstText (const QString&); + void setSecondText (const QString&); + const QColor firstColor () const; + const QColor secondColor () const; + const QString firstText () const; + const QString secondText () const; + +protected: + virtual void drawContents (QPainter*); + virtual QSize minimumSize () const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KGradientSelector + diff --git a/sip/tdeui/kseparator.sip b/sip/tdeui/kseparator.sip new file mode 100644 index 0000000..1c2425d --- /dev/null +++ b/sip/tdeui/kseparator.sip @@ -0,0 +1,48 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KSeparator : QFrame +{ +%TypeHeaderCode +#include +%End + + +public: + KSeparator (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + KSeparator (int, QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + int orientation () const; + void setOrientation (int); + virtual QSize sizeHint () const; + +protected: + virtual void drawFrame (QPainter*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KSeparator + diff --git a/sip/tdeui/ksharedpixmap.sip b/sip/tdeui/ksharedpixmap.sip new file mode 100644 index 0000000..003873f --- /dev/null +++ b/sip/tdeui/ksharedpixmap.sip @@ -0,0 +1,62 @@ +// +// Copyright 2004 Jim Bublitz +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE_3_3_0 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KSharedPixmap : QWidget, KPixmap +{ +%TypeHeaderCode +#include +#include +#include +#include +#include +%End + + +public: + KSharedPixmap (); + +%If ( KDE_3_1_2 - ) + bool loadFromShared (const QString&, const QRect& = QRect ()); + bool isAvailable (const QString&) const; +%End + + +signals: + void done (bool); + +protected: +//ig bool x11Event (XEvent*); + +public: + +%If ( - KDE_3_1_2 ) + bool loadFromShared (QString, QRect = QRect ()); + bool isAvailable (QString); +%End + + +}; // class KSharedPixmap + diff --git a/sip/tdeui/kshortcutdialog.sip b/sip/tdeui/kshortcutdialog.sip new file mode 100644 index 0000000..d671f91 --- /dev/null +++ b/sip/tdeui/kshortcutdialog.sip @@ -0,0 +1,53 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_4_0 - ) + +class KShortcutDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + KShortcutDialog (const KShortcut&, bool, QWidget* /TransferThis/ = 0, const char* = 0); + void setShortcut (const KShortcut&); + const KShortcut& shortcut () const; + +protected slots: + void slotDetails (); + void slotSelectPrimary (); + void slotSelectAlternate (); + void slotClearShortcut (); + void slotClearPrimary (); + void slotClearAlternate (); + void slotMultiKeyMode (bool); + +}; // class KShortcutDialog + +%End + diff --git a/sip/tdeui/ksplashscreen.sip b/sip/tdeui/ksplashscreen.sip new file mode 100644 index 0000000..351fc73 --- /dev/null +++ b/sip/tdeui/ksplashscreen.sip @@ -0,0 +1,42 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KSplashScreen : QSplashScreen +{ +%TypeHeaderCode +#include +%End + + +public: + KSplashScreen (const QPixmap&, WFlags = 0); + +}; // class KSplashScreen + +%End + diff --git a/sip/tdeui/ksqueezedtextlabel.sip b/sip/tdeui/ksqueezedtextlabel.sip new file mode 100644 index 0000000..c983d19 --- /dev/null +++ b/sip/tdeui/ksqueezedtextlabel.sip @@ -0,0 +1,60 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KSqueezedTextLabel : QLabel +{ +%TypeHeaderCode +#include +%End + + +public: + KSqueezedTextLabel (QWidget* /TransferThis/, const char* = 0); + KSqueezedTextLabel (const QString&, QWidget* /TransferThis/, const char* = 0); + virtual QSize minimumSizeHint () const; + +%If ( KDE_3_3_0 - ) + virtual QSize sizeHint () const; + +%If ( KDE_3_4_0 - ) + virtual void setAlignment (int); +%End + +%End + + +public slots: + void setText (const QString&); + +protected: + void resizeEvent (QResizeEvent*); + void squeezeTextToLabel (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KSqueezedTextLabel + diff --git a/sip/tdeui/kstatusbar.sip b/sip/tdeui/kstatusbar.sip new file mode 100644 index 0000000..9d12f75 --- /dev/null +++ b/sip/tdeui/kstatusbar.sip @@ -0,0 +1,82 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KStatusBarLabel : QLabel +{ +%TypeHeaderCode +#include +%End + + +public: + KStatusBarLabel (const QString&, int, KStatusBar* /TransferThis/ = 0, const char* = 0); + +protected: + void mousePressEvent (QMouseEvent*); + void mouseReleaseEvent (QMouseEvent*); + +signals: + void itemPressed (int); + void itemReleased (int); + +}; // class KStatusBarLabel + + +class KStatusBar : QStatusBar +{ +%TypeHeaderCode +#include +%End + + +public: + + enum BarStatus + { + Toggle, + Show, + Hide + }; + + KStatusBar (QWidget* /TransferThis/ = 0, const char* = 0); + void insertItem (const QString&, int, int = 0, bool = 0); + void insertFixedItem (const QString&, int, bool = 0); + void removeItem (int); + +%If ( KDE_3_2_0 - ) + bool hasItem (int) const; +%End + + void changeItem (const QString&, int); + void setItemAlignment (int, int); + void setItemFixed (int, int = -1); + +signals: + void pressed (int); + void released (int); + +}; // class KStatusBar + diff --git a/sip/tdeui/kstdaction.sip b/sip/tdeui/kstdaction.sip new file mode 100644 index 0000000..8ba3428 --- /dev/null +++ b/sip/tdeui/kstdaction.sip @@ -0,0 +1,327 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KStdAction +{ + +%If ( KDE_3_2_0 - ) + +enum StdAction +{ + ActionNone, + New, + Open, + OpenRecent, + Save, + SaveAs, + Revert, + Close, + Print, + PrintPreview, + Mail, + Quit, + Undo, + Redo, + Cut, + Copy, + Paste, + SelectAll, + Deselect, + Find, + FindNext, + FindPrev, + Replace, + ActualSize, + FitToPage, + FitToWidth, + FitToHeight, + ZoomIn, + ZoomOut, + Zoom, + Redisplay, + Up, + Back, + Forward, + Home, + Prior, + Next, + Goto, + GotoPage, + GotoLine, + FirstPage, + LastPage, + AddBookmark, + EditBookmarks, + Spelling, + ShowMenubar, + ShowToolbar, + ShowStatusbar, + SaveOptions, + KeyBindings, + Preferences, + ConfigureToolbars, + Help, + HelpContents, + WhatsThis, + ReportBug, + AboutApp, + AboutKDE, + TipofDay, + ConfigureNotifications, + FullScreen, + Clear, + PasteText +}; + +%End + +KAction* create (KStdAction::StdAction, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/); +const char* name (KStdAction::StdAction); + +%If ( KDE_3_1_0 - ) +QStringList stdNames (); +%End + +KAction* openNew (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* open (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KRecentFilesAction* openRecent (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* save (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* saveAs (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* revert (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* close (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* print (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0) /PyName=print_/; +KAction* printPreview (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* mail (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* quit (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* undo (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* redo (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* cut (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* copy (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* paste (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); + +%If ( KDE_3_2_0 - ) +KAction* pasteText (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection*, const char* = 0); +KAction* clear (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection*, const char* = 0); +%End + +KAction* selectAll (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* deselect (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* find (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* findNext (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* findPrev (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* replace (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* actualSize (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* fitToPage (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* fitToWidth (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* fitToHeight (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* zoomIn (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* zoomOut (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* zoom (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* redisplay (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* up (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* back (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* forward (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* home (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* prior (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* next (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* goTo (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* gotoPage (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* gotoLine (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* firstPage (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* lastPage (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* addBookmark (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* editBookmarks (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* spelling (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KToggleAction* showMenubar (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KToggleAction* showToolbar (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); + +%If ( KDE_3_1_0 - ) +KToggleToolBarAction* showToolbar (const char*, KActionCollection* /Transfer/, const char* = 0); +%End + +KToggleAction* showStatusbar (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); + +%If ( KDE_3_2_0 - ) +KToggleFullScreenAction* fullScreen (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection*, QWidget*, const char* = 0); +%End + +KAction* saveOptions (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* keyBindings (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* preferences (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* configureToolbars (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); + +%If ( KDE_3_1_0 - ) +KAction* configureNotifications (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +%End + +KAction* help (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* helpContents (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* whatsThis (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); + +%If ( KDE_3_1_0 - ) +KAction* tipOfDay (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +%End + +KAction* reportBug (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* aboutApp (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* aboutKDE (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); + +%If ( KDE_3_1_0 - KDE_3_2_0 ) + +enum StdAction +{ + ActionNone, + New, + Open, + OpenRecent, + Save, + SaveAs, + Revert, + Close, + Print, + PrintPreview, + Mail, + Quit, + Undo, + Redo, + Cut, + Copy, + Paste, + SelectAll, + Deselect, + Find, + FindNext, + FindPrev, + Replace, + ActualSize, + FitToPage, + FitToWidth, + FitToHeight, + ZoomIn, + ZoomOut, + Zoom, + Redisplay, + Up, + Back, + Forward, + Home, + Prior, + Next, + Goto, + GotoPage, + GotoLine, + FirstPage, + LastPage, + AddBookmark, + EditBookmarks, + Spelling, + ShowMenubar, + ShowToolbar, + ShowStatusbar, + SaveOptions, + KeyBindings, + Preferences, + ConfigureToolbars, + Help, + HelpContents, + WhatsThis, + ReportBug, + AboutApp, + AboutKDE, + TipofDay, + ConfigureNotifications +}; + +%End + + +%If ( - KDE_3_1_0 ) + +enum StdAction +{ + ActionNone, + New, + Open, + OpenRecent, + Save, + SaveAs, + Revert, + Close, + Print, + PrintPreview, + Mail, + Quit, + Undo, + Redo, + Cut, + Copy, + Paste, + SelectAll, + Deselect, + Find, + FindNext, + FindPrev, + Replace, + ActualSize, + FitToPage, + FitToWidth, + FitToHeight, + ZoomIn, + ZoomOut, + Zoom, + Redisplay, + Up, + Back, + Forward, + Home, + Prior, + Next, + Goto, + GotoPage, + GotoLine, + FirstPage, + LastPage, + AddBookmark, + EditBookmarks, + Spelling, + ShowMenubar, + ShowToolbar, + ShowStatusbar, + SaveOptions, + KeyBindings, + Preferences, + ConfigureToolbars, + Help, + HelpContents, + WhatsThis, + ReportBug, + AboutApp, + AboutKDE +}; + +%End + +}; // namespace KStdAction + diff --git a/sip/tdeui/kstdguiitem.sip b/sip/tdeui/kstdguiitem.sip new file mode 100644 index 0000000..7a26b12 --- /dev/null +++ b/sip/tdeui/kstdguiitem.sip @@ -0,0 +1,350 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KStdGuiItem +{ +%TypeHeaderCode +#include +%End + + +public: + + enum BidiMode + { + UseRTL, + IgnoreRTL + }; + + +%If ( KDE_3_5_0 - ) + + enum StdItem + { + Ok, + Cancel, + Yes, + No, + Discard, + Save, + DontSave, + SaveAs, + Apply, + Clear, + Help, + Defaults, + Close, + Back, + Forward, + Print, + Continue, + Open, + Quit, + AdminMode, + Reset, + Delete, + Insert, + Configure, + Find, + Stop, + Add, + Remove, + Test, + Properties, + Overwrite + }; + +%End + + static KGuiItem guiItem (KStdGuiItem::StdItem); + static QString stdItem (KStdGuiItem::StdItem); + static KGuiItem ok (); + static KGuiItem cancel (); + static KGuiItem yes (); + static KGuiItem no (); + +%If ( KDE_3_3_0 - ) + static KGuiItem insert (); +%End + + static KGuiItem discard (); + static KGuiItem save (); + static KGuiItem help (); + static KGuiItem dontSave (); + static KGuiItem saveAs (); + static KGuiItem apply (); + static KGuiItem clear (); + static KGuiItem defaults (); + static KGuiItem close (); + static KGuiItem print () /PyName=print_/; + +%If ( KDE_3_4_0 - ) + static KGuiItem properties (); +%End + + +%If ( KDE_3_3_0 - ) + static KGuiItem reset (); + +%If ( KDE_3_5_0 - ) + static KGuiItem overwrite (); +%End + + static KGuiItem adminMode (); +%End + + static KGuiItem cont (); + +%If ( KDE_3_3_0 - ) + static KGuiItem del (); +%End + + +%If ( KDE_3_2_0 - ) + static KGuiItem open (); +%End + + static KGuiItem back (KStdGuiItem::BidiMode = IgnoreRTL ); + static KGuiItem forward (KStdGuiItem::BidiMode = IgnoreRTL ); + +%If ( KDE_3_4_0 - ) + static KGuiItem configure (); +%End + + static QPair backAndForward (); + +%If ( KDE_3_2_0 - ) + static KGuiItem quit (); + +%If ( KDE_3_4_0 - ) + static KGuiItem find (); + static KGuiItem stop (); + static KGuiItem add (); + static KGuiItem remove (); + static KGuiItem test (); +%End + +%End + + +public: + +%If ( KDE_3_4_0 - KDE_3_5_0 ) + + enum StdItem + { + Ok, + Cancel, + Yes, + No, + Discard, + Save, + DontSave, + SaveAs, + Apply, + Clear, + Help, + Defaults, + Close, + Back, + Forward, + Print, + Continue, + Open, + Quit, + AdminMode, + Reset, + Delete, + Insert, + Configure, + Find, + Stop, + Add, + Remove, + Test, + Properties + }; + +%End + + +public: + +%If ( KDE_3_3_0 - KDE_3_4_0 ) + + enum StdItem + { + Ok, + Cancel, + Yes, + No, + Discard, + Save, + DontSave, + SaveAs, + Apply, + Clear, + Help, + Defaults, + Close, + Back, + Forward, + Print, + Continue, + Open, + Quit, + AdminMode, + Reset, + Delete, + Insert + }; + +%End + + +public: + +%If ( KDE_3_2_0 - KDE_3_3_0 ) + + enum StdItem + { + Ok, + Cancel, + Yes, + No, + Discard, + Save, + DontSave, + SaveAs, + Apply, + Clear, + Help, + Defaults, + Close, + Back, + Forward, + Print, + Continue, + Open, + Quit + }; + +%End + + +public: + +%If ( - KDE_3_2_0 ) + + enum StdItem + { + Ok, + Cancel, + Yes, + No, + Discard, + Save, + DontSave, + SaveAs, + Apply, + Clear, + Help, + Defaults, + Close, + Back, + Forward, + Print, + Continue + }; + +%End + + +}; // class KStdGuiItem + + + +%MappedType QPair +//converts a Python tuple (KGuiItem,KGuiItem) +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyTuple_New(0); + + // Create the tuple + PyObject *pytuple; + if ((pytuple = PyTuple_New(0)) == NULL) + return NULL; + + QPair *cpp = (QPair *)sipCpp; + PyObject *inst = NULL; + + // Get it. + KGuiItem g1 = (*cpp).first; + KGuiItem g2 = (*cpp).second; + PyObject *pyg1 = sipConvertFromNewType(new KGuiItem(g1), sipType_KGuiItem, NULL); + PyObject *pyg2 = sipConvertFromNewType(new KGuiItem(g2), sipType_KGuiItem, NULL); + if ((pyg1 == NULL) || (pyg2 == NULL) || ((inst = Py_BuildValue ("NN", pyg1, pyg2)) == NULL)) + { + Py_XDECREF (inst); + Py_XDECREF (pyg1); + Py_XDECREF (pyg2); + return NULL; + } + + return inst; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyTuple_Check(sipPy); + + KGuiItem *g1, *g2; + int iserr = 0; + + PyObject *pyg1 = PyTuple_GET_ITEM (sipPy, 0); + PyObject *pyg2 = PyTuple_GET_ITEM (sipPy, 1); + g1 = (KGuiItem *)sipForceConvertToType(pyg1, sipType_KGuiItem, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + g2 = (KGuiItem *)sipForceConvertToType(pyg2, sipType_KGuiItem, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + return 0; + } + + *sipCppPtr = new QPair (*g1, *g2); + + return 1; +%End +}; + + diff --git a/sip/tdeui/kstringvalidator.sip b/sip/tdeui/kstringvalidator.sip new file mode 100644 index 0000000..b917566 --- /dev/null +++ b/sip/tdeui/kstringvalidator.sip @@ -0,0 +1,63 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KStringListValidator : QValidator +{ +%TypeHeaderCode +#include +%End + + +public: + KStringListValidator (const QStringList& = QStringList (), bool = 1, bool = 0, QObject* /TransferThis/ = 0, const char* = 0); + virtual State validate (QString&, int&) const; + virtual void fixup (QString&) const; + void setRejecting (bool); + bool isRejecting () const; + void setFixupEnabled (bool); + bool isFixupEnabled () const; + void setStringList (const QStringList&); + QStringList stringList () const; + +protected: + +}; // class KStringListValidator + + +class KMimeTypeValidator : QValidator +{ +%TypeHeaderCode +#include +%End + + +public: + KMimeTypeValidator (QObject* /TransferThis/, const char* = 0); + virtual State validate (QString&, int&) const; + virtual void fixup (QString&) const; + +}; // class KMimeTypeValidator + diff --git a/sip/tdeui/ksystemtray.sip b/sip/tdeui/ksystemtray.sip new file mode 100644 index 0000000..444f922 --- /dev/null +++ b/sip/tdeui/ksystemtray.sip @@ -0,0 +1,84 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KSystemTray : QLabel +{ +%TypeHeaderCode +#include +%End + + +public: + KSystemTray (QWidget* /TransferThis/ = 0, const char* = 0); + +%If ( KDE_3_2_0 - ) + KPopupMenu* contextMenu () const; + KActionCollection* actionCollection (); + +%If ( KDE_3_4_0 - ) + virtual void setPixmap (const QPixmap&); + virtual void setCaption (const QString&); +%End + + static QPixmap loadIcon (const QString&, KInstance* = KGlobal ::instance ()); +%End + + +signals: + +%If ( KDE_3_1_0 - ) + void quitSelected (); +%End + + +public slots: + +%If ( KDE_3_3_0 - ) + void toggleActive (); + void setActive (); + void setInactive (); +%End + + +protected: + void mousePressEvent (QMouseEvent*); + void mouseReleaseEvent (QMouseEvent*); + virtual void contextMenuAboutToShow (KPopupMenu*); + void showEvent (QShowEvent*); + void enterEvent (QEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( - KDE_3_2_0 ) + KPopupMenu* contextMenu (); +%End + + +}; // class KSystemTray + diff --git a/sip/tdeui/ktabbar.sip b/sip/tdeui/ktabbar.sip new file mode 100644 index 0000000..27ed2b7 --- /dev/null +++ b/sip/tdeui/ktabbar.sip @@ -0,0 +1,98 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KTabBar : QTabBar +{ +%TypeHeaderCode +#include +%End + + +public: + KTabBar (QWidget* /TransferThis/ = 0, const char* = 0); + virtual void setTabEnabled (int, bool); + const QColor& tabColor (int) const; + void setTabColor (int, const QColor&); + +%If ( KDE_3_3_0 - ) + virtual int insertTab (QTab*, int = -1); +%End + + virtual void removeTab (QTab*); + void setTabReorderingEnabled (bool); + bool isTabReorderingEnabled () const; + void setHoverCloseButton (bool); + bool hoverCloseButton () const; + void setHoverCloseButtonDelayed (bool); + bool hoverCloseButtonDelayed () const; + +%If ( KDE_3_3_0 - ) + void setTabCloseActivatePrevious (bool); + bool tabCloseActivatePrevious () const; +%End + + +signals: + void contextMenu (int, const QPoint&); + void mouseDoubleClick (int); + void mouseMiddleClick (int); + void initiateDrag (int); +//ig void testCanDecode (const QDragMoveEvent*, bool&); + void receivedDropEvent (int, QDropEvent*); + void moveTab (int, int); + void closeRequest (int); + +%If ( KDE_3_3_0 - ) + void wheelDelta (int); +%End + + +protected: + virtual void mouseDoubleClickEvent (QMouseEvent*); + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseMoveEvent (QMouseEvent*); + virtual void mouseReleaseEvent (QMouseEvent*); + +%If ( KDE_3_3_0 - ) + virtual void wheelEvent (QWheelEvent*); +%End + + virtual void dragMoveEvent (QDragMoveEvent*); + virtual void dropEvent (QDropEvent*); + virtual void paintLabel (QPainter*, const QRect&, QTab*, bool) const; + +protected slots: + virtual void closeButtonClicked (); + virtual void onLayoutChange (); + virtual void enableCloseButton (); + virtual void activateDragSwitchTab (); + +}; // class KTabBar + +%End + diff --git a/sip/tdeui/ktabctl.sip b/sip/tdeui/ktabctl.sip new file mode 100644 index 0000000..26bdfa9 --- /dev/null +++ b/sip/tdeui/ktabctl.sip @@ -0,0 +1,64 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KTabCtl : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KTabCtl (QWidget* /TransferThis/ = 0, const char* = 0); + void show (); + void setFont (const QFont&); + void setTabFont (const QFont&); + void addTab (QWidget*, const QString&); + bool isTabEnabled (const QString&); + void setTabEnabled (const QString&, bool); + void setBorder (bool); + void setShape (QTabBar::Shape); + virtual QSize sizeHint () const; + +protected: + void paintEvent (QPaintEvent*); + void resizeEvent (QResizeEvent*); + +signals: + void tabSelected (int); + +protected slots: + void showTab (int); + +protected: + void setSizes (); + QRect getChildRect () const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KTabCtl + diff --git a/sip/tdeui/ktabwidget.sip b/sip/tdeui/ktabwidget.sip new file mode 100644 index 0000000..e828e7b --- /dev/null +++ b/sip/tdeui/ktabwidget.sip @@ -0,0 +1,144 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KTabWidget : QTabWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KTabWidget (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + void setTabColor (QWidget*, const QColor&); + QColor tabColor (QWidget*) const; + bool isTabReorderingEnabled () const; + bool hoverCloseButton () const; + bool hoverCloseButtonDelayed () const; + +%If ( KDE_3_3_0 - ) + bool tabCloseActivatePrevious () const; + +%If ( KDE_3_4_0 - ) + bool automaticResizeTabs () const; + void setTabBarHidden (bool); + bool isTabBarHidden () const; + virtual void insertTab (QWidget*, const QString&, int = -1); + virtual void insertTab (QWidget*, const QIconSet&, const QString&, int = -1); + virtual void insertTab (QWidget*, QTab*, int = -1); + void changeTab (QWidget*, const QString&); + void changeTab (QWidget*, const QIconSet&, const QString&); + QString label (int) const; + QString tabLabel (QWidget*) const; + void setTabLabel (QWidget*, const QString&); +%End + +%End + + +public slots: + virtual void moveTab (int, int); + +%If ( KDE_3_4_0 - ) + virtual void removePage (QWidget*); +%End + + void setTabReorderingEnabled (bool); + void setHoverCloseButton (bool); + void setHoverCloseButtonDelayed (bool); + +%If ( KDE_3_3_0 - ) + void setTabCloseActivatePrevious (bool); + +%If ( KDE_3_4_0 - ) + void setAutomaticResizeTabs (bool); +%End + +%End + + +signals: +//ig void testCanDecode (const QDragMoveEvent*, bool&); + void receivedDropEvent (QDropEvent*); + void receivedDropEvent (QWidget*, QDropEvent*); + void initiateDrag (QWidget*); +//ig void contextMenu (const QPoint&); + void contextMenu (QWidget*, const QPoint&); + void movedTab (int, int); + +%If ( KDE_3_3_0 - ) + void mouseDoubleClick (); +%End + + void mouseDoubleClick (QWidget*); + void mouseMiddleClick (); + void mouseMiddleClick (QWidget*); + void closeRequest (QWidget*); + +protected: + +%If ( KDE_3_3_0 - ) + virtual void mouseDoubleClickEvent (QMouseEvent*); +%End + + virtual void mousePressEvent (QMouseEvent*); + virtual void dragMoveEvent (QDragMoveEvent*); + virtual void dropEvent (QDropEvent*); + +%If ( KDE_3_4_0 - ) + uint tabBarWidthForMaxChars (uint); +%End + + +%If ( KDE_3_3_0 - ) + virtual void wheelEvent (QWheelEvent*); + +%If ( KDE_3_4_0 - ) + virtual void resizeEvent (QResizeEvent*); +%End + +%End + + +protected slots: +//ig virtual void receivedDropEvent (int, QDropEvent*); +//ig virtual void initiateDrag (int); +//ig virtual void contextMenu (int, const QPoint&); +//ig virtual void mouseDoubleClick (int); +//ig virtual void mouseMiddleClick (int); +//ig virtual void closeRequest (int); + +%If ( KDE_3_3_0 - ) + virtual void wheelDelta (int); +%End + + +}; // class KTabWidget + +%End + diff --git a/sip/tdeui/ktextbrowser.sip b/sip/tdeui/ktextbrowser.sip new file mode 100644 index 0000000..91a1fc3 --- /dev/null +++ b/sip/tdeui/ktextbrowser.sip @@ -0,0 +1,58 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KTextBrowser : QTextBrowser +{ +%TypeHeaderCode +#include +%End + + +public: + KTextBrowser (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0); + void setNotifyClick (bool); + bool isNotifyClick () const; + +protected: + void setSource (const QString&); + virtual void keyPressEvent (QKeyEvent*); + virtual void viewportMouseMoveEvent (QMouseEvent*); + virtual void contentsWheelEvent (QWheelEvent*); + +%If ( KDE_3_3_0 - ) + virtual QPopupMenu* createPopupMenu (const QPoint&); +%End + + +signals: + void mailClick (const QString&, const QString&); + void urlClick (const QString&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KTextBrowser + diff --git a/sip/tdeui/ktextedit.sip b/sip/tdeui/ktextedit.sip new file mode 100644 index 0000000..e85bcff --- /dev/null +++ b/sip/tdeui/ktextedit.sip @@ -0,0 +1,83 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) + +class KTextEdit : QTextEdit +{ +%TypeHeaderCode +#include +%End + + +public: + KTextEdit (const QString&, const QString& = QString ::null , QWidget* /TransferThis/ = 0, const char* = 0); + KTextEdit (QWidget* /TransferThis/ = 0, const char* = 0); + virtual void setReadOnly (bool); + +%If ( KDE_3_1_1 - ) + virtual void setPalette (const QPalette&); + +%If ( KDE_3_2_0 - ) + void setCheckSpellingEnabled (bool); + bool checkSpellingEnabled () const; + void highLightWord (uint, uint); +%End + +%End + + +public slots: + +%If ( KDE_3_2_0 - ) + void checkSpelling (); +%End + + +protected: + virtual void keyPressEvent (QKeyEvent*); + +%If ( KDE_3_2_0 - ) + virtual void focusInEvent (QFocusEvent*); +%End + + virtual void contentsWheelEvent (QWheelEvent*); + virtual void deleteWordBack (); + virtual void deleteWordForward (); + +%If ( KDE_3_2_0 - ) + virtual QPopupMenu* createPopupMenu (const QPoint&); + virtual QPopupMenu* createPopupMenu (); +%End + + +protected: +//ig virtual void virtual_hook (int, void*); + +}; // class KTextEdit + +%End + diff --git a/sip/tdeui/kthemebase.sip b/sip/tdeui/kthemebase.sip new file mode 100644 index 0000000..6909d32 --- /dev/null +++ b/sip/tdeui/kthemebase.sip @@ -0,0 +1,258 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KThemePixmap : KPixmap +{ +%TypeHeaderCode +#include +%End + + +public: + + enum BorderType + { + Top = 0, + Bottom, + Left, + Right, + TopLeft, + TopRight, + BottomLeft, + BottomRight + }; + + KThemePixmap (bool = 1); + KThemePixmap (const KThemePixmap&); + QPixmap* border (KThemePixmap::BorderType); + void setBorder (KThemePixmap::BorderType, const QPixmap&); + void updateAccessed (); + bool isOld (); + +protected: + +}; // class KThemePixmap + + +class KThemeCache : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + + enum ScaleHint + { + FullScale, + HorizontalScale, + VerticalScale + }; + + KThemeCache (int, QObject*/TransferThis/ = 0, const char* = 0); + bool insert (KThemePixmap*, KThemeCache::ScaleHint, int, bool = 0, bool = 0); + KThemePixmap* pixmap (int, int, int, bool = 0, bool = 0); + KThemePixmap* horizontalPixmap (int, int); + KThemePixmap* verticalPixmap (int, int); + +protected slots: + void flushTimeout (); + +protected: + +}; // class KThemeCache + + +class KThemeBase : KStyle +{ +%TypeHeaderCode +#include +%End + + +public: + KThemeBase (const QString&); + + enum ScaleHint + { + FullScale, + HorizontalScale, + VerticalScale, + TileScale + }; + + + enum ArrowStyle + { + MotifArrow, + LargeArrow, + SmallArrow + }; + + + enum ShadeStyle + { + Motif, + Windows, + Next, + KDE + }; + + + enum SButton + { + SBBottomLeft, + SBBottomRight, + SBOpposite + }; + + + enum Gradient + { + GrNone, + GrHorizontal, + GrVertical, + GrDiagonal, + GrPyramid, + GrRectangle, + GrElliptic, + GrReverseBevel + }; + + + enum WidgetType + { + PushButton = 0, + ComboBox, + HScrollBarSlider, + VScrollBarSlider, + Bevel, + ToolButton, + ScrollButton, + HScrollDeco, + VScrollDeco, + ComboDeco, + MenuItem, + InactiveTab, + ArrowUp, + ArrowDown, + ArrowLeft, + ArrowRight, + PushButtonDown, + ComboBoxDown, + HScrollBarSliderDown, + VScrollBarSliderDown, + BevelDown, + ToolButtonDown, + ScrollButtonDown, + HScrollDecoDown, + VScrollDecoDown, + ComboDecoDown, + MenuItemDown, + ActiveTab, + SunkenArrowUp, + SunkenArrowDown, + SunkenArrowLeft, + SunkenArrowRight, + HScrollGroove, + VScrollGroove, + Slider, + SliderGroove, + IndicatorOn, + IndicatorOff, + ExIndicatorOn, + ExIndicatorOff, + HBarHandle, + VBarHandle, + ToolBar, + Splitter, + CheckMark, + MenuBar, + DisArrowUp, + DisArrowDown, + DisArrowLeft, + DisArrowRight, + ProgressBar, + ProgressBg, + MenuBarItem, + Background + }; + + ScaleHint scaleHint (KThemeBase::WidgetType) const; + Gradient gradientHint (KThemeBase::WidgetType) const; + const QColorGroup* colorGroup (const QColorGroup&, KThemeBase::WidgetType) const; + QBrush pixmapBrush (const QColorGroup&, QColorGroup::ColorRole, int, int, KThemeBase::WidgetType); + bool isPixmap (KThemeBase::WidgetType) const; + bool isColor (KThemeBase::WidgetType) const; + bool is3DFocus () const; + int focusOffset () const; + int borderWidth (KThemeBase::WidgetType) const; + int pixBorderWidth (KThemeBase::WidgetType) const; + KThemePixmap* borderPixmap (KThemeBase::WidgetType); + int highlightWidth (KThemeBase::WidgetType) const; + int decoWidth (KThemeBase::WidgetType) const; + int getSBExtent () const; + SButton scrollBarLayout () const; + ArrowStyle arrowType () const; + ShadeStyle shade () const; + int frameWidth () const; + int splitWidth () const; + int bevelContrast (KThemeBase::WidgetType) const; + int buttonXShift () const; + int buttonYShift () const; + int sliderButtonLength () const; + bool roundButton () const; + bool roundComboBox () const; + bool roundSlider () const; + bool activeTabLine () const; + bool inactiveTabLine () const; + KThemePixmap* uncached (KThemeBase::WidgetType) const; + virtual KThemePixmap* scalePixmap (int, int, KThemeBase::WidgetType); + static void applyConfigFile (const QString&); + +protected: + QImage* image (KThemeBase::WidgetType) const; + QColor* gradientHigh (KThemeBase::WidgetType) const; + QColor* gradientLow (KThemeBase::WidgetType) const; + void readConfig (Qt::GUIStyle = Qt::WindowsStyle); +//ig void readWidgetConfig (int, KConfig*, QString*, QString*, bool*); + void copyWidgetConfig (int, int, QString*, QString*); + QColorGroup* makeColorGroup (QColor&, QColor&, Qt::GUIStyle = Qt::WindowsStyle); + KThemePixmap* scale (int, int, KThemeBase::WidgetType); + KThemePixmap* scaleBorder (int, int, KThemeBase::WidgetType); + KThemePixmap* gradient (int, int, KThemeBase::WidgetType); + KThemePixmap* blend (KThemeBase::WidgetType); + void generateBorderPix (int); + void applyResourceGroup (KConfig*, int); + void applyMiscResourceGroup (KConfig*); + void readResourceGroup (int, QString*, QString*, bool*); + void readMiscResourceGroup (); + KThemePixmap* loadPixmap (QString&); + QImage* loadImage (QString&); + +}; // class KThemeBase + diff --git a/sip/tdeui/kthemestyle.sip b/sip/tdeui/kthemestyle.sip new file mode 100644 index 0000000..6521f00 --- /dev/null +++ b/sip/tdeui/kthemestyle.sip @@ -0,0 +1,89 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KThemeStyle : KThemeBase +{ +%TypeHeaderCode +#include +%End + + +public: + KThemeStyle (const QString& = QString::null); + virtual void polish (QWidget*); + virtual void unPolish (QWidget*); + virtual void polish (QApplication*); + virtual void unPolish (QApplication*); + virtual void polish (QPalette&); + virtual void drawBaseButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, bool = 0, WidgetType = Bevel, const QBrush* = 0); + virtual void drawBaseMask (QPainter*, int, int, int, int, bool); + virtual void drawButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, const QBrush* = 0); + virtual void drawBevelButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, const QBrush* = 0); + virtual void drawKToolBarButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, bool = 1, bool = 1, bool = 0, KToolButtonType = Icon, const QString& = QString::null, const QPixmap* = 0, QFont* = 0, QWidget* = 0); + void drawKBarHandle (QPainter*, int, int, int, int, const QColorGroup&, KToolBarPos, QBrush* = 0); + void drawKToolBar (QPainter*, int, int, int, int, const QColorGroup&, KToolBarPos, QBrush* = 0); + virtual QRect buttonRect (int, int, int, int); + virtual void drawArrow (QPainter*, Qt::ArrowType, bool, int, int, int, int, const QColorGroup&, bool = 1, const QBrush* = 0); + virtual QSize exclusiveIndicatorSize () const; + virtual void drawExclusiveIndicator (QPainter*, int, int, int, int, const QColorGroup&, bool, bool = 0, bool = 1); + virtual void drawExclusiveIndicatorMask (QPainter*, int, int, int, int, bool); + virtual void drawIndicatorMask (QPainter*, int, int, int, int, int); + virtual void drawButtonMask (QPainter*, int, int, int, int); + virtual void drawComboButtonMask (QPainter*, int, int, int, int); + virtual QSize indicatorSize () const; + virtual void drawIndicator (QPainter*, int, int, int, int, const QColorGroup&, int, bool = 0, bool = 1); + virtual void drawComboButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, bool = 0, bool = 1, const QBrush* = 0); + virtual void drawPushButton (QPushButton*, QPainter*); +//ig virtual void getButtonShift (int&, int&); + virtual int defaultFrameWidth () const; +//ig virtual void scrollBarMetrics (const QScrollBar*, int&, int&, int&, int&); + virtual void drawScrollBarControls (QPainter*, const QScrollBar*, int, uint, uint); + virtual ScrollControl scrollBarPointOver (const QScrollBar*, int, const QPoint&); + virtual int sliderLength () const; + virtual void drawSlider (QPainter*, int, int, int, int, const QColorGroup&, Orientation, bool, bool); + void drawSliderGroove (QPainter*, int, int, int, int, const QColorGroup&, QCOORD, Orientation); + virtual void drawSliderMask (QPainter*, int, int, int, int, Orientation, bool, bool); + virtual void drawScrollBarGroove (QPainter*, const QScrollBar*, bool, QRect, QColorGroup); + virtual void drawShade (QPainter*, int, int, int, int, const QColorGroup&, bool, bool, int, int, ShadeStyle); + virtual void drawPushButtonLabel (QPushButton*, QPainter*); + void drawKMenuBar (QPainter*, int, int, int, int, const QColorGroup&, bool, QBrush* = 0); +//ig virtual void drawKMenuItem (QPainter*, int, int, int, int, const QColorGroup&, bool, QMenuItem*, QBrush* = 0); + virtual int splitterWidth () const; + virtual void drawSplitter (QPainter*, int, int, int, int, const QColorGroup&, Orientation); + virtual void drawCheckMark (QPainter*, int, int, int, int, const QColorGroup&, bool, bool); +//ig virtual void drawPopupMenuItem (QPainter*, bool, int, int, QMenuItem*, const QPalette&, bool, bool, int, int, int, int); +//ig int popupMenuItemHeight (bool, QMenuItem*, const QFontMetrics&); + void drawFocusRect (QPainter*, const QRect&, const QColorGroup&, const QColor* = 0, bool = 0); + virtual void drawKProgressBlock (QPainter*, int, int, int, int, const QColorGroup&, QBrush*); + virtual void getKProgressBackground (const QColorGroup&, QBrush&); +//ig virtual void tabbarMetrics (const QTabBar*, int&, int&, int&); + virtual void drawTab (QPainter*, const QTabBar*, QTab*, bool); + virtual void drawTabMask (QPainter*, const QTabBar*, QTab*, bool); + +protected: + +}; // class KThemeStyle + diff --git a/sip/tdeui/ktimewidget.sip b/sip/tdeui/ktimewidget.sip new file mode 100644 index 0000000..b582698 --- /dev/null +++ b/sip/tdeui/ktimewidget.sip @@ -0,0 +1,50 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KTimeWidget : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KTimeWidget (QWidget* /TransferThis/ = 0, const char* = 0); + KTimeWidget (const QTime&, QWidget* /TransferThis/ = 0, const char* = 0); + QTime time () const; + +public slots: + void setTime (const QTime&); + +signals: + void valueChanged (const QTime&); + +}; // class KTimeWidget + +%End + diff --git a/sip/tdeui/ktimezonewidget.sip b/sip/tdeui/ktimezonewidget.sip new file mode 100644 index 0000000..fb612ee --- /dev/null +++ b/sip/tdeui/ktimezonewidget.sip @@ -0,0 +1,45 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_5_0 - ) + +class KTimezoneWidget : KListView +{ +%TypeHeaderCode +#include +%End + + +public: + KTimezoneWidget (QWidget* /TransferThis/ = 0, const char* = 0, KTimezones* = 0); + QStringList selection () const; + void setSelected (const QString&, bool); + static QString displayName (const KTimezone*); + +}; // class KTimezoneWidget + +%End + diff --git a/sip/tdeui/ktip.sip b/sip/tdeui/ktip.sip new file mode 100644 index 0000000..82be08b --- /dev/null +++ b/sip/tdeui/ktip.sip @@ -0,0 +1,82 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KTipDatabase +{ +%TypeHeaderCode +#include +%End + + +public: + KTipDatabase (const QString& = QString ::null ); + +%If ( KDE_3_2_0 - ) + KTipDatabase (const QStringList&); +%End + + QString tip () const; + void nextTip (); + void prevTip (); + +}; // class KTipDatabase + + +class KTipDialog : KDialog +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_1_0 - ) + KTipDialog (KTipDatabase*, QWidget* /TransferThis/ = 0, const char* = 0); +%End + + static void showTip (QWidget* /Transfer/, const QString& = QString ::null , bool = 0); + +%If ( KDE_3_2_0 - ) + static void showMultiTip (QWidget* /Transfer/, const QStringList&, bool = 0); +%End + + static void showTip (const QString& = QString ::null , bool = 0); + static void setShowOnStart (bool); + +protected: + bool eventFilter (QObject*, QEvent*); +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( - KDE_3_1_0 ) + KTipDialog (KTipDatabase*, QWidget* /TransferThis/ = 0, const char* = 0); +%End + + +}; // class KTipDialog + diff --git a/sip/tdeui/ktmainwindow.sip b/sip/tdeui/ktmainwindow.sip new file mode 100644 index 0000000..90afbab --- /dev/null +++ b/sip/tdeui/ktmainwindow.sip @@ -0,0 +1,53 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KTMainWindow : KMainWindow +{ +%TypeHeaderCode +#include +%End + + +public: + KTMainWindow (const char* = 0, WFlags = WDestructiveClose); + void setView (QWidget*, bool = 0); + QWidget* view () const; + void enableStatusBar (KStatusBar::BarStatus = KStatusBar::Toggle); + void enableToolBar (KToolBar::BarStatus = KToolBar::Toggle, int = 0); + void setEnableToolBar (KToolBar::BarStatus = KToolBar::Toggle, const char* = "mainToolBar"); + int addToolBar (KToolBar*, int = -1); + KToolBar* toolBar (int = 0); + void setMenu (KMenuBar*); + void setStatusBar (KStatusBar*); + bool hasMenuBar (); + bool hasStatusBar (); + bool hasToolBar (int = 0); + +protected slots: + virtual void updateRects (); + +}; // class KTMainWindow + diff --git a/sip/tdeui/ktoolbar.sip b/sip/tdeui/ktoolbar.sip new file mode 100644 index 0000000..74bdc9e --- /dev/null +++ b/sip/tdeui/ktoolbar.sip @@ -0,0 +1,263 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KToolBarSeparator : QFrame +{ +%TypeHeaderCode +#include +%End + + +public: + KToolBarSeparator (Orientation, bool, QToolBar* /TransferThis/, const char* = 0); + QSize sizeHint () const; + Orientation orientation () const; + QSizePolicy sizePolicy () const; + bool showLine () const; + +public slots: + void setOrientation (Orientation); + +protected: + void styleChange (QStyle&); + +%If ( KDE_3_2_0 - ) + void drawContents (QPainter*); +%End + + +}; // class KToolBarSeparator + + +class KToolBar : QToolBar +{ +%TypeHeaderCode +#include +%End + + +public: + + enum IconText + { + IconOnly, + IconTextRight, + TextOnly, + IconTextBottom + }; + + + enum BarStatus + { + Toggle, + Show, + Hide + }; + + + enum BarPosition + { + Unmanaged, + Floating, + Top, + Bottom, + Right, + Left, + Flat + }; + + KToolBar (QWidget* /TransferThis/, const char* = 0, bool = 0, bool = 1); +//ig KToolBar (QMainWindow*, QMainWindow::ToolBarDock, bool = 0, const char* = 0, bool = 0, bool = 1); + KToolBar (QMainWindow*, QWidget*, bool = 0, const char* = 0, bool = 0, bool = 1); + int insertButton (const QString&, int, bool = 1, const QString& = QString ::null , int = -1, KInstance* = KGlobal ::instance ()); + int insertButton (const QString&, int, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), bool = 1, const QString& = QString ::null , int = -1, KInstance* = KGlobal ::instance ()); + int insertButton (const QPixmap&, int, bool = 1, const QString& = QString ::null , int = -1); + int insertButton (const QPixmap&, int, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), bool = 1, const QString& = QString ::null , int = -1); + int insertButton (const QString&, int, QPopupMenu*, bool, const QString&, int = -1); + int insertButton (const QPixmap&, int, QPopupMenu*, bool, const QString&, int = -1); + int insertLined (const QString&, int, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), bool = 1, const QString& = QString ::null , int = 70, int = -1); + int insertCombo (const QStringList&, int, bool, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), bool = 1, const QString& = QString ::null , int = 70, int = -1, QComboBox::Policy = QComboBox ::AtBottom ); + +%If ( KDE_3_2_0 - ) + int insertCombo (const QString&, int, bool, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1, const QString& = QString ::null , int = 70, int = -1, QComboBox::Policy = QComboBox ::AtBottom ); +%End + + int insertSeparator (int, int); + int insertLineSeparator (int, int); + int insertWidget (int, int, QWidget*, int = -1); + int insertAnimatedWidget (int, SIP_RXOBJ_CON, SIP_SLOT_CON (int), const QString&, int = -1); + KAnimWidget* animatedWidget (int); + void addConnection (int, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int)); + void setItemEnabled (int, bool); + void setButtonIcon (int, const QString&); + void setButtonPixmap (int, const QPixmap&); + void setButtonIconSet (int, const QIconSet&); + void setDelayedPopup (int, QPopupMenu*, bool = 0); + void setAutoRepeat (int, bool = 1); + void setToggle (int, bool = 1); + void toggleButton (int); + void setButton (int, bool); + bool isButtonOn (int); + void setLinedText (int, const QString&); + QString getLinedText (int); + void insertComboItem (int, const QString&, int); + void insertComboList (int, const QStringList&, int); + void removeComboItem (int, int); + void setCurrentComboItem (int, int); + void changeComboItem (int, const QString&, int = -1); + void clearCombo (int); + QString getComboItem (int, int = -1); + KComboBox* getCombo (int); + KLineEdit* getLined (int); + KToolBarButton* getButton (int); + void alignItemRight (int, bool = 1); + QWidget* getWidget (int); + void setItemAutoSized (int, bool = 1); + void clear (); + void removeItem (int); + +%If ( KDE_3_2_0 - ) + void removeItemDelayed (int); +%End + + void hideItem (int); + void showItem (int); + +%If ( KDE_3_2_0 - ) + int itemIndex (int); + int idAt (int); +%End + + void setFullSize (bool = 1); + bool fullSize () const; + void enableMoving (bool = 1); + void setBarPos (KToolBar::BarPosition); + BarPosition barPos () const; + bool enable (KToolBar::BarStatus); + void setMaxHeight (int); + int maxHeight (); + void setMaxWidth (int); + int maxWidth (); + void setTitle (const QString&); + void enableFloating (bool); + void setIconText (KToolBar::IconText); + void setIconText (KToolBar::IconText, bool); + IconText iconText () const; + void setIconSize (int); + void setIconSize (int, bool); + int iconSize () const; + +%If ( KDE_3_4_0 - ) + int iconSizeDefault () const; +%End + + void setEnableContextMenu (bool = 1); + bool contextMenuEnabled () const; + void setItemNoStyle (int, bool = 1); + void setFlat (bool); + int count (); + void saveState (); + void saveSettings (KConfig*, const QString&); + +%If ( KDE_3_3_0 - ) + void applySettings (KConfig*, const QString&, bool); +%End + + void applySettings (KConfig*, const QString&); + void setXMLGUIClient (KXMLGUIClient*); + void setText (const QString&); + QString text () const; + void setStretchableWidget (QWidget*); + QSizePolicy sizePolicy () const; + bool highlight () const; + QSize sizeHint () const; + QSize minimumSizeHint () const; + QSize minimumSize () const; + void hide (); + void show (); + void updateRects (bool = 0); + void loadState (const QDomElement&); + void saveState (QDomElement&); + void positionYourself (bool); + +signals: + void clicked (int); + void doubleClicked (int); + void pressed (int); + void released (int); + void toggled (int); + void highlighted (int, bool); + void highlighted (int); + void moved (KToolBar::BarPosition); + void modechange (); + +%If ( KDE_3_1_0 - ) + void toolbarDestroyed (); +%End + + +public: + +%If ( KDE_3_1_0 - ) + static bool highlightSetting (); + static bool transparentSetting (); + static KToolBar::IconText iconTextSetting (); +%End + + +public slots: + virtual void setIconText (const QString&); + +protected: + void mousePressEvent (QMouseEvent*); + void childEvent (QChildEvent*); + void showEvent (QShowEvent*); + void resizeEvent (QResizeEvent*); + bool event (QEvent*); + void applyAppearanceSettings (KConfig*, const QString&, bool = 0); + QString settingsGroup () const; + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_2_0 ) + int insertCombo (const QString&, int, bool, const char*, QObject*, const char*, bool = 1, const QString& = QString ::null , int = 70, int = -1, QComboBox::Policy = QComboBox ::AtBottom ); +%End + + +signals: + +%If ( - KDE_3_1_0 ) +//ig static bool highlightSetting (); +//ig static bool transparentSetting (); +//ig static IconText iconTextSetting (); +%End + + +}; // class KToolBar + diff --git a/sip/tdeui/ktoolbarbutton.sip b/sip/tdeui/ktoolbarbutton.sip new file mode 100644 index 0000000..e451f70 --- /dev/null +++ b/sip/tdeui/ktoolbarbutton.sip @@ -0,0 +1,123 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KToolBarButton : QToolButton +{ +%TypeHeaderCode +#include +%End + + +public: + KToolBarButton (const QString&, int, QWidget* /TransferThis/, const char* = 0, const QString& = QString ::null , KInstance* = KGlobal ::instance ()); + KToolBarButton (const QPixmap&, int, QWidget* /TransferThis/, const char* = 0, const QString& = QString ::null ); + KToolBarButton (QWidget* /TransferThis/ = 0, const char* = 0); + virtual void setPixmap (const QPixmap&); + void setDefaultPixmap (const QPixmap&); + void setDisabledPixmap (const QPixmap&); + virtual void setText (const QString&); + virtual void setIcon (const QString&); + +%If ( KDE_3_0_1 - ) + virtual void setIcon (const QPixmap&); +%End + + virtual void setIconSet (const QIconSet&); + void setIcon (const QString&, bool); + void setDefaultIcon (const QString&); + void setDisabledIcon (const QString&); + void on (bool = 1); + void toggle (); + void setToggle (bool = 1); + QPopupMenu* popup (); + +%If ( KDE_3_2_0 - ) + int id () const; +%End + + void setPopup (QPopupMenu*, bool); + void setDelayedPopup (QPopupMenu*, bool = 0); + void setRadio (bool = 1); + void setNoStyle (bool = 1); + +signals: + void clicked (int); + +%If ( KDE_3_4_2 - ) + void buttonClicked (int, Qt::ButtonState); +%End + + void doubleClicked (int); + void pressed (int); + void released (int); + void toggled (int); + void highlighted (int, bool); + +public slots: + void modeChange (); + virtual void setTextLabel (const QString&, bool); + +protected: + +%If ( KDE_3_5_0 - ) + bool event (QEvent*); +%End + + void paletteChange (const QPalette&); + void leaveEvent (QEvent*); + void enterEvent (QEvent*); + void drawButton (QPainter*); + bool eventFilter (QObject*, QEvent*); + +%If ( KDE_3_4_2 - ) + void mousePressEvent (QMouseEvent*); + void mouseReleaseEvent (QMouseEvent*); +%End + + void showMenu (); + QSize sizeHint () const; + QSize minimumSizeHint () const; + QSize minimumSize () const; + +%If ( KDE_3_0_1 - ) + bool isRaised () const; + bool isActive () const; + int iconTextMode () const; +%End + + +protected slots: + void slotClicked (); + void slotPressed (); + void slotReleased (); + void slotToggled (); + void slotDelayTimeout (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KToolBarButton + diff --git a/sip/tdeui/ktoolbarlabelaction.sip b/sip/tdeui/ktoolbarlabelaction.sip new file mode 100644 index 0000000..e196cbf --- /dev/null +++ b/sip/tdeui/ktoolbarlabelaction.sip @@ -0,0 +1,51 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_4_0 - ) + +class KToolBarLabelAction : KWidgetAction +{ +%TypeHeaderCode +#include +%End + + +public: + KToolBarLabelAction (const QString&, const KShortcut&, const QObject*, const char*, KActionCollection* /TransferThis/, const char*); + KToolBarLabelAction (QWidget*, const QString&, const KShortcut&, const QObject*, const char*, KActionCollection* /TransferThis/, const char*); + KToolBarLabelAction (QLabel*, const KShortcut&, const QObject*, const char*, KActionCollection* /TransferThis/, const char*); + virtual void setText (const QString&); + virtual void setBuddy (QWidget*); + QWidget* buddy () const; + QLabel* label () const; + +protected: + virtual void virtual_hook (int, void*); + +}; // class KToolBarLabelAction + +%End + diff --git a/sip/tdeui/ktoolbarradiogroup.sip b/sip/tdeui/ktoolbarradiogroup.sip new file mode 100644 index 0000000..37515b9 --- /dev/null +++ b/sip/tdeui/ktoolbarradiogroup.sip @@ -0,0 +1,43 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KToolBarRadioGroup : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KToolBarRadioGroup (KToolBar*, const char* = 0); + void addButton (int); + void removeButton (int); + +public slots: + void slotToggled (int); + +}; // class KToolBarRadioGroup + diff --git a/sip/tdeui/kurllabel.sip b/sip/tdeui/kurllabel.sip new file mode 100644 index 0000000..f1bb990 --- /dev/null +++ b/sip/tdeui/kurllabel.sip @@ -0,0 +1,108 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KURLLabel : QLabel +{ +%TypeHeaderCode +#include +%End + + +public: + KURLLabel (QWidget* /TransferThis/ = 0, const char* = 0); + KURLLabel (const QString&, const QString& = QString ::null , QWidget* /TransferThis/ = 0, const char* = 0); + const QString& url () const; + const QString& tipText () const; + bool useTips () const; + bool useCursor () const; + bool isGlowEnabled () const; + bool isFloatEnabled () const; + const QPixmap* altPixmap () const; + +%If ( KDE_3_5_1 - ) + virtual void setMargin (int); + virtual void setFocusPolicy (FocusPolicy); + +%If ( KDE_3_5_2 - ) + virtual void setSizePolicy (QSizePolicy); +%End + +%End + + +public slots: + void setUnderline (bool = 1); + void setURL (const QString&); + virtual void setFont (const QFont&); + void setUseTips (bool = 1); + void setTipText (const QString&); + void setHighlightedColor (const QColor&); + void setHighlightedColor (const QString&); + void setSelectedColor (const QColor&); + void setSelectedColor (const QString&); + +%If ( KDE_3_5_1 - ) + virtual void setCursor (const QCursor&); + virtual void unsetCursor (); +%End + + void setUseCursor (bool, QCursor* = 0); + void setGlow (bool = 1); + void setFloat (bool = 1); + void setAltPixmap (const QPixmap&); + +signals: + void enteredURL (const QString&); + void enteredURL (); + void leftURL (const QString&); + void leftURL (); + void leftClickedURL (const QString&); + void leftClickedURL (); + void rightClickedURL (const QString&); + void rightClickedURL (); + void middleClickedURL (const QString&); + void middleClickedURL (); + +protected: + virtual void mouseReleaseEvent (QMouseEvent*); + virtual void enterEvent (QEvent*); + virtual void leaveEvent (QEvent*); + +%If ( KDE_3_2_0 - ) + virtual bool event (QEvent*); + +%If ( KDE_3_5_1 - ) + QRect activeRect () const; +%End + +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KURLLabel + diff --git a/sip/tdeui/kwindowinfo.sip b/sip/tdeui/kwindowinfo.sip new file mode 100644 index 0000000..a7445bb --- /dev/null +++ b/sip/tdeui/kwindowinfo.sip @@ -0,0 +1,61 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) + +class KWindowInfo : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KWindowInfo (QWidget* /TransferThis/, const char* = 0); + bool autoDelete () const; + void setAutoDelete (bool); + static void showMessage (QWidget*, const QString&, int = -1); + static void showMessage (QWidget*, const QString&, const QPixmap&, int = -1); + +public slots: + void message (const QString&); + void message (const QString&, const QPixmap&); + void message (const QString&, int); + void message (const QString&, const QPixmap&, int); + void permanent (const QString&); + void permanent (const QString&, const QPixmap&); + +protected: + virtual void display (const QString&, const QPixmap&); + +protected slots: + virtual void save (); + virtual void restore (); + +}; // class KWindowInfo + +%End + diff --git a/sip/tdeui/kwindowlistmenu.sip b/sip/tdeui/kwindowlistmenu.sip new file mode 100644 index 0000000..31f3242 --- /dev/null +++ b/sip/tdeui/kwindowlistmenu.sip @@ -0,0 +1,54 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KWindowListMenu : KPopupMenu +{ +%TypeHeaderCode +#include +%End + + +public: + KWindowListMenu (QWidget* /TransferThis/ = 0, const char* = 0); + void init (); + +public slots: + +%If ( KDE_3_3_0 - ) + void selectActiveWindow (); +%End + + +protected slots: + void slotExec (int); + void slotUnclutterWindows (); + void slotCascadeWindows (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KWindowListMenu + diff --git a/sip/tdeui/kwizard.sip b/sip/tdeui/kwizard.sip new file mode 100644 index 0000000..b9f7b30 --- /dev/null +++ b/sip/tdeui/kwizard.sip @@ -0,0 +1,38 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KWizard : QWizard +{ +%TypeHeaderCode +#include +%End + + +public: + KWizard (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, WFlags = 0); + +}; // class KWizard + diff --git a/sip/tdeui/kwordwrap.sip b/sip/tdeui/kwordwrap.sip new file mode 100644 index 0000000..4909f98 --- /dev/null +++ b/sip/tdeui/kwordwrap.sip @@ -0,0 +1,82 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KWordWrap +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_3_0 - ) + + enum + { + FadeOut, + Truncate + }; + +%End + + static KWordWrap* formatText (QFontMetrics&, const QRect&, int, const QString&, int = -1); + QRect boundingRect () const; + QString wrappedString () const; + QString truncatedString (bool = 1) const; + void drawText (QPainter*, int, int, int = Qt ::AlignAuto ) const; + +%If ( KDE_3_2_0 - ) + static void drawFadeoutText (QPainter*, int, int, int, const QString&); + +%If ( KDE_3_3_0 - ) + static void drawTruncateText (QPainter*, int, int, int, const QString&); +%End + +%End + + +%If ( KDE_3_2_0 - ) + +private: + KWordWrap (const QRect&); +%End + + +public: + +%If ( KDE_3_2_0 - KDE_3_3_0 ) + + enum + { + FadeOut + }; + +%End + + +}; // class KWordWrap + diff --git a/sip/tdeui/kxmlgui.sip b/sip/tdeui/kxmlgui.sip new file mode 100644 index 0000000..05c16e8 --- /dev/null +++ b/sip/tdeui/kxmlgui.sip @@ -0,0 +1,26 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + diff --git a/sip/tdeui/kxmlguibuilder.sip b/sip/tdeui/kxmlguibuilder.sip new file mode 100644 index 0000000..4972c49 --- /dev/null +++ b/sip/tdeui/kxmlguibuilder.sip @@ -0,0 +1,53 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KXMLGUIBuilder +{ +%TypeHeaderCode +#include +%End + + +public: + KXMLGUIBuilder (QWidget*); + KXMLGUIClient* builderClient () const; + void setBuilderClient (KXMLGUIClient*); + KInstance* builderInstance () const; + void setBuilderInstance (KInstance*); + QWidget* widget (); + virtual QStringList containerTags () const; +//ig virtual QWidget* createContainer (QWidget* /Transfer/, int, const QDomElement&, int&); + virtual void removeContainer (QWidget*, QWidget* /Transfer/, QDomElement&, int); + virtual QStringList customTags () const; + virtual int createCustomElement (QWidget* /Transfer/, int, const QDomElement&); + virtual void removeCustomElement (QWidget* /Transfer/, int); + virtual void finalizeGUI (KXMLGUIClient*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KXMLGUIBuilder + diff --git a/sip/tdeui/kxmlguiclient.sip b/sip/tdeui/kxmlguiclient.sip new file mode 100644 index 0000000..6479093 --- /dev/null +++ b/sip/tdeui/kxmlguiclient.sip @@ -0,0 +1,101 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KXMLGUIClient +{ +%TypeHeaderCode +#include +%End + + +public: + KXMLGUIClient (); + KXMLGUIClient (KXMLGUIClient* /TransferThis/); + KAction* action (const char*) const; + virtual KAction* action (const QDomElement&) const; + virtual KActionCollection* actionCollection () const; + virtual KInstance* instance () const; + virtual QDomDocument domDocument () const; + virtual QString xmlFile () const; + virtual QString localXMLFile () const; + void setXMLGUIBuildDocument (const QDomDocument&); + QDomDocument xmlguiBuildDocument () const; + void setFactory (KXMLGUIFactory*); + KXMLGUIFactory* factory () const; + KXMLGUIClient* parentClient () const; + void insertChildClient (KXMLGUIClient*); + void removeChildClient (KXMLGUIClient*); + const QPtrList* childClients (); + void setClientBuilder (KXMLGUIBuilder*); + KXMLGUIBuilder* clientBuilder () const; + void reloadXML (); + void plugActionList (const QString&, const QPtrList&); + void unplugActionList (const QString&); + static QString findMostRecentXMLFile (const QStringList&, QString&); + void addStateActionEnabled (const QString&, const QString&); + void addStateActionDisabled (const QString&, const QString&); + + enum ReverseStateChange + { + StateNoReverse, + StateReverse + }; + + + class StateChange + { + + public: + QStringList actionsToEnable; + QStringList actionsToDisable; + + }; // class StateChange + + +public: + KXMLGUIClient::StateChange getActionsToChangeForState (const QString&); + +%If ( KDE_3_1_0 - ) + void beginXMLPlug (QWidget*); + void endXMLPlug (); + void prepareXMLUnplug (QWidget*); +%End + + +protected: + virtual void setInstance (KInstance*); + virtual void setXMLFile (const QString&, bool = 0, bool = 1); + virtual void setLocalXMLFile (const QString&); + virtual void setXML (const QString&, bool = 0); + virtual void setDOMDocument (const QDomDocument&, bool = 0); + virtual void conserveMemory (); + virtual void stateChanged (const QString&, KXMLGUIClient::ReverseStateChange = StateNoReverse ); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KXMLGUIClient + diff --git a/sip/tdeui/kxmlguifactory.sip b/sip/tdeui/kxmlguifactory.sip new file mode 100644 index 0000000..681ced4 --- /dev/null +++ b/sip/tdeui/kxmlguifactory.sip @@ -0,0 +1,297 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KXMLGUIFactory : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KXMLGUIFactory (KXMLGUIBuilder*, QObject* /TransferThis/ = 0, const char* = 0); + static QString readConfigFile (const QString&, bool, const KInstance* = 0); + static QString readConfigFile (const QString&, const KInstance* = 0); + static bool saveConfigFile (const QDomDocument&, const QString&, const KInstance* = 0); + static QString documentToXML (const QDomDocument&); + static QString elementToXML (const QDomElement&); + static void removeDOMComments (QDomNode&); + +%If ( KDE_3_3_0 - ) + static QDomElement actionPropertiesElement (QDomDocument&); + static QDomElement findActionByName (QDomElement&, const QString&, bool); +%End + + void addClient (KXMLGUIClient*); + void removeClient (KXMLGUIClient*); + void plugActionList (KXMLGUIClient*, const QString&, const QPtrList&); + void unplugActionList (KXMLGUIClient*, const QString&); + QPtrList clients () const; + QWidget* container (const QString&, KXMLGUIClient*, bool = 0); + QPtrList containers (const QString&); + void reset (); + void resetContainer (const QString&, bool = 0); + +public slots: + +%If ( KDE_3_3_0 - ) + int configureShortcuts (bool = 1, bool = 1); +%End + + +signals: + void clientAdded (KXMLGUIClient*); + void clientRemoved (KXMLGUIClient*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KXMLGUIFactory + +//force +QPtrList testKActionList (QPtrList); +%MethodCode +//takes list | (QPtrList) +//returns (QPtrList) + + sipRes = a0; +%End + +//end + + +%MappedType QPtrList +//converts a Python list of KAction +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList *cpplist = (QPtrList *)sipCpp; + KAction *cpp; + PyObject *inst; + + // the loop depends on the type of iterator the tmeplate makes available + for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) + { + if (((inst = sipConvertFromInstance (cpp, sipClass_KAction, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList *cpplist = new QPtrList; + + PyObject *elem; + KAction *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KAction *)sipForceConvertToType(elem, sipType_KAction, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + +%MappedType QPtrList +//converts a Python list of KXMLGUIClient +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList *cpplist = (QPtrList *)sipCpp; + KXMLGUIClient *cpp; + PyObject *inst; + + // the loop depends on the type of iterator the tmeplate makes available + for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) + { + if (((inst = sipConvertFromNewType(new KXMLGUIClient(*cpp), sipType_KXMLGUIClient, NULL)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList *cpplist = new QPtrList; + + PyObject *elem; + KXMLGUIClient *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KXMLGUIClient *)sipForceConvertToType(elem, sipType_KXMLGUIClient, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + +%MappedType QPtrList +//converts a Python list of QWidget +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList *cpplist = (QPtrList *)sipCpp; + QWidget *cpp; + PyObject *inst; + + // the loop depends on the type of iterator the tmeplate makes available + for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) + { + if (((inst = sipConvertFromInstance (cpp, sipClass_QWidget, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList *cpplist = new QPtrList; + + PyObject *elem; + QWidget *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (QWidget *)sipForceConvertToType(elem, sipType_QWidget, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + diff --git a/sip/tdeui/qxembed.sip b/sip/tdeui/qxembed.sip new file mode 100644 index 0000000..d091384 --- /dev/null +++ b/sip/tdeui/qxembed.sip @@ -0,0 +1,113 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class QXEmbed : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + QXEmbed (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + static void initialize (); + +%If ( KDE_3_1_1 - ) + + enum Protocol + { + XEMBED, + XPLAIN + }; + + void setProtocol (QXEmbed::Protocol); + QXEmbed::Protocol protocol (); +%End + + void embed (WId); + WId embeddedWinId () const; + static void embedClientIntoWindow (QWidget*, WId); + static bool processClientCmdline (QWidget*, SIP_PYLIST) [bool (QWidget*, int&, char**)]; +%MethodCode +//returns (bool) +//takes client | (QWidget) | argv | (a Python list of strings which may be modified) + +//returns +//takes list (a Python list of strings) | index (int) + + int n; + + if ((n = PyList_Size (a1)) == 0) + return NULL; + + char **strings; + + if ((strings = (char **)PyQtListToArray(a1)) == NULL) + return NULL; + + Py_BEGIN_ALLOW_THREADS + sipRes = QXEmbed::processClientCmdline (a0, n, strings); + Py_END_ALLOW_THREADS + + sipFree((ANY *)strings); +%End + + +%If ( KDE_3_2_0 - ) + void sendDelete (); +%End + + void setAutoDelete (bool); + bool autoDelete () const; + QSize sizeHint () const; + QSize minimumSizeHint () const; + QSizePolicy sizePolicy () const; + bool eventFilter (QObject*, QEvent*); + bool customWhatsThis () const; + void enterWhatsThisMode (); + +%If ( KDE_3_2_0 - ) + virtual void reparent (QWidget* /Transfer/, WFlags, const QPoint&, bool = 0); +%End + + +signals: + void embeddedWindowDestroyed (); + +protected: + bool event (QEvent*); + void keyPressEvent (QKeyEvent*); + void keyReleaseEvent (QKeyEvent*); + void focusInEvent (QFocusEvent*); + void focusOutEvent (QFocusEvent*); + void resizeEvent (QResizeEvent*); + void showEvent (QShowEvent*); +//ig bool x11Event (XEvent*); + virtual void windowChanged (WId); + bool focusNextPrevChild (bool); + +}; // class QXEmbed + diff --git a/sip/tdeui/tdeui-kde310.diff b/sip/tdeui/tdeui-kde310.diff new file mode 100644 index 0000000..bde4a8e --- /dev/null +++ b/sip/tdeui/tdeui-kde310.diff @@ -0,0 +1,4 @@ ++ %Include kaccelmanager.sip ++ %Include kpassivepopup.sip ++ %Include ktextedit.sip ++ %Include kwindowinfo.sip diff --git a/sip/tdeui/tdeui-kde311.diff b/sip/tdeui/tdeui-kde311.diff new file mode 100644 index 0000000..bde4a8e --- /dev/null +++ b/sip/tdeui/tdeui-kde311.diff @@ -0,0 +1,4 @@ ++ %Include kaccelmanager.sip ++ %Include kpassivepopup.sip ++ %Include ktextedit.sip ++ %Include kwindowinfo.sip diff --git a/sip/tdeui/tdeui-kde312.diff b/sip/tdeui/tdeui-kde312.diff new file mode 100644 index 0000000..bde4a8e --- /dev/null +++ b/sip/tdeui/tdeui-kde312.diff @@ -0,0 +1,4 @@ ++ %Include kaccelmanager.sip ++ %Include kpassivepopup.sip ++ %Include ktextedit.sip ++ %Include kwindowinfo.sip diff --git a/sip/tdeui/tdeui-kde313.diff b/sip/tdeui/tdeui-kde313.diff new file mode 100644 index 0000000..bde4a8e --- /dev/null +++ b/sip/tdeui/tdeui-kde313.diff @@ -0,0 +1,4 @@ ++ %Include kaccelmanager.sip ++ %Include kpassivepopup.sip ++ %Include ktextedit.sip ++ %Include kwindowinfo.sip diff --git a/sip/tdeui/tdeui-kde314.diff b/sip/tdeui/tdeui-kde314.diff new file mode 100644 index 0000000..bde4a8e --- /dev/null +++ b/sip/tdeui/tdeui-kde314.diff @@ -0,0 +1,4 @@ ++ %Include kaccelmanager.sip ++ %Include kpassivepopup.sip ++ %Include ktextedit.sip ++ %Include kwindowinfo.sip diff --git a/sip/tdeui/tdeui-kde315.diff b/sip/tdeui/tdeui-kde315.diff new file mode 100644 index 0000000..bde4a8e --- /dev/null +++ b/sip/tdeui/tdeui-kde315.diff @@ -0,0 +1,4 @@ ++ %Include kaccelmanager.sip ++ %Include kpassivepopup.sip ++ %Include ktextedit.sip ++ %Include kwindowinfo.sip diff --git a/sip/tdeui/tdeui-kde320.diff b/sip/tdeui/tdeui-kde320.diff new file mode 100644 index 0000000..0066974 --- /dev/null +++ b/sip/tdeui/tdeui-kde320.diff @@ -0,0 +1,13 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kinputdialog.sip ++ %Include kpassivepopup.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include kwindowinfo.sip diff --git a/sip/tdeui/tdeui-kde321.diff b/sip/tdeui/tdeui-kde321.diff new file mode 100644 index 0000000..0066974 --- /dev/null +++ b/sip/tdeui/tdeui-kde321.diff @@ -0,0 +1,13 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kinputdialog.sip ++ %Include kpassivepopup.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include kwindowinfo.sip diff --git a/sip/tdeui/tdeui-kde322.diff b/sip/tdeui/tdeui-kde322.diff new file mode 100644 index 0000000..0066974 --- /dev/null +++ b/sip/tdeui/tdeui-kde322.diff @@ -0,0 +1,13 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kinputdialog.sip ++ %Include kpassivepopup.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include kwindowinfo.sip diff --git a/sip/tdeui/tdeui-kde323.diff b/sip/tdeui/tdeui-kde323.diff new file mode 100644 index 0000000..2aab948 --- /dev/null +++ b/sip/tdeui/tdeui-kde323.diff @@ -0,0 +1,14 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kinputdialog.sip ++ %Include kpassivepopup.sip +//+ %Include ksharedpixmap.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include kwindowinfo.sip diff --git a/sip/tdeui/tdeui-kde330.diff b/sip/tdeui/tdeui-kde330.diff new file mode 100644 index 0000000..6be7d89 --- /dev/null +++ b/sip/tdeui/tdeui-kde330.diff @@ -0,0 +1,16 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kactionselector.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kinputdialog.sip ++ %Include klanguagebutton.sip ++ %Include klistviewsearchline.sip ++ %Include kpassivepopup.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include kwindowinfo.sip diff --git a/sip/tdeui/tdeui-kde331.diff b/sip/tdeui/tdeui-kde331.diff new file mode 100644 index 0000000..6be7d89 --- /dev/null +++ b/sip/tdeui/tdeui-kde331.diff @@ -0,0 +1,16 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kactionselector.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kinputdialog.sip ++ %Include klanguagebutton.sip ++ %Include klistviewsearchline.sip ++ %Include kpassivepopup.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include kwindowinfo.sip diff --git a/sip/tdeui/tdeui-kde332.diff b/sip/tdeui/tdeui-kde332.diff new file mode 100644 index 0000000..6be7d89 --- /dev/null +++ b/sip/tdeui/tdeui-kde332.diff @@ -0,0 +1,16 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kactionselector.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kinputdialog.sip ++ %Include klanguagebutton.sip ++ %Include klistviewsearchline.sip ++ %Include kpassivepopup.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include kwindowinfo.sip diff --git a/sip/tdeui/tdeui-kde340.diff b/sip/tdeui/tdeui-kde340.diff new file mode 100644 index 0000000..cdefe26 --- /dev/null +++ b/sip/tdeui/tdeui-kde340.diff @@ -0,0 +1,21 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kactionselector.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kiconviewsearchline.sip ++ %Include kinputdialog.sip ++ %Include klanguagebutton.sip ++ %Include klistviewsearchline.sip ++ %Include kpassivepopup.sip ++ %Include kpixmapregionselectordialog.sip ++ %Include kpixmapregionselectorwidget.sip ++ %Include kshortcutdialog.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include ktoolbarlabelaction.sip ++ %Include kwindowinfo.sip diff --git a/sip/tdeui/tdeui-kde341.diff b/sip/tdeui/tdeui-kde341.diff new file mode 100644 index 0000000..cdefe26 --- /dev/null +++ b/sip/tdeui/tdeui-kde341.diff @@ -0,0 +1,21 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kactionselector.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kiconviewsearchline.sip ++ %Include kinputdialog.sip ++ %Include klanguagebutton.sip ++ %Include klistviewsearchline.sip ++ %Include kpassivepopup.sip ++ %Include kpixmapregionselectordialog.sip ++ %Include kpixmapregionselectorwidget.sip ++ %Include kshortcutdialog.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include ktoolbarlabelaction.sip ++ %Include kwindowinfo.sip diff --git a/sip/tdeui/tdeui-kde342.diff b/sip/tdeui/tdeui-kde342.diff new file mode 100644 index 0000000..cdefe26 --- /dev/null +++ b/sip/tdeui/tdeui-kde342.diff @@ -0,0 +1,21 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kactionselector.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kiconviewsearchline.sip ++ %Include kinputdialog.sip ++ %Include klanguagebutton.sip ++ %Include klistviewsearchline.sip ++ %Include kpassivepopup.sip ++ %Include kpixmapregionselectordialog.sip ++ %Include kpixmapregionselectorwidget.sip ++ %Include kshortcutdialog.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include ktoolbarlabelaction.sip ++ %Include kwindowinfo.sip diff --git a/sip/tdeui/tdeui-kde343.diff b/sip/tdeui/tdeui-kde343.diff new file mode 100644 index 0000000..cdefe26 --- /dev/null +++ b/sip/tdeui/tdeui-kde343.diff @@ -0,0 +1,21 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kactionselector.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kiconviewsearchline.sip ++ %Include kinputdialog.sip ++ %Include klanguagebutton.sip ++ %Include klistviewsearchline.sip ++ %Include kpassivepopup.sip ++ %Include kpixmapregionselectordialog.sip ++ %Include kpixmapregionselectorwidget.sip ++ %Include kshortcutdialog.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include ktoolbarlabelaction.sip ++ %Include kwindowinfo.sip diff --git a/sip/tdeui/tdeui-kde350.diff b/sip/tdeui/tdeui-kde350.diff new file mode 100644 index 0000000..965e2c3 --- /dev/null +++ b/sip/tdeui/tdeui-kde350.diff @@ -0,0 +1,23 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kactionselector.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kiconviewsearchline.sip ++ %Include kinputdialog.sip ++ %Include klanguagebutton.sip ++ %Include klistviewsearchline.sip ++ %Include kpassivepopup.sip ++ %Include kpixmapregionselectordialog.sip ++ %Include kpixmapregionselectorwidget.sip ++ %Include kscrollview.sip ++ %Include kshortcutdialog.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include ktimezonewidget.sip ++ %Include ktoolbarlabelaction.sip ++ %Include kwindowinfo.sip diff --git a/sip/tdeui/tdeui-kde351.diff b/sip/tdeui/tdeui-kde351.diff new file mode 100644 index 0000000..965e2c3 --- /dev/null +++ b/sip/tdeui/tdeui-kde351.diff @@ -0,0 +1,23 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kactionselector.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kiconviewsearchline.sip ++ %Include kinputdialog.sip ++ %Include klanguagebutton.sip ++ %Include klistviewsearchline.sip ++ %Include kpassivepopup.sip ++ %Include kpixmapregionselectordialog.sip ++ %Include kpixmapregionselectorwidget.sip ++ %Include kscrollview.sip ++ %Include kshortcutdialog.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include ktimezonewidget.sip ++ %Include ktoolbarlabelaction.sip ++ %Include kwindowinfo.sip diff --git a/sip/tdeui/tdeui-kde352.diff b/sip/tdeui/tdeui-kde352.diff new file mode 100644 index 0000000..965e2c3 --- /dev/null +++ b/sip/tdeui/tdeui-kde352.diff @@ -0,0 +1,23 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kactionselector.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kiconviewsearchline.sip ++ %Include kinputdialog.sip ++ %Include klanguagebutton.sip ++ %Include klistviewsearchline.sip ++ %Include kpassivepopup.sip ++ %Include kpixmapregionselectordialog.sip ++ %Include kpixmapregionselectorwidget.sip ++ %Include kscrollview.sip ++ %Include kshortcutdialog.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include ktimezonewidget.sip ++ %Include ktoolbarlabelaction.sip ++ %Include kwindowinfo.sip diff --git a/sip/tdeui/tdeui-kde353.diff b/sip/tdeui/tdeui-kde353.diff new file mode 100644 index 0000000..965e2c3 --- /dev/null +++ b/sip/tdeui/tdeui-kde353.diff @@ -0,0 +1,23 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kactionselector.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kiconviewsearchline.sip ++ %Include kinputdialog.sip ++ %Include klanguagebutton.sip ++ %Include klistviewsearchline.sip ++ %Include kpassivepopup.sip ++ %Include kpixmapregionselectordialog.sip ++ %Include kpixmapregionselectorwidget.sip ++ %Include kscrollview.sip ++ %Include kshortcutdialog.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include ktimezonewidget.sip ++ %Include ktoolbarlabelaction.sip ++ %Include kwindowinfo.sip diff --git a/sip/tdeui/tdeuimod.sip.in b/sip/tdeui/tdeuimod.sip.in new file mode 100644 index 0000000..e9f603c --- /dev/null +++ b/sip/tdeui/tdeuimod.sip.in @@ -0,0 +1,123 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE_3_5_2 + +%Copying + + This software is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2 of + the License, or (at your option) any later version. + + This software is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public + License along with this library; see the file COPYING. + If not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%End + +%Module tdeui + +%Import qt/qtmod.sip +%Import qtxml/qtxmlmod.sip +%Import dcopmod.sip +%Import tdecoremod.sip +%Import tdefxmod.sip + +%Include kaboutapplication.sip +%Include kaboutdialog.sip +%Include kaboutkde.sip +%Include kaction.sip +%Include kactionshortcutlist.sip +%Include kactivelabel.sip +%Include kanimwidget.sip +%Include karrowbutton.sip +%Include kauthicon.sip +%Include kbugreport.sip +%Include kbuttonbox.sip +%Include kcharselect.sip +%Include kcmenumngr.sip +%Include kcmodule.sip +%Include kcolorbtn.sip +%Include kcolorcombo.sip +%Include kcolordialog.sip +%Include kcolordrag.sip +%Include kcombobox.sip +%Include kcommand.sip +%Include kcompletionbox.sip +%Include kcursor.sip +%Include kdatepicker.sip +%Include kdatetbl.sip +%Include kdatewidget.sip +%Include kdcopactionproxy.sip +%Include kdialog.sip +%Include kdialogbase.sip +%Include kdockwidget.sip +%Include kdualcolorbutton.sip +%Include keditcl.sip +%Include keditlistbox.sip +%Include kedittoolbar.sip +%Include kfontcombo.sip +%Include kfontdialog.sip +%Include kguiitem.sip +%Include khelpmenu.sip +%Include kiconview.sip +%Include kjanuswidget.sip +%Include kkeybutton.sip +%Include kkeydialog.sip +%Include kled.sip +%Include klineedit.sip +%Include klineeditdlg.sip +%Include klistbox.sip +%Include klistview.sip +%Include kmainwindow.sip +%Include kmainwindowiface.sip +%Include kmenubar.sip +%Include kmessagebox.sip +%Include knuminput.sip +%Include knumvalidator.sip +%Include kpanelapplet.sip +%Include kpanelappmenu.sip +%Include kpanelextension.sip +%Include kpanelmenu.sip +%Include kpassdlg.sip +%Include kpixmapio.sip +%Include kpopupmenu.sip +%Include kprogress.sip +%Include kpushbutton.sip +%Include krestrictedline.sip +%Include krootpixmap.sip +%Include kruler.sip +%Include kselect.sip +%Include kseparator.sip +%Include ksqueezedtextlabel.sip +%Include kstatusbar.sip +%Include kstdaction.sip +%Include kstdguiitem.sip +%Include kstringvalidator.sip +%Include ksystemtray.sip +%Include ktabctl.sip +%Include ktextbrowser.sip +%Include ktip.sip +%Include ktoolbar.sip +%Include ktoolbarbutton.sip +%Include ktoolbarradiogroup.sip +%Include kurllabel.sip +%Include kwindowlistmenu.sip +%Include kwizard.sip +%Include kwordwrap.sip +%Include kxmlguibuilder.sip +%Include kxmlguiclient.sip +%Include kxmlguifactory.sip +%Include qxembed.sip +@mark@ -- cgit v1.2.1