diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-26 13:14:34 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-26 13:14:34 -0600 |
commit | 57e2ced52bf3ba886bb7710212167a86e20305e6 (patch) | |
tree | e08b1e82e83f5afa861dc9eeb833dc4bd593900b /sip/tderesources | |
parent | ccad7a42d96879251c4971e51aac269f61a0ccf8 (diff) | |
download | pytde-57e2ced52bf3ba886bb7710212167a86e20305e6.tar.gz pytde-57e2ced52bf3ba886bb7710212167a86e20305e6.zip |
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'sip/tderesources')
-rw-r--r-- | sip/tderesources/configdialog.sip | 52 | ||||
-rw-r--r-- | sip/tderesources/configpage.sip | 48 | ||||
-rw-r--r-- | sip/tderesources/configwidget.sip | 56 | ||||
-rw-r--r-- | sip/tderesources/factory.sip | 54 | ||||
-rw-r--r-- | sip/tderesources/resource.sip | 84 | ||||
-rw-r--r-- | sip/tderesources/selectdialog.sip | 132 | ||||
-rw-r--r-- | sip/tderesources/tderesourcesmod.sip.in | 45 |
7 files changed, 471 insertions, 0 deletions
diff --git a/sip/tderesources/configdialog.sip b/sip/tderesources/configdialog.sip new file mode 100644 index 0000000..aaec6a5 --- /dev/null +++ b/sip/tderesources/configdialog.sip @@ -0,0 +1,52 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tderesources version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 (TQWidget*, const TQString&, KRES::Resource*, const char* = 0); + void setInEditMode (bool); + +protected slots: + void accept (); + void setReadOnly (bool); + void slotNameChanged (const TQString&); + +}; // class ConfigDialog + +}; // namespace KRES + +%End + diff --git a/sip/tderesources/configpage.sip b/sip/tderesources/configpage.sip new file mode 100644 index 0000000..43efd25 --- /dev/null +++ b/sip/tderesources/configpage.sip @@ -0,0 +1,48 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tderesources version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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; + TDEConfig* mConfig; + +}; // class ResourcePageInfo + +}; // namespace KRES + +%End + diff --git a/sip/tderesources/configwidget.sip b/sip/tderesources/configwidget.sip new file mode 100644 index 0000000..bbf8a0d --- /dev/null +++ b/sip/tderesources/configwidget.sip @@ -0,0 +1,56 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tderesources version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 : TQWidget +{ +%TypeHeaderCode +#include <configwidget.h> +%End + + +public: + ConfigWidget (TQWidget* = 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/tderesources/factory.sip b/sip/tderesources/factory.sip new file mode 100644 index 0000000..5b76ac3 --- /dev/null +++ b/sip/tderesources/factory.sip @@ -0,0 +1,54 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tderesources version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 TQString&); + KRES::ConfigWidget* configWidget (const TQString&, TQWidget* = 0); + KRES::Resource* resource (const TQString&, const TDEConfig*); + TQStringList typeNames () const; + TQString typeName (const TQString&) const; + TQString typeDescription (const TQString&) const; + +protected: + Factory (const TQString&); + +}; // class Factory + +}; // namespace KRES + +%End + diff --git a/sip/tderesources/resource.sip b/sip/tderesources/resource.sip new file mode 100644 index 0000000..0831a82 --- /dev/null +++ b/sip/tderesources/resource.sip @@ -0,0 +1,84 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tderesources version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 : TQObject +{ +%TypeHeaderCode +#include <kconfig.h> +#include <resource.h> +%End + + +public: + typedef TQValueList<KRES::Resource*> List; + Resource (const TDEConfig*); + virtual void writeConfig (TDEConfig*); + bool open (); + void close (); + bool isOpen () const; + TQString identifier () const; + TQString type () const; + virtual void setReadOnly (bool); + virtual bool readOnly () const; + virtual void setResourceName (const TQString&); + virtual TQString resourceName () const; + void setActive (bool); + bool isActive () const; + virtual void dump () const; + +protected: + virtual bool doOpen (); + virtual void doClose (); + void setIdentifier (const TQString&); + void setType (const TQString&); + +}; // class Resource + + +class PluginFactoryBase : KLibFactory +{ +%TypeHeaderCode +#include <resource.h> +%End + + +public: + virtual KRES::Resource* resource (const TDEConfig*) = 0; + virtual KRES::ConfigWidget* configWidget (TQWidget*) = 0; + +protected: + virtual TQObject* createObject (TQObject*, const char*, const char*, const TQStringList&); + +}; // class PluginFactoryBase + +}; // namespace KRES + +%End + diff --git a/sip/tderesources/selectdialog.sip b/sip/tderesources/selectdialog.sip new file mode 100644 index 0000000..bd61888 --- /dev/null +++ b/sip/tderesources/selectdialog.sip @@ -0,0 +1,132 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tderesources version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this 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 <tqwidget.h> +%End + + +%If ( KDE_3_2_0 - ) +namespace KRES +{ + +class SelectDialog +{ +%TypeHeaderCode +#include <selectdialog.h> +%End + + +public: + SelectDialog (TQPtrList<KRES::Resource>, TQWidget* = 0, const char* = 0); + KRES::Resource* resource (); + static KRES::Resource* getResource (TQPtrList<KRES::Resource>, TQWidget* = 0); +//force + +private: + SelectDialog (const KRES::SelectDialog&); +//end + +}; // class SelectDialog + +}; // namespace KRES + +%End + + + +%If (KDE_3_2_0 - ) +%MappedType TQPtrList<KRES::Resource> +//converts a Python list of KRES::Resource +{ +%TypeHeaderCode +#include <tqptrlist.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. + + TQPtrList<KRES::Resource> *cpplist = (TQPtrList<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); + + TQPtrList<KRES::Resource> *cpplist = new TQPtrList<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/tderesources/tderesourcesmod.sip.in b/sip/tderesources/tderesourcesmod.sip.in new file mode 100644 index 0000000..8871a13 --- /dev/null +++ b/sip/tderesources/tderesourcesmod.sip.in @@ -0,0 +1,45 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tderesources 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 tderesources + +%Import qt/qtmod.sip +%Import qtxml/qtxmlmod.sip +%Import dcopmod.sip +%Import tdecoremod.sip +%Import tdefxmod.sip +%Import tdeuimod.sip +%Import kiomod.sip + +%Include configdialog.sip +%Include configpage.sip +%Include configwidget.sip +%Include factory.sip +%Include resource.sip +%Include selectdialog.sip +@mark@ |