diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-16 09:06:37 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-16 09:06:37 +0000 |
commit | 39d98386f72c65826e162e3e8fd36752ec469252 (patch) | |
tree | 5cec746207c4c892d064beafca1de94568a3aeb9 /sip | |
download | pytde-39d98386f72c65826e162e3e8fd36752ec469252.tar.gz pytde-39d98386f72c65826e162e3e8fd36752ec469252.zip |
Move python-kde3 to the more correct python-trinity
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/libraries/python-trinity@1247483 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'sip')
652 files changed, 62667 insertions, 0 deletions
diff --git a/sip/dcop/dcopclient.sip b/sip/dcop/dcopclient.sip new file mode 100644 index 0000000..6c8dab3 --- /dev/null +++ b/sip/dcop/dcopclient.sip @@ -0,0 +1,175 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module dcop version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class DCOPClientTransaction; + +class DCOPClient : QObject +{ +%TypeHeaderCode +#include <dcopclient.h> +%End + + +public: + DCOPClient (); + static void setServerAddress (const QCString&); + bool attach (); + void bindToApp (); + bool detach (); + bool isAttached () const; + bool isAttachedToForeignServer () const; + bool acceptCalls () const; + void setAcceptCalls (bool); + +%If ( KDE_3_0_3 - ) + bool qtBridgeEnabled (); + void setQtBridgeEnabled (bool); +%End + + QCString registerAs (const QCString&, bool = 1); + bool isRegistered () const; + QCString appId () const; + int socket () const; + void suspend (); + void resume (); + +%If ( KDE_3_1_0 - ) + bool isSuspended () const; +%End + + bool send (const QCString&, const QCString&, const QCString&, const QByteArray&); + bool send (const QCString&, const QCString&, const QCString&, const QString&); + +%If ( KDE_3_2_0 - ) + bool call (const QCString&, const QCString&, const QCString&, const QByteArray&, QCString& /Out/, QByteArray& /Out/, bool, int); +%End + + bool call (const QCString&, const QCString&, const QCString&, const QByteArray&, QCString& /Out/, QByteArray& /Out/, bool = 0); + +%If ( KDE_3_3_0 - ) + int callAsync (const QCString&, const QCString&, const QCString&, const QByteArray&, QObject*, const char*); +%End + + +%If ( KDE_3_2_0 - ) + bool findObject (const QCString&, const QCString&, const QCString&, const QByteArray&, QCString& /Out/, QCString& /Out/, bool, int); +%End + + bool findObject (const QCString&, const QCString&, const QCString&, const QByteArray&, QCString& /Out/, QCString& /Out/, bool = 0); + void emitDCOPSignal (const QCString&, const QCString&, const QByteArray&); + void emitDCOPSignal (const QCString&, const QByteArray&); + bool connectDCOPSignal (const QCString&, const QCString&, const QCString&, const QCString&, const QCString&, bool); + bool connectDCOPSignal (const QCString&, const QCString&, const QCString&, const QCString&, bool); + bool disconnectDCOPSignal (const QCString&, const QCString&, const QCString&, const QCString&, const QCString&); + bool disconnectDCOPSignal (const QCString&, const QCString&, const QCString&, const QCString&); + virtual bool process (const QCString&, const QByteArray&, QCString&, QByteArray&); + DCOPClientTransaction* beginTransaction (); + void endTransaction (DCOPClientTransaction*, QCString&, QByteArray&); + Q_INT32 transactionId (); + bool isApplicationRegistered (const QCString&); + QCStringList registeredApplications (); + QCStringList remoteObjects (const QCString&, bool* = 0); + QCStringList remoteInterfaces (const QCString&, const QCString&, bool* = 0); + QCStringList remoteFunctions (const QCString&, const QCString&, bool* = 0); + bool receive (const QCString&, const QCString&, const QCString&, const QByteArray&, QCString& /Out/, QByteArray& /Out/); + bool find (const QCString&, const QCString&, const QCString&, const QByteArray&, QCString& /Out/, QByteArray& /Out/); + static QCString normalizeFunctionSignature (const QCString&); + QCString senderId () const; + void setDefaultObject (const QCString&); + QCString defaultObject () const; + void setNotifications (bool); + void setDaemonMode (bool); + +%If ( KDE_3_2_0 - ) + void setPriorityCall (bool); +%End + + static DCOPClient* mainClient (); + static void setMainClient (DCOPClient*); + +%If ( KDE_3_2_0 - ) + static DCOPClient* findLocalClient (const QCString&); +%End + + static void emergencyClose (); + static const char* postMortemSender (); + static const char* postMortemObject (); + static const char* postMortemFunction (); + static QCString dcopServerFile (const QCString& = 0); + static QCString dcopServerFileOld (const QCString& = 0); + +%If ( KDE_3_2_0 - ) + static QCString iceauthPath (); +%End + + +signals: + void applicationRegistered (const QCString&); + void applicationRemoved (const QCString&); + void attachFailed (const QString&); + void blockUserInput (bool); + +%If ( KDE_3_2_0 - ) + void callBack (int, const QCString&, const QByteArray&); +%End + + +protected slots: + void processSocketData (int); + +public: + +%If ( KDE_3_2_3 - ) +//ig void handleAsyncReply (DCOPClient::ReplyStruct*); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( KDE_3_2_0 - KDE_3_3_0 ) + int callAsync (const QCString&, const QCString&, const QCString&, const QByteArray&, SIP_RXOBJ_CON, SIP_SLOT_CON (int, const QCString&, const QByteArray&)); + +//force +%ConvertToSubClassCode + // The table of Python class objects indexed by their names. The table + // must be sorted by name. + + static sipStringTypeClassMap map[] = { + {sipName_DCOPClient, &sipClass_DCOPClient}, + }; + + sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0])); +%End +//end +%End + + +}; // class DCOPClient + +typedef QValueList<QCString> QCStringList; diff --git a/sip/dcop/dcopmod.sip.in b/sip/dcop/dcopmod.sip.in new file mode 100644 index 0000000..9f9e0fb --- /dev/null +++ b/sip/dcop/dcopmod.sip.in @@ -0,0 +1,43 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module dcop 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 dcop + +%Timeline { KDE_3_0_0 KDE_3_0_1 KDE_3_0_3 KDE_3_1_0 KDE_3_1_1 KDE_3_1_2 KDE_3_1_3 KDE_3_1_4 KDE_3_1_5 KDE_3_2_0 KDE_3_2_1 KDE_3_2_2 KDE_3_2_3 KDE_3_3_0 KDE_3_3_1 KDE_3_3_2 KDE_3_4_0 KDE_3_4_1 KDE_3_4_2 KDE_3_4_3 KDE_3_5_0 KDE_3_5_1 KDE_3_5_2 KDE_3_5_3 } + +%Platforms { D_MANDRAKE ALL } + +%Import qt/qtmod.sip + +%Include dcopclient.sip +%Include dcopobject.sip +%Include dcopref.sip +%Include dcopstub.sip +%Include typedefs.sip +@mark@ + diff --git a/sip/dcop/dcopobject.sip b/sip/dcop/dcopobject.sip new file mode 100644 index 0000000..7b7ee1c --- /dev/null +++ b/sip/dcop/dcopobject.sip @@ -0,0 +1,82 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module dcop version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class DCOPObject +{ +%TypeHeaderCode +#include <dcopobject.h> +%End + + +public: + DCOPObject (); + DCOPObject (QObject*); + DCOPObject (const QCString&); + QCString objId () const; + bool setObjId (const QCString&); + virtual bool process (const QCString&, const QByteArray&, QCString&, QByteArray&); + virtual bool processDynamic (const QCString&, const QByteArray&, QCString&, QByteArray&); + virtual QCStringList functionsDynamic (); + virtual QCStringList interfacesDynamic (); + virtual QCStringList interfaces (); + virtual QCStringList functions (); + void emitDCOPSignal (const QCString&, const QByteArray&); + bool connectDCOPSignal (const QCString&, const QCString&, const QCString&, const QCString&, bool); + bool disconnectDCOPSignal (const QCString&, const QCString&, const QCString&, const QCString&); + +%If ( KDE_3_1_0 - ) + DCOPClient* callingDcopClient (); + void setCallingDcopClient (DCOPClient*); +%End + + static bool hasObject (const QCString&); + static DCOPObject* find (const QCString&); + static QPtrList<DCOPObject> match (const QCString&); + static QCString objectName (QObject*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class DCOPObject + + +class DCOPObjectProxy +{ +%TypeHeaderCode +#include <dcopobject.h> +%End + + +public: + DCOPObjectProxy (); + DCOPObjectProxy (DCOPClient*); + virtual bool process (const QCString&, const QCString&, const QByteArray&, QCString&, QByteArray&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class DCOPObjectProxy + diff --git a/sip/dcop/dcopref.sip b/sip/dcop/dcopref.sip new file mode 100644 index 0000000..ec09034 --- /dev/null +++ b/sip/dcop/dcopref.sip @@ -0,0 +1,109 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module dcop version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 DCOPReply +{ +%TypeHeaderCode +#include <dcopref.h> +%End + + +public: + bool isValid () const; + QByteArray data; + QCString type; + +}; // class DCOPReply + +%End + + +%If ( KDE_3_1_0 - ) + +//ig class DCOPArg; + +%End + + +class DCOPRef +{ +%TypeHeaderCode +#include <dcopref.h> +%End + + +public: + DCOPRef (); + DCOPRef (const DCOPRef&); + DCOPRef (const QCString&, const QCString&); + DCOPRef (DCOPObject*); + DCOPRef (const QCString&, const QCString&, const QCString&); + bool isNull () const; + QCString app () const; + +%If ( KDE_3_1_0 - ) + QCString obj () const; +%End + + QCString object () const; + QCString type () const; + void setRef (const QCString&, const QCString&); + void setRef (const QCString&, const QCString&, const QCString&); + void clear (); + +%If ( KDE_3_1_0 - ) + DCOPClient* dcopClient () const; + void setDCOPClient (DCOPClient*); + +%If ( KDE_3_2_0 - ) + + enum EventLoopFlag + { + NoEventLoop, + UseEventLoop + }; + +%End + + DCOPReply call (const QCString&); + +%If ( KDE_3_2_0 - ) + DCOPReply callExt (const QCString&, DCOPRef::EventLoopFlag = NoEventLoop , int = -1); +%End + + bool send (const QCString&); +%End + + +}; // class DCOPRef + + +%If ( KDE_3_1_4 - ) +//igx QDataStream& operator << (QDataStream&, const DCOPRef&); +//igx QDataStream& operator >> (QDataStream&, DCOPRef&); +%End diff --git a/sip/dcop/dcopstub.sip b/sip/dcop/dcopstub.sip new file mode 100644 index 0000000..a6ba829 --- /dev/null +++ b/sip/dcop/dcopstub.sip @@ -0,0 +1,68 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module dcop version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class DCOPStub +{ +%TypeHeaderCode +#include <dcopstub.h> +%End + + +public: + DCOPStub (const QCString&, const QCString&); + DCOPStub (DCOPClient*, const QCString&, const QCString&); + +%If ( KDE_3_2_0 - ) + DCOPStub (const DCOPRef&); +%End + + QCString app () const; + QCString obj () const; + + enum Status + { + CallSucceeded, + CallFailed + }; + + Status status () const; + bool ok () const; + +protected: + void setStatus (DCOPStub::Status); + virtual void callFailed (); + DCOPClient* dcopClient (); + +%If ( KDE_3_1_0 - ) +//ig DCOPStub (DCOPStub::never_use_t); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class DCOPStub + diff --git a/sip/dcop/typedefs.sip b/sip/dcop/typedefs.sip new file mode 100644 index 0000000..ba1f4c5 --- /dev/null +++ b/sip/dcop/typedefs.sip @@ -0,0 +1,107 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module dcop version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +typedef uint mode_t; +typedef long time_t; +typedef ulong size_t; +typedef int ssize_t; +typedef int pid_t; +typedef ulong Window; +typedef bool Bool; +typedef long off_t; + + +/*%MappedType QValueList<pid_t> +//converts a Python list of long +{ +%TypeHeaderCode +#include <qvaluelist.h> +%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<long> on the heap. + + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + if (sipPy == Py_None) + { + *sipCppPtr = NULL; + + return 0; + } + + QValueList<pid_t> *qvl = new QValueList<pid_t>; + + 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/glossary.html b/sip/glossary.html new file mode 100644 index 0000000..0c026cb --- /dev/null +++ b/sip/glossary.html @@ -0,0 +1,40 @@ +<h2><a name="abstract">Abstract</a></h2> +<p> +Abstract classes are used as base classes. You cannot create +an instance of an abstract class directly - you need to subclass +it. In the subclass, you need to overload <i>all</i> of the +class's <a href="#purevirtual">pure virtual</a> methods. These +are marked as "pure virtual" in these docs, and are also indicated +by a " = 0" at the end of the method declaration. +</p> +<p> +If your subclass doesn't overload the pure virtual methods in the +abstract base class, you won't be able to create an instance of it. +</p> + +<h2><a name="purevirtual">pure virtual</a></h2> +<p> +Pure virtual methods are members of an <a href="#abstract">abstract</a> +class (they're what makes the class abstract in the first place). Pure +virtual methods are nothing more than place holders - there is no code +associated with them +</p> + + +<h2><a name="variables">variables</a></h2> +<p> +Class variables can be read and written from Python. Global or static +variables are <i>read only</i>. Variables that are "protected" or. +"private" in C++ are not implemented. +</p> + +<h2><a name="slots">slots</a></h2> +<p> +When using Qt or KDE in C++, methods involving connections to slots +take 2 arguments: a QObject 'receiver' and a char* 'slot' name. In Python +you only need to provide a single value - the name of a Python callable +method or function which will be connected to a signal. The method or +function does not need to be in the class where it is reference, and does +not have to be in a class at all. There are other options - see the +"Signals and Slots" documentation for more information. +</p> diff --git a/sip/kabc/address.sip b/sip/kabc/address.sip new file mode 100644 index 0000000..d15d169 --- /dev/null +++ b/sip/kabc/address.sip @@ -0,0 +1,150 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KABC +{ + +class Address +{ +%TypeHeaderCode +#include <address.h> +%End + + +public: + typedef QValueList<KABC::Address> List; + +%If ( KDE_3_1_0 - ) + typedef QValueList<int> TypeList; +%End + + + enum Type + { + Dom, + Intl, + Postal, + Parcel, + Home, + Work, + Pref + }; + + Address (); + Address (int); + +%If ( KDE_3_1_0 - ) + bool operator == (const KABC::Address&) const; + bool operator != (const KABC::Address&) const; +%End + + bool isEmpty () const; + void clear (); + void setId (const QString&); + QString id () const; + void setType (int); + int type () const; + +%If ( KDE_3_1_0 - ) + QString typeLabel () const; +%End + + void setPostOfficeBox (const QString&); + QString postOfficeBox () const; + +%If ( KDE_3_1_0 - ) + static QString postOfficeBoxLabel (); +%End + + void setExtended (const QString&); + QString extended () const; + +%If ( KDE_3_1_0 - ) + static QString extendedLabel (); +%End + + void setStreet (const QString&); + QString street () const; + +%If ( KDE_3_1_0 - ) + static QString streetLabel (); +%End + + void setLocality (const QString&); + QString locality () const; + +%If ( KDE_3_1_0 - ) + static QString localityLabel (); +%End + + void setRegion (const QString&); + QString region () const; + +%If ( KDE_3_1_0 - ) + static QString regionLabel (); +%End + + void setPostalCode (const QString&); + QString postalCode () const; + +%If ( KDE_3_1_0 - ) + static QString postalCodeLabel (); +%End + + void setCountry (const QString&); + QString country () const; + +%If ( KDE_3_1_0 - ) + static QString countryLabel (); +%End + + void setLabel (const QString&); + QString label () const; + +%If ( KDE_3_1_0 - ) + static QString labelLabel (); + static KABC::Address::TypeList typeList (); + static QString typeLabel (int); +%End + + void dump () const; + +%If ( KDE_3_2_0 - ) + QString formattedAddress (const QString& = QString ::null , const QString& = QString ::null ) const; + static QString countryToISO (const QString&); + static QString ISOtoCountry (const QString&); +%End + + +}; // class Address + + +%If ( KDE_3_1_0 - ) +//igx QDataStream& operator << (QDataStream&, const KABC::Address&); +//igx QDataStream& operator >> (QDataStream&, KABC::Address&); +%End + +}; // namespace KABC + diff --git a/sip/kabc/addressbook.sip b/sip/kabc/addressbook.sip new file mode 100644 index 0000000..a3fa824 --- /dev/null +++ b/sip/kabc/addressbook.sip @@ -0,0 +1,229 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KABC +{ + +class AddressBook : QObject +{ +%TypeHeaderCode +#include <resource.h> +#include <addressbook.h> +%End + + +public: + +//ig class Iterator; + + +//ig class ConstIterator; + + AddressBook (); + +%If ( KDE_3_2_0 - ) + AddressBook (const QString&); +%End + + KABC::Ticket* requestSaveTicket (KABC::Resource* = 0); + +%If ( KDE_3_2_0 - ) + void releaseSaveTicket (KABC::Ticket*); +%End + + bool load (); + +%If ( KDE_3_2_0 - ) + bool asyncLoad (); +%End + + bool save (KABC::Ticket*); + +%If ( KDE_3_2_0 - ) + bool asyncSave (KABC::Ticket*); +%End + +//igx KABC::AddressBook::ConstIterator begin () const; +//igx KABC::AddressBook::Iterator begin (); +//igx KABC::AddressBook::ConstIterator end () const; +//igx KABC::AddressBook::Iterator end (); + void clear (); + void insertAddressee (const KABC::Addressee&); + void removeAddressee (const KABC::Addressee&); +//ig void removeAddressee (const KABC::AddressBook::Iterator&); +//igx KABC::AddressBook::Iterator find (const Addressee&); + KABC::Addressee findByUid (const QString&); + +%If ( KDE_3_2_0 - ) + KABC::Addressee::List allAddressees (); +%End + + KABC::Addressee::List findByName (const QString&); + KABC::Addressee::List findByEmail (const QString&); + KABC::Addressee::List findByCategory (const QString&); + virtual QString identifier (); + +%If ( KDE_3_1_0 - ) + KABC::Field::List fields (int = KABC ::Field ::All ); + bool addCustomField (const QString&, int = KABC ::Field ::All , const QString& = QString ::null , const QString& = QString ::null ); +%End + + bool addResource (KABC::Resource*); + +%If ( KDE_3_1_0 - ) + bool removeResource (KABC::Resource*); + QPtrList<KABC::Resource> resources (); + void setErrorHandler (KABC::ErrorHandler*); + void error (const QString&); + void cleanUp (); +%End + + void dump () const; + void emitAddressBookLocked (); + void emitAddressBookUnlocked (); + void emitAddressBookChanged (); + +%If ( KDE_3_5_0 - ) + bool loadingHasFinished () const; +%End + + +signals: + void addressBookChanged (KABC::AddressBook*); + void addressBookLocked (KABC::AddressBook*); + void addressBookUnlocked (KABC::AddressBook*); + +%If ( KDE_3_2_0 - ) + void loadingFinished (KABC::Resource*); + void savingFinished (KABC::Resource*); +%End + + +protected slots: + +%If ( KDE_3_2_0 - ) + void resourceLoadingFinished (KABC::Resource*); + void resourceSavingFinished (KABC::Resource*); + void resourceLoadingError (KABC::Resource*, const QString&); + void resourceSavingError (KABC::Resource*, const QString&); +%End + + +protected: + +%If ( KDE_3_1_0 - ) + void deleteRemovedAddressees (); + void setStandardResource (KABC::Resource*); + KABC::Resource* standardResource (); + +%If ( KDE_3_2_0 - ) +//ig KRES::Manager<KABC::Resource>* resourceManager (); +%End + +%End + + +}; // class AddressBook + + +%If ( KDE_3_1_0 - ) +//igx QDataStream& operator << (QDataStream&, const KABC::AddressBook&); +//igx QDataStream& operator >> (QDataStream&, KABC::AddressBook&); +%End + +}; // namespace KABC + + + +%MappedType QPtrList<KABC::Resource> +//converts a Python list of KABC::Resource +{ +%TypeHeaderCode +#include <qptrlist.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList<KABC::Resource> *cpplist = (QPtrList<KABC::Resource> *)sipCpp; + KABC::Resource *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_KABC_Resource, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList<KABC::Resource> *cpplist = new QPtrList<KABC::Resource>; + + PyObject *elem; + KABC::Resource *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KABC::Resource *)sipForceConvertToType(elem, sipType_KABC_Resource, 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/kabc/addressee.sip b/sip/kabc/addressee.sip new file mode 100644 index 0000000..803b4d2 --- /dev/null +++ b/sip/kabc/addressee.sip @@ -0,0 +1,468 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE_3_4_3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KABC +{ + +class Addressee +{ +%TypeHeaderCode +#include <addressee.h> +%End + + +public: +//ig typedef QValueList<KABC::Addressee> List; + +%If ( KDE_3_4_2 - ) + typedef QMap<QString,KABC::Addressee> Map; +%End + + Addressee (); + Addressee (const KABC::Addressee&); + +%If ( KDE_3_1_0 - ) + bool operator == (const KABC::Addressee&) const; + bool operator != (const KABC::Addressee&) const; +%End + + bool isEmpty () const; + void setUid (const QString&); + QString uid () const; + +%If ( KDE_3_1_0 - ) + static QString uidLabel (); +%End + + void setName (const QString&); + QString name () const; + +%If ( KDE_3_1_0 - ) + static QString nameLabel (); +%End + + void setFormattedName (const QString&); + QString formattedName () const; + +%If ( KDE_3_1_0 - ) + static QString formattedNameLabel (); +%End + + void setFamilyName (const QString&); + QString familyName () const; + +%If ( KDE_3_1_0 - ) + static QString familyNameLabel (); +%End + + void setGivenName (const QString&); + QString givenName () const; + +%If ( KDE_3_1_0 - ) + static QString givenNameLabel (); +%End + + void setAdditionalName (const QString&); + QString additionalName () const; + +%If ( KDE_3_1_0 - ) + static QString additionalNameLabel (); +%End + + void setPrefix (const QString&); + QString prefix () const; + +%If ( KDE_3_1_0 - ) + static QString prefixLabel (); +%End + + void setSuffix (const QString&); + QString suffix () const; + +%If ( KDE_3_1_0 - ) + static QString suffixLabel (); +%End + + void setNickName (const QString&); + QString nickName () const; + +%If ( KDE_3_1_0 - ) + static QString nickNameLabel (); +%End + + void setBirthday (const QDateTime&); + QDateTime birthday () const; + +%If ( KDE_3_1_0 - ) + static QString birthdayLabel (); + static QString homeAddressStreetLabel (); + static QString homeAddressLocalityLabel (); + static QString homeAddressRegionLabel (); + static QString homeAddressPostalCodeLabel (); + static QString homeAddressCountryLabel (); + static QString homeAddressLabelLabel (); + static QString businessAddressStreetLabel (); + static QString businessAddressLocalityLabel (); + static QString businessAddressRegionLabel (); + static QString businessAddressPostalCodeLabel (); + static QString businessAddressCountryLabel (); + static QString businessAddressLabelLabel (); + static QString homePhoneLabel (); + static QString businessPhoneLabel (); + static QString mobilePhoneLabel (); + static QString homeFaxLabel (); + static QString businessFaxLabel (); + static QString carPhoneLabel (); + static QString isdnLabel (); + static QString pagerLabel (); + static QString emailLabel (); +%End + + void setMailer (const QString&); + QString mailer () const; + +%If ( KDE_3_1_0 - ) + static QString mailerLabel (); +%End + + void setTimeZone (const KABC::TimeZone&); + KABC::TimeZone timeZone () const; + +%If ( KDE_3_1_0 - ) + static QString timeZoneLabel (); +%End + + void setGeo (const KABC::Geo&); + KABC::Geo geo () const; + +%If ( KDE_3_1_0 - ) + static QString geoLabel (); +%End + + void setTitle (const QString&); + QString title () const; + +%If ( KDE_3_1_0 - ) + static QString titleLabel (); +%End + + void setRole (const QString&); + QString role () const; + +%If ( KDE_3_1_0 - ) + static QString roleLabel (); +%End + + void setOrganization (const QString&); + QString organization () const; + +%If ( KDE_3_1_0 - ) + static QString organizationLabel (); +%End + + void setNote (const QString&); + QString note () const; + +%If ( KDE_3_1_0 - ) + static QString noteLabel (); +%End + + void setProductId (const QString&); + QString productId () const; + +%If ( KDE_3_1_0 - ) + static QString productIdLabel (); +%End + + void setRevision (const QDateTime&); + QDateTime revision () const; + +%If ( KDE_3_1_0 - ) + static QString revisionLabel (); +%End + + void setSortString (const QString&); + QString sortString () const; + +%If ( KDE_3_1_0 - ) + static QString sortStringLabel (); +%End + + void setUrl (const KURL&); + KURL url () const; + +%If ( KDE_3_1_0 - ) + static QString urlLabel (); + void setSecrecy (const KABC::Secrecy&); + KABC::Secrecy secrecy () const; + static QString secrecyLabel (); + void setLogo (const KABC::Picture&); + KABC::Picture logo () const; + static QString logoLabel (); + void setPhoto (const KABC::Picture&); + KABC::Picture photo () const; + static QString photoLabel (); + void setSound (const KABC::Sound&); + KABC::Sound sound () const; + static QString soundLabel (); + void setAgent (const KABC::Agent&); + KABC::Agent agent () const; + static QString agentLabel (); +%End + + void setNameFromString (const QString&); + QString realName () const; + +%If ( KDE_3_1_0 - ) + QString assembledName () const; +%End + + QString fullEmail (const QString& = QString ::null ) const; + void insertEmail (const QString&, bool = 0); + void removeEmail (const QString&); + QString preferredEmail () const; + QStringList emails () const; + +%If ( KDE_3_4_2 - ) + void setEmails (const QStringList&); +%End + + void insertPhoneNumber (const KABC::PhoneNumber&); + void removePhoneNumber (const KABC::PhoneNumber&); + KABC::PhoneNumber phoneNumber (int) const; + KABC::PhoneNumber::List phoneNumbers () const; + +%If ( KDE_3_1_0 - ) + KABC::PhoneNumber::List phoneNumbers (int) const; +%End + + KABC::PhoneNumber findPhoneNumber (const QString&) const; + +%If ( KDE_3_1_0 - ) + void insertKey (const KABC::Key&); + void removeKey (const KABC::Key&); + KABC::Key key (int, QString = QString ::null ) const; + KABC::Key::List keys () const; + +%If ( KDE_3_4_2 - ) + void setKeys (const KABC::Key::List&); +%End + + KABC::Key::List keys (int, QString = QString ::null ) const; + KABC::Key findKey (const QString&) const; +%End + + void insertAddress (const KABC::Address&); + void removeAddress (const KABC::Address&); + KABC::Address address (int) const; + KABC::Address::List addresses () const; + +%If ( KDE_3_1_0 - ) + KABC::Address::List addresses (int) const; +%End + + KABC::Address findAddress (const QString&) const; + void insertCategory (const QString&); + void removeCategory (const QString&); + bool hasCategory (const QString&) const; + void setCategories (const QStringList&); + QStringList categories () const; + void insertCustom (const QString&, const QString&, const QString&); + void removeCustom (const QString&, const QString&); + QString custom (const QString&, const QString&) const; + void setCustoms (const QStringList&); + QStringList customs () const; + +%If ( KDE_3_1_0 - ) + static void parseEmailAddress (const QString&, QString&, QString&); +%End + + void dump () const; + +%If ( KDE_3_1_0 - ) + QString asString () const; + void setResource (KABC::Resource*); + KABC::Resource* resource () const; + void setChanged (bool); + bool changed () const; + +%If ( KDE_3_4_2 - ) + static void setSortMode (KABC::SortMode*); + bool operator < (const KABC::Addressee&); +%End + +%End + + + + + + +}; // class Addressee + + +%If ( KDE_3_1_0 - ) +//igx QDataStream& operator << (QDataStream&, const KABC::Addressee&); +//igx QDataStream& operator >> (QDataStream&, KABC::Addressee&); +%End + +}; // namespace KABC + + + +%MappedType KABC::Addressee::List +//converts a Python list of KABC::Addressee +{ +%TypeHeaderCode +#include <qvaluelist.h> +//typedef QValueList<KABC::Addressee> List; +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList<KABC::Addressee> *cpplist = (QValueList<KABC::Addressee> *)sipCpp; + PyObject *inst; + + // Get it. + QValueList<KABC::Addressee>::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromNewType(new KABC::Addressee (*it), sipType_KABC_Addressee, NULL)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList<KABC::Addressee> *cpplist = new QValueList<KABC::Addressee>; + + PyObject *elem; + KABC::Addressee *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KABC::Addressee *)sipForceConvertToType(elem, sipType_KABC_Addressee, 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 KABC::Address::List +//converts a Python list of KABC::Address +{ +%TypeHeaderCode +#include <qvaluelist.h> +//typedef QValueList<KABC::Address> List; +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList<KABC::Address> *cpplist = (QValueList<KABC::Address> *)sipCpp; + PyObject *inst; + + // Get it. + QValueList<KABC::Address>::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromNewType(new KABC::Address (*it), sipType_KABC_Address, NULL)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList<KABC::Address> *cpplist = new QValueList<KABC::Address>; + + PyObject *elem; + KABC::Address *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KABC::Address *)sipForceConvertToType(elem, sipType_KABC_Address, 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/kabc/addresseedialog.sip b/sip/kabc/addresseedialog.sip new file mode 100644 index 0000000..abfd6d2 --- /dev/null +++ b/sip/kabc/addresseedialog.sip @@ -0,0 +1,75 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KABC +{ + +class AddresseeItem : QListViewItem +{ +%TypeHeaderCode +#include <addresseedialog.h> +%End + + +public: + + enum columns + { + Name, + Email + }; + + AddresseeItem (QListView*, const KABC::Addressee&); + KABC::Addressee addressee () const; + virtual QString key (int, bool) const; + +}; // class AddresseeItem + + +class AddresseeDialog : KDialogBase +{ +%TypeHeaderCode +#include <addresseedialog.h> +%End + + +public: + AddresseeDialog (QWidget* = 0, bool = 0); + KABC::Addressee addressee (); + KABC::Addressee::List addressees (); + static KABC::Addressee getAddressee (QWidget*); + static KABC::Addressee::List getAddressees (QWidget*); + +protected slots: + +%If ( KDE_3_1_0 - ) + void addressBookChanged (); +%End + + +}; // class AddresseeDialog + +}; // namespace KABC + diff --git a/sip/kabc/addresseelist.sip b/sip/kabc/addresseelist.sip new file mode 100644 index 0000000..f526464 --- /dev/null +++ b/sip/kabc/addresseelist.sip @@ -0,0 +1,122 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <qwidget.h> +#include <addresseelist.h> +%End + + +%If ( KDE_3_1_0 - ) +namespace KABC +{ +namespace SortingTraits +{ + +class Uid +{ +%TypeHeaderCode +#include <addresseelist.h> +%End + + +public: + static bool eq (const KABC::Addressee&, const KABC::Addressee&); + static bool lt (const KABC::Addressee&, const KABC::Addressee&); + +}; // class Uid + + +class Name +{ +%TypeHeaderCode +#include <addresseelist.h> +%End + + +public: + static bool eq (const KABC::Addressee&, const KABC::Addressee&); + static bool lt (const KABC::Addressee&, const KABC::Addressee&); + +}; // class Name + + +class FormattedName +{ +%TypeHeaderCode +#include <addresseelist.h> +%End + + +public: + static bool eq (const KABC::Addressee&, const KABC::Addressee&); + static bool lt (const KABC::Addressee&, const KABC::Addressee&); + +}; // class FormattedName + + +class FamilyName +{ +%TypeHeaderCode +#include <addresseelist.h> +%End + + +public: + static bool eq (const KABC::Addressee&, const KABC::Addressee&); + static bool lt (const KABC::Addressee&, const KABC::Addressee&); + +}; // class FamilyName + + +class GivenName +{ +%TypeHeaderCode +#include <addresseelist.h> +%End + + +public: + static bool eq (const KABC::Addressee&, const KABC::Addressee&); + static bool lt (const KABC::Addressee&, const KABC::Addressee&); + +}; // class GivenName + +}; // namespace SortingTraits + + +enum +{ + Uid, + Name, + FormattedName, + FamilyName, + GivenName +}; + +}; // namespace KABC + +%End + diff --git a/sip/kabc/addresslineedit.sip b/sip/kabc/addresslineedit.sip new file mode 100644 index 0000000..54606e9 --- /dev/null +++ b/sip/kabc/addresslineedit.sip @@ -0,0 +1,66 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 - ) +namespace KABC +{ + +class AddressLineEdit : KLineEdit +{ +%TypeHeaderCode +#include <addresslineedit.h> +%End + + +public: + AddressLineEdit (QWidget*, bool = 1, const char* = 0); + virtual void setFont (const QFont&); + +%If ( KDE_3_2_0 - ) + static KConfig* config (); +%End + + +public slots: + void cursorAtEnd (); + void enableCompletion (bool); + +protected: + virtual void loadAddresses (); + void addAddress (const QString&); + virtual void keyPressEvent (QKeyEvent*); + virtual void dropEvent (QDropEvent*); + virtual void paste (); + virtual void insert (const QString&); + virtual void mouseReleaseEvent (QMouseEvent*); + void doCompletion (bool); + +}; // class AddressLineEdit + +}; // namespace KABC + +%End + diff --git a/sip/kabc/agent.sip b/sip/kabc/agent.sip new file mode 100644 index 0000000..4aff028 --- /dev/null +++ b/sip/kabc/agent.sip @@ -0,0 +1,58 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 - ) +namespace KABC +{ + +class Agent +{ +%TypeHeaderCode +#include <agent.h> +%End + + +public: + Agent (); + Agent (const QString&); + Agent (KABC::Addressee*); + bool operator == (const KABC::Agent&) const; + bool operator != (const KABC::Agent&) const; + void setUrl (const QString&); + void setAddressee (KABC::Addressee*); + bool isIntern () const; + QString url () const; + KABC::Addressee* addressee () const; + QString asString () const; + +}; // class Agent + +//igx QDataStream& operator << (QDataStream&, const KABC::Agent&); +//igx QDataStream& operator >> (QDataStream&, KABC::Agent&); +}; // namespace KABC + +%End + diff --git a/sip/kabc/distributionlist.sip b/sip/kabc/distributionlist.sip new file mode 100644 index 0000000..a2bddbf --- /dev/null +++ b/sip/kabc/distributionlist.sip @@ -0,0 +1,175 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KABC +{ + +class DistributionList +{ +%TypeHeaderCode +#include <distributionlist.h> +%End + + +public: + + class Entry + { + + public: + typedef QValueList<KABC::DistributionList::Entry> List; + Entry (); + Entry (const KABC::Addressee&, const QString&); + KABC::Addressee addressee; + QString email; + + }; // class Entry + + +public: + DistributionList (KABC::DistributionListManager*, const QString&); + void setName (const QString&); + QString name () const; + void insertEntry (const KABC::Addressee&, const QString& = QString ::null ); + void removeEntry (const KABC::Addressee&, const QString& = QString ::null ); + QStringList emails () const; + KABC::DistributionList::Entry::List entries () const; + +}; // class DistributionList + + +class DistributionListManager +{ +%TypeHeaderCode +#include <distributionlist.h> +%End + + +public: + DistributionListManager (KABC::AddressBook*); + KABC::DistributionList* list (const QString&); + void insert (KABC::DistributionList*); + void remove (KABC::DistributionList*); + QStringList listNames (); + bool load (); + bool save (); + +}; // class DistributionListManager + + +%If ( KDE_3_1_0 - ) + +class DistributionListWatcher : QObject +{ +%TypeHeaderCode +#include <distributionlist.h> +%End + + +public: + static KABC::DistributionListWatcher* self (); + +signals: + void changed (); + +protected: + DistributionListWatcher (); + ~DistributionListWatcher (); + +}; // class DistributionListWatcher + +%End + +}; // namespace KABC + + + +%MappedType KABC::DistributionList::Entry::List +//converts a Python list of KABC::DistributionList::Entry +{ +%TypeHeaderCode +#include <distributionlist.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList<KABC::DistributionList::Entry> *cpplist = (QValueList<KABC::DistributionList::Entry> *)sipCpp; + PyObject *inst; + + // Get it. + QValueList<KABC::DistributionList::Entry>::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromNewType(new KABC::DistributionList::Entry (*it), sipType_KABC_DistributionList_Entry, NULL)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList<KABC::DistributionList::Entry> *cpplist = new QValueList<KABC::DistributionList::Entry>; + + PyObject *elem; + KABC::DistributionList::Entry *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KABC::DistributionList::Entry *)sipForceConvertToType(elem, sipType_KABC_DistributionList_Entry, 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/kabc/distributionlistdialog.sip b/sip/kabc/distributionlistdialog.sip new file mode 100644 index 0000000..720afd0 --- /dev/null +++ b/sip/kabc/distributionlistdialog.sip @@ -0,0 +1,74 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 - ) +namespace KABC +{ + +class DistributionListDialog : KDialogBase +{ +%TypeHeaderCode +#include <distributionlistdialog.h> +%End + + +public: + DistributionListDialog (KABC::AddressBook*, QWidget*); + +}; // class DistributionListDialog + + +class EmailSelector : KDialogBase +{ +%TypeHeaderCode +#include <distributionlistdialog.h> +%End + + +public: + EmailSelector (const QStringList&, const QString&, QWidget*); + QString selected (); + static QString getEmail (const QStringList&, const QString&, QWidget*); + +}; // class EmailSelector + + +class DistributionListEditorWidget : QWidget +{ +%TypeHeaderCode +#include <distributionlistdialog.h> +%End + + +public: + DistributionListEditorWidget (KABC::AddressBook*, QWidget*); + +}; // class DistributionListEditorWidget + +}; // namespace KABC + +%End + diff --git a/sip/kabc/distributionlisteditor.sip b/sip/kabc/distributionlisteditor.sip new file mode 100644 index 0000000..e97df7f --- /dev/null +++ b/sip/kabc/distributionlisteditor.sip @@ -0,0 +1,47 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KABC +{ + +class EmailSelectDialog : KDialogBase +{ +%TypeHeaderCode +#include <distributionlisteditor.h> +%End + + +public: + EmailSelectDialog (const QStringList&, const QString&, QWidget*); + QString selected (); + static QString getEmail (const QStringList&, const QString&, QWidget*); + +}; // class EmailSelectDialog + + +//ig class DistributionListEditor : QWidget; + +}; // namespace KABC + diff --git a/sip/kabc/errorhandler.sip b/sip/kabc/errorhandler.sip new file mode 100644 index 0000000..9a24483 --- /dev/null +++ b/sip/kabc/errorhandler.sip @@ -0,0 +1,97 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 - ) +namespace KABC +{ + +class ErrorHandler +{ +%TypeHeaderCode +#include <qwidget.h> +#include <errorhandler.h> +%End + + +public: + virtual void error (const QString&) = 0; + +}; // class ErrorHandler + + +class ConsoleErrorHandler : KABC::ErrorHandler +{ +%TypeHeaderCode +#include <qwidget.h> +#include <errorhandler.h> +%End + + +public: + virtual void error (const QString&); + +}; // class ConsoleErrorHandler + + +%If ( KDE_3_5_1 - ) + +class GUIErrorHandler : KABC::ErrorHandler +{ +%TypeHeaderCode +#include <errorhandler.h> +%End + + +public: + virtual void error (const QString&); + +}; // class GUIErrorHandler + +%End + + +%If ( KDE_3_2_0 - ) + +class GuiErrorHandler : KABC::ErrorHandler +{ +%TypeHeaderCode +#include <qwidget.h> +#include <errorhandler.h> +%End + + +public: + GuiErrorHandler (QWidget*); + virtual void error (const QString&); + +}; // class GuiErrorHandler + +%End + +}; // namespace KABC + +%End + diff --git a/sip/kabc/field.sip b/sip/kabc/field.sip new file mode 100644 index 0000000..ab4d670 --- /dev/null +++ b/sip/kabc/field.sip @@ -0,0 +1,160 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 - ) +namespace KABC +{ + +class Field +{ +%TypeHeaderCode +#include <field.h> +%End + + +public: + typedef QValueList<KABC::Field*> List; + + enum FieldCategory + { + All, + Frequent, + Address, + Email, + Personal, + Organization, + CustomCategory + }; + + virtual QString label (); + virtual int category (); + static QString categoryLabel (int); + virtual QString value (const KABC::Addressee&); + virtual bool setValue (KABC::Addressee&, const QString&); + +%If ( KDE_3_2_0 - ) + QString sortKey (const KABC::Addressee&); +%End + + virtual bool isCustom (); + virtual bool equals (KABC::Field*); + static KABC::Field::List allFields (); + static KABC::Field::List defaultFields (); + static KABC::Field* createCustomField (const QString&, int, const QString&, const QString&); + static void deleteFields (); + static void saveFields (KConfig*, const QString&, const KABC::Field::List&); + static void saveFields (const QString&, const KABC::Field::List&); + static KABC::Field::List restoreFields (KConfig*, const QString&); + static KABC::Field::List restoreFields (const QString&); + +protected: + static void createField (int, int = 0); + static void createDefaultField (int, int = 0); + +private: +//ig Field (KABC::Field::FieldImpl*); + ~Field (); +//force + Field (); +//end + +}; // class Field + +}; // namespace KABC + +%End + + + +%If (KDE_3_1_0 - ) +%MappedType KABC::Field::List +//converts a Python list of KABC::Field +{ +%TypeHeaderCode +#include <field.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList<KABC::Field *> *cpplist = (QValueList<KABC::Field *> *)sipCpp; + PyObject *inst; + + // Get it. + QValueList<KABC::Field *>::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromType((KABC::Field *)(*it), sipType_KABC_Field, NULL)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList<KABC::Field *> *cpplist = new QValueList<KABC::Field *>; + + PyObject *elem; + KABC::Field *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KABC::Field *)sipForceConvertToType(elem, sipType_KABC_Field, 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/kabc/format.sip b/sip/kabc/format.sip new file mode 100644 index 0000000..30b863b --- /dev/null +++ b/sip/kabc/format.sip @@ -0,0 +1,43 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KABC +{ + +class Format +{ +%TypeHeaderCode +#include <format.h> +%End + + +public: + virtual bool load (KABC::AddressBook*, const QString&) = 0; + virtual bool save (KABC::AddressBook*, const QString&) = 0; + +}; // class Format + +}; // namespace KABC + diff --git a/sip/kabc/formatfactory.sip b/sip/kabc/formatfactory.sip new file mode 100644 index 0000000..14ec70c --- /dev/null +++ b/sip/kabc/formatfactory.sip @@ -0,0 +1,74 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 - ) +namespace KABC +{ + +class FormatInfo +{ +%TypeHeaderCode +#include <formatfactory.h> +%End + + +public: + QString library; + QString nameLabel; + QString descriptionLabel; + +}; // class FormatInfo + + +class FormatFactory +{ +%TypeHeaderCode +#include <formatfactory.h> +%End + + +public: + static KABC::FormatFactory* self (); + KABC::FormatPlugin* format (const QString&); + QStringList formats (); + KABC::FormatInfo* info (const QString&); + +protected: + FormatFactory (); + +protected: + +%If ( - KDE_3_2_0 ) + ~FormatFactory (); +%End + + +}; // class FormatFactory + +}; // namespace KABC + +%End + diff --git a/sip/kabc/formatplugin.sip b/sip/kabc/formatplugin.sip new file mode 100644 index 0000000..bb63e8d --- /dev/null +++ b/sip/kabc/formatplugin.sip @@ -0,0 +1,50 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 - ) +namespace KABC +{ + +class FormatPlugin : KABC::Plugin +{ +%TypeHeaderCode +#include <formatplugin.h> +%End + + +public: + virtual bool load (KABC::Addressee&, QFile*) = 0; + virtual bool loadAll (KABC::AddressBook*, KABC::Resource*, QFile*) = 0; + virtual void save (const KABC::Addressee&, QFile*) = 0; + virtual void saveAll (KABC::AddressBook*, KABC::Resource*, QFile*) = 0; + virtual bool checkFormat (QFile*) const = 0; + +}; // class FormatPlugin + +}; // namespace KABC + +%End + diff --git a/sip/kabc/geo.sip b/sip/kabc/geo.sip new file mode 100644 index 0000000..48124a7 --- /dev/null +++ b/sip/kabc/geo.sip @@ -0,0 +1,61 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KABC +{ + +class Geo +{ +%TypeHeaderCode +#include <geo.h> +%End + + +public: + Geo (); + Geo (float, float); + void setLatitude (float); + float latitude () const; + void setLongitude (float); + float longitude () const; + bool isValid () const; + bool operator == (const KABC::Geo&) const; + +%If ( KDE_3_1_0 - ) + bool operator != (const KABC::Geo&) const; +%End + + QString asString () const; + +}; // class Geo + + +%If ( KDE_3_1_0 - ) +//igx QDataStream& operator << (QDataStream&, const KABC::Geo&); +//igx QDataStream& operator >> (QDataStream&, KABC::Geo&); +%End + +}; // namespace KABC + diff --git a/sip/kabc/kabc-kde310.diff b/sip/kabc/kabc-kde310.diff new file mode 100644 index 0000000..294c0cb --- /dev/null +++ b/sip/kabc/kabc-kde310.diff @@ -0,0 +1,17 @@ ++ %Include addresseelist.sip ++ %Include addresslineedit.sip ++ %Include agent.sip ++ %Include distributionlistdialog.sip ++ %Include errorhandler.sip ++ %Include field.sip ++ %Include formatfactory.sip ++ %Include formatplugin.sip ++ %Include key.sip ++ %Include ldapclient.sip ++ %Include picture.sip ++ %Include plugin.sip ++ %Include resourceselectdialog.sip ++ %Include secrecy.sip ++ %Include sound.sip ++ %Include vcardconverter.sip ++ %Include vcardformatplugin.sip diff --git a/sip/kabc/kabc-kde311.diff b/sip/kabc/kabc-kde311.diff new file mode 100644 index 0000000..294c0cb --- /dev/null +++ b/sip/kabc/kabc-kde311.diff @@ -0,0 +1,17 @@ ++ %Include addresseelist.sip ++ %Include addresslineedit.sip ++ %Include agent.sip ++ %Include distributionlistdialog.sip ++ %Include errorhandler.sip ++ %Include field.sip ++ %Include formatfactory.sip ++ %Include formatplugin.sip ++ %Include key.sip ++ %Include ldapclient.sip ++ %Include picture.sip ++ %Include plugin.sip ++ %Include resourceselectdialog.sip ++ %Include secrecy.sip ++ %Include sound.sip ++ %Include vcardconverter.sip ++ %Include vcardformatplugin.sip diff --git a/sip/kabc/kabc-kde312.diff b/sip/kabc/kabc-kde312.diff new file mode 100644 index 0000000..294c0cb --- /dev/null +++ b/sip/kabc/kabc-kde312.diff @@ -0,0 +1,17 @@ ++ %Include addresseelist.sip ++ %Include addresslineedit.sip ++ %Include agent.sip ++ %Include distributionlistdialog.sip ++ %Include errorhandler.sip ++ %Include field.sip ++ %Include formatfactory.sip ++ %Include formatplugin.sip ++ %Include key.sip ++ %Include ldapclient.sip ++ %Include picture.sip ++ %Include plugin.sip ++ %Include resourceselectdialog.sip ++ %Include secrecy.sip ++ %Include sound.sip ++ %Include vcardconverter.sip ++ %Include vcardformatplugin.sip diff --git a/sip/kabc/kabc-kde313.diff b/sip/kabc/kabc-kde313.diff new file mode 100644 index 0000000..294c0cb --- /dev/null +++ b/sip/kabc/kabc-kde313.diff @@ -0,0 +1,17 @@ ++ %Include addresseelist.sip ++ %Include addresslineedit.sip ++ %Include agent.sip ++ %Include distributionlistdialog.sip ++ %Include errorhandler.sip ++ %Include field.sip ++ %Include formatfactory.sip ++ %Include formatplugin.sip ++ %Include key.sip ++ %Include ldapclient.sip ++ %Include picture.sip ++ %Include plugin.sip ++ %Include resourceselectdialog.sip ++ %Include secrecy.sip ++ %Include sound.sip ++ %Include vcardconverter.sip ++ %Include vcardformatplugin.sip diff --git a/sip/kabc/kabc-kde314.diff b/sip/kabc/kabc-kde314.diff new file mode 100644 index 0000000..294c0cb --- /dev/null +++ b/sip/kabc/kabc-kde314.diff @@ -0,0 +1,17 @@ ++ %Include addresseelist.sip ++ %Include addresslineedit.sip ++ %Include agent.sip ++ %Include distributionlistdialog.sip ++ %Include errorhandler.sip ++ %Include field.sip ++ %Include formatfactory.sip ++ %Include formatplugin.sip ++ %Include key.sip ++ %Include ldapclient.sip ++ %Include picture.sip ++ %Include plugin.sip ++ %Include resourceselectdialog.sip ++ %Include secrecy.sip ++ %Include sound.sip ++ %Include vcardconverter.sip ++ %Include vcardformatplugin.sip diff --git a/sip/kabc/kabc-kde320.diff b/sip/kabc/kabc-kde320.diff new file mode 100644 index 0000000..a7c2d68 --- /dev/null +++ b/sip/kabc/kabc-kde320.diff @@ -0,0 +1,21 @@ ++ %Include addresseelist.sip ++ %Include addresslineedit.sip ++ %Include agent.sip ++ %Include distributionlistdialog.sip ++ %Include errorhandler.sip ++ %Include field.sip ++ %Include formatfactory.sip ++ %Include formatplugin.sip ++ %Include key.sip ++ %Include ldapclient.sip +//+ %Include ldifconverter.sip ++ %Include lock.sip ++ %Include locknull.sip ++ %Include picture.sip ++ %Include plugin.sip ++ %Include resourcefile.sip ++ %Include resourceselectdialog.sip ++ %Include secrecy.sip ++ %Include sound.sip ++ %Include vcardconverter.sip ++ %Include vcardformatplugin.sip diff --git a/sip/kabc/kabc-kde322.diff b/sip/kabc/kabc-kde322.diff new file mode 100644 index 0000000..a7c2d68 --- /dev/null +++ b/sip/kabc/kabc-kde322.diff @@ -0,0 +1,21 @@ ++ %Include addresseelist.sip ++ %Include addresslineedit.sip ++ %Include agent.sip ++ %Include distributionlistdialog.sip ++ %Include errorhandler.sip ++ %Include field.sip ++ %Include formatfactory.sip ++ %Include formatplugin.sip ++ %Include key.sip ++ %Include ldapclient.sip +//+ %Include ldifconverter.sip ++ %Include lock.sip ++ %Include locknull.sip ++ %Include picture.sip ++ %Include plugin.sip ++ %Include resourcefile.sip ++ %Include resourceselectdialog.sip ++ %Include secrecy.sip ++ %Include sound.sip ++ %Include vcardconverter.sip ++ %Include vcardformatplugin.sip diff --git a/sip/kabc/kabc-kde323.diff b/sip/kabc/kabc-kde323.diff new file mode 100644 index 0000000..a7c2d68 --- /dev/null +++ b/sip/kabc/kabc-kde323.diff @@ -0,0 +1,21 @@ ++ %Include addresseelist.sip ++ %Include addresslineedit.sip ++ %Include agent.sip ++ %Include distributionlistdialog.sip ++ %Include errorhandler.sip ++ %Include field.sip ++ %Include formatfactory.sip ++ %Include formatplugin.sip ++ %Include key.sip ++ %Include ldapclient.sip +//+ %Include ldifconverter.sip ++ %Include lock.sip ++ %Include locknull.sip ++ %Include picture.sip ++ %Include plugin.sip ++ %Include resourcefile.sip ++ %Include resourceselectdialog.sip ++ %Include secrecy.sip ++ %Include sound.sip ++ %Include vcardconverter.sip ++ %Include vcardformatplugin.sip diff --git a/sip/kabc/kabc-kde330.diff b/sip/kabc/kabc-kde330.diff new file mode 100644 index 0000000..d89a0ac --- /dev/null +++ b/sip/kabc/kabc-kde330.diff @@ -0,0 +1,24 @@ ++ %Include addresseelist.sip ++ %Include addresslineedit.sip ++ %Include agent.sip ++ %Include distributionlistdialog.sip ++ %Include errorhandler.sip ++ %Include field.sip ++ %Include formatfactory.sip ++ %Include formatplugin.sip ++ %Include key.sip ++ %Include ldapclient.sip ++ %Include ldapconfigwidget.sip ++ %Include ldapurl.sip ++ %Include ldif.sip +//+ %Include ldifconverter.sip ++ %Include lock.sip ++ %Include locknull.sip ++ %Include picture.sip ++ %Include plugin.sip ++ %Include resourcefile.sip ++ %Include resourceselectdialog.sip ++ %Include secrecy.sip ++ %Include sound.sip ++ %Include vcardconverter.sip ++ %Include vcardformatplugin.sip diff --git a/sip/kabc/kabc-kde331.diff b/sip/kabc/kabc-kde331.diff new file mode 100644 index 0000000..d89a0ac --- /dev/null +++ b/sip/kabc/kabc-kde331.diff @@ -0,0 +1,24 @@ ++ %Include addresseelist.sip ++ %Include addresslineedit.sip ++ %Include agent.sip ++ %Include distributionlistdialog.sip ++ %Include errorhandler.sip ++ %Include field.sip ++ %Include formatfactory.sip ++ %Include formatplugin.sip ++ %Include key.sip ++ %Include ldapclient.sip ++ %Include ldapconfigwidget.sip ++ %Include ldapurl.sip ++ %Include ldif.sip +//+ %Include ldifconverter.sip ++ %Include lock.sip ++ %Include locknull.sip ++ %Include picture.sip ++ %Include plugin.sip ++ %Include resourcefile.sip ++ %Include resourceselectdialog.sip ++ %Include secrecy.sip ++ %Include sound.sip ++ %Include vcardconverter.sip ++ %Include vcardformatplugin.sip diff --git a/sip/kabc/kabc-kde332.diff b/sip/kabc/kabc-kde332.diff new file mode 100644 index 0000000..d89a0ac --- /dev/null +++ b/sip/kabc/kabc-kde332.diff @@ -0,0 +1,24 @@ ++ %Include addresseelist.sip ++ %Include addresslineedit.sip ++ %Include agent.sip ++ %Include distributionlistdialog.sip ++ %Include errorhandler.sip ++ %Include field.sip ++ %Include formatfactory.sip ++ %Include formatplugin.sip ++ %Include key.sip ++ %Include ldapclient.sip ++ %Include ldapconfigwidget.sip ++ %Include ldapurl.sip ++ %Include ldif.sip +//+ %Include ldifconverter.sip ++ %Include lock.sip ++ %Include locknull.sip ++ %Include picture.sip ++ %Include plugin.sip ++ %Include resourcefile.sip ++ %Include resourceselectdialog.sip ++ %Include secrecy.sip ++ %Include sound.sip ++ %Include vcardconverter.sip ++ %Include vcardformatplugin.sip diff --git a/sip/kabc/kabc-kde340.diff b/sip/kabc/kabc-kde340.diff new file mode 100644 index 0000000..24ca659 --- /dev/null +++ b/sip/kabc/kabc-kde340.diff @@ -0,0 +1,25 @@ ++ %Include addresseelist.sip ++ %Include addresslineedit.sip ++ %Include agent.sip ++ %Include distributionlistdialog.sip ++ %Include errorhandler.sip ++ %Include field.sip ++ %Include formatfactory.sip ++ %Include formatplugin.sip ++ %Include key.sip ++ %Include ldapclient.sip ++ %Include ldapconfigwidget.sip ++ %Include ldapurl.sip ++ %Include ldif.sip +//+ %Include ldifconverter.sip ++ %Include lock.sip ++ %Include locknull.sip ++ %Include picture.sip ++ %Include plugin.sip ++ %Include resourcefile.sip ++ %Include resourceselectdialog.sip ++ %Include secrecy.sip ++ %Include sortmode.sip ++ %Include sound.sip ++ %Include vcardconverter.sip ++ %Include vcardformatplugin.sip diff --git a/sip/kabc/kabc-kde341.diff b/sip/kabc/kabc-kde341.diff new file mode 100644 index 0000000..24ca659 --- /dev/null +++ b/sip/kabc/kabc-kde341.diff @@ -0,0 +1,25 @@ ++ %Include addresseelist.sip ++ %Include addresslineedit.sip ++ %Include agent.sip ++ %Include distributionlistdialog.sip ++ %Include errorhandler.sip ++ %Include field.sip ++ %Include formatfactory.sip ++ %Include formatplugin.sip ++ %Include key.sip ++ %Include ldapclient.sip ++ %Include ldapconfigwidget.sip ++ %Include ldapurl.sip ++ %Include ldif.sip +//+ %Include ldifconverter.sip ++ %Include lock.sip ++ %Include locknull.sip ++ %Include picture.sip ++ %Include plugin.sip ++ %Include resourcefile.sip ++ %Include resourceselectdialog.sip ++ %Include secrecy.sip ++ %Include sortmode.sip ++ %Include sound.sip ++ %Include vcardconverter.sip ++ %Include vcardformatplugin.sip diff --git a/sip/kabc/kabc-kde342.diff b/sip/kabc/kabc-kde342.diff new file mode 100644 index 0000000..24ca659 --- /dev/null +++ b/sip/kabc/kabc-kde342.diff @@ -0,0 +1,25 @@ ++ %Include addresseelist.sip ++ %Include addresslineedit.sip ++ %Include agent.sip ++ %Include distributionlistdialog.sip ++ %Include errorhandler.sip ++ %Include field.sip ++ %Include formatfactory.sip ++ %Include formatplugin.sip ++ %Include key.sip ++ %Include ldapclient.sip ++ %Include ldapconfigwidget.sip ++ %Include ldapurl.sip ++ %Include ldif.sip +//+ %Include ldifconverter.sip ++ %Include lock.sip ++ %Include locknull.sip ++ %Include picture.sip ++ %Include plugin.sip ++ %Include resourcefile.sip ++ %Include resourceselectdialog.sip ++ %Include secrecy.sip ++ %Include sortmode.sip ++ %Include sound.sip ++ %Include vcardconverter.sip ++ %Include vcardformatplugin.sip diff --git a/sip/kabc/kabc-kde343.diff b/sip/kabc/kabc-kde343.diff new file mode 100644 index 0000000..24ca659 --- /dev/null +++ b/sip/kabc/kabc-kde343.diff @@ -0,0 +1,25 @@ ++ %Include addresseelist.sip ++ %Include addresslineedit.sip ++ %Include agent.sip ++ %Include distributionlistdialog.sip ++ %Include errorhandler.sip ++ %Include field.sip ++ %Include formatfactory.sip ++ %Include formatplugin.sip ++ %Include key.sip ++ %Include ldapclient.sip ++ %Include ldapconfigwidget.sip ++ %Include ldapurl.sip ++ %Include ldif.sip +//+ %Include ldifconverter.sip ++ %Include lock.sip ++ %Include locknull.sip ++ %Include picture.sip ++ %Include plugin.sip ++ %Include resourcefile.sip ++ %Include resourceselectdialog.sip ++ %Include secrecy.sip ++ %Include sortmode.sip ++ %Include sound.sip ++ %Include vcardconverter.sip ++ %Include vcardformatplugin.sip diff --git a/sip/kabc/kabc-kde350.diff b/sip/kabc/kabc-kde350.diff new file mode 100644 index 0000000..24ca659 --- /dev/null +++ b/sip/kabc/kabc-kde350.diff @@ -0,0 +1,25 @@ ++ %Include addresseelist.sip ++ %Include addresslineedit.sip ++ %Include agent.sip ++ %Include distributionlistdialog.sip ++ %Include errorhandler.sip ++ %Include field.sip ++ %Include formatfactory.sip ++ %Include formatplugin.sip ++ %Include key.sip ++ %Include ldapclient.sip ++ %Include ldapconfigwidget.sip ++ %Include ldapurl.sip ++ %Include ldif.sip +//+ %Include ldifconverter.sip ++ %Include lock.sip ++ %Include locknull.sip ++ %Include picture.sip ++ %Include plugin.sip ++ %Include resourcefile.sip ++ %Include resourceselectdialog.sip ++ %Include secrecy.sip ++ %Include sortmode.sip ++ %Include sound.sip ++ %Include vcardconverter.sip ++ %Include vcardformatplugin.sip diff --git a/sip/kabc/kabc-kde351.diff b/sip/kabc/kabc-kde351.diff new file mode 100644 index 0000000..24ca659 --- /dev/null +++ b/sip/kabc/kabc-kde351.diff @@ -0,0 +1,25 @@ ++ %Include addresseelist.sip ++ %Include addresslineedit.sip ++ %Include agent.sip ++ %Include distributionlistdialog.sip ++ %Include errorhandler.sip ++ %Include field.sip ++ %Include formatfactory.sip ++ %Include formatplugin.sip ++ %Include key.sip ++ %Include ldapclient.sip ++ %Include ldapconfigwidget.sip ++ %Include ldapurl.sip ++ %Include ldif.sip +//+ %Include ldifconverter.sip ++ %Include lock.sip ++ %Include locknull.sip ++ %Include picture.sip ++ %Include plugin.sip ++ %Include resourcefile.sip ++ %Include resourceselectdialog.sip ++ %Include secrecy.sip ++ %Include sortmode.sip ++ %Include sound.sip ++ %Include vcardconverter.sip ++ %Include vcardformatplugin.sip diff --git a/sip/kabc/kabc-kde352.diff b/sip/kabc/kabc-kde352.diff new file mode 100644 index 0000000..24ca659 --- /dev/null +++ b/sip/kabc/kabc-kde352.diff @@ -0,0 +1,25 @@ ++ %Include addresseelist.sip ++ %Include addresslineedit.sip ++ %Include agent.sip ++ %Include distributionlistdialog.sip ++ %Include errorhandler.sip ++ %Include field.sip ++ %Include formatfactory.sip ++ %Include formatplugin.sip ++ %Include key.sip ++ %Include ldapclient.sip ++ %Include ldapconfigwidget.sip ++ %Include ldapurl.sip ++ %Include ldif.sip +//+ %Include ldifconverter.sip ++ %Include lock.sip ++ %Include locknull.sip ++ %Include picture.sip ++ %Include plugin.sip ++ %Include resourcefile.sip ++ %Include resourceselectdialog.sip ++ %Include secrecy.sip ++ %Include sortmode.sip ++ %Include sound.sip ++ %Include vcardconverter.sip ++ %Include vcardformatplugin.sip diff --git a/sip/kabc/kabc-kde353.diff b/sip/kabc/kabc-kde353.diff new file mode 100644 index 0000000..3ea9e5f --- /dev/null +++ b/sip/kabc/kabc-kde353.diff @@ -0,0 +1,25 @@ ++ %Include addresseelist.sip ++ %Include addresslineedit.sip ++ %Include agent.sip ++ %Include distributionlistdialog.sip ++ %Include errorhandler.sip ++ %Include field.sip ++ %Include formatfactory.sip ++ %Include formatplugin.sip ++ %Include key.sip ++ %Include ldapclient.sip ++ %Include ldapconfigwidget.sip ++ %Include ldapurl.sip ++ %Include ldif.sip ++ %Include ldifconverter.sip ++ %Include lock.sip ++ %Include locknull.sip ++ %Include picture.sip ++ %Include plugin.sip ++ %Include resourcefile.sip ++ %Include resourceselectdialog.sip ++ %Include secrecy.sip ++ %Include sortmode.sip ++ %Include sound.sip ++ %Include vcardconverter.sip ++ %Include vcardformatplugin.sip diff --git a/sip/kabc/kabcmod.sip.in b/sip/kabc/kabcmod.sip.in new file mode 100644 index 0000000..0b5234a --- /dev/null +++ b/sip/kabc/kabcmod.sip.in @@ -0,0 +1,55 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc 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 kabc + +%Import qt/qtmod.sip +%Import qtxml/qtxmlmod.sip +%Import dcopmod.sip +%Import kdecoremod.sip +%Import kdefxmod.sip +%Import kdeuimod.sip +%Import kiomod.sip +%Import kresourcesmod.sip + +%Include address.sip +%Include addressbook.sip +%Include addressee.sip +%Include addresseedialog.sip +%Include distributionlist.sip +%Include distributionlisteditor.sip +%Include format.sip +%Include geo.sip +//%Include ldifconverter.sip +%Include phonenumber.sip +%Include resource.sip +%Include stdaddressbook.sip +%Include timezone.sip +%Include vcardformat.sip +@mark@ + diff --git a/sip/kabc/key.sip b/sip/kabc/key.sip new file mode 100644 index 0000000..2321204 --- /dev/null +++ b/sip/kabc/key.sip @@ -0,0 +1,143 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 - ) +namespace KABC +{ + +class Key +{ +%TypeHeaderCode +#include <key.h> +%End + + +public: + typedef QValueList<KABC::Key> List; + typedef QValueList<int> TypeList; + + enum Types + { + X509, + PGP, + Custom + }; + + Key (const QString& = QString ::null , int = PGP ); + bool operator == (const KABC::Key&) const; + bool operator != (const KABC::Key&) const; + void setId (const QString&); + QString id () const; + void setBinaryData (const QByteArray&); + QByteArray binaryData () const; + void setTextData (const QString&); + QString textData () const; + bool isBinary () const; + void setType (int); + void setCustomTypeString (const QString&); + int type () const; + QString customTypeString () const; + static TypeList typeList (); + static QString typeLabel (int); + +}; // class Key + +//igx QDataStream& operator << (QDataStream&, const KABC::Key&); +//igx QDataStream& operator >> (QDataStream&, KABC::Key&); +}; // namespace KABC + +%End + + + +%MappedType KABC::Key::List +//converts a Python list of KABC::Key +{ +%TypeHeaderCode +#include <qvaluelist.h> +//typedef QValueList<KABC::Key> List; +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList<KABC::Key> *cpplist = (QValueList<KABC::Key> *)sipCpp; + PyObject *inst; + + // Get it. + QValueList<KABC::Key>::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromNewType(new KABC::Key(*it), sipType_KABC_Key, NULL)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList<KABC::Key> *cpplist = new QValueList<KABC::Key>; + + PyObject *elem; + KABC::Key *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KABC::Key *)sipForceConvertToType(elem, sipType_KABC_Key, 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/kabc/ldapclient.sip b/sip/kabc/ldapclient.sip new file mode 100644 index 0000000..610749e --- /dev/null +++ b/sip/kabc/ldapclient.sip @@ -0,0 +1,243 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 - ) +namespace KABC +{ +//ig typedef QValueList<QByteArray> LdapAttrValue; +//ig typedef QMap<QString,KABC::LdapAttrValue> LdapAttrMap; + +class LdapObject +{ +%TypeHeaderCode +#include <ldapclient.h> +%End + + +public: + LdapObject (); + +%If ( KDE_3_3_0 - ) + LdapObject (const QString&, KABC::LdapClient*); +%End + + LdapObject (const KABC::LdapObject&); + QString toString () const; + void clear (); + QString dn; +//ig LdapAttrMap attrs; + +%If ( KDE_3_3_0 - ) + KABC::LdapClient* client; +%End + + +protected: + void assign (const KABC::LdapObject&); + +public: + +%If ( - KDE_3_3_0 ) + LdapObject (QString); +%End + + +}; // class LdapObject + + +class LdapClient : QObject +{ +%TypeHeaderCode +#include <ldapclient.h> +%End + + +public: + LdapClient (QObject* = 0, const char* = 0); + bool isActive () const; + +signals: + void done (); + void error (const QString&); + void result (const KABC::LdapObject&); + +public slots: + void setHost (const QString&); + QString host () const; + void setPort (const QString&); + QString port () const; + void setBase (const QString&); + QString base () const; + +%If ( KDE_3_2_0 - ) + void setBindDN (const QString&); + QString bindDN () const; + void setPwdBindDN (const QString&); + QString pwdBindDN () const; +%End + + void setAttrs (const QStringList&); + QStringList attrs () const; + void setScope (const QString); + void startQuery (const QString&); + void cancelQuery (); + +protected slots: + void slotData (KIO::Job*, const QByteArray&); + void slotInfoMessage (KIO::Job*, const QString&); + void slotDone (); + +protected: + void startParseLDIF (); + void parseLDIF (const QByteArray&); + void endParseLDIF (); + +}; // class LdapClient + + +%If ( KDE_3_3_0 - ) + +class LdapResult +{ +%TypeHeaderCode +#include <ldapclient.h> +%End + + +public: + QString name; + QString email; + int clientNumber; + +}; // class LdapResult + +%End + + +%If ( KDE_3_3_0 - ) +typedef QValueList<KABC::LdapResult> LdapResultList; +%End + + +class LdapSearch : QObject +{ +%TypeHeaderCode +#include <ldapclient.h> +%End + + +public: + LdapSearch (); + void startSearch (const QString&); + void cancelSearch (); + bool isAvailable () const; + +signals: + void searchData (const QStringList&); + +%If ( KDE_3_3_0 - ) + void searchData (const KABC::LdapResultList&); +%End + + void searchDone (); + +}; // class LdapSearch + +}; // namespace KABC + +%End + + + +%If (KDE_3_3_0 - ) +%MappedType KABC::LdapResultList +//converts a Python list of KABC::LdapREsult +{ +%TypeHeaderCode +#include <ldapclient.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList<KABC::LdapResult> *cpplist = (QValueList<KABC::LdapResult> *)sipCpp; + PyObject *inst; + + // Get it. + QValueList<KABC::LdapResult>::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromNewType(new KABC::LdapResult(*it), sipType_KABC_LdapResult, NULL)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList<KABC::LdapResult> *cpplist = new QValueList<KABC::LdapResult>; + + PyObject *elem; + KABC::LdapResult *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KABC::LdapResult *)sipForceConvertToType(elem, sipType_KABC_LdapResult, 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/kabc/ldapconfigwidget.sip b/sip/kabc/ldapconfigwidget.sip new file mode 100644 index 0000000..ce1ddb1 --- /dev/null +++ b/sip/kabc/ldapconfigwidget.sip @@ -0,0 +1,105 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 - ) +namespace KABC +{ + +class LdapConfigWidget : QWidget +{ +%TypeHeaderCode +#include <ldapconfigwidget.h> +%End + + +public: + + enum LCW_Flags + { + W_USER, + W_PASS, + W_BINDDN, + W_REALM, + W_HOST, + W_PORT, + W_VER, + W_DN, + W_FILTER, + W_SECBOX, + W_AUTHBOX, + W_TIMELIMIT, + W_SIZELIMIT, + W_ALL + }; + + LdapConfigWidget (QWidget* = 0, const char* = 0, WFlags = 0); + LdapConfigWidget (int, QWidget* = 0, const char* = 0, WFlags = 0); + void setUser (const QString&); + QString user () const; + void setPassword (const QString&); + QString password () const; + void setBindDN (const QString&); + QString bindDN () const; + void setRealm (const QString&); + QString realm () const; + void setHost (const QString&); + QString host () const; + void setPort (int); + int port () const; + void setVer (int); + int ver () const; + void setDn (const QString&); + QString dn () const; + void setFilter (const QString&); + QString filter () const; + void setMech (const QString&); + QString mech () const; + void setSecNO (bool = 1); + bool isSecNO () const; + void setSecTLS (bool = 1); + bool isSecTLS () const; + void setSecSSL (bool = 1); + bool isSecSSL () const; + void setAuthAnon (bool = 1); + bool isAuthAnon () const; + void setAuthSimple (bool = 1); + bool isAuthSimple () const; + void setAuthSASL (bool = 1); + bool isAuthSASL () const; + void setSizeLimit (int); + int sizeLimit () const; + void setTimeLimit (int); + int timeLimit () const; + int flags () const; + void setFlags (int); + KABC::LDAPUrl url () const; + +}; // class LdapConfigWidget + +}; // namespace KABC + +%End + diff --git a/sip/kabc/ldapurl.sip b/sip/kabc/ldapurl.sip new file mode 100644 index 0000000..d0e6406 --- /dev/null +++ b/sip/kabc/ldapurl.sip @@ -0,0 +1,85 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 - ) +namespace KABC +{ + +class LDAPUrl : KURL +{ +%TypeHeaderCode +#include <ldapurl.h> +%End + + +public: + + class Extension + { + + public: + QString value; + bool critical; + + }; // class Extension + + +public: + + enum Scope + { + Base, + One, + Sub + }; + + LDAPUrl (); + LDAPUrl (const KURL&); + const QString& dn () const; + void setDn (const QString&); + const QStringList& attributes (); + void setAttributes (const QStringList&); + KABC::LDAPUrl::Scope scope () const; + void setScope (KABC::LDAPUrl::Scope); + const QString& filter () const; + void setFilter (QString); + bool hasExtension (const QString&) const; + KABC::LDAPUrl::Extension extension (const QString&) const; + QString extension (const QString&, bool& /Out/) const /PyName=extensionAndCritical/; + void setExtension (const QString&, const KABC::LDAPUrl::Extension&); + void setExtension (const QString&, const QString&, bool = 0); + void removeExtension (const QString&); + void updateQuery (); + +protected: + void parseQuery (); + +}; // class LDAPUrl + +}; // namespace KABC + +%End + diff --git a/sip/kabc/ldif.sip b/sip/kabc/ldif.sip new file mode 100644 index 0000000..b7deb95 --- /dev/null +++ b/sip/kabc/ldif.sip @@ -0,0 +1,99 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 - ) +namespace KABC +{ + +class LDIF +{ +%TypeHeaderCode +#include <ldif.h> +%End + + +public: + + enum ParseVal + { + None, + NewEntry, + EndEntry, + Item, + Control, + Err, + MoreData + }; + + + enum EntryType + { + Entry_None, + Entry_Add, + Entry_Del, + Entry_Mod, + Entry_Modrdn + }; + + + enum ModType + { + Mod_None, + Mod_Add, + Mod_Replace, + Mod_Del + }; + + LDIF (); + static QCString assembleLine (const QString&, const QByteArray&, uint = 0, bool = 0); + static QCString assembleLine (const QString&, const QCString&, uint = 0, bool = 0); + static QCString assembleLine (const QString&, const QString&, uint = 0, bool = 0); + static bool splitLine (const QCString&, QString&, QByteArray&); + static bool splitControl (const QCString&, QString&, bool&, QByteArray&); + void startParsing (); + KABC::LDIF::ParseVal processLine (); + KABC::LDIF::ParseVal nextItem (); + void setLDIF (const QByteArray&); + void endLDIF (); + KABC::LDIF::EntryType entryType () const; + int modType () const; + const QString& dn () const; + const QString& newRdn () const; + const QString& newSuperior () const; + bool delOldRdn () const; + const QString& attr () const; + const QByteArray& val () const; + bool isUrl () const; + bool critical () const; + const QString& oid () const; + uint lineNo () const; + +}; // class LDIF + +}; // namespace KABC + +%End + diff --git a/sip/kabc/ldifconverter.sip b/sip/kabc/ldifconverter.sip new file mode 100644 index 0000000..8bc4b52 --- /dev/null +++ b/sip/kabc/ldifconverter.sip @@ -0,0 +1,78 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <ldifconverter.h> +%End + + +%If ( KDE_3_2_0 - ) +namespace KABC +{ +namespace LDIFConverter +{ + +%If ( KDE_3_5_2 - ) +//ig bool LDIFToAddressee (const QString&, AddresseeList&, QDateTime = QDateTime ::currentDateTime ()); +//ig bool addresseeToLDIF (const AddresseeList&, QString&); +%End + +bool addresseeToLDIF (const KABC::Addressee&, QString&); +QString makeLDIFfieldString (QString, QString, bool = 1); +bool parseSingleLine (KABC::Addressee&, KABC::Address&, KABC::Address&, QString&); +bool splitLine (QString&, QString&, QString&); +bool evaluatePair (KABC::Addressee&, KABC::Address&, KABC::Address&, QString&, QString&); + +%If ( - KDE_3_5_2 ) +bool LDIFToAddressee (const QString&, KABC::Addressee::List&, QDateTime = QDateTime ::currentDateTime ()); +%MethodCode + + KABC::Addressee::List *xa1 = (KABC::Addressee::List *)a1; + + Py_BEGIN_ALLOW_THREADS + sipRes = KABC::LDIFConverter::LDIFToAddressee (*a0, *xa1, *a2); + Py_END_ALLOW_THREADS + +%End + +bool addresseeToLDIF (const KABC::Addressee::List&, QString&); +%MethodCode + + KABC::Addressee::List *xa0 = (KABC::Addressee::List *)a0; + + Py_BEGIN_ALLOW_THREADS + sipRes = KABC::LDIFConverter::addresseeToLDIF (*xa0, *a1); + Py_END_ALLOW_THREADS + +%End + +%End + +}; // namespace LDIFConverter + +}; // namespace KABC + +%End + diff --git a/sip/kabc/lock.sip b/sip/kabc/lock.sip new file mode 100644 index 0000000..82dbebb --- /dev/null +++ b/sip/kabc/lock.sip @@ -0,0 +1,57 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 - ) +namespace KABC +{ + +class Lock : QObject +{ +%TypeHeaderCode +#include <lock.h> +%End + + +public: + Lock (const QString&); + virtual bool lock (); + virtual bool unlock (); + virtual QString error () const; + QString lockFileName () const; + static bool readLockFile (const QString&, int&, QString&); + static bool writeLockFile (const QString&); + static QString locksDir (); + +signals: + void locked (); + void unlocked (); + +}; // class Lock + +}; // namespace KABC + +%End + diff --git a/sip/kabc/locknull.sip b/sip/kabc/locknull.sip new file mode 100644 index 0000000..6c24a38 --- /dev/null +++ b/sip/kabc/locknull.sip @@ -0,0 +1,49 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 - ) +namespace KABC +{ + +class LockNull : KABC::Lock +{ +%TypeHeaderCode +#include <locknull.h> +%End + + +public: + LockNull (bool); + bool lock (); + bool unlock (); + QString error () const; + +}; // class LockNull + +}; // namespace KABC + +%End + diff --git a/sip/kabc/phonenumber.sip b/sip/kabc/phonenumber.sip new file mode 100644 index 0000000..39f662b --- /dev/null +++ b/sip/kabc/phonenumber.sip @@ -0,0 +1,190 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KABC +{ + +class PhoneNumber +{ +%TypeHeaderCode +#include <phonenumber.h> +%End + + +public: + typedef QValueList<KABC::PhoneNumber> List; + +%If ( KDE_3_1_0 - ) + typedef QValueList<int> TypeList; + + enum Types + { + Home, + Work, + Msg, + Pref, + Voice, + Fax, + Cell, + Video, + Bbs, + Modem, + Car, + Isdn, + Pcs, + Pager + }; + +%End + + PhoneNumber (); + PhoneNumber (const QString&, int = Home ); + +%If ( KDE_3_1_0 - ) + bool operator == (const KABC::PhoneNumber&) const; + bool operator != (const KABC::PhoneNumber&) const; +%End + + void setId (const QString&); + QString id () const; + void setNumber (const QString&); + QString number () const; + void setType (int); + int type () const; + +%If ( KDE_3_1_0 - ) + QString typeLabel () const; + QString label () const; + static TypeList typeList (); + static QString typeLabel (int); + static QString label (int); +%End + + +public: + +%If ( - KDE_3_1_0 ) + + enum + { + Home, + Work, + Msg, + Pref, + Voice, + Fax, + Cell, + Video, + Bbs, + Modem, + Car, + Isdn, + Pcs, + Pager + }; + +%End + + +}; // class PhoneNumber + + +%If ( KDE_3_1_0 - ) +//igx QDataStream& operator << (QDataStream&, const KABC::PhoneNumber&); +//igx QDataStream& operator >> (QDataStream&, KABC::PhoneNumber&); +%End + +}; // namespace KABC + + + +%MappedType KABC::PhoneNumber::List +//converts a Python list of KABC::PhoneNumber +{ +%TypeHeaderCode +#include <qvaluelist.h> +//typedef QValueList<KABC::PhoneNumber> List; +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList<KABC::PhoneNumber> *cpplist = (QValueList<KABC::PhoneNumber> *)sipCpp; + PyObject *inst; + + // Get it. + QValueList<KABC::PhoneNumber>::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromNewType(new KABC::PhoneNumber(*it), sipType_KABC_PhoneNumber, NULL)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList<KABC::PhoneNumber> *cpplist = new QValueList<KABC::PhoneNumber>; + + PyObject *elem; + KABC::PhoneNumber *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KABC::PhoneNumber *)sipForceConvertToType(elem, sipType_KABC_PhoneNumber, 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/kabc/picture.sip b/sip/kabc/picture.sip new file mode 100644 index 0000000..453566e --- /dev/null +++ b/sip/kabc/picture.sip @@ -0,0 +1,60 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 - ) +namespace KABC +{ + +class Picture +{ +%TypeHeaderCode +#include <picture.h> +%End + + +public: + Picture (); + Picture (const QString&); + Picture (const QImage&); + bool operator == (const KABC::Picture&) const; + bool operator != (const KABC::Picture&) const; + void setUrl (const QString&); + void setData (const QImage&); + void setType (const QString&); + bool isIntern () const; + QString url () const; + QImage data () const; + QString type () const; + QString asString () const; + +}; // class Picture + +//igx QDataStream& operator << (QDataStream&, const KABC::Picture&); +//igx QDataStream& operator >> (QDataStream&, KABC::Picture&); +}; // namespace KABC + +%End + diff --git a/sip/kabc/plugin.sip b/sip/kabc/plugin.sip new file mode 100644 index 0000000..4df2c42 --- /dev/null +++ b/sip/kabc/plugin.sip @@ -0,0 +1,52 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 - ) +namespace KABC +{ + +class Plugin +{ +%TypeHeaderCode +#include <plugin.h> +%End + + +public: + Plugin (); + virtual void setType (const QString&); + virtual QString type () const; + virtual void setNameLabel (const QString&); + virtual QString nameLabel () const; + virtual void setDescriptionLabel (const QString&); + virtual QString descriptionLabel () const; + +}; // class Plugin + +}; // namespace KABC + +%End + diff --git a/sip/kabc/resource.sip b/sip/kabc/resource.sip new file mode 100644 index 0000000..14149cb --- /dev/null +++ b/sip/kabc/resource.sip @@ -0,0 +1,160 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KABC +{ + +class Ticket +{ +%TypeHeaderCode +#include <kabc/resource.h> +%End + + +public: + KABC::Resource* resource (); + +private: + Ticket (KABC::Resource*); + +}; // class Ticket + + +%If ( KDE_3_2_0 - ) + +class Resource : KRES::Resource +{ +%TypeHeaderCode +#include <kabc/resource.h> +%End + + +public: + +//ig class Iterator; + + +//ig class ConstIterator; + + Resource (const KConfig*); +//ig virtual KABC::Resource::ConstIterator begin () const; +//ig virtual KABC::Resource::Iterator begin (); +//ig virtual KABC::Resource::ConstIterator end () const; +//ig virtual KABC::Resource::Iterator end (); + KABC::AddressBook* addressBook (); + virtual void writeConfig (KConfig*); + virtual KABC::Ticket* requestSaveTicket () = 0; + virtual void releaseSaveTicket (KABC::Ticket*) = 0; + virtual bool load () = 0; + virtual bool asyncLoad (); + virtual void insertAddressee (const KABC::Addressee&); + virtual void removeAddressee (const KABC::Addressee&); + virtual bool save (KABC::Ticket*) = 0; + virtual bool asyncSave (KABC::Ticket*); + virtual KABC::Addressee findByUid (const QString&); + virtual KABC::Addressee::List findByName (const QString&); + virtual KABC::Addressee::List findByEmail (const QString&); + virtual KABC::Addressee::List findByCategory (const QString&); + virtual void clear (); + void setAddressBook (KABC::AddressBook*); + +signals: + void loadingFinished (KABC::Resource*); + void loadingError (KABC::Resource*, const QString&); + void savingFinished (KABC::Resource*); + void savingError (KABC::Resource*, const QString&); + +protected: + KABC::Ticket* createTicket (KABC::Resource*); + +}; // class Resource + +%End + + +%If ( KDE_3_1_0 - KDE_3_2_0 ) + +class Resource : KABC::Plugin +{ +%TypeHeaderCode +#include <kabc/resource.h> +%End + + +public: + Resource (KABC::AddressBook*); + virtual bool open (); + virtual void close (); + virtual KABC::Ticket* requestSaveTicket (); + virtual bool load (); + virtual bool save (KABC::Ticket*); + KABC::AddressBook* addressBook (); + virtual QString identifier () const; + virtual void removeAddressee (const KABC::Addressee&); + virtual void cleanUp (); + virtual void setReadOnly (bool); + virtual bool readOnly () const; + virtual void setFastResource (bool); + virtual bool fastResource () const; + virtual void setName (const QString); + virtual QString name () const; + static QString cryptStr (const QString&); + +protected: + KABC::Ticket* createTicket (KABC::Resource*); + +}; // class Resource + +%End + + +%If ( - KDE_3_1_0 ) + +class Resource +{ +%TypeHeaderCode +#include <kabc/resource.h> +%End + + +public: + Resource (KABC::AddressBook*); + virtual bool open (); + virtual void close (); + virtual KABC::Ticket* requestSaveTicket (); + virtual bool load (KABC::AddressBook*); + virtual bool save (KABC::Ticket*); + void setAddressBook (KABC::AddressBook*); + KABC::AddressBook* addressBook (); + +protected: + KABC::Ticket* createTicket (KABC::Resource*); + +}; // class Resource + +%End + +}; // namespace KABC + diff --git a/sip/kabc/resourcefile.sip b/sip/kabc/resourcefile.sip new file mode 100644 index 0000000..75786b8 --- /dev/null +++ b/sip/kabc/resourcefile.sip @@ -0,0 +1,176 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KABC +{ + +%If ( KDE_3_2_0 - ) + +class ResourceFile : KABC::Resource +{ +%TypeHeaderCode +#include <resourcefile.h> +%End + + +public: + +%If ( KDE_3_3_0 - ) + ResourceFile (const KConfig*); + ResourceFile (const QString&, const QString& = "vcard"); + virtual void writeConfig (KConfig*); + virtual bool doOpen (); + virtual void doClose (); + +%If ( KDE_3_5_1 - ) + virtual KABC::Ticket* requestSaveTicket (); + virtual void releaseSaveTicket (KABC::Ticket*); +%End + + virtual bool load (); + virtual bool asyncLoad (); + virtual bool save (KABC::Ticket*); + virtual bool asyncSave (KABC::Ticket*); +%End + + void setFileName (const QString&); + QString fileName () const; + +%If ( KDE_3_5_1 - ) + void setFormat (const QString&); + QString format () const; + +%If ( KDE_3_5_2 - ) + virtual void removeAddressee (const KABC::Addressee&); +%End + +%End + + +protected slots: + void fileChanged (); + +protected: + +%If ( KDE_3_3_0 - ) + void init (const QString&, const QString&); +%End + +//ig bool lock (const QString&); +//ig void unlock (const QString&); + +public: + +%If ( - KDE_3_5_2 ) + void removeAddressee (const KABC::Addressee&); +%End + + +public: + +%If ( - KDE_3_3_0 ) + ResourceFile (KABC::AddressBook*, const KConfig*); + ResourceFile (KABC::AddressBook*, const QString&, KABC::FormatPlugin* = 0); + bool open (); + void close (); +%End + + +%If ( - KDE_3_5_1 ) + KABC::Ticket* requestSaveTicket (); + void releaseSaveTicket (KABC::Ticket*); + +%If ( - KDE_3_3_0 ) + bool load (); + bool save (KABC::Ticket*); + virtual void cleanUp (); +%End + + virtual QString identifier () const; +%End + + +}; // class ResourceFile + +%End + + +%If ( - KDE_3_2_0 ) + +class ResourceFile : KABC::Resource +{ +%TypeHeaderCode +#include <resourcefile.h> +%End + + +public: + +%If ( KDE_3_1_0 - ) + ResourceFile (KABC::AddressBook*, const KConfig*); + ResourceFile (KABC::AddressBook*, const QString&, KABC::FormatPlugin* = 0); + bool open (); + void close (); +%End + + KABC::Ticket* requestSaveTicket (); + void releaseSaveTicket (KABC::Ticket*); + bool load (); + bool save (KABC::Ticket*); + virtual void cleanUp (); + void setFileName (const QString&); + QString fileName () const; + +%If ( KDE_3_1_0 - ) + virtual QString identifier () const; + void removeAddressee (const KABC::Addressee&); +%End + + +protected: +//ig bool lock (const QString&); +//ig void unlock (const QString&); + +public: + +%If ( - KDE_3_1_0 ) + ResourceFile (KABC::AddressBook*, const QString&, KABC::Format* = 0); + bool load (KABC::AddressBook*); +%End + + +protected slots: + +%If ( - KDE_3_1_0 ) + void checkFile (); +%End + + +}; // class ResourceFile + +%End + +}; // namespace KABC + diff --git a/sip/kabc/resourceselectdialog.sip b/sip/kabc/resourceselectdialog.sip new file mode 100644 index 0000000..9210316 --- /dev/null +++ b/sip/kabc/resourceselectdialog.sip @@ -0,0 +1,55 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 - ) +namespace KABC +{ + +class ResourceSelectDialog +{ +%TypeHeaderCode +#include <qwidget.h> +#include <resourceselectdialog.h> +#include <kabc/resource.h> +%End + + +public: + ResourceSelectDialog (KABC::AddressBook*, QWidget* = 0, const char* = 0); + KABC::Resource* resource (); + static KABC::Resource* getResource (KABC::AddressBook*, QWidget* = 0); +//force + +private: + ResourceSelectDialog (KABC::ResourceSelectDialog&); +//end + +}; // class ResourceSelectDialog + +}; // namespace KABC + +%End + diff --git a/sip/kabc/secrecy.sip b/sip/kabc/secrecy.sip new file mode 100644 index 0000000..605db1e --- /dev/null +++ b/sip/kabc/secrecy.sip @@ -0,0 +1,92 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 - ) +namespace KABC +{ + +class Secrecy +{ +%TypeHeaderCode +#include <secrecy.h> +%End + + +public: + typedef QValueList<int> TypeList; + +%If ( KDE_3_2_0 - ) + + enum Types + { + Public, + Private, + Confidential, + Invalid + }; + +%End + + Secrecy (int = Private ); + bool operator == (const KABC::Secrecy&) const; + bool operator != (const KABC::Secrecy&) const; + +%If ( KDE_3_2_0 - ) + bool isValid () const; +%End + + void setType (int); + int type () const; + static TypeList typeList (); + static QString typeLabel (int); + QString asString () const; + +public: + +%If ( - KDE_3_2_0 ) + + enum Types + { + Public, + Private, + Confidential + }; + +%End + + +}; // class Secrecy + + +%If ( KDE_3_4_0 - ) +//igx QDataStream& operator << (QDataStream&, const KABC::Secrecy&); +//igx QDataStream& operator >> (QDataStream&, KABC::Secrecy&); +%End + +}; // namespace KABC + +%End + diff --git a/sip/kabc/sortmode.sip b/sip/kabc/sortmode.sip new file mode 100644 index 0000000..537e68f --- /dev/null +++ b/sip/kabc/sortmode.sip @@ -0,0 +1,83 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 - ) +namespace KABC +{ + +class SortMode +{ +%TypeHeaderCode +#include <sortmode.h> +%End + + +public: + virtual bool lesser (const KABC::Addressee&, const KABC::Addressee&) const = 0; + +}; // class SortMode + + +class NameSortMode : KABC::SortMode +{ +%TypeHeaderCode +#include <sortmode.h> +%End + + +public: + + enum NameType + { + FormattedName, + FamilyName, + GivenName + }; + + NameSortMode (); + NameSortMode (KABC::NameSortMode::NameType, bool = 1); + virtual bool lesser (const KABC::Addressee&, const KABC::Addressee&) const; + +}; // class NameSortMode + + +class FieldSortMode : KABC::SortMode +{ +%TypeHeaderCode +#include <sortmode.h> +%End + + +public: + FieldSortMode (KABC::Field*, bool = 1); + virtual bool lesser (const KABC::Addressee&, const KABC::Addressee&) const; + +}; // class FieldSortMode + +}; // namespace KABC + +%End + diff --git a/sip/kabc/sound.sip b/sip/kabc/sound.sip new file mode 100644 index 0000000..b455883 --- /dev/null +++ b/sip/kabc/sound.sip @@ -0,0 +1,63 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 - ) +namespace KABC +{ + +class Sound +{ +%TypeHeaderCode +#include <sound.h> +%End + + +public: + Sound (); + Sound (const QString&); + Sound (const QByteArray&); + bool operator == (const KABC::Sound&) const; + bool operator != (const KABC::Sound&) const; + void setUrl (const QString&); + +%If ( KDE_3_4_0 - ) + bool isEmpty () const; +%End + + void setData (const QByteArray&); + bool isIntern () const; + QString url () const; + QByteArray data () const; + QString asString () const; + +}; // class Sound + +//igx QDataStream& operator << (QDataStream&, const KABC::Sound&); +//igx QDataStream& operator >> (QDataStream&, KABC::Sound&); +}; // namespace KABC + +%End + diff --git a/sip/kabc/stdaddressbook.sip b/sip/kabc/stdaddressbook.sip new file mode 100644 index 0000000..e571f47 --- /dev/null +++ b/sip/kabc/stdaddressbook.sip @@ -0,0 +1,111 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KABC +{ + +class StdAddressBook : KABC::AddressBook +{ +%TypeHeaderCode +#include <kabc/resource.h> +#include <addressee.h> +#include <addressbook.h> +#include <stdaddressbook.h> +%End + + +public: + +%If ( KDE_3_2_0 - ) + static KABC::StdAddressBook* self (); + static KABC::StdAddressBook* self (bool); +%End + + static bool save (); + +%If ( KDE_3_1_1 - ) + static void handleCrash (); +%End + + static QString fileName (); + +%If ( KDE_3_1_0 - ) + static QString directoryName (); + static void setAutomaticSave (bool); + static void close (); + static bool automaticSave (); + +%If ( KDE_3_2_0 - ) + KABC::Addressee whoAmI (); + void setWhoAmI (const KABC::Addressee&); +%End + +%End + + +protected: + StdAddressBook (); + +%If ( KDE_3_1_0 - ) + StdAddressBook (bool); + void init (bool); + +%If ( KDE_3_2_2 - ) + bool saveAll (); +%End + +%End + + +public: + +%If ( - KDE_3_2_0 ) + static KABC::AddressBook* self (); +%End + + +%If ( KDE_3_1_0 - KDE_3_2_2 ) + static KABC::AddressBook* self (bool); +%End + + +protected: + +%If ( - KDE_3_2_0 ) + ~StdAddressBook (); +%End + + +public: + +%If ( - KDE_3_1_0 ) + QString identifier (); +%End + + +}; // class StdAddressBook + +}; // namespace KABC + diff --git a/sip/kabc/timezone.sip b/sip/kabc/timezone.sip new file mode 100644 index 0000000..e095d45 --- /dev/null +++ b/sip/kabc/timezone.sip @@ -0,0 +1,59 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KABC +{ + +class TimeZone +{ +%TypeHeaderCode +#include <timezone.h> +%End + + +public: + TimeZone (); + TimeZone (int); + void setOffset (int); + int offset () const; + bool isValid () const; + bool operator == (const KABC::TimeZone&) const; + +%If ( KDE_3_1_0 - ) + bool operator != (const KABC::TimeZone&) const; +%End + + QString asString () const; + +}; // class TimeZone + + +%If ( KDE_3_1_0 - ) +//igx QDataStream& operator << (QDataStream&, const KABC::TimeZone&); +//igx QDataStream& operator >> (QDataStream&, KABC::TimeZone&); +%End + +}; // namespace KABC + diff --git a/sip/kabc/vcardconverter.sip b/sip/kabc/vcardconverter.sip new file mode 100644 index 0000000..5276fd0 --- /dev/null +++ b/sip/kabc/vcardconverter.sip @@ -0,0 +1,74 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <vcardconverter.h> +%End + + +%If ( KDE_3_1_1 - ) +namespace KABC +{ + +class VCardConverter +{ +%TypeHeaderCode +#include <vcardconverter.h> +%End + + +public: + + enum Version + { + v2_1, + v3_0 + }; + + VCardConverter (); + +%If ( KDE_3_2_0 - ) + QString createVCard (const KABC::Addressee&, KABC::VCardConverter::Version = v3_0 ); + QString createVCards (KABC::Addressee::List, KABC::VCardConverter::Version = v3_0 ); + KABC::Addressee parseVCard (const QString&); + KABC::Addressee::List parseVCards (const QString&); +%End + + bool vCardToAddressee (const QString&, KABC::Addressee&, KABC::VCardConverter::Version = v3_0 ); + bool addresseeToVCard (const KABC::Addressee&, QString&, KABC::VCardConverter::Version = v3_0 ); + +}; // class VCardConverter + + +%If ( KDE_3_2_0 - ) +QString dateToVCardString (const QDateTime&); +QString dateToVCardString (const QDate&); +QDateTime VCardStringToDate (const QString&); +%End + +}; // namespace KABC + +%End + diff --git a/sip/kabc/vcardformat.sip b/sip/kabc/vcardformat.sip new file mode 100644 index 0000000..91fe090 --- /dev/null +++ b/sip/kabc/vcardformat.sip @@ -0,0 +1,44 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KABC +{ + +class VCardFormat : KABC::Format +{ +%TypeHeaderCode +#include <vcardformat.h> +%End + + +public: + VCardFormat (); + bool load (KABC::AddressBook*, const QString&); + bool save (KABC::AddressBook*, const QString&); + +}; // class VCardFormat + +}; // namespace KABC + diff --git a/sip/kabc/vcardformatplugin.sip b/sip/kabc/vcardformatplugin.sip new file mode 100644 index 0000000..f6aeef2 --- /dev/null +++ b/sip/kabc/vcardformatplugin.sip @@ -0,0 +1,51 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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_1 - ) +namespace KABC +{ + +class VCardFormatPlugin : KABC::FormatPlugin +{ +%TypeHeaderCode +#include <vcardformatplugin.h> +%End + + +public: + VCardFormatPlugin (); + bool load (KABC::Addressee&, QFile*); + bool loadAll (KABC::AddressBook*, KABC::Resource*, QFile*); + void save (const KABC::Addressee&, QFile*); + void saveAll (KABC::AddressBook*, KABC::Resource*, QFile*); + bool checkFormat (QFile*) const; + +}; // class VCardFormatPlugin + +}; // namespace KABC + +%End + diff --git a/sip/kdecore/bytearray.sip b/sip/kdecore/bytearray.sip new file mode 100644 index 0000000..9d4128a --- /dev/null +++ b/sip/kdecore/bytearray.sip @@ -0,0 +1,945 @@ +// +// Copyright 2004 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + +// module kdecore 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 <qvariant.h> +%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<QCString,DCOPRef>") + { + QMap<QCString,DCOPRef> *map = (QMap<QCString,DCOPRef> *)map_v; + + *a0 << *map; + } + else if (*a2 == "QMap<QString,DCOPRef>") + { + QMap<QString,DCOPRef> *map = (QMap<QString,DCOPRef> *)map_v; + + *a0 << *map; + } + else if (*a2 == "QMap<QString,QString>") + { + QMap<QString,QString> *map = (QMap<QString,QString> *)map_v; + + *a0 << *map; + } + else if (*a2 == "QMap<QString,QByteArray>") + { + QMap<QString,QByteArray> *map = (QMap<QString,QByteArray> *)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<QCString>") + { + QValueList<QCString> *list = (QValueList<QCString> *)list_v; + + *a0 << *list; + } + else if (*a2 == "QValueList<DCOPRef>") + { + QValueList<DCOPRef> *list = (QValueList<DCOPRef> *)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<QCString,DCOPRef>") + { + QMap<QCString, DCOPRef> res; + *a0 >> res; + return sipConvertFromType(&res, sipFindType(*a1), NULL); + } + else if (*a1 == "QMap<QString,DCOPRef>") + { + QMap<QString, DCOPRef> res; + *a0 >> res; + return sipConvertFromType(&res, sipFindType(*a1), NULL); + } + else if (*a1 == "QMap<QString,QString>") + { + QMap<QString, QString> res; + *a0 >> res; + return sipConvertFromType(&res, sipFindType(*a1), NULL); + } + else if (*a1 == "QMap<QString,QByteArray>") + { + QMap<QString, QByteArray> res; + *a0 >> res; + return sipConvertFromType(&res, sipFindType(*a1), NULL); + } + else if (*a1 == "QValueList<QCString>") + { + QValueList<QCString> res; + *a0 >> res; + return sipConvertFromType(&res, sipFindType(*a1), NULL); + } + else if (*a1 == "QValueList<DCOPRef>" || *a1 == "QCStringList") + { + QValueList<DCOPRef> res; + *a0 >> res; + return sipConvertFromType(&res, sipFindType(*a1), NULL); + } + +%End + +%ModuleHeaderCode +#include <qcstring.h> +#include <qdatastream.h> +#include <dcopref.h> +%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<QCString,DCOPRef> +//converts a Python dict of QCString:DCOPRef +{ +%TypeHeaderCode +#include <qmap.h> +//typedef QMap<QCString,DCOPRef> 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<QCString,DCOPRef> cppmap = *sipCpp; + QMap<QCString,DCOPRef>::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<QCString,DCOPRef> *cppmap = new QMap<QCString,DCOPRef>; + + 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<QString,DCOPRef> +//converts a Python dict of QString:DCOPRef +{ +%TypeHeaderCode +#include <qmap.h> +//typedef QMap<QString,DCOPRef> 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<QString,DCOPRef> cppmap = *sipCpp; + QMap<QString,DCOPRef>::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<QString,DCOPRef> *cppmap = new QMap<QString,DCOPRef>; + + 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<QString,QString> is available in kdecore/kconfig.sip + + +%MappedType QMap<QString,QByteArray> +//converts a Python dict of QString:QByteArray +{ +%TypeHeaderCode +#include <qmap.h> +%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<QString,QByteArray> cppmap = *sipCpp; + QMap<QString,QByteArray>::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<QString,QByteArray> on the heap. + + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + QMap<QString,QByteArray> *cppmap = new QMap<QString,QByteArray>; + + 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<DCOPRef> +//converts a Python list of DCOPRef +{ +%TypeHeaderCode +#include <qvaluelist.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList<DCOPRef> *cpplist = (QValueList<DCOPRef> *)sipCpp; + PyObject *inst; + + // Get it. + QValueList<DCOPRef>::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<DCOPRef> *cpplist = new QValueList<DCOPRef>; + + 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 new file mode 100644 index 0000000..49150fb --- /dev/null +++ b/sip/kdecore/fixx11h.sip @@ -0,0 +1,30 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <X11/X.h> +#include <fixx11h.h> +%End + diff --git a/sip/kdecore/kaboutdata.sip b/sip/kdecore/kaboutdata.sip new file mode 100644 index 0000000..eade1f7 --- /dev/null +++ b/sip/kdecore/kaboutdata.sip @@ -0,0 +1,301 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kaboutdata.h> +%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 <kaboutdata.h> +%End + + +public: + KAboutTranslator (const QString& = QString ::null , const QString& = QString ::null ); + QString name () const; + QString emailAddress () const; + +}; // class KAboutTranslator + + +class KAboutData +{ +%TypeHeaderCode +#include <kaboutdata.h> +%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* = "[email protected]"); + 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<KAboutPerson> authors () const; + const QValueList<KAboutPerson> credits () const; + const QValueList<KAboutTranslator> 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<KAboutPerson> +//converts a Python list of KAboutPerson +{ +%TypeHeaderCode +#include <qvaluelist.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList<KAboutPerson> *cpplist = (QValueList<KAboutPerson> *)sipCpp; + PyObject *inst; + + // Get it. + QValueList<KAboutPerson>::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<KAboutPerson> *cpplist = new QValueList<KAboutPerson>; + + 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<KAboutTranslator> +//converts a Python list of KAboutTranslator +{ +%TypeHeaderCode +#include <qvaluelist.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList<KAboutTranslator> *cpplist = (QValueList<KAboutTranslator> *)sipCpp; + PyObject *inst; + + // Get it. + QValueList<KAboutTranslator>::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<KAboutTranslator> *cpplist = new QValueList<KAboutTranslator>; + + 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 new file mode 100644 index 0000000..5ae4756 --- /dev/null +++ b/sip/kdecore/kaccel.sip @@ -0,0 +1,240 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kaccel.h> +%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<int,QString> +//converts a Python dict of int:QString +{ +%TypeHeaderCode +#include <kaccel.h> +%End + +%ConvertFromTypeCode + + if (!sipCpp) + return PyDict_New(); + + PyObject *dict; + + // Create the dictionary. + + if ((dict = PyDict_New()) == NULL) + return NULL; + + // Get it. + + const QMap<int,QString> map = *sipCpp; + QMap<int,QString>::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<int,QString> *map = new QMap<int,QString>; + + 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 new file mode 100644 index 0000000..fc23c58 --- /dev/null +++ b/sip/kdecore/kaccelaction.sip @@ -0,0 +1,122 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kaccelaction.h> +%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 <kaccelaction.h> +%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 new file mode 100644 index 0000000..74b5206 --- /dev/null +++ b/sip/kdecore/kaccelbase.sip @@ -0,0 +1,102 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kaccelbase.h> +%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<structX>&); + 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<KKeyServer::Key,KAccelBase::ActionInfo> 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 new file mode 100644 index 0000000..ae72d6d --- /dev/null +++ b/sip/kdecore/kallocator.sip @@ -0,0 +1,48 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kallocator.h> +%End + + +public: + KZoneAllocator (long = 131072); + void* allocate (size_t); + void deallocate (void*); + void free_since (void*); + +protected: +//ig typedef QValueList<KZoneAllocator::MemBlock*> 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 new file mode 100644 index 0000000..4b34076 --- /dev/null +++ b/sip/kdecore/kapplication.sip @@ -0,0 +1,449 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kapplication.h> +#include <kcmdlineargs.h> +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 kdeinitExec (const QString&, const QStringList&, QString* /Out/, int*, QCString&); +%End + + static int kdeinitExec (const QString&, const QStringList&, QString* /Out/, int*); + +%If ( KDE_3_2_0 - ) + static int kdeinitExecWait (const QString&, const QStringList&, QString* /Out/, int*, QCString&); +%End + + static int kdeinitExecWait (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 <kapplication.h> +%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 <string.h> + +// 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 new file mode 100644 index 0000000..c59f663 --- /dev/null +++ b/sip/kdecore/kasyncio.sip @@ -0,0 +1,52 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kasyncio.h> +%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 new file mode 100644 index 0000000..16ac9c5 --- /dev/null +++ b/sip/kdecore/kaudioplayer.sip @@ -0,0 +1,42 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kaudioplayer.h> +%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 new file mode 100644 index 0000000..995c863 --- /dev/null +++ b/sip/kdecore/kbufferedio.sip @@ -0,0 +1,73 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kbufferedio.h> +%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 new file mode 100644 index 0000000..608dc6e --- /dev/null +++ b/sip/kdecore/kcalendarsystem.sip @@ -0,0 +1,78 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <kcalendarsystem.h> +%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 new file mode 100644 index 0000000..fcbf03d --- /dev/null +++ b/sip/kdecore/kcalendarsystemfactory.sip @@ -0,0 +1,44 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <kcalendarsystemfactory.h> +%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 new file mode 100644 index 0000000..8ff8231 --- /dev/null +++ b/sip/kdecore/kcatalogue.sip @@ -0,0 +1,64 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kcatalogue.h> +%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 new file mode 100644 index 0000000..22ab476 --- /dev/null +++ b/sip/kdecore/kcharsets.sip @@ -0,0 +1,62 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kcharsets.h> +%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 new file mode 100644 index 0000000..b8805ca --- /dev/null +++ b/sip/kdecore/kclipboard.sip @@ -0,0 +1,52 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <kclipboard.h> +%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 new file mode 100644 index 0000000..df430cf --- /dev/null +++ b/sip/kdecore/kcmdlineargs.sip @@ -0,0 +1,264 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kcmdlineargs.h> +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 <kcmdlineargs.h> +#include <qapplication.h> +%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<QCString> getOptionList (const char*); +%End + + +}; // class KCmdLineArgs + diff --git a/sip/kdecore/kcompletion.sip b/sip/kdecore/kcompletion.sip new file mode 100644 index 0000000..d3f5b01 --- /dev/null +++ b/sip/kdecore/kcompletion.sip @@ -0,0 +1,227 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kcompletion.h> +%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 <kcompletion.h> +%End + + +public: + + enum KeyBindingType + { + TextCompletion, + PrevCompletionMatch, + NextCompletionMatch, + SubstringCompletion + }; + + typedef QMap<KCompletionBase::KeyBindingType,KShortcut> 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<QString> KCompletionMatchesList; + + +%MappedType KCompletionBase::KeyBindingMap +//converts a Python dict of int:KShortcut +{ +%TypeHeaderCode +#include <kcompletion.h> +%End +%ConvertFromTypeCode + + if (!sipCpp) + return PyDict_New(); + + PyObject *dict; + + // Create the dictionary. + + if ((dict = PyDict_New()) == NULL) + return NULL; + + // Get it. + + const QMap<KCompletionBase::KeyBindingType,KShortcut> map = *sipCpp; + QMap<KCompletionBase::KeyBindingType,KShortcut>::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<KCompletionBase::KeyBindingType,KShortcut> *kbmap = new QMap<KCompletionBase::KeyBindingType,KShortcut>; + + 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 new file mode 100644 index 0000000..c2cab17 --- /dev/null +++ b/sip/kdecore/kconfig.sip @@ -0,0 +1,238 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kconfig.h> +%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<QString,QString> 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 <kconfig.h> +%End + + +public: +//ig typedef KSharedPtr<KSharedConfig> Ptr; + +public: + static KSharedConfig::Ptr openConfig (const QString&, bool = 0, bool = 1); + +private: + KSharedConfig (const QString&, bool, bool); + ~KSharedConfig (); + +}; // class KSharedConfig + +%End + + + +%MappedType QMap<QString,QString> +//converts a Python dict of QString:QString +{ +%TypeHeaderCode +#include <qmap.h> +%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<QString,QString> cppmap = *sipCpp; + QMap<QString,QString>::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<QString,QString> *cppmap = new QMap<QString,QString>; + + 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 <ksharedptr.h> +#include <kconfig.h> +%End + +%ConvertFromTypeCode + // Convert to a Python instance + + if (!sipCpp) + return NULL; + + KSharedPtr<KSharedConfig> *cPtr = new KSharedPtr<KSharedConfig> (*(KSharedPtr<KSharedConfig> *)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<KSharedConfig> (cpp); + + return 1; +%End +}; +%End + + diff --git a/sip/kdecore/kconfigbackend.sip b/sip/kdecore/kconfigbackend.sip new file mode 100644 index 0000000..0e1b52e --- /dev/null +++ b/sip/kdecore/kconfigbackend.sip @@ -0,0 +1,93 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kconfigbackend.h> +%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 <kconfigdata.h> +#include <kconfigbackend.h> +%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 new file mode 100644 index 0000000..c960004 --- /dev/null +++ b/sip/kdecore/kconfigbase.sip @@ -0,0 +1,333 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <kconfigbase.h> +%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<int> readIntListEntry (const QString&) const; + QValueList<int> 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<int>&, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const QValueList<int>&, 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<QString,QString> 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 <kconfigbase.h> +%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 <kconfigbase.h> +%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 new file mode 100644 index 0000000..539b9f2 --- /dev/null +++ b/sip/kdecore/kconfigdata.sip @@ -0,0 +1,172 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kconfigdata.h> +%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 <kconfigdata.h> +%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<KEntryKey,KEntry>::Iterator KEntryMapIterator; +//ig typedef QMap<KEntryKey,KEntry>::ConstIterator KEntryMapConstIterator; +//force +KEntryMap testKEntryMap (SIP_PYOBJECT) [KEntryMap (KEntryMap)]; +%MethodCode +//takes dict | (KEntryMap) +//returns (QMap<KEntryKey,KEntry) + + int isErr = 0; + KEntryMap *map = (KEntryMap *)sipForceConvertToType(a0, sipType_KEntryMap, NULL, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &isErr); + + if (isErr) + sipRes = NULL; + else + sipRes = map; +%End + +//end + + +%MappedType KEntryMap +//converts a Python dict of KEntryKey:KEntry +{ +%TypeHeaderCode +#include <qmap.h> +#include <kconfigdata.h> +%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 new file mode 100644 index 0000000..4f924da --- /dev/null +++ b/sip/kdecore/kconfigdialogmanager.sip @@ -0,0 +1,64 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <kconfigdialogmanager.h> +%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 new file mode 100644 index 0000000..63f96e0 --- /dev/null +++ b/sip/kdecore/kconfigskeleton.sip @@ -0,0 +1,1146 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <typeinfo> +#include <kconfigskeleton.h> +%End + + +public: + typedef QValueList<KConfigSkeletonItem*> List; +//ig typedef QDict<KConfigSkeletonItem> Dict; +//ig typedef QDictIterator<KConfigSkeletonItem> 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<KConfigSkeleton::ItemBool*>(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemBool; + else if (dynamic_cast<KConfigSkeleton::ItemColor*>(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemColor; + else if (dynamic_cast<KConfigSkeleton::ItemDateTime*>(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemDateTime; + else if (dynamic_cast<KConfigSkeleton::ItemDouble*>(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemDouble; + else if (dynamic_cast<KConfigSkeleton::ItemEnum*>(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemEnum; + else if (dynamic_cast<KConfigSkeleton::ItemFont*>(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemFont; + else if (dynamic_cast<KConfigSkeleton::ItemInt*>(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemInt; + else if (dynamic_cast<KConfigSkeleton::ItemInt64*>(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemInt64; + else if (dynamic_cast<KConfigSkeleton::ItemIntList*>(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemIntList; + else if (dynamic_cast<KConfigSkeleton::ItemLong*>(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemLong; + else if (dynamic_cast<KConfigSkeleton::ItemPassword*>(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemPassword; + else if (dynamic_cast<KConfigSkeleton::ItemPath*>(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemPath; + else if (dynamic_cast<KConfigSkeleton::ItemPoint*>(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemPoint; + else if (dynamic_cast<KConfigSkeleton::ItemProperty*>(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemProperty; + else if (dynamic_cast<KConfigSkeleton::ItemRect*>(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemRect; + else if (dynamic_cast<KConfigSkeleton::ItemSize*>(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemSize; + else if (dynamic_cast<KConfigSkeleton::ItemString*>(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemString; + else if (dynamic_cast<KConfigSkeleton::ItemStringList*>(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemStringList; + else if (dynamic_cast<KConfigSkeleton::ItemUInt*>(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemUInt; + else if (dynamic_cast<KConfigSkeleton::ItemUInt64*>(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemUInt64; + else if (dynamic_cast<KConfigSkeleton::ItemULong*>(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemULong; + else + sipClass = NULL; +%End +//end + +}; // class KConfigSkeletonItem + +%End + + +%If ( KDE_3_2_0 - ) + +class KConfigSkeleton +{ +%TypeHeaderCode +#include <kconfigskeleton.h> +typedef QValueList<int> 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<KConfigSkeleton::ItemEnum::Choice>&, int = 0) [(const QString&, const QString&, int&, const QValueList<KConfigSkeleton::ItemEnum::Choice>&, int = 0)]; +%MethodCode +//takes group | (QString) | key | (QString) | reference | (int) | choices | (QValueList<KConfigSkeleton::ItemEnum::Choice>) |defaultValue | (int = 1) + + class PyItemEnum : public KConfigSkeleton::ItemEnum + { + public: + PyItemEnum (const QString& group, const QString& key, int& val, const QValueList<KConfigSkeleton::ItemEnum::Choice>& 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<KConfigSkeleton::ItemEnum::Choice> 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<int>&, const QValueList<int>& = 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<int> *)a2 = QValueList<int>(); + 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<int>&, const QValueList<int>& = IntList ()); +%MethodCode +//takes group | (QString) | key | (QString) | reference | (a Python list of int) | defaultValue | (a Python list of int = 0) + if (a3 == NULL) *(QValueList<int> *)a3 = QValueList<int>(); + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipKConfigSkeleton_ItemIntList *) new KConfigSkeleton::ItemIntList (*a0, *a1, *a2, *a3); + Py_END_ALLOW_THREADS +%End + + void setValue (const QValueList<int>&); + QValueList<int>& value (); + virtual void setDefaultValue (const QValueList<int>&); + 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<KConfigSkeleton::ItemEnum::Choice> +{ +%TypeHeaderCode +#include <kconfigskeleton.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList<KConfigSkeleton::ItemEnum::Choice> *cpplist = (QValueList<KConfigSkeleton::ItemEnum::Choice> *)sipCpp; + PyObject *inst; + + // Get it. + QValueList<KConfigSkeleton::ItemEnum::Choice>::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<KConfigSkeleton::ItemEnum::Choice> *cpplist = new QValueList<KConfigSkeleton::ItemEnum::Choice>; + + 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 new file mode 100644 index 0000000..cd8d672 --- /dev/null +++ b/sip/kdecore/kcrash.sip @@ -0,0 +1,51 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kcrash.h> +%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 new file mode 100644 index 0000000..081d031 --- /dev/null +++ b/sip/kdecore/kdcoppropertyproxy.sip @@ -0,0 +1,44 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kdcoppropertyproxy.h> +%End + + +public: + KDCOPPropertyProxy (QObject*); + bool isPropertyRequest (const QCString&); + bool processPropertyRequest (const QCString&, const QByteArray&, QCString&, QByteArray&); + QValueList<QCString> functions (); + static QValueList<QCString> 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 new file mode 100644 index 0000000..6df8bb9 --- /dev/null +++ b/sip/kdecore/kdebug.sip @@ -0,0 +1,67 @@ +// +// Copyright 2003 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore 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 <kdebug.h> +%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 <kdebug.h> +%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 new file mode 100644 index 0000000..d87c911 --- /dev/null +++ b/sip/kdecore/kdecore-kde310.diff @@ -0,0 +1 @@ ++ %Include kclipboard.sip diff --git a/sip/kdecore/kdecore-kde311.diff b/sip/kdecore/kdecore-kde311.diff new file mode 100644 index 0000000..d87c911 --- /dev/null +++ b/sip/kdecore/kdecore-kde311.diff @@ -0,0 +1 @@ ++ %Include kclipboard.sip diff --git a/sip/kdecore/kdecore-kde312.diff b/sip/kdecore/kdecore-kde312.diff new file mode 100644 index 0000000..d87c911 --- /dev/null +++ b/sip/kdecore/kdecore-kde312.diff @@ -0,0 +1 @@ ++ %Include kclipboard.sip diff --git a/sip/kdecore/kdecore-kde313.diff b/sip/kdecore/kdecore-kde313.diff new file mode 100644 index 0000000..d87c911 --- /dev/null +++ b/sip/kdecore/kdecore-kde313.diff @@ -0,0 +1 @@ ++ %Include kclipboard.sip diff --git a/sip/kdecore/kdecore-kde314.diff b/sip/kdecore/kdecore-kde314.diff new file mode 100644 index 0000000..13e7719 --- /dev/null +++ b/sip/kdecore/kdecore-kde314.diff @@ -0,0 +1,3 @@ ++ %Include kclipboard.sip ++ %Include kdeversion.sip ++ %Include kurldrag.sip diff --git a/sip/kdecore/kdecore-kde315.diff b/sip/kdecore/kdecore-kde315.diff new file mode 100644 index 0000000..13e7719 --- /dev/null +++ b/sip/kdecore/kdecore-kde315.diff @@ -0,0 +1,3 @@ ++ %Include kclipboard.sip ++ %Include kdeversion.sip ++ %Include kurldrag.sip diff --git a/sip/kdecore/kdecore-kde320.diff b/sip/kdecore/kdecore-kde320.diff new file mode 100644 index 0000000..8476e6c --- /dev/null +++ b/sip/kdecore/kdecore-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/kdecore/kdecore-kde321.diff b/sip/kdecore/kdecore-kde321.diff new file mode 100644 index 0000000..5dc526d --- /dev/null +++ b/sip/kdecore/kdecore-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/kdecore/kdecore-kde322.diff b/sip/kdecore/kdecore-kde322.diff new file mode 100644 index 0000000..e0d64ad --- /dev/null +++ b/sip/kdecore/kdecore-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/kdecore/kdecore-kde323.diff b/sip/kdecore/kdecore-kde323.diff new file mode 100644 index 0000000..e0d64ad --- /dev/null +++ b/sip/kdecore/kdecore-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/kdecore/kdecore-kde330.diff b/sip/kdecore/kdecore-kde330.diff new file mode 100644 index 0000000..d202574 --- /dev/null +++ b/sip/kdecore/kdecore-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/kdecore/kdecore-kde331.diff b/sip/kdecore/kdecore-kde331.diff new file mode 100644 index 0000000..d202574 --- /dev/null +++ b/sip/kdecore/kdecore-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/kdecore/kdecore-kde332.diff b/sip/kdecore/kdecore-kde332.diff new file mode 100644 index 0000000..d202574 --- /dev/null +++ b/sip/kdecore/kdecore-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/kdecore/kdecore-kde340.diff b/sip/kdecore/kdecore-kde340.diff new file mode 100644 index 0000000..d202574 --- /dev/null +++ b/sip/kdecore/kdecore-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/kdecore/kdecore-kde341.diff b/sip/kdecore/kdecore-kde341.diff new file mode 100644 index 0000000..d202574 --- /dev/null +++ b/sip/kdecore/kdecore-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/kdecore/kdecore-kde342.diff b/sip/kdecore/kdecore-kde342.diff new file mode 100644 index 0000000..d202574 --- /dev/null +++ b/sip/kdecore/kdecore-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/kdecore/kdecore-kde343.diff b/sip/kdecore/kdecore-kde343.diff new file mode 100644 index 0000000..d202574 --- /dev/null +++ b/sip/kdecore/kdecore-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/kdecore/kdecore-kde350.diff b/sip/kdecore/kdecore-kde350.diff new file mode 100644 index 0000000..b8dba4c --- /dev/null +++ b/sip/kdecore/kdecore-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/kdecore/kdecore-kde351.diff b/sip/kdecore/kdecore-kde351.diff new file mode 100644 index 0000000..b8dba4c --- /dev/null +++ b/sip/kdecore/kdecore-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/kdecore/kdecore-kde352.diff b/sip/kdecore/kdecore-kde352.diff new file mode 100644 index 0000000..b8dba4c --- /dev/null +++ b/sip/kdecore/kdecore-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/kdecore/kdecore-kde353.diff b/sip/kdecore/kdecore-kde353.diff new file mode 100644 index 0000000..b8dba4c --- /dev/null +++ b/sip/kdecore/kdecore-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/kdecore/kdecoremod.sip.in b/sip/kdecore/kdecoremod.sip.in new file mode 100644 index 0000000..afe338f --- /dev/null +++ b/sip/kdecore/kdecoremod.sip.in @@ -0,0 +1,99 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore 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 kdecore + +%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 new file mode 100644 index 0000000..07d1885 --- /dev/null +++ b/sip/kdecore/kdesktopfile.sip @@ -0,0 +1,85 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kdesktopfile.h> +%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 new file mode 100644 index 0000000..06fff87 --- /dev/null +++ b/sip/kdecore/kdesktopwidget.sip @@ -0,0 +1,45 @@ +// +// Copyright 2003 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore 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 <kdesktopwidget.h> +%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 new file mode 100644 index 0000000..9aa4a84 --- /dev/null +++ b/sip/kdecore/kdestyle.sip @@ -0,0 +1,108 @@ +// +// Copyright 2003 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore 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 <kdestyle.h> +%End + + +public: + KDEAniMenu (QPopupMenu*); + +protected: + void scrollIn (); + +protected slots: + void slotDestroyFake (); + void slotFinished (); + +}; // class KDEAniMenu + + +class KDEStyle : KStyle +{ +%TypeHeaderCode +#include <kdestyle.h> +%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 new file mode 100644 index 0000000..821c6b6 --- /dev/null +++ b/sip/kdecore/kdeversion.sip @@ -0,0 +1,45 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <kdeversion.h> +%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 new file mode 100644 index 0000000..f964752 --- /dev/null +++ b/sip/kdecore/kglobal.sip @@ -0,0 +1,65 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kglobal.h> +%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 new file mode 100644 index 0000000..81d2bf8 --- /dev/null +++ b/sip/kdecore/kglobalaccel.sip @@ -0,0 +1,87 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kglobalaccel.h> +%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 new file mode 100644 index 0000000..46a2315 --- /dev/null +++ b/sip/kdecore/kglobalsettings.sip @@ -0,0 +1,157 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kglobalsettings.h> +%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 new file mode 100644 index 0000000..03e1b37 --- /dev/null +++ b/sip/kdecore/kiconeffect.sip @@ -0,0 +1,102 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kiconeffect.h> +%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 new file mode 100644 index 0000000..601db57 --- /dev/null +++ b/sip/kdecore/kiconloader.sip @@ -0,0 +1,97 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kiconloader.h> +%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 <kiconloader.h> +%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 new file mode 100644 index 0000000..26a8f88 --- /dev/null +++ b/sip/kdecore/kicontheme.sip @@ -0,0 +1,249 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kicontheme.h> +%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 <kicontheme.h> +%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<int> 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 new file mode 100644 index 0000000..12eda37 --- /dev/null +++ b/sip/kdecore/kidna.sip @@ -0,0 +1,40 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <kidna.h> +%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 new file mode 100644 index 0000000..ddbbe13 --- /dev/null +++ b/sip/kdecore/kinstance.sip @@ -0,0 +1,75 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kinstance.h> +%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 new file mode 100644 index 0000000..c8625ad --- /dev/null +++ b/sip/kdecore/kipc.sip @@ -0,0 +1,98 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <qwindowdefs.h> +#include <kipc.h> +%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 new file mode 100644 index 0000000..64aecfa --- /dev/null +++ b/sip/kdecore/kkeynative.sip @@ -0,0 +1,90 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kkeynative.h> +%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 new file mode 100644 index 0000000..2744c5b --- /dev/null +++ b/sip/kdecore/kkeyserver_x11.sip @@ -0,0 +1,187 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <kkeyserver_x11.h> +%End + +namespace KKeyServer +{ + +%If ( KDE_3_1_0 - ) + +enum ExtraModFlag +{ + MODE_SWITCH +}; + +%End + + +class Sym +{ +%TypeHeaderCode +#include <kkeyserver_x11.h> +%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 <kkeyserver_x11.h> +%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 <kkeyserver_x11.h> +%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 <kkeyserver_x11.h> +%End + + +public: + int code; + int mod; + +}; // class CodeMod + +%End + +}; // namespace KKeyServer + diff --git a/sip/kdecore/klibloader.sip b/sip/kdecore/klibloader.sip new file mode 100644 index 0000000..1c38daa --- /dev/null +++ b/sip/kdecore/klibloader.sip @@ -0,0 +1,103 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <klibloader.h> +%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 <klibloader.h> +%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 <klibloader.h> +%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 new file mode 100644 index 0000000..740d157 --- /dev/null +++ b/sip/kdecore/klocale.sip @@ -0,0 +1,243 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <klocale.h> +%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 <klocale.h> +%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 new file mode 100644 index 0000000..9da9006 --- /dev/null +++ b/sip/kdecore/klockfile.sip @@ -0,0 +1,112 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <klockfile.h> +%End + + +public: + typedef KSharedPtr<KLockFile> 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 <ksharedptr.h> +#include <klockfile.h> +%End + +%ConvertFromTypeCode + // Convert to a Python instance + + if (!sipCpp) + return NULL; + + KSharedPtr<KLockFile> *cPtr = new KSharedPtr<KLockFile> (*(KSharedPtr<KLockFile> *)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<KLockFile> (cpp); + + return 1; +%End +}; +%End + + diff --git a/sip/kdecore/kmacroexpander.sip b/sip/kdecore/kmacroexpander.sip new file mode 100644 index 0000000..015cac8 --- /dev/null +++ b/sip/kdecore/kmacroexpander.sip @@ -0,0 +1,384 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <kmacroexpander.h> +%End + + +%If ( KDE_3_2_0 - ) + +class KMacroExpanderBase +{ +%TypeHeaderCode +#include <kmacroexpander.h> +%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 <kmacroexpander.h> +%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 <kmacroexpander.h> +%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>&, QChar = '%'); +QString expandMacrosShellQuote (const QString&, const QMap<QChar,QString>&, QChar = '%'); +QString expandMacros (const QString&, const QMap<QString,QString>&, QChar = '%'); +QString expandMacrosShellQuote (const QString&, const QMap<QString,QString>&, QChar = '%'); +QString expandMacros (const QString&, const QMap<QChar,QStringList>&, QChar = '%'); +QString expandMacros (const QString&, const QMap<QString,QStringList>&, QChar = '%'); +QString expandMacrosShellQuote (const QString&, const QMap<QChar,QStringList>&, QChar = '%'); +QString expandMacrosShellQuote (const QString&, const QMap<QString,QStringList>&, QChar = '%'); +}; // namespace KMacroExpander + +%End + + + +%MappedType QMap<QChar,QString> +//converts a Python dict of QChar:QString +{ +%TypeHeaderCode +#include <qmap.h> +#include <qstring.h> +%End + +%ConvertFromTypeCode + + if (!sipCpp) + return PyDict_New(); + + PyObject *dict; + + // Create the dictionary. + + if ((dict = PyDict_New()) == NULL) + return NULL; + + // Get it. + + const QMap<QChar,QString> map = *sipCpp; + QMap<QChar,QString>::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<QChar, QString> + + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + QMap<QChar,QString> *map = new QMap<QChar,QString>; + + 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<QString,QStringList> +//converts a Python dict of QString:QStringList +{ +%TypeHeaderCode +#include <qmap.h> +#include <qstring.h> +#include <qstringlist.h> +%End + +%ConvertFromTypeCode + + if (!sipCpp) + return PyDict_New(); + + PyObject *dict; + + // Create the dictionary. + + if ((dict = PyDict_New()) == NULL) + return NULL; + + // Get it. + + const QMap<QString, QStringList> map = *sipCpp; + QMap<QString, QStringList>::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<QString, QStringList> on the heap. + + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + QMap<QString, QStringList> *map = new QMap<QString, QStringList>; + + 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<QChar,QStringList> +//converts a Python dict of QChar:QStringList +{ +%TypeHeaderCode +#include <qmap.h> +#include <qstringlist.h> +#include <qstring.h> +%End + +%ConvertFromTypeCode + + if (!sipCpp) + return PyDict_New(); + + PyObject *dict; + + // Create the dictionary. + + if ((dict = PyDict_New()) == NULL) + return NULL; + + // Get it. + + const QMap<QChar,QStringList> map = *sipCpp; + QMap<QChar,QStringList>::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<QChar, QStringList> on the heap. + + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + QMap<QChar,QStringList> *map = new QMap<QChar,QStringList>; + + 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 new file mode 100644 index 0000000..8694f8a --- /dev/null +++ b/sip/kdecore/kmanagerselection.sip @@ -0,0 +1,91 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <qdockwindow.h> +#include <qvariant.h> +#include <kmanagerselection.h> +%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 <qdockwindow.h> +#include <qvariant.h> +#include <kmanagerselection.h> +%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 new file mode 100644 index 0000000..e9d1c80 --- /dev/null +++ b/sip/kdecore/kmdcodec.sip @@ -0,0 +1,156 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kmdcodec.h> +%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 <kmdcodec.h> +%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 <kmdcodec.h> +%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 new file mode 100644 index 0000000..cc321dd --- /dev/null +++ b/sip/kdecore/kmimesourcefactory.sip @@ -0,0 +1,42 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kmimesourcefactory.h> +%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 new file mode 100644 index 0000000..87323be --- /dev/null +++ b/sip/kdecore/kmountpoint.sip @@ -0,0 +1,186 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <kmountpoint.h> +%End + + +public: +//ig typedef KSharedPtr<KMountPoint> Ptr; +//ig typedef QValueList<KMountPoint::Ptr> 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 <ksharedptr.h> +#include <kmountpoint.h> +%End + +%ConvertFromTypeCode + // Convert to a Python instance + + if (!sipCpp) + return NULL; + + KSharedPtr<KMountPoint> *cPtr = new KSharedPtr<KMountPoint> (*(KSharedPtr<KMountPoint> *)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<KMountPoint> (cpp); + + return 1; +%End +}; + + +%MappedType KMountPoint::List +//converts a Python list of KMountPoint +{ +%TypeHeaderCode +#include <qvaluelist.h> +#include <kmountpoint.h> +%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(&(KMountPoint::Ptr)(*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 new file mode 100644 index 0000000..45d6fe7 --- /dev/null +++ b/sip/kdecore/kmultipledrag.sip @@ -0,0 +1,58 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kmultipledrag.h> +%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 new file mode 100644 index 0000000..47664b8 --- /dev/null +++ b/sip/kdecore/knotifyclient.sip @@ -0,0 +1,139 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <knotifyclient.h> +%End + +namespace KNotifyClient +{ + +class Instance +{ +%TypeHeaderCode +#include <knotifyclient.h> +%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 new file mode 100644 index 0000000..46008b1 --- /dev/null +++ b/sip/kdecore/kpalette.sip @@ -0,0 +1,63 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kpalette.h> +%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 new file mode 100644 index 0000000..c0a798f --- /dev/null +++ b/sip/kdecore/kpixmapprovider.sip @@ -0,0 +1,41 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kpixmapprovider.h> +%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 new file mode 100644 index 0000000..fbe00c3 --- /dev/null +++ b/sip/kdecore/kprocctrl.sip @@ -0,0 +1,95 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kprocctrl.h> +%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 new file mode 100644 index 0000000..eae4aa4 --- /dev/null +++ b/sip/kdecore/kprocess.sip @@ -0,0 +1,272 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kprocess.h> +%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<QCString>& 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 <kprocess.h> +%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 new file mode 100644 index 0000000..2a09e28 --- /dev/null +++ b/sip/kdecore/kprocio.sip @@ -0,0 +1,67 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kprocio.h> +%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 new file mode 100644 index 0000000..5098181 --- /dev/null +++ b/sip/kdecore/kpty.sip @@ -0,0 +1,52 @@ +// +// Copyright 2005 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2004 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore 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 <kpty.h> +%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 new file mode 100644 index 0000000..4e55011 --- /dev/null +++ b/sip/kdecore/krandomsequence.sip @@ -0,0 +1,45 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <krandomsequence.h> +%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 new file mode 100644 index 0000000..57c8d99 --- /dev/null +++ b/sip/kdecore/kregexp.sip @@ -0,0 +1,44 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kregexp.h> +%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 new file mode 100644 index 0000000..c91546f --- /dev/null +++ b/sip/kdecore/krfcdate.sip @@ -0,0 +1,42 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <krfcdate.h> +%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 new file mode 100644 index 0000000..1b6f5a8 --- /dev/null +++ b/sip/kdecore/krootprop.sip @@ -0,0 +1,52 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <krootprop.h> +%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 new file mode 100644 index 0000000..c2974aa --- /dev/null +++ b/sip/kdecore/ksavefile.sip @@ -0,0 +1,52 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <ksavefile.h> +%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 new file mode 100644 index 0000000..8f5e83c --- /dev/null +++ b/sip/kdecore/ksharedptr.sip @@ -0,0 +1,45 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <ksharedptr.h> +%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 new file mode 100644 index 0000000..d17de1a --- /dev/null +++ b/sip/kdecore/kshell.sip @@ -0,0 +1,77 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <kshell.h> +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 new file mode 100644 index 0000000..79b4b0e --- /dev/null +++ b/sip/kdecore/kshortcut.sip @@ -0,0 +1,261 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kshortcut.h> +%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 <kshortcut.h> +%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 <kshortcut.h> +%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 new file mode 100644 index 0000000..a65e44c --- /dev/null +++ b/sip/kdecore/kshortcutlist.sip @@ -0,0 +1,133 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kconfigbase.h> +#include <kshortcut.h> +#include <kshortcutlist.h> +%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 <kconfigbase.h> +#include <kshortcut.h> +#include <kshortcutlist.h> +%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 <kconfigbase.h> +#include <kshortcut.h> +#include <kshortcutlist.h> +%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 new file mode 100644 index 0000000..723236e --- /dev/null +++ b/sip/kdecore/ksimpleconfig.sip @@ -0,0 +1,50 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <ksimpleconfig.h> +%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 new file mode 100644 index 0000000..df11aae --- /dev/null +++ b/sip/kdecore/ksock.sip @@ -0,0 +1,97 @@ +// +// Copyright 2005 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2004 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore 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 <ksock.h> +%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 <ksock.h> +%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 new file mode 100644 index 0000000..6d4d308 --- /dev/null +++ b/sip/kdecore/kstartupinfo.sip @@ -0,0 +1,280 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kstartupinfo.h> +%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 <kstartupinfo.h> +%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 <kstartupinfo.h> +%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<int>& 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<pid_t> +//converts a Python list of long +{ +%TypeHeaderCode +#include <qvaluelist.h> +%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<long> on the heap. + + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + if (sipPy == Py_None) + { + *sipCppPtr = NULL; + + return 0; + } + + QValueList<pid_t> *qvl = new QValueList<pid_t>; + + 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 new file mode 100644 index 0000000..9870f18 --- /dev/null +++ b/sip/kdecore/kstaticdeleter.sip @@ -0,0 +1,38 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kstaticdeleter.h> +%End + + +public: + virtual void destructObject () = 0; + +}; // class KStaticDeleterBase + diff --git a/sip/kdecore/kstdaccel.sip b/sip/kdecore/kstdaccel.sip new file mode 100644 index 0000000..44bd9b8 --- /dev/null +++ b/sip/kdecore/kstdaccel.sip @@ -0,0 +1,441 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <kstdaccel.h> +%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 new file mode 100644 index 0000000..1eaf2a9 --- /dev/null +++ b/sip/kdecore/kstddirs.sip @@ -0,0 +1,69 @@ +// +// Copyright 2003 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore 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 <kstddirs.h> +%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 <kstddirs.h> +%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 new file mode 100644 index 0000000..9021b92 --- /dev/null +++ b/sip/kdecore/kstringhandler.sip @@ -0,0 +1,89 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kstringhandler.h> +%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 new file mode 100644 index 0000000..b7ea544 --- /dev/null +++ b/sip/kdecore/ktempdir.sip @@ -0,0 +1,58 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <fixx11h.h> +#include <ktempdir.h> +%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 new file mode 100644 index 0000000..6cd60bf --- /dev/null +++ b/sip/kdecore/ktempfile.sip @@ -0,0 +1,58 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <ktempfile.h> +%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 new file mode 100644 index 0000000..50e998a --- /dev/null +++ b/sip/kdecore/ktimezones.sip @@ -0,0 +1,272 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <ktimezones.h> +%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 <ktimezones.h> +%End + + +public: + static const float UNKNOWN; + static bool isValidLatitude (float); + static bool isValidLongitude (float); + KTimezone (KSharedPtr<KTimezoneSource>, 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<KTimezoneSource> TZSourcePtr; +//end + +}; // class KTimezone + +%End + + +%If ( KDE_3_5_0 - ) + +class KTimezoneDetails +{ +%TypeHeaderCode +#include <ktimezones.h> +%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 <ktimezones.h> +%End + + +public: + KTimezones (); + const KTimezone* local (); + const KTimezone* zone (const QString&); + typedef QMap<QString,KTimezone*> ZoneMap; + const KTimezones::ZoneMap allZones (); + void add (KTimezone*); + +private: + KTimezones (const KTimezones&); + +}; // class KTimezones + +%End + + + +%If (KDE_3_5_0 - ) +%MappedType KSharedPtr<KTimezoneSource> +//converts KSharedPtr<KTimezoneSource> +{ +%TypeHeaderCode +#include <ksharedptr.h> +#include <ktimezones.h> +%End + +%ConvertFromTypeCode + // Convert to a Python instance + + if (!sipCpp) + return NULL; + + KSharedPtr<KTimezoneSource> *cPtr = new KSharedPtr<KTimezoneSource> (*(KSharedPtr<KTimezoneSource> *)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<KTimezoneSource> (cpp); + + return 1; +%End +}; +%End + + +%If (KDE_3_5_0 - ) +%MappedType KTimezones::ZoneMap +//converts a Python dict of QString:KTimezone +{ +%TypeHeaderCode +#include <qmap.h> +#include <qstring.h> +#include <ktimezones.h> +%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<QString, KTimezone*> cppmap = *sipCpp; + QMap<QString, KTimezone*>::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<QString, KTimezone*> *cppmap = new QMap<QString, KTimezone*>; + + 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 new file mode 100644 index 0000000..9637c6e --- /dev/null +++ b/sip/kdecore/kuniqueapplication.sip @@ -0,0 +1,68 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kuniqueapp.h> +%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 new file mode 100644 index 0000000..2ce1475 --- /dev/null +++ b/sip/kdecore/kurl.sip @@ -0,0 +1,408 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kurl.h> +%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<QString,QString> queryItems (int = 0) const; + +%If ( KDE_3_2_0 - ) + QMap<QString,QString> 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 new file mode 100644 index 0000000..12fceb4 --- /dev/null +++ b/sip/kdecore/kurldrag.sip @@ -0,0 +1,76 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <kurldrag.h> +%End + + +public: + KURLDrag (const KURL::List&, QWidget*, const char*); + KURLDrag (const KURL::List&, const QMap<QString,QString>&, 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<QString,QString>&, QWidget* = 0, const char* = 0); + QMap<QString,QString>& metaData (); + static bool decode (const QMimeSource*, KURL::List&); + static bool decode (const QMimeSource*, KURL::List&, QMap<QString,QString>&); + +%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<QString,QString>&, 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 new file mode 100644 index 0000000..d79ea99 --- /dev/null +++ b/sip/kdecore/kuser.sip @@ -0,0 +1,74 @@ +// +// Copyright 2004 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore 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 <kuser.h> +%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 new file mode 100644 index 0000000..207b59e --- /dev/null +++ b/sip/kdecore/kvmallocator.sip @@ -0,0 +1,42 @@ +// +// Copyright 2003 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore 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 <kvmallocator.h> +%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 new file mode 100644 index 0000000..60095d7 --- /dev/null +++ b/sip/kdecore/kwin.sip @@ -0,0 +1,188 @@ +// +// Copyright 2005 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2004 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore 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 <kwin.h> +%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 new file mode 100644 index 0000000..3795b62 --- /dev/null +++ b/sip/kdecore/kwinmodule.sip @@ -0,0 +1,158 @@ +// +// Copyright 2005 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2004 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore 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 <kwinmodule.h> +%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<WId>& windows () const; + const QValueList<WId>& stackingOrder () const; + bool hasWId (WId) const; + const QValueList<WId>& systemTrayWindows () const; + int currentDesktop () const; + int numberOfDesktops () const; + WId activeWindow () const; + QRect workArea (int = -1) const; + QRect workArea (const QValueList<WId>&, 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<WId> +//converts a Python list of WId +{ +%TypeHeaderCode +#include <qvaluelist.h> +#include <kwinmodule.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList<WId> *cpplist = (QValueList<WId> *)sipCpp; + + // Get it. + QValueList<WId>::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<WId> *cpplist = new QValueList<WId>; + + 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 new file mode 100644 index 0000000..4c03dc0 --- /dev/null +++ b/sip/kdecore/kxmessages.sip @@ -0,0 +1,55 @@ +// +// Copyright 2003 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore 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 <qwidget.h> +#include <kxmessages.h> +%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 new file mode 100644 index 0000000..a7ed3ea --- /dev/null +++ b/sip/kdecore/netwm.sip @@ -0,0 +1,628 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <netwm.h> +%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 <netwm.h> +%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 <netwm.h> +%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 <netwm.h> +%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 <netwm.h> +%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 new file mode 100644 index 0000000..7c14ba7 --- /dev/null +++ b/sip/kdecore/netwm_def.sip @@ -0,0 +1,535 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <netwm_def.h> +%End + + +public: + NETPoint (); + int x; + int y; + +}; // class NETPoint + + +class NETSize +{ +%TypeHeaderCode +#include <netwm_def.h> +%End + + +public: + NETSize (); + int width; + int height; + +}; // class NETSize + + +class NETRect +{ +%TypeHeaderCode +#include <netwm_def.h> +%End + + +public: + NETPoint pos; + NETSize size; + +}; // class NETRect + + +class NETIcon +{ +%TypeHeaderCode +#include <netwm_def.h> +%End + + +public: + NETIcon (); + NETSize size; +//ig uchar* data; + +}; // class NETIcon + + +%If ( KDE_3_3_0 - ) + +class NETExtendedStrut +{ +%TypeHeaderCode +#include <netwm_def.h> +%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 <netwm_def.h> +%End + + +public: + NETStrut (); + int left; + int right; + int top; + int bottom; + +}; // class NETStrut + + +class NET +{ +%TypeHeaderCode +#include <netwm_def.h> +%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 new file mode 100644 index 0000000..9fafc4a --- /dev/null +++ b/sip/kdefx/kcpuinfo.sip @@ -0,0 +1,52 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdefx version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <kcpuinfo.h> +%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 new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/kdefx/kdefx-kde320.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde321.diff b/sip/kdefx/kdefx-kde321.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/kdefx/kdefx-kde321.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde322.diff b/sip/kdefx/kdefx-kde322.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/kdefx/kdefx-kde322.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde323.diff b/sip/kdefx/kdefx-kde323.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/kdefx/kdefx-kde323.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde330.diff b/sip/kdefx/kdefx-kde330.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/kdefx/kdefx-kde330.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde331.diff b/sip/kdefx/kdefx-kde331.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/kdefx/kdefx-kde331.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde332.diff b/sip/kdefx/kdefx-kde332.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/kdefx/kdefx-kde332.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde340.diff b/sip/kdefx/kdefx-kde340.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/kdefx/kdefx-kde340.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde341.diff b/sip/kdefx/kdefx-kde341.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/kdefx/kdefx-kde341.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde342.diff b/sip/kdefx/kdefx-kde342.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/kdefx/kdefx-kde342.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde343.diff b/sip/kdefx/kdefx-kde343.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/kdefx/kdefx-kde343.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde350.diff b/sip/kdefx/kdefx-kde350.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/kdefx/kdefx-kde350.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde351.diff b/sip/kdefx/kdefx-kde351.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/kdefx/kdefx-kde351.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde352.diff b/sip/kdefx/kdefx-kde352.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/kdefx/kdefx-kde352.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde353.diff b/sip/kdefx/kdefx-kde353.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/kdefx/kdefx-kde353.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefxmod.sip.in b/sip/kdefx/kdefxmod.sip.in new file mode 100644 index 0000000..6cbad38 --- /dev/null +++ b/sip/kdefx/kdefxmod.sip.in @@ -0,0 +1,41 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdefx 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 kdefx + +%Import qt/qtmod.sip +%Import dcopmod.sip +%Import kdecoremod.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 new file mode 100644 index 0000000..ef68cdd --- /dev/null +++ b/sip/kdefx/kdrawutil.sip @@ -0,0 +1,39 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdefx version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <kdrawutil.h> +%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 new file mode 100644 index 0000000..b75243e --- /dev/null +++ b/sip/kdefx/kimageeffect.sip @@ -0,0 +1,205 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdefx version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kimageeffect.h> +%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 new file mode 100644 index 0000000..ba19245 --- /dev/null +++ b/sip/kdefx/kpixmap.sip @@ -0,0 +1,65 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdefx version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <qpaintdevice.h> +#include <qpixmap.h> +#include <kpixmap.h> +%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 new file mode 100644 index 0000000..f1d9279 --- /dev/null +++ b/sip/kdefx/kpixmapeffect.sip @@ -0,0 +1,85 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdefx version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kpixmapeffect.h> +%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 new file mode 100644 index 0000000..638d734 --- /dev/null +++ b/sip/kdefx/kpixmapsplitter.sip @@ -0,0 +1,46 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdefx version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kpixmapsplitter.h> +%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 new file mode 100644 index 0000000..42ee378 --- /dev/null +++ b/sip/kdefx/kstyle.sip @@ -0,0 +1,126 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdefx version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kstyle.h> +%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 new file mode 100644 index 0000000..c787b23 --- /dev/null +++ b/sip/kdeprint/driver.sip @@ -0,0 +1,338 @@ +// +// Copyright 2005 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2004 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeprint 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 <driver.h> +%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<QString,QString>&); + virtual void getOptions (QMap<QString,QString>&, bool = 0); + virtual DrBase* clone (); + +protected: + +}; // class DrBase + +%End + + +%If ( KDE_3_1_0 - ) + +class DrGroup : DrBase +{ +%TypeHeaderCode +#include <driver.h> +%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<QString,QString>&); + void getOptions (QMap<QString,QString>&, bool = 0); + DrBase* clone (); +//ig const QPtrList<DrGroup>& groups (); +//ig const QPtrList<DrBase>& options (); + +%If ( KDE_3_2_0 - ) + static QString groupForOption (const QString&); +%End + + +protected: +//ig void createTree (DriverItem* /Transfer/); +//ig void flattenGroup (QMap<QString,DrBase*>&, int&); + +protected: + +}; // class DrGroup + +%End + + +%If ( KDE_3_1_0 - ) + +class DrMain : DrGroup +{ +%TypeHeaderCode +#include <driver.h> +%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<QString,DrBase*> flatten (); + DrMain* cloneDriver (); + +protected: + +}; // class DrMain + +%End + + +%If ( KDE_3_1_0 - ) + +class DrChoiceGroup : DrGroup +{ +%TypeHeaderCode +#include <driver.h> +%End + + +public: + DrChoiceGroup (); +//ig DriverItem* createItem (DriverItem* /Transfer/, DriverItem* = 0); + +}; // class DrChoiceGroup + +%End + + +%If ( KDE_3_1_0 - ) + +class DrStringOption : DrBase +{ +%TypeHeaderCode +#include <driver.h> +%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 <driver.h> +%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 <driver.h> +%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 <driver.h> +%End + + +public: + DrListOption (); + void addChoice (DrBase*); +//ig QPtrList<DrBase>* 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<QString,QString>&); + void getOptions (QMap<QString,QString>&, 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 <driver.h> +%End + + +public: + DrBooleanOption (); + +}; // class DrBooleanOption + +%End + + +%If ( KDE_3_1_0 - ) + +class DrConstraint +{ +%TypeHeaderCode +#include <driver.h> +%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 <driver.h> +%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 new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde310.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde311.diff b/sip/kdeprint/kdeprint-kde311.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde311.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde312.diff b/sip/kdeprint/kdeprint-kde312.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde312.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde313.diff b/sip/kdeprint/kdeprint-kde313.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde313.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde314.diff b/sip/kdeprint/kdeprint-kde314.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde314.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde315.diff b/sip/kdeprint/kdeprint-kde315.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde315.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde320.diff b/sip/kdeprint/kdeprint-kde320.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde320.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde321.diff b/sip/kdeprint/kdeprint-kde321.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde321.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde322.diff b/sip/kdeprint/kdeprint-kde322.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde322.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde323.diff b/sip/kdeprint/kdeprint-kde323.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde323.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde330.diff b/sip/kdeprint/kdeprint-kde330.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde330.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde331.diff b/sip/kdeprint/kdeprint-kde331.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde331.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde332.diff b/sip/kdeprint/kdeprint-kde332.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde332.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde340.diff b/sip/kdeprint/kdeprint-kde340.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde340.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde341.diff b/sip/kdeprint/kdeprint-kde341.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde341.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde342.diff b/sip/kdeprint/kdeprint-kde342.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde342.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde343.diff b/sip/kdeprint/kdeprint-kde343.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde343.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde350.diff b/sip/kdeprint/kdeprint-kde350.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde350.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde351.diff b/sip/kdeprint/kdeprint-kde351.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde351.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde352.diff b/sip/kdeprint/kdeprint-kde352.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde352.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde353.diff b/sip/kdeprint/kdeprint-kde353.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde353.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprintmod.sip.in b/sip/kdeprint/kdeprintmod.sip.in new file mode 100644 index 0000000..adaa33d --- /dev/null +++ b/sip/kdeprint/kdeprintmod.sip.in @@ -0,0 +1,47 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeprint 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 kdeprint + +%Import qt/qtmod.sip +%Import qtxml/qtxmlmod.sip +%Import dcopmod.sip +%Import kdecoremod.sip +%Import kdefxmod.sip +%Import kdeuimod.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 new file mode 100644 index 0000000..7736bc7 --- /dev/null +++ b/sip/kdeprint/kmjob.sip @@ -0,0 +1,113 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeprint version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <kmjob.h> +%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 new file mode 100644 index 0000000..f54a1e4 --- /dev/null +++ b/sip/kdeprint/kmjobmanager.sip @@ -0,0 +1,197 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeprint version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <kmjobmanager.h> +%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<KMJobManager::JobFilter>* filter (); + int limit (); + void setLimit (int); + KMJob* findJob (const QString&); + bool sendCommand (const QString&, int, const QString& = QString ::null ); + bool sendCommand (const QPtrList<KMJob>&, int, const QString& = QString ::null ); + const QPtrList<KMJob>& jobList (bool = 1); + void addJob (KMJob*); +//ig KMThreadJob* threadJob (); + virtual int actions (); + virtual QValueList<KAction*> createPluginActions (KActionCollection*); + virtual void validatePluginActions (KActionCollection*, const QPtrList<KMJob>&); + virtual bool doPluginAction (int, const QPtrList<KMJob>&); + +protected: + void discardAllJobs (); + void removeDiscardedJobs (); + +protected: + virtual bool listJobs (const QString&, KMJobManager::JobType, int = 0); + virtual bool sendCommandSystemJob (const QPtrList<KMJob>&, int, const QString& = QString ::null ); + bool sendCommandThreadJob (const QPtrList<KMJob>&, 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<KMJob> +//converts a Python list of KMJob +{ +%TypeHeaderCode +#include <qptrlist.h> +#include <kmjob.h> +typedef QPtrList<KMJob> 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<KMJob> *cpplist = (QPtrList<KMJob> *)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<KMJob> *cpplist = new QPtrList<KMJob>; + + 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 new file mode 100644 index 0000000..4d92c36 --- /dev/null +++ b/sip/kdeprint/kmmanager.sip @@ -0,0 +1,220 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeprint version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kmmanager.h> +%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<KMPrinter>* printerList (bool = 1); + QPtrList<KMPrinter>* 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<KMPrinter> +//converts a Python list of KMPrinter +{ +%TypeHeaderCode +#include <qptrlist.h> +#include <kmmanager.h> +#include <kmprinter.h> +%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<KMPrinter> *kpList = (QPtrList<KMPrinter> *)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<KMPrinter> on the heap. + + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList<KMPrinter> *kpList = new QPtrList<KMPrinter>; + + 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 new file mode 100644 index 0000000..d41ae0f --- /dev/null +++ b/sip/kdeprint/kmobject.sip @@ -0,0 +1,42 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeprint version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kmobject.h> +%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 new file mode 100644 index 0000000..0f8c2e9 --- /dev/null +++ b/sip/kdeprint/kmprinter.sip @@ -0,0 +1,178 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeprint version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kmprinter.h> +%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<QString,QString> options () const; + void setOptions (const QMap<QString,QString>&); +//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<QString,QString> defaultOptions () const; + void setDefaultOptions (const QMap<QString,QString>&); + const QString& editedOption (const QString&) const; + void setEditedOption (const QString&, const QString&); + QMap<QString,QString> editedOptions () const; + void setEditedOptions (const QMap<QString,QString>&); + 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 new file mode 100644 index 0000000..61c2c5f --- /dev/null +++ b/sip/kdeprint/kpreloadobject.sip @@ -0,0 +1,43 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeprint version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kpreloadobject.h> +%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 new file mode 100644 index 0000000..edb0cda --- /dev/null +++ b/sip/kdeprint/kprintaction.sip @@ -0,0 +1,61 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeprint version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kprintaction.h> +%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 new file mode 100644 index 0000000..b71d6e9 --- /dev/null +++ b/sip/kdeprint/kprintdialog.sip @@ -0,0 +1,169 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeprint version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kprintdialog.h> +%End + + +public: + KPrintDialog (QWidget* /TransferThis/ = 0, const char* = 0); + void setFlags (int); + void setDialogPages (QPtrList<KPrintDialogPage>*); + +%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<KPrintDialogPage> +//converts a Python list of KPrintDialogPage +{ +%TypeHeaderCode +#include <qptrlist.h> +#include <kprintdialogpage.h> +%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<KPrintDialogPage> *kpList = (QPtrList<KPrintDialogPage> *)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<KPrintDialogPage> on the heap. + + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList<KPrintDialogPage> *kpList = new QPtrList<KPrintDialogPage>; + + 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 new file mode 100644 index 0000000..5e52bda --- /dev/null +++ b/sip/kdeprint/kprintdialogpage.sip @@ -0,0 +1,52 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeprint version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kprintdialogpage.h> +%End + + +public: + KPrintDialogPage (QWidget* /TransferThis/ = 0, const char* = 0); +//ig KPrintDialogPage (KMPrinter*, DrMain* = 0, QWidget* /TransferThis/ = 0, const char* = 0); + virtual void getOptions (QMap<QString,QString>&, bool = 0); + virtual void setOptions (const QMap<QString,QString>&); + 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 new file mode 100644 index 0000000..ea4d17f --- /dev/null +++ b/sip/kdeprint/kprinter.sip @@ -0,0 +1,258 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeprint version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kprinter.h> +%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<int> 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<QString,QString>& options () const; + void setOptions (const QMap<QString,QString>&); + void initOptions (const QMap<QString,QString>&); + 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 new file mode 100644 index 0000000..4e64757 --- /dev/null +++ b/sip/kdeui/kaboutapplication.sip @@ -0,0 +1,205 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kaboutapplication.h> +%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 new file mode 100644 index 0000000..385ff69 --- /dev/null +++ b/sip/kdeui/kaboutdialog.sip @@ -0,0 +1,190 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kaboutdialog.h> +%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 <kaboutdialog.h> +%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 <kaboutdialog.h> +%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 <kaboutdialog.h> +%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 new file mode 100644 index 0000000..76a3147 --- /dev/null +++ b/sip/kdeui/kaboutkde.sip @@ -0,0 +1,38 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kaboutkde.h> +%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 new file mode 100644 index 0000000..6d00d44 --- /dev/null +++ b/sip/kdeui/kaccelmanager.sip @@ -0,0 +1,43 @@ +// +// Copyright 2003 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui 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 <kaccelmanager.h> +%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 new file mode 100644 index 0000000..b015e1b --- /dev/null +++ b/sip/kdeui/kaccelmenu.sip @@ -0,0 +1,53 @@ +// +// Copyright 2003 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui 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 <kaccel.h> +#include <kpopupmenu.h> +#include <kaccelmenu.h> +%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 new file mode 100644 index 0000000..d8949aa --- /dev/null +++ b/sip/kdeui/kaction.sip @@ -0,0 +1,758 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kaction.h> +%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 <kaction.h> +%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 <kaction.h> +%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 <kaction.h> +%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 <kaction.h> +%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 <kaction.h> +%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 <kaction.h> +%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 <kaction.h> +%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 <kaction.h> +%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 <kaction.h> +%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 <kaction.h> +%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 <kaction.h> +%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 <kaction.h> +%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 <kaction.h> +%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<KAction*> actions (const QString&) const; + virtual QValueList<KAction*> 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<KAction*> KActionPtrList; +%End + + +%MappedType QValueList<KAction*> +//converts a Python list of KAction +{ +%TypeHeaderCode +#include <qvaluelist.h> +#include <kaction.h> +//typedef QValueList<KAction*> KActionPtrList; +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList<KAction*> *cpplist = (QValueList<KAction*> *)sipCpp; + PyObject *inst; + + // Get it. + QValueList<KAction*>::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<KAction*> *cpplist = new QValueList<KAction*>; + + 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 new file mode 100644 index 0000000..799469d --- /dev/null +++ b/sip/kdeui/kactionclasses.sip @@ -0,0 +1,529 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <kactionclasses.h> +%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 <kactionclasses.h> +%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 <kactionclasses.h> +%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 <kactionclasses.h> +%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 <kactionclasses.h> +%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 <kactionclasses.h> +%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 <kactionclasses.h> +%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 <kactionclasses.h> +%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 <kactionclasses.h> +%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 <kactionclasses.h> +%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 <kactionclasses.h> +%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 <kactionclasses.h> +%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 <kactionclasses.h> +%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 <kactionclasses.h> +%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 new file mode 100644 index 0000000..7c0c0b1 --- /dev/null +++ b/sip/kdeui/kactioncollection.sip @@ -0,0 +1,125 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <kactioncollection.h> +%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<KAction*> actions (const QString&) const; + virtual QValueList<KAction*> actions () const; +%End + +%End + + +}; // class KActionCollection + +%End + + +%If ( KDE_3_2_0 - ) +typedef QValueList<KAction*> KActionPtrList; +%End + + +%If ( - KDE_3_2_2 ) +//ig typedef QValueList<KAction*> KActionPtrList; +%End diff --git a/sip/kdeui/kactionselector.sip b/sip/kdeui/kactionselector.sip new file mode 100644 index 0000000..6085356 --- /dev/null +++ b/sip/kdeui/kactionselector.sip @@ -0,0 +1,106 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <kactionselector.h> +%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 new file mode 100644 index 0000000..572c104 --- /dev/null +++ b/sip/kdeui/kactionshortcutlist.sip @@ -0,0 +1,106 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kconfigbase.h> +#include <kshortcut.h> +#include <kaction.h> +#include <kactionshortcutlist.h> +%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 <kconfigbase.h> +#include <kshortcut.h> +#include <kaction.h> +#include <kactionshortcutlist.h> +%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<KAction*>&); +%End + + +}; // class KActionPtrShortcutList + diff --git a/sip/kdeui/kactivelabel.sip b/sip/kdeui/kactivelabel.sip new file mode 100644 index 0000000..2a2ac99 --- /dev/null +++ b/sip/kdeui/kactivelabel.sip @@ -0,0 +1,58 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kactivelabel.h> +%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 new file mode 100644 index 0000000..8c9c5e6 --- /dev/null +++ b/sip/kdeui/kalphapainter.sip @@ -0,0 +1,41 @@ +// +// Copyright 2003 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui 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 <kalphapainter.h> +%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 new file mode 100644 index 0000000..9948bc1 --- /dev/null +++ b/sip/kdeui/kanimwidget.sip @@ -0,0 +1,92 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kanimwidget.h> +%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 new file mode 100644 index 0000000..4a04f78 --- /dev/null +++ b/sip/kdeui/karrowbutton.sip @@ -0,0 +1,55 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <karrowbutton.h> +%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 new file mode 100644 index 0000000..ab9ccc6 --- /dev/null +++ b/sip/kdeui/kauthicon.sip @@ -0,0 +1,101 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kauthicon.h> +%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 <kauthicon.h> +%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 <kauthicon.h> +%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 new file mode 100644 index 0000000..72239ce --- /dev/null +++ b/sip/kdeui/kbugreport.sip @@ -0,0 +1,54 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kbugreport.h> +%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 new file mode 100644 index 0000000..dfd9d2d --- /dev/null +++ b/sip/kdeui/kbuttonbox.sip @@ -0,0 +1,59 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kbuttonbox.h> +%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 new file mode 100644 index 0000000..91b7bfd --- /dev/null +++ b/sip/kdeui/kcharselect.sip @@ -0,0 +1,130 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kcharselect.h> +%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 <kcharselect.h> +%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 new file mode 100644 index 0000000..cf4711d --- /dev/null +++ b/sip/kdeui/kcmenumngr.sip @@ -0,0 +1,43 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kcmenumngr.h> +%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 new file mode 100644 index 0000000..b6cc9b9 --- /dev/null +++ b/sip/kdeui/kcmodule.sip @@ -0,0 +1,183 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kcmodule.h> +%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<KConfigDialogManager>& 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<KConfigDialogManager> +//converts a Python list of KConfigDialogManager +{ +%TypeHeaderCode +#include <qptrlist.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList<KConfigDialogManager> *cpplist = (QPtrList<KConfigDialogManager> *)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<KConfigDialogManager> *cpplist = new QPtrList<KConfigDialogManager>; + + 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 new file mode 100644 index 0000000..53bd2d6 --- /dev/null +++ b/sip/kdeui/kcolorbtn.sip @@ -0,0 +1,54 @@ +// +// Copyright 2003 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui 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 <kcolorbtn.h> +%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 new file mode 100644 index 0000000..72727fc --- /dev/null +++ b/sip/kdeui/kcolorcombo.sip @@ -0,0 +1,51 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kcolorcombo.h> +%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 new file mode 100644 index 0000000..8880d10 --- /dev/null +++ b/sip/kdeui/kcolordialog.sip @@ -0,0 +1,237 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kcolordialog.h> +%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 <kcolordialog.h> +%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 <kcolordialog.h> +%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 <kcolordialog.h> +%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 <kcolordialog.h> +%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 <kcolordialog.h> +%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 <kcolordialog.h> +%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 new file mode 100644 index 0000000..cad21da --- /dev/null +++ b/sip/kdeui/kcolordrag.sip @@ -0,0 +1,52 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kcolordrag.h> +%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 new file mode 100644 index 0000000..b48f8bd --- /dev/null +++ b/sip/kdeui/kcombobox.sip @@ -0,0 +1,130 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kcombobox.h> +%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 <kcombobox.h> +%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 new file mode 100644 index 0000000..1491d0a --- /dev/null +++ b/sip/kdeui/kcommand.sip @@ -0,0 +1,131 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kcommand.h> +%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 <kcommand.h> +%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 <kcommand.h> +%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 <kcommand.h> +%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 new file mode 100644 index 0000000..4fcd010 --- /dev/null +++ b/sip/kdeui/kcompletionbox.sip @@ -0,0 +1,86 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kcompletionbox.h> +%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 new file mode 100644 index 0000000..6e1415e --- /dev/null +++ b/sip/kdeui/kconfigdialog.sip @@ -0,0 +1,69 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <kconfigdialog.h> +%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 new file mode 100644 index 0000000..f1e8ffd --- /dev/null +++ b/sip/kdeui/kcontainer.sip @@ -0,0 +1,75 @@ +// +// Copyright 2003 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui 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 <kcontainer.h> +%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 new file mode 100644 index 0000000..0e8c51d --- /dev/null +++ b/sip/kdeui/kcursor.sip @@ -0,0 +1,57 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kcursor.h> +%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 new file mode 100644 index 0000000..a5a3884 --- /dev/null +++ b/sip/kdeui/kdatepicker.sip @@ -0,0 +1,108 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kdatepicker.h> +%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 new file mode 100644 index 0000000..0a747f6 --- /dev/null +++ b/sip/kdeui/kdatepik.sip @@ -0,0 +1,64 @@ +// +// Copyright 2003 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui 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 <kdatepik.h> +%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 new file mode 100644 index 0000000..60457a2 --- /dev/null +++ b/sip/kdeui/kdatetbl.sip @@ -0,0 +1,303 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <kdatetbl.h> +%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 <kdatetbl.h> +%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 <kdatetbl.h> +%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 <kdatetbl.h> +%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 <kdatetbl.h> +%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 <kdatetbl.h> +%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 new file mode 100644 index 0000000..642a070 --- /dev/null +++ b/sip/kdeui/kdatetimewidget.sip @@ -0,0 +1,50 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <kdatetimewidget.h> +%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 new file mode 100644 index 0000000..d82af51 --- /dev/null +++ b/sip/kdeui/kdatewidget.sip @@ -0,0 +1,58 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kdatewidget.h> +%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 new file mode 100644 index 0000000..15a8d15 --- /dev/null +++ b/sip/kdeui/kdbtn.sip @@ -0,0 +1,61 @@ +// +// Copyright 2003 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui 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 <kdbtn.h> +%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 <kdbtn.h> +%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 new file mode 100644 index 0000000..10edf10 --- /dev/null +++ b/sip/kdeui/kdcopactionproxy.sip @@ -0,0 +1,48 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kdcopactionproxy.h> +%End + + +public: + KDCOPActionProxy (KActionCollection*, DCOPObject* /TransferThis/); + KDCOPActionProxy (DCOPObject* /TransferThis/); + virtual QValueList<KAction*> actions () const; + virtual KAction* action (const char*) const; + virtual QCString actionObjectId (const QCString&) const; + virtual QMap<QCString,DCOPRef> 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 new file mode 100644 index 0000000..bde4a8e --- /dev/null +++ b/sip/kdeui/kdeui-kde310.diff @@ -0,0 +1,4 @@ ++ %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 new file mode 100644 index 0000000..bde4a8e --- /dev/null +++ b/sip/kdeui/kdeui-kde311.diff @@ -0,0 +1,4 @@ ++ %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 new file mode 100644 index 0000000..bde4a8e --- /dev/null +++ b/sip/kdeui/kdeui-kde312.diff @@ -0,0 +1,4 @@ ++ %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 new file mode 100644 index 0000000..bde4a8e --- /dev/null +++ b/sip/kdeui/kdeui-kde313.diff @@ -0,0 +1,4 @@ ++ %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 new file mode 100644 index 0000000..bde4a8e --- /dev/null +++ b/sip/kdeui/kdeui-kde314.diff @@ -0,0 +1,4 @@ ++ %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 new file mode 100644 index 0000000..bde4a8e --- /dev/null +++ b/sip/kdeui/kdeui-kde315.diff @@ -0,0 +1,4 @@ ++ %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 new file mode 100644 index 0000000..0066974 --- /dev/null +++ b/sip/kdeui/kdeui-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/kdeui/kdeui-kde321.diff b/sip/kdeui/kdeui-kde321.diff new file mode 100644 index 0000000..0066974 --- /dev/null +++ b/sip/kdeui/kdeui-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/kdeui/kdeui-kde322.diff b/sip/kdeui/kdeui-kde322.diff new file mode 100644 index 0000000..0066974 --- /dev/null +++ b/sip/kdeui/kdeui-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/kdeui/kdeui-kde323.diff b/sip/kdeui/kdeui-kde323.diff new file mode 100644 index 0000000..2aab948 --- /dev/null +++ b/sip/kdeui/kdeui-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/kdeui/kdeui-kde330.diff b/sip/kdeui/kdeui-kde330.diff new file mode 100644 index 0000000..6be7d89 --- /dev/null +++ b/sip/kdeui/kdeui-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/kdeui/kdeui-kde331.diff b/sip/kdeui/kdeui-kde331.diff new file mode 100644 index 0000000..6be7d89 --- /dev/null +++ b/sip/kdeui/kdeui-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/kdeui/kdeui-kde332.diff b/sip/kdeui/kdeui-kde332.diff new file mode 100644 index 0000000..6be7d89 --- /dev/null +++ b/sip/kdeui/kdeui-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/kdeui/kdeui-kde340.diff b/sip/kdeui/kdeui-kde340.diff new file mode 100644 index 0000000..cdefe26 --- /dev/null +++ b/sip/kdeui/kdeui-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/kdeui/kdeui-kde341.diff b/sip/kdeui/kdeui-kde341.diff new file mode 100644 index 0000000..cdefe26 --- /dev/null +++ b/sip/kdeui/kdeui-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/kdeui/kdeui-kde342.diff b/sip/kdeui/kdeui-kde342.diff new file mode 100644 index 0000000..cdefe26 --- /dev/null +++ b/sip/kdeui/kdeui-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/kdeui/kdeui-kde343.diff b/sip/kdeui/kdeui-kde343.diff new file mode 100644 index 0000000..cdefe26 --- /dev/null +++ b/sip/kdeui/kdeui-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/kdeui/kdeui-kde350.diff b/sip/kdeui/kdeui-kde350.diff new file mode 100644 index 0000000..965e2c3 --- /dev/null +++ b/sip/kdeui/kdeui-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/kdeui/kdeui-kde351.diff b/sip/kdeui/kdeui-kde351.diff new file mode 100644 index 0000000..965e2c3 --- /dev/null +++ b/sip/kdeui/kdeui-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/kdeui/kdeui-kde352.diff b/sip/kdeui/kdeui-kde352.diff new file mode 100644 index 0000000..965e2c3 --- /dev/null +++ b/sip/kdeui/kdeui-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/kdeui/kdeui-kde353.diff b/sip/kdeui/kdeui-kde353.diff new file mode 100644 index 0000000..965e2c3 --- /dev/null +++ b/sip/kdeui/kdeui-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/kdeui/kdeuimod.sip.in b/sip/kdeui/kdeuimod.sip.in new file mode 100644 index 0000000..ad84494 --- /dev/null +++ b/sip/kdeui/kdeuimod.sip.in @@ -0,0 +1,123 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui 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 kdeui + +%Import qt/qtmod.sip +%Import qtxml/qtxmlmod.sip +%Import dcopmod.sip +%Import kdecoremod.sip +%Import kdefxmod.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 new file mode 100644 index 0000000..929411e --- /dev/null +++ b/sip/kdeui/kdialog.sip @@ -0,0 +1,90 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kdialog.h> +%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 <kdialog.h> +%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 new file mode 100644 index 0000000..513c869 --- /dev/null +++ b/sip/kdeui/kdialogbase.sip @@ -0,0 +1,283 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kdialogbase.h> +%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 new file mode 100644 index 0000000..5954906 --- /dev/null +++ b/sip/kdeui/kdocktabctl.sip @@ -0,0 +1,186 @@ +// +// Copyright 2003 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui 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 <kdocktabctl.h> +%End + + +public: + KDockTabCtl_PrivateStruct (QWidget*, int); + QWidget* widget; + int id; + bool enabled; + +}; // class KDockTabCtl_PrivateStruct + + +class KDockTabBar : QWidget +{ +%TypeHeaderCode +#include <kdocktabctl.h> +%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 <kdocktabctl.h> +%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 <kdocktabctl.h> +%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 new file mode 100644 index 0000000..62f02c8 --- /dev/null +++ b/sip/kdeui/kdockwidget.sip @@ -0,0 +1,469 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kdockwidget.h> +%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 <kdockwidget.h> +%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 <kdockwidget.h> +%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 <kdockwidget.h> +%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 <kdockwidget.h> +%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 <kdockwidget.h> +%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 <kdockwidget.h> +%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 <kdockwidget.h> +%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 <kdockwidget.h> +%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 new file mode 100644 index 0000000..4c04e0e --- /dev/null +++ b/sip/kdeui/kdockwindow.sip @@ -0,0 +1,38 @@ +// +// Copyright 2005 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2004 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui 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 <kdockwindow.h> +%End + + +public: + KDockWindow (QWidget* /TransferThis/ = 0, const char* = 0); + +}; // class KDockWindow + diff --git a/sip/kdeui/kdualcolorbtn.sip b/sip/kdeui/kdualcolorbtn.sip new file mode 100644 index 0000000..16d363d --- /dev/null +++ b/sip/kdeui/kdualcolorbtn.sip @@ -0,0 +1,73 @@ +// +// Copyright 2003 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui 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 <kdualcolorbtn.h> +%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 new file mode 100644 index 0000000..a390301 --- /dev/null +++ b/sip/kdeui/kdualcolorbutton.sip @@ -0,0 +1,74 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kdualcolorbutton.h> +%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 new file mode 100644 index 0000000..463acbb --- /dev/null +++ b/sip/kdeui/keditcl.sip @@ -0,0 +1,224 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <keditcl.h> +%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 <keditcl.h> +%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 <keditcl.h> +%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 <keditcl.h> +%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 new file mode 100644 index 0000000..54faab7 --- /dev/null +++ b/sip/kdeui/keditlistbox.sip @@ -0,0 +1,206 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <keditlistbox.h> +%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 new file mode 100644 index 0000000..1af9d7a --- /dev/null +++ b/sip/kdeui/kedittoolbar.sip @@ -0,0 +1,156 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kedittoolbar.h> +%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 <kedittoolbar.h> +%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 new file mode 100644 index 0000000..2487897 --- /dev/null +++ b/sip/kdeui/kfontcombo.sip @@ -0,0 +1,67 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kfontcombo.h> +%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 new file mode 100644 index 0000000..47fd4f7 --- /dev/null +++ b/sip/kdeui/kfontdialog.sip @@ -0,0 +1,184 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <qbutton.h> +#include <kfontdialog.h> +%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 <kfontdialog.h> +%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 new file mode 100644 index 0000000..27916fc --- /dev/null +++ b/sip/kdeui/kfontrequester.sip @@ -0,0 +1,63 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <kfontrequester.h> +%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 new file mode 100644 index 0000000..91d2568 --- /dev/null +++ b/sip/kdeui/kguiitem.sip @@ -0,0 +1,57 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kguiitem.h> +%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 new file mode 100644 index 0000000..c8e047b --- /dev/null +++ b/sip/kdeui/khelpmenu.sip @@ -0,0 +1,63 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <khelpmenu.h> +%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 new file mode 100644 index 0000000..eb4fa52 --- /dev/null +++ b/sip/kdeui/kiconview.sip @@ -0,0 +1,147 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kiconview.h> +%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 <kiconview.h> +%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 new file mode 100644 index 0000000..e075334 --- /dev/null +++ b/sip/kdeui/kiconviewsearchline.sip @@ -0,0 +1,61 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <kiconviewsearchline.h> +%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 new file mode 100644 index 0000000..5eafca6 --- /dev/null +++ b/sip/kdeui/kinputdialog.sip @@ -0,0 +1,66 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <kinputdialog.h> +%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 new file mode 100644 index 0000000..1759583 --- /dev/null +++ b/sip/kdeui/kjanuswidget.sip @@ -0,0 +1,110 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kjanuswidget.h> +%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 new file mode 100644 index 0000000..21deda9 --- /dev/null +++ b/sip/kdeui/kkeybutton.sip @@ -0,0 +1,59 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <qpushbutton.h> +#include <kkeybutton.h> +%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 new file mode 100644 index 0000000..eb6b8e6 --- /dev/null +++ b/sip/kdeui/kkeydialog.sip @@ -0,0 +1,265 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kkeydialog.h> +%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 <kkeydialog.h> +%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 <qdict.h> +typedef QDict<int> 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<int> qdict = *sipCpp; + QDictIterator<int> it (qdict); + + while (it.current ()) + { + PyObject *a0 = sipConvertFromInstance (&it.currentKey (), 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<int> on the heap. + + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + QDict<int>* qdict = new QDict<int>; + + 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 new file mode 100644 index 0000000..5c54670 --- /dev/null +++ b/sip/kdeui/klanguagebutton.sip @@ -0,0 +1,60 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <klanguagebutton.h> +%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 new file mode 100644 index 0000000..ce74c81 --- /dev/null +++ b/sip/kdeui/kled.sip @@ -0,0 +1,97 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kled.h> +%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 new file mode 100644 index 0000000..aaab74f --- /dev/null +++ b/sip/kdeui/klineedit.sip @@ -0,0 +1,146 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <klineedit.h> +%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 new file mode 100644 index 0000000..f07b731 --- /dev/null +++ b/sip/kdeui/klineeditdlg.sip @@ -0,0 +1,53 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <klineeditdlg.h> +%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 new file mode 100644 index 0000000..e8ea4a1 --- /dev/null +++ b/sip/kdeui/klistbox.sip @@ -0,0 +1,60 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <klistbox.h> +%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 new file mode 100644 index 0000000..4eb3dbe --- /dev/null +++ b/sip/kdeui/klistview.sip @@ -0,0 +1,336 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <klistview.h> +%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<QListViewItem> selectedItems () const; + +%If ( KDE_3_4_0 - ) + QPtrList<QListViewItem> 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<QListViewItem>&, QPtrList<QListViewItem>&, QPtrList<QListViewItem>&); + 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 <klistview.h> +%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<QListViewItem> +//converts a Python list of QListViewItem +{ +%TypeHeaderCode +#include <qptrlist.h> +#include <qlistview.h> +typedef QPtrList<QListViewItem> 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<QListViewItem> *cpplist = (QPtrList<QListViewItem> *)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<QListViewItem> *cpplist = new QPtrList<QListViewItem>; + + 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 new file mode 100644 index 0000000..6ac62ad --- /dev/null +++ b/sip/kdeui/klistviewlineedit.sip @@ -0,0 +1,51 @@ +// +// Copyright 2003 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui 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 <klistviewlineedit.h> +%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 new file mode 100644 index 0000000..9f5da7d --- /dev/null +++ b/sip/kdeui/klistviewsearchline.sip @@ -0,0 +1,84 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <klistviewsearchline.h> +%End + + +public: + KListViewSearchLine (QWidget* /TransferThis/ = 0, KListView* = 0, const char* = 0); + KListViewSearchLine (QWidget* /TransferThis/, const char*); + bool caseSensitive () const; + QValueList<int> 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<int>&); + 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 <klistviewsearchline.h> +%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 new file mode 100644 index 0000000..208ab8e --- /dev/null +++ b/sip/kdeui/kmainwindow.sip @@ -0,0 +1,273 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kmainwindow.h> +%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<KMainWindow>* memberList; + +%If ( KDE_3_4_0 - ) + static QPtrList<KMainWindow>* getMemberList (); +%End + + KToolBar* toolBar (const char* = 0); +//ig QPtrListIterator<KToolBar> 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<KMainWindow> +//converts a Python list of KMainWindow +{ +%TypeHeaderCode +#include <qptrlist.h> +#include <kmainwindow.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList<KMainWindow> *cpplist = (QPtrList<KMainWindow> *)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<KMainWindow> *cpplist = new QPtrList<KMainWindow>; + + 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 new file mode 100644 index 0000000..fd9326b --- /dev/null +++ b/sip/kdeui/kmainwindowiface.sip @@ -0,0 +1,71 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kmainwindowiface.h> +%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<QCString,DCOPRef> 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 new file mode 100644 index 0000000..b455a74 --- /dev/null +++ b/sip/kdeui/kmenubar.sip @@ -0,0 +1,91 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kmenubar.h> +%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 new file mode 100644 index 0000000..597137b --- /dev/null +++ b/sip/kdeui/kmessagebox.sip @@ -0,0 +1,260 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kmessagebox.h> +%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 new file mode 100644 index 0000000..cdcf8a7 --- /dev/null +++ b/sip/kdeui/knuminput.sip @@ -0,0 +1,261 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <knuminput.h> +%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 <knuminput.h> +%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 <knuminput.h> +%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 <knuminput.h> +%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 <knuminput.h> +%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 new file mode 100644 index 0000000..f72f338 --- /dev/null +++ b/sip/kdeui/knumvalidator.sip @@ -0,0 +1,89 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <knumvalidator.h> +%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 <knumvalidator.h> +%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 <knumvalidator.h> +%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 new file mode 100644 index 0000000..c689b77 --- /dev/null +++ b/sip/kdeui/kpanelapplet.sip @@ -0,0 +1,140 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kpanelapplet.h> +%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 new file mode 100644 index 0000000..82fea92 --- /dev/null +++ b/sip/kdeui/kpanelappmenu.sip @@ -0,0 +1,51 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kpanelappmenu.h> +%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 new file mode 100644 index 0000000..c996fda --- /dev/null +++ b/sip/kdeui/kpanelextension.sip @@ -0,0 +1,159 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kpanelextension.h> +%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 new file mode 100644 index 0000000..41e9199 --- /dev/null +++ b/sip/kdeui/kpanelmenu.sip @@ -0,0 +1,65 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kpanelmenu.h> +%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 new file mode 100644 index 0000000..e1532f5 --- /dev/null +++ b/sip/kdeui/kpassdlg.sip @@ -0,0 +1,138 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kpassdlg.h> +%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 <kpassdlg.h> +%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 new file mode 100644 index 0000000..d7af4c2 --- /dev/null +++ b/sip/kdeui/kpassivepopup.sip @@ -0,0 +1,112 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <kpassivepopup.h> +%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 new file mode 100644 index 0000000..281978a --- /dev/null +++ b/sip/kdeui/kpixmapio.sip @@ -0,0 +1,53 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kpixmapio.h> +%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 new file mode 100644 index 0000000..b591a36 --- /dev/null +++ b/sip/kdeui/kpixmapregionselectordialog.sip @@ -0,0 +1,49 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <kpixmapregionselectordialog.h> +%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 new file mode 100644 index 0000000..efa5084 --- /dev/null +++ b/sip/kdeui/kpixmapregionselectorwidget.sip @@ -0,0 +1,60 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <kpixmapregionselectorwidget.h> +%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 new file mode 100644 index 0000000..2f5fe09 --- /dev/null +++ b/sip/kdeui/kpopupmenu.sip @@ -0,0 +1,149 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kpopupmenu.h> +%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 <kpopupmenu.h> +%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 new file mode 100644 index 0000000..523a9ae --- /dev/null +++ b/sip/kdeui/kprogress.sip @@ -0,0 +1,102 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kprogress.h> +%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 <kprogress.h> +%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 new file mode 100644 index 0000000..f8a9ab1 --- /dev/null +++ b/sip/kdeui/kpushbutton.sip @@ -0,0 +1,67 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kpushbutton.h> +%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 new file mode 100644 index 0000000..8bb6f96 --- /dev/null +++ b/sip/kdeui/krestrictedline.sip @@ -0,0 +1,49 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <krestrictedline.h> +%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 new file mode 100644 index 0000000..91d26c2 --- /dev/null +++ b/sip/kdeui/krootpixmap.sip @@ -0,0 +1,71 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <krootpixmap.h> +%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 new file mode 100644 index 0000000..a62b7e9 --- /dev/null +++ b/sip/kdeui/kruler.sip @@ -0,0 +1,108 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kruler.h> +%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 new file mode 100644 index 0000000..a4a475c --- /dev/null +++ b/sip/kdeui/kscrollview.sip @@ -0,0 +1,53 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <kscrollview.h> +%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 new file mode 100644 index 0000000..681c91b --- /dev/null +++ b/sip/kdeui/kselect.sip @@ -0,0 +1,142 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kselect.h> +%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 <kselect.h> +%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 <kselect.h> +%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 new file mode 100644 index 0000000..e1bc22e --- /dev/null +++ b/sip/kdeui/kseparator.sip @@ -0,0 +1,48 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kseparator.h> +%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 new file mode 100644 index 0000000..7cec3f9 --- /dev/null +++ b/sip/kdeui/ksharedpixmap.sip @@ -0,0 +1,62 @@ +// +// Copyright 2004 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui 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 <qwidget.h> +#include <qpaintdevice.h> +#include <qpixmap.h> +#include <kpixmap.h> +#include <ksharedpixmap.h> +%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 new file mode 100644 index 0000000..771a09c --- /dev/null +++ b/sip/kdeui/kshortcutdialog.sip @@ -0,0 +1,53 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <kshortcutdialog.h> +%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 new file mode 100644 index 0000000..1598ad4 --- /dev/null +++ b/sip/kdeui/ksplashscreen.sip @@ -0,0 +1,42 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <ksplashscreen.h> +%End + + +public: + KSplashScreen (const QPixmap&, WFlags = 0); + +}; // class KSplashScreen + +%End + diff --git a/sip/kdeui/ksqueezedtextlabel.sip b/sip/kdeui/ksqueezedtextlabel.sip new file mode 100644 index 0000000..15a9a57 --- /dev/null +++ b/sip/kdeui/ksqueezedtextlabel.sip @@ -0,0 +1,60 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <ksqueezedtextlabel.h> +%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 new file mode 100644 index 0000000..d4aaf97 --- /dev/null +++ b/sip/kdeui/kstatusbar.sip @@ -0,0 +1,82 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kstatusbar.h> +%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 <kstatusbar.h> +%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 new file mode 100644 index 0000000..75bb867 --- /dev/null +++ b/sip/kdeui/kstdaction.sip @@ -0,0 +1,327 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 new file mode 100644 index 0000000..615d65a --- /dev/null +++ b/sip/kdeui/kstdguiitem.sip @@ -0,0 +1,350 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kstdguiitem.h> +%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<KGuiItem,KGuiItem> 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<KGuiItem,KGuiItem> +//converts a Python tuple (KGuiItem,KGuiItem) +{ +%TypeHeaderCode +#include <kguiitem.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyTuple_New(0); + + // Create the tuple + PyObject *pytuple; + if ((pytuple = PyTuple_New(0)) == NULL) + return NULL; + + QPair<KGuiItem,KGuiItem> *cpp = (QPair<KGuiItem,KGuiItem> *)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<KGuiItem, KGuiItem> (*g1, *g2); + + return 1; +%End +}; + + diff --git a/sip/kdeui/kstringvalidator.sip b/sip/kdeui/kstringvalidator.sip new file mode 100644 index 0000000..a0a66a4 --- /dev/null +++ b/sip/kdeui/kstringvalidator.sip @@ -0,0 +1,63 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kstringvalidator.h> +%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 <kstringvalidator.h> +%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 new file mode 100644 index 0000000..853f8bc --- /dev/null +++ b/sip/kdeui/ksystemtray.sip @@ -0,0 +1,84 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <ksystemtray.h> +%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 new file mode 100644 index 0000000..6b540bb --- /dev/null +++ b/sip/kdeui/ktabbar.sip @@ -0,0 +1,98 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <ktabbar.h> +%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 new file mode 100644 index 0000000..f1325af --- /dev/null +++ b/sip/kdeui/ktabctl.sip @@ -0,0 +1,64 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <ktabctl.h> +%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 new file mode 100644 index 0000000..3a66cbf --- /dev/null +++ b/sip/kdeui/ktabwidget.sip @@ -0,0 +1,144 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <ktabwidget.h> +%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 new file mode 100644 index 0000000..b6d981e --- /dev/null +++ b/sip/kdeui/ktextbrowser.sip @@ -0,0 +1,58 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <ktextbrowser.h> +%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 new file mode 100644 index 0000000..fac0335 --- /dev/null +++ b/sip/kdeui/ktextedit.sip @@ -0,0 +1,83 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <ktextedit.h> +%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 new file mode 100644 index 0000000..039319e --- /dev/null +++ b/sip/kdeui/kthemebase.sip @@ -0,0 +1,258 @@ +// +// Copyright 2003 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui 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 <kthemebase.h> +%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 <kthemebase.h> +%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 <kthemebase.h> +%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 new file mode 100644 index 0000000..d1136cf --- /dev/null +++ b/sip/kdeui/kthemestyle.sip @@ -0,0 +1,89 @@ +// +// Copyright 2003 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui 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 <kthemestyle.h> +%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 new file mode 100644 index 0000000..6c94968 --- /dev/null +++ b/sip/kdeui/ktimewidget.sip @@ -0,0 +1,50 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <ktimewidget.h> +%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 new file mode 100644 index 0000000..7672738 --- /dev/null +++ b/sip/kdeui/ktimezonewidget.sip @@ -0,0 +1,45 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <ktimezonewidget.h> +%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 new file mode 100644 index 0000000..124c82b --- /dev/null +++ b/sip/kdeui/ktip.sip @@ -0,0 +1,82 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <ktip.h> +%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 <ktip.h> +%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 new file mode 100644 index 0000000..01787f4 --- /dev/null +++ b/sip/kdeui/ktmainwindow.sip @@ -0,0 +1,53 @@ +// +// Copyright 2003 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui 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 <ktmainwindow.h> +%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 new file mode 100644 index 0000000..3097c38 --- /dev/null +++ b/sip/kdeui/ktoolbar.sip @@ -0,0 +1,263 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <ktoolbar.h> +%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 <ktoolbar.h> +%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 new file mode 100644 index 0000000..2858528 --- /dev/null +++ b/sip/kdeui/ktoolbarbutton.sip @@ -0,0 +1,123 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <ktoolbarbutton.h> +%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 new file mode 100644 index 0000000..27383ce --- /dev/null +++ b/sip/kdeui/ktoolbarlabelaction.sip @@ -0,0 +1,51 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <ktoolbarlabelaction.h> +%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 new file mode 100644 index 0000000..65da45f --- /dev/null +++ b/sip/kdeui/ktoolbarradiogroup.sip @@ -0,0 +1,43 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <ktoolbarradiogroup.h> +%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 new file mode 100644 index 0000000..25245eb --- /dev/null +++ b/sip/kdeui/kurllabel.sip @@ -0,0 +1,108 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kurllabel.h> +%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 new file mode 100644 index 0000000..e9908eb --- /dev/null +++ b/sip/kdeui/kwindowinfo.sip @@ -0,0 +1,61 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <kwindowinfo.h> +%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 new file mode 100644 index 0000000..a21a369 --- /dev/null +++ b/sip/kdeui/kwindowlistmenu.sip @@ -0,0 +1,54 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kwindowlistmenu.h> +%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 new file mode 100644 index 0000000..7dab5a9 --- /dev/null +++ b/sip/kdeui/kwizard.sip @@ -0,0 +1,38 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kwizard.h> +%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 new file mode 100644 index 0000000..b5a3590 --- /dev/null +++ b/sip/kdeui/kwordwrap.sip @@ -0,0 +1,82 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kwordwrap.h> +%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 new file mode 100644 index 0000000..fd58998 --- /dev/null +++ b/sip/kdeui/kxmlgui.sip @@ -0,0 +1,26 @@ +// +// Copyright 2003 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui 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 new file mode 100644 index 0000000..247a6f5 --- /dev/null +++ b/sip/kdeui/kxmlguibuilder.sip @@ -0,0 +1,53 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kxmlguibuilder.h> +%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 new file mode 100644 index 0000000..73f0a49 --- /dev/null +++ b/sip/kdeui/kxmlguiclient.sip @@ -0,0 +1,101 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kxmlguiclient.h> +%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<KXMLGUIClient>* childClients (); + void setClientBuilder (KXMLGUIBuilder*); + KXMLGUIBuilder* clientBuilder () const; + void reloadXML (); + void plugActionList (const QString&, const QPtrList<KAction>&); + 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 new file mode 100644 index 0000000..6c2f6b8 --- /dev/null +++ b/sip/kdeui/kxmlguifactory.sip @@ -0,0 +1,297 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <kxmlguifactory.h> +%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<KAction>&); + void unplugActionList (KXMLGUIClient*, const QString&); + QPtrList<KXMLGUIClient> clients () const; + QWidget* container (const QString&, KXMLGUIClient*, bool = 0); + QPtrList<QWidget> 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<KAction> testKActionList (QPtrList<KAction>); +%MethodCode +//takes list | (QPtrList<KAction>) +//returns (QPtrList<KAction>) + + sipRes = a0; +%End + +//end + + +%MappedType QPtrList<KAction> +//converts a Python list of KAction +{ +%TypeHeaderCode +#include <qptrlist.h> +#include <kaction.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList<KAction> *cpplist = (QPtrList<KAction> *)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<KAction> *cpplist = new QPtrList<KAction>; + + 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<KXMLGUIClient> +//converts a Python list of KXMLGUIClient +{ +%TypeHeaderCode +#include <qptrlist.h> +#include <kxmlguiclient.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList<KXMLGUIClient> *cpplist = (QPtrList<KXMLGUIClient> *)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<KXMLGUIClient> *cpplist = new QPtrList<KXMLGUIClient>; + + 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<QWidget> +//converts a Python list of QWidget +{ +%TypeHeaderCode +#include <qptrlist.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList<QWidget> *cpplist = (QPtrList<QWidget> *)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<QWidget> *cpplist = new QPtrList<QWidget>; + + 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 new file mode 100644 index 0000000..ab46875 --- /dev/null +++ b/sip/kdeui/qxembed.sip @@ -0,0 +1,113 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; 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 <qxembed.h> +%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/kfile/booktoken.sip b/sip/kfile/booktoken.sip new file mode 100644 index 0000000..cf5870a --- /dev/null +++ b/sip/kfile/booktoken.sip @@ -0,0 +1,66 @@ +// +// Copyright 2003 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile 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 BMToken +{ +%TypeHeaderCode +#include <booktoken.h> +%End + + +public: + BMToken (const char*, int); + char* token (); + BMToken* next (); + void setNext (BMToken*); + +}; // class BMToken + + +class BookmarkTokenizer +{ +%TypeHeaderCode +#include <booktoken.h> +%End + + +public: + BookmarkTokenizer (); + void begin (); + void write (const QString&); + void end (); + char* nextToken (); + bool hasMoreTokens (); + void first (); + +protected: + void reset (); + void appendToken (const char*, int); + +protected: + +}; // class BookmarkTokenizer + diff --git a/sip/kfile/kcombiview.sip b/sip/kfile/kcombiview.sip new file mode 100644 index 0000000..43867f6 --- /dev/null +++ b/sip/kfile/kcombiview.sip @@ -0,0 +1,90 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KCombiView : QSplitter, KFileView +{ +%TypeHeaderCode +#include <kcombiview.h> +%End + + +public: + KCombiView (QWidget* /TransferThis/, const char*); + virtual QWidget* widget (); + virtual void clearView (); + virtual void updateView (bool); + virtual void updateView (const KFileItem*); + virtual void removeItem (const KFileItem*); + virtual void listingCompleted (); + void setRight (KFileView*); + virtual void setSelectionMode (KFile::SelectionMode); + virtual void setSelected (const KFileItem*, bool); + virtual bool isSelected (const KFileItem*) const; + virtual void clearSelection (); + virtual void selectAll (); + virtual void invertSelection (); + virtual void setCurrentItem (const KFileItem*); + virtual KFileItem* currentFileItem () const; + virtual KFileItem* firstFileItem () const; + virtual KFileItem* nextItem (const KFileItem*) const; + virtual KFileItem* prevItem (const KFileItem*) const; + virtual void insertItem (KFileItem*); + virtual void clear (); + virtual void setSorting (QDir::SortSpec); + +%If ( KDE_3_1_0 - ) + virtual void readConfig (KConfig*, const QString& = QString ::null ); + virtual void writeConfig (KConfig*, const QString& = QString ::null ); +%End + + void ensureItemVisible (const KFileItem*); + +%If ( KDE_3_1_0 - ) + virtual KActionCollection* actionCollection () const; + +%If ( KDE_3_2_0 - ) + virtual void setAcceptDrops (bool); +%End + +%End + + +protected: + +protected slots: + void slotSortingChanged (QDir::SortSpec); + +protected: + +%If ( KDE_3_2_0 - ) + virtual bool eventFilter (QObject*, QEvent*); + void setDropOptions_impl (int); +%End + +//igx virtual void virtual_hook (int, void*); + +}; // class KCombiView + diff --git a/sip/kfile/kcustommenueditor.sip b/sip/kfile/kcustommenueditor.sip new file mode 100644 index 0000000..1ade864 --- /dev/null +++ b/sip/kfile/kcustommenueditor.sip @@ -0,0 +1,57 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KCustomMenuEditor : KDialogBase +{ +%TypeHeaderCode +#include <kcustommenueditor.h> +%End + + +public: + KCustomMenuEditor (QWidget* /TransferThis/); + void load (KConfigBase*); + void save (KConfigBase*); + +public slots: + void slotNewItem (); + void slotRemoveItem (); + void slotMoveUp (); + void slotMoveDown (); + +%If ( KDE_3_2_0 - ) + void refreshButton (); +%End + + +protected: + +}; // class KCustomMenuEditor + +%End + diff --git a/sip/kfile/kdiroperator.sip b/sip/kfile/kdiroperator.sip new file mode 100644 index 0000000..a0073e6 --- /dev/null +++ b/sip/kfile/kdiroperator.sip @@ -0,0 +1,205 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDirOperator : QWidget +{ +%TypeHeaderCode +#include <kdiroperator.h> +%End + + +public: + +%If ( KDE_3_1_0 - ) + + enum ActionTypes + { + SortActions, + ViewActions, + NavActions, + FileActions, + AllActions + }; + +%End + + KDirOperator (const KURL& = KURL (), QWidget* /TransferThis/ = 0, const char* = 0); + void setShowHiddenFiles (bool); + bool showHiddenFiles () const; + void close (); + +%If ( KDE_3_4_0 - ) + virtual bool close (bool); +%End + + void setNameFilter (const QString&); + const QString& nameFilter () const; + +%If ( KDE_3_1_2 - ) + void setMimeFilter (const QStringList&); + QStringList mimeFilter () const; + void clearFilter (); +%End + + KURL url () const; + void setURL (const KURL&, bool); + void setCurrentItem (const QString&); + void setView (KFileView*); + const KFileView* view () const; + QWidget* viewWidget () const; + void setView (KFile::FileView); + void setSorting (QDir::SortSpec); + QDir::SortSpec sorting () const; + bool isRoot () const; + KDirLister* dirLister () const; + KProgress* progressBar () const; + void setMode (KFile::Mode); + KFile::Mode mode () const; + void setPreviewWidget (const QWidget*); + const KFileItemList* selectedItems () const; + bool isSelected (const KFileItem*) const; + int numDirs () const; + int numFiles () const; + KCompletion* completionObject () const; + KCompletion* dirCompletionObject () const; + KActionCollection* actionCollection () const; + +%If ( KDE_3_1_0 - ) + void setViewConfig (KConfig*, const QString&); + KConfig* viewConfig (); + QString viewConfigGroup () const; +%End + + virtual void readConfig (KConfig*, const QString& = QString ::null ); + virtual void writeConfig (KConfig*, const QString& = QString ::null ); + void setOnlyDoubleClickSelectsFiles (bool); + bool onlyDoubleClickSelectsFiles () const; + bool mkdir (const QString&, bool = 1); + KIO::DeleteJob* del (const KFileItemList&, bool = 1, bool = 1) /PyName=del_/; + +%If ( KDE_3_0_3 - ) + KIO::DeleteJob* del (const KFileItemList&, QWidget* /Transfer/, bool = 1, bool = 1) /PyName=del_/; +%End + + void clearHistory (); + void setEnableDirHighlighting (bool); + bool dirHighlighting () const; + bool dirOnlyMode () const; + static bool dirOnlyMode (uint); + +%If ( KDE_3_1_0 - ) + void setupMenu (int); + +%If ( KDE_3_2_0 - ) + virtual void setAcceptDrops (bool); + void setDropOptions (int); + +%If ( KDE_3_4_0 - ) + KIO::CopyJob* trash (const KFileItemList&, QWidget* /Transfer/, bool = 1, bool = 1); +%End + +%End + +%End + + +protected: + virtual KFileView* createView (QWidget* /Transfer/, KFile::FileView); + void setDirLister (KDirLister*); + +%If ( KDE_3_2_0 - ) + virtual void resizeEvent (QResizeEvent*); +%End + + void setupActions (); + void updateSortActions (); + void updateViewActions (); + void setupMenu (); + void prepareCompletionObjects (); + bool checkPreviewSupport (); + +public slots: + void back (); + void forward (); + void home (); + void cdUp (); + void updateDir (); + void rereadDir (); + void mkdir (); + void deleteSelected (); + void updateSelectionDependentActions (); + QString makeCompletion (const QString&); + QString makeDirCompletion (const QString&); + +%If ( KDE_3_4_0 - ) + void trashSelected (KAction::ActivationReason, Qt::ButtonState); +%End + + +protected slots: + void resetCursor (); + void pathChanged (); + void insertNewFiles (const KFileItemList&); + void itemDeleted (KFileItem*); + void selectDir (const KFileItem*); + void selectFile (const KFileItem*); + void highlightFile (const KFileItem*); + virtual void activatedMenu (const KFileItem*, const QPoint&); + void sortByName (); + void sortBySize (); + void sortByDate (); + void sortReversed (); + void toggleDirsFirst (); + void toggleIgnoreCase (); + void slotCompletionMatch (const QString&); + +signals: + void urlEntered (const KURL&); + void updateInformation (int, int); + void completion (const QString&); + void finishedLoading (); + void viewChanged (KFileView*); + void fileHighlighted (const KFileItem*); + void dirActivated (const KFileItem*); + void fileSelected (const KFileItem*); + +%If ( KDE_3_2_0 - ) + void dropped (const KFileItem*, QDropEvent*, const KURL::List&); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( - KDE_3_2_0 ) + void resizeEvent (QResizeEvent*); +%End + + +}; // class KDirOperator + diff --git a/sip/kfile/kdirselectdialog.sip b/sip/kfile/kdirselectdialog.sip new file mode 100644 index 0000000..da84286 --- /dev/null +++ b/sip/kfile/kdirselectdialog.sip @@ -0,0 +1,71 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDirSelectDialog : KDialogBase +{ +%TypeHeaderCode +#include <kdirselectdialog.h> +%End + + +public: + KDirSelectDialog (const QString& = QString ::null , bool = 0, QWidget* /TransferThis/ = 0, const char* = 0, bool = 0); + KURL url () const; + KFileTreeView* view () const; + bool localOnly () const; + static KURL selectDirectory (const QString& = QString ::null , bool = 0, QWidget* /Transfer/ = 0, const QString& = QString ::null ); + +%If ( KDE_3_1_0 - ) + QString startDir () const; +%End + + +public slots: + +%If ( KDE_3_1_0 - ) + void setCurrentURL (const KURL&); +%End + + +protected slots: + +%If ( KDE_3_5_0 - ) + virtual void slotUser1 (); +%End + + +protected: + +%If ( KDE_3_1_0 - ) + virtual void accept (); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDirSelectDialog + diff --git a/sip/kfile/kdirsize.sip b/sip/kfile/kdirsize.sip new file mode 100644 index 0000000..472cf86 --- /dev/null +++ b/sip/kfile/kdirsize.sip @@ -0,0 +1,85 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDirSize : KIO::Job +{ +%TypeHeaderCode +#include <kdirsize.h> +%End + + +protected: + KDirSize (const KURL&); + KDirSize (const KFileItemList&); + ~KDirSize (); + +public: + KIO::filesize_t totalSize () const; + +%If ( KDE_3_3_0 - ) + KIO::filesize_t totalFiles () const; + KIO::filesize_t totalSubdirs () const; +%End + + static KDirSize* dirSizeJob (const KURL&); + static KDirSize* dirSizeJob (const KFileItemList&); + +%If ( KDE_3_1_2 - ) + static KIO::filesize_t dirSize (const KURL&); +%End + + +protected: + void setSync (); + void startNextJob (const KURL&); + +protected slots: + virtual void slotResult (KIO::Job*); + void slotEntries (KIO::Job*, const KIO::UDSEntryList&); + void processList (); + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( - KDE_3_0_1 ) +//ig longlong totalSize64 (); +%End + + +%If ( - KDE_3_1_2 ) + static ulong dirSize (const KURL&); + +%If ( - KDE_3_0_1 ) +//ig static longlong dirSize64 (const KURL&); +%End + +%End + + +}; // class KDirSize + diff --git a/sip/kfile/kdiskfreesp.sip b/sip/kfile/kdiskfreesp.sip new file mode 100644 index 0000000..c28a55f --- /dev/null +++ b/sip/kfile/kdiskfreesp.sip @@ -0,0 +1,49 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KDiskFreeSp : QObject +{ +%TypeHeaderCode +#include <kdiskfreesp.h> +%End + + +public: + KDiskFreeSp (QObject* /TransferThis/ = 0, const char* = 0); + int readDF (const QString&); + static KDiskFreeSp* findUsageInfo (const QString&); + +signals: + void foundMountPoint (const QString&, ulong, ulong, ulong); +//ig void foundMountPoint (const ulong&, const ulong&, const ulong&, const QString&); + void done (); + +}; // class KDiskFreeSp + +%End + diff --git a/sip/kfile/kencodingfiledialog.sip b/sip/kfile/kencodingfiledialog.sip new file mode 100644 index 0000000..711404a --- /dev/null +++ b/sip/kfile/kencodingfiledialog.sip @@ -0,0 +1,65 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KEncodingFileDialog : KFileDialog +{ +%TypeHeaderCode +#include <kencodingfiledialog.h> +%End + + +public: + + class Result + { + + public: + QStringList fileNames; + KURL::List URLs; + QString encoding; + + }; // class Result + + +public: + KEncodingFileDialog (const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , KFileDialog::OperationMode = KFileDialog ::Opening , QWidget* /TransferThis/ = 0, const char* = "", bool = 1); + QString selectedEncoding () const; + static KEncodingFileDialog::Result getOpenFileNameAndEncoding (const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + static KEncodingFileDialog::Result getOpenFileNamesAndEncoding (const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + static KEncodingFileDialog::Result getOpenURLAndEncoding (const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + static KEncodingFileDialog::Result getOpenURLsAndEncoding (const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + static KEncodingFileDialog::Result getSaveFileNameAndEncoding (const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + static KEncodingFileDialog::Result getSaveURLAndEncoding (const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + +protected: + virtual void virtual_hook (int, void*); + +}; // class KEncodingFileDialog + +%End + diff --git a/sip/kfile/kfile-kde310.diff b/sip/kfile/kfile-kde310.diff new file mode 100644 index 0000000..ddad6d6 --- /dev/null +++ b/sip/kfile/kfile-kde310.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip ++ %Include knotifywidgetbase.sip diff --git a/sip/kfile/kfile-kde311.diff b/sip/kfile/kfile-kde311.diff new file mode 100644 index 0000000..ddad6d6 --- /dev/null +++ b/sip/kfile/kfile-kde311.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip ++ %Include knotifywidgetbase.sip diff --git a/sip/kfile/kfile-kde312.diff b/sip/kfile/kfile-kde312.diff new file mode 100644 index 0000000..ddad6d6 --- /dev/null +++ b/sip/kfile/kfile-kde312.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip ++ %Include knotifywidgetbase.sip diff --git a/sip/kfile/kfile-kde313.diff b/sip/kfile/kfile-kde313.diff new file mode 100644 index 0000000..ddad6d6 --- /dev/null +++ b/sip/kfile/kfile-kde313.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip ++ %Include knotifywidgetbase.sip diff --git a/sip/kfile/kfile-kde314.diff b/sip/kfile/kfile-kde314.diff new file mode 100644 index 0000000..ddad6d6 --- /dev/null +++ b/sip/kfile/kfile-kde314.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip ++ %Include knotifywidgetbase.sip diff --git a/sip/kfile/kfile-kde315.diff b/sip/kfile/kfile-kde315.diff new file mode 100644 index 0000000..ddad6d6 --- /dev/null +++ b/sip/kfile/kfile-kde315.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip ++ %Include knotifywidgetbase.sip diff --git a/sip/kfile/kfile-kde320.diff b/sip/kfile/kfile-kde320.diff new file mode 100644 index 0000000..f5ab9bd --- /dev/null +++ b/sip/kfile/kfile-kde320.diff @@ -0,0 +1,6 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip ++ %Include knotifywidgetbase.sip
\ No newline at end of file diff --git a/sip/kfile/kfile-kde321.diff b/sip/kfile/kfile-kde321.diff new file mode 100644 index 0000000..2545aae --- /dev/null +++ b/sip/kfile/kfile-kde321.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde322.diff b/sip/kfile/kfile-kde322.diff new file mode 100644 index 0000000..2545aae --- /dev/null +++ b/sip/kfile/kfile-kde322.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde323.diff b/sip/kfile/kfile-kde323.diff new file mode 100644 index 0000000..2545aae --- /dev/null +++ b/sip/kfile/kfile-kde323.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde330.diff b/sip/kfile/kfile-kde330.diff new file mode 100644 index 0000000..2545aae --- /dev/null +++ b/sip/kfile/kfile-kde330.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde331.diff b/sip/kfile/kfile-kde331.diff new file mode 100644 index 0000000..2545aae --- /dev/null +++ b/sip/kfile/kfile-kde331.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde332.diff b/sip/kfile/kfile-kde332.diff new file mode 100644 index 0000000..2545aae --- /dev/null +++ b/sip/kfile/kfile-kde332.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde340.diff b/sip/kfile/kfile-kde340.diff new file mode 100644 index 0000000..2545aae --- /dev/null +++ b/sip/kfile/kfile-kde340.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde341.diff b/sip/kfile/kfile-kde341.diff new file mode 100644 index 0000000..2545aae --- /dev/null +++ b/sip/kfile/kfile-kde341.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde342.diff b/sip/kfile/kfile-kde342.diff new file mode 100644 index 0000000..2545aae --- /dev/null +++ b/sip/kfile/kfile-kde342.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde343.diff b/sip/kfile/kfile-kde343.diff new file mode 100644 index 0000000..2545aae --- /dev/null +++ b/sip/kfile/kfile-kde343.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde350.diff b/sip/kfile/kfile-kde350.diff new file mode 100644 index 0000000..2545aae --- /dev/null +++ b/sip/kfile/kfile-kde350.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde351.diff b/sip/kfile/kfile-kde351.diff new file mode 100644 index 0000000..2545aae --- /dev/null +++ b/sip/kfile/kfile-kde351.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde352.diff b/sip/kfile/kfile-kde352.diff new file mode 100644 index 0000000..81a0603 --- /dev/null +++ b/sip/kfile/kfile-kde352.diff @@ -0,0 +1,6 @@ +- %Include krecentdirs.sip ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde353.diff b/sip/kfile/kfile-kde353.diff new file mode 100644 index 0000000..2545aae --- /dev/null +++ b/sip/kfile/kfile-kde353.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/sip/kfile/kfile.sip b/sip/kfile/kfile.sip new file mode 100644 index 0000000..e383ff8 --- /dev/null +++ b/sip/kfile/kfile.sip @@ -0,0 +1,115 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KFile +{ +%TypeHeaderCode +#include <kfile.h> +%End + + +public: + +%If ( KDE_3_3_0 - ) + + enum Mode + { + File, + Directory, + Files, + ExistingOnly, + LocalOnly, + ModeMax + }; + + + enum FileView + { + Default, + Simple, + Detail, + SeparateDirs, + PreviewContents, + PreviewInfo, + FileViewMax + }; + +%End + + + enum SelectionMode + { + Single, + Multi, + Extended, + NoSelection + }; + + static bool isSortByName (const QDir::SortSpec&); + static bool isSortBySize (const QDir::SortSpec&); + static bool isSortByDate (const QDir::SortSpec&); + static bool isSortDirsFirst (const QDir::SortSpec&); + static bool isSortCaseInsensitive (const QDir::SortSpec&); + static bool isDefaultView (const KFile::FileView&); + static bool isSimpleView (const KFile::FileView&); + static bool isDetailView (const KFile::FileView&); + static bool isSeparateDirs (const KFile::FileView&); + static bool isPreviewContents (const KFile::FileView&); + +%If ( KDE_3_1_0 - ) + static bool isPreviewInfo (const KFile::FileView&); +%End + + +public: + +%If ( - KDE_3_3_0 ) + + enum Mode + { + File, + Directory, + Files, + ExistingOnly, + LocalOnly + }; + + + enum FileView + { + Default, + Simple, + Detail, + SeparateDirs, + PreviewContents, + PreviewInfo + }; + +%End + + +}; // class KFile + diff --git a/sip/kfile/kfilebookmark.sip b/sip/kfile/kfilebookmark.sip new file mode 100644 index 0000000..48d7cac --- /dev/null +++ b/sip/kfile/kfilebookmark.sip @@ -0,0 +1,154 @@ +// +// Copyright 2003 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile 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 KFileBookmark +{ +%TypeHeaderCode +#include <kfilebookmark.h> +%End + + +public: + + enum + { + URL, + Folder + }; + + KFileBookmark (); + KFileBookmark (const QString&, const QString&); + void clear (); + void setText (const QString&); + void setURL (const QString&); + void setType (int); + const QString getText (); + const QString getURL (); + int getType (); + QPtrList<KFileBookmark>& getChildren (); + +}; // class KFileBookmark + + +class KFileBookmarkManager : QObject +{ +%TypeHeaderCode +#include <kfilebookmark.h> +%End + + +public: + KFileBookmarkManager (); + void setTitle (const QString&); + void read (const QString&); + void write (const QString&); + void add (const QString&, const QString&); + bool remove (int); + bool moveUp (int); + bool moveDown (int); + void reread (); + void rename (int, const QString&); + void write (); + KFileBookmark* getBookmark (int); + KFileBookmark* getRoot (); + +signals: + void changed (); + +}; // class KFileBookmarkManager + + + +%MappedType QPtrList<KFileBookmark> +//converts a Python list of KFileBookmark +{ +%TypeHeaderCode +#include <qptrlist.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList<KFileBookmark> *cpplist = (QPtrList<KFileBookmark> *)sipCpp; + KFileBookmark *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_KFileBookmark, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList<KFileBookmark> *cpplist = new QPtrList<KFileBookmark>; + + PyObject *elem; + KFileBookmark *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KFileBookmark *)sipForceConvertToType(elem, sipType_KFileBookmark, 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/kfile/kfiledetailview.sip b/sip/kfile/kfiledetailview.sip new file mode 100644 index 0000000..0528e3d --- /dev/null +++ b/sip/kfile/kfiledetailview.sip @@ -0,0 +1,207 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KFileListViewItem : KListViewItem +{ +%TypeHeaderCode +#include <kfiledetailview.h> +%End + + +public: + KFileListViewItem (QListView* /TransferThis/, const QString&, const QPixmap&, KFileItem*); + +%If ( KDE_3_0_1 - ) + KFileListViewItem (QListView* /TransferThis/, KFileItem*); +%End + + KFileListViewItem (QListView* /TransferThis/, const QString&, const QPixmap&, KFileItem*, QListViewItem*); + KFileItem* fileInfo () const; + virtual QString key (int, bool) const; + void setKey (const QString&); + QRect rect () const; + +%If ( KDE_3_0_1 - ) + void init (); +%End + + +}; // class KFileListViewItem + + +class KFileDetailView : KListView, KFileView +{ +%TypeHeaderCode +#include <kfiledetailview.h> +%End + + +public: + KFileDetailView (QWidget* /TransferThis/, const char*); + virtual QWidget* widget (); + virtual void clearView (); + virtual void setAutoUpdate (bool); + virtual void setSelectionMode (KFile::SelectionMode); + virtual void updateView (bool); + virtual void updateView (const KFileItem*); + virtual void removeItem (const KFileItem*); + virtual void listingCompleted (); + virtual void setSelected (const KFileItem*, bool); + virtual bool isSelected (const KFileItem*) const; + virtual void clearSelection (); + virtual void selectAll (); + virtual void invertSelection (); + virtual void setCurrentItem (const KFileItem*); + virtual KFileItem* currentFileItem () const; + virtual KFileItem* firstFileItem () const; + virtual KFileItem* nextItem (const KFileItem*) const; + virtual KFileItem* prevItem (const KFileItem*) const; + virtual void insertItem (KFileItem*); + virtual void setSorting (QDir::SortSpec); + void ensureItemVisible (const KFileItem*); + void mimeTypeDeterminationFinished (); + void determineIcon (KFileListViewItem*); + QScrollView* scrollWidget () const; + +%If ( KDE_3_2_0 - ) + virtual void readConfig (KConfig*, const QString& = QString ::null ); + virtual void writeConfig (KConfig*, const QString& = QString ::null ); +%End + + +signals: + +%If ( KDE_3_2_0 - ) + void dropped (QDropEvent*, KFileItem*); + void dropped (QDropEvent*, const KURL::List&, const KURL&); +%End + + +protected: + virtual void keyPressEvent (QKeyEvent*); + +%If ( KDE_3_2_0 - ) + virtual QDragObject* dragObject (); + virtual void contentsDragEnterEvent (QDragEnterEvent*); + virtual void contentsDragMoveEvent (QDragMoveEvent*); + virtual void contentsDragLeaveEvent (QDragLeaveEvent*); + virtual void contentsDropEvent (QDropEvent*); + virtual bool acceptDrag (QDropEvent*) const; +%End + + +protected slots: + void slotSelectionChanged (); + +protected: +//igx virtual void virtual_hook (int, void*); +//force + +private: + void slotSortingChanged (int); + void selected (QListViewItem*); + void slotDoubleClicked (QListViewItem*); + void highlighted (QListViewItem*); + void rightButtonPressed (QListViewItem*); + +//force +%ConvertToSubClassCode + // The table of Python class objects indexed by their names. The table + // must be sorted by name. + + static sipStringTypeClassMap map[] = { + {sipName_KApplicationPropsPlugin, &sipClass_KApplicationPropsPlugin}, + {sipName_KApplicationPropsPlugin, &sipClass_KApplicationPropsPlugin}, +#if KDE_VERSION < 310 +// {sipName_KApplicationTree, &sipClass_KApplicationTree}, +#endif + {sipName_KBindingPropsPlugin, &sipClass_KBindingPropsPlugin}, + {sipName_KBindingPropsPlugin, &sipClass_KBindingPropsPlugin}, + {sipName_KCombiView, &sipClass_KCombiView}, +#if KDE_VERSION >= 0x030100 + {sipName_KCustomMenuEditor, &sipClass_KCustomMenuEditor}, +#endif + {sipName_KDevicePropsPlugin, &sipClass_KDevicePropsPlugin}, + {sipName_KDevicePropsPlugin, &sipClass_KDevicePropsPlugin}, + {sipName_KDirOperator, &sipClass_KDirOperator}, + {sipName_KDirSelectDialog, &sipClass_KDirSelectDialog}, + {sipName_KDirSize, &sipClass_KDirSize}, +#if KDE_VERSION >= 0x030100 + {sipName_KDiskFreeSp, &sipClass_KDiskFreeSp}, +#endif + {sipName_KExecPropsPlugin, &sipClass_KExecPropsPlugin}, + {sipName_KExecPropsPlugin, &sipClass_KExecPropsPlugin}, + {sipName_KFileDetailView, &sipClass_KFileDetailView}, + {sipName_KFileDialog, &sipClass_KFileDialog}, + {sipName_KFileFilterCombo, &sipClass_KFileFilterCombo}, + {sipName_KFileIconView, &sipClass_KFileIconView}, + {sipName_KFilePermissionsPropsPlugin,&sipClass_KFilePermissionsPropsPlugin}, + {sipName_KFilePermissionsPropsPlugin,&sipClass_KFilePermissionsPropsPlugin}, + {sipName_KFilePreview, &sipClass_KFilePreview}, + {sipName_KFilePropsPlugin, &sipClass_KFilePropsPlugin}, + {sipName_KFilePropsPlugin, &sipClass_KFilePropsPlugin}, +#if KDE_VERSION >= 0x030100 + {sipName_KFileSharePropsPlugin, &sipClass_KFileSharePropsPlugin}, +#endif + {sipName_KFileTreeBranch, &sipClass_KFileTreeBranch}, + {sipName_KFileTreeView, &sipClass_KFileTreeView}, + {sipName_KFileTreeViewToolTip, &sipClass_KFileTreeViewToolTip}, + {sipName_KFileViewSignaler, &sipClass_KFileViewSignaler}, + {sipName_KIconButton, &sipClass_KIconButton}, + {sipName_KIconCanvas, &sipClass_KIconCanvas}, + {sipName_KIconDialog, &sipClass_KIconDialog}, + {sipName_KImageFilePreview, &sipClass_KImageFilePreview}, +#if KDE_VERSION >= 0x030100 + {sipName_KNotifyDialog, &sipClass_KNotifyDialog}, + {sipName_KNotifyWidget, &sipClass_KNotify_KNotifyWidget}, +#if KDE_VERSION < 0x030200 + {sipName_KNotifyWidgetBase, &sipClass_KNotifyWidgetBase}, +#endif +#endif + {sipName_KOpenWithDlg, &sipClass_KOpenWithDlg}, + {sipName_KPreviewWidgetBase, &sipClass_KPreviewWidgetBase}, + {sipName_KPropertiesDialog, &sipClass_KPropertiesDialog}, + {sipName_KPropertiesDialog, &sipClass_KPropertiesDialog}, + {sipName_KPropsDlgPlugin, &sipClass_KPropsDlgPlugin}, + {sipName_KPropsDlgPlugin, &sipClass_KPropsDlgPlugin}, + {sipName_KURLBar, &sipClass_KURLBar}, + {sipName_KURLBarItem, &sipClass_KURLBarItem}, + {sipName_KURLBarItemDialog, &sipClass_KURLBarItemDialog}, + {sipName_KURLBarListBox, &sipClass_KURLBarListBox}, + {sipName_KURLComboBox, &sipClass_KURLComboBox}, + {sipName_KURLPropsPlugin, &sipClass_KURLPropsPlugin}, + {sipName_KURLPropsPlugin, &sipClass_KURLPropsPlugin}, + {sipName_KURLRequester, &sipClass_KURLRequester}, + {sipName_KURLRequesterDlg, &sipClass_KURLRequesterDlg}, + }; + + sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0])); +%End +//end +//end + +}; // class KFileDetailView + diff --git a/sip/kfile/kfiledialog.sip b/sip/kfile/kfiledialog.sip new file mode 100644 index 0000000..e1e4e32 --- /dev/null +++ b/sip/kfile/kfiledialog.sip @@ -0,0 +1,207 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KFileDialog : KDialogBase +{ +%TypeHeaderCode +#include <kfiledialog.h> +%End + + +public: + + enum OperationMode + { + Other, + Opening, + Saving + }; + + KFileDialog (const QString&, const QString&, QWidget* /TransferThis/, const char*, bool); + +%If ( KDE_3_1_0 - ) + KFileDialog (const QString&, const QString&, QWidget* /TransferThis/, const char*, bool, QWidget*); +%End + + KURL selectedURL () const; + KURL::List selectedURLs () const; + KURL baseURL () const; + QString selectedFile () const; + QStringList selectedFiles () const; + void setURL (const KURL&, bool = 1); + void setSelection (const QString&); + void setOperationMode (KFileDialog::OperationMode); + KFileDialog::OperationMode operationMode () const; + void setKeepLocation (bool); + bool keepsLocation () const; + void setFilter (const QString&); + QString currentFilter () const; + void setFilterMimeType (const QString&, const KMimeType::List&, const KMimeType::Ptr&); + KMimeType::Ptr currentFilterMimeType (); + void setMimeFilter (const QStringList&, const QString& = QString ::null ); + QString currentMimeFilter () const; + void clearFilter (); + void setPreviewWidget (const QWidget*); + void setPreviewWidget (const KPreviewWidgetBase*); + static QString getOpenFileName (const QString& = QString ::null , const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + +%If ( KDE_3_4_0 - ) + static QString getOpenFileNameWId (const QString&, const QString&, WId, const QString&); +%End + + static QStringList getOpenFileNames (const QString& = QString ::null , const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + static KURL getOpenURL (const QString& = QString ::null , const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + static KURL::List getOpenURLs (const QString& = QString ::null , const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + static QString getSaveFileName (const QString& = QString ::null , const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + +%If ( KDE_3_4_0 - ) + static QString getSaveFileNameWId (const QString&, const QString&, WId, const QString&); +%End + + static KURL getSaveURL (const QString& = QString ::null , const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + static QString getExistingDirectory (const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + +%If ( KDE_3_1_0 - ) + static KURL getExistingURL (const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); +%End + + static KURL getImageOpenURL (const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + virtual void show (); + void setMode (KFile::Mode /Constrained/); + void setMode (uint); + KFile::Mode mode () const; + void setLocationLabel (const QString&); + KToolBar* toolBar () const; + KPushButton* okButton () const; + KPushButton* cancelButton () const; + +%If ( KDE_3_2_0 - ) + KURLBar* speedBar (); +%End + + KActionCollection* actionCollection () const; + +%If ( KDE_3_1_0 - ) + int pathComboIndex (); + static KURL getStartURL (const QString&, QString&); + +%If ( KDE_3_2_0 - ) + static void setStartDir (const KURL&); +%End + +%End + + +signals: + void fileSelected (const QString&); + void fileHighlighted (const QString&); + void selectionChanged (); + void filterChanged (const QString&); + +protected: + +%If ( KDE_3_2_0 - ) + virtual void keyPressEvent (QKeyEvent*); +%End + + +%If ( KDE_3_1_0 - ) + void init (const QString&, const QString&, QWidget*); +%End + + virtual void initGUI (); + void multiSelectionChanged (); + virtual void readConfig (KConfig*, const QString& = QString ::null ); + virtual void writeConfig (KConfig*, const QString& = QString ::null ); + virtual void readRecentFiles (KConfig*); + virtual void saveRecentFiles (KConfig*); + KURL::List tokenize (const QString&) const; + +%If ( KDE_3_2_0 - ) + KURL getCompleteURL (const QString&); + QString currentFilterExtension (); + void updateAutoSelectExtension (); +%End + + +protected slots: + void urlEntered (const KURL&); + void enterURL (const KURL&); + void enterURL (const QString&); + void locationActivated (const QString&); + void toolbarCallback (int); + void pathComboChanged (const QString&); + void dirCompletion (const QString&); + void slotFilterChanged (); + void fileHighlighted (const KFileItem*); + void fileSelected (const KFileItem*); + void slotStatResult (KIO::Job*); + void slotLoadingFinished (); + void fileCompletion (const QString&); + +%If ( KDE_3_1_0 - ) + void toggleSpeedbar (bool); + +%If ( KDE_3_4_0 - ) + void toggleBookmarks (bool); +%End + +%End + + virtual void updateStatusLine (int, int); + virtual void slotOk (); + virtual void accept (); + virtual void slotCancel (); + +%If ( KDE_3_2_0 - ) + void slotAutoSelectExtClicked (); +%End + + void addToRecentDocuments (); + +%If ( KDE_3_1_0 - ) + void initSpeedbar (); +%End + + +private: + KFileDialog (const KFileDialog&); + +protected: + KURL::List& parseSelectedURLs () const; + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( - KDE_3_2_0 ) +//ig void addDirEntry (KFileItem*, bool); +%End + + +}; // class KFileDialog + diff --git a/sip/kfile/kfilefiltercombo.sip b/sip/kfile/kfilefiltercombo.sip new file mode 100644 index 0000000..73ffa99 --- /dev/null +++ b/sip/kfile/kfilefiltercombo.sip @@ -0,0 +1,58 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KFileFilterCombo : KComboBox +{ +%TypeHeaderCode +#include <kfilefiltercombo.h> +%End + + +public: + KFileFilterCombo (QWidget* /TransferThis/ = 0, const char* = 0); + void setFilter (const QString&); + QString currentFilter () const; + +%If ( KDE_3_4_0 - ) + void setCurrentFilter (const QString&); +%End + + void setMimeFilter (const QStringList&, const QString&); + bool showsAllTypes () const; + void setDefaultFilter (const QString&); + QString defaultFilter () const; + +protected: + virtual bool eventFilter (QObject*, QEvent*); + +signals: + void filterChanged (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFileFilterCombo + diff --git a/sip/kfile/kfileiconview.sip b/sip/kfile/kfileiconview.sip new file mode 100644 index 0000000..1b33a17 --- /dev/null +++ b/sip/kfile/kfileiconview.sip @@ -0,0 +1,141 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KFileIconViewItem : KIconViewItem +{ +%TypeHeaderCode +#include <kfileiconview.h> +%End + + +public: + KFileIconViewItem (QIconView* /TransferThis/, const QString&, const QPixmap&, KFileItem*); + +%If ( KDE_3_0_1 - ) + KFileIconViewItem (QIconView* /TransferThis/, KFileItem*); +%End + + KFileItem* fileInfo () const; + +}; // class KFileIconViewItem + + +class KFileIconView : KIconView, KFileView +{ +%TypeHeaderCode +#include <kfileiconview.h> +%End + + +public: + KFileIconView (QWidget* /TransferThis/, const char*); + virtual QWidget* widget (); + virtual void clearView (); + virtual void setAutoUpdate (bool); + virtual void updateView (bool); + virtual void updateView (const KFileItem*); + virtual void removeItem (const KFileItem*); + virtual void listingCompleted (); + virtual void insertItem (KFileItem*); + virtual void setSelectionMode (KFile::SelectionMode); + virtual void setSelected (const KFileItem*, bool); + virtual bool isSelected (const KFileItem*) const; + virtual void clearSelection (); + virtual void selectAll (); + virtual void invertSelection (); + virtual void setCurrentItem (const KFileItem*); + virtual KFileItem* currentFileItem () const; + virtual KFileItem* firstFileItem () const; + virtual KFileItem* nextItem (const KFileItem*) const; + virtual KFileItem* prevItem (const KFileItem*) const; + void setIconSize (int); + void setPreviewSize (int); + +%If ( KDE_3_4_0 - ) + void setIgnoreMaximumSize (bool = 1); +%End + + int iconSize () const; + void ensureItemVisible (const KFileItem*); + virtual void setSorting (QDir::SortSpec); + virtual void readConfig (KConfig*, const QString& = QString ::null ); + virtual void writeConfig (KConfig*, const QString& = QString ::null ); + void mimeTypeDeterminationFinished (); + void determineIcon (KFileIconViewItem*); + QScrollView* scrollWidget () const; + +%If ( KDE_3_2_0 - ) + void setAcceptDrops (bool); +%End + + +public slots: + void showPreviews (); + +%If ( KDE_3_2_0 - ) + void zoomIn (); + void zoomOut (); +%End + + +%If ( KDE_3_1_0 - ) + virtual void arrangeItemsInGrid (bool = 1); +%End + + +protected: + virtual void keyPressEvent (QKeyEvent*); + virtual void hideEvent (QHideEvent*); + virtual void showEvent (QShowEvent*); + +%If ( KDE_3_0_1 - ) + virtual bool eventFilter (QObject*, QEvent*); + +%If ( KDE_3_2_0 - ) + virtual QDragObject* dragObject (); + virtual void contentsDragEnterEvent (QDragEnterEvent*); + virtual void contentsDragMoveEvent (QDragMoveEvent*); + virtual void contentsDragLeaveEvent (QDragLeaveEvent*); + virtual void contentsDropEvent (QDropEvent*); + bool acceptDrag (QDropEvent*) const; +%End + +%End + + +signals: + +%If ( KDE_3_2_0 - ) + void dropped (QDropEvent*, KFileItem*); + void dropped (QDropEvent*, const KURL::List&, const KURL&); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFileIconView + diff --git a/sip/kfile/kfilemod.sip.in b/sip/kfile/kfilemod.sip.in new file mode 100644 index 0000000..c3893e8 --- /dev/null +++ b/sip/kfile/kfilemod.sip.in @@ -0,0 +1,63 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile 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 kfile + +%Import qt/qtmod.sip +%Import qtxml/qtxmlmod.sip +%Import dcopmod.sip +%Import kdecoremod.sip +%Import kdefxmod.sip +%Import kdeuimod.sip +%Import kiomod.sip + +%Include kcombiview.sip +%Include kdiroperator.sip +%Include kdirselectdialog.sip +%Include kdirsize.sip +%Include kfile.sip +%Include kfiledetailview.sip +%Include kfiledialog.sip +%Include kfilefiltercombo.sip +%Include kfileiconview.sip +%Include kfilepreview.sip +%Include kfiletreebranch.sip +%Include kfiletreeview.sip +%Include kfiletreeviewitem.sip +%Include kfileview.sip +%Include kicondialog.sip +%Include kimagefilepreview.sip +%Include kopenwith.sip +%Include kpreviewwidgetbase.sip +%Include kpropertiesdialog.sip +%Include krecentdocument.sip +%Include kurlbar.sip +%Include kurlcombobox.sip +%Include kurlrequester.sip +%Include kurlrequesterdlg.sip +@mark@ diff --git a/sip/kfile/kfilepreview.sip b/sip/kfile/kfilepreview.sip new file mode 100644 index 0000000..7757f98 --- /dev/null +++ b/sip/kfile/kfilepreview.sip @@ -0,0 +1,80 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KFilePreview : QSplitter, KFileView +{ +%TypeHeaderCode +#include <kfilepreview.h> +%End + + +public: + KFilePreview (QWidget* /TransferThis/, const char*); + KFilePreview (KFileView*, QWidget* /TransferThis/, const char*); + virtual QWidget* widget (); + virtual void clearView (); + void setFileView (KFileView*); + KFileView* fileView () const; + virtual void updateView (bool); + virtual void updateView (const KFileItem*); + virtual void removeItem (const KFileItem*); + virtual void listingCompleted (); + virtual void setSelectionMode (KFile::SelectionMode); + virtual void setSelected (const KFileItem*, bool); + virtual bool isSelected (const KFileItem*) const; + virtual void clearSelection (); + virtual void selectAll (); + virtual void invertSelection (); + virtual void insertItem (KFileItem*); + virtual void clear (); + virtual void setCurrentItem (const KFileItem*); + virtual KFileItem* currentFileItem () const; + virtual KFileItem* firstFileItem () const; + virtual KFileItem* nextItem (const KFileItem*) const; + virtual KFileItem* prevItem (const KFileItem*) const; + virtual void setSorting (QDir::SortSpec); + +%If ( KDE_3_1_0 - ) + virtual void readConfig (KConfig*, const QString& = QString ::null ); + virtual void writeConfig (KConfig*, const QString& = QString ::null ); +%End + + virtual KActionCollection* actionCollection () const; + void ensureItemVisible (const KFileItem*); + void setPreviewWidget (const QWidget*, const KURL&); + +protected slots: + virtual void slotHighlighted (const KFileItem*); + +signals: + void showPreview (const KURL&); + void clearPreview (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFilePreview + diff --git a/sip/kfile/kfilereader.sip b/sip/kfile/kfilereader.sip new file mode 100644 index 0000000..5313cd8 --- /dev/null +++ b/sip/kfile/kfilereader.sip @@ -0,0 +1,47 @@ +// +// Copyright 2003 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile 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 KFileReader : KDirLister +{ +%TypeHeaderCode +#include <kfilereader.h> +%End + + +public: + KFileReader (); + KFileReader (const KURL&, const QString& = QString::null); + bool isRoot () const; + bool isReadable () const; + +protected: + virtual KFileItem* createFileItem (const KIO::UDSEntry&, const KURL&, bool); + +private: + KFileReader (const KFileReader&); + +}; // class KFileReader + diff --git a/sip/kfile/kfilesharedlg.sip b/sip/kfile/kfilesharedlg.sip new file mode 100644 index 0000000..42f825b --- /dev/null +++ b/sip/kfile/kfilesharedlg.sip @@ -0,0 +1,53 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KFileSharePropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include <kfilesharedlg.h> +%End + + +public: + KFileSharePropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (const KFileItemList&); + QWidget* page () const; + +protected slots: + void slotConfigureFileSharing (); + +%If ( KDE_3_4_0 - ) + void slotConfigureFileSharingDone (); +%End + + +}; // class KFileSharePropsPlugin + +%End + diff --git a/sip/kfile/kfiletreebranch.sip b/sip/kfile/kfiletreebranch.sip new file mode 100644 index 0000000..707c5d6 --- /dev/null +++ b/sip/kfile/kfiletreebranch.sip @@ -0,0 +1,233 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KFileTreeBranch : KDirLister +{ +%TypeHeaderCode +#include <kfiletreebranch.h> +%End + + +public: + KFileTreeBranch (KFileTreeView*, const KURL&, const QString&, const QPixmap&, bool = 0, KFileTreeViewItem* = 0); + KURL rootUrl () const; + virtual void setRoot (KFileTreeViewItem*); + KFileTreeViewItem* root (); + QString name () const; + virtual void setName (const QString); + const QPixmap& pixmap (); + const QPixmap& openPixmap (); + bool showExtensions () const; + void setOpen (bool = 1); + void setChildRecurse (bool = 1); + bool childRecurse (); + +public slots: + virtual bool populate (const KURL&, KFileTreeViewItem*); + virtual void setShowExtensions (bool = 1); + void setOpenPixmap (const QPixmap&); + +protected: + virtual KFileTreeViewItem* createTreeViewItem (KFileTreeViewItem* /Transfer/, KFileItem*); + +public: + +%If ( KDE_3_1_0 - ) + virtual KFileTreeViewItem* findTVIByURL (const KURL&); +%End + + +signals: + void populateFinished (KFileTreeViewItem*); + void newTreeViewItems (KFileTreeBranch*, KFileTreeViewItemList&); + void directoryChildCount (KFileTreeViewItem*, int); + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( - KDE_3_1_0 ) + virtual KFileTreeViewItem* findTVIByURL (const KURL&); +%End + + +}; // class KFileTreeBranch + +typedef QPtrList<KFileTreeBranch> KFileTreeBranchList; +//ig typedef QPtrListIterator<KFileTreeBranch> KFileTreeBranchIterator; + + +%MappedType QPtrList<KFileTreeViewItem> +//converts a Python list of KFileTreeViewItem +{ +%TypeHeaderCode +#include <kfiletreeviewitem.h> +typedef QPtrList<KFileTreeViewItem> KFileTreeViewItemList; +%End + +%ConvertFromTypeCode + // Convert to a Python list of KFileTreeViewItem + + if (!sipCpp) + return PyList_New(0); + + PyObject *ftvilist; + + // Create the list + + if ((ftvilist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList<KFileTreeViewItem> *cList = (QPtrList<KFileTreeViewItem> *)sipCpp; + PyObject *item; + KFileTreeViewItem *ftvi; + + for( ftvi = cList->first(); ftvi; ftvi = cList->next ()) + { + item = sipConvertFromInstance (ftvi, sipClass_KFileTreeViewItem, sipTransferObj); + if ((item == NULL) || (PyList_Append (ftvilist, item) < 0)) + { + Py_XDECREF (item); + Py_DECREF (ftvilist); + return NULL; + } + } + + return ftvilist; +%End + +%ConvertToTypeCode + // Convert a Python list to a KFileTreeViewItemList on the heap. + + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList<KFileTreeViewItem> *cList = new QPtrList<KFileTreeViewItem>; + + PyObject *elem; + int iserr = 0; + KFileTreeViewItem *ftvi; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + ftvi = (KFileTreeViewItem *)sipForceConvertToType(elem, sipType_KFileTreeViewItem, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cList; + return 0; + } + + cList->append (ftvi); + } + + *sipCppPtr = cList; + + return 1; +%End +}; + + +%MappedType QPtrList<KFileTreeBranch> +//converts a Python list of KFileTreeBranch +{ +%TypeHeaderCode +#include <kfiletreebranch.h> +//typedef QPtrList<KFileTreeBranch> KFileTreeBList; +%End + +%ConvertFromTypeCode + // Convert to a Python list of KFileTreeBranch + + if (!sipCpp) + return PyList_New(0); + + PyObject *ftblist; + + // Create the list + + if ((ftblist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList<KFileTreeBranch> *cList = (QPtrList<KFileTreeBranch> *)sipCpp; + PyObject *item; + KFileTreeBranch *ftb; + + for( ftb = cList->first(); ftb; ftb = cList->next ()) + { + item = sipConvertFromInstance (ftb, sipClass_KFileTreeBranch, sipTransferObj); + if ((item == NULL) || (PyList_Append (ftblist, item) < 0)) + { + Py_XDECREF (item); + Py_DECREF (ftblist); + return NULL; + } + } + + return ftblist; +%End + +%ConvertToTypeCode + // Convert a Python list to a KFileTreeBranchList on the heap. + + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList<KFileTreeBranch> *cList = new QPtrList<KFileTreeBranch>; + + PyObject *elem; + int iserr = 0; + KFileTreeBranch *ftb; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + ftb = (KFileTreeBranch *)sipForceConvertToType(elem, sipType_KFileTreeBranch, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cList; + return 0; + } + + cList->append (ftb); + } + + *sipCppPtr = cList; + + return 1; +%End +}; + + diff --git a/sip/kfile/kfiletreeview.sip b/sip/kfile/kfiletreeview.sip new file mode 100644 index 0000000..4043e1c --- /dev/null +++ b/sip/kfile/kfiletreeview.sip @@ -0,0 +1,109 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KFileTreeViewToolTip : QToolTip +{ +%TypeHeaderCode +#include <kfiletreeview.h> +%End + + +public: + KFileTreeViewToolTip (QListView*); + +protected: + virtual void maybeTip (const QPoint&); + +}; // class KFileTreeViewToolTip + + +class KFileTreeView : KListView +{ +%TypeHeaderCode +#include <kfiletreeview.h> +%End + + +public: + KFileTreeView (QWidget* /TransferThis/, const char* = 0); + KFileTreeViewItem* currentKFileTreeViewItem () const; + KURL currentURL () const; + KFileTreeBranch* addBranch (const KURL&, const QString&, bool = 0); + virtual KFileTreeBranch* addBranch (const KURL&, const QString&, const QPixmap&, bool = 0); + virtual KFileTreeBranch* addBranch (KFileTreeBranch*); + virtual bool removeBranch (KFileTreeBranch*); + KFileTreeBranch* branch (const QString&); + KFileTreeBranchList& branches (); + virtual void setDirOnlyMode (KFileTreeBranch*, bool); + KFileTreeViewItem* findItem (KFileTreeBranch*, const QString&); + KFileTreeViewItem* findItem (const QString&, const QString&); + bool showFolderOpenPixmap () const; + +public slots: + virtual void setShowFolderOpenPixmap (bool = 1); + +protected: + virtual bool acceptDrag (QDropEvent*) const; + virtual QDragObject* dragObject (); + virtual void startAnimation (KFileTreeViewItem*, const char* = "kde", uint = 6); + virtual void stopAnimation (KFileTreeViewItem*); + virtual void contentsDragEnterEvent (QDragEnterEvent*); + virtual void contentsDragMoveEvent (QDragMoveEvent*); + virtual void contentsDragLeaveEvent (QDragLeaveEvent*); + virtual void contentsDropEvent (QDropEvent*); + +protected slots: + virtual void slotNewTreeViewItems (KFileTreeBranch*, KFileTreeViewItemList&); + virtual void slotSetNextUrlToSelect (const KURL&); + virtual QPixmap itemIcon (KFileTreeViewItem*, int = 0) const; + +signals: + void onItem (const QString&); + void dropped (QWidget*, QDropEvent*); + void dropped (QWidget*, QDropEvent*, KURL::List&); + void dropped (KURL::List&, KURL&); + +%If ( KDE_3_2_0 - ) + void dropped (QWidget*, QDropEvent*, KURL::List&, KURL&); +%End + + void dropped (QDropEvent*, QListViewItem*); + void dropped (KFileTreeView*, QDropEvent*, QListViewItem*); + void dropped (QDropEvent*, QListViewItem*, QListViewItem*); + void dropped (KFileTreeView*, QDropEvent*, QListViewItem*, QListViewItem*); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); +//force + +private: + void slotOnItem (QListViewItem*); +//end + +}; // class KFileTreeView + diff --git a/sip/kfile/kfiletreeviewitem.sip b/sip/kfile/kfiletreeviewitem.sip new file mode 100644 index 0000000..57d99e7 --- /dev/null +++ b/sip/kfile/kfiletreeviewitem.sip @@ -0,0 +1,48 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KFileTreeViewItem : KListViewItem +{ +%TypeHeaderCode +#include <kfiletreeviewitem.h> +%End + + +public: + KFileTreeViewItem (KFileTreeViewItem*, KFileItem*, KFileTreeBranch*); + KFileTreeViewItem (KFileTreeView*, KFileItem*, KFileTreeBranch*); + KFileTreeBranch* branch () const; + KFileItem* fileItem () const; + QString path () const; + KURL url () const; + bool isDir () const; + bool alreadyListed () const; + void setListed (bool); + +}; // class KFileTreeViewItem + +typedef QPtrList<KFileTreeViewItem> KFileTreeViewItemList; +//ig typedef QPtrListIterator<KFileTreeViewItem> KFileTreeViewItemListIterator; diff --git a/sip/kfile/kfileview.sip b/sip/kfile/kfileview.sip new file mode 100644 index 0000000..9078136 --- /dev/null +++ b/sip/kfile/kfileview.sip @@ -0,0 +1,153 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KFileViewSignaler : QObject +{ +%TypeHeaderCode +#include <kfileview.h> +%End + + +public: + void activate (const KFileItem*); + void highlightFile (const KFileItem*); + void activateMenu (const KFileItem*, const QPoint&); + void changeSorting (QDir::SortSpec); + +%If ( KDE_3_2_0 - ) + void dropURLs (const KFileItem*, QDropEvent*, const KURL::List&); +%End + + +signals: + void dirActivated (const KFileItem*); + void sortingChanged (QDir::SortSpec); + void fileHighlighted (const KFileItem*); + void fileSelected (const KFileItem*); + void activatedMenu (const KFileItem*, const QPoint&); + +%If ( KDE_3_2_0 - ) + void dropped (const KFileItem*, QDropEvent*, const KURL::List&); +%End + + +}; // class KFileViewSignaler + + +class KFileView +{ +%TypeHeaderCode +#include <kfileview.h> +%End + + +public: + KFileView (); + void addItemList (const KFileItemList&); + virtual QWidget* widget () = 0; +//ig QWidget* widget () const; + void setCurrentItem (const QString&); + virtual void setCurrentItem (const KFileItem*) = 0; + virtual KFileItem* currentFileItem () const = 0; + virtual void clear (); + virtual void updateView (bool = 1); + virtual void updateView (const KFileItem*); + virtual void removeItem (const KFileItem*); + virtual void listingCompleted (); + QDir::SortSpec sorting () const; + virtual void setSorting (QDir::SortSpec); + bool isReversed () const; + void sortReversed (); + uint count () const; + uint numFiles () const; + uint numDirs () const; + virtual void setSelectionMode (KFile::SelectionMode); + virtual KFile::SelectionMode selectionMode () const; + + enum ViewMode + { + Files, + Directories, + All + }; + + virtual void setViewMode (KFileView::ViewMode); + virtual ViewMode viewMode () const; + QString viewName (); + void setViewName (const QString&); + virtual void setParentView (KFileView* /Transfer/); + virtual void insertItem (KFileItem*); + virtual void clearView () = 0; + virtual void ensureItemVisible (const KFileItem*) = 0; + virtual void clearSelection () = 0; + virtual void selectAll (); + virtual void invertSelection (); + virtual void setSelected (const KFileItem*, bool) = 0; + virtual bool isSelected (const KFileItem*) const = 0; + const KFileItemList* selectedItems () const; + const KFileItemList* items () const; + virtual KFileItem* firstFileItem () const = 0; + virtual KFileItem* nextItem (const KFileItem*) const = 0; + virtual KFileItem* prevItem (const KFileItem*) const = 0; + void setOnlyDoubleClickSelectsFiles (bool); + bool onlyDoubleClickSelectsFiles () const; + bool updateNumbers (const KFileItem*); + virtual KActionCollection* actionCollection () const; + KFileViewSignaler* signaler () const; + virtual void readConfig (KConfig*, const QString& = QString ::null ); + virtual void writeConfig (KConfig*, const QString& = QString ::null ); + +%If ( KDE_3_2_0 - ) + + enum DropOptions + { + AutoOpenDirs + }; + + void setDropOptions (int); + int dropOptions (); +%End + + static QString sortingKey (const QString&, bool, int); + static QString sortingKey (KIO::filesize_t, bool, int); + +%If ( KDE_3_2_0 - ) + static int autoOpenDelay (); +%End + + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +%If ( KDE_3_2_0 - ) + void setDropOptions_impl (int); +%End + + +}; // class KFileView + diff --git a/sip/kfile/kfileviewitem.sip b/sip/kfile/kfileviewitem.sip new file mode 100644 index 0000000..717b22b --- /dev/null +++ b/sip/kfile/kfileviewitem.sip @@ -0,0 +1,58 @@ +// +// Copyright 2003 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile 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 KFileViewItem : KFileItem +{ +%TypeHeaderCode +#include <kfileviewitem.h> +%End + + +public: + KFileViewItem (const KURL&, const KIO::UDSEntry&); + KFileViewItem (mode_t, mode_t, const KURL&, bool); + KFileViewItem (const KFileViewItem&); + bool isFile () const; + QString urlString () const; + QPixmap pixmap (int, int = 0) const; + QPixmap pixmap () const; + QString date () const; + QString access () const; + void setViewItem (const KFileView*, const void*); +//ig const void* viewItem (const KFileView*) const; + static QString dateTime (time_t); + KFileViewItem* next () const; + void setNext (KFileViewItem*); + +protected: + QString parsePermissions (mode_t) const; + +}; // class KFileViewItem + +//ig typedef QList<KFileViewItem> KFileViewItemList; +//ig typedef QListIterator<KFileViewItem> KFileViewItemListIterator; + + diff --git a/sip/kfile/kicondialog.sip b/sip/kfile/kicondialog.sip new file mode 100644 index 0000000..dda1a0c --- /dev/null +++ b/sip/kfile/kicondialog.sip @@ -0,0 +1,131 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KIconCanvas : KIconView +{ +%TypeHeaderCode +#include <kicondialog.h> +%End + + +public: + KIconCanvas (QWidget* /TransferThis/ = 0, const char* = 0); + void loadFiles (const QStringList&); + QString getCurrent (); + +public slots: + void stopLoading (); + +signals: +//ig void nameChanged (QString); + void startLoading (int); + void progress (int); + void finished (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KIconCanvas + + +class KIconDialog : KDialogBase +{ +%TypeHeaderCode +#include <kicondialog.h> +%End + + +public: + KIconDialog (QWidget* /TransferThis/ = 0, const char* = 0); + KIconDialog (KIconLoader*, QWidget* /TransferThis/ = 0, const char* = 0); + void setStrictIconSize (bool); + bool strictIconSize () const; + +%If ( KDE_3_1_0 - ) + void setCustomLocation (const QString&); +%End + + void setIconSize (int); + int iconSize () const; + QString selectIcon (KIcon::Group = KIcon ::Desktop , KIcon::Context = KIcon ::Application , bool = 0); + void setup (KIcon::Group, KIcon::Context = KIcon ::Application , bool = 0, int = 0, bool = 0); + +%If ( KDE_3_3_0 - ) + void setup (KIcon::Group, KIcon::Context, bool, int, bool, bool, bool); +%End + + QString openDialog (); + +%If ( KDE_3_2_0 - ) + void showDialog (); +%End + + static QString getIcon (KIcon::Group = KIcon ::Desktop , KIcon::Context = KIcon ::Application , bool = 0, int = 0, bool = 0, QWidget* /Transfer/ = 0, const QString& = QString ::null ); + +signals: + +%If ( KDE_3_2_0 - ) + void newIconName (const QString&); +%End + + +protected slots: + +%If ( KDE_3_2_0 - ) + void slotOk (); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KIconDialog + + +class KIconButton : QPushButton +{ +%TypeHeaderCode +#include <kicondialog.h> +%End + + +public: + KIconButton (QWidget* /TransferThis/ = 0, const char* = 0); + KIconButton (KIconLoader*, QWidget* /TransferThis/, const char* = 0); + void setStrictIconSize (bool); + bool strictIconSize () const; + void setIconType (KIcon::Group, KIcon::Context, bool = 0); + void setIcon (const QString&); + void resetIcon (); + const QString icon (); + void setIconSize (int); + int iconSize () const; + +signals: +//ig void iconChanged (QString); + +}; // class KIconButton + diff --git a/sip/kfile/kimagefilepreview.sip b/sip/kfile/kimagefilepreview.sip new file mode 100644 index 0000000..792eddb --- /dev/null +++ b/sip/kfile/kimagefilepreview.sip @@ -0,0 +1,57 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KImageFilePreview : KPreviewWidgetBase +{ +%TypeHeaderCode +#include <jobclasses.h> +#include <kimagefilepreview.h> +%End + + +public: + KImageFilePreview (QWidget* /TransferThis/); + virtual QSize sizeHint () const; + +public slots: + virtual void showPreview (const KURL&); + virtual void clearPreview (); + +protected slots: + void showPreview (); + void showPreview (const KURL&, bool); + void toggleAuto (bool); + virtual void gotPreview (const KFileItem*, const QPixmap&); + +protected: + virtual void resizeEvent (QResizeEvent*); + virtual KIO::PreviewJob* createJob (const KURL&, int, int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KImageFilePreview + diff --git a/sip/kfile/knotifydialog.sip b/sip/kfile/knotifydialog.sip new file mode 100644 index 0000000..98b4fcb --- /dev/null +++ b/sip/kfile/knotifydialog.sip @@ -0,0 +1,314 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KNotifyDialog : KDialogBase +{ +%TypeHeaderCode +#include <knotifydialog.h> +%End + + +public: + KNotifyDialog (QWidget* /TransferThis/ = 0, const char* = 0, bool = 1, const KAboutData* = 0); +%MethodCode +//takes parent | (QWidget = 0) | name | (char = 0) | modal | (bool = 1) | aboutData | (KAboutData = see note) +//doc +// The default value for aboutData in C++ is KGlobal::instance()->aboutData() +// which sip is unable to parse. Since it's the last arg in the list, it has +// to have a default value, and since the C++ code will fail if the default +// value really is zero, the sip code silently substitutes the real default +// value for a default value of 0 supplied from Python. +//end + + if (a3 == 0) + a3 = (KAboutData *)KGlobal::instance ()->aboutData (); + + Py_BEGIN_ALLOW_THREADS + sipCpp = new sipKNotifyDialog (a0, a1, a2, a3); + Py_END_ALLOW_THREADS +%End + + static int configure (QWidget* /Transfer/ = 0, const char* = 0, const KAboutData* = 0); +%MethodCode +//returns (int) +//takes parent | (QWidget = 0) | name | (a Python string = "") | aboutData | (KAboutData = see note) +//doc +// The default value for aboutData in C++ is KGlobal::instance()->aboutData() +// which sip is unable to parse. Since it's the last arg in the list, it has +// to have a default value, and since the C++ code will fail if the default +// value really is zero, the sip code silently substitutes the real default +// value for a default value of 0 supplied from Python. +//end + + if (a2 == 0) + a2 = (KAboutData *)KGlobal::instance ()->aboutData (); + + Py_BEGIN_ALLOW_THREADS + sipRes = KNotifyDialog::configure (a0, a1, a2); + Py_END_ALLOW_THREADS +%End + + virtual void addApplicationEvents (const char*); + virtual void addApplicationEvents (const QString&); + virtual void clearApplicationEvents (); + +}; // class KNotifyDialog + +%End + + +%If ( KDE_3_1_0 - ) +namespace KNotify +{ +typedef QPtrList<KNotify::Event> EventList; +//ig typedef QPtrListIterator<KNotify::Application> ApplicationListIterator; +//ig typedef QPtrListIterator<KNotify::Event> EventListIterator; + +class Application +{ +%TypeHeaderCode +#include <knotifydialog.h> +%End + + +public: + Application (const QString&); + QString text () const; + QString icon () const; + const KNotify::EventList& eventList (); + void reloadEvents (bool = 0); + void save (); + QString appName () const; + +}; // class Application + + +%If ( KDE_3_2_0 - ) + +//ig class KNotifyWidget : KNotifyWidgetBase; + +%End + + +class Event +{ +%TypeHeaderCode +#include <knotifydialog.h> +%End + + +public: + QString text () const; + int presentation; + int dontShow; + QString logfile; + QString soundfile; + QString commandline; + const KNotify::Application* application () const; + +private: + Event (const KNotify::Application*); + +}; // class Event + + +//ig class ListViewItem : QListViewItem; + + +%If ( - KDE_3_2_0 ) + +class KNotifyWidget : KNotifyWidgetBase +{ +%TypeHeaderCode +#include <knotifywidgetbase.h> +#include <knotifydialog.h> +%End + + +public: + KNotifyWidget (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0); + KListView* eventsView (); + void addVisibleApp (KNotify::Application*); + KNotify::Application* addApplicationEvents (const QString&); + void resetDefaults (bool); + void sort (bool = 1); + +public slots: + virtual void clear (); + virtual void clearVisible (); + virtual void save (); + virtual void showAdvanced (bool); + void toggleAdvanced (); + +signals: + void changed (bool); + +protected: + KNotify::Event* currentEvent (); + virtual void showEvent (QShowEvent*); + virtual void enableAll (int, bool); + void reload (bool = 0); + +protected slots: + void playSound (); + +public: + SIP_PYLIST visibleApps (); +%MethodCode +//returns (a Python list of KNotify.Application) + QPtrList<KNotify::Application> applist; + + Py_BEGIN_ALLOW_THREADS + applist = sipCpp->visibleApps (); + Py_END_ALLOW_THREADS + + KNotify::Application *app; + PyObject *inst; + + for (app = applist.first (); app != 0; app = applist.next () ) + { + inst = sipConvertFromInstance (app, sipClass_KNotify_Application, NULL); + PyList_Append (sipRes, inst); + } +%End + + SIP_PYLIST allApps (); +%MethodCode +//returns (a Python list of KNotify.Application) + QPtrList<KNotify::Application> applist; + + Py_BEGIN_ALLOW_THREADS + applist = sipCpp->allApps (); + Py_END_ALLOW_THREADS + + KNotify::Application *app; + PyObject *inst; + + for(app = applist.first (); app != 0; app = applist.next () ) + { + inst = sipConvertFromInstance (app, sipClass_KNotify_Application, NULL); + PyList_Append (sipRes, inst); + } +%End + + +}; // class KNotifyWidget + +%End + +//force + +class ApplicationList +{ +%TypeHeaderCode +#include <knotifydialog.h> +%End + + +}; // class ApplicationList + +//end +}; // namespace KNotify + +%End + + + +%If (KDE_3_1_0 - ) +%MappedType QPtrList<KNotify::Event> +//converts a Python list of KNotify.Event +{ +%TypeHeaderCode +#include <qptrlist.h> +#include <knotifydialog.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList<KNotify::Event> *cpplist = (QPtrList<KNotify::Event> *)sipCpp; + KNotify::Event *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_KNotify_Event, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList<KNotify::Event> *cpplist = new QPtrList<KNotify::Event>; + + PyObject *elem; + KNotify::Event *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KNotify::Event *)sipForceConvertToType(elem, sipType_KNotify_Event, 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/kfile/knotifywidgetbase.sip b/sip/kfile/knotifywidgetbase.sip new file mode 100644 index 0000000..98f8238 --- /dev/null +++ b/sip/kfile/knotifywidgetbase.sip @@ -0,0 +1,64 @@ +// +// Copyright 2003 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile 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 - KDE_3_2_0 ) + +class KNotifyWidgetBase : QWidget +{ +%TypeHeaderCode +#include <knotifywidgetbase.h> +%End + + +public: + KNotifyWidgetBase (QWidget*/TransferThis/ = 0, const char* = 0, WFlags = 0); + KListView* m_listview; + QGroupBox* m_actionsBox; + KURLRequester* m_logfilePath; + KURLRequester* m_soundPath; + QCheckBox* m_logToFile; + KURLRequester* m_executePath; + QCheckBox* m_playSound; + QPushButton* m_playButton; + QCheckBox* m_execute; + QCheckBox* m_messageBox; + QCheckBox* m_passivePopup; + QCheckBox* m_stderr; + QGroupBox* m_controlsBox; + QCheckBox* m_affectAllApps; + QPushButton* m_buttonDisable; + QPushButton* m_buttonEnable; + KComboBox* m_comboEnable; + KComboBox* m_comboDisable; + QPushButton* m_extension; + QPushButton* m_playerButton; + +protected: + +}; // class KNotifyWidgetBase + +%End + diff --git a/sip/kfile/kopenwith.sip b/sip/kfile/kopenwith.sip new file mode 100644 index 0000000..2a8f2f9 --- /dev/null +++ b/sip/kfile/kopenwith.sip @@ -0,0 +1,146 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KOpenWithDlg : QDialog +{ +%TypeHeaderCode +#include <kopenwith.h> +%End + + +public: + KOpenWithDlg (const KURL::List&, QWidget* /TransferThis/ = 0); + KOpenWithDlg (const KURL::List&, const QString&, const QString&, QWidget* /TransferThis/ = 0); + KOpenWithDlg (const QString&, const QString&, QWidget* /TransferThis/ = 0); + +%If ( KDE_3_1_0 - ) + KOpenWithDlg (QWidget* /TransferThis/ = 0); +%End + + QString text (); + +%If ( KDE_3_2_0 - ) + void hideNoCloseOnExit (); + void hideRunInTerminal (); +%End + + KService::Ptr service (); + +%If ( KDE_3_2_0 - ) + void setSaveNewApplications (bool); +%End + + +public slots: + void slotClear (); + void slotSelected (const QString&, const QString&); + void slotHighlighted (const QString&, const QString&); + void slotTextChanged (); + void slotTerminalToggled (bool); + void slotDbClick (); + void slotOK (); + +protected slots: + virtual void accept (); + +protected: + void setServiceType (const KURL::List&); + void init (const QString&, const QString&); + +}; // class KOpenWithDlg + + +class KFileOpenWithHandler : KOpenWithHandler +{ +%TypeHeaderCode +#include <kopenwith.h> +%End + + +public: + KFileOpenWithHandler (); + virtual bool displayOpenWithDialog (const KURL::List&); + +}; // class KFileOpenWithHandler + + +%If ( - KDE_3_1_0 ) + +class KAppTreeListItem : QListViewItem +{ +%TypeHeaderCode +#include <kopenwith.h> +%End + + +protected: + QString key (int, bool) const; + void init (const QPixmap&, bool, bool, QString, QString); + +public: + KAppTreeListItem (KListView* /TransferThis/, const QString&, const QPixmap&, bool, bool, QString, QString); + KAppTreeListItem (QListViewItem* /TransferThis/, const QString&, const QPixmap&, bool, bool, QString, QString); + bool isDirectory (); + +protected: + virtual void activate (); + virtual void setOpen (bool); + +}; // class KAppTreeListItem + +%End + + +%If ( - KDE_3_1_0 ) + +class KApplicationTree : KListView +{ +%TypeHeaderCode +#include <kopenwith.h> +%End + + +public: + KApplicationTree (QWidget* /TransferThis/); + void addDesktopGroup (QString, KAppTreeListItem* = 0); + KAppTreeListItem* it; + bool isDirSel (); + +protected: + void resizeEvent (QResizeEvent*); + +public slots: + void slotItemHighlighted (QListViewItem*); + void slotSelectionChanged (QListViewItem*); + +signals: + void selected (const QString&, const QString&); + void highlighted (const QString&, const QString&); + +}; // class KApplicationTree + +%End + diff --git a/sip/kfile/kpreviewwidgetbase.sip b/sip/kfile/kpreviewwidgetbase.sip new file mode 100644 index 0000000..7c967bf --- /dev/null +++ b/sip/kfile/kpreviewwidgetbase.sip @@ -0,0 +1,57 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPreviewWidgetBase : QWidget +{ +%TypeHeaderCode +#include <kpreviewwidgetbase.h> +%End + + +public: + KPreviewWidgetBase (QWidget* /TransferThis/, const char* = 0); + +public slots: + virtual void showPreview (const KURL&) = 0; + virtual void clearPreview () = 0; + +%If ( KDE_3_2_0 - ) + QStringList supportedMimeTypes () const; +%End + + +protected: + +%If ( KDE_3_2_0 - ) + void setSupportedMimeTypes (const QStringList&); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KPreviewWidgetBase + diff --git a/sip/kfile/kpropertiesdialog.sip b/sip/kfile/kpropertiesdialog.sip new file mode 100644 index 0000000..09246a6 --- /dev/null +++ b/sip/kfile/kpropertiesdialog.sip @@ -0,0 +1,304 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPropertiesDialog : KDialogBase +{ +%TypeHeaderCode +#include <kpropertiesdialog.h> +%End + + +public: + static bool canDisplay (KFileItemList); + KPropertiesDialog (KFileItem*, QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, bool = 1); + KPropertiesDialog (KFileItemList, QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, bool = 1); + KPropertiesDialog (const KURL&, mode_t, QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, bool = 1); + KPropertiesDialog (const KURL&, QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, bool = 1); + KPropertiesDialog (const KURL&, const KURL&, const QString&, QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, bool = 1); + KPropertiesDialog (const QString&, QWidget* /TransferThis/ = 0, const char* = 0, bool = 0); + +%If ( KDE_3_4_0 - ) + static bool showDialog (KFileItem*, QWidget* /Transfer/ = 0, const char* = 0, bool = 0); + static bool showDialog (const KURL&, QWidget* /Transfer/ = 0, const char* = 0, bool = 0); + static bool showDialog (const KFileItemList&, QWidget* /Transfer/ = 0, const char* = 0, bool = 0); +%End + + void insertPlugin (KPropsDlgPlugin*); + const KURL& kurl () const; + KFileItem* item (); + KFileItemList items () const; + KDialogBase* dialog (); + const KURL& currentDir () const; + const QString& defaultName () const; + void updateUrl (const KURL&); + void rename (const QString&); + void abortApplying (); + +%If ( KDE_3_1_0 - ) + void showFileSharingPage (); + +%If ( KDE_3_3_0 - ) + void setFileSharingPage (QWidget*); +%End + + +%If ( KDE_3_2_0 - ) + void setFileNameReadOnly (bool); +%End + +%End + + +public slots: + virtual void slotOk (); + virtual void slotCancel (); + +signals: + void propertiesClosed (); + void applied (); + void canceled (); + +%If ( KDE_3_2_0 - ) + void saveAs (const KURL&, KURL&); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KPropertiesDialog + + +class KPropsDlgPlugin : QObject +{ +%TypeHeaderCode +#include <kpropertiesdialog.h> +%End + + +public: + KPropsDlgPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool isDesktopFile (KFileItem*); + void setDirty (bool); + bool isDirty () const; + +public slots: + void setDirty (); + +signals: + void changed (); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KPropsDlgPlugin + + +class KFilePropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include <kpropertiesdialog.h> +%End + + +public: + KFilePropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + void postApplyChanges (); + +%If ( KDE_3_2_0 - ) + void setFileNameReadOnly (bool); +%End + + +protected slots: + +%If ( KDE_3_2_0 - ) + void slotEditFileType (); +%End + + void slotCopyFinished (KIO::Job*); + void slotFileRenamed (KIO::Job*, const KURL&, const KURL&); + +%If ( KDE_3_2_0 - ) + void slotDirSizeUpdate (); +%End + + void slotDirSizeFinished (KIO::Job*); + void slotFoundMountPoint (const QString&, ulong, ulong, ulong); + void slotSizeStop (); + void slotSizeDetermine (); + +}; // class KFilePropsPlugin + + +class KFilePermissionsPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include <kpropertiesdialog.h> +%End + + +public: + +%If ( KDE_3_2_0 - ) + + enum PermissionsMode + { + PermissionsOnlyFiles, + PermissionsOnlyDirs, + PermissionsOnlyLinks, + PermissionsMixed + }; + + + enum PermissionsTarget + { + PermissionsOwner, + PermissionsGroup, + PermissionsOthers + }; + +%End + + KFilePermissionsPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +}; // class KFilePermissionsPropsPlugin + + +class KURLPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include <kpropertiesdialog.h> +%End + + +public: + KURLPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +}; // class KURLPropsPlugin + + +class KBindingPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include <kpropertiesdialog.h> +%End + + +public: + KBindingPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +}; // class KBindingPropsPlugin + + +class KDevicePropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include <kpropertiesdialog.h> +%End + + +public: + KDevicePropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +}; // class KDevicePropsPlugin + + +%If ( KDE_3_2_0 - ) + +class KDesktopPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include <kpropertiesdialog.h> +%End + + +public: + KDesktopPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +public slots: + void slotAddFiletype (); + void slotDelFiletype (); + void slotBrowseExec (); + void slotAdvanced (); + void slotSelectMimetype (); + +}; // class KDesktopPropsPlugin + +%End + + +class KExecPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include <kpropertiesdialog.h> +%End + + +public: + KExecPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +public slots: + void slotBrowseExec (); + +}; // class KExecPropsPlugin + + +class KApplicationPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include <kpropertiesdialog.h> +%End + + +public: + KApplicationPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +public slots: + void slotDelExtension (); + void slotAddExtension (); + +}; // class KApplicationPropsPlugin + diff --git a/sip/kfile/kpropsdlg.sip b/sip/kfile/kpropsdlg.sip new file mode 100644 index 0000000..d435f14 --- /dev/null +++ b/sip/kfile/kpropsdlg.sip @@ -0,0 +1,208 @@ +// +// Copyright 2003 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile 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 KPropertiesDialog : KDialogBase +{ +%TypeHeaderCode +#include <kpropsdlg.h> +%End + + +public: + static bool canDisplay (KFileItemList); + KPropertiesDialog (KFileItem*, QWidget*/TransferThis/ = 0, const char* = 0, bool = 0, bool = 1); + KPropertiesDialog (KFileItemList, QWidget*/TransferThis/ = 0, const char* = 0, bool = 0, bool = 1); + KPropertiesDialog (const KURL&, mode_t = -1, QWidget*/TransferThis/ = 0, const char* = 0, bool = 0, bool = 1); + KPropertiesDialog (const KURL&, const KURL&, const QString&, QWidget*/TransferThis/ = 0, const char* = 0, bool = 0, bool = 1); + KPropertiesDialog (const QString&, QWidget*/TransferThis/ = 0, const char* = 0, bool = 0); + void insertPlugin (KPropsDlgPlugin*); + const KURL& kurl () const; + KFileItem* item (); + KFileItemList items () const; + KDialogBase* dialog (); + const KURL& currentDir () const; + const QString& defaultName () const; + void updateUrl (const KURL&); + void rename (const QString&); + void abortApplying (); + +public slots: + virtual void slotOk (); + virtual void slotCancel (); + +signals: + void propertiesClosed (); + void applied (); + void canceled (); + +}; // class KPropertiesDialog + + +class KPropsDlgPlugin : QObject +{ +%TypeHeaderCode +#include <kpropsdlg.h> +%End + + +public: + KPropsDlgPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool isDesktopFile (KFileItem*); + void setDirty (bool); + bool isDirty () const; + +public slots: + void setDirty (); + +signals: + void changed (); + +protected: + +}; // class KPropsDlgPlugin + + +class KFilePropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include <kpropsdlg.h> +%End + + +public: + KFilePropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + void postApplyChanges (); + +protected slots: + void slotCopyFinished (KIO::Job*); + void slotFileRenamed (KIO::Job*, const KURL&, const KURL&); + void slotDirSizeFinished (KIO::Job*); + void slotFoundMountPoint (const QString&, ulong, ulong, ulong); + void slotSizeStop (); + void slotSizeDetermine (); + +}; // class KFilePropsPlugin + + +class KFilePermissionsPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include <kpropsdlg.h> +%End + + +public: + KFilePermissionsPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +}; // class KFilePermissionsPropsPlugin + + +class KExecPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include <kpropsdlg.h> +%End + + +public: + KExecPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +public slots: + void slotBrowseExec (); + +}; // class KExecPropsPlugin + + +class KURLPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include <kpropsdlg.h> +%End + + +public: + KURLPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +}; // class KURLPropsPlugin + + +class KApplicationPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include <kpropsdlg.h> +%End + + +public: + KApplicationPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +public slots: + void slotDelExtension (); + void slotAddExtension (); + +}; // class KApplicationPropsPlugin + + +class KBindingPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include <kpropsdlg.h> +%End + + +public: + KBindingPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +}; // class KBindingPropsPlugin + + +class KDevicePropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include <kpropsdlg.h> +%End + + +public: + KDevicePropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +}; // class KDevicePropsPlugin + diff --git a/sip/kfile/krecentdirs.sip b/sip/kfile/krecentdirs.sip new file mode 100644 index 0000000..2cc0b16 --- /dev/null +++ b/sip/kfile/krecentdirs.sip @@ -0,0 +1,40 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE_3_5_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 KRecentDirs +{ +%TypeHeaderCode +#include <krecentdirs.h> +%End + + +public: + static QStringList list (const QString&); + static QString dir (const QString&); + static void add (const QString&, const QString&); + +}; // class KRecentDirs + diff --git a/sip/kfile/krecentdocument.sip b/sip/kfile/krecentdocument.sip new file mode 100644 index 0000000..af6ab70 --- /dev/null +++ b/sip/kfile/krecentdocument.sip @@ -0,0 +1,44 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KRecentDocument +{ +%TypeHeaderCode +#include <krecentdocument.h> +%End + + +public: + static QStringList recentDocuments (); + static void add (const KURL&); + static void add (const KURL&, const QString&); + static void add (const QString&, bool = 0); + static void clear (); + static int maximumItems (); + static QString recentDocumentDirectory (); + +}; // class KRecentDocument + diff --git a/sip/kfile/kurlbar.sip b/sip/kfile/kurlbar.sip new file mode 100644 index 0000000..c826de3 --- /dev/null +++ b/sip/kfile/kurlbar.sip @@ -0,0 +1,213 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KURLBarItem : QListBoxPixmap +{ +%TypeHeaderCode +#include <kurlbar.h> +%End + + +public: + +%If ( KDE_3_2_0 - ) + KURLBarItem (KURLBar* /TransferThis/, const KURL&, bool, const QString& = QString ::null , const QString& = QString ::null , KIcon::Group = KIcon ::Panel ); +%End + + KURLBarItem (KURLBar* /TransferThis/, const KURL&, const QString& = QString ::null , const QString& = QString ::null , KIcon::Group = KIcon ::Panel ); + void setURL (const KURL&); + void setIcon (const QString&, KIcon::Group = KIcon ::Panel ); + void setDescription (const QString&); + void setToolTip (const QString&); + +%If ( KDE_3_0_1 - ) + QSize sizeHint () const; +%End + + virtual int width (const QListBox*) const; + virtual int height (const QListBox*) const; + const KURL& url () const; + const QString& description () const; + const QString& icon () const; + QString toolTip () const; + KIcon::Group iconGroup () const; + virtual const QPixmap* pixmap () const; + void setApplicationLocal (bool); + bool applicationLocal () const; + +%If ( KDE_3_2_0 - ) + bool isPersistent () const; +%End + + +protected: + virtual void paint (QPainter*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KURLBarItem + + +class KURLBar : QFrame +{ +%TypeHeaderCode +#include <kurlbar.h> +%End + + +public: + KURLBar (bool, QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + virtual KURLBarItem* insertItem (const KURL&, const QString&, bool = 1, const QString& = QString ::null , KIcon::Group = KIcon ::Panel ); + +%If ( KDE_3_2_0 - ) + virtual KURLBarItem* insertDynamicItem (const KURL&, const QString&, const QString& = QString ::null , KIcon::Group = KIcon ::Panel ); +%End + + virtual void setOrientation (Qt::Orientation); + Qt::Orientation orientation () const; + virtual void setListBox (KURLBarListBox*); + KURLBarListBox* listBox () const; + virtual void setIconSize (int); + int iconSize () const; + virtual void clear (); + virtual QSize sizeHint () const; + virtual QSize minimumSizeHint () const; + virtual void readConfig (KConfig*, const QString&); + virtual void writeConfig (KConfig*, const QString&); + virtual void readItem (int, KConfig*, bool); + virtual void writeItem (KURLBarItem*, int, KConfig*, bool); + KURLBarItem* currentItem () const; + KURL currentURL () const; + bool isModified () const; + +%If ( KDE_3_1_1 - ) + bool isImmutable () const; +%End + + +%If ( KDE_3_0_1 - ) + bool isVertical () const; +%End + + +public slots: + virtual void setCurrentItem (const KURL&); + +signals: + void activated (const KURL&); + +protected: + virtual bool addNewItem (); + virtual bool editItem (KURLBarItem*); + virtual void resizeEvent (QResizeEvent*); + +%If ( KDE_3_4_0 - ) + virtual void paletteChange (const QPalette&); +%End + + +protected slots: + virtual void slotContextMenuRequested (QListBoxItem*, const QPoint&); + virtual void slotSelected (QListBoxItem*); + virtual void slotDropped (QDropEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( - KDE_3_0_1 ) + bool isVertical () const; +%End + + +}; // class KURLBar + + +class KURLBarListBox : KListBox +{ +%TypeHeaderCode +#include <kurlbar.h> +%End + + +public: + KURLBarListBox (QWidget* /TransferThis/ = 0, const char* = 0); + virtual void setOrientation (Qt::Orientation); + Qt::Orientation orientation () const; + +%If ( KDE_3_0_1 - ) + bool isVertical () const; +%End + + +signals: + void dropped (QDropEvent*); + +protected: + virtual QDragObject* dragObject (); + virtual void contentsDragEnterEvent (QDragEnterEvent*); + virtual void contentsDropEvent (QDropEvent*); + +%If ( KDE_3_2_0 - ) + virtual void contextMenuEvent (QContextMenuEvent*); + +%If ( KDE_3_4_0 - ) + virtual void paintEvent (QPaintEvent*); +%End + +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KURLBarListBox + + +class KURLBarItemDialog : KDialogBase +{ +%TypeHeaderCode +#include <kurlbar.h> +%End + + +public: + static bool getInformation (bool, KURL&, QString&, QString&, bool&, int, QWidget* /Transfer/ = 0); + KURLBarItemDialog (bool, const KURL&, const QString&, QString, bool = 1, int = KIcon ::SizeMedium , QWidget* /TransferThis/ = 0, const char* = 0); + KURL url () const; + QString description () const; + QString icon () const; + bool applicationLocal () const; + +protected: + +public slots: + void urlChanged (const QString&); + +}; // class KURLBarItemDialog + diff --git a/sip/kfile/kurlcombobox.sip b/sip/kfile/kurlcombobox.sip new file mode 100644 index 0000000..f696ef8 --- /dev/null +++ b/sip/kfile/kurlcombobox.sip @@ -0,0 +1,80 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KURLComboBox : KComboBox +{ +%TypeHeaderCode +#include <kurlcombobox.h> +%End + + +public: + + enum Mode + { + Files, + Directories, + Both + }; + + + enum OverLoadResolving + { + RemoveTop, + RemoveBottom + }; + + KURLComboBox (KURLComboBox::Mode, QWidget* /TransferThis/ = 0, const char* = 0); + KURLComboBox (KURLComboBox::Mode, bool, QWidget* /TransferThis/ = 0, const char* = 0); + void setURL (const KURL&); + void setURLs (QStringList); + void setURLs (QStringList, KURLComboBox::OverLoadResolving); + QStringList urls () const; + void setMaxItems (int); + int maxItems () const; + void addDefaultURL (const KURL&, const QString& = QString ::null ); + void addDefaultURL (const KURL&, const QPixmap&, const QString& = QString ::null ); + void setDefaults (); + void removeURL (const KURL&, bool = 1); + +signals: + void urlActivated (const KURL&); + +protected slots: + void slotActivated (int); + +protected: + +//ig class _KURLComboItem; + +//ig typedef KURLComboBox::_KURLComboItem KURLComboItem; + void init (KURLComboBox::Mode); +//ig void insertURLItem (const KURLComboBox::KURLComboItem*); + QPixmap getPixmap (const KURL&) const; +//ig void updateItem (const KURLComboBox::KURLComboItem*, int, const QPixmap&); + +}; // class KURLComboBox + diff --git a/sip/kfile/kurlrequester.sip b/sip/kfile/kurlrequester.sip new file mode 100644 index 0000000..c6103b6 --- /dev/null +++ b/sip/kfile/kurlrequester.sip @@ -0,0 +1,112 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KURLRequester : QHBox +{ +%TypeHeaderCode +#include <kurlrequester.h> +%End + + +public: + KURLRequester (QWidget* /TransferThis/ = 0, const char* = 0); + KURLRequester (const QString&, QWidget* /TransferThis/ = 0, const char* = 0); + KURLRequester (QWidget*, QWidget* /TransferThis/, const char* = 0); + QString url () const; + void setShowLocalProtocol (bool); + void setMode (uint); + +%If ( KDE_3_3_0 - ) + uint mode () const; +%End + + void setFilter (const QString&); + +%If ( KDE_3_3_0 - ) + QString filter () const; +%End + + bool showLocalProtocol () const; + virtual KFileDialog* fileDialog () const; + KLineEdit* lineEdit () const; + KComboBox* comboBox () const; + KPushButton* button () const; + KURLCompletion* completionObject () const; + +%If ( KDE_3_1_0 - ) + KEditListBox::CustomEditor customEditor (); +%End + + +public slots: + void setURL (const QString&); + +%If ( KDE_3_4_0 - ) + void setKURL (const KURL&); +%End + + +%If ( KDE_3_1_0 - ) + virtual void setCaption (const QString&); +%End + + void clear (); + +signals: + void textChanged (const QString&); + void returnPressed (); + void returnPressed (const QString&); + void openFileDialog (KURLRequester*); + void urlSelected (const QString&); + +protected: + void init (); + +protected slots: + void slotOpenDialog (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KURLRequester + + +%If ( KDE_3_2_0 - ) + +class KURLComboRequester : KURLRequester +{ +%TypeHeaderCode +#include <kurlrequester.h> +%End + + +public: + KURLComboRequester (QWidget* /TransferThis/ = 0, const char* = 0); + +}; // class KURLComboRequester + +%End + diff --git a/sip/kfile/kurlrequesterdlg.sip b/sip/kfile/kurlrequesterdlg.sip new file mode 100644 index 0000000..a61408d --- /dev/null +++ b/sip/kfile/kurlrequesterdlg.sip @@ -0,0 +1,43 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KURLRequesterDlg : KDialogBase +{ +%TypeHeaderCode +#include <kurlrequesterdlg.h> +%End + + +public: + KURLRequesterDlg (const QString&, QWidget* /TransferThis/, const char*, bool = 1); + KURLRequesterDlg (const QString&, const QString&, QWidget* /TransferThis/, const char*, bool = 1); + KURL selectedURL () const; + static KURL getURL (const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + KFileDialog* fileDialog (); + KURLRequester* urlRequester (); + +}; // class KURLRequesterDlg + diff --git a/sip/khtml/css_rule.sip b/sip/khtml/css_rule.sip new file mode 100644 index 0000000..74ceb1b --- /dev/null +++ b/sip/khtml/css_rule.sip @@ -0,0 +1,259 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 DOM +{ + +class CSSRule +{ +%TypeHeaderCode +#include <css_rule.h> +%End + + +public: + CSSRule (); + CSSRule (const DOM::CSSRule&); +//ig CSSRule (CSSRuleImpl*); + +public: + +%If ( KDE_3_2_0 - ) + + enum RuleType + { + UNKNOWN_RULE, + STYLE_RULE, + CHARSET_RULE, + IMPORT_RULE, + MEDIA_RULE, + FONT_FACE_RULE, + PAGE_RULE, + QUIRKS_RULE + }; + +%End + + ushort type () const; + DOM::DOMString cssText () const; + void setCssText (const DOM::DOMString&); + DOM::CSSStyleSheet parentStyleSheet () const; + DOM::CSSRule parentRule () const; +//ig CSSRuleImpl* handle () const; + bool isNull () const; + +protected: + +%If ( KDE_3_0_1 - ) + void assignOther (const DOM::CSSRule&, DOM::CSSRule::RuleType); +%End + + +public: + +%If ( - KDE_3_2_0 ) + + enum RuleType + { + UNKNOWN_RULE, + STYLE_RULE, + CHARSET_RULE, + IMPORT_RULE, + MEDIA_RULE, + FONT_FACE_RULE, + PAGE_RULE + }; + +%End + + +}; // class CSSRule + + +class CSSCharsetRule : DOM::CSSRule +{ +%TypeHeaderCode +#include <css_rule.h> +%End + + +public: + CSSCharsetRule (); + CSSCharsetRule (const DOM::CSSCharsetRule&); + CSSCharsetRule (const DOM::CSSRule&); +//ig CSSCharsetRule (CSSCharsetRuleImpl*); + +public: + DOM::DOMString encoding () const; + void setEncoding (const DOM::DOMString&); + +}; // class CSSCharsetRule + + +class CSSFontFaceRule : DOM::CSSRule +{ +%TypeHeaderCode +#include <css_rule.h> +%End + + +public: + CSSFontFaceRule (); + CSSFontFaceRule (const DOM::CSSFontFaceRule&); + CSSFontFaceRule (const DOM::CSSRule&); +//ig CSSFontFaceRule (CSSFontFaceRuleImpl*); + +public: + DOM::CSSStyleDeclaration style () const; + +}; // class CSSFontFaceRule + + +class CSSImportRule : DOM::CSSRule +{ +%TypeHeaderCode +#include <css_rule.h> +%End + + +public: + CSSImportRule (); + CSSImportRule (const DOM::CSSImportRule&); + CSSImportRule (const DOM::CSSRule&); +//ig CSSImportRule (CSSImportRuleImpl*); + +public: + DOM::DOMString href () const; + DOM::MediaList media () const; + DOM::CSSStyleSheet styleSheet () const; + +}; // class CSSImportRule + + +class CSSMediaRule : DOM::CSSRule +{ +%TypeHeaderCode +#include <css_rule.h> +%End + + +public: + CSSMediaRule (); + CSSMediaRule (const DOM::CSSMediaRule&); + CSSMediaRule (const DOM::CSSRule&); +//ig CSSMediaRule (CSSMediaRuleImpl*); + +public: + DOM::MediaList media () const; + DOM::CSSRuleList cssRules () const; + ulong insertRule (const DOM::DOMString&, ulong); + void deleteRule (ulong); + +}; // class CSSMediaRule + + +class CSSPageRule : DOM::CSSRule +{ +%TypeHeaderCode +#include <css_rule.h> +%End + + +public: + CSSPageRule (); + CSSPageRule (const DOM::CSSPageRule&); + CSSPageRule (const DOM::CSSRule&); +//ig CSSPageRule (CSSPageRuleImpl*); + +public: + DOM::DOMString selectorText () const; + void setSelectorText (const DOM::DOMString&); + DOM::CSSStyleDeclaration style () const; + +}; // class CSSPageRule + + +class CSSStyleRule : DOM::CSSRule +{ +%TypeHeaderCode +#include <css_rule.h> +%End + + +public: + CSSStyleRule (); + CSSStyleRule (const DOM::CSSStyleRule&); + CSSStyleRule (const DOM::CSSRule&); +//ig CSSStyleRule (CSSStyleRuleImpl*); + +public: + DOM::DOMString selectorText () const; + void setSelectorText (const DOM::DOMString&); + DOM::CSSStyleDeclaration style () const; + +}; // class CSSStyleRule + + +class CSSUnknownRule : DOM::CSSRule +{ +%TypeHeaderCode +#include <css_rule.h> +%End + + +public: + CSSUnknownRule (); + CSSUnknownRule (const DOM::CSSUnknownRule&); + CSSUnknownRule (const DOM::CSSRule&); +//ig CSSUnknownRule (CSSUnknownRuleImpl*); + +}; // class CSSUnknownRule + + +class CSSRuleList +{ +%TypeHeaderCode +#include <css_rule.h> +%End + + +public: + CSSRuleList (); + CSSRuleList (const DOM::CSSRuleList&); +//ig CSSRuleList (CSSRuleListImpl*); +//ig CSSRuleList (StyleListImpl*); + +public: + ulong length () const; + DOM::CSSRule item (ulong); +//ig CSSRuleListImpl* handle () const; + bool isNull () const; + +protected: + +}; // class CSSRuleList + +}; // namespace DOM + diff --git a/sip/khtml/css_stylesheet.sip b/sip/khtml/css_stylesheet.sip new file mode 100644 index 0000000..3e43c36 --- /dev/null +++ b/sip/khtml/css_stylesheet.sip @@ -0,0 +1,197 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 DOM +{ + +class StyleSheet +{ +%TypeHeaderCode +#include <css_stylesheet.h> +%End + + +public: + StyleSheet (); + StyleSheet (const DOM::StyleSheet&); +//ig StyleSheet (StyleSheetImpl*); + +public: + DOM::DOMString type () const; + bool disabled () const; + void setDisabled (bool); + DOM::Node ownerNode () const; + DOM::StyleSheet parentStyleSheet () const; + DOM::DOMString href () const; + DOM::DOMString title () const; + DOM::MediaList media () const; + bool isCSSStyleSheet () const; +//ig StyleSheetImpl* handle () const; + bool isNull () const; + +protected: + +}; // class StyleSheet + + +class CSSException +{ +%TypeHeaderCode +#include <css_stylesheet.h> +%End + + +public: + CSSException (ushort); + CSSException (const DOM::CSSException&); + ushort code; + + enum ExceptionCode + { + SYNTAX_ERR, + INVALID_MODIFICATION_ERR, + _EXCEPTION_OFFSET + }; + + +}; // class CSSException + + +class CSSStyleSheet : DOM::StyleSheet +{ +%TypeHeaderCode +#include <css_stylesheet.h> +%End + + +public: + CSSStyleSheet (); + CSSStyleSheet (const DOM::CSSStyleSheet&); + CSSStyleSheet (const DOM::StyleSheet&); +//ig CSSStyleSheet (CSSStyleSheetImpl*); + +public: + DOM::CSSRule ownerRule () const; + DOM::CSSRuleList cssRules () const; + ulong insertRule (const DOM::DOMString&, ulong); + void deleteRule (ulong); + +}; // class CSSStyleSheet + + +class StyleSheetList +{ +%TypeHeaderCode +#include <css_stylesheet.h> +%End + + +public: + StyleSheetList (); + StyleSheetList (const DOM::StyleSheetList&); +//ig StyleSheetList (StyleSheetListImpl*); + +public: + ulong length () const; + DOM::StyleSheet item (ulong); +//ig StyleSheetListImpl* handle () const; + bool isNull () const; + +protected: + +}; // class StyleSheetList + + +class MediaList +{ +%TypeHeaderCode +#include <css_stylesheet.h> +%End + + +public: + MediaList (); + MediaList (const DOM::MediaList&); +//ig MediaList (MediaListImpl*); + +public: + DOM::DOMString mediaText (); + void setMediaText (const DOM::DOMString&); + ulong length (); + DOM::DOMString item (ulong); + void deleteMedium (const DOM::DOMString&); + void appendMedium (const DOM::DOMString&); +//ig MediaListImpl* handle () const; + bool isNull () const; + +protected: + +}; // class MediaList + + +class LinkStyle +{ +%TypeHeaderCode +#include <css_stylesheet.h> +%End + + +public: + LinkStyle (); + LinkStyle (const DOM::LinkStyle&); + DOM::StyleSheet sheet (); + bool isNull () const; + +protected: + +}; // class LinkStyle + + +class DocumentStyle +{ +%TypeHeaderCode +#include <css_stylesheet.h> +%End + + +public: + DocumentStyle (); + DocumentStyle (const DOM::DocumentStyle&); + DOM::StyleSheetList styleSheets (); + +%If ( KDE_3_2_0 - ) + DOM::DOMString preferredStylesheetSet () const; + DOM::DOMString selectedStylesheetSet () const; + void setSelectedStylesheetSet (const DOM::DOMString&); +%End + + bool isNull () const; + +protected: + +}; // class DocumentStyle + +}; // namespace DOM + diff --git a/sip/khtml/css_value.sip b/sip/khtml/css_value.sip new file mode 100644 index 0000000..5d8194d --- /dev/null +++ b/sip/khtml/css_value.sip @@ -0,0 +1,320 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 DOM +{ + +class CSSStyleDeclaration +{ +%TypeHeaderCode +#include <css_value.h> +%End + + +public: + CSSStyleDeclaration (); + CSSStyleDeclaration (const DOM::CSSStyleDeclaration&); +//ig CSSStyleDeclaration (CSSStyleDeclarationImpl*); + +public: + DOM::DOMString cssText () const; + void setCssText (const DOM::DOMString&); + ulong length () const; + DOM::CSSRule parentRule () const; + DOM::DOMString getPropertyValue (const DOM::DOMString&); + DOM::CSSValue getPropertyCSSValue (const DOM::DOMString&); + DOM::DOMString removeProperty (const DOM::DOMString&); + DOM::DOMString getPropertyPriority (const DOM::DOMString&); + void setProperty (const DOM::DOMString&, const DOM::DOMString&, const DOM::DOMString&); + DOM::DOMString item (ulong); +//ig CSSStyleDeclarationImpl* handle () const; + bool isNull () const; + +protected: + +}; // class CSSStyleDeclaration + + +class CSSValue +{ +%TypeHeaderCode +#include <css_value.h> +%End + + +public: + CSSValue (); + CSSValue (const DOM::CSSValue&); +//ig CSSValue (CSSValueImpl*); + +public: + +%If ( KDE_3_2_1 - ) + + enum UnitTypes + { + CSS_INHERIT, + CSS_PRIMITIVE_VALUE, + CSS_VALUE_LIST, + CSS_CUSTOM, + CSS_INITIAL + }; + +%End + + DOM::DOMString cssText () const; + void setCssText (const DOM::DOMString&); + ushort cssValueType () const; + bool isCSSValueList () const; + bool isCSSPrimitiveValue () const; +//ig CSSValueImpl* handle () const; + bool isNull () const; + +protected: + +public: + +%If ( - KDE_3_2_1 ) + + enum UnitTypes + { + CSS_INHERIT, + CSS_PRIMITIVE_VALUE, + CSS_VALUE_LIST, + CSS_CUSTOM + }; + +%End + + +}; // class CSSValue + + +class CSSValueList : DOM::CSSValue +{ +%TypeHeaderCode +#include <css_value.h> +%End + + +public: + CSSValueList (); + CSSValueList (const DOM::CSSValueList&); + CSSValueList (const DOM::CSSValue&); +//ig CSSValueList (CSSValueListImpl*); + +public: + ulong length () const; + DOM::CSSValue item (ulong); + +protected: + +}; // class CSSValueList + + +class CSSPrimitiveValue : DOM::CSSValue +{ +%TypeHeaderCode +#include <css_value.h> +%End + + +public: + CSSPrimitiveValue (); + CSSPrimitiveValue (const DOM::CSSPrimitiveValue&); + CSSPrimitiveValue (const DOM::CSSValue&); +//ig CSSPrimitiveValue (CSSPrimitiveValueImpl*); + +public: + +%If ( KDE_3_1_0 - ) + + enum UnitTypes + { + CSS_UNKNOWN, + CSS_NUMBER, + CSS_PERCENTAGE, + CSS_EMS, + CSS_EXS, + CSS_PX, + CSS_CM, + CSS_MM, + CSS_IN, + CSS_PT, + CSS_PC, + CSS_DEG, + CSS_RAD, + CSS_GRAD, + CSS_MS, + CSS_S, + CSS_HZ, + CSS_KHZ, + CSS_DIMENSION, + CSS_STRING, + CSS_URI, + CSS_IDENT, + CSS_ATTR, + CSS_COUNTER, + CSS_RECT, + CSS_RGBCOLOR, + CSS_HTML_RELATIVE + }; + +%End + + ushort primitiveType () const; + void setFloatValue (ushort, float); + float getFloatValue (ushort); + void setStringValue (ushort, const DOM::DOMString&); + DOM::DOMString getStringValue (); + DOM::Counter getCounterValue (); + DOM::Rect getRectValue (); + DOM::RGBColor getRGBColorValue (); + +public: + +%If ( - KDE_3_1_0 ) + + enum UnitTypes + { + CSS_UNKNOWN, + CSS_NUMBER, + CSS_PERCENTAGE, + CSS_EMS, + CSS_EXS, + CSS_PX, + CSS_CM, + CSS_MM, + CSS_IN, + CSS_PT, + CSS_PC, + CSS_DEG, + CSS_RAD, + CSS_GRAD, + CSS_MS, + CSS_S, + CSS_HZ, + CSS_KHZ, + CSS_DIMENSION, + CSS_STRING, + CSS_URI, + CSS_IDENT, + CSS_ATTR, + CSS_COUNTER, + CSS_RECT, + CSS_RGBCOLOR + }; + +%End + + +}; // class CSSPrimitiveValue + + +class RGBColor +{ +%TypeHeaderCode +#include <css_value.h> +%End + + +public: + RGBColor (); + RGBColor (const QColor&); + +%If ( KDE_3_1_0 - ) + RGBColor (QRgb); +%End + + RGBColor (const DOM::RGBColor&); + DOM::CSSPrimitiveValue red () const; + DOM::CSSPrimitiveValue green () const; + DOM::CSSPrimitiveValue blue () const; + +%If ( KDE_3_1_0 - ) + QRgb color () const; +%End + + +protected: + +public: + +%If ( - KDE_3_1_0 ) + const QColor& color () const; +%End + + +}; // class RGBColor + + +class Rect +{ +%TypeHeaderCode +#include <css_value.h> +%End + + +public: + Rect (); + Rect (const DOM::Rect&); + DOM::CSSPrimitiveValue top () const; + DOM::CSSPrimitiveValue right () const; + DOM::CSSPrimitiveValue bottom () const; + DOM::CSSPrimitiveValue left () const; +//ig RectImpl* handle () const; + bool isNull () const; + +protected: +//ig Rect (RectImpl*); + +}; // class Rect + + +class Counter +{ +%TypeHeaderCode +#include <css_value.h> +%End + + +public: + Counter (); + Counter (const DOM::Counter&); + +public: + DOM::DOMString identifier () const; + DOM::DOMString listStyle () const; + DOM::DOMString separator () const; +//ig CounterImpl* handle () const; + bool isNull () const; + +protected: +//ig Counter (CounterImpl*); + +}; // class Counter + +}; // namespace DOM + diff --git a/sip/khtml/dom2_events.sip b/sip/khtml/dom2_events.sip new file mode 100644 index 0000000..31772fe --- /dev/null +++ b/sip/khtml/dom2_events.sip @@ -0,0 +1,248 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 DOM +{ + +class EventListener : DOM::DomShared +{ +%TypeHeaderCode +#include <dom2_events.h> +%End + + +public: + EventListener (); + virtual void handleEvent (DOM::Event&); + virtual DOM::DOMString eventListenerType (); + +protected: + +}; // class EventListener + + +class Event +{ +%TypeHeaderCode +#include <dom2_events.h> +%End + + +public: + Event (); + Event (const DOM::Event&); + + enum PhaseType + { + CAPTURING_PHASE, + AT_TARGET, + BUBBLING_PHASE + }; + + DOM::DOMString type () const; + DOM::Node target () const; + DOM::Node currentTarget () const; + ushort eventPhase () const; + bool bubbles () const; + bool cancelable () const; + DOM::DOMTimeStamp timeStamp () const; + void stopPropagation (); + void preventDefault (); + void initEvent (const DOM::DOMString&, bool, bool); +//ig EventImpl* handle () const; + bool isNull () const; + +protected: +//ig Event (EventImpl*); + +public: + +%If ( - KDE_3_2_0 ) + DOM::DOMString eventModuleName (); +%End + +}; // class Event + + +typedef unsigned long long DOMTimeStamp; + + +class EventException +{ +%TypeHeaderCode +#include <dom2_events.h> +%End + + +public: + EventException (ushort); + EventException (const DOM::EventException&); + + enum EventExceptionCode + { + UNSPECIFIED_EVENT_TYPE_ERR + }; + + ushort code; + +}; // class EventException + + +class UIEvent : DOM::Event +{ +%TypeHeaderCode +#include <dom2_events.h> +%End + + +public: + UIEvent (); + UIEvent (const DOM::UIEvent&); + UIEvent (const DOM::Event&); + DOM::AbstractView view () const; + long detail () const; + +%If ( KDE_3_2_0 - ) + int keyCode () const; + +%If ( KDE_3_4_0 - ) + int charCode () const; +%End + + +%If ( KDE_3_2_1 - ) + int pageX () const; + int pageY () const; +%End + + int layerX () const; + int layerY () const; + int which () const; +%End + + void initUIEvent (const DOM::DOMString&, bool, bool, const DOM::AbstractView&, long); + +protected: +//ig UIEvent (UIEventImpl*); + +}; // class UIEvent + + +class MouseEvent : DOM::UIEvent +{ +%TypeHeaderCode +#include <dom2_events.h> +%End + + +public: + MouseEvent (); + MouseEvent (const DOM::MouseEvent&); + MouseEvent (const DOM::Event&); + long screenX () const; + long screenY () const; + long clientX () const; + long clientY () const; + bool ctrlKey () const; + bool shiftKey () const; + bool altKey () const; + bool metaKey () const; + ushort button () const; + DOM::Node relatedTarget () const; + void initMouseEvent (const DOM::DOMString&, bool, bool, const DOM::AbstractView&, long, long, long, long, long, bool, bool, bool, bool, ushort, const DOM::Node&); + +protected: +//ig MouseEvent (MouseEventImpl*); + +}; // class MouseEvent + + +%If ( KDE_3_1_0 - ) + +class TextEvent : DOM::UIEvent +{ +%TypeHeaderCode +#include <dom2_events.h> +%End + + +public: + TextEvent (); + TextEvent (const DOM::TextEvent&); + TextEvent (const DOM::Event&); + void initTextEvent (const DOM::DOMString&, bool, bool, const DOM::AbstractView&, long, const DOM::DOMString&, ulong, ulong, bool, bool); + void initModifier (ulong, bool); + bool inputGenerated () const; + ulong keyVal () const; + bool numPad () const; + DOM::DOMString outputString () const; + ulong virtKeyVal () const; + bool checkModifier (ulong); + +protected: +//ig TextEvent (KeyEventBaseImpl*); + +}; // class TextEvent + +%End + + +%If ( KDE_3_1_0 - ) + +class MutationEvent : DOM::Event +{ +%TypeHeaderCode +#include <dom2_events.h> +%End + + +public: + MutationEvent (); + MutationEvent (const DOM::MutationEvent&); + MutationEvent (const DOM::Event&); + + enum attrChangeType + { + MODIFICATION, + ADDITION, + REMOVAL + }; + + DOM::Node relatedNode () const; + DOM::DOMString prevValue () const; + DOM::DOMString newValue () const; + DOM::DOMString attrName () const; + ushort attrChange () const; + void initMutationEvent (const DOM::DOMString&, bool, bool, const DOM::Node&, const DOM::DOMString&, const DOM::DOMString&, const DOM::DOMString&, ushort); + +protected: +//ig MutationEvent (MutationEventImpl*); + +}; // class MutationEvent + +%End + +}; // namespace DOM + diff --git a/sip/khtml/dom2_range.sip b/sip/khtml/dom2_range.sip new file mode 100644 index 0000000..a39378d --- /dev/null +++ b/sip/khtml/dom2_range.sip @@ -0,0 +1,115 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 DOM +{ + +class RangeException +{ +%TypeHeaderCode +#include <dom2_range.h> +%End + + +public: + RangeException (ushort); + RangeException (const DOM::RangeException&); + + enum RangeExceptionCode + { + BAD_BOUNDARYPOINTS_ERR, + INVALID_NODE_TYPE_ERR, + _EXCEPTION_OFFSET, + _EXCEPTION_MAX + }; + + ushort code; + +}; // class RangeException + + +class Range +{ +%TypeHeaderCode +#include <dom2_range.h> +%End + + +public: + Range (); + Range (const DOM::Document); + Range (const DOM::Range&); + Range (const DOM::Node, const long, const DOM::Node, const long); + DOM::Node startContainer () const; + long startOffset () const; + DOM::Node endContainer () const; + long endOffset () const; + bool collapsed () const; + DOM::Node commonAncestorContainer (); + void setStart (const DOM::Node&, long); + void setEnd (const DOM::Node&, long); + void setStartBefore (const DOM::Node&); + void setStartAfter (const DOM::Node&); + void setEndBefore (const DOM::Node&); + void setEndAfter (const DOM::Node&); + void collapse (bool); + void selectNode (const DOM::Node&); + void selectNodeContents (const DOM::Node&); + + enum CompareHow + { + START_TO_START, + START_TO_END, + END_TO_END, + END_TO_START + }; + + short compareBoundaryPoints (DOM::Range::CompareHow, const DOM::Range&); + bool boundaryPointsValid (); + void deleteContents (); + DOM::DocumentFragment extractContents (); + DOM::DocumentFragment cloneContents (); + void insertNode (const DOM::Node&); + void surroundContents (const DOM::Node&); + DOM::Range cloneRange (); + DOM::DOMString toString (); + DOM::DOMString toHTML (); + +%If ( KDE_3_2_0 - ) + DOM::DocumentFragment createContextualFragment (const DOM::DOMString&); +%End + + void detach (); + bool isDetached () const; +//ig RangeImpl* handle () const; + bool isNull () const; + +protected: +//ig Range (RangeImpl*); + +}; // class Range + +}; // namespace DOM + diff --git a/sip/khtml/dom2_traversal.sip b/sip/khtml/dom2_traversal.sip new file mode 100644 index 0000000..54d7acb --- /dev/null +++ b/sip/khtml/dom2_traversal.sip @@ -0,0 +1,176 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 DOM +{ + +class NodeIterator +{ +%TypeHeaderCode +#include <dom2_traversal.h> +%End + + +public: + NodeIterator (); + NodeIterator (const DOM::NodeIterator&); + DOM::Node root (); + ulong whatToShow (); + DOM::NodeFilter filter (); + bool expandEntityReferences (); + DOM::Node nextNode (); + DOM::Node previousNode (); + void detach (); +//ig NodeIteratorImpl* handle () const; + bool isNull () const; + +protected: +//ig NodeIterator (NodeIteratorImpl*); + +}; // class NodeIterator + + +class NodeFilter +{ +%TypeHeaderCode +#include <dom2_traversal.h> +%End + + +public: + NodeFilter (); + NodeFilter (const DOM::NodeFilter&); + +%If ( KDE_3_2_1 - ) +//ig NodeFilter (NodeFilterImpl*); +%End + + + enum AcceptCode + { + FILTER_ACCEPT, + FILTER_REJECT, + FILTER_SKIP + }; + + + enum ShowCode + { + SHOW_ALL, + SHOW_ELEMENT, + SHOW_ATTRIBUTE, + SHOW_TEXT, + SHOW_CDATA_SECTION, + SHOW_ENTITY_REFERENCE, + SHOW_ENTITY, + SHOW_PROCESSING_INSTRUCTION, + SHOW_COMMENT, + SHOW_DOCUMENT, + SHOW_DOCUMENT_TYPE, + SHOW_DOCUMENT_FRAGMENT, + SHOW_NOTATION + }; + + virtual short acceptNode (const DOM::Node&); +//ig virtual NodeFilterImpl* handle () const; + virtual bool isNull () const; + void setCustomNodeFilter (DOM::CustomNodeFilter*); + DOM::CustomNodeFilter* customNodeFilter (); + static DOM::NodeFilter createCustom (DOM::CustomNodeFilter*); + +protected: + +protected: + +%If ( - KDE_3_2_1 ) +//ig NodeFilter (NodeFilterImpl*); +%End + + +}; // class NodeFilter + + +class CustomNodeFilter : DOM::DomShared +{ +%TypeHeaderCode +#include <dom2_traversal.h> +%End + + +public: + CustomNodeFilter (); + virtual short acceptNode (const DOM::Node&); + virtual bool isNull (); + virtual DOM::DOMString customNodeFilterType (); + +protected: + +}; // class CustomNodeFilter + + +class TreeWalker +{ +%TypeHeaderCode +#include <dom2_traversal.h> +%End + + +public: + TreeWalker (); + TreeWalker (const DOM::TreeWalker&); + DOM::Node root (); + ulong whatToShow (); + DOM::NodeFilter filter (); + bool expandEntityReferences (); + DOM::Node currentNode (); + +%If ( KDE_3_2_1 - ) + void setCurrentNode (const DOM::Node&); +%End + + DOM::Node parentNode (); + DOM::Node firstChild (); + DOM::Node lastChild (); + DOM::Node previousSibling (); + DOM::Node nextSibling (); + DOM::Node previousNode (); + DOM::Node nextNode (); +//ig TreeWalkerImpl* handle () const; + bool isNull () const; + +protected: +//ig TreeWalker (TreeWalkerImpl*); + +public: + +%If ( - KDE_3_2_1 ) + void setCurrentNode (const DOM::Node); +%End + + +}; // class TreeWalker + +}; // namespace DOM + diff --git a/sip/khtml/dom2_views.sip b/sip/khtml/dom2_views.sip new file mode 100644 index 0000000..664a2c9 --- /dev/null +++ b/sip/khtml/dom2_views.sip @@ -0,0 +1,50 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 DOM +{ + +class AbstractView +{ +%TypeHeaderCode +#include <dom2_views.h> +%End + + +public: + AbstractView (); + AbstractView (const DOM::AbstractView&); + DOM::Document document () const; + DOM::CSSStyleDeclaration getComputedStyle (const DOM::Element&, const DOM::DOMString&); +//ig AbstractViewImpl* handle () const; + bool isNull () const; + +protected: +//ig AbstractView (AbstractViewImpl*); + +}; // class AbstractView + +}; // namespace DOM + diff --git a/sip/khtml/dom_doc.sip b/sip/khtml/dom_doc.sip new file mode 100644 index 0000000..1a132d8 --- /dev/null +++ b/sip/khtml/dom_doc.sip @@ -0,0 +1,185 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 DOM +{ + +class DOMImplementation +{ +%TypeHeaderCode +#include <dom_doc.h> +%End + + +public: + DOMImplementation (); + DOMImplementation (const DOM::DOMImplementation&); + bool hasFeature (const DOM::DOMString&, const DOM::DOMString&); + DOM::DocumentType createDocumentType (const DOM::DOMString&, const DOM::DOMString&, const DOM::DOMString&); + DOM::Document createDocument (const DOM::DOMString&, const DOM::DOMString&, const DOM::DocumentType&); + DOM::DOMImplementation getInterface (const DOM::DOMString&) const; + DOM::CSSStyleSheet createCSSStyleSheet (const DOM::DOMString&, const DOM::DOMString&); + DOM::HTMLDocument createHTMLDocument (const DOM::DOMString&); +//ig DOMImplementationImpl* handle () const; + bool isNull () const; + +protected: +//ig DOMImplementation (DOMImplementationImpl*); + +}; // class DOMImplementation + + +class Document : DOM::Node +{ +%TypeHeaderCode +#include <dom_doc.h> +%End + + +public: + Document (); + Document (bool); + Document (const DOM::Document&); + Document (const DOM::Node&); + DOM::DocumentType doctype () const; + DOM::DOMImplementation implementation () const; + DOM::Element documentElement () const; + DOM::Element createElement (const DOM::DOMString&); + DOM::Element createElementNS (const DOM::DOMString&, const DOM::DOMString&); + DOM::DocumentFragment createDocumentFragment (); + DOM::Text createTextNode (const DOM::DOMString&); + DOM::Comment createComment (const DOM::DOMString&); + DOM::CDATASection createCDATASection (const DOM::DOMString&); + DOM::ProcessingInstruction createProcessingInstruction (const DOM::DOMString&, const DOM::DOMString&); + DOM::Attr createAttribute (const DOM::DOMString&); + DOM::Attr createAttributeNS (const DOM::DOMString&, const DOM::DOMString&); + DOM::EntityReference createEntityReference (const DOM::DOMString&); + DOM::Element getElementById (const DOM::DOMString&) const; + DOM::NodeList getElementsByTagName (const DOM::DOMString&); + DOM::NodeList getElementsByTagNameNS (const DOM::DOMString&, const DOM::DOMString&); + DOM::Node importNode (const DOM::Node&, bool); + bool isHTMLDocument () const; + DOM::Range createRange (); + DOM::NodeIterator createNodeIterator (DOM::Node, ulong, DOM::NodeFilter, bool); + DOM::TreeWalker createTreeWalker (DOM::Node, ulong, DOM::NodeFilter, bool); + DOM::Event createEvent (const DOM::DOMString&); + DOM::AbstractView defaultView () const; + DOM::StyleSheetList styleSheets () const; + +%If ( KDE_3_2_0 - ) + DOM::DOMString preferredStylesheetSet (); + DOM::DOMString selectedStylesheetSet (); + void setSelectedStylesheetSet (const DOM::DOMString&); + +%If ( KDE_3_4_0 - ) + void addStyleSheet (const DOM::StyleSheet&); + void removeStyleSheet (const DOM::StyleSheet&); +%End + +%End + + KHTMLView* view () const; + DOM::CSSStyleDeclaration getOverrideStyle (const DOM::Element&, const DOM::DOMString&); + +%If ( KDE_3_2_0 - ) + bool async () const; + void setAsync (bool); + void abort (); + void load (const DOM::DOMString&); + void loadXML (const DOM::DOMString&); + bool designMode () const; + void setDesignMode (bool); +%End + + DOM::DOMString completeURL (const DOM::DOMString&); + +%If ( KDE_3_3_0 - ) + DOM::DOMString toString () const; +%End + + +%If ( KDE_3_2_0 - ) + void updateRendering (); + +%If ( KDE_3_3_0 - ) +//ig Document (DocumentImpl*); +%End + +%End + + +protected: + +%If ( - KDE_3_3_0 ) +//ig Document (DocumentImpl*); +%End + + +}; // class Document + + +class DocumentFragment : DOM::Node +{ +%TypeHeaderCode +#include <dom_doc.h> +%End + + +public: + DocumentFragment (); + DocumentFragment (const DOM::DocumentFragment&); + DocumentFragment (const DOM::Node&); + +protected: +//ig DocumentFragment (DocumentFragmentImpl*); + +}; // class DocumentFragment + + +class DocumentType : DOM::Node +{ +%TypeHeaderCode +#include <dom_doc.h> +%End + + +public: + DocumentType (); + DocumentType (const DOM::DocumentType&); + DocumentType (const DOM::Node&); + DOM::DOMString name () const; + DOM::NamedNodeMap entities () const; + DOM::NamedNodeMap notations () const; + DOM::DOMString publicId () const; + DOM::DOMString systemId () const; + DOM::DOMString internalSubset () const; + +protected: +//ig DocumentType (DocumentTypeImpl*); + +}; // class DocumentType + +}; // namespace DOM + diff --git a/sip/khtml/dom_element.sip b/sip/khtml/dom_element.sip new file mode 100644 index 0000000..090e9d3 --- /dev/null +++ b/sip/khtml/dom_element.sip @@ -0,0 +1,111 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 DOM +{ + +class Attr : DOM::Node +{ +%TypeHeaderCode +#include <dom_element.h> +%End + + +public: + Attr (); + Attr (const DOM::Node&); + Attr (const DOM::Attr&); + DOM::DOMString name () const; + bool specified () const; + DOM::DOMString value () const; + void setValue (const DOM::DOMString&); + DOM::Element ownerElement () const; + +protected: +//ig Attr (AttrImpl*); + +}; // class Attr + + +class Element : DOM::Node +{ +%TypeHeaderCode +#include <dom_element.h> +%End + + +public: + Element (); + Element (const DOM::Node&); + Element (const DOM::Element&); + DOM::DOMString tagName () const; + DOM::DOMString getAttribute (const DOM::DOMString&); + void setAttribute (const DOM::DOMString&, const DOM::DOMString&); + void removeAttribute (const DOM::DOMString&); + DOM::Attr getAttributeNode (const DOM::DOMString&); + DOM::Attr setAttributeNode (const DOM::Attr&); + DOM::Attr removeAttributeNode (const DOM::Attr&); + DOM::NodeList getElementsByTagName (const DOM::DOMString&); + DOM::NodeList getElementsByTagNameNS (const DOM::DOMString&, const DOM::DOMString&); + DOM::DOMString getAttributeNS (const DOM::DOMString&, const DOM::DOMString&); + void setAttributeNS (const DOM::DOMString&, const DOM::DOMString&, const DOM::DOMString&); + void removeAttributeNS (const DOM::DOMString&, const DOM::DOMString&); + DOM::Attr getAttributeNodeNS (const DOM::DOMString&, const DOM::DOMString&); + DOM::Attr setAttributeNodeNS (const DOM::Attr&); + bool hasAttribute (const DOM::DOMString&); + bool hasAttributeNS (const DOM::DOMString&, const DOM::DOMString&); + DOM::CSSStyleDeclaration style (); + +%If ( KDE_3_2_0 - ) + bool contentEditable () const; + void setContentEditable (bool); +%End + + bool isHTMLElement () const; + +%If ( KDE_3_1_0 - ) + DOM::Element form () const; +%End + + static bool khtmlValidAttrName (const DOM::DOMString&); + static bool khtmlValidPrefix (const DOM::DOMString&); + static bool khtmlValidQualifiedName (const DOM::DOMString&); + static bool khtmlMalformedQualifiedName (const DOM::DOMString&); + static bool khtmlMalformedPrefix (const DOM::DOMString&); + +protected: +//ig Element (ElementImpl*); + +public: + +%If ( - KDE_3_1_2 ) + void normalize (); +%End + + +}; // class Element + +}; // namespace DOM + diff --git a/sip/khtml/dom_exception.sip b/sip/khtml/dom_exception.sip new file mode 100644 index 0000000..6a446a8 --- /dev/null +++ b/sip/khtml/dom_exception.sip @@ -0,0 +1,64 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 DOM +{ + +class DOMException +{ +%TypeHeaderCode +#include <dom_exception.h> +%End + + +public: + DOMException (ushort); + DOMException (const DOM::DOMException&); + + enum ExceptionCode + { + INDEX_SIZE_ERR, + DOMSTRING_SIZE_ERR, + HIERARCHY_REQUEST_ERR, + WRONG_DOCUMENT_ERR, + INVALID_CHARACTER_ERR, + NO_DATA_ALLOWED_ERR, + NO_MODIFICATION_ALLOWED_ERR, + NOT_FOUND_ERR, + NOT_SUPPORTED_ERR, + INUSE_ATTRIBUTE_ERR, + INVALID_STATE_ERR, + SYNTAX_ERR, + INVALID_MODIFICATION_ERR, + NAMESPACE_ERR, + INVALID_ACCESS_ERR + }; + + ushort code; + +}; // class DOMException + +}; // namespace DOM + diff --git a/sip/khtml/dom_misc.sip b/sip/khtml/dom_misc.sip new file mode 100644 index 0000000..30c090f --- /dev/null +++ b/sip/khtml/dom_misc.sip @@ -0,0 +1,49 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 DOM +{ + +class DomShared +{ +%TypeHeaderCode +#include <dom_misc.h> +%End + + +public: + DomShared (); + virtual bool deleteMe (); + void ref (); + void deref (); + bool hasOneRef (); + uint refCount () const; + +protected: + +}; // class DomShared + +}; // namespace DOM + diff --git a/sip/khtml/dom_node.sip b/sip/khtml/dom_node.sip new file mode 100644 index 0000000..e7d4b8e --- /dev/null +++ b/sip/khtml/dom_node.sip @@ -0,0 +1,150 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 DOM +{ + +class NamedNodeMap +{ +%TypeHeaderCode +#include <dom_node.h> +%End + + +public: + NamedNodeMap (); + NamedNodeMap (const DOM::NamedNodeMap&); + ulong length () const; + DOM::Node getNamedItem (const DOM::DOMString&) const; + DOM::Node setNamedItem (const DOM::Node&); + DOM::Node removeNamedItem (const DOM::DOMString&); + DOM::Node item (ulong) const; + DOM::Node getNamedItemNS (const DOM::DOMString&, const DOM::DOMString&) const; + DOM::Node setNamedItemNS (const DOM::Node&); + DOM::Node removeNamedItemNS (const DOM::DOMString&, const DOM::DOMString&); +//ig NamedNodeMapImpl* handle () const; + bool isNull () const; + +protected: +//ig NamedNodeMap (NamedNodeMapImpl*); + +}; // class NamedNodeMap + + +class Node +{ +%TypeHeaderCode +#include <dom_node.h> +%End + + +public: + Node (); + Node (const DOM::Node&); +//ig Node (NodeImpl*); + bool operator == (const DOM::Node&); + bool operator != (const DOM::Node&); + + enum NodeType + { + ELEMENT_NODE, + ATTRIBUTE_NODE, + TEXT_NODE, + CDATA_SECTION_NODE, + ENTITY_REFERENCE_NODE, + ENTITY_NODE, + PROCESSING_INSTRUCTION_NODE, + COMMENT_NODE, + DOCUMENT_NODE, + DOCUMENT_TYPE_NODE, + DOCUMENT_FRAGMENT_NODE, + NOTATION_NODE + }; + + DOM::DOMString nodeName () const; + DOM::DOMString nodeValue () const; + void setNodeValue (const DOM::DOMString&); + ushort nodeType () const; + DOM::Node parentNode () const; + DOM::NodeList childNodes () const; + DOM::Node firstChild () const; + DOM::Node lastChild () const; + DOM::Node previousSibling () const; + DOM::Node nextSibling () const; + DOM::NamedNodeMap attributes () const; + DOM::Document ownerDocument () const; + DOM::Node insertBefore (const DOM::Node&, const DOM::Node&); + DOM::Node replaceChild (const DOM::Node&, const DOM::Node&); + DOM::Node removeChild (const DOM::Node&); + DOM::Node appendChild (const DOM::Node&); + bool hasChildNodes (); + DOM::Node cloneNode (bool); + void normalize (); + bool isSupported (const DOM::DOMString&, const DOM::DOMString&) const; + DOM::DOMString namespaceURI () const; + DOM::DOMString prefix () const; + void setPrefix (const DOM::DOMString&); + DOM::DOMString localName () const; + bool hasAttributes (); + void addEventListener (const DOM::DOMString&, DOM::EventListener*, const bool); + void removeEventListener (const DOM::DOMString&, DOM::EventListener*, bool); + bool dispatchEvent (const DOM::Event&); + ulong elementId () const; + bool isNull () const; +//ig NodeImpl* handle () const; + ulong index () const; + QString toHTML (); + void applyChanges (); + void getCursor (int, int&, int&, int&); + QRect getRect (); + +protected: + +}; // class Node + + +class NodeList +{ +%TypeHeaderCode +#include <dom_node.h> +%End + + +public: + NodeList (); + NodeList (const DOM::NodeList&); + ulong length () const; + DOM::Node item (ulong) const; +//ig NodeListImpl* handle () const; + bool isNull () const; + +protected: +//ig NodeList (const NodeListImpl*); + +}; // class NodeList + +//ig typedef ulonglong DOMTimeStamp; +}; // namespace DOM + diff --git a/sip/khtml/dom_string.sip b/sip/khtml/dom_string.sip new file mode 100644 index 0000000..07c90b9 --- /dev/null +++ b/sip/khtml/dom_string.sip @@ -0,0 +1,74 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 DOM +{ + +class DOMString +{ +%TypeHeaderCode +#include <dom_string.h> +%End + + +public: + DOMString (); + DOMString (const QChar*, uint); + DOMString (const QString&); + DOMString (const char*); +//ig DOMString (DOMStringImpl*); + DOMString (const DOM::DOMString&); + DOM::DOMString& operator += (const DOM::DOMString&); + DOM::DOMString operator + (const DOM::DOMString&); + void insert (DOM::DOMString, uint); + const QChar& operator [] (uint) const; + + int find (const QChar, int = 0) const; + uint length () const; + void truncate (uint); + void remove (uint, int = 1); + DOM::DOMString split (uint); + DOM::DOMString lower () const; + DOM::DOMString upper () const; + QChar* unicode () const; + QString string () const; + int toInt () const; + bool percentage (int&) const; + DOM::DOMString copy () const; + bool isNull () const; + bool isEmpty () const; +//ig DOMStringImpl* implementation () const; + +protected: + +}; // class DOMString + +//igx bool operator == (const DOMString&, const DOMString&); +//igx bool operator == (const DOMString&, const QString&); +//igx bool operator == (const DOMString&, const char*); +bool strcasecmp (const DOM::DOMString&, const DOM::DOMString&); +bool strcasecmp (const DOM::DOMString&, const char*); +}; // namespace DOM + diff --git a/sip/khtml/dom_text.sip b/sip/khtml/dom_text.sip new file mode 100644 index 0000000..bc06c16 --- /dev/null +++ b/sip/khtml/dom_text.sip @@ -0,0 +1,92 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 DOM +{ + +class CharacterData : DOM::Node +{ +%TypeHeaderCode +#include <dom_text.h> +%End + + +public: + CharacterData (); + CharacterData (const DOM::CharacterData&); + CharacterData (const DOM::Node&); + DOM::DOMString data () const; + void setData (const DOM::DOMString&); + ulong length () const; + DOM::DOMString substringData (const ulong, const ulong); + void appendData (const DOM::DOMString&); + void insertData (const ulong, const DOM::DOMString&); + void deleteData (const ulong, const ulong); + void replaceData (const ulong, const ulong, const DOM::DOMString&); + +protected: +//ig CharacterData (CharacterDataImpl*); + +}; // class CharacterData + + +class Comment : DOM::CharacterData +{ +%TypeHeaderCode +#include <dom_text.h> +%End + + +public: + Comment (); + Comment (const DOM::Comment&); + Comment (const DOM::Node&); + +protected: +//ig Comment (CommentImpl*); + +}; // class Comment + + +class Text : DOM::CharacterData +{ +%TypeHeaderCode +#include <dom_text.h> +%End + + +public: + Text (); + Text (const DOM::Text&); + Text (const DOM::Node&); + DOM::Text splitText (const ulong); + +protected: +//ig Text (TextImpl*); + +}; // class Text + +}; // namespace DOM + diff --git a/sip/khtml/dom_xml.sip b/sip/khtml/dom_xml.sip new file mode 100644 index 0000000..c1d306e --- /dev/null +++ b/sip/khtml/dom_xml.sip @@ -0,0 +1,128 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 DOM +{ + +class CDATASection : DOM::Text +{ +%TypeHeaderCode +#include <dom_xml.h> +%End + + +public: + CDATASection (); + CDATASection (const DOM::CDATASection&); + CDATASection (const DOM::Node&); + +protected: +//ig CDATASection (CDATASectionImpl*); + +}; // class CDATASection + + +class Entity : DOM::Node +{ +%TypeHeaderCode +#include <dom_xml.h> +%End + + +public: + Entity (); + Entity (const DOM::Entity&); + Entity (const DOM::Node&); + DOM::DOMString publicId () const; + DOM::DOMString systemId () const; + DOM::DOMString notationName () const; + +protected: +//ig Entity (EntityImpl*); + +}; // class Entity + + +class EntityReference : DOM::Node +{ +%TypeHeaderCode +#include <dom_xml.h> +%End + + +public: + EntityReference (); + EntityReference (const DOM::EntityReference&); + EntityReference (const DOM::Node&); + +protected: +//ig EntityReference (EntityReferenceImpl*); + +}; // class EntityReference + + +class Notation : DOM::Node +{ +%TypeHeaderCode +#include <dom_xml.h> +%End + + +public: + Notation (); + Notation (const DOM::Notation&); + Notation (const DOM::Node&); + DOM::DOMString publicId () const; + DOM::DOMString systemId () const; + +protected: +//ig Notation (NotationImpl*); + +}; // class Notation + + +class ProcessingInstruction : DOM::Node +{ +%TypeHeaderCode +#include <dom_xml.h> +%End + + +public: + ProcessingInstruction (); + ProcessingInstruction (const DOM::ProcessingInstruction&); + ProcessingInstruction (const DOM::Node&); + DOM::DOMString target () const; + DOM::DOMString data () const; + void setData (const DOM::DOMString&); + DOM::StyleSheet sheet () const; + +protected: +//ig ProcessingInstruction (ProcessingInstructionImpl*); + +}; // class ProcessingInstruction + +}; // namespace DOM + diff --git a/sip/khtml/html_base.sip b/sip/khtml/html_base.sip new file mode 100644 index 0000000..bc0cadc --- /dev/null +++ b/sip/khtml/html_base.sip @@ -0,0 +1,207 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 DOM +{ + +class HTMLBodyElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_base.h> +%End + + +public: + HTMLBodyElement (); + HTMLBodyElement (const DOM::HTMLBodyElement&); + HTMLBodyElement (const DOM::Node&); + +protected: +//ig HTMLBodyElement (HTMLBodyElementImpl*); + +public: + DOM::DOMString aLink () const; + void setALink (const DOM::DOMString&); + DOM::DOMString background () const; + void setBackground (const DOM::DOMString&); + DOM::DOMString bgColor () const; + void setBgColor (const DOM::DOMString&); + DOM::DOMString link () const; + void setLink (const DOM::DOMString&); + DOM::DOMString text () const; + void setText (const DOM::DOMString&); + DOM::DOMString vLink () const; + void setVLink (const DOM::DOMString&); + +}; // class HTMLBodyElement + + +class HTMLFrameElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_base.h> +%End + + +public: + HTMLFrameElement (); + HTMLFrameElement (const DOM::HTMLFrameElement&); + HTMLFrameElement (const DOM::Node&); + +protected: +//ig HTMLFrameElement (HTMLFrameElementImpl*); + +public: + DOM::DOMString frameBorder () const; + void setFrameBorder (const DOM::DOMString&); + DOM::DOMString longDesc () const; + void setLongDesc (const DOM::DOMString&); + DOM::DOMString marginHeight () const; + void setMarginHeight (const DOM::DOMString&); + DOM::DOMString marginWidth () const; + void setMarginWidth (const DOM::DOMString&); + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + bool noResize () const; + void setNoResize (bool); + DOM::DOMString scrolling () const; + void setScrolling (const DOM::DOMString&); + DOM::DOMString src () const; + void setSrc (const DOM::DOMString&); + DOM::Document contentDocument () const; + +}; // class HTMLFrameElement + + +class HTMLFrameSetElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_base.h> +%End + + +public: + HTMLFrameSetElement (); + HTMLFrameSetElement (const DOM::HTMLFrameSetElement&); + HTMLFrameSetElement (const DOM::Node&); + +protected: +//ig HTMLFrameSetElement (HTMLFrameSetElementImpl*); + +public: + DOM::DOMString cols () const; + void setCols (const DOM::DOMString&); + DOM::DOMString rows () const; + void setRows (const DOM::DOMString&); + +}; // class HTMLFrameSetElement + + +class HTMLIFrameElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_base.h> +%End + + +public: + HTMLIFrameElement (); + HTMLIFrameElement (const DOM::HTMLIFrameElement&); + HTMLIFrameElement (const DOM::Node&); + +protected: +//ig HTMLIFrameElement (HTMLIFrameElementImpl*); + +public: + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + DOM::DOMString frameBorder () const; + void setFrameBorder (const DOM::DOMString&); + DOM::DOMString height () const; + void setHeight (const DOM::DOMString&); + DOM::DOMString longDesc () const; + void setLongDesc (const DOM::DOMString&); + DOM::DOMString marginHeight () const; + void setMarginHeight (const DOM::DOMString&); + DOM::DOMString marginWidth () const; + void setMarginWidth (const DOM::DOMString&); + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + DOM::DOMString scrolling () const; + void setScrolling (const DOM::DOMString&); + DOM::DOMString src () const; + void setSrc (const DOM::DOMString&); + DOM::DOMString width () const; + void setWidth (const DOM::DOMString&); + DOM::Document contentDocument () const; + +}; // class HTMLIFrameElement + + +class HTMLHeadElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_base.h> +%End + + +public: + HTMLHeadElement (); + HTMLHeadElement (const DOM::HTMLHeadElement&); + HTMLHeadElement (const DOM::Node&); + +protected: +//ig HTMLHeadElement (HTMLHeadElementImpl*); + +public: + DOM::DOMString profile () const; + void setProfile (const DOM::DOMString&); + +}; // class HTMLHeadElement + + +class HTMLHtmlElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_base.h> +%End + + +public: + HTMLHtmlElement (); + HTMLHtmlElement (const DOM::HTMLHtmlElement&); + HTMLHtmlElement (const DOM::Node&); + +protected: +//ig HTMLHtmlElement (HTMLHtmlElementImpl*); + +public: + DOM::DOMString version () const; + void setVersion (const DOM::DOMString&); + +}; // class HTMLHtmlElement + +}; // namespace DOM + diff --git a/sip/khtml/html_block.sip b/sip/khtml/html_block.sip new file mode 100644 index 0000000..df70827 --- /dev/null +++ b/sip/khtml/html_block.sip @@ -0,0 +1,233 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 DOM +{ + +class HTMLBlockquoteElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_block.h> +%End + + +public: + HTMLBlockquoteElement (); + HTMLBlockquoteElement (const DOM::HTMLBlockquoteElement&); + HTMLBlockquoteElement (const DOM::Node&); + +protected: + +%If ( KDE_3_1_0 - ) +//ig HTMLBlockquoteElement (HTMLElementImpl*); +%End + + +public: + DOM::DOMString cite () const; + void setCite (const DOM::DOMString&); + +protected: + +%If ( - KDE_3_1_0 ) +//ig HTMLBlockquoteElement (HTMLBlockquoteElementImpl*); +%End + + +}; // class HTMLBlockquoteElement + + +class HTMLDivElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_block.h> +%End + + +public: + HTMLDivElement (); + HTMLDivElement (const DOM::HTMLDivElement&); + HTMLDivElement (const DOM::Node&); + +protected: +//ig HTMLDivElement (HTMLDivElementImpl*); + +public: + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + +}; // class HTMLDivElement + + +class HTMLHRElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_block.h> +%End + + +public: + HTMLHRElement (); + HTMLHRElement (const DOM::HTMLHRElement&); + HTMLHRElement (const DOM::Node&); + +protected: +//ig HTMLHRElement (HTMLHRElementImpl*); + +public: + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + bool noShade () const; + void setNoShade (bool); + DOM::DOMString size () const; + void setSize (const DOM::DOMString&); + DOM::DOMString width () const; + void setWidth (const DOM::DOMString&); + +}; // class HTMLHRElement + + +class HTMLHeadingElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_block.h> +%End + + +public: + HTMLHeadingElement (); + HTMLHeadingElement (const DOM::HTMLHeadingElement&); + HTMLHeadingElement (const DOM::Node&); + +protected: + +%If ( KDE_3_1_0 - ) +//ig HTMLHeadingElement (HTMLElementImpl*); +%End + + +public: + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + +protected: + +%If ( - KDE_3_1_0 ) +//ig HTMLHeadingElement (HTMLHeadingElementImpl*); +%End + + +}; // class HTMLHeadingElement + + +class HTMLParagraphElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_block.h> +%End + + +public: + HTMLParagraphElement (); + HTMLParagraphElement (const DOM::HTMLParagraphElement&); + HTMLParagraphElement (const DOM::Node&); + +protected: + +%If ( KDE_3_1_0 - ) +//ig HTMLParagraphElement (HTMLElementImpl*); +%End + + +public: + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + +protected: + +%If ( - KDE_3_1_0 ) +//ig HTMLParagraphElement (HTMLParagraphElementImpl*); +%End + + +}; // class HTMLParagraphElement + + +class HTMLPreElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_block.h> +%End + + +public: + HTMLPreElement (); + HTMLPreElement (const DOM::HTMLPreElement&); + HTMLPreElement (const DOM::Node&); + +protected: +//ig HTMLPreElement (HTMLPreElementImpl*); + +public: + long width () const; + void setWidth (long); + +}; // class HTMLPreElement + + +%If ( KDE_3_3_2 - ) + +class HTMLLayerElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_block.h> +%End + + +public: + HTMLLayerElement (); + HTMLLayerElement (const DOM::HTMLLayerElement&); + HTMLLayerElement (const DOM::Node&); + +protected: +//igx HTMLLayerElement (HTMLLayerElementImpl*); + +public: + long top () const; + void setTop (long); + long left () const; + void setLeft (long); + DOM::DOMString visibility () const; + void setVisibility (const DOM::DOMString&); + DOM::DOMString bgColor () const; + void setBgColor (const DOM::DOMString&); + DOM::HTMLCollection layers () const; + +}; // class HTMLLayerElement + +%End + +}; // namespace DOM + diff --git a/sip/khtml/html_document.sip b/sip/khtml/html_document.sip new file mode 100644 index 0000000..82205ef --- /dev/null +++ b/sip/khtml/html_document.sip @@ -0,0 +1,77 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 DOM +{ + +class HTMLDocument : DOM::Document +{ +%TypeHeaderCode +#include <html_document.h> +%End + + +public: + HTMLDocument (); + HTMLDocument (KHTMLView* /TransferThis/); + HTMLDocument (const DOM::HTMLDocument&); + HTMLDocument (const DOM::Node&); + +protected: +//ig HTMLDocument (HTMLDocumentImpl*); + +public: + DOM::DOMString title () const; + void setTitle (const DOM::DOMString&); + DOM::DOMString referrer () const; + DOM::DOMString domain () const; + DOM::DOMString URL () const; + DOM::HTMLElement body () const; + void setBody (const DOM::HTMLElement&); + DOM::HTMLCollection images () const; + DOM::HTMLCollection applets () const; + DOM::HTMLCollection links () const; + DOM::HTMLCollection forms () const; + +%If ( KDE_3_3_2 - ) + DOM::HTMLCollection layers () const; +%End + + DOM::HTMLCollection anchors () const; + DOM::DOMString cookie () const; + void setCookie (const DOM::DOMString&); + void open (); + void close (); + void write (const DOM::DOMString&); + void writeln (const DOM::DOMString&); + DOM::NodeList getElementsByName (const DOM::DOMString&); + DOM::DOMString completeURL (const DOM::DOMString&) const; + DOM::DOMString lastModified () const; + DOM::HTMLCollection all () const; + +}; // class HTMLDocument + +}; // namespace DOM + diff --git a/sip/khtml/html_element.sip b/sip/khtml/html_element.sip new file mode 100644 index 0000000..dcc8c5b --- /dev/null +++ b/sip/khtml/html_element.sip @@ -0,0 +1,78 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 DOM +{ + +class HTMLElement : DOM::Element +{ +%TypeHeaderCode +#include <html_element.h> +%End + + +public: + HTMLElement (); + HTMLElement (const DOM::HTMLElement&); + HTMLElement (const DOM::Node&); + +protected: +//ig HTMLElement (HTMLElementImpl*); + +public: + DOM::DOMString id () const; + void setId (const DOM::DOMString&); + DOM::DOMString title () const; + void setTitle (const DOM::DOMString&); + DOM::DOMString lang () const; + void setLang (const DOM::DOMString&); + DOM::DOMString dir () const; + void setDir (const DOM::DOMString&); + DOM::DOMString className () const; + void setClassName (const DOM::DOMString&); + DOM::DOMString innerHTML () const; + void setInnerHTML (const DOM::DOMString&); + DOM::DOMString innerText () const; + void setInnerText (const DOM::DOMString&); + DOM::HTMLCollection children () const; + +%If ( KDE_3_1_0 - ) + DOM::HTMLCollection all () const; +%End + + void removeCSSProperty (const DOM::DOMString&); + void addCSSProperty (const DOM::DOMString&, const DOM::DOMString&); + +protected: + +%If ( KDE_3_0_1 - ) + void assignOther (const DOM::Node&, int); +%End + + +}; // class HTMLElement + +}; // namespace DOM + diff --git a/sip/khtml/html_form.sip b/sip/khtml/html_form.sip new file mode 100644 index 0000000..05683cb --- /dev/null +++ b/sip/khtml/html_form.sip @@ -0,0 +1,436 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 DOM +{ + +class HTMLButtonElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_form.h> +%End + + +public: + HTMLButtonElement (); + HTMLButtonElement (const DOM::HTMLButtonElement&); + HTMLButtonElement (const DOM::Node&); + +protected: +//ig HTMLButtonElement (HTMLButtonElementImpl*); + +public: + DOM::HTMLFormElement form () const; + DOM::DOMString accessKey () const; + void setAccessKey (const DOM::DOMString&); + bool disabled () const; + void setDisabled (bool); + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + long tabIndex () const; + void setTabIndex (long); + DOM::DOMString type () const; + DOM::DOMString value () const; + void setValue (const DOM::DOMString&); + +%If ( KDE_3_5_0 - ) + void blur (); + void focus (); +%End + + +}; // class HTMLButtonElement + + +class HTMLFieldSetElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_form.h> +%End + + +public: + HTMLFieldSetElement (); + HTMLFieldSetElement (const DOM::HTMLFieldSetElement&); + HTMLFieldSetElement (const DOM::Node&); + +protected: +//ig HTMLFieldSetElement (HTMLFieldSetElementImpl*); + +public: + DOM::HTMLFormElement form () const; + +}; // class HTMLFieldSetElement + + +class HTMLFormElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_form.h> +%End + + +public: + HTMLFormElement (); + HTMLFormElement (const DOM::HTMLFormElement&); + HTMLFormElement (const DOM::Node&); + +protected: +//ig HTMLFormElement (HTMLFormElementImpl*); + +public: + DOM::HTMLCollection elements () const; + long length () const; + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + DOM::DOMString acceptCharset () const; + void setAcceptCharset (const DOM::DOMString&); + DOM::DOMString action () const; + void setAction (const DOM::DOMString&); + DOM::DOMString enctype () const; + void setEnctype (const DOM::DOMString&); + DOM::DOMString method () const; + void setMethod (const DOM::DOMString&); + DOM::DOMString target () const; + void setTarget (const DOM::DOMString&); + void submit (); + void reset (); + +}; // class HTMLFormElement + + +class HTMLInputElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_form.h> +%End + + +public: + HTMLInputElement (); + HTMLInputElement (const DOM::HTMLInputElement&); + HTMLInputElement (const DOM::Node&); + +protected: +//ig HTMLInputElement (HTMLInputElementImpl*); + +public: + DOM::DOMString defaultValue () const; + void setDefaultValue (const DOM::DOMString&); + bool defaultChecked () const; + void setDefaultChecked (bool); + DOM::HTMLFormElement form () const; + DOM::DOMString accept () const; + void setAccept (const DOM::DOMString&); + DOM::DOMString accessKey () const; + void setAccessKey (const DOM::DOMString&); + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + DOM::DOMString alt () const; + void setAlt (const DOM::DOMString&); + bool checked () const; + void setChecked (bool); + +%If ( KDE_3_5_3 - ) + bool indeterminate () const; + void setIndeterminate (bool); +%End + + bool disabled () const; + void setDisabled (bool); + long maxLength () const; + void setMaxLength (long); + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + bool readOnly () const; + void setReadOnly (bool); + DOM::DOMString size () const; + void setSize (const DOM::DOMString&); + +%If ( KDE_3_1_0 - ) + long getSize () const; + void setSize (long); +%End + + DOM::DOMString src () const; + void setSrc (const DOM::DOMString&); + long tabIndex () const; + void setTabIndex (long); + DOM::DOMString type () const; + void setType (const DOM::DOMString&); + DOM::DOMString useMap () const; + void setUseMap (const DOM::DOMString&); + DOM::DOMString value () const; + void setValue (const DOM::DOMString&); + void blur (); + void focus (); + void select (); + void click (); + +%If ( KDE_3_5_2 - ) + long selectionStart (); + void setSelectionStart (long); + long selectionEnd (); + void setSelectionEnd (long); + void setSelectionRange (long, long); +%End + + +}; // class HTMLInputElement + + +class HTMLLabelElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_form.h> +%End + + +public: + HTMLLabelElement (); + HTMLLabelElement (const DOM::HTMLLabelElement&); + HTMLLabelElement (const DOM::Node&); + +protected: +//ig HTMLLabelElement (HTMLLabelElementImpl*); + +public: + DOM::DOMString accessKey () const; + void setAccessKey (const DOM::DOMString&); + DOM::DOMString htmlFor () const; + void setHtmlFor (const DOM::DOMString&); + +public: + +%If ( - KDE_3_1_0 ) + DOM::HTMLFormElement form () const; +%End + + +}; // class HTMLLabelElement + + +class HTMLLegendElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_form.h> +%End + + +public: + HTMLLegendElement (); + HTMLLegendElement (const DOM::HTMLLegendElement&); + HTMLLegendElement (const DOM::Node&); + +protected: +//ig HTMLLegendElement (HTMLLegendElementImpl*); + +public: + DOM::HTMLFormElement form () const; + DOM::DOMString accessKey () const; + void setAccessKey (const DOM::DOMString&); + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + +}; // class HTMLLegendElement + + +class HTMLOptGroupElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_form.h> +%End + + +public: + HTMLOptGroupElement (); + HTMLOptGroupElement (const DOM::HTMLOptGroupElement&); + HTMLOptGroupElement (const DOM::Node&); + +protected: +//ig HTMLOptGroupElement (HTMLOptGroupElementImpl*); + +public: + bool disabled () const; + void setDisabled (bool); + DOM::DOMString label () const; + void setLabel (const DOM::DOMString&); + +}; // class HTMLOptGroupElement + + +class HTMLSelectElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_form.h> +%End + + +public: + HTMLSelectElement (); + HTMLSelectElement (const DOM::HTMLSelectElement&); + HTMLSelectElement (const DOM::Node&); + +protected: +//ig HTMLSelectElement (HTMLSelectElementImpl*); + +public: + DOM::DOMString type () const; + long selectedIndex () const; + void setSelectedIndex (long); + DOM::DOMString value () const; + void setValue (const DOM::DOMString&); + long length () const; + DOM::HTMLFormElement form () const; + DOM::HTMLCollection options () const; + bool disabled () const; + void setDisabled (bool); + bool multiple () const; + void setMultiple (bool); + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + long size () const; + void setSize (long); + long tabIndex () const; + void setTabIndex (long); + void add (const DOM::HTMLElement&, const DOM::HTMLElement&); + void remove (long); + void blur (); + void focus (); + +}; // class HTMLSelectElement + + +class HTMLTextAreaElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_form.h> +%End + + +public: + HTMLTextAreaElement (); + HTMLTextAreaElement (const DOM::HTMLTextAreaElement&); + HTMLTextAreaElement (const DOM::Node&); + +protected: +//ig HTMLTextAreaElement (HTMLTextAreaElementImpl*); + +public: + DOM::DOMString defaultValue () const; + void setDefaultValue (const DOM::DOMString&); + DOM::HTMLFormElement form () const; + DOM::DOMString accessKey () const; + void setAccessKey (const DOM::DOMString&); + long cols () const; + void setCols (long); + bool disabled () const; + void setDisabled (bool); + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + bool readOnly () const; + void setReadOnly (bool); + long rows () const; + void setRows (long); + long tabIndex () const; + void setTabIndex (long); + DOM::DOMString type () const; + DOM::DOMString value () const; + void setValue (const DOM::DOMString&); + void blur (); + void focus (); + void select (); + +%If ( KDE_3_5_2 - ) + long selectionStart (); + void setSelectionStart (long); + long selectionEnd (); + void setSelectionEnd (long); + void setSelectionRange (long, long); + long textLength (); +%End + + +}; // class HTMLTextAreaElement + + +class HTMLOptionElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_form.h> +%End + + +public: + HTMLOptionElement (); + HTMLOptionElement (const DOM::HTMLOptionElement&); + HTMLOptionElement (const DOM::Node&); + +protected: +//ig HTMLOptionElement (HTMLOptionElementImpl*); + +public: + DOM::HTMLFormElement form () const; + bool defaultSelected () const; + void setDefaultSelected (bool); + DOM::DOMString text () const; + long index () const; + void setIndex (long); + bool disabled () const; + void setDisabled (bool); + DOM::DOMString label () const; + void setLabel (const DOM::DOMString&); + bool selected () const; + void setSelected (bool); + DOM::DOMString value () const; + void setValue (const DOM::DOMString&); + +}; // class HTMLOptionElement + + +class HTMLIsIndexElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_form.h> +%End + + +public: + HTMLIsIndexElement (); + HTMLIsIndexElement (const DOM::HTMLIsIndexElement&); + HTMLIsIndexElement (const DOM::Node&); + +protected: +//ig HTMLIsIndexElement (HTMLIsIndexElementImpl*); + +public: + DOM::HTMLFormElement form () const; + DOM::DOMString prompt () const; + void setPrompt (const DOM::DOMString&); + +}; // class HTMLIsIndexElement + +}; // namespace DOM + diff --git a/sip/khtml/html_head.sip b/sip/khtml/html_head.sip new file mode 100644 index 0000000..46badd3 --- /dev/null +++ b/sip/khtml/html_head.sip @@ -0,0 +1,203 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 DOM +{ + +class HTMLBaseElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_head.h> +%End + + +public: + HTMLBaseElement (); + HTMLBaseElement (const DOM::HTMLBaseElement&); + HTMLBaseElement (const DOM::Node&); + +protected: +//ig HTMLBaseElement (HTMLBaseElementImpl*); + +public: + DOM::DOMString href () const; + void setHref (const DOM::DOMString&); + DOM::DOMString target () const; + void setTarget (const DOM::DOMString&); + +}; // class HTMLBaseElement + + +class HTMLLinkElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_head.h> +%End + + +public: + HTMLLinkElement (); + HTMLLinkElement (const DOM::HTMLLinkElement&); + HTMLLinkElement (const DOM::Node&); + +protected: +//ig HTMLLinkElement (HTMLLinkElementImpl*); + +public: + bool disabled () const; + void setDisabled (bool); + DOM::DOMString charset () const; + void setCharset (const DOM::DOMString&); + DOM::DOMString href () const; + void setHref (const DOM::DOMString&); + DOM::DOMString hreflang () const; + void setHreflang (const DOM::DOMString&); + DOM::DOMString media () const; + void setMedia (const DOM::DOMString&); + DOM::DOMString rel () const; + void setRel (const DOM::DOMString&); + DOM::DOMString rev () const; + void setRev (const DOM::DOMString&); + DOM::DOMString target () const; + void setTarget (const DOM::DOMString&); + DOM::DOMString type () const; + void setType (const DOM::DOMString&); + DOM::StyleSheet sheet () const; + +}; // class HTMLLinkElement + + +class HTMLMetaElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_head.h> +%End + + +public: + HTMLMetaElement (); + HTMLMetaElement (const DOM::HTMLMetaElement&); + HTMLMetaElement (const DOM::Node&); + +protected: +//ig HTMLMetaElement (HTMLMetaElementImpl*); + +public: + DOM::DOMString content () const; + void setContent (const DOM::DOMString&); + DOM::DOMString httpEquiv () const; + void setHttpEquiv (const DOM::DOMString&); + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + DOM::DOMString scheme () const; + void setScheme (const DOM::DOMString&); + +}; // class HTMLMetaElement + + +class HTMLScriptElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_head.h> +%End + + +public: + HTMLScriptElement (); + HTMLScriptElement (const DOM::HTMLScriptElement&); + HTMLScriptElement (const DOM::Node&); + +protected: +//ig HTMLScriptElement (HTMLScriptElementImpl*); + +public: + DOM::DOMString text () const; + void setText (const DOM::DOMString&); + DOM::DOMString htmlFor () const; + void setHtmlFor (const DOM::DOMString&); + DOM::DOMString event () const; + void setEvent (const DOM::DOMString&); + DOM::DOMString charset () const; + void setCharset (const DOM::DOMString&); + bool defer () const; + void setDefer (bool); + DOM::DOMString src () const; + void setSrc (const DOM::DOMString&); + DOM::DOMString type () const; + void setType (const DOM::DOMString&); + +}; // class HTMLScriptElement + + +class HTMLStyleElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_head.h> +%End + + +public: + HTMLStyleElement (); + HTMLStyleElement (const DOM::HTMLStyleElement&); + HTMLStyleElement (const DOM::Node&); + +protected: +//ig HTMLStyleElement (HTMLStyleElementImpl*); + +public: + bool disabled () const; + void setDisabled (bool); + DOM::DOMString media () const; + void setMedia (const DOM::DOMString&); + DOM::DOMString type () const; + void setType (const DOM::DOMString&); + DOM::StyleSheet sheet () const; + +}; // class HTMLStyleElement + + +class HTMLTitleElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_head.h> +%End + + +public: + HTMLTitleElement (); + HTMLTitleElement (const DOM::HTMLTitleElement&); + HTMLTitleElement (const DOM::Node&); + +protected: +//ig HTMLTitleElement (HTMLTitleElementImpl*); + +public: + DOM::DOMString text () const; + void setText (const DOM::DOMString&); + +}; // class HTMLTitleElement + +}; // namespace DOM + diff --git a/sip/khtml/html_image.sip b/sip/khtml/html_image.sip new file mode 100644 index 0000000..5db67b1 --- /dev/null +++ b/sip/khtml/html_image.sip @@ -0,0 +1,144 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 DOM +{ + +class HTMLAreaElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_image.h> +%End + + +public: + HTMLAreaElement (); + HTMLAreaElement (const DOM::HTMLAreaElement&); + HTMLAreaElement (const DOM::Node&); + +protected: +//ig HTMLAreaElement (HTMLAreaElementImpl*); + +public: + DOM::DOMString accessKey () const; + void setAccessKey (const DOM::DOMString&); + DOM::DOMString alt () const; + void setAlt (const DOM::DOMString&); + DOM::DOMString coords () const; + void setCoords (const DOM::DOMString&); + DOM::DOMString href () const; + void setHref (const DOM::DOMString&); + bool noHref () const; + void setNoHref (bool); + DOM::DOMString shape () const; + void setShape (const DOM::DOMString&); + long tabIndex () const; + void setTabIndex (long); + DOM::DOMString target () const; + void setTarget (const DOM::DOMString&); + +}; // class HTMLAreaElement + + +class HTMLImageElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_image.h> +%End + + +public: + HTMLImageElement (); + HTMLImageElement (const DOM::HTMLImageElement&); + HTMLImageElement (const DOM::Node&); + +protected: +//ig HTMLImageElement (HTMLImageElementImpl*); + +public: + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + DOM::DOMString alt () const; + void setAlt (const DOM::DOMString&); + +%If ( KDE_3_1_0 - ) + DOM::DOMString getBorder () const; + void setBorder (const DOM::DOMString&); +%End + + long border () const; + void setBorder (long); + long height () const; + void setHeight (long); + long hspace () const; + void setHspace (long); + bool isMap () const; + void setIsMap (bool); + DOM::DOMString longDesc () const; + void setLongDesc (const DOM::DOMString&); + DOM::DOMString src () const; + void setSrc (const DOM::DOMString&); + DOM::DOMString useMap () const; + void setUseMap (const DOM::DOMString&); + long vspace () const; + void setVspace (long); + long width () const; + void setWidth (long); + +%If ( KDE_3_2_0 - ) + long x () const; + long y () const; +%End + + +}; // class HTMLImageElement + + +class HTMLMapElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_image.h> +%End + + +public: + HTMLMapElement (); + HTMLMapElement (const DOM::HTMLMapElement&); + HTMLMapElement (const DOM::Node&); + +protected: +//ig HTMLMapElement (HTMLMapElementImpl*); + +public: + DOM::HTMLCollection areas () const; + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + +}; // class HTMLMapElement + +}; // namespace DOM + diff --git a/sip/khtml/html_inline.sip b/sip/khtml/html_inline.sip new file mode 100644 index 0000000..bd3b1b0 --- /dev/null +++ b/sip/khtml/html_inline.sip @@ -0,0 +1,169 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 DOM +{ + +class HTMLAnchorElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_inline.h> +%End + + +public: + HTMLAnchorElement (); + HTMLAnchorElement (const DOM::HTMLAnchorElement&); + HTMLAnchorElement (const DOM::Node&); + +protected: +//ig HTMLAnchorElement (HTMLAnchorElementImpl*); + +public: + DOM::DOMString accessKey () const; + void setAccessKey (const DOM::DOMString&); + DOM::DOMString charset () const; + void setCharset (const DOM::DOMString&); + DOM::DOMString coords () const; + void setCoords (const DOM::DOMString&); + DOM::DOMString href () const; + void setHref (const DOM::DOMString&); + DOM::DOMString hreflang () const; + void setHreflang (const DOM::DOMString&); + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + DOM::DOMString rel () const; + void setRel (const DOM::DOMString&); + DOM::DOMString rev () const; + void setRev (const DOM::DOMString&); + DOM::DOMString shape () const; + void setShape (const DOM::DOMString&); + long tabIndex () const; + void setTabIndex (long); + DOM::DOMString target () const; + void setTarget (const DOM::DOMString&); + DOM::DOMString type () const; + void setType (const DOM::DOMString&); + void blur (); + void focus (); + +}; // class HTMLAnchorElement + + +class HTMLBRElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_inline.h> +%End + + +public: + HTMLBRElement (); + HTMLBRElement (const DOM::HTMLBRElement&); + HTMLBRElement (const DOM::Node&); + +protected: +//ig HTMLBRElement (HTMLBRElementImpl*); + +public: + DOM::DOMString clear () const; + void setClear (const DOM::DOMString&); + +}; // class HTMLBRElement + + +class HTMLFontElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_inline.h> +%End + + +public: + HTMLFontElement (); + HTMLFontElement (const DOM::HTMLFontElement&); + HTMLFontElement (const DOM::Node&); + +protected: +//ig HTMLFontElement (HTMLFontElementImpl*); + +public: + DOM::DOMString color () const; + void setColor (const DOM::DOMString&); + DOM::DOMString face () const; + void setFace (const DOM::DOMString&); + DOM::DOMString size () const; + void setSize (const DOM::DOMString&); + +}; // class HTMLFontElement + + +class HTMLModElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_inline.h> +%End + + +public: + HTMLModElement (); + HTMLModElement (const DOM::HTMLModElement&); + HTMLModElement (const DOM::Node&); + +protected: +//ig HTMLModElement (HTMLElementImpl*); + +public: + DOM::DOMString cite () const; + void setCite (const DOM::DOMString&); + DOM::DOMString dateTime () const; + void setDateTime (const DOM::DOMString&); + +}; // class HTMLModElement + + +class HTMLQuoteElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_inline.h> +%End + + +public: + HTMLQuoteElement (); + HTMLQuoteElement (const DOM::HTMLQuoteElement&); + HTMLQuoteElement (const DOM::Node&); + +protected: +//ig HTMLQuoteElement (HTMLGenericElementImpl*); + +public: + DOM::DOMString cite () const; + void setCite (const DOM::DOMString&); + +}; // class HTMLQuoteElement + +}; // namespace DOM + diff --git a/sip/khtml/html_list.sip b/sip/khtml/html_list.sip new file mode 100644 index 0000000..fa6cd0e --- /dev/null +++ b/sip/khtml/html_list.sip @@ -0,0 +1,169 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 DOM +{ + +class HTMLDListElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_list.h> +%End + + +public: + HTMLDListElement (); + HTMLDListElement (const DOM::HTMLDListElement&); + HTMLDListElement (const DOM::Node&); + +protected: +//ig HTMLDListElement (HTMLDListElementImpl*); + +public: + bool compact () const; + void setCompact (bool); + +}; // class HTMLDListElement + + +class HTMLDirectoryElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_list.h> +%End + + +public: + HTMLDirectoryElement (); + HTMLDirectoryElement (const DOM::HTMLDirectoryElement&); + HTMLDirectoryElement (const DOM::Node&); + +protected: +//ig HTMLDirectoryElement (HTMLDirectoryElementImpl*); + +public: + bool compact () const; + void setCompact (bool); + +}; // class HTMLDirectoryElement + + +class HTMLLIElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_list.h> +%End + + +public: + HTMLLIElement (); + HTMLLIElement (const DOM::HTMLLIElement&); + HTMLLIElement (const DOM::Node&); + +protected: +//ig HTMLLIElement (HTMLLIElementImpl*); + +public: + DOM::DOMString type () const; + void setType (const DOM::DOMString&); + long value () const; + void setValue (long); + +}; // class HTMLLIElement + + +class HTMLMenuElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_list.h> +%End + + +public: + HTMLMenuElement (); + HTMLMenuElement (const DOM::HTMLMenuElement&); + HTMLMenuElement (const DOM::Node&); + +protected: +//ig HTMLMenuElement (HTMLMenuElementImpl*); + +public: + bool compact () const; + void setCompact (bool); + +}; // class HTMLMenuElement + + +class HTMLOListElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_list.h> +%End + + +public: + HTMLOListElement (); + HTMLOListElement (const DOM::HTMLOListElement&); + HTMLOListElement (const DOM::Node&); + +protected: +//ig HTMLOListElement (HTMLOListElementImpl*); + +public: + bool compact () const; + void setCompact (bool); + long start () const; + void setStart (long); + DOM::DOMString type () const; + void setType (const DOM::DOMString&); + +}; // class HTMLOListElement + + +class HTMLUListElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_list.h> +%End + + +public: + HTMLUListElement (); + HTMLUListElement (const DOM::HTMLUListElement&); + HTMLUListElement (const DOM::Node&); + +protected: +//ig HTMLUListElement (HTMLUListElementImpl*); + +public: + bool compact () const; + void setCompact (bool); + DOM::DOMString type () const; + void setType (const DOM::DOMString&); + +}; // class HTMLUListElement + +}; // namespace DOM + diff --git a/sip/khtml/html_misc.sip b/sip/khtml/html_misc.sip new file mode 100644 index 0000000..291a491 --- /dev/null +++ b/sip/khtml/html_misc.sip @@ -0,0 +1,97 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 DOM +{ + +class HTMLBaseFontElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_misc.h> +%End + + +public: + HTMLBaseFontElement (); + HTMLBaseFontElement (const DOM::HTMLBaseFontElement&); + HTMLBaseFontElement (const DOM::Node&); + +protected: +//ig HTMLBaseFontElement (HTMLBaseFontElementImpl*); + +public: + DOM::DOMString color () const; + void setColor (const DOM::DOMString&); + DOM::DOMString face () const; + void setFace (const DOM::DOMString&); + +%If ( KDE_3_1_0 - ) + long getSize () const; + void setSize (long); +%End + + DOM::DOMString size () const; + void setSize (const DOM::DOMString&); + +}; // class HTMLBaseFontElement + + +class HTMLCollection +{ +%TypeHeaderCode +#include <html_misc.h> +%End + + +public: + HTMLCollection (); + HTMLCollection (const DOM::HTMLCollection&); + +protected: +//ig HTMLCollection (NodeImpl*, int); + +public: + ulong length () const; + DOM::Node item (ulong) const; + DOM::Node namedItem (const DOM::DOMString&) const; + DOM::Node base () const; +//ig HTMLCollectionImpl* handle () const; + bool isNull () const; + DOM::Node firstItem () const; + DOM::Node nextItem () const; + DOM::Node nextNamedItem (const DOM::DOMString&) const; + +protected: + +}; // class HTMLCollection + + +//ig class HTMLFormCollection : DOM::HTMLCollection; + + +//ig class HTMLMappedNameCollection : DOM::HTMLCollection; + +}; // namespace DOM + diff --git a/sip/khtml/html_object.sip b/sip/khtml/html_object.sip new file mode 100644 index 0000000..94b027d --- /dev/null +++ b/sip/khtml/html_object.sip @@ -0,0 +1,179 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 DOM +{ + +class HTMLAppletElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_object.h> +%End + + +public: + HTMLAppletElement (); + HTMLAppletElement (const DOM::HTMLAppletElement&); + HTMLAppletElement (const DOM::Node&); + +protected: +//ig HTMLAppletElement (HTMLAppletElementImpl*); + +public: + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + DOM::DOMString alt () const; + void setAlt (const DOM::DOMString&); + DOM::DOMString archive () const; + void setArchive (const DOM::DOMString&); + DOM::DOMString code () const; + void setCode (const DOM::DOMString&); + DOM::DOMString codeBase () const; + void setCodeBase (const DOM::DOMString&); + DOM::DOMString height () const; + void setHeight (const DOM::DOMString&); + +%If ( KDE_3_1_0 - ) + long getHspace () const; + void setHspace (long); +%End + + DOM::DOMString hspace () const; + void setHspace (const DOM::DOMString&); + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + DOM::DOMString object () const; + void setObject (const DOM::DOMString&); + +%If ( KDE_3_1_0 - ) + long getVspace () const; + void setVspace (long); +%End + + DOM::DOMString vspace () const; + void setVspace (const DOM::DOMString&); + DOM::DOMString width () const; + void setWidth (const DOM::DOMString&); + +}; // class HTMLAppletElement + + +class HTMLObjectElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_object.h> +%End + + +public: + HTMLObjectElement (); + HTMLObjectElement (const DOM::HTMLObjectElement&); + HTMLObjectElement (const DOM::Node&); + +protected: +//ig HTMLObjectElement (HTMLObjectElementImpl*); + +public: + DOM::HTMLFormElement form () const; + DOM::DOMString code () const; + void setCode (const DOM::DOMString&); + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + DOM::DOMString archive () const; + void setArchive (const DOM::DOMString&); + DOM::DOMString border () const; + void setBorder (const DOM::DOMString&); + DOM::DOMString codeBase () const; + void setCodeBase (const DOM::DOMString&); + DOM::DOMString codeType () const; + void setCodeType (const DOM::DOMString&); + DOM::DOMString data () const; + void setData (const DOM::DOMString&); + bool declare () const; + void setDeclare (bool); + DOM::DOMString height () const; + void setHeight (const DOM::DOMString&); + +%If ( KDE_3_1_0 - ) + long getHspace () const; + void setHspace (long); +%End + + DOM::DOMString hspace () const; + void setHspace (const DOM::DOMString&); + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + DOM::DOMString standby () const; + void setStandby (const DOM::DOMString&); + long tabIndex () const; + void setTabIndex (long); + DOM::DOMString type () const; + void setType (const DOM::DOMString&); + DOM::DOMString useMap () const; + void setUseMap (const DOM::DOMString&); + +%If ( KDE_3_1_0 - ) + long getVspace () const; + void setVspace (long); +%End + + DOM::DOMString vspace () const; + void setVspace (const DOM::DOMString&); + DOM::DOMString width () const; + void setWidth (const DOM::DOMString&); + DOM::Document contentDocument () const; + +}; // class HTMLObjectElement + + +class HTMLParamElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_object.h> +%End + + +public: + HTMLParamElement (); + HTMLParamElement (const DOM::HTMLParamElement&); + HTMLParamElement (const DOM::Node&); + +protected: +//ig HTMLParamElement (HTMLParamElementImpl*); + +public: + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + DOM::DOMString type () const; + void setType (const DOM::DOMString&); + DOM::DOMString value () const; + void setValue (const DOM::DOMString&); + DOM::DOMString valueType () const; + void setValueType (const DOM::DOMString&); + +}; // class HTMLParamElement + +}; // namespace DOM + diff --git a/sip/khtml/html_table.sip b/sip/khtml/html_table.sip new file mode 100644 index 0000000..3ae6ed4 --- /dev/null +++ b/sip/khtml/html_table.sip @@ -0,0 +1,256 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 DOM +{ + +class HTMLTableCaptionElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_table.h> +%End + + +public: + HTMLTableCaptionElement (); + HTMLTableCaptionElement (const DOM::HTMLTableCaptionElement&); + HTMLTableCaptionElement (const DOM::Node&); + +protected: +//ig HTMLTableCaptionElement (HTMLTableCaptionElementImpl*); + +public: + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + +}; // class HTMLTableCaptionElement + + +class HTMLTableCellElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_table.h> +%End + + +public: + HTMLTableCellElement (); + HTMLTableCellElement (const DOM::HTMLTableCellElement&); + HTMLTableCellElement (const DOM::Node&); + +protected: +//ig HTMLTableCellElement (HTMLTableCellElementImpl*); + +public: + long cellIndex () const; + void setCellIndex (long); + DOM::DOMString abbr () const; + void setAbbr (const DOM::DOMString&); + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + DOM::DOMString axis () const; + void setAxis (const DOM::DOMString&); + DOM::DOMString bgColor () const; + void setBgColor (const DOM::DOMString&); + DOM::DOMString ch () const; + void setCh (const DOM::DOMString&); + DOM::DOMString chOff () const; + void setChOff (const DOM::DOMString&); + long colSpan () const; + void setColSpan (long); + DOM::DOMString headers () const; + void setHeaders (const DOM::DOMString&); + DOM::DOMString height () const; + void setHeight (const DOM::DOMString&); + bool noWrap () const; + void setNoWrap (bool); + long rowSpan () const; + void setRowSpan (long); + DOM::DOMString scope () const; + void setScope (const DOM::DOMString&); + DOM::DOMString vAlign () const; + void setVAlign (const DOM::DOMString&); + DOM::DOMString width () const; + void setWidth (const DOM::DOMString&); + +}; // class HTMLTableCellElement + + +class HTMLTableColElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_table.h> +%End + + +public: + HTMLTableColElement (); + HTMLTableColElement (const DOM::HTMLTableColElement&); + HTMLTableColElement (const DOM::Node&); + +protected: +//ig HTMLTableColElement (HTMLTableColElementImpl*); + +public: + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + DOM::DOMString ch () const; + void setCh (const DOM::DOMString&); + DOM::DOMString chOff () const; + void setChOff (const DOM::DOMString&); + long span () const; + void setSpan (long); + DOM::DOMString vAlign () const; + void setVAlign (const DOM::DOMString&); + DOM::DOMString width () const; + void setWidth (const DOM::DOMString&); + +}; // class HTMLTableColElement + + +class HTMLTableElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_table.h> +%End + + +public: + HTMLTableElement (); + HTMLTableElement (const DOM::HTMLTableElement&); + HTMLTableElement (const DOM::Node&); + +protected: +//ig HTMLTableElement (HTMLTableElementImpl*); + +public: + DOM::HTMLTableCaptionElement caption () const; + void setCaption (const DOM::HTMLTableCaptionElement&); + DOM::HTMLTableSectionElement tHead () const; + void setTHead (const DOM::HTMLTableSectionElement&); + DOM::HTMLTableSectionElement tFoot () const; + void setTFoot (const DOM::HTMLTableSectionElement&); + DOM::HTMLCollection rows () const; + DOM::HTMLCollection tBodies () const; + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + DOM::DOMString bgColor () const; + void setBgColor (const DOM::DOMString&); + DOM::DOMString border () const; + void setBorder (const DOM::DOMString&); + DOM::DOMString cellPadding () const; + void setCellPadding (const DOM::DOMString&); + DOM::DOMString cellSpacing () const; + void setCellSpacing (const DOM::DOMString&); + DOM::DOMString frame () const; + void setFrame (const DOM::DOMString&); + DOM::DOMString rules () const; + void setRules (const DOM::DOMString&); + DOM::DOMString summary () const; + void setSummary (const DOM::DOMString&); + DOM::DOMString width () const; + void setWidth (const DOM::DOMString&); + DOM::HTMLElement createTHead (); + void deleteTHead (); + DOM::HTMLElement createTFoot (); + void deleteTFoot (); + DOM::HTMLElement createCaption (); + void deleteCaption (); + DOM::HTMLElement insertRow (long); + void deleteRow (long); + +}; // class HTMLTableElement + + +class HTMLTableRowElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_table.h> +%End + + +public: + HTMLTableRowElement (); + HTMLTableRowElement (const DOM::HTMLTableRowElement&); + HTMLTableRowElement (const DOM::Node&); + +protected: +//ig HTMLTableRowElement (HTMLTableRowElementImpl*); + +public: + long rowIndex () const; + void setRowIndex (long); + long sectionRowIndex () const; + void setSectionRowIndex (long); + DOM::HTMLCollection cells () const; + void setCells (const DOM::HTMLCollection&); + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + DOM::DOMString bgColor () const; + void setBgColor (const DOM::DOMString&); + DOM::DOMString ch () const; + void setCh (const DOM::DOMString&); + DOM::DOMString chOff () const; + void setChOff (const DOM::DOMString&); + DOM::DOMString vAlign () const; + void setVAlign (const DOM::DOMString&); + DOM::HTMLElement insertCell (long); + void deleteCell (long); + +}; // class HTMLTableRowElement + + +class HTMLTableSectionElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include <html_table.h> +%End + + +public: + HTMLTableSectionElement (); + HTMLTableSectionElement (const DOM::HTMLTableSectionElement&); + HTMLTableSectionElement (const DOM::Node&); + +protected: +//ig HTMLTableSectionElement (HTMLTableSectionElementImpl*); + +public: + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + DOM::DOMString ch () const; + void setCh (const DOM::DOMString&); + DOM::DOMString chOff () const; + void setChOff (const DOM::DOMString&); + DOM::DOMString vAlign () const; + void setVAlign (const DOM::DOMString&); + DOM::HTMLCollection rows () const; + DOM::HTMLElement insertRow (long); + void deleteRow (long); + +}; // class HTMLTableSectionElement + +}; // namespace DOM + diff --git a/sip/khtml/khtml_part.sip b/sip/khtml/khtml_part.sip new file mode 100644 index 0000000..be24216 --- /dev/null +++ b/sip/khtml/khtml_part.sip @@ -0,0 +1,282 @@ +// +// Copyright 2004 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml 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 KHTMLPart : KParts::ReadOnlyPart +{ +%TypeHeaderCode +#include <khtml_part.h> +%End + + +public: + + enum GUIProfile + { + DefaultGUI, + BrowserViewGUI + }; + + KHTMLPart (QWidget* = 0, const char* = 0, QObject* /TransferThis/ = 0, const char* = 0, KHTMLPart::GUIProfile = DefaultGUI ); + KHTMLPart (KHTMLView*, QObject* /TransferThis/ = 0, const char* = 0, KHTMLPart::GUIProfile = DefaultGUI ); + virtual bool openURL (const KURL&); + virtual bool closeURL (); + virtual void showError (KIO::Job*); + DOM::HTMLDocument htmlDocument () const; + DOM::Document document () const; + DOM::Node activeNode () const; + KParts::BrowserExtension* browserExtension () const; + +%If ( KDE_3_1_0 - ) +//ig KParts::LiveConnectExtension* liveConnectExtension (const khtml::RenderPart*) const; +%End + + KHTMLView* view () const; + void setJScriptEnabled (bool); + bool jScriptEnabled () const; + +%If ( KDE_3_2_0 - ) +//ig KJS::Interpreter* jScriptInterpreter (); + void setStatusMessagesEnabled (bool); + bool statusMessagesEnabled () const; +%End + + void setMetaRefreshEnabled (bool); + bool metaRefreshEnabled () const; + QVariant executeScript (const DOM::Node&, const QString&); + void setDNDEnabled (bool); + bool dndEnabled () const; + void setJavaEnabled (bool); + bool javaEnabled () const; +//ig KJavaAppletContext* javaContext (); +//ig KJavaAppletContext* createJavaContext (); + void setPluginsEnabled (bool); + bool pluginsEnabled () const; + void setAutoloadImages (bool); + bool autoloadImages () const; + void setOnlyLocalReferences (bool); + bool onlyLocalReferences () const; + +%If ( KDE_3_2_0 - ) + bool isCaretMode () const; + bool isEditable () const; + void setCaretPosition (DOM::Node, long, bool = 0); + + enum CaretDisplayPolicy + { + CaretVisible, + CaretInvisible, + CaretBlink + }; + + KHTMLPart::CaretDisplayPolicy caretDisplayPolicyNonFocused () const; + void setCaretDisplayPolicyNonFocused (KHTMLPart::CaretDisplayPolicy); +%End + + void enableJScript (bool); + void enableJava (bool); + void enablePlugins (bool); + void autoloadImages (bool); + void enableMetaRefresh (bool); + bool setCharset (const QString&, bool = 0); + KURL baseURL () const; + QString baseTarget () const; + KURL backgroundURL () const; + void scheduleRedirection (int, const QString&, bool = 1); + virtual void begin (const KURL& = KURL (), int = 0, int = 0); + virtual void write (const char*, int = -1); + virtual void write (const QString&); + virtual void end (); + void paint (QPainter*, const QRect&, int = 0, bool* = 0); + bool setEncoding (const QString&, bool = 0); + QString encoding (); + void setUserStyleSheet (const KURL&); + void setUserStyleSheet (const QString&); + +public: + void setStandardFont (const QString&); + void setFixedFont (const QString&); + bool gotoAnchor (const QString&); + +%If ( KDE_3_2_0 - ) + bool nextAnchor (); + bool prevAnchor (); +%End + + void setURLCursor (const QCursor&); + QCursor urlCursor () const; + +%If ( KDE_3_3_0 - ) + + enum FindOptions + { + FindLinksOnly, + FindNoPopups + }; + + void findText (); + void findText (const QString&, long, QWidget* /Transfer/ = 0, KFindDialog* = 0); +%End + + void findTextBegin (); + bool findTextNext (const QString&, bool, bool, bool); + +%If ( KDE_3_3_0 - ) + bool findTextNext (); +%End + + void setZoomFactor (int); + int zoomFactor () const; + virtual QString selectedText () const; + DOM::Range selection () const; + +%If ( KDE_3_2_0 - ) + void selection (DOM::Node&, long&, DOM::Node&, long&) const; +%End + + void setSelection (const DOM::Range&); + bool hasSelection () const; + void selectAll (); + void show (); + void hide (); + KParts::PartManager* partManager (); + virtual void saveState (QDataStream&); + virtual void restoreState (QDataStream&); + DOM::Node nodeUnderMouse () const; + const KHTMLSettings* settings () const; + KHTMLPart* parentPart (); + QStringList frameNames () const; + QPtrList<KParts::ReadOnlyPart> frames () const; + KHTMLPart* findFrame (const QString&); + KParts::ReadOnlyPart* currentFrame () const; + bool frameExists (const QString&); + void setJSStatusBarText (const QString&); + void setJSDefaultStatusBarText (const QString&); + QString jsStatusBarText () const; + QString jsDefaultStatusBarText () const; + QString referrer () const; + +%If ( KDE_3_1_3 - ) + QString pageReferrer () const; +%End + + QString lastModified () const; + void preloadStyleSheet (const QString&, const QString&); + void preloadScript (const QString&, const QString&); + bool restored () const; + +%If ( KDE_3_2_0 - ) + + enum FormNotification + { + NoNotification = 0, + Before, + Only, + Unused = 255 + }; + + void setFormNotification (KHTMLPart::FormNotification); + KHTMLPart::FormNotification formNotification () const; + KURL toplevelURL (); + +%If ( KDE_3_3_0 - ) + bool isModified () const; +%End + +%End + + +signals: + void onURL (const QString&); + void popupMenu (const QString&, const QPoint&); + void selectionChanged (); + void nodeActivated (const DOM::Node&); + +%If ( KDE_3_1_0 - ) + void docCreated (); + +%If ( KDE_3_2_0 - ) + void caretPositionChanged (const DOM::Node&, long); + void formSubmitNotification (const char*, const QString&, const QByteArray&, const QString&, const QString&, const QString&); +%End + +%End + + +protected: + KURL completeURL (const QString&); + void htmlError (int, const QString&, const KURL&); + virtual void customEvent (QCustomEvent*); +//ig virtual void khtmlMousePressEvent (khtml::MousePressEvent*); +//ig virtual void khtmlMouseDoubleClickEvent (khtml::MouseDoubleClickEvent*); +//ig virtual void khtmlMouseMoveEvent (khtml::MouseMoveEvent*); +//ig virtual void khtmlMouseReleaseEvent (khtml::MouseReleaseEvent*); +//ig virtual void khtmlDrawContentsEvent (khtml::DrawContentsEvent*); + virtual void guiActivateEvent (KParts::GUIActivateEvent*); + virtual bool openFile (); + virtual void urlSelected (const QString&, int, int, const QString&, KParts::URLArgs = KParts ::URLArgs ()); + virtual KParts::ReadOnlyPart* createPart (QWidget*, const char*, QObject* /Transfer/, const char*, const QString&, QString&, QStringList&, const QStringList&); + +%If ( KDE_3_1_0 - ) + bool pluginPageQuestionAsked (const QString&) const; + void setPluginPageQuestionAsked (const QString&); + +%If ( KDE_3_2_0 - ) +//ig void setPageSecurity (KHTMLPart::PageSecurity); + virtual bool doOpenStream (const QString&); + virtual bool doWriteStream (const QByteArray&); + virtual bool doCloseStream (); +%End + +%End + + +public slots: + void setActiveNode (const DOM::Node&); + void stopAnimations (); + QCString dcopObjectId () const; + +%If ( KDE_3_2_0 - ) + QVariant executeScript (const QString&); + void setCaretMode (bool); + void setEditable (bool); + void setCaretVisible (bool); + void submitFormProxy (const char*, const QString&, const QByteArray&, const QString&, const QString& = QString ::null , const QString& = QString ::null ); +%End + +public: + +%If ( - KDE_3_2_0 ) + QVariant executeScript (const QString&); +%End + +//force + +private: + void setStatusBarText (const QString&, int); +//end + +}; // class KHTMLPart + diff --git a/sip/khtml/khtml_part.sip.323 b/sip/khtml/khtml_part.sip.323 new file mode 100644 index 0000000..1173eef --- /dev/null +++ b/sip/khtml/khtml_part.sip.323 @@ -0,0 +1,272 @@ +// +// Copyright 2004 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml 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 KHTMLPart : KParts::ReadOnlyPart +{ +%TypeHeaderCode +#include <khtml_part.h> +%End + + +public: + + enum GUIProfile + { + DefaultGUI, + BrowserViewGUI + }; + + KHTMLPart (QWidget* = 0, const char* = 0, QObject* /TransferThis/ = 0, const char* = 0, KHTMLPart::GUIProfile = DefaultGUI ); + KHTMLPart (KHTMLView*, QObject* /TransferThis/ = 0, const char* = 0, KHTMLPart::GUIProfile = DefaultGUI ); + virtual bool openURL (const KURL&); + virtual bool closeURL (); + virtual void showError (KIO::Job*); + DOM::HTMLDocument htmlDocument () const; + DOM::Document document () const; + DOM::Node activeNode () const; + KParts::BrowserExtension* browserExtension () const; + +%If ( KDE_3_1_0 - ) +//ig KParts::LiveConnectExtension* liveConnectExtension (const khtml::RenderPart*) const; +%End + + KHTMLView* view () const; + void setJScriptEnabled (bool); + bool jScriptEnabled () const; + +%If ( KDE_3_2_0 - ) +//ig KJS::Interpreter* jScriptInterpreter (); + void setStatusMessagesEnabled (bool); + bool statusMessagesEnabled () const; +%End + + void setMetaRefreshEnabled (bool); + bool metaRefreshEnabled () const; + QVariant executeScript (const DOM::Node&, const QString&); + void setDNDEnabled (bool); + bool dndEnabled () const; + void setJavaEnabled (bool); + bool javaEnabled () const; +//ig KJavaAppletContext* javaContext (); +//ig KJavaAppletContext* createJavaContext (); + void setPluginsEnabled (bool); + bool pluginsEnabled () const; + void setAutoloadImages (bool); + bool autoloadImages () const; + void setOnlyLocalReferences (bool); + bool onlyLocalReferences () const; + +%If ( KDE_3_2_0 - ) + bool isCaretMode () const; + bool isEditable () const; + void setCaretPosition (DOM::Node, long, bool = 0); + + enum CaretDisplayPolicy + { + CaretVisible, + CaretInvisible, + CaretBlink + }; + + KHTMLPart::CaretDisplayPolicy caretDisplayPolicyNonFocused () const; + void setCaretDisplayPolicyNonFocused (KHTMLPart::CaretDisplayPolicy); +%End + + void enableJScript (bool); + void enableJava (bool); + void enablePlugins (bool); + void autoloadImages (bool); + void enableMetaRefresh (bool); + bool setCharset (const QString&, bool = 0); + KURL baseURL () const; + QString baseTarget () const; + KURL backgroundURL () const; + void scheduleRedirection (int, const QString&, bool = 1); + virtual void begin (const KURL& = KURL (), int = 0, int = 0); + virtual void write (const char*, int = -1); + virtual void write (const QString&); + virtual void end (); + void paint (QPainter*, const QRect&, int = 0, bool* = 0); + bool setEncoding (const QString&, bool = 0); + QString encoding (); + void setUserStyleSheet (const KURL&); + void setUserStyleSheet (const QString&); + +public: + void setStandardFont (const QString&); + void setFixedFont (const QString&); + bool gotoAnchor (const QString&); + +%If ( KDE_3_2_0 - ) + bool nextAnchor (); + bool prevAnchor (); +%End + + void setURLCursor (const QCursor&); + QCursor urlCursor () const; + + + void findTextBegin (); + bool findTextNext (const QString&, bool, bool, bool); + +%If ( KDE_3_3_0 - ) + void findText (); + bool findTextNext (); +%End + + void setZoomFactor (int); + int zoomFactor () const; + virtual QString selectedText () const; + DOM::Range selection () const; + +%If ( KDE_3_2_0 - ) + void selection (DOM::Node&, long&, DOM::Node&, long&) const; +%End + + void setSelection (const DOM::Range&); + bool hasSelection () const; + void selectAll (); + void show (); + void hide (); + KParts::PartManager* partManager (); + virtual void saveState (QDataStream&); + virtual void restoreState (QDataStream&); + DOM::Node nodeUnderMouse () const; + const KHTMLSettings* settings () const; + KHTMLPart* parentPart (); + QStringList frameNames () const; + QPtrList<KParts::ReadOnlyPart> frames () const; + KHTMLPart* findFrame (const QString&); + KParts::ReadOnlyPart* currentFrame () const; + bool frameExists (const QString&); + void setJSStatusBarText (const QString&); + void setJSDefaultStatusBarText (const QString&); + QString jsStatusBarText () const; + QString jsDefaultStatusBarText () const; + QString referrer () const; + +%If ( KDE_3_1_3 - ) + QString pageReferrer () const; +%End + + QString lastModified () const; + void preloadStyleSheet (const QString&, const QString&); + void preloadScript (const QString&, const QString&); + bool restored () const; + +%If ( KDE_3_2_0 - ) + + enum FormNotification + { + NoNotification = 0, + Before, + Only, + Unused = 255 + }; + + void setFormNotification (KHTMLPart::FormNotification); + KHTMLPart::FormNotification formNotification () const; + KURL toplevelURL (); + +%If ( KDE_3_3_0 - ) + bool isModified () const; +%End + +%End + + +signals: + void onURL (const QString&); + void popupMenu (const QString&, const QPoint&); + void selectionChanged (); + void nodeActivated (const DOM::Node&); + +%If ( KDE_3_1_0 - ) + void docCreated (); + +%If ( KDE_3_2_0 - ) + void caretPositionChanged (const DOM::Node&, long); + void formSubmitNotification (const char*, const QString&, const QByteArray&, const QString&, const QString&, const QString&); +%End + +%End + + +protected: + KURL completeURL (const QString&); + void htmlError (int, const QString&, const KURL&); + virtual void customEvent (QCustomEvent*); +//ig virtual void khtmlMousePressEvent (khtml::MousePressEvent*); +//ig virtual void khtmlMouseDoubleClickEvent (khtml::MouseDoubleClickEvent*); +//ig virtual void khtmlMouseMoveEvent (khtml::MouseMoveEvent*); +//ig virtual void khtmlMouseReleaseEvent (khtml::MouseReleaseEvent*); +//ig virtual void khtmlDrawContentsEvent (khtml::DrawContentsEvent*); + virtual void guiActivateEvent (KParts::GUIActivateEvent*); + virtual bool openFile (); + virtual void urlSelected (const QString&, int, int, const QString&, KParts::URLArgs = KParts ::URLArgs ()); + virtual KParts::ReadOnlyPart* createPart (QWidget*, const char*, QObject* /Transfer/, const char*, const QString&, QString&, QStringList&, const QStringList&); + +%If ( KDE_3_1_0 - ) + bool pluginPageQuestionAsked (const QString&) const; + void setPluginPageQuestionAsked (const QString&); + +%If ( KDE_3_2_0 - ) +//ig void setPageSecurity (KHTMLPart::PageSecurity); + virtual bool doOpenStream (const QString&); + virtual bool doWriteStream (const QByteArray&); + virtual bool doCloseStream (); +%End + +%End + + +public slots: + void setActiveNode (const DOM::Node&); + void stopAnimations (); + QCString dcopObjectId () const; + +%If ( KDE_3_2_0 - ) + QVariant executeScript (const QString&); + void setCaretMode (bool); + void setEditable (bool); + void setCaretVisible (bool); + void submitFormProxy (const char*, const QString&, const QByteArray&, const QString&, const QString& = QString ::null , const QString& = QString ::null ); +%End + +public: + +%If ( - KDE_3_2_0 ) + QVariant executeScript (const QString&); +%End + +//force + +private: + void setStatusBarText (const QString&, int); +//end + +}; // class KHTMLPart + diff --git a/sip/khtml/khtml_part.sip.330 b/sip/khtml/khtml_part.sip.330 new file mode 100644 index 0000000..be24216 --- /dev/null +++ b/sip/khtml/khtml_part.sip.330 @@ -0,0 +1,282 @@ +// +// Copyright 2004 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml 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 KHTMLPart : KParts::ReadOnlyPart +{ +%TypeHeaderCode +#include <khtml_part.h> +%End + + +public: + + enum GUIProfile + { + DefaultGUI, + BrowserViewGUI + }; + + KHTMLPart (QWidget* = 0, const char* = 0, QObject* /TransferThis/ = 0, const char* = 0, KHTMLPart::GUIProfile = DefaultGUI ); + KHTMLPart (KHTMLView*, QObject* /TransferThis/ = 0, const char* = 0, KHTMLPart::GUIProfile = DefaultGUI ); + virtual bool openURL (const KURL&); + virtual bool closeURL (); + virtual void showError (KIO::Job*); + DOM::HTMLDocument htmlDocument () const; + DOM::Document document () const; + DOM::Node activeNode () const; + KParts::BrowserExtension* browserExtension () const; + +%If ( KDE_3_1_0 - ) +//ig KParts::LiveConnectExtension* liveConnectExtension (const khtml::RenderPart*) const; +%End + + KHTMLView* view () const; + void setJScriptEnabled (bool); + bool jScriptEnabled () const; + +%If ( KDE_3_2_0 - ) +//ig KJS::Interpreter* jScriptInterpreter (); + void setStatusMessagesEnabled (bool); + bool statusMessagesEnabled () const; +%End + + void setMetaRefreshEnabled (bool); + bool metaRefreshEnabled () const; + QVariant executeScript (const DOM::Node&, const QString&); + void setDNDEnabled (bool); + bool dndEnabled () const; + void setJavaEnabled (bool); + bool javaEnabled () const; +//ig KJavaAppletContext* javaContext (); +//ig KJavaAppletContext* createJavaContext (); + void setPluginsEnabled (bool); + bool pluginsEnabled () const; + void setAutoloadImages (bool); + bool autoloadImages () const; + void setOnlyLocalReferences (bool); + bool onlyLocalReferences () const; + +%If ( KDE_3_2_0 - ) + bool isCaretMode () const; + bool isEditable () const; + void setCaretPosition (DOM::Node, long, bool = 0); + + enum CaretDisplayPolicy + { + CaretVisible, + CaretInvisible, + CaretBlink + }; + + KHTMLPart::CaretDisplayPolicy caretDisplayPolicyNonFocused () const; + void setCaretDisplayPolicyNonFocused (KHTMLPart::CaretDisplayPolicy); +%End + + void enableJScript (bool); + void enableJava (bool); + void enablePlugins (bool); + void autoloadImages (bool); + void enableMetaRefresh (bool); + bool setCharset (const QString&, bool = 0); + KURL baseURL () const; + QString baseTarget () const; + KURL backgroundURL () const; + void scheduleRedirection (int, const QString&, bool = 1); + virtual void begin (const KURL& = KURL (), int = 0, int = 0); + virtual void write (const char*, int = -1); + virtual void write (const QString&); + virtual void end (); + void paint (QPainter*, const QRect&, int = 0, bool* = 0); + bool setEncoding (const QString&, bool = 0); + QString encoding (); + void setUserStyleSheet (const KURL&); + void setUserStyleSheet (const QString&); + +public: + void setStandardFont (const QString&); + void setFixedFont (const QString&); + bool gotoAnchor (const QString&); + +%If ( KDE_3_2_0 - ) + bool nextAnchor (); + bool prevAnchor (); +%End + + void setURLCursor (const QCursor&); + QCursor urlCursor () const; + +%If ( KDE_3_3_0 - ) + + enum FindOptions + { + FindLinksOnly, + FindNoPopups + }; + + void findText (); + void findText (const QString&, long, QWidget* /Transfer/ = 0, KFindDialog* = 0); +%End + + void findTextBegin (); + bool findTextNext (const QString&, bool, bool, bool); + +%If ( KDE_3_3_0 - ) + bool findTextNext (); +%End + + void setZoomFactor (int); + int zoomFactor () const; + virtual QString selectedText () const; + DOM::Range selection () const; + +%If ( KDE_3_2_0 - ) + void selection (DOM::Node&, long&, DOM::Node&, long&) const; +%End + + void setSelection (const DOM::Range&); + bool hasSelection () const; + void selectAll (); + void show (); + void hide (); + KParts::PartManager* partManager (); + virtual void saveState (QDataStream&); + virtual void restoreState (QDataStream&); + DOM::Node nodeUnderMouse () const; + const KHTMLSettings* settings () const; + KHTMLPart* parentPart (); + QStringList frameNames () const; + QPtrList<KParts::ReadOnlyPart> frames () const; + KHTMLPart* findFrame (const QString&); + KParts::ReadOnlyPart* currentFrame () const; + bool frameExists (const QString&); + void setJSStatusBarText (const QString&); + void setJSDefaultStatusBarText (const QString&); + QString jsStatusBarText () const; + QString jsDefaultStatusBarText () const; + QString referrer () const; + +%If ( KDE_3_1_3 - ) + QString pageReferrer () const; +%End + + QString lastModified () const; + void preloadStyleSheet (const QString&, const QString&); + void preloadScript (const QString&, const QString&); + bool restored () const; + +%If ( KDE_3_2_0 - ) + + enum FormNotification + { + NoNotification = 0, + Before, + Only, + Unused = 255 + }; + + void setFormNotification (KHTMLPart::FormNotification); + KHTMLPart::FormNotification formNotification () const; + KURL toplevelURL (); + +%If ( KDE_3_3_0 - ) + bool isModified () const; +%End + +%End + + +signals: + void onURL (const QString&); + void popupMenu (const QString&, const QPoint&); + void selectionChanged (); + void nodeActivated (const DOM::Node&); + +%If ( KDE_3_1_0 - ) + void docCreated (); + +%If ( KDE_3_2_0 - ) + void caretPositionChanged (const DOM::Node&, long); + void formSubmitNotification (const char*, const QString&, const QByteArray&, const QString&, const QString&, const QString&); +%End + +%End + + +protected: + KURL completeURL (const QString&); + void htmlError (int, const QString&, const KURL&); + virtual void customEvent (QCustomEvent*); +//ig virtual void khtmlMousePressEvent (khtml::MousePressEvent*); +//ig virtual void khtmlMouseDoubleClickEvent (khtml::MouseDoubleClickEvent*); +//ig virtual void khtmlMouseMoveEvent (khtml::MouseMoveEvent*); +//ig virtual void khtmlMouseReleaseEvent (khtml::MouseReleaseEvent*); +//ig virtual void khtmlDrawContentsEvent (khtml::DrawContentsEvent*); + virtual void guiActivateEvent (KParts::GUIActivateEvent*); + virtual bool openFile (); + virtual void urlSelected (const QString&, int, int, const QString&, KParts::URLArgs = KParts ::URLArgs ()); + virtual KParts::ReadOnlyPart* createPart (QWidget*, const char*, QObject* /Transfer/, const char*, const QString&, QString&, QStringList&, const QStringList&); + +%If ( KDE_3_1_0 - ) + bool pluginPageQuestionAsked (const QString&) const; + void setPluginPageQuestionAsked (const QString&); + +%If ( KDE_3_2_0 - ) +//ig void setPageSecurity (KHTMLPart::PageSecurity); + virtual bool doOpenStream (const QString&); + virtual bool doWriteStream (const QByteArray&); + virtual bool doCloseStream (); +%End + +%End + + +public slots: + void setActiveNode (const DOM::Node&); + void stopAnimations (); + QCString dcopObjectId () const; + +%If ( KDE_3_2_0 - ) + QVariant executeScript (const QString&); + void setCaretMode (bool); + void setEditable (bool); + void setCaretVisible (bool); + void submitFormProxy (const char*, const QString&, const QByteArray&, const QString&, const QString& = QString ::null , const QString& = QString ::null ); +%End + +public: + +%If ( - KDE_3_2_0 ) + QVariant executeScript (const QString&); +%End + +//force + +private: + void setStatusBarText (const QString&, int); +//end + +}; // class KHTMLPart + diff --git a/sip/khtml/khtml_settings.sip b/sip/khtml/khtml_settings.sip new file mode 100644 index 0000000..4b13dd6 --- /dev/null +++ b/sip/khtml/khtml_settings.sip @@ -0,0 +1,298 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KHTMLSettings +{ +%TypeHeaderCode +#include <khtml_settings.h> +%End + + +public: + + enum KJavaScriptAdvice + { + KJavaScriptDunno, + KJavaScriptAccept, + KJavaScriptReject + }; + + + enum KAnimationAdvice + { + KAnimationDisabled, + KAnimationLoopOnce, + KAnimationEnabled + }; + + +%If ( KDE_3_2_0 - ) + + enum KJSWindowOpenPolicy + { + KJSWindowOpenAllow, + KJSWindowOpenAsk, + KJSWindowOpenDeny, + KJSWindowOpenSmart + }; + + + enum KJSWindowStatusPolicy + { + KJSWindowStatusAllow, + KJSWindowStatusIgnore + }; + + + enum KJSWindowMovePolicy + { + KJSWindowMoveAllow, + KJSWindowMoveIgnore + }; + + + enum KJSWindowResizePolicy + { + KJSWindowResizeAllow, + KJSWindowResizeIgnore + }; + + + enum KJSWindowFocusPolicy + { + KJSWindowFocusAllow, + KJSWindowFocusIgnore + }; + +%End + + KHTMLSettings (); + KHTMLSettings (const KHTMLSettings&); + void init (); + void init (KConfig*, bool = 1); + bool changeCursor (); + bool underlineLink (); + bool hoverLink (); + +%If ( KDE_3_4_0 - ) + bool allowTabulation () const; + bool autoSpellCheck () const; +%End + + KHTMLSettings::KAnimationAdvice showAnimations () const; + QString stdFontName () const; + QString fixedFontName () const; + QString serifFontName () const; + QString sansSerifFontName () const; + QString cursiveFontName () const; + QString fantasyFontName () const; + void setStdFontName (const QString&); + void setFixedFontName (const QString&); + int minFontSize () const; + int mediumFontSize () const; + +%If ( KDE_3_2_0 - ) + bool jsErrorsEnabled () const; + void setJSErrorsEnabled (bool); +%End + + const QString& encoding () const; + +%If ( KDE_3_4_0 - ) + bool followSystemColors () const; +%End + + const QColor& textColor (); + +%If ( KDE_3_4_0 - ) + const QColor& baseColor () const; +%End + + const QColor& linkColor (); + const QColor& vLinkColor (); + bool autoLoadImages (); + +%If ( KDE_3_4_0 - ) + bool unfinishedImageFrame () const; +%End + + +%If ( KDE_3_3_0 - ) + bool isOpenMiddleClickEnabled (); +%End + + +%If ( KDE_3_1_0 - ) + bool isBackRightClickEnabled (); +%End + + bool isJavaEnabled (const QString& = QString ::null ); + bool isJavaScriptEnabled (const QString& = QString ::null ); + bool isJavaScriptDebugEnabled (const QString& = QString ::null ); + +%If ( KDE_3_2_0 - ) + bool isJavaScriptErrorReportingEnabled (const QString& = QString ::null ) const; +%End + + bool isPluginsEnabled (const QString& = QString ::null ); + +%If ( KDE_3_5_0 - ) + bool isAdFiltered (const QString&) const; + bool isAdFilterEnabled () const; + bool isHideAdsEnabled () const; + void addAdFilter (const QString&); + bool accessKeysEnabled () const; +%End + + +%If ( KDE_3_2_0 - ) + KHTMLSettings::KJSWindowOpenPolicy windowOpenPolicy (const QString& = QString ::null ) const; + KHTMLSettings::KJSWindowMovePolicy windowMovePolicy (const QString& = QString ::null ) const; + KHTMLSettings::KJSWindowResizePolicy windowResizePolicy (const QString& = QString ::null ) const; + KHTMLSettings::KJSWindowStatusPolicy windowStatusPolicy (const QString& = QString ::null ) const; + KHTMLSettings::KJSWindowFocusPolicy windowFocusPolicy (const QString& = QString ::null ) const; +%End + + static KJavaScriptAdvice strToAdvice (const QString&); +//ig static void splitDomainAdvice (const QString&, QString&, KHTMLSettings::KJavaScriptAdvice&, KHTMLSettings::KJavaScriptAdvice&); + static const char* adviceToStr (KHTMLSettings::KJavaScriptAdvice); + +%If ( KDE_3_2_0 - ) +//ig void readDomainSettings (KConfig*, bool, bool, KPerDomainSettings&); +%End + + QString settingsToCSS () const; + static const QString& availableFamilies (); + QString userStyleSheet () const; + bool isFormCompletionEnabled () const; + int maxFormCompletionItems () const; + +%If ( KDE_3_1_1 - ) + bool isAutoDelayedActionsEnabled () const; + +%If ( KDE_3_5_0 - ) + QValueList<QPair<QString,QChar>> fallbackAccessKeysAssignments () const; + void setJSPopupBlockerPassivePopup (bool); + bool jsPopupBlockerPassivePopup () const; +%End + +%End + + +}; // class KHTMLSettings + + + +%If (KDE_3_5_0 - ) +%MappedType QValueList<QPair<QString,QChar>> +//converts a Python list of tuples (QString,QChar) +{ +%TypeHeaderCode +#include <qvaluelist.h> +#include <qstring.h> +#include <khtml_settings.h> +typedef QPair<QString,QChar> AssignPair; +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList<AssignPair> *cpplist = (QValueList<AssignPair> *)sipCpp; + + // Get it. + QValueList<AssignPair>::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + PyObject *inst = NULL; + QString s = (*it).first; + QChar c = (*it).second; + PyObject *pys = sipConvertFromNewType(new QString(s), sipType_QString, sipTransferObj); + PyObject *pyc = sipConvertFromNewType(new QChar(c), sipType_QChar, sipTransferObj); + if ((pys == NULL) || ((inst = Py_BuildValue ("NN", pys, pyc)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_XDECREF (inst); + Py_XDECREF (pys); + Py_XDECREF (pyc); + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList<AssignPair> *cpplist = new QValueList<AssignPair>; + + QString *p1; + QChar *p2; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + int p1_state, p2_state; + + PyObject *elem = PyList_GET_ITEM (sipPy, i); + PyObject *pyp1 = PyTuple_GET_ITEM (elem, 0); + PyObject *pyp2 = PyTuple_GET_ITEM (elem, 1); + p1 = (QString *)sipForceConvertToType(pyp1, sipType_QString, sipTransferObj, SIP_NOT_NONE, &p1_state, &iserr); + p2 = (QChar *)sipForceConvertToType(pyp2, sipType_QChar, sipTransferObj, SIP_NOT_NONE, &p2_state, &iserr); + + if (iserr) + { + if (p1) + sipReleaseType(p1, sipType_QString, p1_state); + + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (AssignPair (*p1, *p2)); + + sipReleaseType(p1, sipType_QString, p1_state); + sipReleaseType(p2, sipType_QChar, p2_state); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; +%End + + diff --git a/sip/khtml/khtmlmod.sip.in b/sip/khtml/khtmlmod.sip.in new file mode 100644 index 0000000..e7e3183 --- /dev/null +++ b/sip/khtml/khtmlmod.sip.in @@ -0,0 +1,71 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml 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 khtml + +%Import qt/qtmod.sip +%Import qtxml/qtxmlmod.sip +%Import dcopmod.sip +%Import kdecoremod.sip +%Import kdefxmod.sip +%Import kdeuimod.sip +%Import kiomod.sip +%Import kutilsmod.sip +%Import kpartsmod.sip + +%Include css_rule.sip +%Include css_stylesheet.sip +%Include css_value.sip +%Include dom2_events.sip +%Include dom2_range.sip +%Include dom2_traversal.sip +%Include dom2_views.sip +%Include dom_doc.sip +%Include dom_element.sip +%Include dom_exception.sip +%Include dom_misc.sip +%Include dom_node.sip +%Include dom_string.sip +%Include dom_text.sip +%Include dom_xml.sip +%Include html_base.sip +%Include html_block.sip +%Include html_document.sip +%Include html_element.sip +%Include html_form.sip +%Include html_head.sip +%Include html_image.sip +%Include html_inline.sip +%Include html_list.sip +%Include html_misc.sip +%Include html_object.sip +%Include html_table.sip +%Include khtml_part.sip +%Include khtml_settings.sip +%Include khtmlview.sip +@mark@ diff --git a/sip/khtml/khtmlview.sip b/sip/khtml/khtmlview.sip new file mode 100644 index 0000000..779416c --- /dev/null +++ b/sip/khtml/khtmlview.sip @@ -0,0 +1,144 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +//ig namespace khtml; + + +class KHTMLView : QScrollView +{ +%TypeHeaderCode +#include <khtmlview.h> +%End + + +public: + KHTMLView (KHTMLPart*, QWidget* /TransferThis/, const char* = 0); + KHTMLPart* part () const; + int frameWidth () const; + void setMarginWidth (int); + int marginWidth () const; + void setMarginHeight (int); + int marginHeight (); + virtual void setVScrollBarMode (ScrollBarMode); + virtual void setHScrollBarMode (ScrollBarMode); + void print () /PyName=print_/; + +%If ( KDE_3_2_0 - ) + void print (bool); +%End + + void layout (); + +%If ( KDE_3_3_0 - ) + void displayAccessKeys (); +%End + + +signals: + +%If ( KDE_3_3_0 - ) + void finishedLayout (); +%End + + void cleared (); + +%If ( KDE_3_1_0 - ) + void zoomView (int); + +%If ( KDE_3_3_0 - ) + void hideAccessKeys (); + void repaintAccessKeys (); + +%If ( KDE_3_5_0 - ) + void findAheadActive (bool); +%End + +%End + +%End + + +protected: + void clear (); + virtual void resizeEvent (QResizeEvent*); + virtual void showEvent (QShowEvent*); + virtual void hideEvent (QHideEvent*); + virtual bool focusNextPrevChild (bool); + virtual void drawContents (QPainter*, int, int, int, int); + virtual void drawContents (QPainter*); + virtual void viewportMousePressEvent (QMouseEvent*); + +%If ( KDE_3_2_0 - ) + virtual void focusInEvent (QFocusEvent*); +%End + + virtual void focusOutEvent (QFocusEvent*); + virtual void viewportMouseDoubleClickEvent (QMouseEvent*); + virtual void viewportMouseMoveEvent (QMouseEvent*); + virtual void viewportMouseReleaseEvent (QMouseEvent*); + +%If ( KDE_3_1_0 - ) + virtual void viewportResizeEvent (QResizeEvent*); +%End + + virtual void viewportWheelEvent (QWheelEvent*); + virtual void dragEnterEvent (QDragEnterEvent*); + virtual void dropEvent (QDropEvent*); + +%If ( KDE_3_1_0 - ) + virtual void closeEvent (QCloseEvent*); + +%If ( KDE_3_2_0 - ) + virtual bool eventFilter (QObject*, QEvent*); +%End + +%End + + void keyPressEvent (QKeyEvent*); + void keyReleaseEvent (QKeyEvent*); + void contentsContextMenuEvent (QContextMenuEvent*); + void doAutoScroll (); + void timerEvent (QTimerEvent*); + +protected slots: + void slotPaletteChanged (); + void slotScrollBarMoved (); + +//force +%ConvertToSubClassCode + // The table of Python class objects indexed by their names. The table + // must be sorted by name. + + static sipStringTypeClassMap map[] = { + {sipName_KHTMLView, &sipClass_KHTMLView}, + {sipName_KHTMLPart, &sipClass_KHTMLPart}, + }; + + sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0])); +%End +//end + +}; // class KHTMLView + diff --git a/sip/kio/authinfo.sip b/sip/kio/authinfo.sip new file mode 100644 index 0000000..0a835a6 --- /dev/null +++ b/sip/kio/authinfo.sip @@ -0,0 +1,210 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KIO +{ + +class AuthInfo +{ +%TypeHeaderCode +#include <authinfo.h> +%End + + +public: + AuthInfo (); + AuthInfo (const KIO::AuthInfo&); + bool isModified () const; + void setModified (bool); + KURL url; + QString username; + QString password; + QString prompt; + QString caption; + QString comment; + QString commentLabel; + QString realmValue; + QString digestInfo; + bool verifyPath; + bool readOnly; + bool keepPassword; + +protected: + +}; // class AuthInfo + + +%If ( KDE_3_1_4 - ) +//igx QDataStream& operator << (QDataStream&, const KIO::AuthInfo&); +//igx QDataStream& operator >> (QDataStream&, KIO::AuthInfo&); +%End + + +class NetRC +{ +%TypeHeaderCode +#include <authinfo.h> +%End + + +public: + + enum LookUpMode + { + exactOnly, + defaultOnly, + presetOnly + }; + + + class AutoLogin + { + + public: + QString type; + QString machine; + QString login; + QString password; + KStringListMap macdef; + + }; // class AutoLogin + + +public: + static KIO::NetRC* self (); + bool lookup (const KURL&, KIO::NetRC::AutoLogin&, bool = 0, QString = QString ::null , int = 6); + void reload (); + +protected: +//ig QString extract (const char*, const char*, int&); + int openf (const QString&); + +%If ( KDE_3_2_0 - ) + bool parse (int); +%End + + +private: + NetRC (); + ~NetRC (); + +protected: + +%If ( - KDE_3_2_0 ) + void parse (int); +%End + + +}; // class NetRC + +}; // namespace KIO + + + +%MappedType KStringListMap +{ +//converts a Python dict of QString:QStringList +%TypeHeaderCode +#include <qmap.h> +typedef QMap<QString, QStringList> KStringListMap; +%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<QString, QStringList> map = *sipCpp; + QMap<QString, QStringList>::ConstIterator it; + + for (it = map.begin (); it != map.end (); ++it) + { + PyObject *sKey = PyString_FromString ((const char *)((QString)it.key ())); + PyObject *sData = sipConvertFromInstance ((void *)&it.data (), sipClass_QStringList, sipTransferObj); + + if ((sKey == NULL) || (sData == NULL) || (PyDict_SetItem (dict, sKey, sData) < 0)) + { + Py_XDECREF (sKey); + Py_XDECREF (sData); + Py_DECREF (dict); + return NULL; + } + } + + return dict; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + QMap<QString, QStringList> *map = new QMap<QString, QStringList>; + + PyObject *key, *value; + SIP_SSIZE_T pos = 0; + QString *sKey; + QStringList *sData; + + while (PyDict_Next(sipPy, &pos, &key, &value)) + { + int iserr = 0, sKey_state, sData_state; + + sKey = (QString *)sipForceConvertToType(key, sipType_QString, sipTransferObj, SIP_NOT_NONE, &sKey_state, &iserr); + sData = (QStringList *)sipForceConvertToType(value, sipType_QStringList, sipTransferObj, SIP_NOT_NONE, &sData_state, &iserr); + + if (iserr) + { + if (sKey) + sipReleaseType(sKey, sipType_QString, sKey_state); + + *sipIsErr = 1; + delete map; + return 0; + } + + map->insert (*sKey, *sData); + + sipReleaseType(sKey, sipType_QString, sKey_state); + sipReleaseType(sData, sipType_QStringList, sData_state); + } + + *sipCppPtr = map; + + return 1; +%End +}; + + diff --git a/sip/kio/chmodjob.sip b/sip/kio/chmodjob.sip new file mode 100644 index 0000000..887a5ff --- /dev/null +++ b/sip/kio/chmodjob.sip @@ -0,0 +1,55 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KIO +{ + +class ChmodJob : KIO::Job +{ +%TypeHeaderCode +#include <jobclasses.h> +#include <chmodjob.h> +%End + + +public: + ChmodJob (const KFileItemList&, int, int, int, int, bool, bool); + +protected: + void chmodNextFile (); + +protected slots: + virtual void slotResult (KIO::Job*); + void slotEntries (KIO::Job*, const KIO::UDSEntryList&); + void processList (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class ChmodJob + +KIO::ChmodJob* chmod (const KFileItemList&, int, int, QString, QString, bool, bool = 1); +}; // namespace KIO + diff --git a/sip/kio/connection.sip b/sip/kio/connection.sip new file mode 100644 index 0000000..67e535f --- /dev/null +++ b/sip/kio/connection.sip @@ -0,0 +1,72 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KIO +{ + +class Task +{ +%TypeHeaderCode +#include <connection.h> +%End + + +public: + int cmd; + QByteArray data; + +}; // class Task + + +class Connection : QObject +{ +%TypeHeaderCode +#include <connection.h> +%End + + +public: + Connection (); + void init (KSocket*); + void init (int, int); + void connect (QObject* = 0, const char* = 0); + void close (); + int fd_from () const; + int fd_to () const; + bool inited () const; + void send (int, const QByteArray& = QByteArray ()); + bool sendnow (int, const QByteArray&); +//ig int read (int*, QByteArray&); + void suspend (); + void resume (); + bool suspended () const; + +protected slots: + void dequeue (); + +}; // class Connection + +}; // namespace KIO + diff --git a/sip/kio/davjob.sip b/sip/kio/davjob.sip new file mode 100644 index 0000000..ff140b0 --- /dev/null +++ b/sip/kio/davjob.sip @@ -0,0 +1,56 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 - ) +namespace KIO +{ + +class DavJob : KIO::TransferJob +{ +%TypeHeaderCode +#include <davjob.h> +%End + + +public: + DavJob (const KURL&, int, const QString&, bool); + QDomDocument& response (); + +protected slots: + virtual void slotFinished (); + virtual void slotData (const QByteArray&); + +protected: + +}; // class DavJob + +KIO::DavJob* davPropFind (const KURL&, const QDomDocument&, QString, bool = 1); +KIO::DavJob* davPropPatch (const KURL&, const QDomDocument&, bool = 1); +KIO::DavJob* davSearch (const KURL&, const QString&, const QString&, const QString&, bool = 1); +}; // namespace KIO + +%End + diff --git a/sip/kio/defaultprogress.sip b/sip/kio/defaultprogress.sip new file mode 100644 index 0000000..3646086 --- /dev/null +++ b/sip/kio/defaultprogress.sip @@ -0,0 +1,103 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KIO +{ + +class DefaultProgress : KIO::ProgressBase +{ +%TypeHeaderCode +#include <defaultprogress.h> +%End + + +public: + DefaultProgress (bool = 1); + +%If ( KDE_3_1_0 - ) + DefaultProgress (QWidget* /TransferThis/, const char* = 0); + +%If ( KDE_3_2_1 - ) + bool keepOpen () const; + +%If ( KDE_3_4_0 - ) + static QString makePercentString (ulong, KIO::filesize_t, ulong); +%End + +%End + +%End + + +public slots: + virtual void slotTotalSize (KIO::Job*, KIO::filesize_t); + virtual void slotTotalFiles (KIO::Job*, ulong); + virtual void slotTotalDirs (KIO::Job*, ulong); + virtual void slotProcessedSize (KIO::Job*, KIO::filesize_t); + virtual void slotProcessedFiles (KIO::Job*, ulong); + virtual void slotProcessedDirs (KIO::Job*, ulong); + virtual void slotSpeed (KIO::Job*, ulong); + virtual void slotPercent (KIO::Job*, ulong); + virtual void slotInfoMessage (KIO::Job*, const QString&); + virtual void slotCopying (KIO::Job*, const KURL&, const KURL&); + virtual void slotMoving (KIO::Job*, const KURL&, const KURL&); + virtual void slotDeleting (KIO::Job*, const KURL&); + +%If ( KDE_3_1_0 - ) + void slotTransferring (KIO::Job*, const KURL&); +%End + + virtual void slotCreatingDir (KIO::Job*, const KURL&); + virtual void slotStating (KIO::Job*, const KURL&); + virtual void slotMounting (KIO::Job*, const QString&, const QString&); + virtual void slotUnmounting (KIO::Job*, const QString&); + virtual void slotCanResume (KIO::Job*, KIO::filesize_t); + +%If ( KDE_3_1_0 - ) + void slotClean (); +%End + + +protected: + +%If ( KDE_3_1_0 - ) + void init (); +%End + + void showTotals (); + void setDestVisible (bool); + +%If ( KDE_3_1_0 - ) + void checkDestination (const KURL&); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class DefaultProgress + +}; // namespace KIO + diff --git a/sip/kio/forwardingslavebase.sip b/sip/kio/forwardingslavebase.sip new file mode 100644 index 0000000..23f3903 --- /dev/null +++ b/sip/kio/forwardingslavebase.sip @@ -0,0 +1,63 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 - ) +namespace KIO +{ + +class ForwardingSlaveBase : QObject, KIO::SlaveBase +{ +%TypeHeaderCode +#include <forwardingslavebase.h> +%End + + +public: + ForwardingSlaveBase (const QCString&, const QCString&, const QCString&); + virtual void get (const KURL&); + virtual void put (const KURL&, int, bool, bool); + virtual void stat (const KURL&); + virtual void mimetype (const KURL&); + virtual void listDir (const KURL&); + virtual void mkdir (const KURL&, int); + virtual void rename (const KURL&, const KURL&, bool); + virtual void symlink (const QString&, const KURL&, bool); + virtual void chmod (const KURL&, int); + virtual void copy (const KURL&, const KURL&, int, bool); + virtual void del (const KURL&, bool); + +protected: + virtual bool rewriteURL (const KURL&, KURL&) = 0; + virtual void prepareUDSEntry (KIO::UDSEntry&, bool = 0) const; + KURL processedURL () const; + KURL requestedURL () const; + +}; // class ForwardingSlaveBase + +}; // namespace KIO + +%End + diff --git a/sip/kio/global.sip b/sip/kio/global.sip new file mode 100644 index 0000000..7f5a13b --- /dev/null +++ b/sip/kio/global.sip @@ -0,0 +1,714 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <kio/global.h> +%End + +namespace KIO +{ +typedef long long fileoffset_t; +typedef unsigned long long filesize_t; +QString convertSize (KIO::filesize_t); + +%If ( KDE_3_5_0 - ) +QString convertSizeWithBytes (KIO::filesize_t); +%End + +QString number (KIO::filesize_t); +QString convertSizeFromKB (KIO::filesize_t); + +%If ( KDE_3_4_0 - ) +uint calculateRemainingSeconds (KIO::filesize_t, KIO::filesize_t, KIO::filesize_t); +QString convertSeconds (uint); +%End + +QTime calculateRemaining (KIO::filesize_t, KIO::filesize_t, KIO::filesize_t); +QString itemsSummaryString (uint, uint, uint, KIO::filesize_t, bool); +QString encodeFileName (const QString&); +QString decodeFileName (const QString&); + +%If ( KDE_3_2_0 - ) + +enum Command +{ + CMD_HOST, + CMD_CONNECT, + CMD_DISCONNECT, + CMD_SLAVE_STATUS, + CMD_SLAVE_CONNECT, + CMD_SLAVE_HOLD, + CMD_NONE, + CMD_TESTDIR, + CMD_GET, + CMD_PUT, + CMD_STAT, + CMD_MIMETYPE, + CMD_LISTDIR, + CMD_MKDIR, + CMD_RENAME, + CMD_COPY, + CMD_DEL, + CMD_CHMOD, + CMD_SPECIAL, + CMD_USERPASS, + CMD_REPARSECONFIGURATION, + CMD_META_DATA, + CMD_SYMLINK, + CMD_SUBURL, + CMD_MESSAGEBOXANSWER, + CMD_RESUMEANSWER, + CMD_CONFIG, + CMD_MULTI_GET +}; + +%End + + +%If ( KDE_3_1_0 - ) + +enum Error +{ + ERR_CANNOT_OPEN_FOR_READING, + ERR_CANNOT_OPEN_FOR_WRITING, + ERR_CANNOT_LAUNCH_PROCESS, + ERR_INTERNAL, + ERR_MALFORMED_URL, + ERR_UNSUPPORTED_PROTOCOL, + ERR_NO_SOURCE_PROTOCOL, + ERR_UNSUPPORTED_ACTION, + ERR_IS_DIRECTORY, + ERR_IS_FILE, + ERR_DOES_NOT_EXIST, + ERR_FILE_ALREADY_EXIST, + ERR_DIR_ALREADY_EXIST, + ERR_UNKNOWN_HOST, + ERR_ACCESS_DENIED, + ERR_WRITE_ACCESS_DENIED, + ERR_CANNOT_ENTER_DIRECTORY, + ERR_PROTOCOL_IS_NOT_A_FILESYSTEM, + ERR_CYCLIC_LINK, + ERR_USER_CANCELED, + ERR_CYCLIC_COPY, + ERR_COULD_NOT_CREATE_SOCKET, + ERR_COULD_NOT_CONNECT, + ERR_CONNECTION_BROKEN, + ERR_NOT_FILTER_PROTOCOL, + ERR_COULD_NOT_MOUNT, + ERR_COULD_NOT_UNMOUNT, + ERR_COULD_NOT_READ, + ERR_COULD_NOT_WRITE, + ERR_COULD_NOT_BIND, + ERR_COULD_NOT_LISTEN, + ERR_COULD_NOT_ACCEPT, + ERR_COULD_NOT_LOGIN, + ERR_COULD_NOT_STAT, + ERR_COULD_NOT_CLOSEDIR, + ERR_COULD_NOT_MKDIR, + ERR_COULD_NOT_RMDIR, + ERR_CANNOT_RESUME, + ERR_CANNOT_RENAME, + ERR_CANNOT_CHMOD, + ERR_CANNOT_DELETE, + ERR_SLAVE_DIED, + ERR_OUT_OF_MEMORY, + ERR_UNKNOWN_PROXY_HOST, + ERR_COULD_NOT_AUTHENTICATE, + ERR_ABORTED, + ERR_INTERNAL_SERVER, + ERR_SERVER_TIMEOUT, + ERR_SERVICE_NOT_AVAILABLE, + ERR_UNKNOWN, + ERR_UNKNOWN_INTERRUPT, + ERR_CANNOT_DELETE_ORIGINAL, + ERR_CANNOT_DELETE_PARTIAL, + ERR_CANNOT_RENAME_ORIGINAL, + ERR_CANNOT_RENAME_PARTIAL, + ERR_NEED_PASSWD, + ERR_CANNOT_SYMLINK, + ERR_NO_CONTENT, + ERR_DISK_FULL, + ERR_IDENTICAL_FILES, + ERR_SLAVE_DEFINED, + ERR_UPGRADE_REQUIRED, + ERR_POST_DENIED +}; + +%End + +QString buildErrorString (int, const QString&); +//ig QString buildHTMLErrorString (int, const QString&, const KURL* = 0, int = -1); +QByteArray rawErrorDetail (int, const QString&, const KURL* = 0, int = -1); + +%If ( KDE_3_2_0 - ) +QString unsupportedActionErrorString (const QString&, int); + +%If ( KDE_3_5_1 - ) + +enum UDSAtomTypes +{ + UDS_STRING, + UDS_LONG, + UDS_TIME, + UDS_SIZE, + UDS_SIZE_LARGE, + UDS_USER, + UDS_ICON_NAME, + UDS_GROUP, + UDS_EXTRA, + UDS_NAME, + UDS_LOCAL_PATH, + UDS_HIDDEN, + UDS_EXTENDED_ACL, + UDS_ACL_STRING, + UDS_DEFAULT_ACL_STRING, + UDS_ACCESS, + UDS_MODIFICATION_TIME, + UDS_ACCESS_TIME, + UDS_CREATION_TIME, + UDS_FILE_TYPE, + UDS_LINK_DEST, + UDS_URL, + UDS_MIME_TYPE, + UDS_GUESSED_MIME_TYPE, + UDS_XML_PROPERTIES +}; + +%End + +%End + + +%If ( KDE_3_0_1 - ) + +enum CacheControl +{ + CC_CacheOnly, + CC_Cache, + CC_Verify, + CC_Refresh, + CC_Reload +}; + +%End + +KIO::CacheControl parseCacheControl (const QString&); +QString getCacheControlString (KIO::CacheControl); +QString findDeviceMountPoint (const QString&); +QString findPathMountPoint (const QString&); +bool probably_slow_mounted (const QString&); + +%If ( KDE_3_1_0 - ) +bool manually_mounted (const QString&); + +%If ( KDE_3_2_0 - ) + +enum FileSystemFlag +{ + SupportsChmod, + SupportsChown, + SupportsUTime, + SupportsSymlinks, + CaseInsensitive +}; + +bool testFileSystemFlag (const QString&, KIO::FileSystemFlag); +%End + +%End + + +class UDSAtom +{ +%TypeHeaderCode +#include <global.h> +%End + + +public: + QString m_str; + long m_long; + uint m_uds; + +}; // class UDSAtom + +//ig typedef QValueList<KIO::UDSAtom> UDSEntry; +//ig typedef QValueList<KIO::UDSEntry> UDSEntryList; +//ig typedef QValueListIterator<UDSEntry> UDSEntryListIterator; +//ig typedef QValueListConstIterator<UDSEntry> UDSEntryListConstIterator; + +%If ( KDE_3_4_0 - KDE_3_5_1 ) + +enum UDSAtomTypes +{ + UDS_STRING, + UDS_LONG, + UDS_TIME, + UDS_SIZE, + UDS_SIZE_LARGE, + UDS_USER, + UDS_ICON_NAME, + UDS_GROUP, + UDS_EXTRA, + UDS_NAME, + UDS_LOCAL_PATH, + UDS_ACCESS, + UDS_MODIFICATION_TIME, + UDS_ACCESS_TIME, + UDS_CREATION_TIME, + UDS_FILE_TYPE, + UDS_LINK_DEST, + UDS_URL, + UDS_MIME_TYPE, + UDS_GUESSED_MIME_TYPE, + UDS_XML_PROPERTIES +}; + +%End + + +%If ( KDE_3_2_0 - KDE_3_4_0 ) + +enum UDSAtomTypes +{ + UDS_STRING, + UDS_LONG, + UDS_TIME, + UDS_SIZE, + UDS_SIZE_LARGE, + UDS_USER, + UDS_ICON_NAME, + UDS_GROUP, + UDS_EXTRA, + UDS_NAME, + UDS_ACCESS, + UDS_MODIFICATION_TIME, + UDS_ACCESS_TIME, + UDS_CREATION_TIME, + UDS_FILE_TYPE, + UDS_LINK_DEST, + UDS_URL, + UDS_MIME_TYPE, + UDS_GUESSED_MIME_TYPE, + UDS_XML_PROPERTIES +}; + +%End + + +%If ( KDE_3_1_0 - KDE_3_2_0 ) + +enum UDSAtomTypes +{ + UDS_STRING, + UDS_LONG, + UDS_TIME, + UDS_SIZE, + UDS_SIZE_LARGE, + UDS_USER, + UDS_GROUP, + UDS_NAME, + UDS_ACCESS, + UDS_MODIFICATION_TIME, + UDS_ACCESS_TIME, + UDS_CREATION_TIME, + UDS_FILE_TYPE, + UDS_LINK_DEST, + UDS_URL, + UDS_MIME_TYPE, + UDS_GUESSED_MIME_TYPE, + UDS_XML_PROPERTIES +}; + +%End + + +%If ( - KDE_3_1_0 ) + +enum UDSAtomTypes +{ + UDS_STRING, + UDS_LONG, + UDS_TIME, + UDS_SIZE, + UDS_SIZE_LARGE, + UDS_USER, + UDS_GROUP, + UDS_NAME, + UDS_ACCESS, + UDS_MODIFICATION_TIME, + UDS_ACCESS_TIME, + UDS_CREATION_TIME, + UDS_FILE_TYPE, + UDS_LINK_DEST, + UDS_URL, + UDS_MIME_TYPE, + UDS_GUESSED_MIME_TYPE +}; + + +enum Error +{ + ERR_CANNOT_OPEN_FOR_READING, + ERR_CANNOT_OPEN_FOR_WRITING, + ERR_CANNOT_LAUNCH_PROCESS, + ERR_INTERNAL, + ERR_MALFORMED_URL, + ERR_UNSUPPORTED_PROTOCOL, + ERR_NO_SOURCE_PROTOCOL, + ERR_UNSUPPORTED_ACTION, + ERR_IS_DIRECTORY, + ERR_IS_FILE, + ERR_DOES_NOT_EXIST, + ERR_FILE_ALREADY_EXIST, + ERR_DIR_ALREADY_EXIST, + ERR_UNKNOWN_HOST, + ERR_ACCESS_DENIED, + ERR_WRITE_ACCESS_DENIED, + ERR_CANNOT_ENTER_DIRECTORY, + ERR_PROTOCOL_IS_NOT_A_FILESYSTEM, + ERR_CYCLIC_LINK, + ERR_USER_CANCELED, + ERR_CYCLIC_COPY, + ERR_COULD_NOT_CREATE_SOCKET, + ERR_COULD_NOT_CONNECT, + ERR_CONNECTION_BROKEN, + ERR_NOT_FILTER_PROTOCOL, + ERR_COULD_NOT_MOUNT, + ERR_COULD_NOT_UNMOUNT, + ERR_COULD_NOT_READ, + ERR_COULD_NOT_WRITE, + ERR_COULD_NOT_BIND, + ERR_COULD_NOT_LISTEN, + ERR_COULD_NOT_ACCEPT, + ERR_COULD_NOT_LOGIN, + ERR_COULD_NOT_STAT, + ERR_COULD_NOT_CLOSEDIR, + ERR_COULD_NOT_MKDIR, + ERR_COULD_NOT_RMDIR, + ERR_CANNOT_RESUME, + ERR_CANNOT_RENAME, + ERR_CANNOT_CHMOD, + ERR_CANNOT_DELETE, + ERR_SLAVE_DIED, + ERR_OUT_OF_MEMORY, + ERR_UNKNOWN_PROXY_HOST, + ERR_COULD_NOT_AUTHENTICATE, + ERR_ABORTED, + ERR_INTERNAL_SERVER, + ERR_SERVER_TIMEOUT, + ERR_SERVICE_NOT_AVAILABLE, + ERR_UNKNOWN, + ERR_UNKNOWN_INTERRUPT, + ERR_CANNOT_DELETE_ORIGINAL, + ERR_CANNOT_DELETE_PARTIAL, + ERR_CANNOT_RENAME_ORIGINAL, + ERR_CANNOT_RENAME_PARTIAL, + ERR_NEED_PASSWD, + ERR_CANNOT_SYMLINK, + ERR_NO_CONTENT, + ERR_DISK_FULL, + ERR_IDENTICAL_FILES, + ERR_SLAVE_DEFINED +}; + + +%If ( - KDE_3_0_1 ) + +enum CacheControl +{ + CC_CacheOnly, + CC_Cache, + CC_Verify, + CC_Reload +}; + +%End + +%End + +//force +//ig typedef QMap<QString,QString> MetaData; +//end +}; // namespace KIO + +//force +KIO::UDSEntry testKIOUDSEntry (KIO::UDSEntry); +%MethodCode +//takes list | (KIO.UDSEntry) +//returns (KIO.UDSEntry) + sipRes = a0; +%End + +KIO::UDSEntryList testKIOUDSEntryList (KIO::UDSEntryList); +%MethodCode +//takes list | (KIO.UDSEntryList) +//returns (KIO.UDSEntryList) + sipRes = a0; +%End + +%ModuleHeaderCode +#include <qmap.h> +%End + +KIO::MetaData testKIOMetaData (KIO::MetaData); +%MethodCode +//takes dict | (KIO.MetaData) +//returns (KIO.MetaData) + sipRes = a0; +%End + +//end + + +%MappedType KIO::UDSEntry +//converts a Python list of KIO.UDSAtom +{ +%TypeHeaderCode +#include <qvaluelist.h> +#include <global.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList<KIO::UDSAtom> *cpplist = (QValueList<KIO::UDSAtom> *)sipCpp; + PyObject *inst; + + // Get it. + QValueList<KIO::UDSAtom>::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromNewType(new KIO::UDSAtom(*it), sipType_KIO_UDSAtom, NULL)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList<KIO::UDSAtom> *cpplist = new QValueList<KIO::UDSAtom>; + + PyObject *elem; + KIO::UDSAtom *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KIO::UDSAtom *)sipForceConvertToType(elem, sipType_KIO_UDSAtom, 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 KIO::UDSEntryList +//converts a Python list of KIO.UDSEntry +{ +%TypeHeaderCode +#include <qvaluelist.h> +#include <global.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList<KIO::UDSEntry> *cpplist = (QValueList<KIO::UDSEntry> *)sipCpp; + PyObject *inst; + + // Get it. + QValueList<KIO::UDSEntry>::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + KIO::UDSEntry cpp = *it; + inst = sipConvertFromType(&cpp, sipType_KIO_UDSEntry, sipTransferObj); + + if (PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList<KIO::UDSEntry> *cpplist = new QValueList<KIO::UDSEntry>; + + PyObject *elem; + KIO::UDSEntry *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KIO::UDSEntry *)sipForceConvertToType(elem, sipType_KIO_UDSEntry, 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 KIO::MetaData +//converts a Python dict of QString, QString +{ +%TypeHeaderCode +#include<qmap.h> +#include <global.h> +%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<QString,QString> cppmap = *sipCpp; + QMap<QString,QString>::ConstIterator it; + + for (it = cppmap.begin (); it != cppmap.end (); ++it) + { + QString acpp = it.key (); + QString bcpp = it.data (); + PyObject *ainst; + PyObject *binst; + 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<QString,QString> *cppmap = new QMap<QString,QString>; + + 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 = (KIO::MetaData *)cppmap; + + return 1; +%End +}; + + diff --git a/sip/kio/job.sip b/sip/kio/job.sip new file mode 100644 index 0000000..2f6339e --- /dev/null +++ b/sip/kio/job.sip @@ -0,0 +1,73 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KIO +{ +KIO::SimpleJob* mkdir (const KURL&, int = -1); +KIO::SimpleJob* rmdir (const KURL&); +KIO::SimpleJob* chmod (const KURL&, int); +KIO::SimpleJob* rename (const KURL&, const KURL&, bool); +KIO::SimpleJob* symlink (const QString&, const KURL&, bool, bool = 1); +KIO::SimpleJob* special (const KURL&, const QByteArray&, bool = 1); +KIO::SimpleJob* mount (bool, const char*, const QString&, const QString&, bool = 1); +KIO::SimpleJob* unmount (const QString&, bool = 1); +KIO::SimpleJob* http_update_cache (const KURL&, bool, time_t); +KIO::StatJob* stat (const KURL&, bool = 1); +KIO::StatJob* stat (const KURL&, bool, short, bool = 1); +KIO::TransferJob* get (const KURL&, bool = 0, bool = 1); +KIO::TransferJob* put (const KURL&, int, bool, bool, bool = 1); +KIO::TransferJob* http_post (const KURL&, const QByteArray&, bool = 1); + +%If ( KDE_3_3_0 - ) +KIO::StoredTransferJob* storedGet (const KURL&, bool = 0, bool = 1); +KIO::StoredTransferJob* storedPut (const QByteArray&, const KURL&, int, bool, bool, bool = 1); +%End + +KIO::MultiGetJob* multi_get (long, const KURL&, const KIO::MetaData&); +KIO::MimetypeJob* mimetype (const KURL&, bool = 1); +KIO::FileCopyJob* file_copy (const KURL&, const KURL&, int = -1, bool = 0, bool = 0, bool = 1); +KIO::FileCopyJob* file_move (const KURL&, const KURL&, int = -1, bool = 0, bool = 0, bool = 1); +KIO::SimpleJob* file_delete (const KURL&, bool = 1); +KIO::ListJob* listDir (const KURL&, bool = 1, bool = 1); +KIO::ListJob* listRecursive (const KURL&, bool = 1, bool = 1); +KIO::CopyJob* copy (const KURL&, const KURL&, bool = 1); +KIO::CopyJob* copyAs (const KURL&, const KURL&, bool = 1); +KIO::CopyJob* copy (const KURL::List&, const KURL&, bool = 1); +KIO::CopyJob* move (const KURL&, const KURL&, bool = 1); +KIO::CopyJob* moveAs (const KURL&, const KURL&, bool = 1); +KIO::CopyJob* move (const KURL::List&, const KURL&, bool = 1); +KIO::CopyJob* link (const KURL&, const KURL&, bool = 1); +KIO::CopyJob* link (const KURL::List&, const KURL&, bool = 1); +KIO::CopyJob* linkAs (const KURL&, const KURL&, bool = 1); + +%If ( KDE_3_4_0 - ) +KIO::CopyJob* trash (const KURL&, bool = 1); +KIO::CopyJob* trash (const KURL::List&, bool = 1); +%End + +KIO::DeleteJob* del (const KURL&, bool = 0, bool = 1) /PyName=del_/; +KIO::DeleteJob* del (const KURL::List&, bool = 0, bool = 1) /PyName=del_/; +}; // namespace KIO + diff --git a/sip/kio/jobclasses.sip b/sip/kio/jobclasses.sip new file mode 100644 index 0000000..c8f257f --- /dev/null +++ b/sip/kio/jobclasses.sip @@ -0,0 +1,748 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KIO +{ + +class Job : QObject +{ +%TypeHeaderCode +#include <jobclasses.h> +%End + + +protected: + Job (bool); + +public: + virtual void kill (bool = 1); + int error (); + int progressId (); + const QString& errorText (); + QString errorString (); + QStringList detailedErrorStrings (const KURL* = 0, int = -1) const; + void showErrorDialog (QWidget* = 0); + void setAutoErrorHandlingEnabled (bool, QWidget* = 0); + bool isAutoErrorHandlingEnabled () const; + +%If ( KDE_3_5_0 - ) + void setAutoWarningHandlingEnabled (bool); + bool isAutoWarningHandlingEnabled () const; +%End + + +%If ( KDE_3_4_3 - ) + void setInteractive (bool); + bool isInteractive () const; +%End + + void setWindow (QWidget*); + QWidget* window () const; + +%If ( KDE_3_1_0 - ) + void setParentJob (KIO::Job*); + KIO::Job* parentJob () const; +%End + + void setMetaData (const KIO::MetaData&); + void addMetaData (const QString&, const QString&); + void addMetaData (const QMap<QString,QString>&); + void mergeMetaData (const QMap<QString,QString>&); + KIO::MetaData outgoingMetaData () const; + KIO::MetaData metaData () const; + QString queryMetaData (const QString&); + +%If ( KDE_3_2_0 - ) + KIO::filesize_t getProcessedSize (); +%End + + +signals: + void result (KIO::Job*); + void canceled (KIO::Job*); + void infoMessage (KIO::Job*, const QString&); + +%If ( KDE_3_5_0 - ) + void warning (KIO::Job*, const QString&); +%End + + void connected (KIO::Job*); + void percent (KIO::Job*, ulong); + void totalSize (KIO::Job*, KIO::filesize_t); + void processedSize (KIO::Job*, KIO::filesize_t); + void speed (KIO::Job*, ulong); + +protected slots: + virtual void slotResult (KIO::Job*); + void slotSpeed (KIO::Job*, ulong); + void slotInfoMessage (KIO::Job*, const QString&); + void slotSpeedTimeout (); + +protected: + virtual void addSubjob (KIO::Job*, bool = 1); + virtual void removeSubjob (KIO::Job*); + +%If ( KDE_3_4_0 - ) + void removeSubjob (KIO::Job*, bool, bool); +%End + + void emitPercent (KIO::filesize_t, KIO::filesize_t); + void emitSpeed (ulong); + void emitResult (); + +%If ( KDE_3_2_0 - ) + void setProcessedSize (KIO::filesize_t); +%End + +//ig int& extraFlags (); + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( KDE_3_2_0 - KDE_3_2_2 ) + int extraFlags (); +%MethodCode +//returns (int) + Py_BEGIN_ALLOW_THREADS + sipRes = sipCpp -> sipProtect_extraFlags (); + Py_END_ALLOW_THREADS +%End + +%End + + +}; // class Job + + +class SimpleJob : KIO::Job +{ +%TypeHeaderCode +#include <jobclasses.h> +%End + + +public: + SimpleJob (const KURL&, int, const QByteArray&, bool); + const KURL& url () const; + virtual void kill (bool = 1); + virtual void putOnHold (); + static void removeOnHold (); + virtual void start (KIO::Slave*); + void slaveDone (); + KIO::Slave* slave (); + int command (); + +public slots: + +%If ( KDE_3_1_0 - ) + void slotTotalSize (KIO::filesize_t); +%End + + +protected slots: + virtual void slotFinished (); + void slotWarning (const QString&); + void slotInfoMessage (const QString&); + void slotConnected (); + void slotProcessedSize (KIO::filesize_t); + void slotSpeed (ulong); + virtual void slotMetaData (const KIO::MetaData&); + +public slots: + virtual void slotError (int, const QString&); + +protected slots: + void slotNeedProgressId (); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +%If ( KDE_3_2_0 - ) + void storeSSLSessionFromJob (const KURL&); +%End + + +protected slots: + +%If ( - KDE_3_1_0 ) + void slotTotalSize (KIO::filesize_t); +%End + + +}; // class SimpleJob + + +class StatJob : KIO::SimpleJob +{ +%TypeHeaderCode +#include <jobclasses.h> +%End + + +public: + StatJob (const KURL&, int, const QByteArray&, bool); + void setSide (bool); + void setDetails (short); + const KIO::UDSEntry& statResult () const; + virtual void start (KIO::Slave*); + +signals: + void redirection (KIO::Job*, const KURL&); + +%If ( KDE_3_1_0 - ) + void permanentRedirection (KIO::Job*, const KURL&, const KURL&); +%End + + +protected slots: + void slotStatEntry (const KIO::UDSEntry&); + void slotRedirection (const KURL&); + virtual void slotFinished (); + +%If ( KDE_3_2_0 - ) + virtual void slotMetaData (const KIO::MetaData&); +%End + + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class StatJob + + +%If ( KDE_3_3_0 - ) + +class MkdirJob : KIO::SimpleJob +{ +%TypeHeaderCode +#include <jobclasses.h> +%End + + +public: + MkdirJob (const KURL&, int, const QByteArray&, bool); + virtual void start (KIO::Slave*); + +signals: + void redirection (KIO::Job*, const KURL&); + void permanentRedirection (KIO::Job*, const KURL&, const KURL&); + +protected slots: + void slotRedirection (const KURL&); + virtual void slotFinished (); + +protected: + +protected: + virtual void virtual_hook (int, void*); + +}; // class MkdirJob + +%End + + +%If ( KDE_3_3_0 - ) + +class DirectCopyJob : KIO::SimpleJob +{ +%TypeHeaderCode +#include <jobclasses.h> +%End + + +public: + DirectCopyJob (const KURL&, int, const QByteArray&, bool); + virtual void start (KIO::Slave*); + +signals: + void canResume (KIO::Job*, KIO::filesize_t); + +}; // class DirectCopyJob + +%End + + +class TransferJob : KIO::SimpleJob +{ +%TypeHeaderCode +#include <jobclasses.h> +%End + + +public: + TransferJob (const KURL&, int, const QByteArray&, const QByteArray&, bool); + virtual void start (KIO::Slave*); + virtual void slotResult (KIO::Job*); + void suspend (); + void resume (); + bool isSuspended () const; + bool isErrorPage () const; + +%If ( KDE_3_2_0 - ) + void setAsyncDataEnabled (bool); + void sendAsyncData (const QByteArray&); + void setReportDataSent (bool); + bool reportDataSent (); +%End + + +signals: + void data (KIO::Job*, const QByteArray&); + void dataReq (KIO::Job*, QByteArray&); + void redirection (KIO::Job*, const KURL&); + +%If ( KDE_3_1_0 - ) + void permanentRedirection (KIO::Job*, const KURL&, const KURL&); +%End + + void mimetype (KIO::Job*, const QString&); + void canResume (KIO::Job*, KIO::filesize_t); + +protected slots: + virtual void slotRedirection (const KURL&); + virtual void slotFinished (); + virtual void slotData (const QByteArray&); + virtual void slotDataReq (); + virtual void slotMimetype (const QString&); + virtual void slotNeedSubURLData (); + virtual void slotSubURLData (KIO::Job*, const QByteArray&); + +%If ( KDE_3_2_0 - ) + virtual void slotMetaData (const KIO::MetaData&); +%End + + void slotErrorPage (); + void slotCanResume (KIO::filesize_t); + +%If ( KDE_3_2_0 - ) + void slotPostRedirection (); +%End + + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class TransferJob + + +%If ( KDE_3_3_0 - ) + +class StoredTransferJob : KIO::TransferJob +{ +%TypeHeaderCode +#include <jobclasses.h> +%End + + +public: + StoredTransferJob (const KURL&, int, const QByteArray&, const QByteArray&, bool); + void setData (const QByteArray&); + QByteArray data () const; + +}; // class StoredTransferJob + +%End + + +class MultiGetJob : KIO::TransferJob +{ +%TypeHeaderCode +#include <jobclasses.h> +%End + + +public: + MultiGetJob (const KURL&, bool); + virtual void start (KIO::Slave*); + void get (long, const KURL&, const KIO::MetaData&); + +signals: + void data (long, const QByteArray&); + void mimetype (long, const QString&); + void result (long); + +protected slots: + virtual void slotRedirection (const KURL&); + virtual void slotFinished (); + virtual void slotData (const QByteArray&); + virtual void slotMimetype (const QString&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class MultiGetJob + + +class MimetypeJob : KIO::TransferJob +{ +%TypeHeaderCode +#include <jobclasses.h> +%End + + +public: + MimetypeJob (const KURL&, int, const QByteArray&, bool); + QString mimetype () const; + virtual void start (KIO::Slave*); + +protected slots: + virtual void slotFinished (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class MimetypeJob + + +class FileCopyJob : KIO::Job +{ +%TypeHeaderCode +#include <jobclasses.h> +%End + + +public: + FileCopyJob (const KURL&, const KURL&, int, bool, bool, bool, bool); + +%If ( KDE_3_2_0 - ) + void setSourceSize64 (KIO::filesize_t); + +%If ( KDE_3_5_2 - ) + void setModificationTime (time_t); +%End + +%End + +//ig void setSourceSize (off_t); + KURL srcURL () const; + KURL destURL () const; + +public slots: + void slotStart (); + void slotData (KIO::Job*, const QByteArray&); + void slotDataReq (KIO::Job*, QByteArray&); + +protected slots: + virtual void slotResult (KIO::Job*); + void slotProcessedSize (KIO::Job*, KIO::filesize_t); + void slotTotalSize (KIO::Job*, KIO::filesize_t); + void slotPercent (KIO::Job*, ulong); + void slotCanResume (KIO::Job*, KIO::filesize_t); + +protected: + void startCopyJob (); + void startCopyJob (const KURL&); + +%If ( KDE_3_4_0 - ) + void startRenameJob (const KURL&); +%End + + void startDataPump (); + void connectSubjob (KIO::SimpleJob*); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class FileCopyJob + + +class ListJob : KIO::SimpleJob +{ +%TypeHeaderCode +#include <jobclasses.h> +%End + + +public: + ListJob (const KURL&, bool, bool = 0, QString = QString ::null , bool = 1); + virtual void start (KIO::Slave*); + +%If ( KDE_3_4_3 - ) + const KURL& redirectionURL () const; +%End + + +%If ( KDE_3_2_0 - ) + void setUnrestricted (bool); +%End + + +signals: + void entries (KIO::Job*, const KIO::UDSEntryList&); + void redirection (KIO::Job*, const KURL&); + +%If ( KDE_3_1_0 - ) + void permanentRedirection (KIO::Job*, const KURL&, const KURL&); +%End + + +protected slots: + virtual void slotFinished (); + +%If ( KDE_3_2_0 - ) + virtual void slotMetaData (const KIO::MetaData&); +%End + + virtual void slotResult (KIO::Job*); + void slotListEntries (const KIO::UDSEntryList&); + void slotRedirection (const KURL&); + void gotEntries (KIO::Job*, const KIO::UDSEntryList&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class ListJob + + +class CopyInfo +{ +%TypeHeaderCode +#include <jobclasses.h> +%End + + +public: + KURL uSource; + KURL uDest; + QString linkDest; + mode_t permissions; + time_t ctime; + time_t mtime; + off_t size; + +}; // class CopyInfo + + +class CopyJob : KIO::Job +{ +%TypeHeaderCode +#include <jobclasses.h> +%End + + +public: + + enum CopyMode + { + Copy, + Move, + Link + }; + + CopyJob (const KURL::List&, const KURL&, KIO::CopyJob::CopyMode, bool, bool); + KURL::List srcURLs () const; + KURL destURL () const; + +%If ( KDE_3_2_3 - ) + void setDefaultPermissions (bool); + +%If ( KDE_3_4_0 - ) + void setInteractive (bool); +%End + +%End + + +signals: + void totalFiles (KIO::Job*, ulong); + void totalDirs (KIO::Job*, ulong); + +%If ( KDE_3_2_0 - ) + void aboutToCreate (KIO::Job*, const QValueList<KIO::CopyInfo>&); +%End + + void processedFiles (KIO::Job*, ulong); + void processedDirs (KIO::Job*, ulong); + void copying (KIO::Job*, const KURL&, const KURL&); + void linking (KIO::Job*, const QString&, const KURL&); + void moving (KIO::Job*, const KURL&, const KURL&); + void creatingDir (KIO::Job*, const KURL&); + void renamed (KIO::Job*, const KURL&, const KURL&); + void copyingDone (KIO::Job*, const KURL&, const KURL&, bool, bool); + void copyingLinkDone (KIO::Job*, const KURL&, const QString&, const KURL&); + +protected: + +%If ( KDE_3_2_3 - ) + void statCurrentSrc (); +%End + + void statNextSrc (); + void slotResultStating (KIO::Job*); + void startListing (const KURL&); + void slotResultCreatingDirs (KIO::Job*); + void slotResultConflictCreatingDirs (KIO::Job*); + void createNextDir (); + void slotResultCopyingFiles (KIO::Job*); + void slotResultConflictCopyingFiles (KIO::Job*); + void copyNextFile (); + void slotResultDeletingDirs (KIO::Job*); + void deleteNextDir (); + void skip (const KURL&); + +%If ( KDE_3_3_2 - ) + void slotResultRenaming (KIO::Job*); + +%If ( KDE_3_5_2 - ) + void setNextDirAttribute (); +%End + +%End + + +protected slots: + void slotStart (); + void slotEntries (KIO::Job*, const KIO::UDSEntryList&); + virtual void slotResult (KIO::Job*); + void slotProcessedSize (KIO::Job*, KIO::filesize_t); + void slotTotalSize (KIO::Job*, KIO::filesize_t); + void slotReport (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class CopyJob + + +class DeleteJob : KIO::Job +{ +%TypeHeaderCode +#include <jobclasses.h> +%End + + +public: + DeleteJob (const KURL::List&, bool, bool); + KURL::List urls () const; + +signals: + void totalFiles (KIO::Job*, ulong); + void totalDirs (KIO::Job*, ulong); + void processedFiles (KIO::Job*, ulong); + void processedDirs (KIO::Job*, ulong); + void deleting (KIO::Job*, const KURL&); + +protected slots: + void slotStart (); + void slotEntries (KIO::Job*, const KIO::UDSEntryList&); + virtual void slotResult (KIO::Job*); + void slotProcessedSize (KIO::Job*, KIO::filesize_t); + void slotReport (); + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( - KDE_3_1_0 ) + void startNextJob (); + void deleteNextFile (); + void deleteNextDir (); +%End + + +}; // class DeleteJob + +}; // namespace KIO + + + +%MappedType QValueList<KIO::CopyInfo> +//converts a Python list of KIO::CopyInfo +{ +%TypeHeaderCode +#include <qvaluelist.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList<KIO::CopyInfo> *cpplist = (QValueList<KIO::CopyInfo> *)sipCpp; + PyObject *inst; + + // Get it. + QValueList<KIO::CopyInfo>::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromNewType(new KIO::CopyInfo(*it), sipType_KIO_CopyInfo, NULL)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList<KIO::CopyInfo> *cpplist = new QValueList<KIO::CopyInfo>; + + PyObject *elem; + KIO::CopyInfo *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KIO::CopyInfo *)sipForceConvertToType(elem, sipType_KIO_CopyInfo, 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/kio/kacl.sip b/sip/kio/kacl.sip new file mode 100644 index 0000000..d7d7fe2 --- /dev/null +++ b/sip/kio/kacl.sip @@ -0,0 +1,168 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KACL +{ +%TypeHeaderCode +#include <kacl.h> +%End + + +public: + KACL (const QString&); + KACL (const KACL&); + KACL (mode_t); + KACL (); + bool operator == (const KACL&) const; + bool operator != (const KACL&) const; + bool isValid () const; + ushort ownerPermissions () const; + bool setOwnerPermissions (ushort); + ushort owningGroupPermissions () const; + bool setOwningGroupPermissions (ushort); + ushort othersPermissions () const; + bool setOthersPermissions (ushort); + mode_t basePermissions () const; + bool isExtended () const; + ushort maskPermissions (bool&) const; + bool setMaskPermissions (ushort); + ushort namedUserPermissions (const QString&, bool*) const; + bool setNamedUserPermissions (const QString&, ushort); + ACLUserPermissionsList allUserPermissions () const; + bool setAllUserPermissions (const ACLUserPermissionsList&); + ushort namedGroupPermissions (const QString&, bool*) const; + bool setNamedGroupPermissions (const QString&, ushort); + ACLGroupPermissionsList allGroupPermissions () const; + bool setAllGroupPermissions (const ACLGroupPermissionsList&); + bool setACL (const QString&); + QString asString () const; + +protected: + virtual void virtual_hook (int, void*); + +}; // class KACL + +%End + + +%If ( KDE_3_5_0 - ) +typedef QPair<QString,unsigned short> ACLUserPermissions; +typedef QValueList<ACLUserPermissions> ACLUserPermissionsList; +//igx typedef QValueListIterator<ACLUserPermissions> ACLUserPermissionsIterator; +//igx typedef QValueListConstIterator<ACLUserPermissions> ACLUserPermissionsConstIterator; +//igx typedef QPair<QString,unsigned short> ACLGroupPermissions; +//igx typedef QValueList<ACLGroupPermissions> ACLGroupPermissionsList; +//igx typedef QValueListIterator<ACLGroupPermissions> ACLGroupPermissionsIterator; +//igx typedef QValueListConstIterator<ACLGroupPermissions> ACLGroupPermissionsConstIterator; +//igx QDataStream& operator << (QDataStream&, const KACL&); +//igx QDataStream& operator >> (QDataStream&, KACL&); +//force +typedef ACLUserPermissionsList ACLGroupPermissionsList; +//end +%End + + +%MappedType QValueList<ACLUserPermissions> +//converts a Python list of ACLUserPermissions tuples (QString, int) +{ +%TypeHeaderCode +#include <qvaluelist.h> +#include <qstring.h> +#include <kacl.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList<ACLUserPermissions> *cpplist = (QValueList<ACLUserPermissions> *)sipCpp; + PyObject *inst; + + // Get it. + QValueList<ACLUserPermissions>::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + QString s = (*it).first; + ushort u = (*it).second; + PyObject *pys = sipConvertFromNewType(new QString(s), sipType_QString, sipTransferObj); + if ((pys == NULL) || ((inst = Py_BuildValue ("Ni", pys, u)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_XDECREF (inst); + Py_XDECREF (pys); + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList<ACLUserPermissions> *cpplist = new QValueList<ACLUserPermissions>; + + QString *p1; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + int p1_state; + + PyObject *elem = PyList_GET_ITEM (sipPy, i); + PyObject *pyp1 = PyTuple_GET_ITEM (elem, 0); + p1 = (QString *)sipForceConvertToType(pyp1, sipType_QString, sipTransferObj, SIP_NOT_NONE, &p1_state, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + ushort p2 = (ushort)(PyInt_AS_LONG (PyTuple_GET_ITEM (elem, 1))); + + cpplist->append (ACLUserPermissions (*p1, p2)); + + sipReleaseType(p1, sipType_QString, p1_state); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + diff --git a/sip/kio/kar.sip b/sip/kio/kar.sip new file mode 100644 index 0000000..08560f2 --- /dev/null +++ b/sip/kio/kar.sip @@ -0,0 +1,54 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KAr : KArchive +{ +%TypeHeaderCode +#include <kar.h> +%End + + +public: + KAr (const QString&); + KAr (QIODevice*); + QString fileName (); + virtual bool prepareWriting (const QString&, const QString&, const QString&, uint); + virtual bool doneWriting (uint); + virtual bool writeDir (const QString&, const QString&, const QString&); + +protected: + virtual bool openArchive (int); + virtual bool closeArchive (); + +protected: + virtual void virtual_hook (int, void*); + +}; // class KAr + +%End + diff --git a/sip/kio/karchive.sip b/sip/kio/karchive.sip new file mode 100644 index 0000000..45c634b --- /dev/null +++ b/sip/kio/karchive.sip @@ -0,0 +1,189 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KArchive +{ +%TypeHeaderCode +#include <karchive.h> +%End + + +protected: + KArchive (QIODevice*); + +public: + virtual bool open (int); + virtual void close (); + +%If ( KDE_3_5_0 - ) + bool closeSucceeded () const; +%End + + bool isOpened () const; + int mode () const; + QIODevice* device () const; + const KArchiveDirectory* directory () const; + +%If ( KDE_3_2_0 - ) + bool addLocalFile (const QString&, const QString&); + bool addLocalDirectory (const QString&, const QString&); +%End + + virtual bool writeDir (const QString&, const QString&, const QString&) = 0; + +%If ( KDE_3_2_0 - ) + bool writeDir (const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); + bool writeSymLink (const QString&, const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); +%End + + virtual bool writeFile (const QString&, const QString&, const QString&, uint, const char*); + +%If ( KDE_3_2_0 - ) + bool writeFile (const QString&, const QString&, const QString&, uint, mode_t, time_t, time_t, time_t, const char*); +%End + + virtual bool prepareWriting (const QString&, const QString&, const QString&, uint) = 0; + +%If ( KDE_3_2_0 - ) + bool prepareWriting (const QString&, const QString&, const QString&, uint, mode_t, time_t, time_t, time_t); + bool writeData (const char*, uint); +%End + + virtual bool doneWriting (uint) = 0; + +protected: + virtual bool openArchive (int) = 0; + virtual bool closeArchive () = 0; + virtual KArchiveDirectory* rootDir (); + KArchiveDirectory* findOrCreate (const QString&); + void setDevice (QIODevice*); + void setRootDir (KArchiveDirectory*); + +protected: +//igx virtual void virtual_hook (int, void*); + +%If ( KDE_3_2_0 - ) + bool prepareWriting_impl (const QString&, const QString&, const QString&, uint, mode_t, time_t, time_t, time_t); + bool writeFile_impl (const QString&, const QString&, const QString&, uint, mode_t, time_t, time_t, time_t, const char*); + bool writeDir_impl (const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); + bool writeSymLink_impl (const QString&, const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); + bool writeData_impl (const char*, uint); +%End + + +protected: + +%If ( - KDE_3_1_0 ) + ~KArchive (); +%End + + +}; // class KArchive + + +class KArchiveEntry +{ +%TypeHeaderCode +#include <karchive.h> +%End + + +public: + KArchiveEntry (KArchive*, const QString&, int, int, const QString&, const QString&, const QString&); + QDateTime datetime () const; + int date () const; + QString name () const; + mode_t permissions () const; + QString user () const; + QString group () const; + QString symlink () const; + virtual bool isFile () const; + virtual bool isDirectory () const; + +protected: + KArchive* archive () const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KArchiveEntry + + +class KArchiveFile : KArchiveEntry +{ +%TypeHeaderCode +#include <karchive.h> +%End + + +public: + KArchiveFile (KArchive*, const QString&, int, int, const QString&, const QString&, const QString&, int, int); + int position () const; + int size () const; + +%If ( KDE_3_1_0 - ) + void setSize (int); +%End + + virtual QByteArray data () const; + QIODevice* device () const; + virtual bool isFile () const; + +%If ( KDE_3_1_0 - ) + void copyTo (const QString&) const; +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KArchiveFile + + +class KArchiveDirectory : KArchiveEntry +{ +%TypeHeaderCode +#include <karchive.h> +%End + + +public: + KArchiveDirectory (KArchive*, const QString&, int, int, const QString&, const QString&, const QString&); + QStringList entries () const; + KArchiveEntry* entry (QString); + void addEntry (KArchiveEntry*); + virtual bool isDirectory () const; + +%If ( KDE_3_1_0 - ) + void copyTo (const QString&, bool = 1) const; +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KArchiveDirectory + diff --git a/sip/kio/kautomount.sip b/sip/kio/kautomount.sip new file mode 100644 index 0000000..5a41740 --- /dev/null +++ b/sip/kio/kautomount.sip @@ -0,0 +1,77 @@ +// +// Copyright 2005 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2004 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio 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 KAutoMount : QObject +{ +%TypeHeaderCode +#include <kautomount.h> +%End + + +public: + KAutoMount (bool, const QString&, const QString&, const QString&, const QString&, bool = 1); + +signals: + void finished (); + void error (); + +protected slots: + void slotResult (KIO::Job*); + +protected: +//force + +private: + ~KAutoMount (); +//end + +}; // class KAutoMount + + +class KAutoUnmount : QObject +{ +%TypeHeaderCode +#include <kautomount.h> +%End + + +public: + KAutoUnmount (const QString&, const QString&); + +signals: + void finished (); + void error (); + +protected slots: + void slotResult (KIO::Job*); +//force + +private: + ~KAutoUnmount (); +//end + +}; // class KAutoUnmount + diff --git a/sip/kio/kdatatool.sip b/sip/kio/kdatatool.sip new file mode 100644 index 0000000..3473e4d --- /dev/null +++ b/sip/kio/kdatatool.sip @@ -0,0 +1,172 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDataToolInfo +{ +%TypeHeaderCode +#include <kdatatool.h> +%End + + +public: + KDataToolInfo (); + KDataToolInfo (const KService::Ptr&, KInstance*); + KDataToolInfo (const KDataToolInfo&); + QString dataType () const; + QStringList mimeTypes () const; + bool isReadOnly () const; + QPixmap icon () const; + QPixmap miniIcon () const; + QString iconName () const; + QStringList userCommands () const; + QStringList commands () const; + KDataTool* createTool (QObject* /Transfer/ = 0, const char* = 0) const; + KService::Ptr service () const; + KInstance* instance () const; + bool isValid () const; + static QValueList<KDataToolInfo> query (const QString&, const QString&, KInstance*); + +}; // class KDataToolInfo + + +class KDataToolAction : KAction +{ +%TypeHeaderCode +#include <kdatatool.h> +%End + + +public: + KDataToolAction (const QString&, const KDataToolInfo&, const QString&, QObject* /TransferThis/ = 0, const char* = 0); + static QPtrList<KAction> dataToolActionList (const QValueList<KDataToolInfo>&, const QObject*, const char*); + +signals: + void toolActivated (const KDataToolInfo&, const QString&); + +protected: + virtual void slotActivated (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDataToolAction + + +class KDataTool : QObject +{ +%TypeHeaderCode +#include <kdatatool.h> +%End + + +public: + KDataTool (QObject* /TransferThis/ = 0, const char* = 0); + void setInstance (KInstance*); + KInstance* instance () const; + virtual bool run (const QString&, void*, const QString&, const QString&) = 0; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDataTool + + + +%MappedType QValueList<KDataToolInfo> +//converts a Python list of KDataToolInfo +{ +%TypeHeaderCode +#include <kdatatool.h> +%End + +%ConvertFromTypeCode +// Convert to a Python list of KDataToolInfo + + if (!sipCpp) + return PyList_New(0); + + PyObject *dtiList; + + // Create the list + + if ((dtiList = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QValueList<KDataToolInfo> *dlist = (QValueList<KDataToolInfo> *)sipCpp; + PyObject *inst; + + + QValueList<KDataToolInfo>::Iterator it; + for( it = dlist->begin(); it != dlist->end(); ++it ) + { + if ((inst = sipConvertFromNewType(new KDataToolInfo(*it), sipType_KDataToolInfo, NULL)) == NULL + || PyList_Append (dtiList, inst) < 0) + { + Py_DECREF (dtiList); + return NULL; + } + } + + return dtiList; +%End + + +%ConvertToTypeCode + // Convert a Python list to a KDataToolInfoVList on the heap. + + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList<KDataToolInfo> *dList = new QValueList<KDataToolInfo>; + + PyObject *elem; + KDataToolInfo *d; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + d = (KDataToolInfo *)sipForceConvertToType(elem, sipType_KDataToolInfo, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete dList; + return 0; + } + + dList->append (*d); + } + + *sipCppPtr = dList; + + return 1; +%End +}; + + diff --git a/sip/kio/kdcopservicestarter.sip b/sip/kio/kdcopservicestarter.sip new file mode 100644 index 0000000..fd1684c --- /dev/null +++ b/sip/kio/kdcopservicestarter.sip @@ -0,0 +1,48 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KDCOPServiceStarter +{ +%TypeHeaderCode +#include <kdcopservicestarter.h> +%End + + +public: + static KDCOPServiceStarter* self (); + int findServiceFor (const QString&, const QString& = QString ::null , const QString& = QString ::null , QString* = 0, QCString* = 0, int = 0); + virtual int startServiceFor (const QString&, const QString& = QString ::null , const QString& = QString ::null , QString* = 0, QCString* = 0, int = 0); + +protected: + KDCOPServiceStarter (); + ~KDCOPServiceStarter (); + +}; // class KDCOPServiceStarter + +%End + diff --git a/sip/kio/kdirlister.sip b/sip/kio/kdirlister.sip new file mode 100644 index 0000000..1526279 --- /dev/null +++ b/sip/kio/kdirlister.sip @@ -0,0 +1,267 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDirLister : QObject +{ +%TypeHeaderCode +#include <kdirlister.h> +%End + + +public: + KDirLister (bool = 0); + virtual bool openURL (const KURL&, bool = 0, bool = 0); + virtual void stop (); + virtual void stop (const KURL&); + bool autoUpdate () const; + virtual void setAutoUpdate (bool); + bool autoErrorHandlingEnabled () const; + void setAutoErrorHandlingEnabled (bool, QWidget* /Transfer/); + bool showingDotFiles () const; + virtual void setShowingDotFiles (bool); + bool dirOnlyMode () const; + virtual void setDirOnlyMode (bool); + const KURL& url () const; + +%If ( KDE_3_4_0 - ) + const KURL::List& directories () const; +%End + + virtual void emitChanges (); + virtual void updateDirectory (const KURL&); + bool isFinished () const; + KFileItem* rootItem () const; + virtual KFileItem* findByURL (const KURL&) const; + KFileItem* find (const KURL&) const; + virtual KFileItem* findByName (const QString&) const; + virtual void setNameFilter (const QString&); + const QString& nameFilter () const; + virtual void setMimeFilter (const QStringList&); + +%If ( KDE_3_1_0 - ) + void setMimeExcludeFilter (const QStringList&); +%End + + virtual void clearMimeFilter (); + const QStringList& mimeFilters () const; + bool matchesFilter (const QString&) const; + bool matchesMimeFilter (const QString&) const; + +%If ( KDE_3_1_0 - ) + void setMainWindow (QWidget*); + QWidget* mainWindow (); + + enum WhichItems + { + AllItems, + FilteredItems + }; + + KFileItemList items (KDirLister::WhichItems = FilteredItems ) const; + KFileItemList itemsForDir (const KURL&, KDirLister::WhichItems = FilteredItems ) const; +%End + + +signals: + void started (const KURL&); + void completed (); + void completed (const KURL&); + void canceled (); + void canceled (const KURL&); + void redirection (const KURL&); + void redirection (const KURL&, const KURL&); + void clear (); + void clear (const KURL&); + void newItems (const KFileItemList&); + void itemsFilteredByMime (const KFileItemList&); + void deleteItem (KFileItem*); + void refreshItems (const KFileItemList&); + void infoMessage (const QString&); + void percent (int); + void totalSize (KIO::filesize_t); + void processedSize (KIO::filesize_t); + void speed (int); + +protected: + virtual bool matchesFilter (const KFileItem*) const; + virtual bool matchesMimeFilter (const KFileItem*) const; + virtual bool doNameFilter (const QString&, const QPtrList<QRegExp>&) const; + virtual bool doMimeFilter (const QString&, const QStringList&) const; + +%If ( KDE_3_1_0 - ) + bool doMimeExcludeFilter (const QString&, const QStringList&) const; +%End + + virtual bool validURL (const KURL&) const; + virtual void handleError (KIO::Job*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDirLister + + + +%MappedType KFileItemList +//converts a Python list of KFileItem +{ +%TypeHeaderCode +#include <kfileitem.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList<KFileItem> *cpplist = (QPtrList<KFileItem> *)sipCpp; + KFileItem *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_KFileItem, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList<KFileItem> *cpplist = new QPtrList<KFileItem>; + + PyObject *elem; + KFileItem *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KFileItem *)sipForceConvertToType(elem, sipType_KFileItem, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + +%MappedType QPtrList<QRegExp> +//converts a Python list of QRegExp +{ +%TypeHeaderCode +#include <qregexp.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList<QRegExp> *cpplist = (QPtrList<QRegExp> *)sipCpp; + QRegExp *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_QRegExp, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList<QRegExp> *cpplist = new QPtrList<QRegExp>; + + PyObject *elem; + QRegExp *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (QRegExp *)sipForceConvertToType(elem, sipType_QRegExp, 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/kio/kdirnotify.sip b/sip/kio/kdirnotify.sip new file mode 100644 index 0000000..1f3fbb9 --- /dev/null +++ b/sip/kio/kdirnotify.sip @@ -0,0 +1,57 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDirNotify : DCOPObject +{ +%TypeHeaderCode +#include <kdirnotify.h> +%End + + +public: + +%If ( KDE_3_1_4 - ) + virtual bool process (const QCString&, const QByteArray&, QCString&, QByteArray&); + QCStringList functions (); + QCStringList interfaces (); +%End + + +protected: + KDirNotify (); + ~KDirNotify (); + +public: + virtual void FilesAdded (const KURL&) = 0; + virtual void FilesRemoved (const KURL::List&) = 0; + virtual void FilesChanged (const KURL::List&) = 0; + virtual void FileRenamed (const KURL&, const KURL&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDirNotify + diff --git a/sip/kio/kdirwatch.sip b/sip/kio/kdirwatch.sip new file mode 100644 index 0000000..41867dd --- /dev/null +++ b/sip/kio/kdirwatch.sip @@ -0,0 +1,96 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDirWatch : QObject +{ +%TypeHeaderCode +#include <kdirwatch.h> +%End + + +public: + KDirWatch (QObject* /TransferThis/ = 0, const char* = 0); + void addDir (const QString&, bool = 0, bool = 0); + void addFile (const QString&); + QDateTime ctime (const QString&); + void removeDir (const QString&); + void removeFile (const QString&); + bool stopDirScan (const QString&); + bool restartDirScan (const QString&); + void startScan (bool = 0, bool = 0); + void stopScan (); + bool isStopped (); + bool contains (const QString&) const; + static void statistics (); + void setCreated (const QString&); + void setDirty (const QString&); + void setDeleted (const QString&); + +%If ( KDE_3_5_1 - ) + + enum Method + { + FAM, + DNotify, + Stat, + INotify + }; + +%End + + +%If ( KDE_3_2_0 - ) + KDirWatch::Method internalMethod (); +%End + + static KDirWatch* self (); + +%If ( KDE_3_1_0 - ) + static bool exists (); +%End + + +signals: + void dirty (const QString&); + void created (const QString&); + void deleted (const QString&); + +public: + +%If ( KDE_3_2_0 - KDE_3_5_1 ) + + enum Method + { + FAM, + DNotify, + Stat + }; + +%End + + +}; // class KDirWatch + diff --git a/sip/kio/kemailsettings.sip b/sip/kio/kemailsettings.sip new file mode 100644 index 0000000..8041d0b --- /dev/null +++ b/sip/kio/kemailsettings.sip @@ -0,0 +1,84 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KEMailSettings +{ +%TypeHeaderCode +#include <kemailsettings.h> +%End + + +public: + + enum Setting + { + ClientProgram, + ClientTerminal, + RealName, + EmailAddress, + ReplyToAddress, + Organization, + OutServer, + OutServerLogin, + OutServerPass, + OutServerType, + OutServerCommand, + OutServerTLS, + InServer, + InServerLogin, + InServerPass, + InServerType, + InServerMBXType, + InServerTLS + }; + + + enum Extension + { + POP3, + SMTP, + OTHER + }; + + KEMailSettings (); + QStringList profiles () const; + QString currentProfileName () const; + void setProfile (const QString&); + QString defaultProfileName () const; + void setDefault (const QString&); + QString getSetting (KEMailSettings::Setting); + void setSetting (KEMailSettings::Setting, const QString&); + +public: + +%If ( - KDE_3_2_0 ) +//ig QString getExtendedSetting (KEMailSettings::Extension, const QString&); +//ig void setExtendedSetting (KEMailSettings::Extension, const QString&, const QString&); +%End + + +}; // class KEMailSettings + diff --git a/sip/kio/kfilefilter.sip b/sip/kio/kfilefilter.sip new file mode 100644 index 0000000..cbe6561 --- /dev/null +++ b/sip/kio/kfilefilter.sip @@ -0,0 +1,81 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KFileFilter +{ +%TypeHeaderCode +#include <kfilefilter.h> +%End + + +public: + virtual bool passesFilter (const KFileItem*) const = 0; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFileFilter + + +class KSimpleFileFilter : KFileFilter +{ +%TypeHeaderCode +#include <kfilefilter.h> +%End + + +public: + KSimpleFileFilter (); + virtual void setFilterDotFiles (bool); + bool filterDotFiles () const; + virtual void setFilterSpecials (bool); + bool filterSpecials () const; + +%If ( KDE_3_1_0 - ) + void setNameFilters (const QString&, bool, const QChar& = ' '); +%End + + virtual void setNameFilters (const QString&); + virtual void setMimeFilters (const QStringList&); + QStringList mimeFilters () const; + virtual void setModeFilter (mode_t); + mode_t modeFilter () const; + virtual bool passesFilter (const KFileItem*) const; + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_2_0 ) +//ig QString nameFilters () const; +%End + + +}; // class KSimpleFileFilter + diff --git a/sip/kio/kfileitem.sip b/sip/kio/kfileitem.sip new file mode 100644 index 0000000..3bba31c --- /dev/null +++ b/sip/kio/kfileitem.sip @@ -0,0 +1,171 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KFileItem +{ +%TypeHeaderCode +#include <kfileitem.h> +%End + + +public: + + enum + { + Unknown + }; + + KFileItem (const KIO::UDSEntry&, const KURL&, bool = 0, bool = 0); + KFileItem (mode_t, mode_t, const KURL&, bool = 0); + KFileItem (const KURL&, const QString&, mode_t); + KFileItem (const KFileItem&); + void refresh (); + void refreshMimeType (); + const KURL& url () const; + void setURL (const KURL&); + +%If ( KDE_3_2_0 - ) + void setName (const QString&); +%End + + mode_t permissions () const; + QString permissionsString () const; + +%If ( KDE_3_5_0 - ) + bool hasExtendedACL () const; + KACL ACL () const; + KACL defaultACL () const; +%End + + mode_t mode () const; + QString user () const; + QString group () const; + bool isLink () const; + bool isDir () const; + bool isFile () const; + bool isReadable () const; + +%If ( KDE_3_4_0 - ) + bool isWritable () const; +%End + + +%If ( KDE_3_3_0 - ) + bool isHidden () const; +%End + + QString linkDest () const; + +%If ( KDE_3_4_0 - ) + QString localPath () const; +%End + + KIO::filesize_t size () const; + +%If ( KDE_3_5_0 - ) + KIO::filesize_t size (bool& /Out/) const /PyName=sizeAndExists/; +%End + + time_t time (uint) const; + +%If ( KDE_3_5_0 - ) + time_t time (uint, bool& /Out/) const /PyName=timeAndHasTime/; +%End + + QString timeString (uint = KIO ::UDS_MODIFICATION_TIME ) const; + bool isLocalFile () const; + const QString& text () const; + const QString& name (bool = 0) const; + QString mimetype () const; + KMimeType::Ptr determineMimeType (); + KMimeType::Ptr mimeTypePtr (); + bool isMimeTypeKnown () const; + QString mimeComment (); + QString iconName (); + QPixmap pixmap (int, int = 0) const; + int overlays () const; + QString getStatusBarInfo (); + QString getToolTipText (int = 6); + bool acceptsDrops (); + void run (); + const KIO::UDSEntry& entry () const; + bool isMarked () const; + void mark (); + void unmark (); + bool cmp (const KFileItem&); +//ig virtual void setExtraData (const void*, void*); +//ig virtual const void* extraData (const void*) const; +//ig virtual void removeExtraData (const void*); + void setMetaInfo (const KFileMetaInfo&); + +%If ( KDE_3_5_0 - ) + void setFileMode (mode_t); + void setMimeType (const QString&); +%End + + const KFileMetaInfo& metaInfo (bool = 1, int = KFileMetaInfo ::Fastest ) const; + void assign (const KFileItem&); + +%If ( KDE_3_4_3 - ) + void setUDSEntry (const KIO::UDSEntry&, const KURL&, bool = 0, bool = 0); +%End + + +%If ( KDE_3_4_0 - ) + KURL mostLocalURL (bool&) const; +%End + + +protected: + void init (bool); + +%If ( KDE_3_4_3 - ) + void readUDSEntry (bool); +%End + + QString parsePermissions (mode_t) const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFileItem + +typedef QPtrList<KFileItem> KFileItemList; + +%If ( KDE_3_1_4 - ) +//ig typedef QPtrListIterator<KFileItem> KFileItemListIterator; + +%If ( KDE_3_2_0 - ) +//igx QDataStream& operator << (QDataStream&, const KFileItem&); +//igx QDataStream& operator >> (QDataStream&, KFileItem&); +%End + +%End + + +%If ( - KDE_3_1_4 ) +//ig typedef QListIterator<KFileItem> KFileItemListIterator; +%End diff --git a/sip/kio/kfilemetainfo.sip b/sip/kio/kfilemetainfo.sip new file mode 100644 index 0000000..77b5871 --- /dev/null +++ b/sip/kio/kfilemetainfo.sip @@ -0,0 +1,458 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KFileMimeTypeInfo +{ +%TypeHeaderCode +#include <kfilemetainfo.h> +%End + + +public: + KFileMimeTypeInfo (); + +%If ( KDE_3_3_0 - ) + + enum Attributes + { + Addable, + Removable, + Modifiable, + Cumulative, + Cummulative, + Averaged, + MultiLine, + SqueezeText + }; + +%End + + + enum Hint + { + NoHint, + Name, + Author, + Description, + Width, + Height, + Size, + Bitrate, + Length, + Hidden, + Thumbnail + }; + + +%If ( KDE_3_3_0 - ) + + enum Unit + { + NoUnit, + Seconds, + MilliSeconds, + BitsPerSecond, + Pixels, + Inches, + Centimeters, + Bytes, + FramesPerSecond, + DotsPerInch, + BitsPerPixel, + Hertz, + KiloBytes, + Millimeters + }; + +%End + + + class GroupInfo + { + + public: + QStringList supportedKeys () const; + const QString& name () const; + const QString& translatedName () const; + const KFileMimeTypeInfo::ItemInfo* itemInfo (const QString&) const; + uint attributes () const; + bool supportsVariableKeys () const; + const KFileMimeTypeInfo::ItemInfo* variableItemInfo () const; + + private: + GroupInfo (const QString&, const QString&); + + }; // class GroupInfo + + +public: + + class ItemInfo + { + + public: + ItemInfo (); + const QString& prefix () const; + const QString& suffix () const; + QVariant::Type type () const; + const QString& key () const; + +%If ( KDE_3_1_0 - ) + QString string (const QVariant&, bool = 1) const; +%End + + bool isVariableItem () const; + const QString& translatedKey () const; + uint attributes () const; + uint hint () const; + uint unit () const; + + private: + ItemInfo (const QString&, const QString&, QVariant::Type); + + }; // class ItemInfo + + +public: + QValidator* createValidator (const QString&, const QString&, QObject* /Transfer/ = 0, const char* = 0) const; + QStringList supportedGroups () const; + QStringList translatedGroups () const; + QStringList preferredGroups () const; + QString mimeType () const; + const KFileMimeTypeInfo::GroupInfo* groupInfo (const QString&) const; + QStringList supportedKeys () const; + QStringList preferredKeys () const; + KFileMimeTypeInfo::GroupInfo* addGroupInfo (const QString&, const QString&); + QString m_translatedName; + QStringList m_supportedKeys; + uint m_attr; +//ig QDict<ItemInfo> m_itemDict; + +protected: + KFileMimeTypeInfo (const QString&); + +public: + +%If ( KDE_3_1_0 - KDE_3_3_0 ) + + enum Attributes + { + Addable, + Removable, + Modifiable, + Cummulative, + Averaged, + MultiLine, + SqueezeText + }; + +%End + + +public: + +%If ( - KDE_3_1_0 ) + + enum Attributes + { + Addable, + Removable, + Modifiable, + Cummulative, + Averaged + }; + +%End + + +}; // class KFileMimeTypeInfo + + +class KFileMetaInfoItem +{ +%TypeHeaderCode +#include <kfilemetainfo.h> +%End + + +public: + typedef KFileMimeTypeInfo::Hint Hint; +//ig typedef KFileMimeTypeInfo::Unit Unit; + typedef KFileMimeTypeInfo::Attributes Attributes; + KFileMetaInfoItem (const KFileMimeTypeInfo::ItemInfo*, const QString&, const QVariant&); + KFileMetaInfoItem (const KFileMetaInfoItem&); + KFileMetaInfoItem (); + QString key () const; + QString translatedKey () const; + const QVariant& value () const; + QString string (bool = 1) const; + bool setValue (const QVariant&); + QVariant::Type type () const; + bool isEditable () const; + bool isRemoved () const; + bool isModified () const; + QString prefix () const; + QString suffix () const; + uint hint () const; +//ig uint unit () const; + uint attributes () const; + bool isValid () const; + +protected: + void setAdded (); + +%If ( KDE_3_1_0 - ) + void setRemoved (); +%End + + void ref (); + void deref (); + +}; // class KFileMetaInfoItem + + +class KFileMetaInfoGroup +{ +%TypeHeaderCode +#include <kfilemetainfo.h> +%End + + +public: + KFileMetaInfoGroup (const QString&, const KFileMimeTypeInfo*); + KFileMetaInfoGroup (const KFileMetaInfoGroup&); + KFileMetaInfoGroup (); + bool isValid () const; + bool isEmpty () const; + +%If ( KDE_3_1_0 - ) + bool isModified () const; + +%If ( KDE_3_1_4 - ) + KFileMetaInfoItem operator [] (const QString&) const; +%MethodCode +//returns (KFileMetaInfoItem) +//takes key | (QString) + sipRes = &((*sipCpp) [(const QString&) *a0]); +%End + +%End + +%End + + KFileMetaInfoItem item (const QString&) const; + KFileMetaInfoItem item (uint) const; + const QVariant value (const QString&) const; + QStringList supportedKeys () const; + bool supportsVariableKeys () const; + bool contains (const QString&) const; + QStringList keys () const; + QStringList preferredKeys () const; + KFileMetaInfoItem addItem (const QString&); + bool removeItem (const QString&); + QStringList removedItems (); + QString name () const; + +%If ( KDE_3_2_0 - ) + QString translatedName () const; +%End + + uint attributes () const; + +protected: + void setAdded (); + KFileMetaInfoItem appendItem (const QString&, const QVariant&); + void ref (); + void deref (); + +}; // class KFileMetaInfoGroup + + +class KFileMetaInfo +{ +%TypeHeaderCode +#include <kfilemetainfo.h> +%End + + +public: + typedef KFileMimeTypeInfo::Hint Hint; +//ig typedef KFileMimeTypeInfo::Unit Unit; + typedef KFileMimeTypeInfo::Attributes Attributes; + + enum What + { + Fastest, + DontCare, + TechnicalInfo, + ContentInfo, + ExtenedAttr, + Thumbnail, + Preferred, + Everything + }; + + KFileMetaInfo (const QString&, const QString& = QString ::null , uint = Fastest ); + +%If ( KDE_3_2_0 - ) + KFileMetaInfo (const KURL&, const QString& = QString ::null , uint = Fastest ); +%End + + KFileMetaInfo (); + KFileMetaInfo (const KFileMetaInfo&); + QStringList groups () const; + QStringList supportedGroups () const; + QStringList preferredGroups () const; + QStringList preferredKeys () const; + QStringList supportedKeys () const; + QStringList editableGroups () const; + KFileMetaInfoItem item (const QString&) const; + KFileMetaInfoItem item (const Hint) const; + KFileMetaInfoItem saveItem (const QString&, const QString& = QString ::null , bool = 1); + KFileMetaInfoGroup group (const QString&) const; + +%If ( KDE_3_1_4 - ) + KFileMetaInfoGroup operator [] (const QString&) const; +%MethodCode +//returns (KFileMetaInfoGroup) +//takes key | (QString) + sipRes = &((*sipCpp) [(const QString&)*a0]); +%End + +%End + + bool addGroup (const QString&); + bool removeGroup (const QString&); + QStringList removedGroups (); + bool applyChanges (); + +%If ( KDE_3_5_3 - ) + bool applyChanges (const QString&); +%End + + bool contains (const QString&) const; + bool containsGroup (const QString&) const; + const QVariant value (const QString&) const; + bool isValid () const; + bool isEmpty () const; + QString mimeType () const; + QString path () const; + +%If ( KDE_3_2_0 - ) + KURL url () const; +%End + + +protected: + KFileMetaInfoGroup appendGroup (const QString&); + KFilePlugin* plugin () const; + void ref (); + void deref (); + +}; // class KFileMetaInfo + + +class KFilePlugin : QObject +{ +%TypeHeaderCode +#include <kfilemetainfo.h> +%End + + +public: + KFilePlugin (QObject* /TransferThis/, const char*, const QStringList&); + virtual bool readInfo (KFileMetaInfo&, uint = KFileMetaInfo ::Fastest ) = 0; + virtual bool writeInfo (const KFileMetaInfo&) const; + virtual QValidator* createValidator (const QString&, const QString&, const QString&, QObject*, const char*) const; + +protected: + KFileMimeTypeInfo* addMimeTypeInfo (const QString&); + KFileMimeTypeInfo::GroupInfo* addGroupInfo (KFileMimeTypeInfo*, const QString&, const QString&) const; + void setAttributes (KFileMimeTypeInfo::GroupInfo*, uint) const; + void addVariableInfo (KFileMimeTypeInfo::GroupInfo*, QVariant::Type, uint) const; + KFileMimeTypeInfo::ItemInfo* addItemInfo (KFileMimeTypeInfo::GroupInfo*, const QString&, const QString&, QVariant::Type); + void setAttributes (KFileMimeTypeInfo::ItemInfo*, uint); + void setHint (KFileMimeTypeInfo::ItemInfo*, uint); + void setUnit (KFileMimeTypeInfo::ItemInfo*, uint); + void setPrefix (KFileMimeTypeInfo::ItemInfo*, const QString&); + void setSuffix (KFileMimeTypeInfo::ItemInfo*, const QString&); + KFileMetaInfoGroup appendGroup (KFileMetaInfo&, const QString&); + void appendItem (KFileMetaInfoGroup&, const QString&, QVariant); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFilePlugin + + +class KFileMetaInfoProvider : QObject +{ +%TypeHeaderCode +#include <kfilemetainfo.h> +%End + + +public: + static KFileMetaInfoProvider* self (); + KFilePlugin* plugin (const QString&); + +%If ( KDE_3_4_0 - ) + KFilePlugin* plugin (const QString&, const QString&); +%End + + const KFileMimeTypeInfo* mimeTypeInfo (const QString&); + +%If ( KDE_3_4_0 - ) + const KFileMimeTypeInfo* mimeTypeInfo (const QString&, const QString&); +%End + + QStringList preferredKeys (const QString&) const; + QStringList preferredGroups (const QString&) const; + +%If ( KDE_3_1_0 - ) + QStringList supportedMimeTypes () const; +%End + + +protected: +//ig KFileMetaInfoProvider (); +//force + +private: + KFileMetaInfoProvider (); +//end + +}; // class KFileMetaInfoProvider + + +%If ( KDE_3_1_4 - ) +//igx QDataStream& operator << (QDataStream&, const KFileMetaInfoItem&); +//igx QDataStream& operator >> (QDataStream&, KFileMetaInfoItem&); +//igx QDataStream& operator << (QDataStream&, const KFileMetaInfoGroup&); +//igx QDataStream& operator >> (QDataStream&, KFileMetaInfoGroup&); +//igx QDataStream& operator << (QDataStream&, const KFileMetaInfo&); +//igx QDataStream& operator >> (QDataStream&, KFileMetaInfo&); +%End diff --git a/sip/kio/kfileshare.sip b/sip/kio/kfileshare.sip new file mode 100644 index 0000000..69c5236 --- /dev/null +++ b/sip/kio/kfileshare.sip @@ -0,0 +1,87 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +//ig class KFileSharePrivate : QObject; + + +%If ( KDE_3_1_0 - ) + +class KFileShare +{ +%TypeHeaderCode +#include <kfileshare.h> +%End + + +public: + static void readConfig (); + +%If ( KDE_3_3_0 - ) + static void readShareList (); +%End + + static bool isDirectoryShared (const QString&); + + enum Authorization + { + NotInitialized, + ErrorNotFound, + Authorized, + UserNotAllowed + }; + + static KFileShare::Authorization authorization (); + static QString findExe (const char*); + static bool setShared (const QString&, bool); + +%If ( KDE_3_3_0 - ) + + enum ShareMode + { + Simple, + Advanced + }; + + static bool sharingEnabled (); + static bool isRestricted (); + static QString fileShareGroup (); + static KFileShare::ShareMode shareMode (); + static bool sambaEnabled (); + static bool nfsEnabled (); +%End + + +public: + +%If ( - KDE_3_1_5 ) +//ig static bool setShared (const QString&, bool, bool); +%End + + +}; // class KFileShare + +%End + diff --git a/sip/kio/kfilterbase.sip b/sip/kio/kfilterbase.sip new file mode 100644 index 0000000..bf931bc --- /dev/null +++ b/sip/kio/kfilterbase.sip @@ -0,0 +1,74 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KFilterBase : QObject +{ +%TypeHeaderCode +#include <qobject.h> +#include <kfilterbase.h> +%End + + +public: + KFilterBase (); + +%If ( KDE_3_1_2 - ) + void setDevice (QIODevice*, bool = 0); +%End + + QIODevice* device (); + virtual void init (int) = 0; + virtual int mode () const = 0; + virtual void terminate (); + virtual void reset (); + virtual bool readHeader () = 0; + virtual bool writeHeader (const QCString&) = 0; + virtual void setOutBuffer (char*, uint) = 0; + virtual void setInBuffer (const char*, uint) = 0; + virtual bool inBufferEmpty () const; + virtual int inBufferAvailable () const = 0; + virtual bool outBufferFull () const; + virtual int outBufferAvailable () const = 0; + + enum Result + { + OK, + END, + ERROR + }; + + virtual Result uncompress () = 0; + virtual KFilterBase::Result compress (bool) = 0; + static KFilterBase* findFilterByFileName (const QString&); + static KFilterBase* findFilterByMimeType (const QString&); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFilterBase + diff --git a/sip/kio/kfilterdev.sip b/sip/kio/kfilterdev.sip new file mode 100644 index 0000000..37bd1dc --- /dev/null +++ b/sip/kio/kfilterdev.sip @@ -0,0 +1,73 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KFilterDev : QIODevice +{ +%TypeHeaderCode +#include <kfilterdev.h> +%End + + +public: + KFilterDev (KFilterBase*, bool); + virtual bool open (int); + virtual void close (); + virtual void flush (); + void setOrigFileName (const QCString&); + +%If ( KDE_3_1_0 - ) + void setSkipHeaders (); +%End + + virtual QIODevice::Offset size () const; + virtual QIODevice::Offset at () const; + virtual bool at (QIODevice::Offset); + virtual bool atEnd () const; +//ig virtual Q_LONG readBlock (char*, Q_ULONG); +//ig virtual Q_LONG writeBlock (const char*, Q_ULONG); + virtual int getch (); + virtual int putch (int); + virtual int ungetch (int); + static QIODevice* createFilterDevice (KFilterBase*, QFile*); + +public: + static QIODevice* deviceForFile (const QString&, const QString& = QString ::null , bool = 0); + static QIODevice* device (QIODevice*, const QString&); + +%If ( KDE_3_1_0 - ) + static QIODevice* device (QIODevice*, const QString&, bool); +%End + + +public: + +%If ( - KDE_3_2_2 ) + virtual long writeBlock (const char*, ulong); +%End + + +}; // class KFilterDev + diff --git a/sip/kio/kimageio.sip b/sip/kio/kimageio.sip new file mode 100644 index 0000000..879506f --- /dev/null +++ b/sip/kio/kimageio.sip @@ -0,0 +1,59 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KImageIO +{ +%TypeHeaderCode +#include <kimageio.h> +%End + + +public: + + enum Mode + { + Reading, + Writing + }; + + static void registerFormats (); + static bool canWrite (const QString&); + static bool canRead (const QString&); + static QStringList types (KImageIO::Mode = Writing ); + static QString pattern (KImageIO::Mode = Reading ); + static QString suffix (const QString&); + +%If ( KDE_3_1_0 - ) + static QString typeForMime (const QString&); +%End + + static QString type (const QString&); + static QStringList mimeTypes (KImageIO::Mode = Writing ); + static bool isSupported (const QString&, KImageIO::Mode = Writing ); + static QString mimeType (const QString&); + +}; // class KImageIO + diff --git a/sip/kio/kio-kde310.diff b/sip/kio/kio-kde310.diff new file mode 100644 index 0000000..89a40fb --- /dev/null +++ b/sip/kio/kio-kde310.diff @@ -0,0 +1,5 @@ ++ %Include davjob.sip ++ %Include kar.sip ++ %Include kfileshare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde311.diff b/sip/kio/kio-kde311.diff new file mode 100644 index 0000000..de04c4f --- /dev/null +++ b/sip/kio/kio-kde311.diff @@ -0,0 +1,4 @@ ++ %Include davjob.sip ++ %Include kar.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde312.diff b/sip/kio/kio-kde312.diff new file mode 100644 index 0000000..89a40fb --- /dev/null +++ b/sip/kio/kio-kde312.diff @@ -0,0 +1,5 @@ ++ %Include davjob.sip ++ %Include kar.sip ++ %Include kfileshare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde313.diff b/sip/kio/kio-kde313.diff new file mode 100644 index 0000000..89a40fb --- /dev/null +++ b/sip/kio/kio-kde313.diff @@ -0,0 +1,5 @@ ++ %Include davjob.sip ++ %Include kar.sip ++ %Include kfileshare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde314.diff b/sip/kio/kio-kde314.diff new file mode 100644 index 0000000..89a40fb --- /dev/null +++ b/sip/kio/kio-kde314.diff @@ -0,0 +1,5 @@ ++ %Include davjob.sip ++ %Include kar.sip ++ %Include kfileshare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde315.diff b/sip/kio/kio-kde315.diff new file mode 100644 index 0000000..89a40fb --- /dev/null +++ b/sip/kio/kio-kde315.diff @@ -0,0 +1,5 @@ ++ %Include davjob.sip ++ %Include kar.sip ++ %Include kfileshare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde320.diff b/sip/kio/kio-kde320.diff new file mode 100644 index 0000000..5124944 --- /dev/null +++ b/sip/kio/kio-kde320.diff @@ -0,0 +1,6 @@ ++ %Include davjob.sip ++ %Include kar.sip ++ %Include kdcopservicestarter.sip ++ %Include kfileshare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde321.diff b/sip/kio/kio-kde321.diff new file mode 100644 index 0000000..5124944 --- /dev/null +++ b/sip/kio/kio-kde321.diff @@ -0,0 +1,6 @@ ++ %Include davjob.sip ++ %Include kar.sip ++ %Include kdcopservicestarter.sip ++ %Include kfileshare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde322.diff b/sip/kio/kio-kde322.diff new file mode 100644 index 0000000..5124944 --- /dev/null +++ b/sip/kio/kio-kde322.diff @@ -0,0 +1,6 @@ ++ %Include davjob.sip ++ %Include kar.sip ++ %Include kdcopservicestarter.sip ++ %Include kfileshare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde323.diff b/sip/kio/kio-kde323.diff new file mode 100644 index 0000000..5124944 --- /dev/null +++ b/sip/kio/kio-kde323.diff @@ -0,0 +1,6 @@ ++ %Include davjob.sip ++ %Include kar.sip ++ %Include kdcopservicestarter.sip ++ %Include kfileshare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde330.diff b/sip/kio/kio-kde330.diff new file mode 100644 index 0000000..901fbeb --- /dev/null +++ b/sip/kio/kio-kde330.diff @@ -0,0 +1,10 @@ ++ %Include davjob.sip ++ %Include kar.sip ++ %Include kdcopservicestarter.sip ++ %Include kfileshare.sip ++ %Include kmimetypechooser.sip ++ %Include knfsshare.sip ++ %Include kremoteencoding.sip ++ %Include ksambashare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde331.diff b/sip/kio/kio-kde331.diff new file mode 100644 index 0000000..901fbeb --- /dev/null +++ b/sip/kio/kio-kde331.diff @@ -0,0 +1,10 @@ ++ %Include davjob.sip ++ %Include kar.sip ++ %Include kdcopservicestarter.sip ++ %Include kfileshare.sip ++ %Include kmimetypechooser.sip ++ %Include knfsshare.sip ++ %Include kremoteencoding.sip ++ %Include ksambashare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde332.diff b/sip/kio/kio-kde332.diff new file mode 100644 index 0000000..901fbeb --- /dev/null +++ b/sip/kio/kio-kde332.diff @@ -0,0 +1,10 @@ ++ %Include davjob.sip ++ %Include kar.sip ++ %Include kdcopservicestarter.sip ++ %Include kfileshare.sip ++ %Include kmimetypechooser.sip ++ %Include knfsshare.sip ++ %Include kremoteencoding.sip ++ %Include ksambashare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde340.diff b/sip/kio/kio-kde340.diff new file mode 100644 index 0000000..324b1d4 --- /dev/null +++ b/sip/kio/kio-kde340.diff @@ -0,0 +1,11 @@ ++ %Include davjob.sip ++ %Include forwardingslavebase.sip ++ %Include kar.sip ++ %Include kdcopservicestarter.sip ++ %Include kfileshare.sip ++ %Include kmimetypechooser.sip ++ %Include knfsshare.sip ++ %Include kremoteencoding.sip ++ %Include ksambashare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde341.diff b/sip/kio/kio-kde341.diff new file mode 100644 index 0000000..324b1d4 --- /dev/null +++ b/sip/kio/kio-kde341.diff @@ -0,0 +1,11 @@ ++ %Include davjob.sip ++ %Include forwardingslavebase.sip ++ %Include kar.sip ++ %Include kdcopservicestarter.sip ++ %Include kfileshare.sip ++ %Include kmimetypechooser.sip ++ %Include knfsshare.sip ++ %Include kremoteencoding.sip ++ %Include ksambashare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde342.diff b/sip/kio/kio-kde342.diff new file mode 100644 index 0000000..324b1d4 --- /dev/null +++ b/sip/kio/kio-kde342.diff @@ -0,0 +1,11 @@ ++ %Include davjob.sip ++ %Include forwardingslavebase.sip ++ %Include kar.sip ++ %Include kdcopservicestarter.sip ++ %Include kfileshare.sip ++ %Include kmimetypechooser.sip ++ %Include knfsshare.sip ++ %Include kremoteencoding.sip ++ %Include ksambashare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde343.diff b/sip/kio/kio-kde343.diff new file mode 100644 index 0000000..324b1d4 --- /dev/null +++ b/sip/kio/kio-kde343.diff @@ -0,0 +1,11 @@ ++ %Include davjob.sip ++ %Include forwardingslavebase.sip ++ %Include kar.sip ++ %Include kdcopservicestarter.sip ++ %Include kfileshare.sip ++ %Include kmimetypechooser.sip ++ %Include knfsshare.sip ++ %Include kremoteencoding.sip ++ %Include ksambashare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde350.diff b/sip/kio/kio-kde350.diff new file mode 100644 index 0000000..3d0cb01 --- /dev/null +++ b/sip/kio/kio-kde350.diff @@ -0,0 +1,12 @@ ++ %Include davjob.sip ++ %Include forwardingslavebase.sip ++ %Include kacl.sip ++ %Include kar.sip ++ %Include kdcopservicestarter.sip ++ %Include kfileshare.sip ++ %Include kmimetypechooser.sip ++ %Include knfsshare.sip ++ %Include kremoteencoding.sip ++ %Include ksambashare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde351.diff b/sip/kio/kio-kde351.diff new file mode 100644 index 0000000..3d0cb01 --- /dev/null +++ b/sip/kio/kio-kde351.diff @@ -0,0 +1,12 @@ ++ %Include davjob.sip ++ %Include forwardingslavebase.sip ++ %Include kacl.sip ++ %Include kar.sip ++ %Include kdcopservicestarter.sip ++ %Include kfileshare.sip ++ %Include kmimetypechooser.sip ++ %Include knfsshare.sip ++ %Include kremoteencoding.sip ++ %Include ksambashare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde352.diff b/sip/kio/kio-kde352.diff new file mode 100644 index 0000000..3d0cb01 --- /dev/null +++ b/sip/kio/kio-kde352.diff @@ -0,0 +1,12 @@ ++ %Include davjob.sip ++ %Include forwardingslavebase.sip ++ %Include kacl.sip ++ %Include kar.sip ++ %Include kdcopservicestarter.sip ++ %Include kfileshare.sip ++ %Include kmimetypechooser.sip ++ %Include knfsshare.sip ++ %Include kremoteencoding.sip ++ %Include ksambashare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde353.diff b/sip/kio/kio-kde353.diff new file mode 100644 index 0000000..3d0cb01 --- /dev/null +++ b/sip/kio/kio-kde353.diff @@ -0,0 +1,12 @@ ++ %Include davjob.sip ++ %Include forwardingslavebase.sip ++ %Include kacl.sip ++ %Include kar.sip ++ %Include kdcopservicestarter.sip ++ %Include kfileshare.sip ++ %Include kmimetypechooser.sip ++ %Include knfsshare.sip ++ %Include kremoteencoding.sip ++ %Include ksambashare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kiomod.sip.in b/sip/kio/kiomod.sip.in new file mode 100644 index 0000000..84984ed --- /dev/null +++ b/sip/kio/kiomod.sip.in @@ -0,0 +1,97 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio 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 kio + +%Import qt/qtmod.sip +%Import qtxml/qtxmlmod.sip +%Import dcopmod.sip +%Import kdecoremod.sip +%Import kdefxmod.sip +%Import kdeuimod.sip + +%Include authinfo.sip +%Include chmodjob.sip +%Include connection.sip +%Include defaultprogress.sip +%Include global.sip +%Include job.sip +%Include jobclasses.sip +%Include karchive.sip +%Include kautomount.sip +%Include kdatatool.sip +%Include kdirlister.sip +%Include kdirnotify.sip +%Include kdirwatch.sip +%Include kemailsettings.sip +%Include kfilefilter.sip +%Include kfileitem.sip +%Include kfilemetainfo.sip +%Include kfilterbase.sip +%Include kfilterdev.sip +%Include kimageio.sip +%Include kmimemagic.sip +%Include kmimetype.sip +%Include kprotocolinfo.sip +%Include kprotocolmanager.sip +%Include krun.sip +%Include kscan.sip +%Include kservice.sip +%Include kservicegroup.sip +%Include kservicetype.sip +%Include kshellcompletion.sip +%Include kshred.sip +%Include ksycoca.sip +%Include ksycocaentry.sip +%Include ksycocafactory.sip +%Include ksycocatype.sip +%Include ktar.sip +%Include ktrader.sip +%Include kurifilter.sip +%Include kurlcompletion.sip +%Include kurlpixmapprovider.sip +%Include kuserprofile.sip +%Include netaccess.sip +%Include observer.sip +%Include passdlg.sip +%Include paste.sip +%Include previewjob.sip +%Include progressbase.sip +%Include renamedlg.sip +%Include renamedlgplugin.sip +%Include scheduler.sip +%Include sessiondata.sip +%Include skipdlg.sip +%Include slave.sip +%Include slavebase.sip +%Include slaveconfig.sip +%Include slaveinterface.sip +%Include statusbarprogress.sip +%Include tcpslavebase.sip +%Include thumbcreator.sip +@mark@ diff --git a/sip/kio/kmimemagic.sip b/sip/kio/kmimemagic.sip new file mode 100644 index 0000000..0dc31c6 --- /dev/null +++ b/sip/kio/kmimemagic.sip @@ -0,0 +1,74 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KMimeMagicResult +{ +%TypeHeaderCode +#include <kmimemagic.h> +%End + + +public: + KMimeMagicResult (); + const QString mimeType (); + int accuracy (); + bool isValid (); + void setMimeType (const QString&); + void setAccuracy (int); + void setInvalid (); + +protected: + +}; // class KMimeMagicResult + + +class KMimeMagic +{ +%TypeHeaderCode +#include <kmimemagic.h> +%End + + +public: + +%If ( KDE_3_1_0 - ) + KMimeMagic (); +%End + + KMimeMagic (const QString&); + bool mergeConfig (const QString&); + bool mergeBufConfig (char*); + void setFollowLinks (bool); + KMimeMagicResult* findFileType (const QString&); + KMimeMagicResult* findBufferType (const QByteArray&); + KMimeMagicResult* findBufferFileType (const QByteArray&, const QString&); + static KMimeMagic* self (); + +protected: + static void initStatic (); + +}; // class KMimeMagic + diff --git a/sip/kio/kmimetype.sip b/sip/kio/kmimetype.sip new file mode 100644 index 0000000..ba25572 --- /dev/null +++ b/sip/kio/kmimetype.sip @@ -0,0 +1,428 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KMimeType : KServiceType +{ +%TypeHeaderCode +#include <kmimetype.h> +%End + + +public: + + typedef KSharedPtr<KMimeType> Ptr; + typedef QValueList<KMimeType::Ptr> List; + +public: + KMimeType (const QString&, const QString&, const QString&, const QString&, const QStringList&); + KMimeType (const QString&); + KMimeType (KDesktopFile*); + KMimeType (QDataStream&, int); + virtual QString icon (const QString&, bool) const; + virtual QString icon (const KURL&, bool) const; + virtual QPixmap pixmap (KIcon::Group, int = 0, int = 0, QString* = 0) const; + virtual QPixmap pixmap (const KURL&, KIcon::Group, int = 0, int = 0, QString* = 0) const; + static QPixmap pixmapForURL (const KURL&, mode_t = 0, KIcon::Group = KIcon ::Desktop , int = 0, int = 0, QString* = 0); + static QString iconForURL (const KURL&, mode_t = 0); + static QString favIconForURL (const KURL&); + QString comment () const; + virtual QString comment (const QString&, bool) const; + virtual QString comment (const KURL&, bool) const; + const QStringList& patterns () const; + virtual void load (QDataStream&); + virtual void save (QDataStream&); + virtual QVariant property (const QString&) const; + virtual QStringList propertyNames () const; + static KMimeType::Ptr mimeType (const QString&); + static KMimeType::Ptr findByURL (const KURL&, mode_t = 0, bool = 0, bool = 0); + +%If ( KDE_3_2_0 - ) + static KMimeType::Ptr findByURL (const KURL&, mode_t, bool, bool, bool*); +%End + + static KMimeType::Ptr findByPath (const QString&, mode_t = 0, bool = 0); + static KMimeType::Ptr findByContent (const QByteArray&, int* = 0); + static KMimeType::Ptr findByFileContent (const QString&, int* = 0); + +%If ( KDE_3_2_1 - ) + + class Format + { + + public: + bool text; + + enum + { + NoCompression, + GZipCompression + }; + +//ig int compression; + int dummy; + + }; // class Format + + +public: +%End + + +%If ( KDE_3_2_0 - ) +//ig static KMimeType::Format findFormatByFileContent (const QString&); +%End + + static KMimeType::List allMimeTypes (); + static const QString& defaultMimeType (); + +%If ( KDE_3_2_0 - ) + static KMimeType::Ptr defaultMimeTypePtr (); + QString parentMimeType () const; + bool is (const QString&) const /PyName=is_/; //'is' is a reserved keyword in python; + static KMimeType::Ptr diagnoseFileName (const QString&, QString&); +%End + + +protected: + void loadInternal (QDataStream&); + void init (KDesktopFile*); + static void errorMissingMimeType (const QString&); + static void buildDefaultType (); + static void checkEssentialMimeTypes (); + +protected: + +%If ( KDE_3_2_0 - ) + int patternsAccuracy () const; +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KMimeType + + +class KFolderType : KMimeType +{ +%TypeHeaderCode +#include <kmimetype.h> +%End + + +public: + KFolderType (KDesktopFile*); + KFolderType (QDataStream&, int); + virtual QString icon (const QString&, bool) const; + virtual QString icon (const KURL&, bool) const; + virtual QString comment (const QString&, bool) const; + virtual QString comment (const KURL&, bool) const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFolderType + + +class KDEDesktopMimeType : KMimeType +{ +%TypeHeaderCode +#include <kmimetype.h> +%End + + +public: + + enum ServiceType + { + ST_MOUNT, + ST_UNMOUNT, + ST_USER_DEFINED + }; + + + class Service + { + + public: + Service (); + +%If ( KDE_3_2_0 - ) + bool isEmpty () const; +%End + + QString m_strName; + QString m_strIcon; + QString m_strExec; + KDEDesktopMimeType::ServiceType m_type; + bool m_display; + + }; // class Service + + +public: + KDEDesktopMimeType (KDesktopFile*); + KDEDesktopMimeType (QDataStream&, int); + virtual QString icon (const QString&, bool) const; + virtual QString icon (const KURL&, bool) const; + virtual QPixmap pixmap (const KURL&, KIcon::Group, int = 0, int = 0, QString* = 0) const; + virtual QString comment (const QString&, bool) const; + virtual QString comment (const KURL&, bool) const; + static QValueList<KDEDesktopMimeType::Service> builtinServices (const KURL&); + static QValueList<KDEDesktopMimeType::Service> userDefinedServices (const QString&, bool); + +%If ( KDE_3_4_0 - ) + static QValueList<KDEDesktopMimeType::Service> userDefinedServices (const QString&, KConfig&, bool); + +%If ( KDE_3_5_0 - ) + static QValueList<KDEDesktopMimeType::Service> userDefinedServices (const QString&, KConfig&, bool, const KURL::List&); +%End + +%End + + static void executeService (const QString&, KDEDesktopMimeType::Service&); + static void executeService (const KURL::List&, KDEDesktopMimeType::Service&); + static pid_t run (const KURL&, bool); + +protected: + virtual QPixmap pixmap (KIcon::Group, int, int, QString*) const; + static pid_t runFSDevice (const KURL&, const KSimpleConfig&); + static pid_t runApplication (const KURL&, const QString&); + static pid_t runLink (const KURL&, const KSimpleConfig&); + static pid_t runMimeType (const KURL&, const KSimpleConfig&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDEDesktopMimeType + + +class KExecMimeType : KMimeType +{ +%TypeHeaderCode +#include <kmimetype.h> +%End + + +public: + KExecMimeType (KDesktopFile*); + KExecMimeType (QDataStream&, int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KExecMimeType + + + +%MappedType KMimeType::Ptr +//converts KMimeType +{ +%TypeHeaderCode +#include <ksharedptr.h> +#include <kmimetype.h> +%End + +%ConvertFromTypeCode + // Convert to a Python instance + + if (!sipCpp) + return NULL; + + KSharedPtr<KMimeType> *cPtr = (KSharedPtr<KMimeType> *)sipCpp; + KMimeType *cpp = new KMimeType (*cPtr->data ()); + PyObject *obj = sipConvertFromInstance (cpp, sipClass_KMimeType, sipTransferObj); + + return obj; +%End + +%ConvertToTypeCode + // Convert a Python instance to a Ptr on the heap. + + if (sipIsErr == NULL) + return sipCanConvertToType(sipPy, sipType_KMimeType, SIP_NO_CONVERTORS); + + int iserr = 0; + KMimeType *cpp = (KMimeType *)sipConvertToType(sipPy, sipType_KMimeType, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + return 0; + } + + *sipCppPtr = new KSharedPtr<KMimeType> (cpp); + + return 1; +%End +}; + + +%MappedType QValueList<KDEDesktopMimeType::Service> +//converts a Python list of KDEDesktopMimeType.Service +{ +%TypeHeaderCode +#include <qvaluelist.h> +#include <kmimetype.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList<KDEDesktopMimeType::Service> *cpplist = (QValueList<KDEDesktopMimeType::Service> *)sipCpp; + PyObject *inst; + + // Get it. + QValueList<KDEDesktopMimeType::Service>::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromNewType(new KDEDesktopMimeType::Service(*it), sipType_KDEDesktopMimeType_Service, NULL)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList<KDEDesktopMimeType::Service> *cpplist = new QValueList<KDEDesktopMimeType::Service>; + + PyObject *elem; + KDEDesktopMimeType::Service *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KDEDesktopMimeType::Service *)sipForceConvertToType(elem, sipType_KDEDesktopMimeType_Service, 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<KMimeType::Ptr> +//converts a Python list of KMimeType +{ +%TypeHeaderCode +#include <kmimetype.h> +%End + +%ConvertFromTypeCode + // Convert to a Python list of Ptr (KMimeType). + + if (!sipCpp) + return PyList_New (0); + + PyObject *plist; + + // Create the list + + if ((plist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QValueList<KMimeType::Ptr> *cList = (QValueList<KMimeType::Ptr> *)sipCpp; + PyObject *inst; + KMimeType *svc; + + QValueList<KMimeType::Ptr>::Iterator it; + for( it = cList->begin(); it != cList->end(); ++it ) + { + svc = new KMimeType (*(KMimeType *)((KMimeType::Ptr)(*it)).data ()); + inst = sipConvertFromNewType(svc, sipType_KMimeType, NULL); + 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); + + QValueList<KMimeType::Ptr> *cList = new QValueList<KMimeType::Ptr>; + PyObject *elem; + KMimeType *service; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + service = (KMimeType *)sipForceConvertToType(elem, sipType_KMimeType, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + KMimeType::Ptr *ptr = new KMimeType::Ptr (service); + + if (iserr) + { + *sipIsErr = 1; + delete cList; + return 0; + } + + cList->append (*ptr); + } + + *sipCppPtr = cList; + + return 1; +%End +}; + + diff --git a/sip/kio/kmimetypechooser.sip b/sip/kio/kmimetypechooser.sip new file mode 100644 index 0000000..b0a8987 --- /dev/null +++ b/sip/kio/kmimetypechooser.sip @@ -0,0 +1,74 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KMimeTypeChooser : QVBox +{ +%TypeHeaderCode +#include <kmimetypechooser.h> +%End + + +public: + + enum Visuals + { + Comments, + Patterns, + EditButton + }; + + KMimeTypeChooser (const QString& = QString ::null , const QStringList& = 0, const QString& = QString ::null , const QStringList& = QStringList (), int = Comments |Patterns |EditButton , QWidget* /TransferThis/ = 0, const char* = 0); + QStringList mimeTypes () const; + QStringList patterns () const; + +public slots: + void editMimeType (); + +}; // class KMimeTypeChooser + +%End + + +%If ( KDE_3_3_0 - ) + +class KMimeTypeChooserDialog : KDialogBase +{ +%TypeHeaderCode +#include <kmimetypechooser.h> +%End + + +public: + KMimeTypeChooserDialog (const QString& = QString ::null , const QString& = QString ::null , const QStringList& = QStringList (), const QString& = QString ::null , const QStringList& = QStringList (), int = KMimeTypeChooser ::Comments |KMimeTypeChooser ::Patterns |KMimeTypeChooser ::EditButton , QWidget* /TransferThis/ = 0, const char* = 0); + KMimeTypeChooserDialog (const QString&, const QString&, const QStringList&, const QString&, QWidget* /TransferThis/ = 0, const char* = 0); + KMimeTypeChooser* chooser (); + +}; // class KMimeTypeChooserDialog + +%End + diff --git a/sip/kio/knfsshare.sip b/sip/kio/knfsshare.sip new file mode 100644 index 0000000..6f36f02 --- /dev/null +++ b/sip/kio/knfsshare.sip @@ -0,0 +1,51 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KNFSShare : QObject +{ +%TypeHeaderCode +#include <knfsshare.h> +%End + + +public: + static KNFSShare* instance (); + bool isDirectoryShared (const QString&) const; + QStringList sharedDirectories () const; + QString exportsPath () const; + +signals: + void changed (); + +private: + KNFSShare (); + +}; // class KNFSShare + +%End + diff --git a/sip/kio/kpac.sip b/sip/kio/kpac.sip new file mode 100644 index 0000000..7560514 --- /dev/null +++ b/sip/kio/kpac.sip @@ -0,0 +1,44 @@ +// +// Copyright 2003 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio 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. + + +class KPAC +{ +%TypeHeaderCode +#include <kpac.h> +%End + + +public: + virtual QString proxyForURL (const KURL&) = 0; + virtual bool init (const KURL&) = 0; + virtual bool discover () = 0; + virtual void badProxy (const QString&) = 0; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KPAC + diff --git a/sip/kio/kprotocolinfo.sip b/sip/kio/kprotocolinfo.sip new file mode 100644 index 0000000..ef173be --- /dev/null +++ b/sip/kio/kprotocolinfo.sip @@ -0,0 +1,287 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KProtocolInfo : KSycocaEntry +{ +%TypeHeaderCode +#include <kprotocolinfo.h> +%End + + +public: + typedef KSharedPtr<KProtocolInfo> Ptr; + +public: + KProtocolInfo (const QString&); + virtual bool isValid () const; + virtual QString name () const; + static QStringList protocols (); + static bool isKnownProtocol (const KURL&); + static bool isKnownProtocol (const QString&); + static QString exec (const QString&) /PyName=exec_/; + + enum Type + { + T_STREAM, + T_FILESYSTEM, + T_NONE, + T_ERROR + }; + + static KProtocolInfo::Type inputType (const KURL&); + static KProtocolInfo::Type outputType (const KURL&); + static QStringList listing (const KURL&); + +%If ( KDE_3_2_0 - ) + + class ExtraField + { + + public: + ExtraField (); + ExtraField (const QString&, const QString&); + QString name; + QString type; + + }; // class ExtraField + + +public: +%End + + +%If ( KDE_3_2_0 - ) + typedef QValueList<KProtocolInfo::ExtraField> ExtraFieldList; + static KProtocolInfo::ExtraFieldList extraFields (const KURL&); +%End + + static bool isSourceProtocol (const KURL&); + static bool isHelperProtocol (const KURL&); + static bool isHelperProtocol (const QString&); + static bool isFilterProtocol (const KURL&); + static bool isFilterProtocol (const QString&); + static bool supportsListing (const KURL&); + static bool supportsReading (const KURL&); + static bool supportsWriting (const KURL&); + static bool supportsMakeDir (const KURL&); + static bool supportsDeleting (const KURL&); + static bool supportsLinking (const KURL&); + static bool supportsMoving (const KURL&); + static bool canCopyFromFile (const KURL&); + static bool canCopyToFile (const KURL&); + +%If ( KDE_3_4_0 - ) + static bool canRenameFromFile (const KURL&); + static bool canRenameToFile (const KURL&); + static bool canDeleteRecursive (const KURL&); + + enum FileNameUsedForCopying + { + Name, + FromURL + }; + + static KProtocolInfo::FileNameUsedForCopying fileNameUsedForCopying (const KURL&); +%End + + static QString defaultMimetype (const KURL&); + static QString icon (const QString&); + static QString config (const QString&); + static int maxSlaves (const QString&); + static bool determineMimetypeFromExtension (const QString&); + +%If ( KDE_3_2_0 - ) + static QString docPath (const QString&); + static QString protocolClass (const QString&); + static bool showFilePreview (const QString&); + static KURL::URIMode uriParseMode (const QString&); + +%If ( KDE_3_3_0 - ) + static QStringList capabilities (const QString&); + static QString proxiedBy (const QString&); +%End + +%End + + +public: + KProtocolInfo (QDataStream&, int); + virtual void load (QDataStream&); + virtual void save (QDataStream&); + static Type inputType (const QString&); + static Type outputType (const QString&); + static QStringList listing (const QString&); + static bool isSourceProtocol (const QString&); + static bool supportsListing (const QString&); + static bool supportsReading (const QString&); + static bool supportsWriting (const QString&); + static bool supportsMakeDir (const QString&); + static bool supportsDeleting (const QString&); + static bool supportsLinking (const QString&); + static bool supportsMoving (const QString&); + static bool canCopyFromFile (const QString&); + static bool canCopyToFile (const QString&); + static QString defaultMimetype (const QString&); + +protected: + +%If ( KDE_3_5_1 - ) + bool canRenameFromFile () const; + bool canRenameToFile () const; + bool canDeleteRecursive () const; + KProtocolInfo::FileNameUsedForCopying fileNameUsedForCopying () const; +%End + + +%If ( KDE_3_4_0 - ) + static KProtocolInfo* findProtocol (const KURL&); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KProtocolInfo + + +%If ( KDE_3_2_0 - ) +//igx QDataStream& operator >> (QDataStream&, KProtocolInfo::ExtraField&); +//igx QDataStream& operator << (QDataStream&, const KProtocolInfo::ExtraField&); +%End + + +%MappedType KProtocolInfo::Ptr +//converts KProtocolInfo +{ +%TypeHeaderCode +#include <ksharedptr.h> +#include <kprotocolinfo.h> +%End + +%ConvertFromTypeCode + // Convert to a Python instance + + if (!sipCpp) + return NULL; + + KSharedPtr<KProtocolInfo> *cPtr = new KSharedPtr<KProtocolInfo>(*(KSharedPtr<KProtocolInfo> *)sipCpp); + KProtocolInfo *cpp = cPtr->data (); + PyObject *obj = sipConvertFromInstance (cpp, sipClass_KProtocolInfo, sipTransferObj); + + return obj; +%End + +%ConvertToTypeCode + // Convert a Python instance to a Ptr on the heap. + + if (sipIsErr == NULL) + return sipCanConvertToType(sipPy, sipType_KProtocolInfo, SIP_NO_CONVERTORS); + + int iserr = 0; + KProtocolInfo *cpp = (KProtocolInfo *)sipConvertToType(sipPy, sipType_KProtocolInfo, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + return 0; + } + + *sipCppPtr = new KSharedPtr<KProtocolInfo> (cpp); + + return 1; +%End +}; + + +%If (KDE_3_2_0 - ) +%MappedType QValueList<KProtocolInfo::ExtraField> +//converts a Python list of KProtocolInfo::ExtraField +{ +%TypeHeaderCode +#include <qvaluelist.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList<KProtocolInfo::ExtraField> *cpplist = (QValueList<KProtocolInfo::ExtraField> *)sipCpp; + PyObject *inst; + + // Get it. + QValueList<KProtocolInfo::ExtraField>::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromNewType(new KProtocolInfo::ExtraField(*it), sipType_KProtocolInfo_ExtraField, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList<KProtocolInfo::ExtraField> *cpplist = new QValueList<KProtocolInfo::ExtraField>; + + PyObject *elem; + KProtocolInfo::ExtraField *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KProtocolInfo::ExtraField *)sipForceConvertToType(elem, sipType_KProtocolInfo_ExtraField, 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/kio/kprotocolmanager.sip b/sip/kio/kprotocolmanager.sip new file mode 100644 index 0000000..ba1da67 --- /dev/null +++ b/sip/kio/kprotocolmanager.sip @@ -0,0 +1,99 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KProtocolManager +{ +%TypeHeaderCode +#include <kprotocolmanager.h> +%End + + +public: + static QString defaultUserAgent (); + static QString defaultUserAgent (const QString&); + static QString userAgentForHost (const QString&); + static int readTimeout (); + static int connectTimeout (); + static int proxyConnectTimeout (); + static int responseTimeout (); + static bool useProxy (); + static bool useReverseProxy (); + + enum ProxyType + { + NoProxy, + ManualProxy, + PACProxy, + WPADProxy, + EnvVarProxy + }; + + static KProtocolManager::ProxyType proxyType (); + + enum ProxyAuthMode + { + Prompt, + Automatic + }; + + static KProtocolManager::ProxyAuthMode proxyAuthMode (); + static QString noProxyFor (); + +%If ( KDE_3_5_1 - ) + static QString noProxyForRaw (); +%End + + static QString proxyFor (const QString&); + static QString proxyForURL (const KURL&); + static void badProxy (const QString&); + static QString proxyConfigScript (); + static bool useCache (); + static int maxCacheAge (); + static int maxCacheSize (); + static QString cacheDir (); + static KIO::CacheControl cacheControl (); + static bool autoResume (); + static bool markPartial (); + static int minimumKeepSize (); + +%If ( KDE_3_1_0 - ) + static bool persistentProxyConnection (); +%End + + static bool persistentConnections (); + static void reparseConfiguration (); + static QString slaveProtocol (const KURL&, QString&); + static KConfig* config (); + +public: + +%If ( - KDE_3_2_0 ) +//ig static int defaultConnectTimeout (); +%End + + +}; // class KProtocolManager + diff --git a/sip/kio/kremoteencoding.sip b/sip/kio/kremoteencoding.sip new file mode 100644 index 0000000..92a7f9c --- /dev/null +++ b/sip/kio/kremoteencoding.sip @@ -0,0 +1,60 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KRemoteEncoding +{ +%TypeHeaderCode +#include <kremoteencoding.h> +%End + + +public: + KRemoteEncoding (const char* = 0); + QString decode (const QCString&) const; + QCString encode (const QString&) const; + QCString encode (const KURL&) const; + QCString directory (const KURL&, bool = 1) const; + QCString fileName (const KURL&) const; + const char* encoding () const; + +%If ( KDE_3_5_0 - ) + int encodingMib () const; +%End + + void setEncoding (const char*); + +protected: + virtual void virtual_hook (int, void*); + +private: + KRemoteEncoding (const KRemoteEncoding&); + +}; // class KRemoteEncoding + +%End + diff --git a/sip/kio/krun.sip b/sip/kio/krun.sip new file mode 100644 index 0000000..ba4791a --- /dev/null +++ b/sip/kio/krun.sip @@ -0,0 +1,206 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KRun : QObject +{ +%TypeHeaderCode +#include <krun.h> +%End + + +public: + KRun (const KURL&, mode_t = 0, bool = 0, bool = 1); + +%If ( KDE_3_2_0 - ) + KRun (const KURL&, QWidget*, mode_t = 0, bool = 0, bool = 1); +%End + + void abort (); + bool hasError () const; + bool hasFinished () const; + bool autoDelete () const; + void setAutoDelete (bool); + void setPreferredService (const QString&); + +%If ( KDE_3_2_0 - ) + void setRunExecutables (bool); + +%If ( KDE_3_4_0 - ) + void setEnableExternalBrowser (bool); + +%If ( KDE_3_5_3 - ) + void setSuggestedFileName (const QString&); +%End + + +%If ( KDE_3_5_2 - ) + static pid_t run (const KService&, const KURL::List&, QWidget*, bool = 0); +%End + +%End + +%End + + +%If ( KDE_3_1_0 - ) + static pid_t run (const KService&, const KURL::List&, bool); +%End + + static pid_t run (const KService&, const KURL::List&); + +%If ( KDE_3_5_3 - ) + static pid_t run (const KService&, const KURL::List&, QWidget*, bool, const QString&); +%End + + static pid_t run (const QString&, const KURL::List&, const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null ); + +%If ( KDE_3_2_0 - ) + static pid_t runURL (const KURL&, const QString&, bool, bool); +%End + + +%If ( KDE_3_1_0 - ) + static pid_t runURL (const KURL&, const QString&, bool); +%End + + static pid_t runURL (const KURL&, const QString&); + +%If ( KDE_3_5_3 - ) + static pid_t runURL (const KURL&, const QString&, bool, bool, const QString&); +%End + + static pid_t runCommand (QString); + static pid_t runCommand (const QString&, const QString&, const QString&); + +%If ( KDE_3_1_0 - ) + static bool displayOpenWithDialog (const KURL::List&, bool); +%End + + static bool displayOpenWithDialog (const KURL::List&); + +%If ( KDE_3_5_3 - ) + static bool displayOpenWithDialog (const KURL::List&, bool, const QString&); +%End + + static void shellQuote (QString&); + +%If ( KDE_3_1_0 - ) + static QStringList processDesktopExec (const KService&, const KURL::List&, bool, bool); +%End + + static QStringList processDesktopExec (const KService&, const KURL::List&, bool); + +%If ( KDE_3_5_3 - ) + static QStringList processDesktopExec (const KService&, const KURL::List&, bool, bool, const QString&); +%End + + +%If ( KDE_3_1_0 - ) + static QString binaryName (const QString&, bool); + +%If ( KDE_3_2_0 - ) + static bool isExecutable (const QString&); + +%If ( KDE_3_3_0 - ) + static bool isExecutableFile (const KURL&, const QString&); + +%If ( KDE_3_4_0 - ) + static bool checkStartupNotify (const QString&, const KService*, bool*, QCString*); +%End + +%End + +%End + +%End + + +signals: + void finished (); + void error (); + +protected slots: + void slotTimeout (); + void slotScanFinished (KIO::Job*); + void slotScanMimeType (KIO::Job*, const QString&); + virtual void slotStatResult (KIO::Job*); + +protected: + virtual void init (); + virtual void scanFile (); + virtual void foundMimeType (const QString&); + virtual void killJob (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KRun + + +class KOpenWithHandler +{ +%TypeHeaderCode +#include <krun.h> +%End + + +public: + KOpenWithHandler (); + static bool exists (); + +}; // class KOpenWithHandler + + +class KProcessRunner : QObject +{ +%TypeHeaderCode +#include <krun.h> +%End + + +public: + static pid_t run (KProcess*, const QString&); + +%If ( KDE_3_1_4 - ) + static pid_t run (KProcess*, const QString&, const KStartupInfoId&); +%End + + pid_t pid () const; + +protected slots: + void slotProcessExited (KProcess*); + +private: + KProcessRunner (KProcess*, const QString&); + +%If ( KDE_3_1_4 - ) + KProcessRunner (KProcess*, const QString&, const KStartupInfoId&); +%End + + KProcessRunner (); + +}; // class KProcessRunner + diff --git a/sip/kio/ksambashare.sip b/sip/kio/ksambashare.sip new file mode 100644 index 0000000..3e57eea --- /dev/null +++ b/sip/kio/ksambashare.sip @@ -0,0 +1,51 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KSambaShare : QObject +{ +%TypeHeaderCode +#include <ksambashare.h> +%End + + +public: + static KSambaShare* instance (); + bool isDirectoryShared (const QString&) const; + QStringList sharedDirectories () const; + QString smbConfPath () const; + +signals: + void changed (); + +private: + KSambaShare (); + +}; // class KSambaShare + +%End + diff --git a/sip/kio/kscan.sip b/sip/kio/kscan.sip new file mode 100644 index 0000000..e6159e2 --- /dev/null +++ b/sip/kio/kscan.sip @@ -0,0 +1,120 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KScanDialog : KDialogBase +{ +%TypeHeaderCode +#include <kscan.h> +%End + + +public: + static KScanDialog* getScanDialog (QWidget* /Transfer/ = 0, const char* = 0, bool = 0); + virtual bool setup (); + +protected: + KScanDialog (int = Tabbed , int = Close |Help , QWidget* /TransferThis/ = 0, const char* = 0, bool = 0); + int id () const; + int nextId (); + +signals: + void preview (const QImage&, int); + void finalImage (const QImage&, int); + void textRecognized (const QString&, int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KScanDialog + + +class KScanDialogFactory : KLibFactory +{ +%TypeHeaderCode +#include <kscan.h> +%End + + +public: + virtual KScanDialog* createDialog (QWidget* /Transfer/ = 0, const char* = 0, bool = 0) = 0; + +protected: + KScanDialogFactory (QObject* /TransferThis/ = 0, const char* = 0); + virtual QObject* createObject (QObject* /Transfer/ = 0, const char* = 0, const char* = "QObject", const QStringList& = QStringList ()); + void setName (const QCString&); + KInstance* instance () const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KScanDialogFactory + + +class KOCRDialog : KDialogBase +{ +%TypeHeaderCode +#include <kscan.h> +%End + + +public: + static KOCRDialog* getOCRDialog (QWidget* /Transfer/ = 0, const char* = 0, bool = 0); + +protected: + KOCRDialog (int = Tabbed , int = Close |Help , QWidget* /TransferThis/ = 0, const char* = 0, bool = 0); + int id () const; + int nextId (); + +signals: + void textRecognized (const QString&, int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KOCRDialog + + +class KOCRDialogFactory : KLibFactory +{ +%TypeHeaderCode +#include <kscan.h> +%End + + +public: + virtual KOCRDialog* createDialog (QWidget* /Transfer/ = 0, const char* = 0, bool = 0) = 0; + +protected: + KOCRDialogFactory (QObject* /TransferThis/ = 0, const char* = 0); + virtual QObject* createObject (QObject* /Transfer/ = 0, const char* = 0, const char* = "QObject", const QStringList& = QStringList ()); + void setName (const QCString&); + KInstance* instance () const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KOCRDialogFactory + diff --git a/sip/kio/kservice.sip b/sip/kio/kservice.sip new file mode 100644 index 0000000..3712f91 --- /dev/null +++ b/sip/kio/kservice.sip @@ -0,0 +1,286 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KService : KSycocaEntry +{ +%TypeHeaderCode +#include <kservice.h> +%End + + +public: +//ig typedef KSharedPtr<KService> Ptr; +//ig typedef QValueList<KService::Ptr> List; + +public: + KService (const QString&, const QString&, const QString&); + KService (const QString&); + KService (KDesktopFile*); + KService (QDataStream&, int); + virtual QString type () /PyName=type_/; + virtual QString name () const; + QString exec () /PyName=exec_/; + QString library () const; + QString init () const; + QString icon () const; + QPixmap pixmap (KIcon::Group, int = 0, int = 0, QString* = 0) const; + bool terminal () const; + QString terminalOptions () const; + bool substituteUid () const; + QString username () const; + QString desktopEntryPath () const; + QString desktopEntryName () const; + +%If ( KDE_3_2_0 - ) + QString menuId () const; + QString storageId () const; +%End + + + enum DCOPServiceType_t + { + DCOP_None, + DCOP_Unique, + DCOP_Multi, + DCOP_Wait + }; + + DCOPServiceType_t DCOPServiceType () const; + QString path () const; + QString comment () const; + QString genericName () const; + +%If ( KDE_3_2_0 - ) + QString untranslatedGenericName () const; +%End + + QStringList keywords () const; + +%If ( KDE_3_1_0 - ) + QStringList categories () const; +%End + + QStringList serviceTypes () const; + bool hasServiceType (const QString&) const; + bool allowAsDefault () const; + bool allowMultipleFiles () const; + int initialPreference () const; + +%If ( KDE_3_2_0 - ) + int initialPreferenceForMimeType (const QString&) const; +%End + + void setInitialPreference (int); + bool noDisplay () const; + +%If ( KDE_3_1_0 - ) + QString parentApp () const; +%End + + virtual QVariant property (const QString&) const; + +%If ( KDE_3_2_0 - ) + QVariant property (const QString&, QVariant::Type) const; +%End + + virtual QStringList propertyNames () const; + bool isValid () const; + +%If ( KDE_3_2_0 - ) + QString locateLocal (); +%End + + virtual void load (QDataStream&); + virtual void save (QDataStream&); + +%If ( KDE_3_2_0 - ) + void setMenuId (const QString&); + void setTerminal (bool); + void setTerminalOptions (const QString&); +%End + + static KService::Ptr serviceByName (const QString&); + static KService::Ptr serviceByDesktopPath (const QString&); + static KService::Ptr serviceByDesktopName (const QString&); + +%If ( KDE_3_2_0 - ) + static KService::Ptr serviceByMenuId (const QString&); + static KService::Ptr serviceByStorageId (const QString&); +%End + + static KService::List allServices (); + static KService::List allInitServices (); + +%If ( KDE_3_2_0 - ) + static QString newServicePath (bool, const QString&, QString* = 0, const QStringList* = 0); + static void rebuildKSycoca (QWidget* /Transfer/); +%End + + +protected: + void init (KDesktopFile*); + QStringList& accessServiceTypes (); + +%If ( KDE_3_1_1 - ) + +private: + KService (const KService&); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KService + + + +%MappedType KService::Ptr +//converts KService +{ +%TypeHeaderCode +#include <ksharedptr.h> +#include <kservice.h> +//typedef KSharedPtr<KService> SvcPtr; +//typedef KService::Ptr SvcPtr; +%End + +%ConvertFromTypeCode + // Convert to a Python instance + + if (!sipCpp) + return NULL; + + KSharedPtr<KService> *cPtr = new KSharedPtr<KService> (*(KSharedPtr<KService> *)sipCpp); + KService *cpp = cPtr->data (); + PyObject *obj = sipConvertFromInstance (cpp, sipClass_KService, sipTransferObj); + + return obj; +%End + +%ConvertToTypeCode + // Convert a Python instance to a Ptr on the heap. + + if (sipIsErr == NULL) + return sipCanConvertToType(sipPy, sipType_KService, SIP_NO_CONVERTORS); + + int iserr = 0; + KService *cpp = (KService *)sipConvertToType(sipPy, sipType_KService, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + return 0; + } + + *sipCppPtr = new KSharedPtr<KService> (cpp); + + return 1; +%End +}; + + +%MappedType KService::List +//converts a Python list of KService +{ +%TypeHeaderCode +#include <qvaluelist.h> +#include <kservice.h> +//typedef KSharedPtr<KService> Ptr; +//typedef QValueList<Ptr> SvcList; +//typedef KService::List SvcList; +typedef QValueList<KService::Ptr> List; +%End + +%ConvertFromTypeCode + // Convert to a Python list of Ptr (KService). +#define QUOTE "" + if (!sipCpp) + return PyList_New (0); + + PyObject *plist; + + // Create the list + if ((plist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + KService::List *cList = (KService::List *)sipCpp; + PyObject *inst; + KSharedPtr<KService> *svc; + + KService::List::Iterator it; + for( it = cList->begin(); it != cList->end(); ++it ) + { + svc = &(KService::Ptr)(*it); + inst = sipConvertFromType(svc, sipType_KService_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); + + KService::List *cList = new KService::List; + + PyObject *elem; + KService *service; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + service = (KService *)sipForceConvertToType(elem, sipType_KService, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cList; + return 0; + } + + KService::Ptr ptr(service); + + cList->append (ptr); + } + + *sipCppPtr = cList; + + return 1; +%End +}; + + diff --git a/sip/kio/kservicegroup.sip b/sip/kio/kservicegroup.sip new file mode 100644 index 0000000..a6d5128 --- /dev/null +++ b/sip/kio/kservicegroup.sip @@ -0,0 +1,287 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KServiceGroup : KSycocaEntry +{ +%TypeHeaderCode +#include <kservicegroup.h> +%End + + +public: +//ig typedef KSharedPtr<KServiceGroup> Ptr; +//ig typedef KSharedPtr<KSycocaEntry> SPtr; + +%If ( KDE_3_1_2 - ) +//ig typedef QValueList<KServiceGroup::SPtr> List; +%End + + +public: + +%If ( KDE_3_1_0 - ) + KServiceGroup (const QString&); +%End + + KServiceGroup (const QString&, const QString&); + KServiceGroup (QDataStream&, int, bool); + bool isValid () const; + virtual QString name () const; + virtual QString relPath () const; + QString caption () const; + QString icon () const; + QString comment () const; + int childCount (); + +%If ( KDE_3_1_0 - ) + bool noDisplay () const; + +%If ( KDE_3_5_0 - ) + bool showEmptyMenu () const; + void setShowEmptyMenu (bool); + bool showInlineHeader () const; + void setShowInlineHeader (bool); + bool inlineAlias () const; + void setInlineAlias (bool); + bool allowInline () const; + void setAllowInline (bool); + int inlineValue () const; + void setInlineValue (int); +%End + + +%If ( KDE_3_2_0 - ) + QStringList suppressGenericNames () const; + void setLayoutInfo (const QStringList&); + +%If ( KDE_3_3_0 - ) + QStringList layoutInfo () const; +%End + +%End + +%End + + virtual void load (QDataStream&); + virtual void save (QDataStream&); + +%If ( KDE_3_2_0 - ) + KServiceGroup::List entries (bool, bool, bool, bool = 0); +%End + + virtual KSycocaEntry::List entries (bool, bool); + +%If ( KDE_3_1_2 - ) + virtual KServiceGroup::List entries (bool = 0); +%End + + QString baseGroupName () const; + +%If ( KDE_3_2_0 - ) + QString directoryEntryPath () const; +%End + + static KServiceGroup::Ptr baseGroup (const QString&); + static KServiceGroup::Ptr root (); + static KServiceGroup::Ptr group (const QString&); + +%If ( KDE_3_1_0 - ) + static KServiceGroup::Ptr childGroup (const QString& /Transfer/); + +%If ( KDE_3_5_0 - ) + void parseAttribute (const QString&, bool&, bool&, bool&, bool&, int&); +%End + +%End + + +protected: + void addEntry (KSycocaEntry*); + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_1_2 ) +//ig typedef QValueList<Ptr> List; +%End + + +}; // class KServiceGroup + + +%If ( KDE_3_2_0 - ) + +class KServiceSeparator : KSycocaEntry +{ +%TypeHeaderCode +#include <kservicegroup.h> +%End + + +public: +//ig typedef KSharedPtr<KServiceSeparator> Ptr; + +public: + KServiceSeparator (); + bool isValid () const; + virtual QString name () const; + virtual void load (QDataStream&); + virtual void save (QDataStream&); + +}; // class KServiceSeparator + +%End + + + +%MappedType KServiceGroup::Ptr +//converts KServiceGroup +{ +%TypeHeaderCode +#include <ksharedptr.h> +#include <kservicegroup.h> +%End + +%ConvertFromTypeCode + // Convert to a Python instance + + if (!sipCpp) + return NULL; + + KSharedPtr<KServiceGroup> *cPtr = new KSharedPtr<KServiceGroup> (*(KSharedPtr<KServiceGroup> *)sipCpp); + KServiceGroup *cpp = cPtr->data (); + PyObject *obj = sipConvertFromInstance (cpp, sipClass_KServiceGroup, sipTransferObj); + + return obj; +%End + +%ConvertToTypeCode + // Convert a Python instance to a Ptr on the heap. + + if (sipIsErr == NULL) + return sipCanConvertToType(sipPy, sipType_KServiceGroup, SIP_NO_CONVERTORS); + + int iserr = 0; + KServiceGroup *cpp = (KServiceGroup *)sipConvertToType(sipPy, sipType_KServiceGroup, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + return 0; + } + + *sipCppPtr = new KSharedPtr<KServiceGroup> (cpp); + + return 1; +%End +}; + + +%If (KDE_3_1_2 - ) +%MappedType KServiceGroup::List +//converts a Python list of KServiceGroup +{ +%TypeHeaderCode +#include <ksharedptr.h> +#include <kservice.h> +#include <kservicegroup.h> +#include <qvaluelist.h> +%End + +%ConvertFromTypeCode + // Convert to a Python list of Ptr (KService). + + if (!sipCpp) + return PyList_New (0); + + // Create the list + + PyObject *plist; + + if ((plist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + KServiceGroup::List *cList = (KServiceGroup::List *)sipCpp; + PyObject *inst; + KSharedPtr <KSycocaEntry> *svcGroupType; + + KServiceGroup::List::Iterator it; + for( it = cList->begin(); it != cList->end(); ++it ) + { + svcGroupType = &(KServiceGroup::SPtr)(*it); + inst = sipConvertFromType(svcGroupType, sipType_KSycocaEntry_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); + + KServiceGroup::List *cList = new KServiceGroup::List; + + PyObject *elem; + KSycocaEntry *service; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + service = (KSycocaEntry *)sipForceConvertToType(elem, sipType_KSycocaEntry, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cList; + return 0; + } + + KServiceGroup::SPtr *ptr = new KServiceGroup::SPtr (service); + cList->append (*ptr); + } + + *sipCppPtr = cList; + + return 1; +%End +}; +%End + + diff --git a/sip/kio/kservicetype.sip b/sip/kio/kservicetype.sip new file mode 100644 index 0000000..3bed1dc --- /dev/null +++ b/sip/kio/kservicetype.sip @@ -0,0 +1,292 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KServiceType : KSycocaEntry +{ +%TypeHeaderCode +#include <kservicetype.h> +%End + + +public: + typedef QValueList<KServiceType::Ptr> List; + +public: + KServiceType (const QString&, const QString&, const QString&, const QString&); + KServiceType (const QString&); + KServiceType (KDesktopFile*); + KServiceType (QDataStream&, int); + QString icon () const; + QString comment () const; + QString name () const; + QString desktopEntryPath () const; + bool isDerived () const; + QString parentServiceType () const; + +%If ( KDE_3_1_0 - ) + bool inherits (const QString&) const; +%End + + virtual QVariant property (const QString&) const; + virtual QStringList propertyNames () const; + bool isValid () const; + virtual QVariant::Type propertyDef (const QString&) const; + virtual QStringList propertyDefNames () const; + virtual const QMap<QString,QVariant::Type>& propertyDefs () const; + virtual void save (QDataStream&); + virtual void load (QDataStream&); + +%If ( KDE_3_2_0 - ) + KServiceType::Ptr parentType (); + void addService (KService::Ptr); + KService::List services (); +%End + + static KServiceType::Ptr serviceType (const QString&); + static KService::List offers (const QString&); + static KServiceType::List allServiceTypes (); + +protected: + void init (KDesktopFile*); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KServiceType + + + +%MappedType KServiceType::Ptr +//converts KServiceType +{ +%TypeHeaderCode +#include <ksharedptr.h> +#include <kservicetype.h> +%End + +%ConvertFromTypeCode + // Convert to a Python instance + + if (!sipCpp) + return NULL; + + KServiceType::Ptr *cPtr = new KServiceType::Ptr (*(KServiceType::Ptr *)sipCpp); + KServiceType *cpp = cPtr->data (); + PyObject *obj = sipConvertFromInstance (cpp, sipClass_KServiceType, sipTransferObj); + + return obj; +%End + +%ConvertToTypeCode + // Convert a Python instance to a Ptr on the heap. + + if (sipIsErr == NULL) + return sipCanConvertToType(sipPy, sipType_KServiceType, SIP_NO_CONVERTORS); + + int iserr = 0; + KServiceType *cpp = (KServiceType *)sipConvertToType(sipPy, sipType_KServiceType, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + return 0; + } + + *sipCppPtr = new KServiceType::Ptr (cpp); + + return 1; +%End +}; + + +%MappedType QMap<QString,QVariant::Type> +//converts a Python dict of QString:QVariant +{ +%TypeHeaderCode +#include <qmap.h> +#include <qvariant.h> +%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<QString,QVariant::Type> cppmap = *sipCpp; + QMap<QString,QVariant::Type>::ConstIterator it; + + for (it = cppmap.begin (); it != cppmap.end (); ++it) + { + QString acpp = it.key (); + int bcpp = (int) it.data (); + PyObject *ainst; + PyObject *binst = PyInt_FromLong (bcpp); + if (((ainst = sipConvertFromNewType(new QString (acpp), 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<QString,QVariant::Type> *cppmap = new QMap<QString,QVariant::Type>; + + PyObject *aelem, *belem; + SIP_SSIZE_T pos = 0; + QString *acpp; + QVariant::Type 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); + + if (iserr || !PyInt_Check(belem)) + { + if (acpp_state) + sipReleaseType(acpp, sipType_QString, acpp_state); + + *sipIsErr = 1; + delete cppmap; + return 0; + } + + bcpp = (QVariant::Type) PyInt_AS_LONG(belem); + + cppmap->insert (*acpp, bcpp); + + sipReleaseType(acpp, sipType_QString, acpp_state); + } + + *sipCppPtr = cppmap; + + return 1; +%End +}; + + +%MappedType QValueList<KServiceType::Ptr> +//converts a Python list of KServiceType +{ +%TypeHeaderCode +#include <kservicetype.h> +%End + +%ConvertFromTypeCode + // Convert to a Python list of Ptr (KServiceType). + + if (!sipCpp) + return PyList_New (0); + + PyObject *plist; + + // Create the list + if ((plist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + QValueList<KServiceType::Ptr> *cList = (QValueList<KServiceType::Ptr> *)sipCpp; + PyObject *inst; + KSharedPtr <KServiceType> *svc; + + QValueList<KServiceType::Ptr>::Iterator it; + for( it = cList->begin(); it != cList->end(); ++it ) + { + svc = &(KServiceType::Ptr)(*it); + inst = sipConvertFromType(svc, sipType_KServiceType_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); + + QValueList<KServiceType::Ptr> *cList = new QValueList<KServiceType::Ptr>; + + PyObject *elem; + KServiceType *service; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + service = (KServiceType *)sipForceConvertToType(elem, sipType_KServiceType, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cList; + return 0; + } + + KServiceType::Ptr ptr(service); + + cList->append (ptr); + } + + *sipCppPtr = cList; + + return 1; +%End +}; + + diff --git a/sip/kio/kshellcompletion.sip b/sip/kio/kshellcompletion.sip new file mode 100644 index 0000000..2ada63c --- /dev/null +++ b/sip/kio/kshellcompletion.sip @@ -0,0 +1,47 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KShellCompletion : KURLCompletion +{ +%TypeHeaderCode +#include <kshellcompletion.h> +%End + + +public: + KShellCompletion (); + QString makeCompletion (const QString&); + +protected: + void postProcessMatch (QString*); + void postProcessMatches (QStringList*); +//ig void postProcessMatches (KCompletionMatches*) const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KShellCompletion + diff --git a/sip/kio/kshred.sip b/sip/kio/kshred.sip new file mode 100644 index 0000000..e5277de --- /dev/null +++ b/sip/kio/kshred.sip @@ -0,0 +1,49 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KShred : QObject +{ +%TypeHeaderCode +#include <kshred.h> +%End + + +public: + KShred (QString); + bool fill1s (); + bool fill0s (); + bool fillbyte (uint); + bool fillrandom (); + bool fillpattern (uchar*, uint); + bool shred (); + static bool shred (QString); + +signals: + void processedSize (KIO::filesize_t); + void infoMessage (const QString&); + +}; // class KShred + diff --git a/sip/kio/ksycoca.sip b/sip/kio/ksycoca.sip new file mode 100644 index 0000000..32c960d --- /dev/null +++ b/sip/kio/ksycoca.sip @@ -0,0 +1,171 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KSycoca : QObject, DCOPObject +{ +%TypeHeaderCode +#include <ksycoca.h> +%End + + +public: + +%If ( KDE_3_1_4 - ) + virtual bool process (const QCString&, const QByteArray&, QCString&, QByteArray&); + QCStringList functions (); + QCStringList interfaces (); +%End + + +protected: + KSycoca (bool); + +public: + KSycoca (); + static KSycoca* self (); + +%If ( KDE_3_2_0 - ) + static int version (); +%End + + QDataStream* findEntry (int, KSycocaType& /Out/); + QDataStream* findFactory (KSycocaFactoryId); + QString kfsstnd_prefixes (); + QString language (); + ulong timeStamp (); + +%If ( KDE_3_1_0 - ) + ulong updateSignature (); + +%If ( KDE_3_2_0 - ) + QStringList allResourceDirs (); +%End + +%End + + void addFactory (KSycocaFactory*); + virtual bool isBuilding (); + +%If ( KDE_3_1_2 - ) + void disableAutoRebuild (); +%End + + static QString determineRelativePath (const QString&, const char*); + static bool isChanged (const char*); + +%If ( KDE_3_1_0 - ) + static void flagError (); + static bool readError (); +%End + + +public: + void notifyDatabaseChanged (const QStringList&); + +signals: + void databaseChanged (); + +protected: + bool checkVersion (bool = 1); + bool openDatabase (bool = 1); + void closeDatabase (); + +public: + +%If ( KDE_3_1_0 - ) +//ig KSycoca* _self; +%End + + +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_ChmodJob, &sipClass_KIO_ChmodJob}, + {sipName_Connection, &sipClass_KIO_Connection}, + {sipName_CopyJob, &sipClass_KIO_CopyJob}, +#if KDE_VERSION >= 0x030100 + {sipName_DavJob, &sipClass_KIO_DavJob}, +#endif + {sipName_DefaultProgress, &sipClass_KIO_DefaultProgress}, + {sipName_DeleteJob, &sipClass_KIO_DeleteJob}, + {sipName_FileCopyJob, &sipClass_KIO_FileCopyJob}, + {sipName_Job, &sipClass_KIO_Job}, + {sipName_KAutoMount, &sipClass_KAutoMount}, + {sipName_KAutoUnmount, &sipClass_KAutoUnmount}, + {sipName_KDataTool, &sipClass_KDataTool}, + {sipName_KDataToolAction, &sipClass_KDataToolAction}, + {sipName_KDirLister, &sipClass_KDirLister}, + {sipName_KDirWatch, &sipClass_KDirWatch}, + {sipName_KFileMetaInfoProvider, &sipClass_KFileMetaInfoProvider}, + {sipName_KFilePlugin, &sipClass_KFilePlugin}, + {sipName_KFilterBase, &sipClass_KFilterBase}, + {sipName_KOCRDialog, &sipClass_KOCRDialog}, + {sipName_KOCRDialogFactory, &sipClass_KOCRDialogFactory}, + {sipName_KProcessRunner, &sipClass_KProcessRunner}, + {sipName_KRun, &sipClass_KRun}, + {sipName_KScanDialog, &sipClass_KScanDialog}, + {sipName_KScanDialogFactory, &sipClass_KScanDialogFactory}, + {sipName_KShellCompletion, &sipClass_KShellCompletion}, + {sipName_KShred, &sipClass_KShred}, + {sipName_KSycoca, &sipClass_KSycoca}, + {sipName_KTrader, &sipClass_KTrader}, + {sipName_KURIFilterPlugin, &sipClass_KURIFilterPlugin}, + {sipName_KURLCompletion, &sipClass_KURLCompletion}, + {sipName_ListJob, &sipClass_KIO_ListJob}, +#if KDE_VERSION >= 0x030100 + {sipName_MetaInfoJob, &sipClass_KIO_MetaInfoJob}, +#endif + {sipName_MimetypeJob, &sipClass_KIO_MimetypeJob}, + {sipName_MultiGetJob, &sipClass_KIO_MultiGetJob}, + {sipName_NetAccess, &sipClass_KIO_NetAccess}, + {sipName_Observer, &sipClass_Observer}, + {sipName_PasswordDialog, &sipClass_KIO_PasswordDialog}, + {sipName_PreviewJob, &sipClass_KIO_PreviewJob}, + {sipName_ProgressBase, &sipClass_KIO_ProgressBase}, + {sipName_RenameDlgPlugin, &sipClass_RenameDlgPlugin}, + {sipName_Scheduler, &sipClass_KIO_Scheduler}, + {sipName_SessionData, &sipClass_KIO_SessionData}, + {sipName_SimpleJob, &sipClass_KIO_SimpleJob}, + {sipName_Slave, &sipClass_KIO_Slave}, + {sipName_SlaveConfig, &sipClass_KIO_SlaveConfig}, + {sipName_SlaveInterface, &sipClass_KIO_SlaveInterface}, + {sipName_StatJob, &sipClass_KIO_StatJob}, + {sipName_StatusbarProgress, &sipClass_KIO_StatusbarProgress}, + {sipName_TransferJob, &sipClass_KIO_TransferJob}, + }; + + sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0])); +%End +//end + +}; // class KSycoca + diff --git a/sip/kio/ksycocadict.sip b/sip/kio/ksycocadict.sip new file mode 100644 index 0000000..83497d2 --- /dev/null +++ b/sip/kio/ksycocadict.sip @@ -0,0 +1,51 @@ +// +// Copyright 2004 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio 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. + + +%If ( KDE_3_3_0 - ) + +class KSycocaDict +{ +%TypeHeaderCode +#include <ksycocadict.h> +%End + +public: + KSycocaDict (); + KSycocaDict (QDataStream*, int); + void add (const QString&, KSycocaEntry*); + void remove (const QString&); + int find_string (const QString&); + uint count (); + void clear (); + void save (QDataStream&); + +protected: + Q_UINT32 hashKey (const QString&); + +}; // class KSycocaDict + +%End + diff --git a/sip/kio/ksycocaentry.sip b/sip/kio/ksycocaentry.sip new file mode 100644 index 0000000..dc60fdb --- /dev/null +++ b/sip/kio/ksycocaentry.sip @@ -0,0 +1,207 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KSycocaEntry : KShared +{ +%TypeHeaderCode +#include <ksycocaentry.h> +%End + + +public: + virtual bool isType (KSycocaType) const; + virtual KSycocaType sycocaType () const; + +public: +//ig typedef KSharedPtr<KSycocaEntry> Ptr; +//ig typedef QValueList<KSycocaEntry::Ptr> List; + +public: + KSycocaEntry (const QString&); + +%If ( KDE_3_1_0 - ) + static void read (QDataStream&, QString&); + static void read (QDataStream&, QStringList&); +%End + + KSycocaEntry (QDataStream&, int); + virtual QString name () const = 0; + QString entryPath () const; + virtual bool isValid () const = 0; + virtual bool isDeleted () const; + int offset (); + virtual void save (QDataStream&); + virtual void load (QDataStream&) = 0; + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KSycocaEntry + + + +%MappedType KSycocaEntry::Ptr +//converts KSycocaEntry +{ +%TypeHeaderCode +#include <ksharedptr.h> +#include <ksycocaentry.h> +%End + +%ConvertFromTypeCode + // Convert to a Python instance + + if (!sipCpp) + return NULL; + + KSharedPtr<KSycocaEntry> *cPtr = new KSharedPtr<KSycocaEntry> (*(KSharedPtr<KSycocaEntry> *)sipCpp); + KSycocaEntry *cpp = cPtr->data (); + PyObject *obj = sipConvertFromInstance (cpp, sipClass_KSycocaEntry, sipTransferObj); + + return obj; +%End + +%ConvertToTypeCode + // Convert a Python instance to a Ptr on the heap. + + if (sipIsErr == NULL) + return sipCanConvertToType(sipPy, sipType_KSycocaEntry, SIP_NO_CONVERTORS); + + int iserr = 0; + KSycocaEntry *cpp = (KSycocaEntry *)sipConvertToType(sipPy, sipType_KSycocaEntry, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + return 0; + } + + *sipCppPtr = new KSharedPtr<KSycocaEntry> (cpp); + + return 1; +%End +}; + + +%MappedType KSycocaEntry::List +//converts a Python list of KSycocaEntry +{ +%TypeHeaderCode +#include <ksharedptr.h> +#include <kservice.h> +#include <kservicegroup.h> +#include <ksycocaentry.h> +#include <ksycocatype.h> +#include <qvaluelist.h> +%End + +%ConvertFromTypeCode + // Convert to a Python list of Ptr (KService). + + if (!sipCpp) + return PyList_New (0); + + PyObject *plist; + + // Create the list + + if ((plist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + KSycocaEntry::List *cList = (KSycocaEntry::List *)sipCpp; + PyObject *inst; + KSharedPtr<KSycocaEntry> *svc; + KSharedPtr <KService> *svcType; + KSharedPtr <KServiceGroup> *svcGroupType; + + KSycocaEntry::List::Iterator it; + for( it = cList->begin(); it != cList->end(); ++it ) + { + svc = &(KSycocaEntry::Ptr)(*it); + if (svc->data ()->sycocaType () == KST_KService) + { + svcType = (KSharedPtr<KService> *)svc; + inst = sipConvertFromType(svcType, sipType_KService_Ptr, sipTransferObj); + } + else if (svc->data ()->sycocaType () == KST_KServiceGroup) + { + svcGroupType = (KSharedPtr <KServiceGroup> *) svc; + inst = sipConvertFromType(svcGroupType, sipType_KServiceGroup_Ptr, sipTransferObj); + } + else + inst = NULL; + + 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); + + KSycocaEntry::List *cList = new KSycocaEntry::List; + + PyObject *elem; + KSycocaEntry *service; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + service = (KSycocaEntry *)sipForceConvertToType(elem, sipType_KSycocaEntry, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cList; + return 0; + } + + KSycocaEntry::Ptr ptr(service); + + cList->append (ptr); + } + + *sipCppPtr = cList; + + return 1; +%End +}; + + diff --git a/sip/kio/ksycocafactory.sip b/sip/kio/ksycocafactory.sip new file mode 100644 index 0000000..1e8d162 --- /dev/null +++ b/sip/kio/ksycocafactory.sip @@ -0,0 +1,63 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KSycocaFactory +{ +%TypeHeaderCode +#include <ksycocafactory.h> +%End + + +public: + virtual KSycocaFactoryId factoryId () const = 0; + +protected: + KSycocaFactory (KSycocaFactoryId); + +public: + int offset (); +//ig KSycocaEntryDict* entryDict (); + virtual KSycocaEntry* createEntry (const QString&, const char*) = 0; + virtual void addEntry (KSycocaEntry*, const char*); + +%If ( KDE_3_2_0 - ) + void removeEntry (KSycocaEntry*); +%End + + virtual KSycocaEntry* createEntry (int) = 0; + KSycocaEntry::List allEntries (); + virtual void save (QDataStream&); + virtual void saveHeader (QDataStream&); +//ig virtual const KSycocaResourceList* resourceList () const; + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KSycocaFactory + +//ig typedef QDict<KSycocaEntry::Ptr> KSycocaEntryDict; diff --git a/sip/kio/ksycocatype.sip b/sip/kio/ksycocatype.sip new file mode 100644 index 0000000..4babc21 --- /dev/null +++ b/sip/kio/ksycocatype.sip @@ -0,0 +1,76 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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_1 - ) + +enum KSycocaType +{ + KST_KSycocaEntry, + KST_KService, + KST_KServiceType, + KST_KMimeType, + KST_KFolderType, + KST_KDEDesktopMimeType, + KST_KExecMimeType, + KST_KServiceGroup, + KST_KImageIOFormat, + KST_KProtocolInfo, + KST_KServiceSeparator, + KST_KCustom +}; + +%End + + +enum KSycocaFactoryId +{ + KST_KServiceFactory, + KST_KServiceTypeFactory, + KST_KServiceGroupFactory, + KST_KImageIO, + KST_KProtocolInfoFactory, + KST_CTimeInfo +}; + + +%If ( - KDE_3_2_1 ) + +enum KSycocaType +{ + KST_KSycocaEntry, + KST_KService, + KST_KServiceType, + KST_KMimeType, + KST_KFolderType, + KST_KDEDesktopMimeType, + KST_KExecMimeType, + KST_KServiceGroup, + KST_KImageIOFormat, + KST_KProtocolInfo, + KST_KCustom +}; + +%End diff --git a/sip/kio/ktar.sip b/sip/kio/ktar.sip new file mode 100644 index 0000000..f67b4d1 --- /dev/null +++ b/sip/kio/ktar.sip @@ -0,0 +1,73 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KTar : KArchive +{ +%TypeHeaderCode +#include <ktar.h> +%End + + +public: + KTar (const QString&, const QString& = QString ::null ); + KTar (QIODevice*); + QString fileName (); + void setOrigFileName (const QCString&); + +%If ( KDE_3_2_0 - ) + bool writeSymLink (const QString&, const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); +%End + + virtual bool writeDir (const QString&, const QString&, const QString&); + +%If ( KDE_3_2_0 - ) + bool writeDir (const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); +%End + + virtual bool prepareWriting (const QString&, const QString&, const QString&, uint); + +%If ( KDE_3_2_0 - ) + bool prepareWriting (const QString&, const QString&, const QString&, uint, mode_t, time_t, time_t, time_t); +%End + + virtual bool doneWriting (uint); + +protected: + virtual bool openArchive (int); + virtual bool closeArchive (); + +protected: +//igx virtual void virtual_hook (int, void*); + +%If ( KDE_3_2_0 - ) + bool prepareWriting_impl (const QString&, const QString&, const QString&, uint, mode_t, time_t, time_t, time_t); + bool writeDir_impl (const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); + bool writeSymLink_impl (const QString&, const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); +%End + + +}; // class KTar + diff --git a/sip/kio/ktrader.sip b/sip/kio/ktrader.sip new file mode 100644 index 0000000..1a2e358 --- /dev/null +++ b/sip/kio/ktrader.sip @@ -0,0 +1,124 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KTrader : QObject +{ +%TypeHeaderCode +#include <ktrader.h> +%End + + +public: +//ig typedef QValueList<KService::Ptr> OfferList; + +%If ( KDE_3_1_0 - ) +//ig typedef QValueListIterator<KService::Ptr> OfferListIterator; +%End + + virtual KTrader::OfferList query (const QString&, const QString& = QString ::null , const QString& = QString ::null ) const; + KTrader::OfferList query (const QString&, const QString&, const QString&, const QString&) const; + static KTrader* self (); + +protected: + KTrader (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KTrader + + + +%MappedType KTrader::OfferList +//converts a Python list of KService +{ +%TypeHeaderCode +#include <qvaluelist.h> +#include <ktrader.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList<KService::Ptr> *cpplist = (QValueList<KService::Ptr> *)sipCpp; + PyObject *inst; + + // Get it. + QValueList<KService::Ptr>::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + KService::Ptr cpp = *it; + inst = sipConvertFromType(&cpp, sipType_KService_Ptr, sipTransferObj); + + if (PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList<KService::Ptr> *cpplist = new QValueList<KService::Ptr>; + + PyObject *elem; + KService::Ptr *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KService::Ptr *)sipForceConvertToType(elem, sipType_KService_Ptr, 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/kio/kurifilter.sip b/sip/kio/kurifilter.sip new file mode 100644 index 0000000..e9f8f21 --- /dev/null +++ b/sip/kio/kurifilter.sip @@ -0,0 +1,147 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KURIFilterData +{ +%TypeHeaderCode +#include <qstringlist.h> +#include <kurifilter.h> +%End + + +public: + + enum URITypes + { + NET_PROTOCOL, + LOCAL_FILE, + LOCAL_DIR, + EXECUTABLE, + HELP, + SHELL, + BLOCKED, + ERROR, + UNKNOWN + }; + + KURIFilterData (); + KURIFilterData (const KURL&); + KURIFilterData (const QString&); + KURIFilterData (const KURIFilterData&); + bool hasBeenFiltered () const; + KURL uri () const; + QString errorMsg () const; + URITypes uriType () const; + void setData (const QString&); + void setData (const KURL&); + bool setAbsolutePath (const QString&); + QString absolutePath () const; + bool hasAbsolutePath () const; + QString argsAndOptions () const; + bool hasArgsAndOptions () const; + QString iconName (); + +%If ( KDE_3_2_0 - ) + void setCheckForExecutables (bool); + bool checkForExecutables () const; + QString typedString () const; +%End + + +protected: + void init (const KURL&); + void init (const KURL& = KURL (QString ::null )) [void (QString&)]; +%MethodCode +//takes url | (KURL = KURL(QString.null)) + + Py_BEGIN_ALLOW_THREADS + if (a0 == 0) + sipCpp -> sipProtect_init(QString::null); + else + sipCpp -> sipProtect_init(*a0); + Py_END_ALLOW_THREADS +%End + + +}; // class KURIFilterData + + +class KURIFilterPlugin : QObject +{ +%TypeHeaderCode +#include <qstringlist.h> +#include <kurifilter.h> +%End + + +public: + KURIFilterPlugin (QObject* = 0, const char* = 0, double = 1.0); + virtual QString name () const; + virtual double priority () const; + virtual bool filterURI (KURIFilterData&) const = 0; + virtual KCModule* configModule (QWidget*, const char*) const; + virtual QString configName () const; + +protected: + void setFilteredURI (KURIFilterData&, const KURL&) const; + void setErrorMsg (KURIFilterData&, const QString&) const; + void setURIType (KURIFilterData&, KURIFilterData::URITypes) const; + void setArguments (KURIFilterData&, const QString&) const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KURIFilterPlugin + + +class KURIFilter +{ +%TypeHeaderCode +#include <qstringlist.h> +#include <kurifilter.h> +%End + + +public: + static KURIFilter* self (); + bool filterURI (KURIFilterData&, const QStringList& = QStringList ()); + bool filterURI (KURL&, const QStringList& = QStringList ()); + bool filterURI (QString&, const QStringList& = QStringList ()); + KURL filteredURI (const KURL&, const QStringList& = QStringList ()); + QString filteredURI (const QString&, const QStringList& = QStringList ()); +//ig QPtrListIterator<KURIFilterPlugin> pluginsIterator () const; + +%If ( KDE_3_1_0 - ) + QStringList pluginNames () const; +%End + + +protected: + KURIFilter (); + void loadPlugins (); + +}; // class KURIFilter + diff --git a/sip/kio/kurlcompletion.sip b/sip/kio/kurlcompletion.sip new file mode 100644 index 0000000..dc927df --- /dev/null +++ b/sip/kio/kurlcompletion.sip @@ -0,0 +1,81 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KURLCompletion : KCompletion +{ +%TypeHeaderCode +#include <kurlcompletion.h> +%End + + +public: + + enum Mode + { + ExeCompletion, + FileCompletion, + DirCompletion + }; + + KURLCompletion (); + KURLCompletion (KURLCompletion::Mode); + virtual QString makeCompletion (const QString&); + virtual void setDir (const QString&); + virtual QString dir (); + virtual bool isRunning (); + virtual void stop (); + virtual Mode mode (); + virtual void setMode (KURLCompletion::Mode); + virtual bool replaceEnv (); + virtual void setReplaceEnv (bool); + virtual bool replaceHome (); + virtual void setReplaceHome (bool); + QString replacedPath (const QString&); + +%If ( KDE_3_2_0 - ) + static QString replacedPath (const QString&, bool, bool = 1); +%End + + +protected: + void postProcessMatch (QString*); + void postProcessMatches (QStringList*); +//ig void postProcessMatches (KCompletionMatches*) const; + +%If ( KDE_3_3_0 - ) + virtual void customEvent (QCustomEvent*); +%End + + +protected slots: + void slotEntries (KIO::Job*, const KIO::UDSEntryList&); + void slotIOFinished (KIO::Job*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KURLCompletion + diff --git a/sip/kio/kurlpixmapprovider.sip b/sip/kio/kurlpixmapprovider.sip new file mode 100644 index 0000000..3f2f336 --- /dev/null +++ b/sip/kio/kurlpixmapprovider.sip @@ -0,0 +1,41 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KURLPixmapProvider : KPixmapProvider +{ +%TypeHeaderCode +#include <kurlpixmapprovider.h> +%End + + +public: + virtual QPixmap pixmapFor (const QString&, int = 0); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KURLPixmapProvider + diff --git a/sip/kio/kuserprofile.sip b/sip/kio/kuserprofile.sip new file mode 100644 index 0000000..77cec50 --- /dev/null +++ b/sip/kio/kuserprofile.sip @@ -0,0 +1,222 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KServiceOffer +{ +%TypeHeaderCode +#include <kuserprofile.h> +%End + + +public: + KServiceOffer (); + KServiceOffer (const KServiceOffer&); + KServiceOffer (KService::Ptr, int, bool); + +%If ( KDE_3_1_4 - ) + bool operator < (const KServiceOffer&) const; +%End + + bool allowAsDefault () const; + int preference () const; + KService::Ptr service () const; + bool isValid () const; + +}; // class KServiceOffer + + +class KServiceTypeProfile +{ +%TypeHeaderCode +#include <kuserprofile.h> +%End + + +public: + typedef QValueList<KServiceOffer> OfferList; + int preference (const QString&) const; + bool allowAsDefault (const QString&) const; + KServiceTypeProfile::OfferList offers () const; + static KService::Ptr preferredService (const QString&, const QString&); + static KServiceTypeProfile* serviceTypeProfile (const QString&, const QString&); + static KServiceTypeProfile::OfferList offers (const QString&, const QString&); + static const QPtrList<KServiceTypeProfile>& serviceTypeProfiles (); + static void clear (); + static void setConfigurationMode (); + static bool configurationMode (); + +protected: + KServiceTypeProfile (const QString&, const QString& = QString ::null ); + void addService (const QString&, int = 1, bool = 1); + +}; // class KServiceTypeProfile + + + +%MappedType KServiceTypeProfile::OfferList +//converts a Python list of KServiceOffer +{ +%TypeHeaderCode +#include <qvaluelist.h> +#include <kservicetype.h> +#include <kuserprofile.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList<KServiceOffer> *cpplist = (QValueList<KServiceOffer> *)sipCpp; + PyObject *inst; + + // Get it. + QValueList<KServiceOffer>::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromNewType(new KServiceOffer(*it), sipType_KServiceOffer, NULL)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList<KServiceOffer> *cpplist = new QValueList<KServiceOffer>; + + PyObject *elem; + KServiceOffer *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KServiceOffer *)sipForceConvertToType(elem, sipType_KServiceOffer, 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 QPtrList<KServiceTypeProfile> +//converts a Python list of KServiceTypeProfile +{ +%TypeHeaderCode +#include <qptrlist.h> +#include <kservicetype.h> +//typedef QPtrList<KServiceTypeProfile> SvcTypeProfileList; +%End + +%ConvertFromTypeCode + // Convert to a Python list of KServiceTypeProfile + + if (!sipCpp) + return PyList_New (0); + + PyObject *plist; + + // Create the list + + if ((plist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList<KServiceTypeProfile> *cList = (QPtrList<KServiceTypeProfile> *)sipCpp; + PyObject *inst; + KServiceTypeProfile *svc; + + for( svc = cList->first (); svc; svc = cList->next ()) + { + inst = sipConvertFromInstance (svc, sipClass_KServiceTypeProfile, 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 SvcTypeProfileList on the heap. + + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList<KServiceTypeProfile> *cList = new QPtrList<KServiceTypeProfile>; + + PyObject *elem; + KServiceTypeProfile *service; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + service = (KServiceTypeProfile *)sipForceConvertToType(elem, sipType_KServiceTypeProfile, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cList; + return 0; + } + + cList->append (service); + } + + *sipCppPtr = cList; + + return 1; +%End +}; + + diff --git a/sip/kio/kzip.sip b/sip/kio/kzip.sip new file mode 100644 index 0000000..184e64c --- /dev/null +++ b/sip/kio/kzip.sip @@ -0,0 +1,120 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KZip : KArchive +{ +%TypeHeaderCode +#include <kzip.h> +%End + + +public: + KZip (const QString&); + KZip (QIODevice*); + QString fileName (); + +%If ( KDE_3_2_0 - ) + + enum ExtraField + { + NoExtraField, + ModificationTime, + DefaultExtraField + }; + + void setExtraField (KZip::ExtraField); + KZip::ExtraField extraField () const; +%End + + + enum Compression + { + NoCompression, + DeflateCompression + }; + + void setCompression (KZip::Compression); + KZip::Compression compression () const; + virtual bool writeFile (const QString&, const QString&, const QString&, uint, const char*); + virtual bool prepareWriting (const QString&, const QString&, const QString&, uint); + +%If ( KDE_3_2_0 - ) + bool writeSymLink (const QString&, const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); + bool prepareWriting (const QString&, const QString&, const QString&, uint, mode_t, time_t, time_t, time_t); + bool writeFile (const QString&, const QString&, const QString&, uint, mode_t, time_t, time_t, time_t, const char*); +%End + + bool writeData (const char*, uint); + virtual bool doneWriting (uint); + +protected: + virtual bool openArchive (int); + virtual bool closeArchive (); + virtual bool writeDir (const QString&, const QString&, const QString&); + +protected: + virtual void virtual_hook (int, void*); + +%If ( KDE_3_2_0 - ) + bool writeData_impl (const char*, uint); + bool prepareWriting_impl (const QString&, const QString&, const QString&, uint, mode_t, time_t, time_t, time_t); + bool writeSymLink_impl (const QString&, const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); +%End + + +}; // class KZip + +%End + + +%If ( KDE_3_1_0 - ) + +class KZipFileEntry : KArchiveFile +{ +%TypeHeaderCode +#include <kzip.h> +%End + + +public: + KZipFileEntry (KZip*, const QString&, int, int, const QString&, const QString&, const QString&, const QString&, Q_LONG, Q_LONG, int, Q_LONG); + int encoding () const; + Q_LONG compressedSize () const; + void setCompressedSize (Q_LONG); + void setHeaderStart (Q_LONG); + Q_LONG headerStart () const; + ulong crc32 () const; + void setCRC32 (ulong); + QString path () const; + virtual QByteArray data () const; + QIODevice* device () const; + +}; // class KZipFileEntry + +%End + diff --git a/sip/kio/metainfojob.sip b/sip/kio/metainfojob.sip new file mode 100644 index 0000000..691cb18 --- /dev/null +++ b/sip/kio/metainfojob.sip @@ -0,0 +1,63 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 - ) +namespace KIO +{ + +class MetaInfoJob : KIO::Job +{ +%TypeHeaderCode +#include <kfileitem.h> +#include <jobclasses.h> +#include <metainfojob.h> +%End + + +public: + MetaInfoJob (const KFileItemList&, bool = 0); + void removeItem (const KFileItem*); + static QStringList availablePlugins (); + static QStringList supportedMimeTypes (); + +signals: + void gotMetaInfo (const KFileItem*); + void failed (const KFileItem*); + +protected: + void getMetaInfo (); + +protected slots: + virtual void slotResult (KIO::Job*); + +}; // class MetaInfoJob + +KIO::MetaInfoJob* fileMetaInfo (const KFileItemList&); +KIO::MetaInfoJob* fileMetaInfo (const KURL::List&); +}; // namespace KIO + +%End + diff --git a/sip/kio/netaccess.sip b/sip/kio/netaccess.sip new file mode 100644 index 0000000..c4acb6e --- /dev/null +++ b/sip/kio/netaccess.sip @@ -0,0 +1,128 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KIO +{ + +class NetAccess : QObject +{ +%TypeHeaderCode +#include <netaccess.h> +%End + + +public: + +%If ( KDE_3_2_0 - ) + static bool download (const KURL&, QString&, QWidget*); +%End + + static bool download (const KURL&, QString&); + static void removeTempFile (const QString&); + +%If ( KDE_3_2_0 - ) + static bool upload (const QString&, const KURL&, QWidget*); +%End + + static bool upload (const QString&, const KURL&); + +%If ( KDE_3_2_0 - ) + static bool copy (const KURL&, const KURL&, QWidget*); +%End + + static bool copy (const KURL&, const KURL&); + +%If ( KDE_3_2_0 - ) + static bool file_copy (const KURL&, const KURL&, int = -1, bool = 0, bool = 0, QWidget* = 0); + static bool file_move (const KURL&, const KURL&, int = -1, bool = 0, bool = 0, QWidget* = 0); + static bool dircopy (const KURL&, const KURL&, QWidget*); +%End + + static bool dircopy (const KURL&, const KURL&); + +%If ( KDE_3_2_0 - ) + static bool dircopy (const KURL::List&, const KURL&, QWidget* = 0); + static bool move (const KURL&, const KURL&, QWidget* = 0); + static bool move (const KURL::List&, const KURL&, QWidget* = 0); + static bool exists (const KURL&, bool, QWidget*); + static bool exists (const KURL&, QWidget*); +%End + + static bool exists (const KURL&); + +%If ( KDE_3_1_0 - ) + static bool exists (const KURL&, bool); + +%If ( KDE_3_2_0 - ) + static bool stat (const KURL&, KIO::UDSEntry&, QWidget*); +%End + +%End + + static bool stat (const KURL&, KIO::UDSEntry&); + +%If ( KDE_3_5_0 - ) + static KURL mostLocalURL (const KURL&, QWidget*); +%End + + +%If ( KDE_3_2_0 - ) + static bool del (const KURL&, QWidget*); +%End + + static bool del (const KURL&) /PyName=del_/; + +%If ( KDE_3_2_0 - ) + static bool mkdir (const KURL&, QWidget*, int = -1); +%End + + static bool mkdir (const KURL&, int = -1); + +%If ( KDE_3_2_0 - ) + static QString fish_execute (const KURL&, const QString, QWidget*); + +%If ( KDE_3_3_1 - ) + static bool synchronousRun (KIO::Job*, QWidget*, QByteArray* = 0, KURL* = 0, QMap<QString,QString>* = 0); +%End + + static QString mimetype (const KURL&, QWidget*); +%End + +//ig static QString mimetype (const KURL&); + static QString lastErrorString (); + +%If ( KDE_3_3_0 - ) + static int lastError (); +%End + + +private: + NetAccess (); + ~NetAccess (); + +}; // class NetAccess + +}; // namespace KIO + diff --git a/sip/kio/observer.sip b/sip/kio/observer.sip new file mode 100644 index 0000000..0b6fb60 --- /dev/null +++ b/sip/kio/observer.sip @@ -0,0 +1,96 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class Observer : QObject, DCOPObject +{ +%TypeHeaderCode +#include <observer.h> +%End + + +public: + +%If ( KDE_3_1_4 - ) + virtual bool process (const QCString&, const QByteArray&, QCString&, QByteArray&); + QCStringList functions (); + QCStringList interfaces (); +%End + + +public: + static Observer* self (); + int newJob (KIO::Job*, bool); + void jobFinished (int); + bool openPassDlg (const QString&, QString&, QString&, bool); + bool openPassDlg (KIO::AuthInfo&); + int messageBox (int, int, const QString&, const QString&, const QString&, const QString&); + +%If ( KDE_3_3_0 - ) + static int messageBox (int, int, const QString&, const QString&, const QString&, const QString&, const QString&); +%End + + KIO::RenameDlg_Result open_RenameDlg (KIO::Job*, const QString&, const QString&, const QString&, KIO::RenameDlg_Mode, QString&, KIO::filesize_t = -1, KIO::filesize_t = -1, time_t = -1, time_t = -1, time_t = -1, time_t = -1); + KIO::SkipDlg_Result open_SkipDlg (KIO::Job*, bool, const QString&); + +public: + void killJob (int); + KIO::MetaData metadata (int); + +protected: + Observer (); + ~Observer (); + +public slots: + void slotTotalSize (KIO::Job*, KIO::filesize_t); + void slotTotalFiles (KIO::Job*, ulong); + void slotTotalDirs (KIO::Job*, ulong); + void slotProcessedSize (KIO::Job*, KIO::filesize_t); + void slotProcessedFiles (KIO::Job*, ulong); + void slotProcessedDirs (KIO::Job*, ulong); + void slotSpeed (KIO::Job*, ulong); + void slotPercent (KIO::Job*, ulong); + void slotInfoMessage (KIO::Job*, const QString&); + void slotCopying (KIO::Job*, const KURL&, const KURL&); + void slotMoving (KIO::Job*, const KURL&, const KURL&); + void slotDeleting (KIO::Job*, const KURL&); + +%If ( KDE_3_1_0 - ) + void slotTransferring (KIO::Job*, const KURL&); +%End + + void slotCreatingDir (KIO::Job*, const KURL&); + void slotCanResume (KIO::Job*, KIO::filesize_t); + +public: + void stating (KIO::Job*, const KURL&); + void mounting (KIO::Job*, const QString&, const QString&); + void unmounting (KIO::Job*, const QString&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class Observer + diff --git a/sip/kio/passdlg.sip b/sip/kio/passdlg.sip new file mode 100644 index 0000000..434f40b --- /dev/null +++ b/sip/kio/passdlg.sip @@ -0,0 +1,68 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KIO +{ + +class PasswordDialog : KDialogBase +{ +%TypeHeaderCode +#include <passdlg.h> +%End + + +public: + PasswordDialog (const QString&, const QString&, bool = 0, bool = 1, QWidget* /TransferThis/ = 0, const char* = 0); + void setPrompt (const QString&); + void addCommentLine (const QString&, const QString); + QString password () const; + QString username () const; + bool keepPassword () const; + +%If ( KDE_3_2_0 - ) + void setKeepPassword (bool); +%End + + void setUserReadOnly (bool); + void setEnableUserField (bool, bool = 0); + +%If ( KDE_3_1_0 - ) + void setPassword (const QString&); + +%If ( KDE_3_4_0 - ) + void setKnownLogins (const QMap<QString,QString>&); +%End + +%End + + static int getNameAndPassword (QString& /Out/, QString& /Out/, bool* /In, Out/, const QString& = QString ::null , bool = 0, const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null ); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class PasswordDialog + +}; // namespace KIO + diff --git a/sip/kio/paste.sip b/sip/kio/paste.sip new file mode 100644 index 0000000..2757894 --- /dev/null +++ b/sip/kio/paste.sip @@ -0,0 +1,56 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <paste.h> +%End + +namespace KIO +{ +KIO::Job* pasteClipboard (const KURL&, bool = 0); +void pasteData (const KURL&, const QByteArray&); + +%If ( KDE_3_2_0 - ) +KIO::CopyJob* pasteDataAsync (const KURL&, const QByteArray&); + +%If ( KDE_3_3_0 - ) +KIO::CopyJob* pasteDataAsync (const KURL&, const QByteArray&, const QString&); + +%If ( KDE_3_5_0 - ) +KIO::CopyJob* pasteMimeSource (QMimeSource*, const KURL&, const QString&, QWidget*, bool = 0); +%End + +%End + +%End + +bool isClipboardEmpty (); + +%If ( KDE_3_5_0 - ) +QString pasteActionText (); +%End + +}; // namespace KIO + diff --git a/sip/kio/previewjob.sip b/sip/kio/previewjob.sip new file mode 100644 index 0000000..8096b6f --- /dev/null +++ b/sip/kio/previewjob.sip @@ -0,0 +1,72 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KIO +{ + +class PreviewJob : KIO::Job +{ +%TypeHeaderCode +#include <previewjob.h> +%End + + +public: + PreviewJob (const KFileItemList&, int, int, int, int, bool, bool, const QStringList*, bool = 0); + void removeItem (const KFileItem*); + +%If ( KDE_3_4_0 - ) + void setIgnoreMaximumSize (bool = 1); +%End + + static QStringList availablePlugins (); + static QStringList supportedMimeTypes (); + +%If ( KDE_3_5_1 - ) + virtual void kill (bool = 1); +%End + + +signals: + void gotPreview (const KFileItem*, const QPixmap&); + void failed (const KFileItem*); + +protected: + void getOrCreateThumbnail (); + bool statResultThumbnail (); + void createThumbnail (QString); + +protected slots: + virtual void slotResult (KIO::Job*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class PreviewJob + +KIO::PreviewJob* filePreview (const KFileItemList&, int, int = 0, int = 0, int = 70, bool = 1, bool = 1, const QStringList* = 0); +KIO::PreviewJob* filePreview (const KURL::List&, int, int = 0, int = 0, int = 70, bool = 1, bool = 1, const QStringList* = 0); +}; // namespace KIO + diff --git a/sip/kio/progressbase.sip b/sip/kio/progressbase.sip new file mode 100644 index 0000000..0c6330e --- /dev/null +++ b/sip/kio/progressbase.sip @@ -0,0 +1,95 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <progressbase.h> +%End + +namespace KIO +{ + +enum Progress +{ + DEFAULT, + STATUSBAR, + LIST +}; + + +class ProgressBase : QWidget +{ +%TypeHeaderCode +#include <progressbase.h> +%End + + +public: + ProgressBase (QWidget* /TransferThis/); + void setJob (KIO::Job*); + void setJob (KIO::CopyJob*); + void setJob (KIO::DeleteJob*); + void setStopOnClose (bool); + bool stopOnClose () const; + void setOnlyClean (bool); + bool onlyClean () const; + +%If ( KDE_3_1_0 - ) + void finished (); +%End + + +public slots: + void slotStop (); + virtual void slotClean (); + virtual void slotTotalSize (KIO::Job*, KIO::filesize_t); + virtual void slotTotalFiles (KIO::Job*, ulong); + virtual void slotTotalDirs (KIO::Job*, ulong); + virtual void slotProcessedSize (KIO::Job*, KIO::filesize_t); + virtual void slotProcessedFiles (KIO::Job*, ulong); + virtual void slotProcessedDirs (KIO::Job*, ulong); + virtual void slotSpeed (KIO::Job*, ulong); + virtual void slotPercent (KIO::Job*, ulong); + virtual void slotCopying (KIO::Job*, const KURL&, const KURL&); + virtual void slotMoving (KIO::Job*, const KURL&, const KURL&); + virtual void slotDeleting (KIO::Job*, const KURL&); + virtual void slotCreatingDir (KIO::Job*, const KURL&); + virtual void slotCanResume (KIO::Job*, KIO::filesize_t); + +signals: + void stopped (); + +protected slots: + void slotFinished (KIO::Job*); + +protected: + virtual void closeEvent (QCloseEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class ProgressBase + +}; // namespace KIO + diff --git a/sip/kio/renamedlg.sip b/sip/kio/renamedlg.sip new file mode 100644 index 0000000..79c9bc1 --- /dev/null +++ b/sip/kio/renamedlg.sip @@ -0,0 +1,67 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <renamedlg.h> +%End + +namespace KIO +{ + +enum RenameDlg_Mode +{ + M_OVERWRITE, + M_OVERWRITE_ITSELF, + M_SKIP, + M_SINGLE, + M_MULTI, + M_RESUME, + M_NORENAME +}; + + +enum RenameDlg_Result +{ + R_RESUME, + R_RESUME_ALL, + R_OVERWRITE, + R_OVERWRITE_ALL, + R_SKIP, + R_AUTO_SKIP, + R_RENAME, + R_CANCEL +}; + + +//ig class RenameDlg : QDialog; + +//ig KIO::RenameDlg_Result open_RenameDlg (const QString&, const QString&, const QString&, KIO::RenameDlg_Mode, QString&, KIO::filesize_t = (KIO ::filesize_t )-1 , KIO::filesize_t = (KIO ::filesize_t )-1 , time_t = -1 , time_t = -1 , time_t = -1 , time_t = -1 ); + +%If ( - KDE_3_1_5 ) +//ig KIO::RenameDlg_Result open_RenameDlg (const QString&, const QString&, const QString&, KIO::RenameDlg_Mode, QString&, ulong = -1, ulong = -1, time_t = -1, time_t = -1, time_t = -1, time_t = -1); +%End + +}; // namespace KIO + diff --git a/sip/kio/renamedlgplugin.sip b/sip/kio/renamedlgplugin.sip new file mode 100644 index 0000000..784dabf --- /dev/null +++ b/sip/kio/renamedlgplugin.sip @@ -0,0 +1,39 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class RenameDlgPlugin : QWidget +{ +%TypeHeaderCode +#include <renamedlgplugin.h> +%End + + +public: + RenameDlgPlugin (QDialog*, const char*, const QStringList& = QStringList ()); + virtual bool initialize (KIO::RenameDlg_Mode, const QString&, const QString&, const QString&, const QString&, KIO::filesize_t, KIO::filesize_t, time_t, time_t, time_t, time_t); + +}; // class RenameDlgPlugin + diff --git a/sip/kio/scheduler.sip b/sip/kio/scheduler.sip new file mode 100644 index 0000000..31d3913 --- /dev/null +++ b/sip/kio/scheduler.sip @@ -0,0 +1,106 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KIO +{ + +class Scheduler : QObject, DCOPObject +{ +%TypeHeaderCode +#include <scheduler.h> +%End + + +public: +//ig typedef QPtrList<KIO::SimpleJob> JobList; + static void doJob (KIO::SimpleJob*); + static void scheduleJob (KIO::SimpleJob*); + static void cancelJob (KIO::SimpleJob*); + static void jobFinished (KIO::SimpleJob*, KIO::Slave*); + static void putSlaveOnHold (KIO::SimpleJob*, const KURL&); + static void removeSlaveOnHold (); + static void publishSlaveOnHold (); +//doc +// There is no default value for config (KIO.MetaData) - pass an +// empty Python dict if you need the default value +//end + static KIO::Slave* getConnectedSlave (const KURL&, const KIO::MetaData&); + static bool assignJobToSlave (KIO::Slave*, KIO::SimpleJob*); + static bool disconnectSlave (KIO::Slave*); + +%If ( KDE_3_1_0 - ) + static void registerWindow (QWidget*); + +%If ( KDE_3_2_0 - ) + static void unregisterWindow (QObject*); +%End + +%End + + static bool connect (const char*, const QObject*, const char*); + static bool connect (const QObject*, const char*, const QObject*, const char*); + static bool disconnect (const QObject*, const char*, const QObject*, const char*); + bool connect (const QObject*, const char*, const char*); + static void checkSlaveOnHold (bool); + void debug_info (); + virtual bool process (const QCString&, const QByteArray&, QCString&, QByteArray&); + virtual QCStringList functions (); + +public slots: + void slotSlaveDied (KIO::Slave*); + void slotSlaveStatus (pid_t, const QCString&, const QString&, bool); + +signals: + void slaveConnected (KIO::Slave*); + void slaveError (KIO::Slave*, int, const QString&); + +protected: + void setupSlave (KIO::Slave*, const KURL&, const QString&, const QString&, bool, const KIO::MetaData* = 0); +//ig bool startJobScheduled (KIO::Scheduler::ProtocolInfo*); + bool startJobDirect (); + Scheduler (); + +protected slots: + void startStep (); + void slotCleanIdleSlaves (); + void slotSlaveConnected (); + void slotSlaveError (int, const QString&); + void slotScheduleCoSlave (); + +%If ( KDE_3_1_0 - ) + void slotUnregisterWindow (QObject*); +%End + + +private: + Scheduler (const KIO::Scheduler&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class Scheduler + +}; // namespace KIO + diff --git a/sip/kio/sessiondata.sip b/sip/kio/sessiondata.sip new file mode 100644 index 0000000..2ba2582 --- /dev/null +++ b/sip/kio/sessiondata.sip @@ -0,0 +1,51 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KIO +{ + +class SessionData : QObject +{ +%TypeHeaderCode +#include <sessiondata.h> +%End + + +public: + SessionData (); + virtual void configDataFor (KIO::MetaData&, const QString&, const QString&); + virtual void reset (); + +public slots: + void slotAuthData (const QCString&, const QCString&, bool); + void slotDelAuthData (const QCString&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class SessionData + +}; // namespace KIO + diff --git a/sip/kio/skipdlg.sip b/sip/kio/skipdlg.sip new file mode 100644 index 0000000..29bb91f --- /dev/null +++ b/sip/kio/skipdlg.sip @@ -0,0 +1,45 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <skipdlg.h> +%End + +namespace KIO +{ + +enum SkipDlg_Result +{ + S_SKIP, + S_AUTO_SKIP, + S_CANCEL +}; + +//ig KIO::SkipDlg_Result open_SkipDlg (bool, const QString& = QString ::null ); + +//ig class SkipDlg : KDialog; + +}; // namespace KIO + diff --git a/sip/kio/slave.sip b/sip/kio/slave.sip new file mode 100644 index 0000000..5db1ad1 --- /dev/null +++ b/sip/kio/slave.sip @@ -0,0 +1,95 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KIO +{ + +class Slave : KIO::SlaveInterface +{ +%TypeHeaderCode +#include <slave.h> +%End + + +protected: + +%If ( KDE_3_2_0 - ) + Slave (bool, KServerSocket*, const QString&, const QString&); +%End + + +public: + Slave (KServerSocket*, const QString&, const QString&); + void setPID (pid_t); + int slave_pid (); + void kill (); + bool isAlive (); + void setHost (const QString&, int, const QString&, const QString&); + void resetHost (); + void setConfig (const KIO::MetaData&); + QString protocol (); + void setProtocol (const QString&); + QString slaveProtocol (); + QString host (); + int port (); + QString user (); + QString passwd (); + static KIO::Slave* createSlave (const QString&, const KURL&, int& /Out/, QString& /Out/); + static KIO::Slave* holdSlave (const QString&, const KURL&); + void suspend (); + void resume (); + bool suspended (); + +%If ( KDE_3_2_0 - ) + void send (int, const QByteArray& = QByteArray ()); +%End + + void hold (const KURL&); + time_t idleTime (); + void setIdle (); + bool isConnected (); + void setConnected (bool); + KIO::Connection* connection (); + void ref (); + void deref (); + +public slots: + void accept (KSocket*); + void gotInput (); + void timeout (); + +signals: + void slaveDied (KIO::Slave*); + +protected: + void unlinkSocket (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class Slave + +}; // namespace KIO + diff --git a/sip/kio/slavebase.sip b/sip/kio/slavebase.sip new file mode 100644 index 0000000..e5caa6c --- /dev/null +++ b/sip/kio/slavebase.sip @@ -0,0 +1,187 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KIO +{ + +class SlaveBase +{ +%TypeHeaderCode +#include <slavebase.h> +%End + + +public: + SlaveBase (const QCString&, const QCString&, const QCString&); + +%If ( KDE_3_1_0 - ) + void exit (); +%End + + void dispatchLoop (); + void setConnection (KIO::Connection*); + KIO::Connection* connection () const; + void data (const QByteArray&); + void dataReq (); + void error (int, const QString&); + void connected (); + void finished (); + void needSubURLData (); + void slaveStatus (const QString&, bool); + void statEntry (const KIO::UDSEntry&); + void listEntries (const KIO::UDSEntryList&); + bool canResume (KIO::filesize_t); + void canResume (); + void totalSize (KIO::filesize_t); + void processedSize (KIO::filesize_t); + void processedPercent (float); + void speed (ulong); + void redirection (const KURL&); + void errorPage (); + void mimeType (const QString&); + void warning (const QString&); + void infoMessage (const QString&); + + enum MessageBoxType + { + QuestionYesNo, + WarningYesNo, + WarningContinueCancel, + WarningYesNoCancel, + Information, + SSLMessageBox + }; + + int messageBox (KIO::SlaveBase::MessageBoxType, const QString&, const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null ); + +%If ( KDE_3_3_0 - ) + int messageBox (const QString&, KIO::SlaveBase::MessageBoxType, const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null ); +%End + + void setMetaData (const QString&, const QString&); + bool hasMetaData (const QString&); + QString metaData (const QString&); + +%If ( KDE_3_5_2 - ) + KIO::MetaData allMetaData () const; +%End + + KConfigBase* config (); + +%If ( KDE_3_3_0 - ) + KRemoteEncoding* remoteEncoding (); +%End + + virtual void setHost (const QString&, int, const QString&, const QString&); + virtual void setSubURL (const KURL&); + virtual void openConnection (); + virtual void closeConnection (); + virtual void get (const KURL&); + virtual void put (const KURL&, int, bool, bool); + virtual void stat (const KURL&); + virtual void mimetype (const KURL&); + virtual void listDir (const KURL&); + virtual void mkdir (const KURL&, int); + virtual void rename (const KURL&, const KURL&, bool); + virtual void symlink (const QString&, const KURL&, bool); + virtual void chmod (const KURL&, int); + virtual void copy (const KURL&, const KURL&, int, bool); + virtual void del (const KURL&, bool) /PyName=del_/; + virtual void special (const QByteArray&); + virtual void multiGet (const QByteArray&); + virtual void slave_status (); + virtual void reparseConfiguration (); + int connectTimeout (); + int proxyConnectTimeout (); + int responseTimeout (); + int readTimeout (); + +%If ( KDE_3_1_0 - ) + void setTimeoutSpecialCommand (int, const QByteArray& = QByteArray ()); +%End + + static void sigsegv_handler (int); + static void sigpipe_handler (int); + virtual bool dispatch (); + virtual void dispatch (int, const QByteArray&); + int readData (QByteArray&); + +%If ( KDE_3_1_0 - ) + void listEntry (const KIO::UDSEntry&, bool); + void connectSlave (const QString&); + void disconnectSlave (); + bool openPassDlg (KIO::AuthInfo&, const QString&); + bool openPassDlg (KIO::AuthInfo&); + bool checkCachedAuthentication (KIO::AuthInfo&); + bool cacheAuthentication (const KIO::AuthInfo&); + bool pingCacheDaemon () const; + QString createAuthCacheKey (const KURL&); + void sendAuthenticationKey (const QCString&, const QCString&, bool); + void delCachedAuthentication (const QString&); + void setMultipleAuthCaching (bool); + bool multipleAuthCaching () const; + bool requestNetwork (const QString& = QString ::null ); + void dropNetwork (const QString& = QString ::null ); + DCOPClient* dcopClient (); + int waitForAnswer (int, int, QByteArray&, int* = 0); + void sendMetaData (); + QCString mProtocol; + KIO::Connection* m_pConnection; + KIO::MetaData mOutgoingMetaData; + KIO::MetaData mIncomingMetaData; + bool wasKilled () const; + void setKillFlag (); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( - KDE_3_1_0 ) + void listEntry (const KIO::UDSEntry&, bool); + void connectSlave (const QString&); + void disconnectSlave (); + bool pingCacheDaemon () const; + bool openPassDlg (KIO::AuthInfo&); + bool checkCachedAuthentication (KIO::AuthInfo&); + bool cacheAuthentication (const KIO::AuthInfo&); + QString createAuthCacheKey (const KURL&); + void sendAuthenticationKey (const QCString&, const QCString&, bool); + void delCachedAuthentication (const QString&); + void setMultipleAuthCaching (bool); + bool multipleAuthCaching () const; + bool requestNetwork (const QString& = QString ::null ); + void dropNetwork (const QString& = QString ::null ); + int waitForAnswer (int, int, QByteArray&, int* = 0); + void sendMetaData (); +%End + + +}; // class SlaveBase + +}; // namespace KIO + diff --git a/sip/kio/slaveconfig.sip b/sip/kio/slaveconfig.sip new file mode 100644 index 0000000..7ed17c9 --- /dev/null +++ b/sip/kio/slaveconfig.sip @@ -0,0 +1,53 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KIO +{ + +class SlaveConfig : QObject +{ +%TypeHeaderCode +#include <slaveconfig.h> +%End + + +public: + static KIO::SlaveConfig* self (); + void setConfigData (const QString&, const QString&, const QString&, const QString&); + void setConfigData (const QString&, const QString&, const KIO::MetaData&); + KIO::MetaData configData (const QString&, const QString&); + QString configData (const QString&, const QString&, const QString&); + void reset (); + +signals: + void configNeeded (const QString&, const QString&); + +protected: + SlaveConfig (); + +}; // class SlaveConfig + +}; // namespace KIO + diff --git a/sip/kio/slaveinterface.sip b/sip/kio/slaveinterface.sip new file mode 100644 index 0000000..764b78f --- /dev/null +++ b/sip/kio/slaveinterface.sip @@ -0,0 +1,188 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <slaveinterface.h> +%End + +namespace KIO +{ + +enum Info +{ + INF_TOTAL_SIZE, + INF_PROCESSED_SIZE, + INF_SPEED, + INF_REDIRECTION, + INF_MIME_TYPE, + INF_ERROR_PAGE, + INF_WARNING, + INF_GETTING_FILE, + INF_NEED_PASSWD, + INF_INFOMESSAGE, + INF_META_DATA, + INF_NETWORK_STATUS, + INF_MESSAGEBOX +}; + + +%If ( KDE_3_1_2 - ) + +enum Message +{ + MSG_DATA, + MSG_DATA_REQ, + MSG_ERROR, + MSG_CONNECTED, + MSG_FINISHED, + MSG_STAT_ENTRY, + MSG_LIST_ENTRIES, + MSG_RENAMED, + MSG_RESUME, + MSG_SLAVE_STATUS, + MSG_SLAVE_ACK, + MSG_NET_REQUEST, + MSG_NET_DROP, + MSG_NEED_SUBURL_DATA, + MSG_CANRESUME, + MSG_AUTH_KEY, + MSG_DEL_AUTH_KEY +}; + +%End + + +class SlaveInterface : QObject +{ +%TypeHeaderCode +#include <slaveinterface.h> +%End + + +public: + SlaveInterface (KIO::Connection*); + void setConnection (KIO::Connection*); + KIO::Connection* connection () const; + void setProgressId (int); + int progressId () const; + void sendResumeAnswer (bool); + void setOffset (KIO::filesize_t); + KIO::filesize_t offset () const; + +signals: + void data (const QByteArray&); + void dataReq (); + void error (int, const QString&); + void connected (); + void finished (); + void slaveStatus (pid_t, const QCString&, const QString&, bool); + void listEntries (const KIO::UDSEntryList&); + void statEntry (const KIO::UDSEntry&); + void needSubURLData (); + void needProgressId (); + void canResume (KIO::filesize_t); + void metaData (const KIO::MetaData&); + void totalSize (KIO::filesize_t); + void processedSize (KIO::filesize_t); + void redirection (const KURL&); + void speed (ulong); + void errorPage (); + void mimeType (const QString&); + void warning (const QString&); + void infoMessage (const QString&); + void connectFinished (); + void authorizationKey (const QCString&, const QCString&, bool); + void delAuthorization (const QCString&); + +protected: + virtual bool dispatch (); + virtual bool dispatch (int, const QByteArray&); + void openPassDlg (KIO::AuthInfo&); + void openPassDlg (const QString&, const QString&, const QString&, const QString&, const QString&, bool); + void openPassDlg (const QString&, const QString&, bool); + void messageBox (int, const QString&, const QString&, const QString&, const QString&); + +%If ( KDE_3_3_0 - ) + void messageBox (int, const QString&, const QString&, const QString&, const QString&, const QString&); +%End + + void requestNetwork (const QString&, const QString&); + void dropNetwork (const QString&, const QString&); + static void sigpipe_handler (int); + +protected slots: + void calcSpeed (); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class SlaveInterface + + +%If ( - KDE_3_2_0 ) + +enum Command +{ + CMD_HOST, + CMD_CONNECT, + CMD_DISCONNECT, + CMD_SLAVE_STATUS, + CMD_SLAVE_CONNECT, + CMD_SLAVE_HOLD, + CMD_NONE, + CMD_TESTDIR, + CMD_GET, + CMD_PUT, + CMD_STAT, + CMD_MIMETYPE, + CMD_LISTDIR, + CMD_MKDIR, + CMD_RENAME, + CMD_COPY, + CMD_DEL, + CMD_CHMOD, + CMD_SPECIAL, + CMD_USERPASS, + CMD_REPARSECONFIGURATION, + CMD_META_DATA, + CMD_SYMLINK, + CMD_SUBURL, + CMD_MESSAGEBOXANSWER, + CMD_RESUMEANSWER, + CMD_CONFIG, + CMD_MULTI_GET +}; + +%End + +}; // namespace KIO + + +%If ( KDE_3_1_4 - ) +//igx QDataStream& operator << (QDataStream&, const KIO::UDSEntry&); +//igx QDataStream& operator >> (QDataStream&, KIO::UDSEntry&); +%End diff --git a/sip/kio/statusbarprogress.sip b/sip/kio/statusbarprogress.sip new file mode 100644 index 0000000..5c165bd --- /dev/null +++ b/sip/kio/statusbarprogress.sip @@ -0,0 +1,56 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KIO +{ + +class StatusbarProgress : KIO::ProgressBase +{ +%TypeHeaderCode +#include <statusbarprogress.h> +%End + + +public: + StatusbarProgress (QWidget* /TransferThis/, bool = 1); + void setJob (KIO::Job*); + +public slots: + virtual void slotClean (); + virtual void slotTotalSize (KIO::Job*, KIO::filesize_t); + virtual void slotPercent (KIO::Job*, ulong); + virtual void slotSpeed (KIO::Job*, ulong); + +protected: + void setMode (); + virtual bool eventFilter (QObject*, QEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class StatusbarProgress + +}; // namespace KIO + diff --git a/sip/kio/tcpslavebase.sip b/sip/kio/tcpslavebase.sip new file mode 100644 index 0000000..407b0fc --- /dev/null +++ b/sip/kio/tcpslavebase.sip @@ -0,0 +1,91 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KIO +{ + +class TCPSlaveBase : KIO::SlaveBase +{ +%TypeHeaderCode +#include <tcpslavebase.h> +%End + + +public: + TCPSlaveBase (ushort, const QCString&, const QCString&, const QCString&); + TCPSlaveBase (ushort, const QCString&, const QCString&, const QCString&, bool); + +protected: + ssize_t Write (const void*, ssize_t); + ssize_t Read (void*, ssize_t); + ssize_t ReadLine (char*, ssize_t); + ushort GetPort (ushort); + bool ConnectToHost (const QString&, uint, bool); + void CloseDescriptor (); + bool AtEOF (); + bool InitializeSSL (); + void CleanSSL (); + ssize_t write (const void*, ssize_t); + ssize_t read (void*, ssize_t); + ssize_t readLine (char*, ssize_t); + void setBlockSize (int); + ushort port (ushort); + bool connectToHost (const QString&, uint, bool = 1); + +%If ( KDE_3_2_0 - ) + bool usingSSL () const; +%End + + bool usingTLS (); + bool canUseTLS (); + int startTLS (); + void stopTLS (); + void closeDescriptor (); + bool atEnd (); + void setSSLMetaData (); + bool initializeSSL (); + void cleanSSL (); + bool isConnectionValid (); + int connectResult (); + bool waitForResponse (int); + void setBlockConnection (bool); + void setConnectTimeout (int); + bool isSSLTunnelEnabled (); + void setEnableSSLTunnel (bool); + void setRealHost (const QString&); + void doConstructorStuff (); + int verifyCertificate (); + void certificatePrompt (); + bool userAborted () const; + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class TCPSlaveBase + +}; // namespace KIO + diff --git a/sip/kio/thumbcreator.sip b/sip/kio/thumbcreator.sip new file mode 100644 index 0000000..e8aff18 --- /dev/null +++ b/sip/kio/thumbcreator.sip @@ -0,0 +1,47 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class ThumbCreator +{ +%TypeHeaderCode +#include <thumbcreator.h> +%End + + +public: + + enum Flags + { + None, + DrawFrame, + BlendIcon + }; + + virtual bool create (const QString&, int, int, QImage&) = 0; + virtual ThumbCreator::Flags flags () const; + +}; // class ThumbCreator + diff --git a/sip/kmdi/kmdichildarea.sip b/sip/kmdi/kmdichildarea.sip new file mode 100644 index 0000000..3df86c0 --- /dev/null +++ b/sip/kmdi/kmdichildarea.sip @@ -0,0 +1,102 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kmdi version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KMdiChildArea : QFrame +{ +%TypeHeaderCode +#include <kmdichildarea.h> +%End + + +public: +//ig QPtrList<KMdiChildFrm>* m_pZ; + QSize m_defaultChildFrmSize; + +protected: + +public: + KMdiChildArea (QWidget*); + void manageChild (KMdiChildFrm*, bool = 1, bool = 1); + void destroyChild (KMdiChildFrm*, bool = 1); + void destroyChildButNotItsView (KMdiChildFrm*, bool = 1); + void setTopChild (KMdiChildFrm*, bool = 0); + KMdiChildFrm* topChild () const; + int getVisibleChildCount () const; + QPoint getCascadePoint (int = -1); + void setMdiCaptionFont (const QFont&); + void setMdiCaptionActiveForeColor (const QColor&); + void setMdiCaptionActiveBackColor (const QColor&); + void setMdiCaptionInactiveForeColor (const QColor&); + void setMdiCaptionInactiveBackColor (const QColor&); + static void getCaptionColors (const QPalette&, QColor&, QColor&, QColor&, QColor&); + +public slots: + void cascadeWindows (); + void cascadeMaximized (); + void expandVertical (); + void expandHorizontal (); + void focusTopChild (); + void tilePragma (); + void tileAnodine (); + void tileVertically (); + void layoutMinimizedChildren (); + +protected: + void tileAllInternal (int); + virtual void resizeEvent (QResizeEvent*); + void mousePressEvent (QMouseEvent*); + void childMinimized (KMdiChildFrm*, bool); + +signals: + void noMaximizedChildFrmLeft (KMdiChildFrm*); + void nowMaximized (bool); + void sysButtonConnectionsMustChange (KMdiChildFrm*, KMdiChildFrm*); + void popupWindowMenu (QPoint); + void lastChildFrmClosed (); + +//force +%ConvertToSubClassCode + // The table of Python class objects indexed by their names. The table + // must be sorted by name. + + static sipStringTypeClassMap map[] = { + {sipName_KMdiChildArea, &sipClass_KMdiChildArea}, + {sipName_KMdiChildFrm, &sipClass_KMdiChildFrm}, + {sipName_KMdiChildView, &sipClass_KMdiChildView}, + {sipName_KMdiChildFrmCaption, &sipClass_KMdiChildFrmCaption}, + {sipName_KMdiMainFrm, &sipClass_KMdiMainFrm}, + {sipName_KMdiTaskBar, &sipClass_KMdiTaskBar}, + {sipName_KMdiTaskBarButton, &sipClass_KMdiTaskBarButton}, + {sipName_KMdiToolViewAccessor, &sipClass_KMdiToolViewAccessor}, + {sipName_KMdiWin32IconButton, &sipClass_KMdiWin32IconButton}, + }; + + sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0])); +%End +//end + +}; // class KMdiChildArea + diff --git a/sip/kmdi/kmdichildfrm.sip b/sip/kmdi/kmdichildfrm.sip new file mode 100644 index 0000000..8cf16ef --- /dev/null +++ b/sip/kmdi/kmdichildfrm.sip @@ -0,0 +1,279 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kmdi version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KMdiWin32IconButton : QLabel +{ +%TypeHeaderCode +#include <kmdichildfrm.h> +%End + + +public: + KMdiWin32IconButton (QWidget*, const char* = 0); + virtual void mousePressEvent (QMouseEvent*); + +signals: + void pressed (); + +}; // class KMdiWin32IconButton + + +class KMdiChildFrmMoveEvent : QCustomEvent +{ +%TypeHeaderCode +#include <kmdichildfrm.h> +%End + + +public: + KMdiChildFrmMoveEvent (QMoveEvent*); + +}; // class KMdiChildFrmMoveEvent + + +class KMdiChildFrmDragBeginEvent : QCustomEvent +{ +%TypeHeaderCode +#include <kmdichildfrm.h> +%End + + +public: + KMdiChildFrmDragBeginEvent (QMouseEvent*); + +}; // class KMdiChildFrmDragBeginEvent + + +class KMdiChildFrmDragEndEvent : QCustomEvent +{ +%TypeHeaderCode +#include <kmdichildfrm.h> +%End + + +public: + KMdiChildFrmDragEndEvent (QMouseEvent*); + +}; // class KMdiChildFrmDragEndEvent + + +class KMdiChildFrmResizeBeginEvent : QCustomEvent +{ +%TypeHeaderCode +#include <kmdichildfrm.h> +%End + + +public: + KMdiChildFrmResizeBeginEvent (QMouseEvent*); + +}; // class KMdiChildFrmResizeBeginEvent + + +class KMdiChildFrmResizeEndEvent : QCustomEvent +{ +%TypeHeaderCode +#include <kmdichildfrm.h> +%End + + +public: + KMdiChildFrmResizeEndEvent (QMouseEvent*); + +}; // class KMdiChildFrmResizeEndEvent + + +class KMdiChildFrm : QFrame +{ +%TypeHeaderCode +#include <kmdichildfrm.h> +%End + + +public: + + enum MdiWindowState + { + Normal, + Maximized, + Minimized + }; + + KMdiChildView* m_pClient; + +protected: + +public: + KMdiChildFrm (KMdiChildArea*); + void setClient (KMdiChildView*, bool = 0); + void unsetClient (QPoint = QPoint (0 ,0 )); + void setIcon (const QPixmap&); + QPixmap* icon () const; + void enableClose (bool); + void setCaption (const QString&); + const QString& caption (); + void setState (KMdiChildFrm::MdiWindowState, bool = 1); + KMdiChildFrm::MdiWindowState state () const; + QRect mdiAreaContentsRect () const; + QRect restoreGeometry () const; + void setRestoreGeometry (const QRect&); + void updateRects (); + QPopupMenu* systemMenu () const; + int captionHeight () const; + void redecorateButtons (); + bool isInDrag () const; + bool isInResize () const; + void raiseAndActivate (); + virtual void setMinimumSize (int, int); + +public slots: + void slot_resizeViaSystemMenu (); + +protected: + virtual void resizeEvent (QResizeEvent*); + virtual void mouseMoveEvent (QMouseEvent*); + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseReleaseEvent (QMouseEvent*); + virtual void moveEvent (QMoveEvent*); + virtual void leaveEvent (QEvent*); + virtual bool eventFilter (QObject*, QEvent*); + void resizeWindow (int, int, int); + void setResizeCursor (int); + void unsetResizeCursor (); + virtual void switchToMinimizeLayout (); + void doResize (); + void doResize (bool); + +protected slots: + void maximizePressed (); + void restorePressed (); + void minimizePressed (); + void closePressed (); + void undockPressed (); + void showSystemMenu (); + +protected: +//ig void linkChildren (QDict<FocusPolicy>*); + QDict<QWidget::FocusPolicy>* unlinkChildren (); + int getResizeCorner (int, int); + +protected: + +%If ( - KDE_3_2_2 ) + void linkChildren (QDict<QWidget::FocusPolicy>*); +%End + + +}; // class KMdiChildFrm + + + +%MappedType QDict<QWidget::FocusPolicy> +//converts a Python dict of QWidget::FocusPolicy +{ +%TypeHeaderCode +#include <qdict.h> +%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<QWidget::FocusPolicy> qdict = *sipCpp; + QDictIterator<QWidget::FocusPolicy> it (qdict); + + while (it.current ()) + { + PyObject *a0 = sipConvertFromInstance (&it.currentKey (), sipClass_QString, 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<int> on the heap. + + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + QDict<QWidget::FocusPolicy>* qdict = new QDict<QWidget::FocusPolicy>; + + PyObject *key, *value; + SIP_SSIZE_T pos = 0; + QString *a0; + QWidget::FocusPolicy 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 = (QWidget::FocusPolicy) PyInt_AS_LONG (value); + + qdict->insert (*a0, &a1); + + sipReleaseType(a0, sipType_QString, a0_state); + } + + *sipCppPtr = qdict; + + return 1; +%End +}; + + diff --git a/sip/kmdi/kmdichildfrmcaption.sip b/sip/kmdi/kmdichildfrmcaption.sip new file mode 100644 index 0000000..6004cf1 --- /dev/null +++ b/sip/kmdi/kmdichildfrmcaption.sip @@ -0,0 +1,57 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kmdi version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KMdiChildFrmCaption : QWidget +{ +%TypeHeaderCode +#include <kmdichildfrmcaption.h> +%End + + +public: + KMdiChildFrmCaption (KMdiChildFrm*); + void setActive (bool); + void setCaption (const QString&); + int heightHint (); + +public slots: + void slot_moveViaSystemMenu (); + +protected: + virtual void paintEvent (QPaintEvent*); + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseDoubleClickEvent (QMouseEvent*); + virtual void mouseReleaseEvent (QMouseEvent*); + virtual void mouseMoveEvent (QMouseEvent*); + QString abbreviateText (QString, int); + +public: + QString m_szCaption; + +protected: + +}; // class KMdiChildFrmCaption + diff --git a/sip/kmdi/kmdichildview.sip b/sip/kmdi/kmdichildview.sip new file mode 100644 index 0000000..874c170 --- /dev/null +++ b/sip/kmdi/kmdichildview.sip @@ -0,0 +1,120 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kmdi version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KMdiChildView : QWidget +{ +%TypeHeaderCode +#include <kmdichildview.h> +%End + + +protected: + +public: + KMdiChildView (const QString&, QWidget* = 0, const char* = 0, WFlags = 0); + KMdiChildView (QWidget* = 0, const char* = 0, WFlags = 0); + void activate (); + void setFirstFocusableChildWidget (QWidget*); + void setLastFocusableChildWidget (QWidget*); + QWidget* focusedChildWidget (); + bool isAttached () const; + const QString& caption () const; + const QString& tabCaption () const; + virtual void setCaption (const QString&); + virtual void setTabCaption (const QString&); + virtual void setMDICaption (const QString&); + KMdiChildFrm* mdiParent () const; + bool isMinimized () const; + bool isMaximized () const; + QRect internalGeometry () const; + void setInternalGeometry (const QRect&); + QRect externalGeometry () const; + void setExternalGeometry (const QRect&); + virtual QPixmap* myIconPtr (); + virtual void minimize (bool); + virtual void maximize (bool); + QRect restoreGeometry (); + void setRestoreGeometry (const QRect&); + void removeEventFilterForAllChildren (); + void setWindowMenuID (int); + virtual void setMinimumSize (int, int); + virtual void setMaximumSize (int, int); + bool isToolView () const; + void updateTimeStamp (); + const QDateTime& getTimeStamp () const; + +public slots: + virtual void attach (); + virtual void detach (); + virtual void minimize (); + virtual void maximize (); + virtual void restore (); + virtual void youAreAttached (KMdiChildFrm*); + virtual void youAreDetached (); + virtual void slot_clickedInWindowMenu (); + virtual void slot_clickedInDockMenu (); + virtual void show (); + virtual void hide (); + virtual void raise () /PyName=raise_/; + virtual void showMinimized (); + virtual void showMaximized (); + virtual void showNormal (); + +protected: + virtual void closeEvent (QCloseEvent*); + virtual bool eventFilter (QObject*, QEvent*); + virtual void focusInEvent (QFocusEvent*); + virtual void focusOutEvent (QFocusEvent*); + virtual void resizeEvent (QResizeEvent*); + void trackIconAndCaptionChanges (QWidget*); + +protected slots: + void slot_childDestroyed (); + +signals: + void attachWindow (KMdiChildView*, bool); + void detachWindow (KMdiChildView*, bool); + void focusInEventOccurs (KMdiChildView*); + void gotFocus (KMdiChildView*); + void activated (KMdiChildView*); + void lostFocus (KMdiChildView*); + void deactivated (KMdiChildView*); + void childWindowCloseRequest (KMdiChildView*); + void windowCaptionChanged (const QString&); + void tabCaptionChanged (const QString&); + void mdiParentNowMaximized (bool); + void clickedInWindowMenu (int); + void clickedInDockMenu (int); + void isMaximizedNow (); + void isMinimizedNow (); + void isRestoredNow (); + void isAttachedNow (); + void isDetachedNow (); + void iconUpdated (QWidget*, QPixmap); + void captionUpdated (QWidget*, const QString&); + +}; // class KMdiChildView + diff --git a/sip/kmdi/kmdidefines.sip b/sip/kmdi/kmdidefines.sip new file mode 100644 index 0000000..99fa008 --- /dev/null +++ b/sip/kmdi/kmdidefines.sip @@ -0,0 +1,115 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kmdi version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <kmdidefines.h> +%End + +namespace KMdi +{ + +enum EventType +{ + EV_Move, + EV_DragBegin, + EV_DragEnd, + EV_ResizeBegin, + EV_ResizeEnd +}; + + +%If ( KDE_3_3_2 - ) + +enum AddWindowFlags +{ + StandardAdd, + Maximize, + Minimize, + Hide, + Detach, + ToolWindow, + UseKMdiSizeHint, +//ig AddWindowFlags +}; + +%End + + +enum FrameDecor +{ + Win95Look, + KDE1Look, + KDELook, + KDELaptopLook +}; + + +enum MdiMode +{ + UndefinedMode, + ToplevelMode, + ChildframeMode, + TabPageMode, + IDEAlMode +}; + + +%If ( KDE_3_3_0 - ) + +enum TabWidgetVisibility +{ + AlwaysShowTabs, + ShowWhenMoreThanOneTab, + NeverShowTabs +}; + + +enum ToolviewStyle +{ + IconOnly, + TextOnly, + TextAndIcon +}; + +%End + + +%If ( - KDE_3_3_2 ) + +enum AddWindowFlags +{ + StandardAdd, + Maximize, + Minimize, + Hide, + Detach, + ToolWindow, + UseKMdiSizeHint +}; + +%End + +}; // namespace KMdi + diff --git a/sip/kmdi/kmdimainfrm.sip b/sip/kmdi/kmdimainfrm.sip new file mode 100644 index 0000000..5405cad --- /dev/null +++ b/sip/kmdi/kmdimainfrm.sip @@ -0,0 +1,339 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kmdi version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KMdiViewCloseEvent : QCustomEvent +{ +%TypeHeaderCode +#include <kmdimainfrm.h> +%End + + +public: + KMdiViewCloseEvent (KMdiChildView*); + +}; // class KMdiViewCloseEvent + + +class KMdiMainFrm : KParts::DockMainWindow +{ +%TypeHeaderCode +#include <kmdimainfrm.h> +%End + + +protected: + +public: + KMdiMainFrm (QWidget*, const char* = "", KMdi::MdiMode = KMdi ::ChildframeMode , WFlags = WType_TopLevel |WDestructiveClose ); + void setStandardMDIMenuEnabled (bool = 1); + void setManagedDockPositionModeEnabled (bool); + bool isInMaximizedChildFrmMode (); + KMdi::MdiMode mdiMode (); + KMdiChildView* activeWindow (); + virtual QPopupMenu* taskBarPopup (KMdiChildView*, bool = 0); + virtual QPopupMenu* windowPopup (KMdiChildView*, bool = 1); + virtual void applyOptions (); + KMdiChildView* findWindow (const QString&); + + enum ExistsAs + { + DocumentView, + ToolView, + AnyView + }; + + bool windowExists (KMdiChildView*, KMdiMainFrm::ExistsAs); + virtual bool event (QEvent*); + virtual void setSysButtonsAtMenuPosition (); + virtual int taskBarHeight (); + virtual void setUndockPositioningOffset (QPoint); +//ig KMdiIterator<KMdiChildView*>* createIterator (); +//ig void deleteIterator (KMdiIterator<KMdiChildView*>*); + QPopupMenu* windowMenu () const; + virtual void setBackgroundColor (const QColor&); + virtual void setBackgroundPixmap (const QPixmap&); + void setDefaultChildFrmSize (const QSize&); + QSize defaultChildFrmSize (); + virtual void setMinimumSize (int, int); + int childFrameModeHeight (); + virtual void setMenuForSDIModeSysButtons (KMenuBar* = 0); + static int frameDecorOfAttachedViews (); + void fakeSDIApplication (); + bool isFakingSDIApplication () const; + virtual bool eventFilter (QObject*, QEvent*); + void findRootDockWidgets (QPtrList<KDockWidget>*, QValueList<QRect>*); + void setSwitching (const bool); + bool switching () const; + +public slots: + KMdiChildView* createWrapper (QWidget*, const QString&, const QString&); + virtual void addWindow (KMdiChildView*, int = KMdi ::StandardAdd ); + +%If ( KDE_3_3_0 - ) + void addWindow (KMdiChildView*, int, int); +%End + + virtual void addWindow (KMdiChildView*, QPoint, int = KMdi ::StandardAdd ); + virtual void addWindow (KMdiChildView*, QRect, int = KMdi ::StandardAdd ); + virtual KMdiToolViewAccessor* addToolWindow (QWidget*, KDockWidget::DockPosition = KDockWidget ::DockNone , QWidget* = 0, int = 50, const QString& = 0, const QString& = 0); + virtual void deleteToolWindow (QWidget*); + virtual void deleteToolWindow (KMdiToolViewAccessor*); + KMdiToolViewAccessor* createToolWindow (); + virtual void removeWindowFromMdi (KMdiChildView*); + virtual void closeWindow (KMdiChildView*, bool = 1); + virtual void slot_toggleTaskBar (); + virtual void attachWindow (KMdiChildView*, bool = 1, bool = 0); + virtual void detachWindow (KMdiChildView*, bool = 1); + virtual void childWindowCloseRequest (KMdiChildView*); + virtual void closeAllViews (); + virtual void iconifyAllViews (); + virtual void closeActiveView (); + virtual void switchToToplevelMode (); + virtual void finishToplevelMode (); + virtual void switchToChildframeMode (); + virtual void finishChildframeMode (); + virtual void switchToTabPageMode (); + virtual void finishTabPageMode (); + virtual void switchToIDEAlMode (); + virtual void finishIDEAlMode (bool = 1); + void setIDEAlModeStyle (int); + +%If ( KDE_3_3_0 - ) + void setToolviewStyle (int); +%End + + bool isViewTaskBarOn (); + virtual void showViewTaskBar (); + virtual void hideViewTaskBar (); + virtual void fillWindowMenu (); + virtual void cascadeWindows (); + virtual void cascadeMaximized (); + virtual void expandVertical (); + virtual void expandHorizontal (); + virtual void tilePragma (); + virtual void tileAnodine (); + virtual void tileVertically (); + virtual void setFrameDecorOfAttachedViews (int); + virtual void setEnableMaximizedChildFrmMode (bool); + virtual void activateNextWin (); + virtual void activatePrevWin (); + virtual void activateFirstWin (); + virtual void activateLastWin (); + virtual void activateView (int); + +protected: + virtual void resizeEvent (QResizeEvent*); + virtual void createTaskBar (); + virtual void createMdiManager (); + void blockClearingOfWindowMenu (bool); + void findToolViewsDockedToMain (QPtrList<KDockWidget>*, KDockWidget::DockPosition); + void dockToolViewsIntoContainers (QPtrList<KDockWidget>&, KDockWidget*); + QStringList prepareIdealToTabs (KDockWidget*); + void idealToolViewsToStandardTabs (QStringList, KDockWidget::DockPosition, int); +//force +%If ( KDE_3_4_0 - ) + KTabWidget* tabWidget() const; +%End +//end + +%If ( KDE_3_3_0 - ) + KMdi::TabWidgetVisibility tabWidgetVisibility (); + void setTabWidgetVisibility (KMdi::TabWidgetVisibility); +%End + + +protected slots: + virtual void activateView (KMdiChildView*); + virtual void taskbarButtonRightClicked (KMdiChildView*); + void switchOffMaximizeModeForMenu (KMdiChildFrm*); + void updateSysButtonConnections (KMdiChildFrm*, KMdiChildFrm*); + void windowMenuItemActivated (int); + void dockMenuItemActivated (int); + void popupWindowMenu (QPoint); + void dragEndTimeOut (); + void closeViewButtonPressed (); + +signals: + void lastChildFrmClosed (); + void lastChildViewClosed (); + void leftTopLevelMode (); + void childViewIsDetachedNow (QWidget*); + void collapseOverlapContainers (); + void mdiModeHasBeenChangedTo (KMdi::MdiMode); + void viewActivated (KMdiChildView*); + void viewDeactivated (KMdiChildView*); + +public slots: + void prevToolViewInDock (); + void nextToolViewInDock (); + +signals: + void toggleTop (); + void toggleLeft (); + void toggleRight (); + void toggleBottom (); + +}; // class KMdiMainFrm + + + +%MappedType QPtrList<KDockWidget> +//converts a Python list of KDockWidget +{ +%TypeHeaderCode +#include <qptrlist.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList<KDockWidget> *cpplist = (QPtrList<KDockWidget> *)sipCpp; + KDockWidget *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_KDockWidget, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList<KDockWidget> *cpplist = new QPtrList<KDockWidget>; + + PyObject *elem; + KDockWidget *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KDockWidget *)sipForceConvertToType(elem, sipType_KDockWidget, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + +%MappedType QValueList<QRect> +//converts a Python list of QRect +{ +%TypeHeaderCode +#include <qvaluelist.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList<QRect> *cpplist = (QValueList<QRect> *)sipCpp; + PyObject *inst; + + // Get it. + QValueList<QRect>::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromNewType(new QRect(*it), sipType_QRect, NULL)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList<QRect> *cpplist = new QValueList<QRect>; + + PyObject *elem; + QRect *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (QRect *)sipForceConvertToType(elem, sipType_QRect, 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/kmdi/kmdimod.sip.in b/sip/kmdi/kmdimod.sip.in new file mode 100644 index 0000000..69af83a --- /dev/null +++ b/sip/kmdi/kmdimod.sip.in @@ -0,0 +1,48 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kmdi 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 kmdi + +%Import qt/qtmod.sip +%Import dcopmod.sip +%Import kdecoremod.sip +%Import qtxml/qtxmlmod.sip +%Import kdefxmod.sip +%Import kdeuimod.sip +%Import kiomod.sip +%Import kpartsmod.sip + +%Include kmdichildarea.sip +%Include kmdichildfrm.sip +%Include kmdichildfrmcaption.sip +%Include kmdichildview.sip +%Include kmdidefines.sip +%Include kmdimainfrm.sip +%Include kmditaskbar.sip +%Include kmditoolviewaccessor.sip +@mark@ diff --git a/sip/kmdi/kmditaskbar.sip b/sip/kmdi/kmditaskbar.sip new file mode 100644 index 0000000..023a6e3 --- /dev/null +++ b/sip/kmdi/kmditaskbar.sip @@ -0,0 +1,88 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kmdi version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KMdiTaskBarButton : QPushButton +{ +%TypeHeaderCode +#include <kmditaskbar.h> +%End + + +public: + KMdiTaskBarButton (KMdiTaskBar*, KMdiChildView*); + QString actualText () const; + void fitText (const QString&, int); + void setText (const QString&); + +signals: + void clicked (KMdiChildView*); + void leftMouseButtonClicked (KMdiChildView*); + void rightMouseButtonClicked (KMdiChildView*); + void buttonTextChanged (int); + +public slots: + void setNewText (const QString&); + +protected slots: + void mousePressEvent (QMouseEvent*); + +public: + KMdiChildView* m_pWindow; + +protected: + +}; // class KMdiTaskBarButton + + +class KMdiTaskBar : KToolBar +{ +%TypeHeaderCode +#include <kmditaskbar.h> +%End + + +public: + KMdiTaskBar (KMdiMainFrm*, Qt::Dock); + KMdiTaskBarButton* addWinButton (KMdiChildView*); + void removeWinButton (KMdiChildView*, bool = 1); + KMdiTaskBarButton* getNextWindowButton (bool, KMdiChildView*); + KMdiTaskBarButton* getButton (KMdiChildView*); + void switchOn (bool); + bool isSwitchedOn () const; + +protected: + void resizeEvent (QResizeEvent*); + +protected slots: + void layoutTaskBar (int = 0); + +public slots: + void setActiveButton (KMdiChildView*); + +protected: + +}; // class KMdiTaskBar + diff --git a/sip/kmdi/kmditoolviewaccessor.sip b/sip/kmdi/kmditoolviewaccessor.sip new file mode 100644 index 0000000..c2ea2d7 --- /dev/null +++ b/sip/kmdi/kmditoolviewaccessor.sip @@ -0,0 +1,53 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kmdi version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KMdiToolViewAccessor : QObject +{ +%TypeHeaderCode +#include <kmditoolviewaccessor.h> +%End + + +private: + KMdiToolViewAccessor (KMdiMainFrm*, QWidget*, const QString& = 0, const QString& = 0); + KMdiToolViewAccessor (KMdiMainFrm*); + +public: + QWidget* wrapperWidget (); + QWidget* wrappedWidget (); + void place (KDockWidget::DockPosition = KDockWidget ::DockNone , QWidget* = 0, int = 50); + void placeAndShow (KDockWidget::DockPosition = KDockWidget ::DockNone , QWidget* = 0, int = 50); + void show (); + +public slots: + void setWidgetToWrap (QWidget*, const QString& = 0, const QString& = 0); + void hide (); + +protected: + bool eventFilter (QObject*, QEvent*); + +}; // class KMdiToolViewAccessor + diff --git a/sip/kparts/browserextension.sip b/sip/kparts/browserextension.sip new file mode 100644 index 0000000..c6c37db --- /dev/null +++ b/sip/kparts/browserextension.sip @@ -0,0 +1,601 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kparts version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KParts +{ + +class URLArgs +{ +%TypeHeaderCode +#include <browserextension.h> +%End + + +public: + URLArgs (); + URLArgs (const KParts::URLArgs&); + URLArgs (bool, int, int, const QString& = QString ::null ); + QStringList docState; + bool reload; + int xOffset; + int yOffset; + QString serviceType; + QByteArray postData; + void setContentType (const QString&); + QString contentType () const; + void setDoPost (bool); + bool doPost () const; + void setLockHistory (bool); + bool lockHistory () const; + +%If ( KDE_3_1_0 - ) + void setNewTab (bool); + bool newTab () const; +%End + + QMap<QString,QString>& metaData (); + QString frameName; + bool trustedSource; + +%If ( KDE_3_1_3 - ) + bool redirectedRequest () const; + void setRedirectedRequest (bool); + +%If ( KDE_3_4_0 - ) + void setForcesNewWindow (bool); + bool forcesNewWindow () const; +%End + +%End + +//ig URLArgsPrivate* d; + +}; // class URLArgs + + +class WindowArgs +{ +%TypeHeaderCode +#include <browserextension.h> +%End + + +public: + WindowArgs (); + WindowArgs (const KParts::WindowArgs&); + WindowArgs (const QRect&, bool, bool, bool, bool, bool); + WindowArgs (int, int, int, int, bool, bool, bool, bool, bool); + int x; + int y; + int width; + int height; + bool fullscreen; + bool menuBarVisible; + bool toolBarsVisible; + bool statusBarVisible; + bool resizable; + bool lowerWindow; + +%If ( KDE_3_5_0 - ) + bool scrollBarsVisible; +%End + +//ig WindowArgsPrivate* d; + +}; // class WindowArgs + + +class OpenURLEvent : KParts::Event +{ +%TypeHeaderCode +#include <browserextension.h> +%End + + +public: + OpenURLEvent (KParts::ReadOnlyPart*, const KURL&, const KParts::URLArgs& = KParts ::URLArgs ()); + KParts::ReadOnlyPart* part () const; + KURL url () const; + KParts::URLArgs args () const; + static bool test (const QEvent*); + +}; // class OpenURLEvent + + +class BrowserExtension : QObject +{ +%TypeHeaderCode +#include <browserextension.h> +%End + + +public: + BrowserExtension (KParts::ReadOnlyPart* /TransferThis/, const char* = 0); + +%If ( KDE_3_2_0 - ) + typedef uint PopupFlags; + +%If ( KDE_3_4_0 - ) + + enum + { + DefaultPopupItems, + ShowNavigationItems, + ShowUp, + ShowReload, + ShowBookmark, + ShowCreateDirectory, + ShowTextSelectionItems, + NoDeletion + }; + +%End + +%End + + virtual void setURLArgs (const KParts::URLArgs&); + KParts::URLArgs urlArgs () const; + virtual int xOffset (); + virtual int yOffset (); + virtual void saveState (QDataStream&); + virtual void restoreState (QDataStream&); + bool isURLDropHandlingEnabled () const; + void setURLDropHandlingEnabled (bool); + void setBrowserInterface (KParts::BrowserInterface*); + KParts::BrowserInterface* browserInterface () const; + bool isActionEnabled (const char*) const; + +%If ( KDE_3_5_0 - ) + QString actionText (const char*) const; +%End + + typedef QMap<QCString,QCString> ActionSlotMap; + static KParts::BrowserExtension::ActionSlotMap actionSlotMap (); + static KParts::BrowserExtension::ActionSlotMap* actionSlotMapPtr (); + static KParts::BrowserExtension* childObject (QObject*); + +%If ( KDE_3_2_0 - ) + void pasteRequest (); +%End + + +signals: + void enableAction (const char*, bool); + +%If ( KDE_3_5_0 - ) + void setActionText (const char*, const QString&); +%End + + void openURLRequest (const KURL&, const KParts::URLArgs& = KParts ::URLArgs ()); + void openURLRequestDelayed (const KURL&, const KParts::URLArgs& = KParts ::URLArgs ()); + void openURLNotify (); + void setLocationBarURL (const QString&); + void setIconURL (const KURL&); + void createNewWindow (const KURL&, const KParts::URLArgs& = KParts ::URLArgs ()); +//ig void createNewWindow (const KURL&, const KParts::URLArgs&, const KParts::WindowArgs&, KParts::ReadOnlyPart*&); + void loadingProgress (int); + void speedProgress (int); + void infoMessage (const QString&); + void popupMenu (const QPoint&, const KFileItemList&); + void popupMenu (KXMLGUIClient*, const QPoint&, const KFileItemList&); + +%If ( KDE_3_2_0 - ) + void popupMenu (KXMLGUIClient*, const QPoint&, const KFileItemList&, const KParts::URLArgs&, KParts::BrowserExtension::PopupFlags); +%End + + void popupMenu (const QPoint&, const KURL&, const QString&, mode_t = -1); + void popupMenu (KXMLGUIClient*, const QPoint&, const KURL&, const QString&, mode_t = -1); + +%If ( KDE_3_2_0 - ) + void popupMenu (KXMLGUIClient*, const QPoint&, const KURL&, const KParts::URLArgs&, KParts::BrowserExtension::PopupFlags, mode_t = -1); +%End + + void selectionInfo (const KFileItemList&); + void selectionInfo (const QString&); + void selectionInfo (const KURL::List&); + +%If ( KDE_3_1_0 - ) + void mouseOverInfo (const KFileItem*); + +%If ( KDE_3_2_0 - ) + void addWebSideBar (const KURL&, const QString&); + void moveTopLevelWidget (int, int); + void resizeTopLevelWidget (int, int); + +%If ( KDE_3_3_1 - ) + void requestFocus (KParts::ReadOnlyPart*); + +%If ( KDE_3_4_0 - ) + void setPageSecurity (int); +%End + +%End + +%End + +%End + + +public: + typedef QMap<QCString,int> ActionNumberMap; + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( KDE_3_3_0 - KDE_3_4_0 ) + + enum + { + DefaultPopupItems, + ShowNavigationItems, + ShowUp, + ShowReload, + ShowBookmark, + ShowCreateDirectory, + ShowTextSelectionItems + }; + +%End + + +public: + +%If ( KDE_3_2_0 - KDE_3_3_0 ) + + enum + { + DefaultPopupItems, + ShowNavigationItems, + ShowUp, + ShowReload, + ShowBookmark, + ShowCreateDirectory + }; + +%End + + +}; // class BrowserExtension + + +class BrowserHostExtension : QObject +{ +%TypeHeaderCode +#include <browserextension.h> +%End + + +public: + BrowserHostExtension (KParts::ReadOnlyPart* /TransferThis/, const char* = 0); + virtual QStringList frameNames () const; + virtual const QPtrList<KParts::ReadOnlyPart> frames () const; + +%If ( KDE_3_3_0 - ) + KParts::BrowserHostExtension* findFrameParent (KParts::ReadOnlyPart*, const QString&); +%End + + virtual bool openURLInFrame (const KURL&, const KParts::URLArgs&); + static KParts::BrowserHostExtension* childObject (QObject*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class BrowserHostExtension + + +%If ( KDE_3_1_0 - ) + +class LiveConnectExtension : QObject +{ +%TypeHeaderCode +#include <browserextension.h> +%End + + +public: + + enum Type + { + TypeVoid, + TypeBool, + TypeFunction, + TypeNumber, + TypeObject, + TypeString + }; + +//ig typedef QValueList<QPair<Type,QString>> ArgList; + LiveConnectExtension (KParts::ReadOnlyPart* /TransferThis/, const char* = 0); + virtual bool get (const ulong, const QString&, KParts::LiveConnectExtension::Type&, ulong&, QString&); + virtual bool put (const ulong, const QString&, const QString&); + virtual bool call (const ulong, const QString&, const QStringList&, KParts::LiveConnectExtension::Type&, ulong&, QString&); + virtual void unregister (const ulong); + static KParts::LiveConnectExtension* childObject (QObject*); + +signals: +//ig virtual void partEvent (const ulong, const QString&, const KParts::LiveConnectExtension::ArgList&); + +}; // class LiveConnectExtension + +%End + +}; // namespace KParts + + +%If ( - KDE_3_5_3 ) +//ig typedef QPtrList<KFileItem> KFileItemList; +%End + +//force +QMap<QCString,int> testQMapQCStringInt (QMap<QCString,int>); +%MethodCode +//takes dict | (QMap<QCString,int>) +//returns (QMap<QCString,int>) + + sipRes = a0; +%End + +//end + + +%MappedType QMap<QCString,QCString> +//converts a Python dict of QCString:QCString +{ +%TypeHeaderCode +#include <qmap.h> +%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<QCString,QCString> cppmap = *sipCpp; + QMap<QCString,QCString>::ConstIterator it; + + for (it = cppmap.begin (); it != cppmap.end (); ++it) + { + QCString acpp = it.key (); + QCString bcpp = it.data (); + PyObject *ainst; + PyObject *binst = NULL; + if (((ainst = sipConvertFromNewType(new QCString (acpp), sipType_QCString, NULL)) == NULL) + || ((binst = sipConvertFromNewType(new QCString (bcpp), sipType_QCString, 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<QCString,QCString> *cppmap = new QMap<QCString,QCString>; + + PyObject *aelem, *belem; + SIP_SSIZE_T pos = 0; + QCString *acpp; + QCString *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 = (QCString *)sipForceConvertToType(belem, sipType_QCString, 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<QCString,int> +//converts a Python dict of QCString:int +{ +%TypeHeaderCode +#include <qmap.h> +%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<QCString,int> cppmap = *sipCpp; + QMap<QCString,int>::ConstIterator it; + + for (it = cppmap.begin (); it != cppmap.end (); ++it) + { + QCString acpp = it.key (); + int bcpp = it.data (); + PyObject *ainst; + PyObject *binst = NULL; + if (((ainst = sipConvertFromNewType(new QCString (acpp), sipType_QCString, NULL)) == NULL) + || ((binst = PyInt_FromLong (bcpp)) < 0) + || (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<QCString,int> *cppmap = new QMap<QCString,int>; + + PyObject *aelem, *belem; + SIP_SSIZE_T pos = 0; + QCString *acpp; + int 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); + + if (iserr || !PyInt_Check (belem)) + { + *sipIsErr = 1; + delete cppmap; + return 0; + } + + bcpp = PyInt_AS_LONG (belem); + + cppmap->insert (*acpp, bcpp); + } + + *sipCppPtr = cppmap; + + return 1; +%End +}; + + +%MappedType QPtrList<KParts::ReadOnlyPart> +//converts a Python list of KParts.ReadOnlyPart +{ +%TypeHeaderCode +#include <qptrlist.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList<KParts::ReadOnlyPart> *cpplist = (QPtrList<KParts::ReadOnlyPart> *)sipCpp; + KParts::ReadOnlyPart *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_KParts_ReadOnlyPart, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList<KParts::ReadOnlyPart> *cpplist = new QPtrList<KParts::ReadOnlyPart>; + + PyObject *elem; + KParts::ReadOnlyPart *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KParts::ReadOnlyPart *)sipForceConvertToType(elem, sipType_KParts_ReadOnlyPart, 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/kparts/browserinterface.sip b/sip/kparts/browserinterface.sip new file mode 100644 index 0000000..06785f6 --- /dev/null +++ b/sip/kparts/browserinterface.sip @@ -0,0 +1,43 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kparts version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KParts +{ + +class BrowserInterface : QObject +{ +%TypeHeaderCode +#include <browserinterface.h> +%End + + +public: + BrowserInterface (QObject* /TransferThis/, const char* = 0); + void callMethod (const char*, const QVariant&); + +}; // class BrowserInterface + +}; // namespace KParts + diff --git a/sip/kparts/browserrun.sip b/sip/kparts/browserrun.sip new file mode 100644 index 0000000..8002ce7 --- /dev/null +++ b/sip/kparts/browserrun.sip @@ -0,0 +1,117 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kparts version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KParts +{ + +class BrowserRun : KRun +{ +%TypeHeaderCode +#include <browserrun.h> +%End + + +public: + BrowserRun (const KURL&, const KParts::URLArgs&, KParts::ReadOnlyPart*, QWidget*, bool, bool); + +%If ( KDE_3_1_0 - ) + BrowserRun (const KURL&, const KParts::URLArgs&, KParts::ReadOnlyPart*, QWidget*, bool, bool, bool); +%End + + KURL url () const; + +%If ( KDE_3_1_0 - ) + bool hideErrorDialog () const; + +%If ( KDE_3_2_0 - ) + QString suggestedFilename () const; + +%If ( KDE_3_5_2 - ) + QString contentDisposition () const; + bool serverSuggestsSave () const; +%End + +%End + +%End + + + enum AskSaveResult + { + Save, + Open, + Cancel + }; + + static KParts::BrowserRun::AskSaveResult askSave (const KURL&, KService::Ptr, const QString&, const QString& = QString ::null ); + +%If ( KDE_3_5_2 - ) + + enum AskEmbedOrSaveFlags + { + InlineDisposition, + AttachmentDisposition + }; + +%End + + +%If ( KDE_3_2_0 - ) + static KParts::BrowserRun::AskSaveResult askEmbedOrSave (const KURL&, const QString&, const QString& = QString ::null , int = 0); +%End + + virtual void save (const KURL&, const QString&); + +%If ( KDE_3_2_0 - ) + static void simpleSave (const KURL&, const QString&, QWidget*); +%End + + static void simpleSave (const KURL&, const QString&); + static bool allowExecution (const QString&, const KURL&); + static bool isExecutable (const QString&); + static bool isTextExecutable (const QString&); + +protected: + virtual void scanFile (); + +%If ( KDE_3_1_0 - ) + virtual void init (); +%End + + virtual void handleError (KIO::Job*); +//ig KParts::BrowserRun::NonEmbeddableResult handleNonEmbeddable (const QString&); + +protected slots: + void slotBrowserScanFinished (KIO::Job*); + void slotBrowserMimetype (KIO::Job*, const QString&); + void slotCopyToTempFileResult (KIO::Job*); + virtual void slotStatResult (KIO::Job*); + +protected: + +}; // class BrowserRun + +}; // namespace KParts + diff --git a/sip/kparts/dockmainwindow.sip b/sip/kparts/dockmainwindow.sip new file mode 100644 index 0000000..4d6d693 --- /dev/null +++ b/sip/kparts/dockmainwindow.sip @@ -0,0 +1,49 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kparts version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KParts +{ + +class DockMainWindow : KDockMainWindow, KParts::PartBase +{ +%TypeHeaderCode +#include <dockmainwindow.h> +%End + + +public: + DockMainWindow (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = WDestructiveClose ); + +protected slots: + void createGUI (KParts::Part*); + virtual void slotSetStatusBarText (const QString&); + +protected: + virtual void createShellGUI (bool = 1); + +}; // class DockMainWindow + +}; // namespace KParts + diff --git a/sip/kparts/event.sip b/sip/kparts/event.sip new file mode 100644 index 0000000..c1014ff --- /dev/null +++ b/sip/kparts/event.sip @@ -0,0 +1,94 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kparts version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KParts +{ + +class Event : QCustomEvent +{ +%TypeHeaderCode +#include <event.h> +%End + + +public: + Event (const char*); + virtual const char* eventName () const; + static bool test (const QEvent*); + static bool test (const QEvent*, const char*); + +}; // class Event + + +class GUIActivateEvent : KParts::Event +{ +%TypeHeaderCode +#include <event.h> +%End + + +public: + GUIActivateEvent (bool); + bool activated () const; + static bool test (const QEvent*); + +}; // class GUIActivateEvent + + +class PartActivateEvent : KParts::Event +{ +%TypeHeaderCode +#include <event.h> +%End + + +public: + PartActivateEvent (bool, KParts::Part*, QWidget*); + bool activated () const; + KParts::Part* part () const; + QWidget* widget () const; + static bool test (const QEvent*); + +}; // class PartActivateEvent + + +class PartSelectEvent : KParts::Event +{ +%TypeHeaderCode +#include <event.h> +%End + + +public: + PartSelectEvent (bool, KParts::Part*, QWidget*); + bool selected () const; + KParts::Part* part () const; + QWidget* widget () const; + static bool test (const QEvent*); + +}; // class PartSelectEvent + +}; // namespace KParts + diff --git a/sip/kparts/factory.sip b/sip/kparts/factory.sip new file mode 100644 index 0000000..f97cebf --- /dev/null +++ b/sip/kparts/factory.sip @@ -0,0 +1,53 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kparts version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KParts +{ + +class Factory : KLibFactory +{ +%TypeHeaderCode +#include <factory.h> +%End + + +public: + Factory (QObject* /TransferThis/ = 0, const char* = 0); + KParts::Part* createPart (QWidget* = 0, const char* = 0, QObject* /Transfer/ = 0, const char* = 0, const char* = "KParts::Part", const QStringList& = QStringList ()); + +%If ( KDE_3_2_0 - ) + const KInstance* partInstance (); + static const KInstance* partInstanceFromLibrary (const QCString&); +%End + + +protected: + virtual KParts::Part* createPartObject (QWidget* = 0, const char* = 0, QObject* /Transfer/ = 0, const char* = 0, const char* = "KParts::Part", const QStringList& = QStringList ()); + virtual QObject* createObject (QObject* /Transfer/ = 0, const char* = 0, const char* = "QObject", const QStringList& = QStringList ()); + +}; // class Factory + +}; // namespace KParts + diff --git a/sip/kparts/genericfactory.sip b/sip/kparts/genericfactory.sip new file mode 100644 index 0000000..b76a574 --- /dev/null +++ b/sip/kparts/genericfactory.sip @@ -0,0 +1,25 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kparts version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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/kparts/historyprovider.sip b/sip/kparts/historyprovider.sip new file mode 100644 index 0000000..ec0bafb --- /dev/null +++ b/sip/kparts/historyprovider.sip @@ -0,0 +1,54 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kparts version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KParts +{ + +class HistoryProvider : QObject +{ +%TypeHeaderCode +#include <historyprovider.h> +%End + + +public: + static KParts::HistoryProvider* self (); + HistoryProvider (QObject* /TransferThis/ = 0, const char* = 0); + virtual bool contains (const QString&) const; + virtual void insert (const QString&); + virtual void remove (const QString&); + virtual void clear (); + +signals: + void cleared (); + void updated (const QStringList&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class HistoryProvider + +}; // namespace KParts + diff --git a/sip/kparts/kparts-kde320.diff b/sip/kparts/kparts-kde320.diff new file mode 100644 index 0000000..8ad0226 --- /dev/null +++ b/sip/kparts/kparts-kde320.diff @@ -0,0 +1 @@ ++ %Include statusbarextension.sip diff --git a/sip/kparts/kparts-kde321.diff b/sip/kparts/kparts-kde321.diff new file mode 100644 index 0000000..8ad0226 --- /dev/null +++ b/sip/kparts/kparts-kde321.diff @@ -0,0 +1 @@ ++ %Include statusbarextension.sip diff --git a/sip/kparts/kparts-kde322.diff b/sip/kparts/kparts-kde322.diff new file mode 100644 index 0000000..8ad0226 --- /dev/null +++ b/sip/kparts/kparts-kde322.diff @@ -0,0 +1 @@ ++ %Include statusbarextension.sip diff --git a/sip/kparts/kparts-kde323.diff b/sip/kparts/kparts-kde323.diff new file mode 100644 index 0000000..8ad0226 --- /dev/null +++ b/sip/kparts/kparts-kde323.diff @@ -0,0 +1 @@ ++ %Include statusbarextension.sip diff --git a/sip/kparts/kparts-kde330.diff b/sip/kparts/kparts-kde330.diff new file mode 100644 index 0000000..8ad0226 --- /dev/null +++ b/sip/kparts/kparts-kde330.diff @@ -0,0 +1 @@ ++ %Include statusbarextension.sip diff --git a/sip/kparts/kparts-kde331.diff b/sip/kparts/kparts-kde331.diff new file mode 100644 index 0000000..8ad0226 --- /dev/null +++ b/sip/kparts/kparts-kde331.diff @@ -0,0 +1 @@ ++ %Include statusbarextension.sip diff --git a/sip/kparts/kparts-kde332.diff b/sip/kparts/kparts-kde332.diff new file mode 100644 index 0000000..8ad0226 --- /dev/null +++ b/sip/kparts/kparts-kde332.diff @@ -0,0 +1 @@ ++ %Include statusbarextension.sip diff --git a/sip/kparts/kparts-kde340.diff b/sip/kparts/kparts-kde340.diff new file mode 100644 index 0000000..8ad0226 --- /dev/null +++ b/sip/kparts/kparts-kde340.diff @@ -0,0 +1 @@ ++ %Include statusbarextension.sip diff --git a/sip/kparts/kparts-kde341.diff b/sip/kparts/kparts-kde341.diff new file mode 100644 index 0000000..8ad0226 --- /dev/null +++ b/sip/kparts/kparts-kde341.diff @@ -0,0 +1 @@ ++ %Include statusbarextension.sip diff --git a/sip/kparts/kparts-kde342.diff b/sip/kparts/kparts-kde342.diff new file mode 100644 index 0000000..8ad0226 --- /dev/null +++ b/sip/kparts/kparts-kde342.diff @@ -0,0 +1 @@ ++ %Include statusbarextension.sip diff --git a/sip/kparts/kparts-kde343.diff b/sip/kparts/kparts-kde343.diff new file mode 100644 index 0000000..8ad0226 --- /dev/null +++ b/sip/kparts/kparts-kde343.diff @@ -0,0 +1 @@ ++ %Include statusbarextension.sip diff --git a/sip/kparts/kparts-kde350.diff b/sip/kparts/kparts-kde350.diff new file mode 100644 index 0000000..8ad0226 --- /dev/null +++ b/sip/kparts/kparts-kde350.diff @@ -0,0 +1 @@ ++ %Include statusbarextension.sip diff --git a/sip/kparts/kparts-kde351.diff b/sip/kparts/kparts-kde351.diff new file mode 100644 index 0000000..8ad0226 --- /dev/null +++ b/sip/kparts/kparts-kde351.diff @@ -0,0 +1 @@ ++ %Include statusbarextension.sip diff --git a/sip/kparts/kparts-kde352.diff b/sip/kparts/kparts-kde352.diff new file mode 100644 index 0000000..8ad0226 --- /dev/null +++ b/sip/kparts/kparts-kde352.diff @@ -0,0 +1 @@ ++ %Include statusbarextension.sip diff --git a/sip/kparts/kparts-kde353.diff b/sip/kparts/kparts-kde353.diff new file mode 100644 index 0000000..8ad0226 --- /dev/null +++ b/sip/kparts/kparts-kde353.diff @@ -0,0 +1 @@ ++ %Include statusbarextension.sip diff --git a/sip/kparts/kpartsmod.sip.in b/sip/kparts/kpartsmod.sip.in new file mode 100644 index 0000000..3806114 --- /dev/null +++ b/sip/kparts/kpartsmod.sip.in @@ -0,0 +1,51 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kparts 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 kparts + +%Import qt/qtmod.sip +%Import qtxml/qtxmlmod.sip +%Import dcopmod.sip +%Import kdecoremod.sip +%Import kdefxmod.sip +%Import kdeuimod.sip +%Import kiomod.sip + +%Include browserextension.sip +%Include browserinterface.sip +%Include browserrun.sip +%Include dockmainwindow.sip +%Include event.sip +%Include factory.sip +%Include genericfactory.sip +%Include historyprovider.sip +%Include mainwindow.sip +%Include part.sip +%Include partmanager.sip +%Include plugin.sip +@mark@ diff --git a/sip/kparts/mainwindow.sip b/sip/kparts/mainwindow.sip new file mode 100644 index 0000000..3fa7d3e --- /dev/null +++ b/sip/kparts/mainwindow.sip @@ -0,0 +1,60 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kparts version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KParts +{ + +class MainWindow : KMainWindow, KParts::PartBase +{ +%TypeHeaderCode +#include <mainwindow.h> +%End + + +public: + MainWindow (QWidget* /TransferThis/, const char* = 0, WFlags = WType_TopLevel |WDestructiveClose ); + MainWindow (const char* = 0, WFlags = WDestructiveClose ); + +%If ( KDE_3_2_0 - ) + MainWindow (int, QWidget* /TransferThis/, const char* = 0, WFlags = WType_TopLevel |WDestructiveClose ); +%End + + +protected slots: + void createGUI (KParts::Part*); + virtual void slotSetStatusBarText (const QString&); + +%If ( KDE_3_4_0 - ) + void saveNewToolbarConfig (); +%End + + +protected: + virtual void createShellGUI (bool = 1); + +}; // class MainWindow + +}; // namespace KParts + diff --git a/sip/kparts/part.sip b/sip/kparts/part.sip new file mode 100644 index 0000000..3a61655 --- /dev/null +++ b/sip/kparts/part.sip @@ -0,0 +1,312 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kparts version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KParts +{ + +class PartBase : KXMLGUIClient +{ +%TypeHeaderCode +#include <part.h> +%End + + +public: + PartBase (); + void setPartObject (QObject*); + QObject* partObject () const; + +protected: + virtual void setInstance (KInstance*); + virtual void setInstance (KInstance*, bool); + +%If ( KDE_3_1_0 - ) + void loadPlugins (QObject* /Transfer/, KXMLGUIClient*, KInstance*); +//ig void setPluginLoadingMode (KParts::PartBase::PluginLoadingMode); +%End + + +}; // class PartBase + + +class Part : QObject, KParts::PartBase +{ +%TypeHeaderCode +#include <part.h> +%End + + +public: + Part (QObject* /TransferThis/ = 0, const char* = 0); + virtual void embed (QWidget*); + virtual QWidget* widget (); + virtual void setManager (KParts::PartManager*); + KParts::PartManager* manager (); + virtual KParts::Part* hitTest (QWidget*, const QPoint&); + virtual void setSelectable (bool); + bool isSelectable () const; + +signals: + void setWindowCaption (const QString&); + void setStatusBarText (const QString&); + +protected: + virtual void setWidget (QWidget*); + virtual void customEvent (QCustomEvent*); + virtual void partActivateEvent (KParts::PartActivateEvent*); + virtual void partSelectEvent (KParts::PartSelectEvent*); + virtual void guiActivateEvent (KParts::GUIActivateEvent*); + QWidget* hostContainer (const QString&); + +//force +%ConvertToSubClassCode + // The table of Python class objects indexed by their names. The table + // must be sorted by name. + + static sipStringTypeClassMap map[] = { + {sipName_BrowserExtension, &sipClass_KParts_BrowserExtension}, + {sipName_BrowserHostExtension, &sipClass_KParts_BrowserHostExtension}, + {sipName_BrowserInterface, &sipClass_KParts_BrowserInterface}, + {sipName_BrowserRun, &sipClass_KParts_BrowserRun}, + {sipName_Factory, &sipClass_KParts_Factory}, + {sipName_HistoryProvider, &sipClass_KParts_HistoryProvider}, +#if KDE_VERSION >= 0x030100 + {sipName_LiveConnectExtension, &sipClass_KParts_LiveConnectExtension}, +#endif + {sipName_MainWindow, &sipClass_KParts_MainWindow}, + {sipName_Part, &sipClass_KParts_Part}, + {sipName_PartManager, &sipClass_KParts_PartManager}, + {sipName_Plugin, &sipClass_KParts_Plugin}, + {sipName_ReadOnlyPart, &sipClass_KParts_ReadOnlyPart}, + {sipName_ReadWritePart, &sipClass_KParts_ReadWritePart}, + }; + + sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0])); +%End +//end + +}; // class Part + +//doc +// Even though this is an abstract class, you can use +// createReadOnlyPart (see below) without creating +// a concrete instance of this class. +//end + +class ReadOnlyPart : KParts::Part +{ +%TypeHeaderCode +#include <part.h> +%End + + +public: + ReadOnlyPart (QObject* /TransferThis/ = 0, const char* = 0); + void setProgressInfoEnabled (bool); + bool isProgressInfoEnabled () const; + void showProgressInfo (bool); + +public slots: + virtual bool openURL (const KURL&); + +public: + KURL url () const; + virtual bool closeURL (); + +public: + bool openStream (const QString&, const KURL&); + bool writeStream (const QByteArray&); + bool closeStream (); + +signals: + void started (KIO::Job*); + void completed (); + void completed (bool); + void canceled (const QString&); + +protected slots: + void slotJobFinished (KIO::Job*); + +protected: + virtual bool openFile () = 0; + void abortLoad (); + virtual void guiActivateEvent (KParts::GUIActivateEvent*); + +}; // class ReadOnlyPart + +//doc +// Even though this is an abstract class, you can use +// createReadWritePart (see below) without creating a concrete instance +// of this class. +//end + +class ReadWritePart : KParts::ReadOnlyPart +{ +%TypeHeaderCode +#include <part.h> +%End + + +public: + ReadWritePart (QObject* /TransferThis/ = 0, const char* = 0); + bool isReadWrite () const; + virtual void setReadWrite (bool = 1); + bool isModified () const; + +%If ( KDE_3_1_3 - ) + bool queryClose (); +%End + + virtual bool closeURL (); + +%If ( KDE_3_1_3 - ) + bool closeURL (bool); +%End + + virtual bool saveAs (const KURL&); + virtual void setModified (bool); + +signals: + +%If ( KDE_3_2_0 - ) +//ig void sigQueryClose (bool*, bool*); +%End + + +public slots: + virtual void setModified (); + virtual bool save (); + +%If ( KDE_3_2_0 - ) + bool waitSaveComplete (); +%End + + +protected: + virtual bool saveFile () = 0; + virtual bool saveToURL (); + +protected slots: + void slotUploadFinished (KIO::Job*); + +}; // class ReadWritePart + +}; // namespace KParts + +//force +//doc +// <para> +// This is a PyKDE-only function that handles the machinery necessary +// to create a KParts::ReadOnlyPart. It executes the following C++ code: +// </para> +// <pre class="PROGRAMLISTING"> +// KParts::ReadOnlyPart *createReadOnlyPart (const QString& lib, QObject *parent, +// const QString& name, const char *className, +// const QStringList &args) +// { +// KLibFactory *factory = KLibLoader::self ()->factory ((const char *)lib); +// +// if (factory) +// return static_cast<KParts::ReadOnlyPart*> (factory->create (parent, +// (const char *)name, className, args)); +// else +// return NULL; +// </pre> +// <para> +// Notice that it takes care of creating the KLibFactory for you, and +// returns the part cast to type KParts::ReadOnlyPart. The actual +// part has a different class (derived from KParts::ReadOnlyPart), +// and calls to openURL or openFile will use the part's overloaded +// methods. Currently it isn't possible to call KParts::ReadOnlyPart::openURL +// if it has been overloaded. +// </para> +// <para> +// Usage: KParts.createReadOnlyPart (lib, parent, name, className, args) +// </para> +//end +KParts::ReadOnlyPart* createReadOnlyPart (const QString&, QObject* = 0, const QString& = QString ::null , const char* = "KParts::ReadOnlyPart", const QStringList& = QStringList ()); +//doc +// <para> +// This is a PyKDE-only function that handles the machinery necessary +// to create a KParts::ReadWritePart. It executes the following C++ code: +// </para> +// <pre class="PROGRAMLISTING"> +// KParts::ReadWritePart *createReadWritePart (const QString& lib, QObject *parent, +// const QString& name, const char *className, +// const QStringList &args) +// { +// KLibFactory *factory = KLibLoader::self ()->factory ((const char *)lib); +// +// if (factory) +// return static_cast<KParts::ReadWritePart*> (factory->create (parent, +// (const char *)name, className, args)); +// else +// return NULL; +// </pre> +// <para> +// Notice that it takes care of creating the KLibFactory for you, and +// returns the part cast to type KParts::ReadWritePart. The actual +// part has a different class (derived from KParts::ReadWritePart), +// and calls to openURL or openFile will use the part's overloaded +// methods. Currently it isn't possible to call KParts::ReadWritePart::openURL +// if it has been overloaded. +// </para> +// <para> +// Usage: KParts.createReadWritePart (lib, parent, name, className, args) +// </para> +//end +KParts::ReadWritePart* createReadWritePart (const QString&, QObject* = 0, const QString& = QString ::null , const char* = "KParts::ReadWritePart", const QStringList& = QStringList ()); +//end + + +%ModuleCode +#include <klibloader.h> + +KParts::ReadOnlyPart *createReadOnlyPart (const QString& lib, QObject *parent, const QString& name, const char *className, + const QStringList &args) +{ + KParts::ReadOnlyPart *res = NULL; + + KLibFactory *factory = KLibLoader::self ()->factory ((const char *)lib); + + if (factory) + res = static_cast<KParts::ReadOnlyPart*> (factory->create (parent, (const char *)name, className, args)); + + return res; +} + +KParts::ReadWritePart *createReadWritePart (const QString& lib, QObject *parent, const QString& name, const char *className, + const QStringList &args) +{ + KParts::ReadWritePart *res = NULL; + + KLibFactory *factory = KLibLoader::self ()->factory ((const char *)lib); + + if (factory) + res = static_cast<KParts::ReadWritePart*> (factory->create (parent, (const char *)name, className, args)); + + return res; +} +%End diff --git a/sip/kparts/partmanager.sip b/sip/kparts/partmanager.sip new file mode 100644 index 0000000..4865323 --- /dev/null +++ b/sip/kparts/partmanager.sip @@ -0,0 +1,181 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kparts version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KParts +{ + +class PartManager : QObject +{ +%TypeHeaderCode +#include <partmanager.h> +%End + + +public: + + enum SelectionPolicy + { + Direct, + TriState + }; + + +%If ( KDE_3_3_0 - ) + + enum Reason + { + ReasonLeftClick, + ReasonMidClick, + ReasonRightClick, + NoReason + }; + +%End + + PartManager (QWidget* /TransferThis/, const char* = 0); + PartManager (QWidget*, QObject* /TransferThis/, const char* = 0); + void setSelectionPolicy (KParts::PartManager::SelectionPolicy); + KParts::PartManager::SelectionPolicy selectionPolicy () const; + void setAllowNestedParts (bool); + bool allowNestedParts () const; + void setIgnoreScrollBars (bool); + bool ignoreScrollBars () const; + +%If ( KDE_3_1_0 - ) + void setActivationButtonMask (short); + short activationButtonMask () const; +%End + + virtual bool eventFilter (QObject*, QEvent*); + virtual void addPart (KParts::Part*, bool = 1); + virtual void removePart (KParts::Part*); + virtual void replacePart (KParts::Part*, KParts::Part*, bool = 1); + virtual void setActivePart (KParts::Part*, QWidget* = 0); + virtual KParts::Part* activePart () const; + virtual QWidget* activeWidget () const; + virtual void setSelectedPart (KParts::Part*, QWidget* = 0); + virtual KParts::Part* selectedPart () const; + virtual QWidget* selectedWidget () const; + const QPtrList<KParts::Part>* parts () const; + void addManagedTopLevelWidget (const QWidget*); + void removeManagedTopLevelWidget (const QWidget*); + +%If ( KDE_3_3_0 - ) + int reason () const; +%End + + +signals: + void partAdded (KParts::Part*); + void partRemoved (KParts::Part*); + void activePartChanged (KParts::Part*); + +protected: + virtual void setActiveInstance (KInstance*); + +protected slots: + void slotObjectDestroyed (); + void slotWidgetDestroyed (); + void slotManagedTopLevelWidgetDestroyed (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class PartManager + +}; // namespace KParts + + + +%MappedType QPtrList<KParts::Part> +//converts a Python list of KParts.Part +{ +%TypeHeaderCode +#include <qptrlist.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList<KParts::Part> *cpplist = (QPtrList<KParts::Part> *)sipCpp; + KParts::Part *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_KParts_Part, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList<KParts::Part> *cpplist = new QPtrList<KParts::Part>; + + PyObject *elem; + KParts::Part *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KParts::Part *)sipForceConvertToType(elem, sipType_KParts_Part, 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/kparts/plugin.sip b/sip/kparts/plugin.sip new file mode 100644 index 0000000..145b6f2 --- /dev/null +++ b/sip/kparts/plugin.sip @@ -0,0 +1,210 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kparts version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KParts +{ + +class Plugin : QObject, KXMLGUIClient +{ +%TypeHeaderCode +#include <plugin.h> +%End + + +public: + + class PluginInfo + { + + public: + QString m_relXMLFileName; + QString m_absXMLFileName; + QDomDocument m_document; + + }; // class PluginInfo + + +public: + Plugin (QObject* /TransferThis/ = 0, const char* = 0); + virtual QString xmlFile () const; + virtual QString localXMLFile () const; + static void loadPlugins (QObject* /Transfer/, const KInstance*); + static void loadPlugins (QObject* /Transfer/, const QValueList<KParts::Plugin::PluginInfo>&); + static void loadPlugins (QObject* /Transfer/, const QValueList<KParts::Plugin::PluginInfo>&, const KInstance*); + +%If ( KDE_3_1_0 - ) + static void loadPlugins (QObject* /Transfer/, KXMLGUIClient*, KInstance*, bool = 1); +%End + + static QPtrList<KParts::Plugin> pluginObjects (QObject* /Transfer/); + +protected: + static QValueList<KParts::Plugin::PluginInfo> pluginInfos (const KInstance*); + static KParts::Plugin* loadPlugin (QObject* /Transfer/, const char*); + virtual void setInstance (KInstance*); + +}; // class Plugin + +}; // namespace KParts + + + +%MappedType QValueList<KParts::Plugin::PluginInfo> +//converts a Python list of KParts.Plugin.PluginInfo +{ +%TypeHeaderCode +#include <qvaluelist.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList<KParts::Plugin::PluginInfo> *cpplist = (QValueList<KParts::Plugin::PluginInfo> *)sipCpp; + PyObject *inst; + + // Get it. + QValueList<KParts::Plugin::PluginInfo>::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromNewType(new KParts::Plugin::PluginInfo(*it), sipType_KParts_Plugin_PluginInfo, NULL)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList<KParts::Plugin::PluginInfo> *cpplist = new QValueList<KParts::Plugin::PluginInfo>; + + PyObject *elem; + KParts::Plugin::PluginInfo *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KParts::Plugin::PluginInfo *)sipForceConvertToType(elem, sipType_KParts_Plugin_PluginInfo, 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 QPtrList<KParts::Plugin> +//converts a Python list of KParts.Plugin +{ +%TypeHeaderCode +#include <qptrlist.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList<KParts::Plugin> *cpplist = (QPtrList<KParts::Plugin> *)sipCpp; + KParts::Plugin *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_KParts_Plugin, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList<KParts::Plugin> *cpplist = new QPtrList<KParts::Plugin>; + + PyObject *elem; + KParts::Plugin *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KParts::Plugin *)sipForceConvertToType(elem, sipType_KParts_Plugin, 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/kparts/statusbarextension.sip b/sip/kparts/statusbarextension.sip new file mode 100644 index 0000000..99e5129 --- /dev/null +++ b/sip/kparts/statusbarextension.sip @@ -0,0 +1,52 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kparts version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 - ) +namespace KParts +{ + +class StatusBarExtension : QObject +{ +%TypeHeaderCode +#include <statusbarextension.h> +%End + + +public: + StatusBarExtension (KParts::ReadOnlyPart* /TransferThis/, const char* = 0); + void addStatusBarItem (QWidget*, int, bool); + void removeStatusBarItem (QWidget*); + KStatusBar* statusBar () const; + void setStatusBar (KStatusBar*); + static KParts::StatusBarExtension* childObject (QObject*); + virtual bool eventFilter (QObject*, QEvent*); + +}; // class StatusBarExtension + +}; // namespace KParts + +%End + diff --git a/sip/kresources/configdialog.sip b/sip/kresources/configdialog.sip new file mode 100644 index 0000000..744e14b --- /dev/null +++ b/sip/kresources/configdialog.sip @@ -0,0 +1,52 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kresources version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 - ) +namespace KRES +{ + +class ConfigDialog : KDialogBase +{ +%TypeHeaderCode +#include <configdialog.h> +%End + + +public: + ConfigDialog (QWidget*, const QString&, KRES::Resource*, const char* = 0); + void setInEditMode (bool); + +protected slots: + void accept (); + void setReadOnly (bool); + void slotNameChanged (const QString&); + +}; // class ConfigDialog + +}; // namespace KRES + +%End + diff --git a/sip/kresources/configpage.sip b/sip/kresources/configpage.sip new file mode 100644 index 0000000..e1dbf52 --- /dev/null +++ b/sip/kresources/configpage.sip @@ -0,0 +1,48 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kresources version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 - ) +namespace KRES +{ + +class ResourcePageInfo : KShared +{ +%TypeHeaderCode +#include <configpage.h> +%End + + +public: + ResourcePageInfo (); +//ig Manager<Resource>* mManager; + KConfig* mConfig; + +}; // class ResourcePageInfo + +}; // namespace KRES + +%End + diff --git a/sip/kresources/configwidget.sip b/sip/kresources/configwidget.sip new file mode 100644 index 0000000..822fe5a --- /dev/null +++ b/sip/kresources/configwidget.sip @@ -0,0 +1,56 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kresources version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 - ) +namespace KRES +{ + +class ConfigWidget : QWidget +{ +%TypeHeaderCode +#include <configwidget.h> +%End + + +public: + ConfigWidget (QWidget* = 0, const char* = 0); + virtual void setInEditMode (bool); + +public slots: + virtual void loadSettings (KRES::Resource*) = 0; + virtual void saveSettings (KRES::Resource*) = 0; + +signals: + void setReadOnly (bool); + +protected: + +}; // class ConfigWidget + +}; // namespace KRES + +%End + diff --git a/sip/kresources/factory.sip b/sip/kresources/factory.sip new file mode 100644 index 0000000..8a35b79 --- /dev/null +++ b/sip/kresources/factory.sip @@ -0,0 +1,54 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kresources version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 - ) +namespace KRES +{ + +class Factory +{ +%TypeHeaderCode +#include <factory.h> +%End + + +public: + static KRES::Factory* self (const QString&); + KRES::ConfigWidget* configWidget (const QString&, QWidget* = 0); + KRES::Resource* resource (const QString&, const KConfig*); + QStringList typeNames () const; + QString typeName (const QString&) const; + QString typeDescription (const QString&) const; + +protected: + Factory (const QString&); + +}; // class Factory + +}; // namespace KRES + +%End + diff --git a/sip/kresources/kresourcesmod.sip.in b/sip/kresources/kresourcesmod.sip.in new file mode 100644 index 0000000..9e6cfd5 --- /dev/null +++ b/sip/kresources/kresourcesmod.sip.in @@ -0,0 +1,45 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kresources 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 kresources + +%Import qt/qtmod.sip +%Import qtxml/qtxmlmod.sip +%Import dcopmod.sip +%Import kdecoremod.sip +%Import kdefxmod.sip +%Import kdeuimod.sip +%Import kiomod.sip + +%Include configdialog.sip +%Include configpage.sip +%Include configwidget.sip +%Include factory.sip +%Include resource.sip +%Include selectdialog.sip +@mark@ diff --git a/sip/kresources/resource.sip b/sip/kresources/resource.sip new file mode 100644 index 0000000..3c044b7 --- /dev/null +++ b/sip/kresources/resource.sip @@ -0,0 +1,84 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kresources version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 - ) +namespace KRES +{ + +class Resource : QObject +{ +%TypeHeaderCode +#include <kconfig.h> +#include <resource.h> +%End + + +public: + typedef QValueList<KRES::Resource*> List; + Resource (const KConfig*); + virtual void writeConfig (KConfig*); + bool open (); + void close (); + bool isOpen () const; + QString identifier () const; + QString type () const; + virtual void setReadOnly (bool); + virtual bool readOnly () const; + virtual void setResourceName (const QString&); + virtual QString resourceName () const; + void setActive (bool); + bool isActive () const; + virtual void dump () const; + +protected: + virtual bool doOpen (); + virtual void doClose (); + void setIdentifier (const QString&); + void setType (const QString&); + +}; // class Resource + + +class PluginFactoryBase : KLibFactory +{ +%TypeHeaderCode +#include <resource.h> +%End + + +public: + virtual KRES::Resource* resource (const KConfig*) = 0; + virtual KRES::ConfigWidget* configWidget (QWidget*) = 0; + +protected: + virtual QObject* createObject (QObject*, const char*, const char*, const QStringList&); + +}; // class PluginFactoryBase + +}; // namespace KRES + +%End + diff --git a/sip/kresources/selectdialog.sip b/sip/kresources/selectdialog.sip new file mode 100644 index 0000000..fff14f6 --- /dev/null +++ b/sip/kresources/selectdialog.sip @@ -0,0 +1,132 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kresources version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <qwidget.h> +%End + + +%If ( KDE_3_2_0 - ) +namespace KRES +{ + +class SelectDialog +{ +%TypeHeaderCode +#include <selectdialog.h> +%End + + +public: + SelectDialog (QPtrList<KRES::Resource>, QWidget* = 0, const char* = 0); + KRES::Resource* resource (); + static KRES::Resource* getResource (QPtrList<KRES::Resource>, QWidget* = 0); +//force + +private: + SelectDialog (const KRES::SelectDialog&); +//end + +}; // class SelectDialog + +}; // namespace KRES + +%End + + + +%If (KDE_3_2_0 - ) +%MappedType QPtrList<KRES::Resource> +//converts a Python list of KRES::Resource +{ +%TypeHeaderCode +#include <qptrlist.h> +#include <resource.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList<KRES::Resource> *cpplist = (QPtrList<KRES::Resource> *)sipCpp; + KRES::Resource *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_KRES_Resource, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList<KRES::Resource> *cpplist = new QPtrList<KRES::Resource>; + + PyObject *elem; + KRES::Resource *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KRES::Resource *)sipForceConvertToType(elem, sipType_KRES_Resource, 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/kspell/ksconfig.sip b/sip/kspell/ksconfig.sip new file mode 100644 index 0000000..97bc8b5 --- /dev/null +++ b/sip/kspell/ksconfig.sip @@ -0,0 +1,214 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kspell version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KSpellConfig : QWidget +{ +%TypeHeaderCode +#include <ksconfig.h> +%End + + +public: + KSpellConfig (QWidget* /TransferThis/ = 0, const char* = 0, KSpellConfig* = 0, bool = 1); + KSpellConfig (const KSpellConfig&); + +%If ( KDE_3_2_0 - ) + void fillDicts (QComboBox*, QStringList* = 0); +%End + + void setIgnoreList (QStringList); + +%If ( KDE_3_1_0 - ) + void setReplaceAllList (QStringList); +%End + + void setNoRootAffix (bool); + void setRunTogether (bool); + void setDictionary (const QString); + void setDictFromList (bool); + void setEncoding (int); + void setClient (int); + bool noRootAffix () const; + bool runTogether () const; + const QString dictionary () const; + bool dictFromList () const; + int encoding () const; + QStringList ignoreList () const; + +%If ( KDE_3_1_0 - ) + QStringList replaceAllList () const; +%End + + int client () const; + bool writeGlobalSettings (); + +%If ( KDE_3_2_0 - ) + bool readGlobalSettings (); +%End + + +protected: + void fillInDialog (); + bool interpret (QString&, QString&, QString&); + +public slots: + void activateHelp (); + +protected slots: + void sHelp (); + void sNoAff (bool); + void sRunTogether (bool); + void sDictionary (bool); + void sPathDictionary (bool); + void sSetDictionary (int); + void sChangeEncoding (int); + void sChangeClient (int); + +protected: + +signals: + void configChanged (); + +protected: + +%If ( - KDE_3_2_0 ) + bool readGlobalSettings (); +%End + + +}; // class KSpellConfig + + +%ModuleCode +#include <ksconfig.h> +%End + +%If ( KDE_3_1_4 - ) + +enum Encoding +{ + KS_E_ASCII, + KS_E_LATIN1, + KS_E_LATIN2, + KS_E_LATIN3, + KS_E_LATIN4, + KS_E_LATIN5, + KS_E_LATIN7, + KS_E_LATIN8, + KS_E_LATIN9, + KS_E_LATIN13, + KS_E_LATIN15, + KS_E_UTF8, + KS_E_KOI8R, + KS_E_KOI8U, + KS_E_CP1251, + KS_E_CP1255 +}; + + +%If ( KDE_3_5_0 - ) + +enum KSpellClients +{ + KS_CLIENT_ISPELL, + KS_CLIENT_ASPELL, + KS_CLIENT_HSPELL, + KS_CLIENT_ZEMBEREK +}; + +%End + +%End + + +%If ( KDE_3_1_2 - KDE_3_5_0 ) + +enum KSpellClients +{ + KS_CLIENT_ISPELL, + KS_CLIENT_ASPELL, + KS_CLIENT_HSPELL +}; + +%End + + +%If ( KDE_3_0_3 - KDE_3_1_4 ) + +enum Encoding +{ + KS_E_ASCII, + KS_E_LATIN1, + KS_E_LATIN2, + KS_E_LATIN3, + KS_E_LATIN4, + KS_E_LATIN5, + KS_E_LATIN7, + KS_E_LATIN8, + KS_E_LATIN9, + KS_E_LATIN13, + KS_E_LATIN15, + KS_E_UTF8, + KS_E_KOI8R, + KS_E_KOI8U, + KS_E_CP1251 +}; + +%End + + +%If ( - KDE_3_1_2 ) + +enum KSpellClients +{ + KS_CLIENT_ISPELL, + KS_CLIENT_ASPELL +}; + + +%If ( - KDE_3_0_3 ) + +enum Encoding +{ + KS_E_ASCII, + KS_E_LATIN1, + KS_E_LATIN2, + KS_E_LATIN3, + KS_E_LATIN4, + KS_E_LATIN5, + KS_E_LATIN7, + KS_E_LATIN8, + KS_E_LATIN9, + KS_E_LATIN15, + KS_E_UTF8, + KS_E_KOI8R, + KS_E_KOI8U, + KS_E_CP1251, + KS_E_LATIN13 +}; + +%End +%End diff --git a/sip/kspell/kspell-kde320.diff b/sip/kspell/kspell-kde320.diff new file mode 100644 index 0000000..303f31f --- /dev/null +++ b/sip/kspell/kspell-kde320.diff @@ -0,0 +1 @@ ++ %Include ksyntaxhighlighter.sip diff --git a/sip/kspell/kspell-kde321.diff b/sip/kspell/kspell-kde321.diff new file mode 100644 index 0000000..303f31f --- /dev/null +++ b/sip/kspell/kspell-kde321.diff @@ -0,0 +1 @@ ++ %Include ksyntaxhighlighter.sip diff --git a/sip/kspell/kspell-kde322.diff b/sip/kspell/kspell-kde322.diff new file mode 100644 index 0000000..303f31f --- /dev/null +++ b/sip/kspell/kspell-kde322.diff @@ -0,0 +1 @@ ++ %Include ksyntaxhighlighter.sip diff --git a/sip/kspell/kspell-kde323.diff b/sip/kspell/kspell-kde323.diff new file mode 100644 index 0000000..5fa0372 --- /dev/null +++ b/sip/kspell/kspell-kde323.diff @@ -0,0 +1 @@ ++ %Include ksyntaxhighlighter.sip diff --git a/sip/kspell/kspell-kde330.diff b/sip/kspell/kspell-kde330.diff new file mode 100644 index 0000000..5fa0372 --- /dev/null +++ b/sip/kspell/kspell-kde330.diff @@ -0,0 +1 @@ ++ %Include ksyntaxhighlighter.sip diff --git a/sip/kspell/kspell-kde331.diff b/sip/kspell/kspell-kde331.diff new file mode 100644 index 0000000..5fa0372 --- /dev/null +++ b/sip/kspell/kspell-kde331.diff @@ -0,0 +1 @@ ++ %Include ksyntaxhighlighter.sip diff --git a/sip/kspell/kspell-kde332.diff b/sip/kspell/kspell-kde332.diff new file mode 100644 index 0000000..5fa0372 --- /dev/null +++ b/sip/kspell/kspell-kde332.diff @@ -0,0 +1 @@ ++ %Include ksyntaxhighlighter.sip diff --git a/sip/kspell/kspell-kde340.diff b/sip/kspell/kspell-kde340.diff new file mode 100644 index 0000000..5fa0372 --- /dev/null +++ b/sip/kspell/kspell-kde340.diff @@ -0,0 +1 @@ ++ %Include ksyntaxhighlighter.sip diff --git a/sip/kspell/kspell-kde341.diff b/sip/kspell/kspell-kde341.diff new file mode 100644 index 0000000..5fa0372 --- /dev/null +++ b/sip/kspell/kspell-kde341.diff @@ -0,0 +1 @@ ++ %Include ksyntaxhighlighter.sip diff --git a/sip/kspell/kspell-kde342.diff b/sip/kspell/kspell-kde342.diff new file mode 100644 index 0000000..5fa0372 --- /dev/null +++ b/sip/kspell/kspell-kde342.diff @@ -0,0 +1 @@ ++ %Include ksyntaxhighlighter.sip diff --git a/sip/kspell/kspell-kde343.diff b/sip/kspell/kspell-kde343.diff new file mode 100644 index 0000000..5fa0372 --- /dev/null +++ b/sip/kspell/kspell-kde343.diff @@ -0,0 +1 @@ ++ %Include ksyntaxhighlighter.sip diff --git a/sip/kspell/kspell-kde350.diff b/sip/kspell/kspell-kde350.diff new file mode 100644 index 0000000..5fa0372 --- /dev/null +++ b/sip/kspell/kspell-kde350.diff @@ -0,0 +1 @@ ++ %Include ksyntaxhighlighter.sip diff --git a/sip/kspell/kspell-kde351.diff b/sip/kspell/kspell-kde351.diff new file mode 100644 index 0000000..1aa2b6c --- /dev/null +++ b/sip/kspell/kspell-kde351.diff @@ -0,0 +1,3 @@ +- %Include ksconfig.sip +- %Include kspell.sip +- %Include kspelldlg.sip diff --git a/sip/kspell/kspell-kde352.diff b/sip/kspell/kspell-kde352.diff new file mode 100644 index 0000000..5fa0372 --- /dev/null +++ b/sip/kspell/kspell-kde352.diff @@ -0,0 +1 @@ ++ %Include ksyntaxhighlighter.sip diff --git a/sip/kspell/kspell-kde353.diff b/sip/kspell/kspell-kde353.diff new file mode 100644 index 0000000..5fa0372 --- /dev/null +++ b/sip/kspell/kspell-kde353.diff @@ -0,0 +1 @@ ++ %Include ksyntaxhighlighter.sip diff --git a/sip/kspell/kspell.sip b/sip/kspell/kspell.sip new file mode 100644 index 0000000..8ecf4ea --- /dev/null +++ b/sip/kspell/kspell.sip @@ -0,0 +1,190 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kspell version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KSpell : QObject +{ +%TypeHeaderCode +#include <kspell.h> +%End + + +public: + +%If ( KDE_3_2_0 - ) + + enum spellStatus + { + Starting, + Running, + Cleaning, + Finished, + Error, + Crashed, + FinishedNoMisspellingsEncountered + }; + + + enum SpellerType + { + Text, + HTML, + TeX, + Nroff + }; + +%End + + KSpell (QWidget* /TransferThis/, const QString&, QObject*, const char*, KSpellConfig* = 0, bool = 1, bool = 0); + +%If ( KDE_3_2_0 - ) + KSpell (QWidget* /TransferThis/, const QString&, QObject*, const char*, KSpellConfig*, bool, bool, KSpell::SpellerType); +%End + + spellStatus status (); + virtual void cleanUp (); + void setAutoDelete (bool); + virtual bool check (const QString&, bool = 1); + int lastPosition (); + virtual bool checkList (QStringList*, bool = 1); + virtual bool checkWord (const QString&, bool = 0); + +%If ( KDE_3_2_0 - ) + bool checkWord (const QString&, bool, bool); +%End + + void hide (); + QStringList suggestions () const; + int dlgResult (); + void moveDlg (int, int); + int heightDlg (); + int widthDlg (); + QString intermediateBuffer () const; + virtual bool ignore (const QString&); + virtual bool addPersonal (const QString&); + KSpellConfig ksConfig () const; + void setProgressResolution (uint); + static int modalCheck (QString&); + static int modalCheck (QString&, KSpellConfig*); + void setIgnoreUpperWords (bool); + void setIgnoreTitleCase (bool); + +signals: + void misspelling (const QString&, const QStringList&, uint); + void corrected (const QString&, const QString&, uint); + void ignoreall (const QString&); + void ignoreword (const QString&); + void addword (const QString&); + +%If ( KDE_3_1_0 - ) + void replaceall (const QString&, const QString&); +%End + + void ready (KSpell*); + void progress (uint); + void done (const QString&); + void done (bool); + void death (); + +protected slots: + void KSpell2 (KProcIO*); + void checkWord2 (KProcIO*); + void checkWord3 (); + void check2 (KProcIO*); + void checkList2 (); + void checkList3a (KProcIO*); + void checkListReplaceCurrent (); + void checkList4 (); + void dialog2 (int); + void check3 (); + +%If ( KDE_3_2_0 - ) + void suggestWord (KProcIO*); +%End + + void slotStopCancel (int); + void ispellExit (KProcess*); + void emitDeath (); + void ispellErrors (KProcess*, char*, int); + +%If ( KDE_3_2_0 - ) + void checkNext (); +%End + + +signals: + void dialog3 (); + +protected: + int parseOneResponse (const QString&, QString&, QStringList&); + QString funnyWord (const QString&); + void dialog (const QString&, QStringList&, const char*); + QString replacement (); + void setUpDialog (bool = 1); + void emitProgress (); + bool cleanFputs (const QString&, bool = 1); + bool cleanFputsWord (const QString&, bool = 1); + void startIspell (); + bool writePersonalDictionary (); + +%If ( KDE_3_2_0 - ) + void initialize (QWidget*, const QString&, SIP_RXOBJ_CON, SIP_SLOT_CON (), KSpellConfig*, bool, bool, KSpell::SpellerType); +%End + + +public: + +%If ( - KDE_3_2_0 ) + + enum spellStatus + { + Starting, + Running, + Cleaning, + Finished, + Error, + Crashed + }; + + +//force +%ConvertToSubClassCode + // The table of Python class objects indexed by their names. The table + // must be sorted by name. + + static sipStringTypeClassMap map[] = { + {sipName_KSpell, &sipClass_KSpell}, + {sipName_KSpellConfig, &sipClass_KSpellConfig}, + {sipName_KSpellDlg, &sipClass_KSpellDlg}, + }; + + sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0])); +%End +//end +%End + + +}; // class KSpell + diff --git a/sip/kspell/kspelldlg.sip b/sip/kspell/kspelldlg.sip new file mode 100644 index 0000000..4621b0d --- /dev/null +++ b/sip/kspell/kspelldlg.sip @@ -0,0 +1,127 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kspell version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KSpellDlg : KDialogBase +{ +%TypeHeaderCode +#include <kspelldlg.h> +%End + + +public: + KSpellDlg (QWidget* /TransferThis/, const char*, bool = 0, bool = 0); + QString replacement (); + void init (const QString&, QStringList*); + +%If ( KDE_3_2_0 - ) + void init (const QString&, QStringList*, const QString&); +%End + + void standby (); + +public slots: + void slotProgress (uint); + +protected: + virtual void closeEvent (QCloseEvent*); + void done (int); + +signals: + void command (int); + void ready (bool); + +protected slots: + void ignore (); + void add (); + void ignoreAll (); + void cancel (); + void replace (); + void replaceAll (); + +%If ( KDE_3_2_0 - ) + void suggest (); +%End + + void stop (); + +%If ( KDE_3_2_0 - ) + void slotConfigChanged (); +%End + + void textChanged (const QString&); + +%If ( KDE_3_2_0 - ) + void slotSelectionChanged (QListViewItem*); +%End + + +protected slots: + +%If ( - KDE_3_2_0 ) + void selected (int); + void highlighted (int); +%End + + +}; // class KSpellDlg + + +%ModuleCode +#include <kspelldlg.h> +%End + +%If ( KDE_3_2_0 - ) + +enum KS_RESULT +{ + KS_CANCEL, + KS_REPLACE, + KS_REPLACEALL, + KS_IGNORE, + KS_IGNOREALL, + KS_ADD, + KS_STOP, + KS_SUGGEST, + KS_CONFIG +}; + +%End + + +%If ( - KDE_3_2_0 ) + +enum KS_RESULT +{ + KS_CANCEL, + KS_REPLACE, + KS_REPLACEALL, + KS_IGNORE, + KS_IGNOREALL, + KS_ADD, + KS_STOP +}; + +%End diff --git a/sip/kspell/kspellmod.sip.in b/sip/kspell/kspellmod.sip.in new file mode 100644 index 0000000..added3d --- /dev/null +++ b/sip/kspell/kspellmod.sip.in @@ -0,0 +1,42 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kspell 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 kspell + +%Import qt/qtmod.sip +%Import qtxml/qtxmlmod.sip +%Import dcopmod.sip +%Import kdecoremod.sip +%Import kdefxmod.sip +%Import kdeuimod.sip +%Import kfilemod.sip + +%Include ksconfig.sip +%Include kspell.sip +%Include kspelldlg.sip +@mark@ diff --git a/sip/kspell/ksyntaxhighlighter.sip b/sip/kspell/ksyntaxhighlighter.sip new file mode 100644 index 0000000..55d5b8e --- /dev/null +++ b/sip/kspell/ksyntaxhighlighter.sip @@ -0,0 +1,114 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kspell version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KSyntaxHighlighter : QSyntaxHighlighter +{ +%TypeHeaderCode +#include <ksyntaxhighlighter.h> +%End + + +public: + + enum SyntaxMode + { + PlainTextMode, + RichTextMode + }; + + KSyntaxHighlighter (QTextEdit*, bool = 0, const QColor& = Qt ::black , const QColor& = QColor (0x00 ,0x80 ,0x00 ), const QColor& = QColor (0x00 ,0x80 ,0x00 ), const QColor& = QColor (0x00 ,0x80 ,0x00 ), KSyntaxHighlighter::SyntaxMode = PlainTextMode ); + int highlightParagraph (const QString&, int); + +}; // class KSyntaxHighlighter + +%End + + +%If ( KDE_3_2_0 - ) + +class KSpellingHighlighter : KSyntaxHighlighter +{ +%TypeHeaderCode +#include <ksyntaxhighlighter.h> +%End + + +public: + KSpellingHighlighter (QTextEdit*, const QColor& = Qt ::red , bool = 0, const QColor& = Qt ::black , const QColor& = QColor (0x00 ,0x80 ,0x00 ), const QColor& = QColor (0x00 ,0x80 ,0x00 ), const QColor& = QColor (0x00 ,0x80 ,0x00 )); + virtual int highlightParagraph (const QString&, int); + virtual bool isMisspelled (const QString&) = 0; + bool intraWordEditing () const; + void setIntraWordEditing (bool); + static QStringList personalWords (); + +}; // class KSpellingHighlighter + +%End + + +%If ( KDE_3_2_0 - ) + +class KDictSpellingHighlighter : QObject, KSpellingHighlighter +{ +%TypeHeaderCode +#include <ksyntaxhighlighter.h> +%End + + +public: + KDictSpellingHighlighter (QTextEdit*, bool = 1, bool = 1, const QColor& = Qt ::red , bool = 0, const QColor& = Qt ::black , const QColor& = QColor (0x00 ,0x80 ,0x00 ), const QColor& = QColor (0x00 ,0x70 ,0x00 ), const QColor& = QColor (0x00 ,0x60 ,0x00 ), KSpellConfig* = 0); + virtual bool isMisspelled (const QString&); + static void dictionaryChanged (); + void restartBackgroundSpellCheck (); + void setActive (bool); + bool isActive () const; + void setAutomatic (bool); + bool automatic () const; + +signals: + void activeChanged (const QString&); + void newSuggestions (const QString&, const QStringList&, uint); + +protected: + QString spellKey (); + bool eventFilter (QObject*, QEvent*); + +protected slots: + void slotMisspelling (const QString&, const QStringList&, uint); + void slotCorrected (const QString&, const QString&, uint); + void slotRehighlight (); + void slotDictionaryChanged (); + void slotSpellReady (KSpell*); + void slotAutoDetection (); + void slotLocalSpellConfigChanged (); + void slotKSpellNotResponding (); + +}; // class KDictSpellingHighlighter + +%End + diff --git a/sip/kspell2/backgroundchecker.sip b/sip/kspell2/backgroundchecker.sip new file mode 100644 index 0000000..8efd997 --- /dev/null +++ b/sip/kspell2/backgroundchecker.sip @@ -0,0 +1,68 @@ +// +// Copyright 2004 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kspell2 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. + + +%If ( KDE_3_3_0 - ) +namespace KSpell2 +{ + +class BackgroundChecker : QObject +{ +%TypeHeaderCode +#include <backgroundchecker.h> +%End + +public: + BackgroundChecker (const Broker::Ptr&, QObject* = 0, const char* = 0); + void checkText (const QString&); + KSpell2::Filter* filter () const; + KSpell2::Broker* broker () const; + void changeLanguage (const QString&); + bool checkWord (const QString&); + QStringList suggest (const QString&) const; + +public slots: + virtual void setFilter (KSpell2::Filter*); + virtual void start (); + virtual void stop (); + virtual void continueChecking (); + +signals: + void misspelling (const QString&, int); + void done (); + +protected: + virtual QString getMoreText (); + virtual void finishedCurrentFeed (); + +protected slots: + void slotEngineDone (); + +}; // class BackgroundChecker + +}; // namespace KSpell2 + +%End + diff --git a/sip/kspell2/broker.sip b/sip/kspell2/broker.sip new file mode 100644 index 0000000..4f880e1 --- /dev/null +++ b/sip/kspell2/broker.sip @@ -0,0 +1,62 @@ +// +// Copyright 2004 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kspell2 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. + + +%If ( KDE_3_3_0 - ) +namespace KSpell2 +{ + +class Broker : QObject, KShared +{ +%TypeHeaderCode +#include <broker.h> +%End + +public: + typedef KSharedPtr<Broker> Ptr; + static KSpell2::Broker* openBroker (KSharedConfig* = 0); + +public: + KSpell2::DefaultDictionary* defaultDictionary () const; + KSpell2::Dictionary* dictionary (const QString& = QString ::null , const QString& = QString ::null ) const; + QStringList clients () const; + QStringList languages () const; + KSpell2::Settings* settings () const; + +signals: + void configurationChanged (); + +protected: + void changed (); + +private: + Broker (KSharedConfig*); + +}; // class Broker + +}; // namespace KSpell2 + +%End + diff --git a/sip/kspell2/configdialog.sip b/sip/kspell2/configdialog.sip new file mode 100644 index 0000000..19ed07e --- /dev/null +++ b/sip/kspell2/configdialog.sip @@ -0,0 +1,49 @@ +// +// Copyright 2004 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kspell2 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. + + +%If ( KDE_3_3_0 - ) +namespace KSpell2 +{ + +class ConfigDialog : KDialogBase +{ +%TypeHeaderCode +#include <configdialog.h> +%End + +public: + ConfigDialog (KSpell2::Broker*, QWidget*); + +protected slots: + virtual void slotOk (); + virtual void slotApply (); + +}; // class ConfigDialog + +}; // namespace KSpell2 + +%End + diff --git a/sip/kspell2/configwidget.sip b/sip/kspell2/configwidget.sip new file mode 100644 index 0000000..402f63b --- /dev/null +++ b/sip/kspell2/configwidget.sip @@ -0,0 +1,54 @@ +// +// Copyright 2004 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kspell2 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. + + +%If ( KDE_3_3_0 - ) +namespace KSpell2 +{ + +class ConfigWidget : QWidget +{ +%TypeHeaderCode +#include <configwidget.h> +%End + +public: + ConfigWidget (KSpell2::Broker*, QWidget*, const char* = 0); + bool backgroundCheckingButtonShown () const; + +public slots: + void save (); + void setBackgroundCheckingButtonShown (bool); + void slotDefault (); + +protected slots: + void slotChanged (); + +}; // class ConfigWidget + +}; // namespace KSpell2 + +%End + diff --git a/sip/kspell2/defaultdictionary.sip b/sip/kspell2/defaultdictionary.sip new file mode 100644 index 0000000..4d70d8b --- /dev/null +++ b/sip/kspell2/defaultdictionary.sip @@ -0,0 +1,60 @@ +// +// Copyright 2004 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kspell2 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. + + +%If ( KDE_3_3_0 - ) +namespace KSpell2 +{ + +class DefaultDictionary : QObject, KSpell2::Dictionary +{ +%TypeHeaderCode +#include <defaultdictionary.h> +%End + +public: + DefaultDictionary (const QString&, KSpell2::Broker*); + +public: + bool isValid () const; + virtual bool check (const QString&); + virtual QStringList suggest (const QString&); + virtual bool checkAndSuggest (const QString&, QStringList&); + virtual bool storeReplacement (const QString&, const QString&); + virtual bool addToPersonal (const QString&); + virtual bool addToSession (const QString&); + +signals: + void changed (); + +protected slots: + void defaultConfigurationChanged (); + +}; // class DefaultDictionary + +}; // namespace KSpell2 + +%End + diff --git a/sip/kspell2/dialog.sip b/sip/kspell2/dialog.sip new file mode 100644 index 0000000..4444f81 --- /dev/null +++ b/sip/kspell2/dialog.sip @@ -0,0 +1,61 @@ +// +// Copyright 2004 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kspell2 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. + + +%If ( KDE_3_3_0 - ) +namespace KSpell2 +{ + +class Dialog : KDialogBase +{ +%TypeHeaderCode +#include <dialog.h> +%End + +public: + Dialog (KSpell2::BackgroundChecker*, QWidget*, const char* = 0); + QString originalBuffer () const; + QString buffer () const; + void show (); + void activeAutoCorrect (bool); + +public slots: + void setBuffer (const QString&); + void setFilter (KSpell2::Filter*); + +signals: + void done (const QString&); + void misspelling (const QString&, int); + void replace (const QString&, int, const QString&); + void stop (); + void cancel (); + void autoCorrect (const QString&, const QString&); + +}; // class Dialog + +}; // namespace KSpell2 + +%End + diff --git a/sip/kspell2/dictionary.sip b/sip/kspell2/dictionary.sip new file mode 100644 index 0000000..0f33b56 --- /dev/null +++ b/sip/kspell2/dictionary.sip @@ -0,0 +1,57 @@ +// +// Copyright 2004 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kspell2 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. + + +%If ( KDE_3_3_0 - ) +namespace KSpell2 +{ + +class Dictionary +{ +%TypeHeaderCode +#include <dictionary.h> +%End + +public: + virtual bool check (const QString&) = 0; + virtual QStringList suggest (const QString&) = 0; + virtual bool checkAndSuggest (const QString&, QStringList&) = 0; + virtual bool storeReplacement (const QString&, const QString&) = 0; + virtual bool addToPersonal (const QString&) = 0; + virtual bool addToSession (const QString&) = 0; + QString language () const; + bool isDefault () const; + +protected: + Dictionary (const QString&, bool = 0); + +protected: + +}; // class Dictionary + +}; // namespace KSpell2 + +%End + diff --git a/sip/kspell2/filter.sip b/sip/kspell2/filter.sip new file mode 100644 index 0000000..863d355 --- /dev/null +++ b/sip/kspell2/filter.sip @@ -0,0 +1,87 @@ +// +// Copyright 2004 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kspell2 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. + + +%If ( KDE_3_3_0 - ) +namespace KSpell2 +{ + +class Word +{ +%TypeHeaderCode +#include <filter.h> +%End + +public: + Word (); + Word (const QString&, int, bool = 0); + Word (const KSpell2::Word&); + QString word; + uint start; + bool end; + +}; // class Word + + +class Filter +{ +%TypeHeaderCode +#include <filter.h> +%End + +public: + static KSpell2::Filter* defaultFilter (); + +public: + Filter (); + static KSpell2::Word end (); + void setSettings (KSpell2::Settings*); + KSpell2::Settings* settings () const; + bool atEnd () const; + void setBuffer (const QString&); + QString buffer () const; + void restart (); + virtual KSpell2::Word nextWord () const; + virtual KSpell2::Word previousWord () const; + virtual KSpell2::Word wordAtPosition (uint) const; + virtual void setCurrentPosition (int); + virtual int currentPosition () const; + virtual void replace (const KSpell2::Word&, const QString&); + virtual QString context () const; + +protected: + bool trySkipLinks () const; + bool ignore (const QString&) const; + QChar skipToLetter (uint&) const; + bool shouldBeSkipped (bool, bool, const QString&) const; + +protected: + +}; // class Filter + +}; // namespace KSpell2 + +%End + diff --git a/sip/kspell2/highlighter.sip b/sip/kspell2/highlighter.sip new file mode 100644 index 0000000..0e7ea2d --- /dev/null +++ b/sip/kspell2/highlighter.sip @@ -0,0 +1,54 @@ +// +// Copyright 2004 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kspell2 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. + + +%If ( KDE_3_3_0 - ) +namespace KSpell2 +{ + +class Highlighter : QSyntaxHighlighter +{ +%TypeHeaderCode +#include <highlighter.h> +%End + +public: + Highlighter (QTextEdit*, const QString& = QString ::null , KSpell2::Filter* = Filter ::defaultFilter ()); + virtual int highlightParagraph (const QString&, int); + KSpell2::Filter* currentFilter () const; + void setCurrentFilter (KSpell2::Filter*); + QString currentLanguage () const; + void setCurrentLanguage (const QString&); + +protected: + virtual void setMisspelled (int, int); + virtual void unsetMisspelled (int, int); + +}; // class Highlighter + +}; // namespace KSpell2 + +%End + diff --git a/sip/kspell2/kspell2mod.sip.in b/sip/kspell2/kspell2mod.sip.in new file mode 100644 index 0000000..4517fe7 --- /dev/null +++ b/sip/kspell2/kspell2mod.sip.in @@ -0,0 +1,48 @@ +// +// Copyright 2004 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kspell2 version KDE_3_3_0 + +%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 kspell2 + +%Import qt/qtmod.sip +%Import qtxml/qtxmlmod.sip +%Import dcopmod.sip +%Import kdecoremod.sip +%Import kdefxmod.sip +%Import kdeuimod.sip + +%Include backgroundchecker.sip +%Include broker.sip +%Include configdialog.sip +%Include configwidget.sip +%Include defaultdictionary.sip +%Include dialog.sip +%Include dictionary.sip +%Include filter.sip +%Include highlighter.sip +%Include settings.sip +@mark@ diff --git a/sip/kspell2/settings.sip b/sip/kspell2/settings.sip new file mode 100644 index 0000000..6b4f030 --- /dev/null +++ b/sip/kspell2/settings.sip @@ -0,0 +1,63 @@ +// +// Copyright 2004 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kspell2 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. + + +%If ( KDE_3_3_0 - ) +namespace KSpell2 +{ + +class Settings +{ +%TypeHeaderCode +#include <settings.h> +%End + +public: + void setDefaultLanguage (const QString&); + QString defaultLanguage () const; + void setDefaultClient (const QString&); + QString defaultClient () const; + void setCheckUppercase (bool); + bool checkUppercase () const; + void setSkipRunTogether (bool); + bool skipRunTogether () const; + void setBackgroundCheckerEnabled (bool); + bool backgroundCheckerEnabled () const; + void setCurrentIgnoreList (const QStringList&); + void addWordToIgnore (const QString&); + QStringList currentIgnoreList () const; + bool ignore (const QString&); + void save (); + KSharedConfig* sharedConfig () const; + +private: + Settings (KSpell2::Broker*, KSharedConfig*); + +}; // class Settings + +}; // namespace KSpell2 + +%End + diff --git a/sip/kutils/kcmoduleinfo.sip b/sip/kutils/kcmoduleinfo.sip new file mode 100644 index 0000000..96f9f78 --- /dev/null +++ b/sip/kutils/kcmoduleinfo.sip @@ -0,0 +1,91 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kutils version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KCModuleInfo +{ +%TypeHeaderCode +#include <kcmoduleinfo.h> +%End + + +public: + KCModuleInfo (const QString&); + KCModuleInfo (KService::Ptr); + KCModuleInfo (const KCModuleInfo&); + +%If ( KDE_3_4_0 - ) + KCModuleInfo (); +%End + + bool operator == (const KCModuleInfo&) const; + bool operator != (const KCModuleInfo&) const; + QString fileName () const; + const QStringList& keywords () const; + +%If ( KDE_3_4_0 - ) + QString factoryName () const; +%End + + QString moduleName () const; + KService::Ptr service () const; + QString comment () const; + QString icon () const; + QString docPath () const; + QString library () const; + QString handle () const; + int weight () const; + bool needsRootPrivileges () const; + bool isHiddenByDefault () const; + +%If ( KDE_3_4_0 - ) + bool needsTest () const; +%End + + +protected: + void setKeywords (const QStringList&); + void setName (const QString&); + void setComment (const QString&); + void setIcon (const QString&); + void setLibrary (const QString&); + void setHandle (const QString&); + void setWeight (int); + +%If ( KDE_3_4_0 - ) + void setNeedsTest (bool); +%End + + void setNeedsRootPrivileges (bool); + void setIsHiddenByDefault (bool); + void setDocPath (const QString&); + void loadAll (); + +}; // class KCModuleInfo + +%End + diff --git a/sip/kutils/kcmoduleloader.sip b/sip/kutils/kcmoduleloader.sip new file mode 100644 index 0000000..4a9a247 --- /dev/null +++ b/sip/kutils/kcmoduleloader.sip @@ -0,0 +1,67 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kutils version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KCModuleLoader +{ +%TypeHeaderCode +#include <kcmoduleloader.h> +%End + + +public: + static KCModule* loadModule (const KCModuleInfo&, bool = 1, QWidget* = 0, const char* = 0, const QStringList& = QStringList ()); + static KCModule* loadModule (const QString&, QWidget* = 0, const char* = 0, const QStringList& = QStringList ()); + +%If ( KDE_3_4_0 - ) + + enum ErrorReporting + { + None, + Inline, + Dialog, + Both + }; + + static KCModule* loadModule (const KCModuleInfo&, KCModuleLoader::ErrorReporting, bool = 1, QWidget* = 0, const char* = 0, const QStringList& = QStringList ()); + static KCModule* loadModule (const QString&, KCModuleLoader::ErrorReporting, QWidget* = 0, const char* = 0, const QStringList& = QStringList ()); +%End + + static void unloadModule (const KCModuleInfo&); + static void showLastLoaderError (QWidget*); + +%If ( KDE_3_4_0 - ) + static bool testModule (const QString&); + static bool testModule (const KCModuleInfo&); + static KCModule* reportError (KCModuleLoader::ErrorReporting, const QString&, QString, QWidget*); +%End + + +}; // class KCModuleLoader + +%End + diff --git a/sip/kutils/kcmoduleproxy.sip b/sip/kutils/kcmoduleproxy.sip new file mode 100644 index 0000000..7f6e5f2 --- /dev/null +++ b/sip/kutils/kcmoduleproxy.sip @@ -0,0 +1,104 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kutils version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KCModuleProxy : QWidget +{ +%TypeHeaderCode +#include <kcmoduleproxy.h> +%End + + +public: + KCModuleProxy (const KCModuleInfo&, bool = 0, QWidget* = 0, const char* = 0, const QStringList& = QStringList ()); + +%If ( KDE_3_4_0 - ) + KCModuleProxy (const QString&, bool = 1, QWidget* = 0, const char* = 0, const QStringList& = QStringList ()); + KCModuleProxy (const KService::Ptr&, bool = 1, QWidget* = 0, const char* = 0, const QStringList& = QStringList ()); +%End + + void load (); + void save (); + QString quickHelp () const; + const KAboutData* aboutData () const; + int buttons () const; + QString rootOnlyMsg () const; + bool useRootOnlyMsg () const; + KInstance* instance () const; + bool changed () const; + +%If ( KDE_3_4_0 - ) + bool rootMode () const; +%End + + KCModule* realModule () const; + const KCModuleInfo& moduleInfo () const; + +%If ( KDE_3_4_0 - ) + QCString dcopName () const; +%End + + +public slots: + +%If ( KDE_3_4_0 - ) + void runAsRoot (); + void defaults (); + void deleteClient (); +%End + + +signals: + void changed (bool); + +%If ( KDE_3_4_0 - ) + void changed (KCModuleProxy*); + void childClosed (); + void quickHelpChanged (); +%End + + +protected: + void showEvent (QShowEvent*); + +%If ( KDE_3_4_0 - ) + void init (const KCModuleInfo&); + void emitQuickHelpChanged (); +%End + + +public: + +%If ( - KDE_3_4_0 ) + void defaults (); +%End + + +}; // class KCModuleProxy + +%End + diff --git a/sip/kutils/kcmultidialog.sip b/sip/kutils/kcmultidialog.sip new file mode 100644 index 0000000..2fa6e20 --- /dev/null +++ b/sip/kutils/kcmultidialog.sip @@ -0,0 +1,86 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kutils version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KCMultiDialog : KDialogBase +{ +%TypeHeaderCode +#include <kcmultidialog.h> +%End + + +public: + KCMultiDialog (QWidget* = 0, const char* = 0, bool = 0); + KCMultiDialog (int, const QString&, QWidget* = 0, const char* = 0, bool = 0); + KCMultiDialog (int, const KGuiItem&, const KGuiItem& = KGuiItem (), int = User2 , const QString& = i18n ("Configure" ), QWidget* = 0, const char* = 0, bool = 0); + void addModule (const QString&, bool = 1) /ReleaseGIL/; + void addModule (const KCModuleInfo&, QStringList = QStringList (), bool = 0); + void removeAllModules (); + void show (); + +signals: + void configCommitted (); + void configCommitted (const QCString&); + +protected slots: + virtual void slotDefault (); + virtual void slotUser1 (); + virtual void slotApply (); + virtual void slotOk (); + virtual void slotHelp (); +//force + +private: + void apply (); + +//force +%ConvertToSubClassCode +// The table of Python class objects indexed by their names. The table +// must be sorted by name. + +static sipStringTypeClassMap map[] = { +{sipName_KCModuleProxy, &sipClass_KCModuleProxy}, +{sipName_KCMultiDialog, &sipClass_KCMultiDialog}, +{sipName_KFind, &sipClass_KFind}, +{sipName_KFindDialog, &sipClass_KFindDialog}, +{sipName_KMultiTabBar, &sipClass_KMultiTabBar}, +{sipName_KMultiTabBarButton, &sipClass_KMultiTabBarButton}, +{sipName_KMultiTabBar, &sipClass_KMultiTabBar}, +{sipName_KPluginSelector, &sipClass_KPluginSelector}, +{sipName_KReplace, &sipClass_KReplace}, +{sipName_KReplaceDialog, &sipClass_KReplaceDialog}, +}; + +sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0])); +%End +//end +//end + +}; // class KCMultiDialog + +%End + diff --git a/sip/kutils/kfind.sip b/sip/kutils/kfind.sip new file mode 100644 index 0000000..5e96d1f --- /dev/null +++ b/sip/kutils/kfind.sip @@ -0,0 +1,83 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kutils version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KFind : QObject +{ +%TypeHeaderCode +#include <kfind.h> +%End + + +public: + KFind (const QString&, long, QWidget*); + KFind (const QString&, long, QWidget*, QWidget*); + + enum Result + { + NoMatch, + Match + }; + + bool needData () const; + void setData (const QString&, int = -1); + void setData (int, const QString&, int = -1); + KFind::Result find (); + long options () const; + virtual void setOptions (long); + QString pattern () const; + void setPattern (const QString&); + int numMatches () const; + virtual void resetCounts (); + virtual bool validateMatch (const QString&, int, int); + virtual bool shouldRestart (bool = 0, bool = 1) const; + static int find (const QString&, const QString&, int, long, int*); + static int find (const QString&, const QRegExp&, int, long, int*); + virtual void displayFinalDialog () const; + KDialogBase* findNextDialog (bool = 0); + void closeFindNextDialog (); + int index () const; + +signals: + void highlight (const QString&, int, int); + void highlight (int, int, int); + void findNext (); + void optionsChanged (); + void dialogClosed (); + +protected: + QWidget* parentWidget () const; + QWidget* dialogsParent () const; + +protected slots: + void slotFindNext (); + void slotDialogClosed (); + +}; // class KFind + +%End + diff --git a/sip/kutils/kfinddialog.sip b/sip/kutils/kfinddialog.sip new file mode 100644 index 0000000..fb3939f --- /dev/null +++ b/sip/kutils/kfinddialog.sip @@ -0,0 +1,86 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kutils version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KFindDialog : KDialogBase +{ +%TypeHeaderCode +#include <kfinddialog.h> +%End + + +public: + + enum Options + { + WholeWordsOnly, + FromCursor, + SelectedText, + CaseSensitive, + FindBackwards, + RegularExpression, + FindIncremental, + MinimumUserOption + }; + + KFindDialog (QWidget* = 0, const char* = 0, long = 0, const QStringList& = QStringList (), bool = 0); + KFindDialog (bool, QWidget* = 0, const char* = 0, long = 0, const QStringList& = QStringList (), bool = 0); + void setFindHistory (const QStringList&); + QStringList findHistory () const; + void setHasSelection (bool); + void setHasCursor (bool); + +%If ( KDE_3_4_0 - ) + void setSupportsBackwardsFind (bool); + void setSupportsCaseSensitiveFind (bool); + void setSupportsWholeWordsFind (bool); + void setSupportsRegularExpressionFind (bool); +%End + + void setOptions (long); + long options () const; + QString pattern () const; + void setPattern (const QString&); + QWidget* findExtension (); + +protected slots: + void slotOk (); + void slotSelectedTextToggled (bool); + void showPatterns (); + void showPlaceholders (); + void textSearchChanged (const QString&); + +protected: + virtual void showEvent (QShowEvent*); + +private: + KFindDialog (QWidget*, const char*, bool); + +}; // class KFindDialog + +%End + diff --git a/sip/kutils/kmultitabbar.sip b/sip/kutils/kmultitabbar.sip new file mode 100644 index 0000000..08da4d8 --- /dev/null +++ b/sip/kutils/kmultitabbar.sip @@ -0,0 +1,167 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kutils version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KMultiTabBar : QWidget +{ +%TypeHeaderCode +#include <kmultitabbar.h> +%End + + +public: + + enum KMultiTabBarMode + { + Horizontal, + Vertical + }; + + + enum KMultiTabBarPosition + { + Left, + Right, + Top, + Bottom + }; + + + enum KMultiTabBarStyle + { + VSNET, + KDEV3, + KONQSBC, + KDEV3ICON, + STYLELAST + }; + + KMultiTabBar (KMultiTabBar::KMultiTabBarMode, QWidget* = 0, const char* = 0); + int appendButton (const QPixmap&, int = -1, QPopupMenu* = 0, const QString& = QString ::null ); + void removeButton (int); + int appendTab (const QPixmap&, int = -1, const QString& = QString ::null ); + void removeTab (int); + void setTab (int, bool); + bool isTabRaised (int) const; + KMultiTabBarButton* button (int) const; + KMultiTabBarTab* tab (int) const; + void setPosition (KMultiTabBar::KMultiTabBarPosition); + +%If ( KDE_3_5_0 - ) + KMultiTabBar::KMultiTabBarPosition position () const; +%End + + void setStyle (KMultiTabBar::KMultiTabBarStyle); + +%If ( KDE_3_5_0 - ) + KMultiTabBar::KMultiTabBarStyle tabStyle () const; +%End + +//ig QPtrList<KMultiTabBarTab>* tabs (); +//ig QPtrList<KMultiTabBarButton>* buttons (); + void showActiveTabTexts (bool = 1); + +protected: + virtual void fontChange (const QFont&); + void updateSeparator (); + +}; // class KMultiTabBar + +%End + + +%If ( KDE_3_3_0 - ) + +class KMultiTabBarButton : QPushButton +{ +%TypeHeaderCode +#include <kmultitabbar.h> +%End + + +public: + KMultiTabBarButton (const QPixmap&, const QString&, QPopupMenu*, int, QWidget*, KMultiTabBar::KMultiTabBarPosition, KMultiTabBar::KMultiTabBarStyle); + KMultiTabBarButton (const QString&, QPopupMenu*, int, QWidget*, KMultiTabBar::KMultiTabBarPosition, KMultiTabBar::KMultiTabBarStyle); + int id () const; + +public slots: + void setPosition (KMultiTabBar::KMultiTabBarPosition); + void setStyle (KMultiTabBar::KMultiTabBarStyle); + void setText (const QString&); + QSize sizeHint () const; + +protected: + virtual void hideEvent (QHideEvent*); + virtual void showEvent (QShowEvent*); + +signals: + void clicked (int); + +protected slots: + virtual void slotClicked (); + +}; // class KMultiTabBarButton + +%End + + +%If ( KDE_3_3_0 - ) + +class KMultiTabBarTab : KMultiTabBarButton +{ +%TypeHeaderCode +#include <kmultitabbar.h> +%End + + +public: + KMultiTabBarTab (const QPixmap&, const QString&, int, QWidget*, KMultiTabBar::KMultiTabBarPosition, KMultiTabBar::KMultiTabBarStyle); + void setState (bool); + void showActiveTabText (bool); + void resize (); + +protected: + void setSize (int); + int neededSize (); + void updateState (); + virtual void drawButton (QPainter*); + virtual void drawButtonLabel (QPainter*); + void drawButtonStyled (QPainter*); + void drawButtonClassic (QPainter*); + +protected slots: + virtual void slotClicked (); + void setTabsPosition (KMultiTabBar::KMultiTabBarPosition); + +public slots: + virtual void setIcon (const QString&); + virtual void setIcon (const QPixmap&); + +}; // class KMultiTabBarTab + +%End + diff --git a/sip/kutils/kplugininfo.sip b/sip/kutils/kplugininfo.sip new file mode 100644 index 0000000..c1480b0 --- /dev/null +++ b/sip/kutils/kplugininfo.sip @@ -0,0 +1,148 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kutils version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KPluginInfo +{ +%TypeHeaderCode +#include <kplugininfo.h> +%End + + +public: + typedef QValueList<KPluginInfo*> List; + KPluginInfo (const QString&, const char* = 0); + KPluginInfo (const KService::Ptr); + static KPluginInfo::List fromServices (const KService::List&, KConfig* = 0, const QString& = QString ::null ); + static KPluginInfo::List fromFiles (const QStringList&, KConfig* = 0, const QString& = QString ::null ); + static KPluginInfo::List fromKPartsInstanceName (const QString&, KConfig* = 0, const QString& = QString ::null ); + bool isHidden () const; + virtual void setPluginEnabled (bool); + virtual bool isPluginEnabled () const; + bool isPluginEnabledByDefault () const; + QVariant property (const QString&) const; +//ig QVariant operator [] (const QString&) const; + const QString& name () const; + const QString& comment () const; + const QString& icon () const; + const QString& specfile () const; + const QString& author () const; + const QString& email () const; + const QString& category () const; + const QString& pluginName () const; + const QString& version () const; + const QString& website () const; + const QString& license () const; + const QStringList& dependencies () const; + KService::Ptr service () const; +//ig const QValueList<KService::Ptr>& kcmServices () const; + void setConfig (KConfig*, const QString&); + KConfig* config () const; + const QString& configgroup () const; + virtual void save (KConfigGroup* = 0); + virtual void load (KConfigGroup* = 0); + virtual void defaults (); + +private: + KPluginInfo (const KPluginInfo&); + +}; // class KPluginInfo + +%End + + + +%If (KDE_3_3_0 - ) +%MappedType KPluginInfo::List +//converts a Python list of KPluginInfo +{ +%TypeHeaderCode +#include <qvaluelist.h> +#include <kplugininfo.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList<KPluginInfo *> *cpplist = (QValueList<KPluginInfo *> *)sipCpp; + PyObject *inst; + + // Get it. + QValueList<KPluginInfo *>::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromInstance ((KPluginInfo *)(*it), sipClass_KPluginInfo, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList<KPluginInfo *> *cpplist = new QValueList<KPluginInfo *>; + + PyObject *elem; + KPluginInfo *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KPluginInfo *)sipForceConvertToType(elem, sipType_KPluginInfo, 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/kutils/kpluginselector.sip b/sip/kutils/kpluginselector.sip new file mode 100644 index 0000000..7266136 --- /dev/null +++ b/sip/kutils/kpluginselector.sip @@ -0,0 +1,53 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kutils version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KPluginSelector : QWidget +{ +%TypeHeaderCode +#include <kpluginselector.h> +%End + + +public: + KPluginSelector (QWidget*, const char* = 0); + void addPlugins (const QString&, const QString& = QString ::null , const QString& = QString ::null , KConfig* = 0); + void addPlugins (const KInstance*, const QString& = QString ::null , const QString& = QString ::null , KConfig* = 0); +//ig void addPlugins (const QValueList<KPluginInfo*>&, const QString& = QString ::null , const QString& = QString ::null , KConfig* = 0); + void setShowEmptyConfigPage (bool); + void load (); + void save (); + void defaults (); + +signals: + void changed (bool); + void configCommitted (const QCString&); + +}; // class KPluginSelector + +%End + diff --git a/sip/kutils/kreplace.sip b/sip/kutils/kreplace.sip new file mode 100644 index 0000000..c797630 --- /dev/null +++ b/sip/kutils/kreplace.sip @@ -0,0 +1,60 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kutils version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KReplace : KFind +{ +%TypeHeaderCode +#include <kreplace.h> +%End + + +public: + KReplace (const QString&, const QString&, long, QWidget* = 0); + KReplace (const QString&, const QString&, long, QWidget*, QWidget*); + int numReplacements () const; + virtual void resetCounts (); + Result replace (); + KDialogBase* replaceNextDialog (bool = 0); + void closeReplaceNextDialog (); + static int replace (QString&, const QString&, const QString&, int, long, int*); + static int replace (QString&, const QRegExp&, const QString&, int, long, int*); + virtual bool shouldRestart (bool = 0, bool = 1) const; + virtual void displayFinalDialog () const; + +signals: + void replace (const QString&, int, int, int); + +protected slots: + void slotSkip (); + void slotReplace (); + void slotReplaceAll (); + +}; // class KReplace + +%End + diff --git a/sip/kutils/kreplacedialog.sip b/sip/kutils/kreplacedialog.sip new file mode 100644 index 0000000..84938a6 --- /dev/null +++ b/sip/kutils/kreplacedialog.sip @@ -0,0 +1,59 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kutils version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 KReplaceDialog : KFindDialog +{ +%TypeHeaderCode +#include <kreplacedialog.h> +%End + + +public: + + enum Options + { + PromptOnReplace, + BackReference + }; + + KReplaceDialog (QWidget* = 0, const char* = 0, long = 0, const QStringList& = QStringList (), const QStringList& = QStringList (), bool = 1); + void setReplacementHistory (const QStringList&); + QStringList replacementHistory () const; + void setOptions (long); + long options () const; + QString replacement () const; + QWidget* replaceExtension (); + +protected slots: + void slotOk (); + virtual void showEvent (QShowEvent*); + +}; // class KReplaceDialog + +%End + diff --git a/sip/kutils/kutils-kde340.diff b/sip/kutils/kutils-kde340.diff new file mode 100644 index 0000000..d37bf3d --- /dev/null +++ b/sip/kutils/kutils-kde340.diff @@ -0,0 +1 @@ ++ %Include kcmodulecontainer.sip diff --git a/sip/kutils/kutils-kde341.diff b/sip/kutils/kutils-kde341.diff new file mode 100644 index 0000000..d37bf3d --- /dev/null +++ b/sip/kutils/kutils-kde341.diff @@ -0,0 +1 @@ ++ %Include kcmodulecontainer.sip diff --git a/sip/kutils/kutilsmod.sip.in b/sip/kutils/kutilsmod.sip.in new file mode 100644 index 0000000..2f9f710 --- /dev/null +++ b/sip/kutils/kutilsmod.sip.in @@ -0,0 +1,50 @@ +// +// Copyright 2006 Jim Bublitz <[email protected]> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kutils 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 kutils + +%Import qt/qtmod.sip +%Import dcopmod.sip +%Import kdecoremod.sip +%Import qtxml/qtxmlmod.sip +%Import kdefxmod.sip +%Import kdeuimod.sip +%Import kiomod.sip + +%Include kcmoduleinfo.sip +%Include kcmoduleloader.sip +%Include kcmoduleproxy.sip +%Include kcmultidialog.sip +%Include kfind.sip +%Include kfinddialog.sip +%Include kmultitabbar.sip +%Include kplugininfo.sip +%Include kpluginselector.sip +%Include kreplace.sip +%Include kreplacedialog.sip +@mark@ |