Drop python2 support.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/5/head
Michele Calgaro 2 years ago
parent 065f41b490
commit 4ce11cc30d
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -1,161 +1,338 @@
------------------------------------------------------------------------ ------------------------------------------------------------------------
r124 | (jim) | 2006-01-21 11:33:36 -0800 (Sat, 21 Jan 2006) | 2 lines r160 | (no author) | 2006-09-22 00:23:44 -0700 (Fri, 22 Sep 2006) | 2 lines
tdeio/tdefileshare changed in error - reverted
------------------------------------------------------------------------
r159 | (no author) | 2006-09-22 00:22:47 -0700 (Fri, 22 Sep 2006) | 3 lines
Bumped min versions: sip >= 4.4.0, PyTQt >= 3.16.0,
TQt >= 3.2.0
------------------------------------------------------------------------
r158 | (no author) | 2006-09-22 00:16:56 -0700 (Fri, 22 Sep 2006) | 3 lines
version error KMimeType::List; changed -x to -t for
%Platforms in configure.py, added "ALL" generic platform
------------------------------------------------------------------------
r157 | (no author) | 2006-09-21 23:19:39 -0700 (Thu, 21 Sep 2006) | 3 lines
configure.py searches for lib64; non-functional PyKDE
version methods deleted (and in docs)
------------------------------------------------------------------------
r156 | (no author) | 2006-09-21 17:56:59 -0700 (Thu, 21 Sep 2006) | 2 lines
update sip.in and diff files for tdeparts.konsole_part
------------------------------------------------------------------------
r155 | (no author) | 2006-09-21 17:54:25 -0700 (Thu, 21 Sep 2006) | 2 lines
set konsolepart for KDE3.5.0 or greater only
------------------------------------------------------------------------
r154 | (no author) | 2006-09-21 14:12:29 -0700 (Thu, 21 Sep 2006) | 2 lines
remove pyc files from svn
------------------------------------------------------------------------
r153 | (no author) | 2006-09-21 14:11:58 -0700 (Thu, 21 Sep 2006) | 2 lines
konsole_part stuff
------------------------------------------------------------------------
r152 | (no author) | 2006-09-21 10:13:58 -0700 (Thu, 21 Sep 2006) | 3 lines
added konsole_part.h to versions missing it; added
extra/kde353 to base fileset
------------------------------------------------------------------------
r150 | (no author) | 2006-09-21 08:38:43 -0700 (Thu, 21 Sep 2006) | 3 lines
More cleanup for 3.16 release; added konsole_part again;
miscellaneous small bug fixes
------------------------------------------------------------------------
r149 | (no author) | 2006-09-19 16:26:43 -0700 (Tue, 19 Sep 2006) | 2 lines
Upgrade to KDE 3.5.3
------------------------------------------------------------------------
r148 | (no author) | 2006-09-19 16:24:33 -0700 (Tue, 19 Sep 2006) | 3 lines
Cleaned up files for presip; minor fixes for 9/17 sip snapshot
Clean fileset - presip will build clean 3.5.3 from this set
------------------------------------------------------------------------
r145 | (no author) | 2006-05-26 21:49:46 -0700 (Fri, 26 May 2006) | 2 lines
Deleted commented out TQList code
------------------------------------------------------------------------
r144 | (no author) | 2006-05-26 20:39:51 -0700 (Fri, 26 May 2006) | 2 lines
Eliminate obsolete TQList/qlist.h references
------------------------------------------------------------------------
r143 | (no author) | 2006-05-25 01:54:27 -0700 (Thu, 25 May 2006) | 2 lines
fix for KDE 3.1.x
------------------------------------------------------------------------
r142 | (no author) | 2006-05-22 19:26:54 -0700 (Mon, 22 May 2006) | 3 lines
fixes for KDE < 3.2.0 in configure.py, tdeabc .diff files
and knotifydialog
------------------------------------------------------------------------
r141 | (no author) | 2006-05-22 00:38:44 -0700 (Mon, 22 May 2006) | 2 lines
remove top-level (*mod.sip) files
------------------------------------------------------------------------
r140 | (no author) | 2006-05-21 20:27:45 -0700 (Sun, 21 May 2006) | 2 lines
added extra/kde352
------------------------------------------------------------------------
r139 | (no author) | 2006-05-21 20:06:53 -0700 (Sun, 21 May 2006) | 2 lines
KDE 3.3.0 touchup
------------------------------------------------------------------------
r138 | (no author) | 2006-05-21 18:24:47 -0700 (Sun, 21 May 2006) | 2 lines
clean up .sip.in files
------------------------------------------------------------------------
r137 | (no author) | 2006-05-21 15:46:13 -0700 (Sun, 21 May 2006) | 2 lines
modifications for KDE 3.3.0 compatibility
------------------------------------------------------------------------
r136 | (no author) | 2006-05-21 04:59:30 -0700 (Sun, 21 May 2006) | 2 lines
KDE 3.5.2
------------------------------------------------------------------------
r135 | (no author) | 2006-05-20 15:27:11 -0700 (Sat, 20 May 2006) | 2 lines
added 352 project file
------------------------------------------------------------------------
r133 | (no author) | 2006-05-19 00:53:46 -0700 (Fri, 19 May 2006) | 2 lines
KDE 3.5.1
------------------------------------------------------------------------
r132 | (no author) | 2006-01-27 13:00:18 -0800 (Fri, 27 Jan 2006) | 2 lines
added missing method tdeabc/resourcefile.sip
------------------------------------------------------------------------
r131 | (no author) | 2006-01-26 19:27:45 -0800 (Thu, 26 Jan 2006) | 2 lines
fully-qualified names in tdeabc/resourcefile.sip
------------------------------------------------------------------------
r130 | (no author) | 2006-01-26 16:53:44 -0800 (Thu, 26 Jan 2006) | 3 lines
Put tdeabc/resourcefile.sip back into tdeabc for later
versions (missing in tdelibs tarball, but in trinity/include/tdeabc)
------------------------------------------------------------------------
r129 | (no author) | 2006-01-26 16:50:00 -0800 (Thu, 26 Jan 2006) | 3 lines
Removed *mod.sip files from version control (user
generated)
------------------------------------------------------------------------
r128 | (no author) | 2006-01-26 16:46:27 -0800 (Thu, 26 Jan 2006) | 2 lines
Updated tdeabc/resourcefile.sip - versioning
------------------------------------------------------------------------
r127 | (no author) | 2006-01-23 00:19:15 -0800 (Mon, 23 Jan 2006) | 2 lines
typo in configure.py
------------------------------------------------------------------------
r126 | (no author) | 2006-01-22 23:08:28 -0800 (Sun, 22 Jan 2006) | 4 lines
changed configure.py to concatenate by default for
gcc >= 4.0.3; deleted unneeded mapped type from
tdeio/global.sip
------------------------------------------------------------------------
r125 | (no author) | 2006-01-22 21:45:55 -0800 (Sun, 22 Jan 2006) | 8 lines
modify configure.py to drop tderesources for KDE < 3.2;
version Resource class in tdeabc/resource.sip; version
64 bit read/write stuff in tdecore/tdeconfigbase.sip;
version copy ctor in tdecore/kprocctrl.sip; version
out longlong/ulonglong mapped types in tdeio/global.sip;
version one method in tdeio/tdesycoca.sip; fix line with
illegal char (?) in extensions/dcopexport.py
------------------------------------------------------------------------
r124 | (no author) | 2006-01-21 11:33:36 -0800 (Sat, 21 Jan 2006) | 2 lines
removed kkeyserver.sip references from all .diff files removed kkeyserver.sip references from all .diff files
------------------------------------------------------------------------ ------------------------------------------------------------------------
r123 | (jim) | 2006-01-21 11:31:03 -0800 (Sat, 21 Jan 2006) | 2 lines r123 | (no author) | 2006-01-21 11:31:03 -0800 (Sat, 21 Jan 2006) | 2 lines
updated docs updated docs
------------------------------------------------------------------------ ------------------------------------------------------------------------
r122 | (jim) | 2006-01-21 10:46:51 -0800 (Sat, 21 Jan 2006) | 2 lines r122 | (no author) | 2006-01-21 10:46:51 -0800 (Sat, 21 Jan 2006) | 2 lines
fixed TOC links in classref doc files fixed TOC links in classref doc files
------------------------------------------------------------------------ ------------------------------------------------------------------------
r121 | (jim) | 2006-01-21 01:20:30 -0800 (Sat, 21 Jan 2006) | 2 lines r121 | (no author) | 2006-01-21 01:20:30 -0800 (Sat, 21 Jan 2006) | 2 lines
Initial doc update Initial doc update
------------------------------------------------------------------------ ------------------------------------------------------------------------
r120 | (jim) | 2006-01-20 17:37:06 -0800 (Fri, 20 Jan 2006) | 3 lines r120 | (no author) | 2006-01-20 17:37:06 -0800 (Fri, 20 Jan 2006) | 3 lines
fixed TQValueList<TDEConfigSkeleton::ItemEnum::Choice> code fixed TQValueList<TDEConfigSkeleton::ItemEnum::Choice> code
and fixed dcopexport.py handling of void return types and fixed dcopexport.py handling of void return types
------------------------------------------------------------------------ ------------------------------------------------------------------------
r119 | (jim) | 2006-01-20 12:14:10 -0800 (Fri, 20 Jan 2006) | 2 lines r119 | (no author) | 2006-01-20 12:14:10 -0800 (Fri, 20 Jan 2006) | 2 lines
added X11 include added X11 include
------------------------------------------------------------------------ ------------------------------------------------------------------------
r118 | (jim) | 2006-01-18 23:27:15 -0800 (Wed, 18 Jan 2006) | 2 lines r118 | (no author) | 2006-01-18 23:27:15 -0800 (Wed, 18 Jan 2006) | 2 lines
backed out ambiguous/inaccessible methods in TDEConfigSkeleton backed out ambiguous/inaccessible methods in TDEConfigSkeleton
------------------------------------------------------------------------ ------------------------------------------------------------------------
r117 | (jim) | 2006-01-18 23:00:34 -0800 (Wed, 18 Jan 2006) | 3 lines r117 | (no author) | 2006-01-18 23:00:34 -0800 (Wed, 18 Jan 2006) | 3 lines
correct versioning error on addItem* methods in correct versioning error on addItem* methods in
TDEConfigSkeleton TDEConfigSkeleton
------------------------------------------------------------------------ ------------------------------------------------------------------------
r116 | (jim) | 2006-01-18 22:08:35 -0800 (Wed, 18 Jan 2006) | 3 lines r116 | (no author) | 2006-01-18 22:08:35 -0800 (Wed, 18 Jan 2006) | 3 lines
fixes for backward compatibility with older KDE, gcc, fixes for backward compatibility with older KDE, gcc,
sip sip
------------------------------------------------------------------------ ------------------------------------------------------------------------
r115 | (jim) | 2006-01-18 21:12:02 -0800 (Wed, 18 Jan 2006) | 2 lines r115 | (no author) | 2006-01-18 21:12:02 -0800 (Wed, 18 Jan 2006) | 2 lines
PyKDE for KDE 3.5.0 complete PyKDE for KDE 3.5.0 complete
------------------------------------------------------------------------ ------------------------------------------------------------------------
r114 | (jim) | 2006-01-17 01:51:20 -0800 (Tue, 17 Jan 2006) | 2 lines r114 | (no author) | 2006-01-17 01:51:20 -0800 (Tue, 17 Jan 2006) | 2 lines
all modules working for KDE 3.4.3 - minor fixes all modules working for KDE 3.4.3 - minor fixes
------------------------------------------------------------------------ ------------------------------------------------------------------------
r113 | (jim) | 2006-01-16 22:13:25 -0800 (Mon, 16 Jan 2006) | 2 lines r113 | (no author) | 2006-01-16 22:13:25 -0800 (Mon, 16 Jan 2006) | 2 lines
tdeabc, tderesources touchup tdeabc, tderesources touchup
------------------------------------------------------------------------ ------------------------------------------------------------------------
r112 | (jim) | 2006-01-16 21:57:28 -0800 (Mon, 16 Jan 2006) | 2 lines r112 | (no author) | 2006-01-16 21:57:28 -0800 (Mon, 16 Jan 2006) | 2 lines
update extra/ for KDE 3.5.0 update extra/ for KDE 3.5.0
------------------------------------------------------------------------ ------------------------------------------------------------------------
r111 | (jim) | 2006-01-16 21:56:14 -0800 (Mon, 16 Jan 2006) | 2 lines r111 | (no author) | 2006-01-16 21:56:14 -0800 (Mon, 16 Jan 2006) | 2 lines
minor fix minor fix
------------------------------------------------------------------------ ------------------------------------------------------------------------
r109 | (jim) | 2006-01-16 20:35:03 -0800 (Mon, 16 Jan 2006) | 2 lines r109 | (no author) | 2006-01-16 20:35:03 -0800 (Mon, 16 Jan 2006) | 2 lines
yet more debugging tdeabc, tderesources yet more debugging tdeabc, tderesources
------------------------------------------------------------------------ ------------------------------------------------------------------------
r108 | (jim) | 2006-01-16 20:22:55 -0800 (Mon, 16 Jan 2006) | 2 lines r108 | (no author) | 2006-01-16 20:22:55 -0800 (Mon, 16 Jan 2006) | 2 lines
more debugging tdeabc, tderesources more debugging tdeabc, tderesources
------------------------------------------------------------------------ ------------------------------------------------------------------------
r107 | (jim) | 2006-01-16 20:15:50 -0800 (Mon, 16 Jan 2006) | 2 lines r107 | (no author) | 2006-01-16 20:15:50 -0800 (Mon, 16 Jan 2006) | 2 lines
more tdeabc, kresource debugging more tdeabc, kresource debugging
------------------------------------------------------------------------ ------------------------------------------------------------------------
r106 | (jim) | 2006-01-16 20:12:37 -0800 (Mon, 16 Jan 2006) | 2 lines r106 | (no author) | 2006-01-16 20:12:37 -0800 (Mon, 16 Jan 2006) | 2 lines
tdeabc, kresource debugging tdeabc, kresource debugging
------------------------------------------------------------------------ ------------------------------------------------------------------------
r105 | (jim) | 2006-01-16 20:08:37 -0800 (Mon, 16 Jan 2006) | 2 lines r105 | (no author) | 2006-01-16 20:08:37 -0800 (Mon, 16 Jan 2006) | 2 lines
tdeabc, tderesources through KDE 3.4.3 tdeabc, tderesources through KDE 3.4.3
------------------------------------------------------------------------ ------------------------------------------------------------------------
r104 | (jim) | 2006-01-16 18:33:10 -0800 (Mon, 16 Jan 2006) | 2 lines r104 | (no author) | 2006-01-16 18:33:10 -0800 (Mon, 16 Jan 2006) | 2 lines
removed erroneous tderesources .diff file removed erroneous tderesources .diff file
------------------------------------------------------------------------ ------------------------------------------------------------------------
r103 | (jim) | 2006-01-16 18:24:05 -0800 (Mon, 16 Jan 2006) | 3 lines r103 | (no author) | 2006-01-16 18:24:05 -0800 (Mon, 16 Jan 2006) | 3 lines
more tdeabc and tderesources debugging - compiles more tdeabc and tderesources debugging - compiles
through KDE 330 through KDE 330
------------------------------------------------------------------------ ------------------------------------------------------------------------
r102 | (jim) | 2006-01-16 00:47:43 -0800 (Mon, 16 Jan 2006) | 2 lines r102 | (no author) | 2006-01-16 00:47:43 -0800 (Mon, 16 Jan 2006) | 2 lines
debug configure.py, tdeabc, tderesources debug configure.py, tdeabc, tderesources
------------------------------------------------------------------------ ------------------------------------------------------------------------
r101 | (jim) | 2006-01-15 22:27:45 -0800 (Sun, 15 Jan 2006) | 2 lines r101 | (no author) | 2006-01-15 22:27:45 -0800 (Sun, 15 Jan 2006) | 2 lines
fixed typo in configure.py fixed typo in configure.py
------------------------------------------------------------------------ ------------------------------------------------------------------------
r100 | (jim) | 2006-01-15 22:22:50 -0800 (Sun, 15 Jan 2006) | 2 lines r100 | (no author) | 2006-01-15 22:22:50 -0800 (Sun, 15 Jan 2006) | 2 lines
added tdeabc and tderesources through KDE 3.3.0 added tdeabc and tderesources through KDE 3.3.0
------------------------------------------------------------------------ ------------------------------------------------------------------------
r97 | (jim) | 2006-01-15 15:04:44 -0800 (Sun, 15 Jan 2006) | 2 lines r97 | (no author) | 2006-01-15 15:04:44 -0800 (Sun, 15 Jan 2006) | 2 lines
upgrade to KDE 3.4.3 upgrade to KDE 3.4.3
------------------------------------------------------------------------ ------------------------------------------------------------------------
r95 | (jim) | 2006-01-15 10:47:15 -0800 (Sun, 15 Jan 2006) | 2 lines r95 | (no author) | 2006-01-15 10:47:15 -0800 (Sun, 15 Jan 2006) | 2 lines
added 'extra' files added 'extra' files
------------------------------------------------------------------------ ------------------------------------------------------------------------
r94 | (jim) | 2006-01-15 10:26:53 -0800 (Sun, 15 Jan 2006) | 2 lines r94 | (no author) | 2006-01-15 10:26:53 -0800 (Sun, 15 Jan 2006) | 2 lines
Update to KDE 3.4.2 Update to KDE 3.4.2
------------------------------------------------------------------------ ------------------------------------------------------------------------
r93 | (jim) | 2006-01-14 14:12:52 -0800 (Sat, 14 Jan 2006) | 4 lines r93 | (no author) | 2006-01-14 14:12:52 -0800 (Sat, 14 Jan 2006) | 4 lines
typedef'd IntList from TQValueList<int> so IntList() typedef'd IntList from TQValueList<int> so IntList()
can be used as intializer for defaults; removed C++ can be used as intializer for defaults; removed C++
for second ctors ItemInt64 and ItemUInt64 for second ctors ItemInt64 and ItemUInt64
------------------------------------------------------------------------ ------------------------------------------------------------------------
r92 | (jim) | 2006-01-14 14:03:35 -0800 (Sat, 14 Jan 2006) | 2 lines r92 | (no author) | 2006-01-14 14:03:35 -0800 (Sat, 14 Jan 2006) | 2 lines
reversed tdecore/tdeconfigskeleton change reversed tdecore/tdeconfigskeleton change
------------------------------------------------------------------------ ------------------------------------------------------------------------
r91 | (jim) | 2006-01-14 13:40:37 -0800 (Sat, 14 Jan 2006) | 2 lines r91 | (no author) | 2006-01-14 13:40:37 -0800 (Sat, 14 Jan 2006) | 2 lines
remove erroneous files remove erroneous files
------------------------------------------------------------------------ ------------------------------------------------------------------------
r90 | (jim) | 2006-01-14 13:38:39 -0800 (Sat, 14 Jan 2006) | 5 lines r90 | (no author) | 2006-01-14 13:38:39 -0800 (Sat, 14 Jan 2006) | 5 lines
Fix sio syntax errors in tdecore/tdeconfigskeleton.sip Fix sio syntax errors in tdecore/tdeconfigskeleton.sip
(TQValueList<int>() as arg default value) and (TQValueList<int>() as arg default value) and
@ -163,7 +340,7 @@ tdeio/slaveinterface.sip (%TypeHeaderCode in namespace
instead of %ModuleHeaderCode outside) instead of %ModuleHeaderCode outside)
------------------------------------------------------------------------ ------------------------------------------------------------------------
r89 | (jim) | 2006-01-14 13:25:39 -0800 (Sat, 14 Jan 2006) | 5 lines r89 | (no author) | 2006-01-14 13:25:39 -0800 (Sat, 14 Jan 2006) | 5 lines
Upgrade to sip snapshot (future sip 4.4 - sipTransferObj stuff Upgrade to sip snapshot (future sip 4.4 - sipTransferObj stuff
and eliminate most typedefs to prevent auto mapped types); add and eliminate most typedefs to prevent auto mapped types); add
@ -171,46 +348,46 @@ patch code to TDEConfigSkeleton addItem* and Item* ctors for
scalar types;minor bugfixes (sipForceConvertToTQString anachronisms) scalar types;minor bugfixes (sipForceConvertToTQString anachronisms)
------------------------------------------------------------------------ ------------------------------------------------------------------------
r88 | (jim) | 2005-12-18 11:20:55 -0800 (Sun, 18 Dec 2005) | 2 lines r88 | (no author) | 2005-12-18 11:20:55 -0800 (Sun, 18 Dec 2005) | 2 lines
Version dirSize in kdirsize.sip for older KDE Version dirSize in kdirsize.sip for older KDE
------------------------------------------------------------------------ ------------------------------------------------------------------------
r87 | (jim) | 2005-12-18 09:51:33 -0800 (Sun, 18 Dec 2005) | 4 lines r87 | (no author) | 2005-12-18 09:51:33 -0800 (Sun, 18 Dec 2005) | 4 lines
Fixed versioning bug for enum Other in tdeshortcutlist.sip; Fixed versioning bug for enum Other in tdeshortcutlist.sip;
added fully-qualified names to two 'Other' arguments in added fully-qualified names to two 'Other' arguments in
method calls method calls
------------------------------------------------------------------------ ------------------------------------------------------------------------
r86 | (jim) | 2005-12-17 14:44:01 -0800 (Sat, 17 Dec 2005) | 3 lines r86 | (no author) | 2005-12-17 14:44:01 -0800 (Sat, 17 Dec 2005) | 3 lines
Removed incorrect (later version) %Includes from Removed incorrect (later version) %Includes from
sip.in files sip.in files
------------------------------------------------------------------------ ------------------------------------------------------------------------
r85 | (jim) | 2005-12-17 14:24:58 -0800 (Sat, 17 Dec 2005) | 2 lines r85 | (no author) | 2005-12-17 14:24:58 -0800 (Sat, 17 Dec 2005) | 2 lines
Added missing @mark@ to sip.in files Added missing @mark@ to sip.in files
------------------------------------------------------------------------ ------------------------------------------------------------------------
r84 | (jim) | 2005-12-17 13:39:26 -0800 (Sat, 17 Dec 2005) | 3 lines r84 | (no author) | 2005-12-17 13:39:26 -0800 (Sat, 17 Dec 2005) | 3 lines
Removed longlong/ulonglong from kzip (now in tdecore for Removed longlong/ulonglong from kzip (now in tdecore for
older KDE versions), and versioned TQPtrList<TDEConfigDialogManager> older KDE versions), and versioned TQPtrList<TDEConfigDialogManager>
------------------------------------------------------------------------ ------------------------------------------------------------------------
r83 | (jim) | 2005-12-17 13:28:33 -0800 (Sat, 17 Dec 2005) | 2 lines r83 | (no author) | 2005-12-17 13:28:33 -0800 (Sat, 17 Dec 2005) | 2 lines
Extended longlong and ulonglong to earlier KDE versions Extended longlong and ulonglong to earlier KDE versions
------------------------------------------------------------------------ ------------------------------------------------------------------------
r82 | (jim) | 2005-10-15 17:40:13 -0700 (Sat, 15 Oct 2005) | 2 lines r82 | (no author) | 2005-10-15 17:40:13 -0700 (Sat, 15 Oct 2005) | 2 lines
Updated %Timeline for KDE 3.4.1 Updated %Timeline for KDE 3.4.1
------------------------------------------------------------------------ ------------------------------------------------------------------------
r81 | (jim) | 2005-10-15 17:38:51 -0700 (Sat, 15 Oct 2005) | 5 lines r81 | (no author) | 2005-10-15 17:38:51 -0700 (Sat, 15 Oct 2005) | 5 lines
Create ChangeLog from svn logs Create ChangeLog from svn logs
Change PyKDE version to 3.5.0 Change PyKDE version to 3.5.0
@ -218,18 +395,18 @@ Update KDE versions to 3.4.1
------------------------------------------------------------------------ ------------------------------------------------------------------------
r80 | (jim) | 2005-10-15 17:23:54 -0700 (Sat, 15 Oct 2005) | 3 lines r80 | (no author) | 2005-10-15 17:23:54 -0700 (Sat, 15 Oct 2005) | 3 lines
Modified configure.py to detect compiler and Modified configure.py to detect compiler and
set default concatenation appropriately set default concatenation appropriately
------------------------------------------------------------------------ ------------------------------------------------------------------------
r79 | (jim) | 2005-10-15 17:22:13 -0700 (Sat, 15 Oct 2005) | 2 lines r79 | (no author) | 2005-10-15 17:22:13 -0700 (Sat, 15 Oct 2005) | 2 lines
fixup fixup
------------------------------------------------------------------------ ------------------------------------------------------------------------
r78 | (jim) | 2005-10-13 11:45:39 -0700 (Thu, 13 Oct 2005) | 8 lines r78 | (no author) | 2005-10-13 11:45:39 -0700 (Thu, 13 Oct 2005) | 8 lines
Replaced sipNewCppToSelf instances with sipBuildResult Replaced sipNewCppToSelf instances with sipBuildResult
Cleaned up sip files for gcc 3.4.x/4.0.x compatibility Cleaned up sip files for gcc 3.4.x/4.0.x compatibility
@ -240,362 +417,362 @@ Updated configure.py to use pyqtconfig.py for TQt environment info
Backed out konsolepart code (undefined symbol problem) Backed out konsolepart code (undefined symbol problem)
------------------------------------------------------------------------ ------------------------------------------------------------------------
r76 | (jim) | 2005-07-27 23:27:34 -0700 (Wed, 27 Jul 2005) | 2 lines r76 | (no author) | 2005-07-27 23:27:34 -0700 (Wed, 27 Jul 2005) | 2 lines
update configure.py for konsolePart update configure.py for konsolePart
------------------------------------------------------------------------ ------------------------------------------------------------------------
r75 | (jim) | 2005-07-27 21:46:51 -0700 (Wed, 27 Jul 2005) | 2 lines r75 | (no author) | 2005-07-27 21:46:51 -0700 (Wed, 27 Jul 2005) | 2 lines
added ConvertToSubclassCode entry for konsolePart added ConvertToSubclassCode entry for konsolePart
------------------------------------------------------------------------ ------------------------------------------------------------------------
r74 | (jim) | 2005-07-26 16:58:53 -0700 (Tue, 26 Jul 2005) | 2 lines r74 | (no author) | 2005-07-26 16:58:53 -0700 (Tue, 26 Jul 2005) | 2 lines
added konsolePart class added konsolePart class
------------------------------------------------------------------------ ------------------------------------------------------------------------
r73 | (jim) | 2005-06-28 16:27:53 -0700 (Tue, 28 Jun 2005) | 2 lines r73 | (no author) | 2005-06-28 16:27:53 -0700 (Tue, 28 Jun 2005) | 2 lines
KDE 3.4.1 upgrade KDE 3.4.1 upgrade
------------------------------------------------------------------------ ------------------------------------------------------------------------
r72 | (jim) | 2005-06-28 14:58:07 -0700 (Tue, 28 Jun 2005) | 2 lines r72 | (no author) | 2005-06-28 14:58:07 -0700 (Tue, 28 Jun 2005) | 2 lines
added bool type to DCOP extensions added bool type to DCOP extensions
------------------------------------------------------------------------ ------------------------------------------------------------------------
r71 | (jim) | 2005-06-18 19:16:03 -0700 (Sat, 18 Jun 2005) | 2 lines r71 | (no author) | 2005-06-18 19:16:03 -0700 (Sat, 18 Jun 2005) | 2 lines
Added explicit link of tdeui for tdespell module Added explicit link of tdeui for tdespell module
------------------------------------------------------------------------ ------------------------------------------------------------------------
r70 | (jim) | 2005-06-18 17:59:10 -0700 (Sat, 18 Jun 2005) | 2 lines r70 | (no author) | 2005-06-18 17:59:10 -0700 (Sat, 18 Jun 2005) | 2 lines
Added private dtors to keep sip 4.2 happy Added private dtors to keep sip 4.2 happy
------------------------------------------------------------------------ ------------------------------------------------------------------------
r69 | (jim) | 2005-03-18 16:05:34 -0800 (Fri, 18 Mar 2005) | 3 lines r69 | (no author) | 2005-03-18 16:05:34 -0800 (Fri, 18 Mar 2005) | 3 lines
fixed cast in KURL::List operator + that was causing problems fixed cast in KURL::List operator + that was causing problems
for gcc 4 for gcc 4
------------------------------------------------------------------------ ------------------------------------------------------------------------
r68 | (jim) | 2005-03-16 08:50:52 -0800 (Wed, 16 Mar 2005) | 2 lines r68 | (no author) | 2005-03-16 08:50:52 -0800 (Wed, 16 Mar 2005) | 2 lines
patch for DCOP line breaks patch for DCOP line breaks
------------------------------------------------------------------------ ------------------------------------------------------------------------
r67 | (jim) | 2005-03-16 08:49:37 -0800 (Wed, 16 Mar 2005) | 2 lines r67 | (no author) | 2005-03-16 08:49:37 -0800 (Wed, 16 Mar 2005) | 2 lines
Fix typos in previous patch Fix typos in previous patch
------------------------------------------------------------------------ ------------------------------------------------------------------------
r66 | (jim) | 2005-03-15 16:07:18 -0800 (Tue, 15 Mar 2005) | 2 lines r66 | (no author) | 2005-03-15 16:07:18 -0800 (Tue, 15 Mar 2005) | 2 lines
Added ConvertToSubclassCode blocks for tdemdi, tdeutils Added ConvertToSubclassCode blocks for tdemdi, tdeutils
------------------------------------------------------------------------ ------------------------------------------------------------------------
r65 | (jim) | 2005-03-10 10:41:57 -0800 (Thu, 10 Mar 2005) | 2 lines r65 | (no author) | 2005-03-10 10:41:57 -0800 (Thu, 10 Mar 2005) | 2 lines
added kkeyserver.h to extra/kde340 added kkeyserver.h to extra/kde340
------------------------------------------------------------------------ ------------------------------------------------------------------------
r64 | (jim) | 2005-03-08 14:14:58 -0800 (Tue, 08 Mar 2005) | 3 lines r64 | (no author) | 2005-03-08 14:14:58 -0800 (Tue, 08 Mar 2005) | 3 lines
Fixed case problem in configure.py distro check; fixed default Fixed case problem in configure.py distro check; fixed default
value in KURL::cleanPath value in KURL::cleanPath
------------------------------------------------------------------------ ------------------------------------------------------------------------
r62 | (jim) | 2005-03-06 21:31:50 -0800 (Sun, 06 Mar 2005) | 2 lines r62 | (no author) | 2005-03-06 21:31:50 -0800 (Sun, 06 Mar 2005) | 2 lines
fixed emums in templates/annotated fixed emums in templates/annotated
------------------------------------------------------------------------ ------------------------------------------------------------------------
r61 | (jim) | 2005-03-06 21:30:48 -0800 (Sun, 06 Mar 2005) | 2 lines r61 | (no author) | 2005-03-06 21:30:48 -0800 (Sun, 06 Mar 2005) | 2 lines
fixed enums in examples, templates; fixed TDEIconThemeDir ref fixed enums in examples, templates; fixed TDEIconThemeDir ref
------------------------------------------------------------------------ ------------------------------------------------------------------------
r60 | (jim) | 2005-03-05 00:57:44 -0800 (Sat, 05 Mar 2005) | 2 lines r60 | (no author) | 2005-03-05 00:57:44 -0800 (Sat, 05 Mar 2005) | 2 lines
added -L option for lib path added -L option for lib path
------------------------------------------------------------------------ ------------------------------------------------------------------------
r59 | (jim) | 2005-03-05 00:47:24 -0800 (Sat, 05 Mar 2005) | 2 lines r59 | (no author) | 2005-03-05 00:47:24 -0800 (Sat, 05 Mar 2005) | 2 lines
removed kjs support removed kjs support
------------------------------------------------------------------------ ------------------------------------------------------------------------
r58 | (jim) | 2005-03-05 00:42:59 -0800 (Sat, 05 Mar 2005) | 2 lines r58 | (no author) | 2005-03-05 00:42:59 -0800 (Sat, 05 Mar 2005) | 2 lines
update extra/kde340 h files update extra/kde340 h files
------------------------------------------------------------------------ ------------------------------------------------------------------------
r57 | (jim) | 2005-03-05 00:36:09 -0800 (Sat, 05 Mar 2005) | 2 lines r57 | (no author) | 2005-03-05 00:36:09 -0800 (Sat, 05 Mar 2005) | 2 lines
update .easibox - extra/kde340 update .easibox - extra/kde340
------------------------------------------------------------------------ ------------------------------------------------------------------------
r56 | (jim) | 2005-03-05 00:34:34 -0800 (Sat, 05 Mar 2005) | 2 lines r56 | (no author) | 2005-03-05 00:34:34 -0800 (Sat, 05 Mar 2005) | 2 lines
added extra/kde340 added extra/kde340
------------------------------------------------------------------------ ------------------------------------------------------------------------
r55 | (jim) | 2005-03-04 23:58:35 -0800 (Fri, 04 Mar 2005) | 2 lines r55 | (no author) | 2005-03-04 23:58:35 -0800 (Fri, 04 Mar 2005) | 2 lines
tdemdimod.sip.in one more time tdemdimod.sip.in one more time
------------------------------------------------------------------------ ------------------------------------------------------------------------
r54 | (jim) | 2005-03-04 23:53:37 -0800 (Fri, 04 Mar 2005) | 2 lines r54 | (no author) | 2005-03-04 23:53:37 -0800 (Fri, 04 Mar 2005) | 2 lines
tdemdimod.sip.in again tdemdimod.sip.in again
------------------------------------------------------------------------ ------------------------------------------------------------------------
r53 | (jim) | 2005-03-04 23:37:43 -0800 (Fri, 04 Mar 2005) | 2 lines r53 | (no author) | 2005-03-04 23:37:43 -0800 (Fri, 04 Mar 2005) | 2 lines
fixed tdemdimod.sip.in and tdeutils.sip.in fixed tdemdimod.sip.in and tdeutils.sip.in
------------------------------------------------------------------------ ------------------------------------------------------------------------
r52 | (jim) | 2005-03-04 23:08:29 -0800 (Fri, 04 Mar 2005) | 2 lines r52 | (no author) | 2005-03-04 23:08:29 -0800 (Fri, 04 Mar 2005) | 2 lines
correct qt path in tdeutils.sip.in correct qt path in tdeutils.sip.in
------------------------------------------------------------------------ ------------------------------------------------------------------------
r51 | (jim) | 2005-03-04 23:04:54 -0800 (Fri, 04 Mar 2005) | 2 lines r51 | (no author) | 2005-03-04 23:04:54 -0800 (Fri, 04 Mar 2005) | 2 lines
%Include bytearray.sip missing from tdecore.sip.in %Include bytearray.sip missing from tdecore.sip.in
------------------------------------------------------------------------ ------------------------------------------------------------------------
r50 | (jim) | 2005-03-04 22:59:10 -0800 (Fri, 04 Mar 2005) | 2 lines r50 | (no author) | 2005-03-04 22:59:10 -0800 (Fri, 04 Mar 2005) | 2 lines
fixed missing %Feature in dcopmod.sip.in fixed missing %Feature in dcopmod.sip.in
------------------------------------------------------------------------ ------------------------------------------------------------------------
r49 | (jim) | 2005-03-04 22:55:43 -0800 (Fri, 04 Mar 2005) | 2 lines r49 | (no author) | 2005-03-04 22:55:43 -0800 (Fri, 04 Mar 2005) | 2 lines
fixed paths in sip.in files fixed paths in sip.in files
------------------------------------------------------------------------ ------------------------------------------------------------------------
r48 | (jim) | 2005-03-04 22:49:00 -0800 (Fri, 04 Mar 2005) | 2 lines r48 | (no author) | 2005-03-04 22:49:00 -0800 (Fri, 04 Mar 2005) | 2 lines
doc updates for PyKDE 4.0 doc updates for PyKDE 4.0
------------------------------------------------------------------------ ------------------------------------------------------------------------
r47 | (jim) | 2005-03-04 22:28:30 -0800 (Fri, 04 Mar 2005) | 2 lines r47 | (no author) | 2005-03-04 22:28:30 -0800 (Fri, 04 Mar 2005) | 2 lines
PyKDE 4.0 docs PyKDE 4.0 docs
------------------------------------------------------------------------ ------------------------------------------------------------------------
r46 | (jim) | 2005-03-04 22:02:00 -0800 (Fri, 04 Mar 2005) | 2 lines r46 | (no author) | 2005-03-04 22:02:00 -0800 (Fri, 04 Mar 2005) | 2 lines
new configure.py for PyKDE 4.0 new configure.py for PyKDE 4.0
------------------------------------------------------------------------ ------------------------------------------------------------------------
r45 | (jim) | 2005-03-04 22:00:42 -0800 (Fri, 04 Mar 2005) | 2 lines r45 | (no author) | 2005-03-04 22:00:42 -0800 (Fri, 04 Mar 2005) | 2 lines
PyKDE 4.0 PyKDE 4.0
------------------------------------------------------------------------ ------------------------------------------------------------------------
r42 | (jim) | 2005-03-01 16:20:01 -0800 (Tue, 01 Mar 2005) | 2 lines r42 | (no author) | 2005-03-01 16:20:01 -0800 (Tue, 01 Mar 2005) | 2 lines
Fixed TDEActionCollection for Mandrake Fixed TDEActionCollection for Mandrake
------------------------------------------------------------------------ ------------------------------------------------------------------------
r41 | (jim) | 2005-03-01 14:55:49 -0800 (Tue, 01 Mar 2005) | 2 lines r41 | (no author) | 2005-03-01 14:55:49 -0800 (Tue, 01 Mar 2005) | 2 lines
Fixed pid_t typing problems (TQValueList) Fixed pid_t typing problems (TQValueList)
------------------------------------------------------------------------ ------------------------------------------------------------------------
r40 | (jim) | 2005-03-01 13:34:04 -0800 (Tue, 01 Mar 2005) | 2 lines r40 | (no author) | 2005-03-01 13:34:04 -0800 (Tue, 01 Mar 2005) | 2 lines
Changed pid_t type from int to long; enabled KParts::URLArgs::metaData () Changed pid_t type from int to long; enabled KParts::URLArgs::metaData ()
------------------------------------------------------------------------ ------------------------------------------------------------------------
r39 | (jim) | 2005-02-28 23:49:09 -0800 (Mon, 28 Feb 2005) | 4 lines r39 | (no author) | 2005-02-28 23:49:09 -0800 (Mon, 28 Feb 2005) | 4 lines
KFileMetaInfo typedefs removed; TDEProcessController versioning KFileMetaInfo typedefs removed; TDEProcessController versioning
corrected; TDERecentDirs (and extra/ hfiles) added; pytde332.prj corrected; TDERecentDirs (and extra/ hfiles) added; pytde332.prj
added added
------------------------------------------------------------------------ ------------------------------------------------------------------------
r38 | (jim) | 2005-02-28 22:34:42 -0800 (Mon, 28 Feb 2005) | 2 lines r38 | (no author) | 2005-02-28 22:34:42 -0800 (Mon, 28 Feb 2005) | 2 lines
added TDEHTMLPart to %ConvertToSubclassCode; install kdepyuic added TDEHTMLPart to %ConvertToSubclassCode; install kdepyuic
------------------------------------------------------------------------ ------------------------------------------------------------------------
r37 | (jim) | 2005-02-03 00:07:38 -0800 (Thu, 03 Feb 2005) | 2 lines r37 | (no author) | 2005-02-03 00:07:38 -0800 (Thu, 03 Feb 2005) | 2 lines
Added KURL import to dcopext.py Added KURL import to dcopext.py
------------------------------------------------------------------------ ------------------------------------------------------------------------
r36 | (jim) | 2005-01-04 11:38:01 -0800 (Tue, 04 Jan 2005) | 2 lines r36 | (no author) | 2005-01-04 11:38:01 -0800 (Tue, 04 Jan 2005) | 2 lines
Add extra subdir Add extra subdir
------------------------------------------------------------------------ ------------------------------------------------------------------------
r35 | (jim) | 2005-01-03 21:38:17 -0800 (Mon, 03 Jan 2005) | 2 lines r35 | (no author) | 2005-01-03 21:38:17 -0800 (Mon, 03 Jan 2005) | 2 lines
KDE 3.3.2 and sip 4.2 updates KDE 3.3.2 and sip 4.2 updates
------------------------------------------------------------------------ ------------------------------------------------------------------------
r33 | (jim) | 2004-11-28 13:58:07 -0800 (Sun, 28 Nov 2004) | 2 lines r33 | (no author) | 2004-11-28 13:58:07 -0800 (Sun, 28 Nov 2004) | 2 lines
Modified tdemdidefines.sip for sip 4.2 enumerator name problem Modified tdemdidefines.sip for sip 4.2 enumerator name problem
------------------------------------------------------------------------ ------------------------------------------------------------------------
r32 | (jim) | 2004-11-28 13:56:19 -0800 (Sun, 28 Nov 2004) | 2 lines r32 | (no author) | 2004-11-28 13:56:19 -0800 (Sun, 28 Nov 2004) | 2 lines
Removed pytdeconfig.py from source control Removed pytdeconfig.py from source control
------------------------------------------------------------------------ ------------------------------------------------------------------------
r31 | (jim) | 2004-11-27 23:29:03 -0800 (Sat, 27 Nov 2004) | 2 lines r31 | (no author) | 2004-11-27 23:29:03 -0800 (Sat, 27 Nov 2004) | 2 lines
docs docs
------------------------------------------------------------------------ ------------------------------------------------------------------------
r30 | (jim) | 2004-11-27 23:07:07 -0800 (Sat, 27 Nov 2004) | 2 lines r30 | (no author) | 2004-11-27 23:07:07 -0800 (Sat, 27 Nov 2004) | 2 lines
docs docs
------------------------------------------------------------------------ ------------------------------------------------------------------------
r29 | (jim) | 2004-11-27 22:17:49 -0800 (Sat, 27 Nov 2004) | 2 lines r29 | (no author) | 2004-11-27 22:17:49 -0800 (Sat, 27 Nov 2004) | 2 lines
Missing comma Missing comma
------------------------------------------------------------------------ ------------------------------------------------------------------------
r28 | (jim) | 2004-11-27 22:16:34 -0800 (Sat, 27 Nov 2004) | 2 lines r28 | (no author) | 2004-11-27 22:16:34 -0800 (Sat, 27 Nov 2004) | 2 lines
PyKDE for KDE 3.3.1 PyKDE for KDE 3.3.1
------------------------------------------------------------------------ ------------------------------------------------------------------------
r27 | (jim) | 2004-11-27 21:16:55 -0800 (Sat, 27 Nov 2004) | 2 lines r27 | (no author) | 2004-11-27 21:16:55 -0800 (Sat, 27 Nov 2004) | 2 lines
Revise project files Revise project files
------------------------------------------------------------------------ ------------------------------------------------------------------------
r26 | (jim) | 2004-11-27 17:47:35 -0800 (Sat, 27 Nov 2004) | 2 lines r26 | (no author) | 2004-11-27 17:47:35 -0800 (Sat, 27 Nov 2004) | 2 lines
Updating to KDE 3.3.1 Updating to KDE 3.3.1
------------------------------------------------------------------------ ------------------------------------------------------------------------
r25 | (jim) | 2004-08-25 16:43:40 -0700 (Wed, 25 Aug 2004) | 2 lines r25 | (no author) | 2004-08-25 16:43:40 -0700 (Wed, 25 Aug 2004) | 2 lines
Updated change log Updated change log
------------------------------------------------------------------------ ------------------------------------------------------------------------
r24 | (jim) | 2004-08-25 16:41:33 -0700 (Wed, 25 Aug 2004) | 2 lines r24 | (no author) | 2004-08-25 16:41:33 -0700 (Wed, 25 Aug 2004) | 2 lines
Updated numbering to 3.11.3 Updated numbering to 3.11.3
------------------------------------------------------------------------ ------------------------------------------------------------------------
r23 | (jim) | 2004-08-25 15:34:33 -0700 (Wed, 25 Aug 2004) | 2 lines r23 | (no author) | 2004-08-25 15:34:33 -0700 (Wed, 25 Aug 2004) | 2 lines
Added post proc for WId in twinmodule signals Added post proc for WId in twinmodule signals
------------------------------------------------------------------------ ------------------------------------------------------------------------
r22 | (jim) | 2004-08-21 16:50:33 -0700 (Sat, 21 Aug 2004) | 2 lines r22 | (no author) | 2004-08-21 16:50:33 -0700 (Sat, 21 Aug 2004) | 2 lines
same tdehtml_part patch as the previous rev ??? same tdehtml_part patch as the previous rev ???
------------------------------------------------------------------------ ------------------------------------------------------------------------
r21 | (jim) | 2004-08-21 16:42:06 -0700 (Sat, 21 Aug 2004) | 2 lines r21 | (no author) | 2004-08-21 16:42:06 -0700 (Sat, 21 Aug 2004) | 2 lines
tdehtml_part: fixed enum values for sip3.10.2 with KDE 3.3.0 tdehtml_part: fixed enum values for sip3.10.2 with KDE 3.3.0
------------------------------------------------------------------------ ------------------------------------------------------------------------
r20 | (jim) | 2004-08-21 01:10:05 -0700 (Sat, 21 Aug 2004) | 2 lines r20 | (no author) | 2004-08-21 01:10:05 -0700 (Sat, 21 Aug 2004) | 2 lines
Update version numbers in docs Update version numbers in docs
------------------------------------------------------------------------ ------------------------------------------------------------------------
r19 | (jim) | 2004-08-21 01:03:27 -0700 (Sat, 21 Aug 2004) | 2 lines r19 | (no author) | 2004-08-21 01:03:27 -0700 (Sat, 21 Aug 2004) | 2 lines
docs for final release docs for final release
------------------------------------------------------------------------ ------------------------------------------------------------------------
r18 | (jim) | 2004-08-20 18:50:22 -0700 (Fri, 20 Aug 2004) | 2 lines r18 | (no author) | 2004-08-20 18:50:22 -0700 (Fri, 20 Aug 2004) | 2 lines
Fixed access specifier for copy ctor on TDEProcessController Fixed access specifier for copy ctor on TDEProcessController
------------------------------------------------------------------------ ------------------------------------------------------------------------
r17 | (jim) | 2004-08-20 10:00:27 -0700 (Fri, 20 Aug 2004) | 2 lines r17 | (no author) | 2004-08-20 10:00:27 -0700 (Fri, 20 Aug 2004) | 2 lines
Updated to KDE 3.3.0 final Updated to KDE 3.3.0 final
------------------------------------------------------------------------ ------------------------------------------------------------------------
r16 | (jim) | 2004-08-20 09:59:28 -0700 (Fri, 20 Aug 2004) | 2 lines r16 | (no author) | 2004-08-20 09:59:28 -0700 (Fri, 20 Aug 2004) | 2 lines
Removed tdehtml_part.sip (different versions for different KDE versions) Removed tdehtml_part.sip (different versions for different KDE versions)
------------------------------------------------------------------------ ------------------------------------------------------------------------
r15 | (jim) | 2004-08-19 23:52:31 -0700 (Thu, 19 Aug 2004) | 2 lines r15 | (no author) | 2004-08-19 23:52:31 -0700 (Thu, 19 Aug 2004) | 2 lines
Added svnmerge, svnmergedocs Added svnmerge, svnmergedocs
------------------------------------------------------------------------ ------------------------------------------------------------------------
r14 | (jim) | 2004-08-16 19:42:57 -0700 (Mon, 16 Aug 2004) | 2 lines r14 | (no author) | 2004-08-16 19:42:57 -0700 (Mon, 16 Aug 2004) | 2 lines
change spaces to tabs in postproc/appQuit change spaces to tabs in postproc/appQuit
------------------------------------------------------------------------ ------------------------------------------------------------------------
r13 | (jim) | 2004-08-16 19:41:25 -0700 (Mon, 16 Aug 2004) | 2 lines r13 | (no author) | 2004-08-16 19:41:25 -0700 (Mon, 16 Aug 2004) | 2 lines
Save doc tool mods Save doc tool mods
------------------------------------------------------------------------ ------------------------------------------------------------------------
r12 | (jim) | 2004-08-16 17:44:37 -0700 (Mon, 16 Aug 2004) | 2 lines r12 | (no author) | 2004-08-16 17:44:37 -0700 (Mon, 16 Aug 2004) | 2 lines
Updated docs Updated docs
------------------------------------------------------------------------ ------------------------------------------------------------------------
r11 | (jim) | 2004-08-16 17:23:33 -0700 (Mon, 16 Aug 2004) | 2 lines r11 | (no author) | 2004-08-16 17:23:33 -0700 (Mon, 16 Aug 2004) | 2 lines
Patched qvariant.h problem in tdecore Patched qvariant.h problem in tdecore
------------------------------------------------------------------------ ------------------------------------------------------------------------
r10 | (jim) | 2004-08-16 16:40:43 -0700 (Mon, 16 Aug 2004) | 2 lines r10 | (no author) | 2004-08-16 16:40:43 -0700 (Mon, 16 Aug 2004) | 2 lines
Corrected kuniqueapplication Corrected kuniqueapplication
------------------------------------------------------------------------ ------------------------------------------------------------------------
r9 | (jim) | 2004-08-16 14:43:51 -0700 (Mon, 16 Aug 2004) | 2 lines r9 | (no author) | 2004-08-16 14:43:51 -0700 (Mon, 16 Aug 2004) | 2 lines
Fixed h file problems for KDE3.0.x; fixed LONG_LONG for KDE3.0.x with Python 2.3 Fixed h file problems for KDE3.0.x; fixed LONG_LONG for KDE3.0.x with Python 2.3
------------------------------------------------------------------------ ------------------------------------------------------------------------
r8 | (jim) | 2004-08-15 21:49:27 -0700 (Sun, 15 Aug 2004) | 2 lines r8 | (no author) | 2004-08-15 21:49:27 -0700 (Sun, 15 Aug 2004) | 2 lines
version before access hides access for KDE < 3.2 in kprocctrl.sip version before access hides access for KDE < 3.2 in kprocctrl.sip
------------------------------------------------------------------------ ------------------------------------------------------------------------
r7 | (jim) | 2004-08-15 12:21:23 -0700 (Sun, 15 Aug 2004) | 2 lines r7 | (no author) | 2004-08-15 12:21:23 -0700 (Sun, 15 Aug 2004) | 2 lines
Corrected error - configure.py spippath defined in wrong place Corrected error - configure.py spippath defined in wrong place
------------------------------------------------------------------------ ------------------------------------------------------------------------
r6 | (jim) | 2004-08-15 12:19:37 -0700 (Sun, 15 Aug 2004) | 2 lines r6 | (no author) | 2004-08-15 12:19:37 -0700 (Sun, 15 Aug 2004) | 2 lines
Added tdehtml_part.sip versions Added tdehtml_part.sip versions
------------------------------------------------------------------------ ------------------------------------------------------------------------
r5 | (jim) | 2004-08-15 12:14:27 -0700 (Sun, 15 Aug 2004) | 3 lines r5 | (no author) | 2004-08-15 12:14:27 -0700 (Sun, 15 Aug 2004) | 3 lines
Changes to configure.py for tdehtml/tdeutils when KDE < 3.3.0 and Changes to configure.py for tdehtml/tdeutils when KDE < 3.3.0 and
tdeutils isn't needed/supported tdeutils isn't needed/supported
------------------------------------------------------------------------ ------------------------------------------------------------------------
r4 | (jim) | 2004-08-15 12:04:57 -0700 (Sun, 15 Aug 2004) | 2 lines r4 | (no author) | 2004-08-15 12:04:57 -0700 (Sun, 15 Aug 2004) | 2 lines
Patches for building with -i option (no concatenation) Patches for building with -i option (no concatenation)
------------------------------------------------------------------------ ------------------------------------------------------------------------
r3 | (jim) | 2004-08-15 09:13:47 -0700 (Sun, 15 Aug 2004) | 2 lines r3 | (no author) | 2004-08-15 09:13:47 -0700 (Sun, 15 Aug 2004) | 2 lines
Ready for KDE 3.3.0beta2 Ready for KDE 3.3.0beta2
------------------------------------------------------------------------ ------------------------------------------------------------------------
r2 | (jim) | 2004-08-13 22:35:48 -0700 (Fri, 13 Aug 2004) | 2 lines r2 | (no author) | 2004-08-13 22:35:48 -0700 (Fri, 13 Aug 2004) | 2 lines
Initial import Initial import

@ -1,779 +0,0 @@
------------------------------------------------------------------------
r160 | (no author) | 2006-09-22 00:23:44 -0700 (Fri, 22 Sep 2006) | 2 lines
tdeio/tdefileshare changed in error - reverted
------------------------------------------------------------------------
r159 | (no author) | 2006-09-22 00:22:47 -0700 (Fri, 22 Sep 2006) | 3 lines
Bumped min versions: sip >= 4.4.0, PyTQt >= 3.16.0,
TQt >= 3.2.0
------------------------------------------------------------------------
r158 | (no author) | 2006-09-22 00:16:56 -0700 (Fri, 22 Sep 2006) | 3 lines
version error KMimeType::List; changed -x to -t for
%Platforms in configure.py, added "ALL" generic platform
------------------------------------------------------------------------
r157 | (no author) | 2006-09-21 23:19:39 -0700 (Thu, 21 Sep 2006) | 3 lines
configure.py searches for lib64; non-functional PyKDE
version methods deleted (and in docs)
------------------------------------------------------------------------
r156 | (no author) | 2006-09-21 17:56:59 -0700 (Thu, 21 Sep 2006) | 2 lines
update sip.in and diff files for tdeparts.konsole_part
------------------------------------------------------------------------
r155 | (no author) | 2006-09-21 17:54:25 -0700 (Thu, 21 Sep 2006) | 2 lines
set konsolepart for KDE3.5.0 or greater only
------------------------------------------------------------------------
r154 | (no author) | 2006-09-21 14:12:29 -0700 (Thu, 21 Sep 2006) | 2 lines
remove pyc files from svn
------------------------------------------------------------------------
r153 | (no author) | 2006-09-21 14:11:58 -0700 (Thu, 21 Sep 2006) | 2 lines
konsole_part stuff
------------------------------------------------------------------------
r152 | (no author) | 2006-09-21 10:13:58 -0700 (Thu, 21 Sep 2006) | 3 lines
added konsole_part.h to versions missing it; added
extra/kde353 to base fileset
------------------------------------------------------------------------
r150 | (no author) | 2006-09-21 08:38:43 -0700 (Thu, 21 Sep 2006) | 3 lines
More cleanup for 3.16 release; added konsole_part again;
miscellaneous small bug fixes
------------------------------------------------------------------------
r149 | (no author) | 2006-09-19 16:26:43 -0700 (Tue, 19 Sep 2006) | 2 lines
Upgrade to KDE 3.5.3
------------------------------------------------------------------------
r148 | (no author) | 2006-09-19 16:24:33 -0700 (Tue, 19 Sep 2006) | 3 lines
Cleaned up files for presip; minor fixes for 9/17 sip snapshot
Clean fileset - presip will build clean 3.5.3 from this set
------------------------------------------------------------------------
r145 | (no author) | 2006-05-26 21:49:46 -0700 (Fri, 26 May 2006) | 2 lines
Deleted commented out TQList code
------------------------------------------------------------------------
r144 | (no author) | 2006-05-26 20:39:51 -0700 (Fri, 26 May 2006) | 2 lines
Eliminate obsolete TQList/qlist.h references
------------------------------------------------------------------------
r143 | (no author) | 2006-05-25 01:54:27 -0700 (Thu, 25 May 2006) | 2 lines
fix for KDE 3.1.x
------------------------------------------------------------------------
r142 | (no author) | 2006-05-22 19:26:54 -0700 (Mon, 22 May 2006) | 3 lines
fixes for KDE < 3.2.0 in configure.py, tdeabc .diff files
and knotifydialog
------------------------------------------------------------------------
r141 | (no author) | 2006-05-22 00:38:44 -0700 (Mon, 22 May 2006) | 2 lines
remove top-level (*mod.sip) files
------------------------------------------------------------------------
r140 | (no author) | 2006-05-21 20:27:45 -0700 (Sun, 21 May 2006) | 2 lines
added extra/kde352
------------------------------------------------------------------------
r139 | (no author) | 2006-05-21 20:06:53 -0700 (Sun, 21 May 2006) | 2 lines
KDE 3.3.0 touchup
------------------------------------------------------------------------
r138 | (no author) | 2006-05-21 18:24:47 -0700 (Sun, 21 May 2006) | 2 lines
clean up .sip.in files
------------------------------------------------------------------------
r137 | (no author) | 2006-05-21 15:46:13 -0700 (Sun, 21 May 2006) | 2 lines
modifications for KDE 3.3.0 compatibility
------------------------------------------------------------------------
r136 | (no author) | 2006-05-21 04:59:30 -0700 (Sun, 21 May 2006) | 2 lines
KDE 3.5.2
------------------------------------------------------------------------
r135 | (no author) | 2006-05-20 15:27:11 -0700 (Sat, 20 May 2006) | 2 lines
added 352 project file
------------------------------------------------------------------------
r133 | (no author) | 2006-05-19 00:53:46 -0700 (Fri, 19 May 2006) | 2 lines
KDE 3.5.1
------------------------------------------------------------------------
r132 | (no author) | 2006-01-27 13:00:18 -0800 (Fri, 27 Jan 2006) | 2 lines
added missing method tdeabc/resourcefile.sip
------------------------------------------------------------------------
r131 | (no author) | 2006-01-26 19:27:45 -0800 (Thu, 26 Jan 2006) | 2 lines
fully-qualified names in tdeabc/resourcefile.sip
------------------------------------------------------------------------
r130 | (no author) | 2006-01-26 16:53:44 -0800 (Thu, 26 Jan 2006) | 3 lines
Put tdeabc/resourcefile.sip back into tdeabc for later
versions (missing in tdelibs tarball, but in trinity/include/tdeabc)
------------------------------------------------------------------------
r129 | (no author) | 2006-01-26 16:50:00 -0800 (Thu, 26 Jan 2006) | 3 lines
Removed *mod.sip files from version control (user
generated)
------------------------------------------------------------------------
r128 | (no author) | 2006-01-26 16:46:27 -0800 (Thu, 26 Jan 2006) | 2 lines
Updated tdeabc/resourcefile.sip - versioning
------------------------------------------------------------------------
r127 | (no author) | 2006-01-23 00:19:15 -0800 (Mon, 23 Jan 2006) | 2 lines
typo in configure.py
------------------------------------------------------------------------
r126 | (no author) | 2006-01-22 23:08:28 -0800 (Sun, 22 Jan 2006) | 4 lines
changed configure.py to concatenate by default for
gcc >= 4.0.3; deleted unneeded mapped type from
tdeio/global.sip
------------------------------------------------------------------------
r125 | (no author) | 2006-01-22 21:45:55 -0800 (Sun, 22 Jan 2006) | 8 lines
modify configure.py to drop tderesources for KDE < 3.2;
version Resource class in tdeabc/resource.sip; version
64 bit read/write stuff in tdecore/tdeconfigbase.sip;
version copy ctor in tdecore/kprocctrl.sip; version
out longlong/ulonglong mapped types in tdeio/global.sip;
version one method in tdeio/tdesycoca.sip; fix line with
illegal char (?) in extensions/dcopexport.py
------------------------------------------------------------------------
r124 | (no author) | 2006-01-21 11:33:36 -0800 (Sat, 21 Jan 2006) | 2 lines
removed kkeyserver.sip references from all .diff files
------------------------------------------------------------------------
r123 | (no author) | 2006-01-21 11:31:03 -0800 (Sat, 21 Jan 2006) | 2 lines
updated docs
------------------------------------------------------------------------
r122 | (no author) | 2006-01-21 10:46:51 -0800 (Sat, 21 Jan 2006) | 2 lines
fixed TOC links in classref doc files
------------------------------------------------------------------------
r121 | (no author) | 2006-01-21 01:20:30 -0800 (Sat, 21 Jan 2006) | 2 lines
Initial doc update
------------------------------------------------------------------------
r120 | (no author) | 2006-01-20 17:37:06 -0800 (Fri, 20 Jan 2006) | 3 lines
fixed TQValueList<TDEConfigSkeleton::ItemEnum::Choice> code
and fixed dcopexport.py handling of void return types
------------------------------------------------------------------------
r119 | (no author) | 2006-01-20 12:14:10 -0800 (Fri, 20 Jan 2006) | 2 lines
added X11 include
------------------------------------------------------------------------
r118 | (no author) | 2006-01-18 23:27:15 -0800 (Wed, 18 Jan 2006) | 2 lines
backed out ambiguous/inaccessible methods in TDEConfigSkeleton
------------------------------------------------------------------------
r117 | (no author) | 2006-01-18 23:00:34 -0800 (Wed, 18 Jan 2006) | 3 lines
correct versioning error on addItem* methods in
TDEConfigSkeleton
------------------------------------------------------------------------
r116 | (no author) | 2006-01-18 22:08:35 -0800 (Wed, 18 Jan 2006) | 3 lines
fixes for backward compatibility with older KDE, gcc,
sip
------------------------------------------------------------------------
r115 | (no author) | 2006-01-18 21:12:02 -0800 (Wed, 18 Jan 2006) | 2 lines
PyKDE for KDE 3.5.0 complete
------------------------------------------------------------------------
r114 | (no author) | 2006-01-17 01:51:20 -0800 (Tue, 17 Jan 2006) | 2 lines
all modules working for KDE 3.4.3 - minor fixes
------------------------------------------------------------------------
r113 | (no author) | 2006-01-16 22:13:25 -0800 (Mon, 16 Jan 2006) | 2 lines
tdeabc, tderesources touchup
------------------------------------------------------------------------
r112 | (no author) | 2006-01-16 21:57:28 -0800 (Mon, 16 Jan 2006) | 2 lines
update extra/ for KDE 3.5.0
------------------------------------------------------------------------
r111 | (no author) | 2006-01-16 21:56:14 -0800 (Mon, 16 Jan 2006) | 2 lines
minor fix
------------------------------------------------------------------------
r109 | (no author) | 2006-01-16 20:35:03 -0800 (Mon, 16 Jan 2006) | 2 lines
yet more debugging tdeabc, tderesources
------------------------------------------------------------------------
r108 | (no author) | 2006-01-16 20:22:55 -0800 (Mon, 16 Jan 2006) | 2 lines
more debugging tdeabc, tderesources
------------------------------------------------------------------------
r107 | (no author) | 2006-01-16 20:15:50 -0800 (Mon, 16 Jan 2006) | 2 lines
more tdeabc, kresource debugging
------------------------------------------------------------------------
r106 | (no author) | 2006-01-16 20:12:37 -0800 (Mon, 16 Jan 2006) | 2 lines
tdeabc, kresource debugging
------------------------------------------------------------------------
r105 | (no author) | 2006-01-16 20:08:37 -0800 (Mon, 16 Jan 2006) | 2 lines
tdeabc, tderesources through KDE 3.4.3
------------------------------------------------------------------------
r104 | (no author) | 2006-01-16 18:33:10 -0800 (Mon, 16 Jan 2006) | 2 lines
removed erroneous tderesources .diff file
------------------------------------------------------------------------
r103 | (no author) | 2006-01-16 18:24:05 -0800 (Mon, 16 Jan 2006) | 3 lines
more tdeabc and tderesources debugging - compiles
through KDE 330
------------------------------------------------------------------------
r102 | (no author) | 2006-01-16 00:47:43 -0800 (Mon, 16 Jan 2006) | 2 lines
debug configure.py, tdeabc, tderesources
------------------------------------------------------------------------
r101 | (no author) | 2006-01-15 22:27:45 -0800 (Sun, 15 Jan 2006) | 2 lines
fixed typo in configure.py
------------------------------------------------------------------------
r100 | (no author) | 2006-01-15 22:22:50 -0800 (Sun, 15 Jan 2006) | 2 lines
added tdeabc and tderesources through KDE 3.3.0
------------------------------------------------------------------------
r97 | (no author) | 2006-01-15 15:04:44 -0800 (Sun, 15 Jan 2006) | 2 lines
upgrade to KDE 3.4.3
------------------------------------------------------------------------
r95 | (no author) | 2006-01-15 10:47:15 -0800 (Sun, 15 Jan 2006) | 2 lines
added 'extra' files
------------------------------------------------------------------------
r94 | (no author) | 2006-01-15 10:26:53 -0800 (Sun, 15 Jan 2006) | 2 lines
Update to KDE 3.4.2
------------------------------------------------------------------------
r93 | (no author) | 2006-01-14 14:12:52 -0800 (Sat, 14 Jan 2006) | 4 lines
typedef'd IntList from TQValueList<int> so IntList()
can be used as intializer for defaults; removed C++
for second ctors ItemInt64 and ItemUInt64
------------------------------------------------------------------------
r92 | (no author) | 2006-01-14 14:03:35 -0800 (Sat, 14 Jan 2006) | 2 lines
reversed tdecore/tdeconfigskeleton change
------------------------------------------------------------------------
r91 | (no author) | 2006-01-14 13:40:37 -0800 (Sat, 14 Jan 2006) | 2 lines
remove erroneous files
------------------------------------------------------------------------
r90 | (no author) | 2006-01-14 13:38:39 -0800 (Sat, 14 Jan 2006) | 5 lines
Fix sio syntax errors in tdecore/tdeconfigskeleton.sip
(TQValueList<int>() as arg default value) and
tdeio/slaveinterface.sip (%TypeHeaderCode in namespace
instead of %ModuleHeaderCode outside)
------------------------------------------------------------------------
r89 | (no author) | 2006-01-14 13:25:39 -0800 (Sat, 14 Jan 2006) | 5 lines
Upgrade to sip snapshot (future sip 4.4 - sipTransferObj stuff
and eliminate most typedefs to prevent auto mapped types); add
patch code to TDEConfigSkeleton addItem* and Item* ctors for
scalar types;minor bugfixes (sipForceConvertToTQString anachronisms)
------------------------------------------------------------------------
r88 | (no author) | 2005-12-18 11:20:55 -0800 (Sun, 18 Dec 2005) | 2 lines
Version dirSize in kdirsize.sip for older KDE
------------------------------------------------------------------------
r87 | (no author) | 2005-12-18 09:51:33 -0800 (Sun, 18 Dec 2005) | 4 lines
Fixed versioning bug for enum Other in tdeshortcutlist.sip;
added fully-qualified names to two 'Other' arguments in
method calls
------------------------------------------------------------------------
r86 | (no author) | 2005-12-17 14:44:01 -0800 (Sat, 17 Dec 2005) | 3 lines
Removed incorrect (later version) %Includes from
sip.in files
------------------------------------------------------------------------
r85 | (no author) | 2005-12-17 14:24:58 -0800 (Sat, 17 Dec 2005) | 2 lines
Added missing @mark@ to sip.in files
------------------------------------------------------------------------
r84 | (no author) | 2005-12-17 13:39:26 -0800 (Sat, 17 Dec 2005) | 3 lines
Removed longlong/ulonglong from kzip (now in tdecore for
older KDE versions), and versioned TQPtrList<TDEConfigDialogManager>
------------------------------------------------------------------------
r83 | (no author) | 2005-12-17 13:28:33 -0800 (Sat, 17 Dec 2005) | 2 lines
Extended longlong and ulonglong to earlier KDE versions
------------------------------------------------------------------------
r82 | (no author) | 2005-10-15 17:40:13 -0700 (Sat, 15 Oct 2005) | 2 lines
Updated %Timeline for KDE 3.4.1
------------------------------------------------------------------------
r81 | (no author) | 2005-10-15 17:38:51 -0700 (Sat, 15 Oct 2005) | 5 lines
Create ChangeLog from svn logs
Change PyKDE version to 3.5.0
Update KDE versions to 3.4.1
------------------------------------------------------------------------
r80 | (no author) | 2005-10-15 17:23:54 -0700 (Sat, 15 Oct 2005) | 3 lines
Modified configure.py to detect compiler and
set default concatenation appropriately
------------------------------------------------------------------------
r79 | (no author) | 2005-10-15 17:22:13 -0700 (Sat, 15 Oct 2005) | 2 lines
fixup
------------------------------------------------------------------------
r78 | (no author) | 2005-10-13 11:45:39 -0700 (Thu, 13 Oct 2005) | 8 lines
Replaced sipNewCppToSelf instances with sipBuildResult
Cleaned up sip files for gcc 3.4.x/4.0.x compatibility
Dropped tdesu (undefined symbol problem)
Added -fno-rtti to tdeprint compile
Dropped driver.sip from tdeprint
Updated configure.py to use pyqtconfig.py for TQt environment info
Backed out konsolepart code (undefined symbol problem)
------------------------------------------------------------------------
r76 | (no author) | 2005-07-27 23:27:34 -0700 (Wed, 27 Jul 2005) | 2 lines
update configure.py for konsolePart
------------------------------------------------------------------------
r75 | (no author) | 2005-07-27 21:46:51 -0700 (Wed, 27 Jul 2005) | 2 lines
added ConvertToSubclassCode entry for konsolePart
------------------------------------------------------------------------
r74 | (no author) | 2005-07-26 16:58:53 -0700 (Tue, 26 Jul 2005) | 2 lines
added konsolePart class
------------------------------------------------------------------------
r73 | (no author) | 2005-06-28 16:27:53 -0700 (Tue, 28 Jun 2005) | 2 lines
KDE 3.4.1 upgrade
------------------------------------------------------------------------
r72 | (no author) | 2005-06-28 14:58:07 -0700 (Tue, 28 Jun 2005) | 2 lines
added bool type to DCOP extensions
------------------------------------------------------------------------
r71 | (no author) | 2005-06-18 19:16:03 -0700 (Sat, 18 Jun 2005) | 2 lines
Added explicit link of tdeui for tdespell module
------------------------------------------------------------------------
r70 | (no author) | 2005-06-18 17:59:10 -0700 (Sat, 18 Jun 2005) | 2 lines
Added private dtors to keep sip 4.2 happy
------------------------------------------------------------------------
r69 | (no author) | 2005-03-18 16:05:34 -0800 (Fri, 18 Mar 2005) | 3 lines
fixed cast in KURL::List operator + that was causing problems
for gcc 4
------------------------------------------------------------------------
r68 | (no author) | 2005-03-16 08:50:52 -0800 (Wed, 16 Mar 2005) | 2 lines
patch for DCOP line breaks
------------------------------------------------------------------------
r67 | (no author) | 2005-03-16 08:49:37 -0800 (Wed, 16 Mar 2005) | 2 lines
Fix typos in previous patch
------------------------------------------------------------------------
r66 | (no author) | 2005-03-15 16:07:18 -0800 (Tue, 15 Mar 2005) | 2 lines
Added ConvertToSubclassCode blocks for tdemdi, tdeutils
------------------------------------------------------------------------
r65 | (no author) | 2005-03-10 10:41:57 -0800 (Thu, 10 Mar 2005) | 2 lines
added kkeyserver.h to extra/kde340
------------------------------------------------------------------------
r64 | (no author) | 2005-03-08 14:14:58 -0800 (Tue, 08 Mar 2005) | 3 lines
Fixed case problem in configure.py distro check; fixed default
value in KURL::cleanPath
------------------------------------------------------------------------
r62 | (no author) | 2005-03-06 21:31:50 -0800 (Sun, 06 Mar 2005) | 2 lines
fixed emums in templates/annotated
------------------------------------------------------------------------
r61 | (no author) | 2005-03-06 21:30:48 -0800 (Sun, 06 Mar 2005) | 2 lines
fixed enums in examples, templates; fixed TDEIconThemeDir ref
------------------------------------------------------------------------
r60 | (no author) | 2005-03-05 00:57:44 -0800 (Sat, 05 Mar 2005) | 2 lines
added -L option for lib path
------------------------------------------------------------------------
r59 | (no author) | 2005-03-05 00:47:24 -0800 (Sat, 05 Mar 2005) | 2 lines
removed kjs support
------------------------------------------------------------------------
r58 | (no author) | 2005-03-05 00:42:59 -0800 (Sat, 05 Mar 2005) | 2 lines
update extra/kde340 h files
------------------------------------------------------------------------
r57 | (no author) | 2005-03-05 00:36:09 -0800 (Sat, 05 Mar 2005) | 2 lines
update .easibox - extra/kde340
------------------------------------------------------------------------
r56 | (no author) | 2005-03-05 00:34:34 -0800 (Sat, 05 Mar 2005) | 2 lines
added extra/kde340
------------------------------------------------------------------------
r55 | (no author) | 2005-03-04 23:58:35 -0800 (Fri, 04 Mar 2005) | 2 lines
tdemdimod.sip.in one more time
------------------------------------------------------------------------
r54 | (no author) | 2005-03-04 23:53:37 -0800 (Fri, 04 Mar 2005) | 2 lines
tdemdimod.sip.in again
------------------------------------------------------------------------
r53 | (no author) | 2005-03-04 23:37:43 -0800 (Fri, 04 Mar 2005) | 2 lines
fixed tdemdimod.sip.in and tdeutils.sip.in
------------------------------------------------------------------------
r52 | (no author) | 2005-03-04 23:08:29 -0800 (Fri, 04 Mar 2005) | 2 lines
correct qt path in tdeutils.sip.in
------------------------------------------------------------------------
r51 | (no author) | 2005-03-04 23:04:54 -0800 (Fri, 04 Mar 2005) | 2 lines
%Include bytearray.sip missing from tdecore.sip.in
------------------------------------------------------------------------
r50 | (no author) | 2005-03-04 22:59:10 -0800 (Fri, 04 Mar 2005) | 2 lines
fixed missing %Feature in dcopmod.sip.in
------------------------------------------------------------------------
r49 | (no author) | 2005-03-04 22:55:43 -0800 (Fri, 04 Mar 2005) | 2 lines
fixed paths in sip.in files
------------------------------------------------------------------------
r48 | (no author) | 2005-03-04 22:49:00 -0800 (Fri, 04 Mar 2005) | 2 lines
doc updates for PyKDE 4.0
------------------------------------------------------------------------
r47 | (no author) | 2005-03-04 22:28:30 -0800 (Fri, 04 Mar 2005) | 2 lines
PyKDE 4.0 docs
------------------------------------------------------------------------
r46 | (no author) | 2005-03-04 22:02:00 -0800 (Fri, 04 Mar 2005) | 2 lines
new configure.py for PyKDE 4.0
------------------------------------------------------------------------
r45 | (no author) | 2005-03-04 22:00:42 -0800 (Fri, 04 Mar 2005) | 2 lines
PyKDE 4.0
------------------------------------------------------------------------
r42 | (no author) | 2005-03-01 16:20:01 -0800 (Tue, 01 Mar 2005) | 2 lines
Fixed TDEActionCollection for Mandrake
------------------------------------------------------------------------
r41 | (no author) | 2005-03-01 14:55:49 -0800 (Tue, 01 Mar 2005) | 2 lines
Fixed pid_t typing problems (TQValueList)
------------------------------------------------------------------------
r40 | (no author) | 2005-03-01 13:34:04 -0800 (Tue, 01 Mar 2005) | 2 lines
Changed pid_t type from int to long; enabled KParts::URLArgs::metaData ()
------------------------------------------------------------------------
r39 | (no author) | 2005-02-28 23:49:09 -0800 (Mon, 28 Feb 2005) | 4 lines
KFileMetaInfo typedefs removed; TDEProcessController versioning
corrected; TDERecentDirs (and extra/ hfiles) added; pytde332.prj
added
------------------------------------------------------------------------
r38 | (no author) | 2005-02-28 22:34:42 -0800 (Mon, 28 Feb 2005) | 2 lines
added TDEHTMLPart to %ConvertToSubclassCode; install kdepyuic
------------------------------------------------------------------------
r37 | (no author) | 2005-02-03 00:07:38 -0800 (Thu, 03 Feb 2005) | 2 lines
Added KURL import to dcopext.py
------------------------------------------------------------------------
r36 | (no author) | 2005-01-04 11:38:01 -0800 (Tue, 04 Jan 2005) | 2 lines
Add extra subdir
------------------------------------------------------------------------
r35 | (no author) | 2005-01-03 21:38:17 -0800 (Mon, 03 Jan 2005) | 2 lines
KDE 3.3.2 and sip 4.2 updates
------------------------------------------------------------------------
r33 | (no author) | 2004-11-28 13:58:07 -0800 (Sun, 28 Nov 2004) | 2 lines
Modified tdemdidefines.sip for sip 4.2 enumerator name problem
------------------------------------------------------------------------
r32 | (no author) | 2004-11-28 13:56:19 -0800 (Sun, 28 Nov 2004) | 2 lines
Removed pytdeconfig.py from source control
------------------------------------------------------------------------
r31 | (no author) | 2004-11-27 23:29:03 -0800 (Sat, 27 Nov 2004) | 2 lines
docs
------------------------------------------------------------------------
r30 | (no author) | 2004-11-27 23:07:07 -0800 (Sat, 27 Nov 2004) | 2 lines
docs
------------------------------------------------------------------------
r29 | (no author) | 2004-11-27 22:17:49 -0800 (Sat, 27 Nov 2004) | 2 lines
Missing comma
------------------------------------------------------------------------
r28 | (no author) | 2004-11-27 22:16:34 -0800 (Sat, 27 Nov 2004) | 2 lines
PyKDE for KDE 3.3.1
------------------------------------------------------------------------
r27 | (no author) | 2004-11-27 21:16:55 -0800 (Sat, 27 Nov 2004) | 2 lines
Revise project files
------------------------------------------------------------------------
r26 | (no author) | 2004-11-27 17:47:35 -0800 (Sat, 27 Nov 2004) | 2 lines
Updating to KDE 3.3.1
------------------------------------------------------------------------
r25 | (no author) | 2004-08-25 16:43:40 -0700 (Wed, 25 Aug 2004) | 2 lines
Updated change log
------------------------------------------------------------------------
r24 | (no author) | 2004-08-25 16:41:33 -0700 (Wed, 25 Aug 2004) | 2 lines
Updated numbering to 3.11.3
------------------------------------------------------------------------
r23 | (no author) | 2004-08-25 15:34:33 -0700 (Wed, 25 Aug 2004) | 2 lines
Added post proc for WId in twinmodule signals
------------------------------------------------------------------------
r22 | (no author) | 2004-08-21 16:50:33 -0700 (Sat, 21 Aug 2004) | 2 lines
same tdehtml_part patch as the previous rev ???
------------------------------------------------------------------------
r21 | (no author) | 2004-08-21 16:42:06 -0700 (Sat, 21 Aug 2004) | 2 lines
tdehtml_part: fixed enum values for sip3.10.2 with KDE 3.3.0
------------------------------------------------------------------------
r20 | (no author) | 2004-08-21 01:10:05 -0700 (Sat, 21 Aug 2004) | 2 lines
Update version numbers in docs
------------------------------------------------------------------------
r19 | (no author) | 2004-08-21 01:03:27 -0700 (Sat, 21 Aug 2004) | 2 lines
docs for final release
------------------------------------------------------------------------
r18 | (no author) | 2004-08-20 18:50:22 -0700 (Fri, 20 Aug 2004) | 2 lines
Fixed access specifier for copy ctor on TDEProcessController
------------------------------------------------------------------------
r17 | (no author) | 2004-08-20 10:00:27 -0700 (Fri, 20 Aug 2004) | 2 lines
Updated to KDE 3.3.0 final
------------------------------------------------------------------------
r16 | (no author) | 2004-08-20 09:59:28 -0700 (Fri, 20 Aug 2004) | 2 lines
Removed tdehtml_part.sip (different versions for different KDE versions)
------------------------------------------------------------------------
r15 | (no author) | 2004-08-19 23:52:31 -0700 (Thu, 19 Aug 2004) | 2 lines
Added svnmerge, svnmergedocs
------------------------------------------------------------------------
r14 | (no author) | 2004-08-16 19:42:57 -0700 (Mon, 16 Aug 2004) | 2 lines
change spaces to tabs in postproc/appQuit
------------------------------------------------------------------------
r13 | (no author) | 2004-08-16 19:41:25 -0700 (Mon, 16 Aug 2004) | 2 lines
Save doc tool mods
------------------------------------------------------------------------
r12 | (no author) | 2004-08-16 17:44:37 -0700 (Mon, 16 Aug 2004) | 2 lines
Updated docs
------------------------------------------------------------------------
r11 | (no author) | 2004-08-16 17:23:33 -0700 (Mon, 16 Aug 2004) | 2 lines
Patched qvariant.h problem in tdecore
------------------------------------------------------------------------
r10 | (no author) | 2004-08-16 16:40:43 -0700 (Mon, 16 Aug 2004) | 2 lines
Corrected kuniqueapplication
------------------------------------------------------------------------
r9 | (no author) | 2004-08-16 14:43:51 -0700 (Mon, 16 Aug 2004) | 2 lines
Fixed h file problems for KDE3.0.x; fixed LONG_LONG for KDE3.0.x with Python 2.3
------------------------------------------------------------------------
r8 | (no author) | 2004-08-15 21:49:27 -0700 (Sun, 15 Aug 2004) | 2 lines
version before access hides access for KDE < 3.2 in kprocctrl.sip
------------------------------------------------------------------------
r7 | (no author) | 2004-08-15 12:21:23 -0700 (Sun, 15 Aug 2004) | 2 lines
Corrected error - configure.py spippath defined in wrong place
------------------------------------------------------------------------
r6 | (no author) | 2004-08-15 12:19:37 -0700 (Sun, 15 Aug 2004) | 2 lines
Added tdehtml_part.sip versions
------------------------------------------------------------------------
r5 | (no author) | 2004-08-15 12:14:27 -0700 (Sun, 15 Aug 2004) | 3 lines
Changes to configure.py for tdehtml/tdeutils when KDE < 3.3.0 and
tdeutils isn't needed/supported
------------------------------------------------------------------------
r4 | (no author) | 2004-08-15 12:04:57 -0700 (Sun, 15 Aug 2004) | 2 lines
Patches for building with -i option (no concatenation)
------------------------------------------------------------------------
r3 | (no author) | 2004-08-15 09:13:47 -0700 (Sun, 15 Aug 2004) | 2 lines
Ready for KDE 3.3.0beta2
------------------------------------------------------------------------
r2 | (no author) | 2004-08-13 22:35:48 -0700 (Fri, 13 Aug 2004) | 2 lines
Initial import
------------------------------------------------------------------------

@ -167,10 +167,10 @@ def check_gcc ():
os.system ("gcc -dumpversion > gccvers.txt") os.system ("gcc -dumpversion > gccvers.txt")
m = open ('gccvers.txt', 'r') m = open ('gccvers.txt', 'r')
vers = m.read ().strip () vers = m.read().strip()
m.close () m.close ()
os.unlink ('gccvers.txt') os.unlink ('gccvers.txt')
print "gcc version %s" % vers print("gcc version %s" % vers)
if opt_concat == None: if opt_concat == None:
if vers < "4.0.0" or vers >= "4.0.3": if vers < "4.0.0" or vers >= "4.0.3":
@ -179,10 +179,10 @@ def check_gcc ():
opt_concat = 0 opt_concat = 0
if opt_concat == 1: if opt_concat == 1:
print "concatenating files" print("concatenating files")
else: else:
print "no concatenation" print("no concatenation")
print print()
def init_and_check_sanity (): def init_and_check_sanity ():
""" Do some initialization and check various versions and """ Do some initialization and check various versions and
@ -225,25 +225,25 @@ def usage(rcode = 2):
rcode is the return code passed back to the calling process. rcode is the return code passed back to the calling process.
""" """
print "Usage:" print("Usage:")
print " python configure.py [-h] [-c] [-d dir] [-g] [-j #] [-k] [-n dir] [-o dir] [-r] [-u] [-v dir] [-z file]" print(" python configure.py [-h] [-c] [-d dir] [-g] [-j #] [-k] [-n dir] [-o dir] [-r] [-u] [-v dir] [-z file]")
print "where:" print("where:")
print " -h displays this help message" print(" -h displays this help message")
print " -c concatenates each module's C/C++ source files [default]" print(" -c concatenates each module's C/C++ source files [default]")
print " -d dir where the PyKDE modules will be installed [default %s]" % opt_pytdemoddir print(" -d dir where the PyKDE modules will be installed [default %s]" % opt_pytdemoddir)
print " -e lib explicitly specify the python library" print(" -e lib explicitly specify the python library")
print " -g always release the GIL (SIP-TQt v3.x behaviour)" print(" -g always release the GIL (SIP-TQt v3.x behaviour)")
print " -i no concatenation of each module's C/C++ source files" print(" -i no concatenation of each module's C/C++ source files")
print " -j # splits the concatenated C++ source files into # pieces [default 1]" print(" -j # splits the concatenated C++ source files into # pieces [default 1]")
print " -k dir the KDE base directory" print(" -k dir the KDE base directory")
print " -L dir the library directory name [default lib]" print(" -L dir the library directory name [default lib]")
print " -n dir the directory containing the KDE lib files" print(" -n dir the directory containing the KDE lib files")
print " -o dir the directory containing the KDE header files" print(" -o dir the directory containing the KDE header files")
print " -r generates code with tracing enabled [default disabled]" print(" -r generates code with tracing enabled [default disabled]")
print " -u build with debugging symbols" print(" -u build with debugging symbols")
print " -v dir where the PyKDE .sip files will be installed [default %s]" % opt_pytdesipdir print(" -v dir where the PyKDE .sip files will be installed [default %s]" % opt_pytdesipdir)
print " -w turn on KDE deprecated object warnings when compiling [default off]" print(" -w turn on KDE deprecated object warnings when compiling [default off]")
print " -z file the name of a file containing command line flags" print(" -z file the name of a file containing command line flags")
sys.exit(rcode) sys.exit(rcode)
@ -252,23 +252,23 @@ def inform_user(stage):
"""Tell the user the option values that are going to be used. """Tell the user the option values that are going to be used.
""" """
if stage == 0: if stage == 0:
print print()
print " PyKDE version %s" % pytde_version_str print(" PyKDE version %s" % pytde_version_str)
print " -------" print(" -------")
print print()
sip_tqt_config.inform ("Python include directory is %s" % sipcfg.py_inc_dir) sip_tqt_config.inform ("Python include directory is %s" % sipcfg.py_inc_dir)
sip_tqt_config.inform ("Python version is %s" % sip_tqt_config.version_to_string (sipcfg.py_version)) sip_tqt_config.inform ("Python version is %s" % sip_tqt_config.version_to_string (sipcfg.py_version))
print print()
sip_tqt_config.inform ("sip-tqt version is %s (%s)" % (sipcfg.sip_version_str, sip_tqt_config.inform ("sip-tqt version is %s (%s)" % (sipcfg.sip_version_str,
sip_tqt_config.version_to_string (sipcfg.sip_version))) sip_tqt_config.version_to_string (sipcfg.sip_version)))
print print()
sip_tqt_config.inform ("TQt directory is %s" % pyqtcfg.qt_dir) sip_tqt_config.inform ("TQt directory is %s" % pyqtcfg.qt_dir)
sip_tqt_config.inform ("TQt version is %s" % sip_tqt_config.version_to_string (pyqtcfg.qt_version)) sip_tqt_config.inform ("TQt version is %s" % sip_tqt_config.version_to_string (pyqtcfg.qt_version))
print print()
sip_tqt_config.inform ("PyTQt directory is %s" % pyqtcfg.pyqt_sip_dir) sip_tqt_config.inform ("PyTQt directory is %s" % pyqtcfg.pyqt_sip_dir)
sip_tqt_config.inform ("PyTQt version is %s (%s)" % (pyqtcfg.pyqt_version_str, sip_tqt_config.inform ("PyTQt version is %s (%s)" % (pyqtcfg.pyqt_version_str,
sip_tqt_config.version_to_string (pyqtcfg.pyqt_version))) sip_tqt_config.version_to_string (pyqtcfg.pyqt_version)))
print print()
elif stage == 1: elif stage == 1:
sip_tqt_config.inform ("KDE base directory is %s" % opt_tdebasedir) sip_tqt_config.inform ("KDE base directory is %s" % opt_tdebasedir)
@ -278,11 +278,11 @@ def inform_user(stage):
elif stage == 2: elif stage == 2:
sip_tqt_config.inform ("KDE version is %s (0x%x)" % (kde_version_str, kde_version)) sip_tqt_config.inform ("KDE version is %s (0x%x)" % (kde_version_str, kde_version))
print print()
sip_tqt_config.inform("PyKDE modules will be installed in %s" % opt_pytdemoddir) sip_tqt_config.inform("PyKDE modules will be installed in %s" % opt_pytdemoddir)
sip_tqt_config.inform("PyKDE .sip files will be installed in %s" % opt_pytdesipdir) sip_tqt_config.inform("PyKDE .sip files will be installed in %s" % opt_pytdesipdir)
print print()
@ -332,16 +332,16 @@ def getKDEVersion (versFile):
ok = 0 ok = 0
while not ok and l: while not ok and l:
wl = string.split(l) wl = l.split()
if len(wl) == 3 and wl[0] == "#define": if len(wl) == 3 and wl[0] == "#define":
if wl[1] == "TDE_VERSION_MAJOR": if wl[1] == "TDE_VERSION_MAJOR":
major = string.strip (wl[2]) major = wl[2].strip()
if wl[1] == "TDE_VERSION_MINOR": if wl[1] == "TDE_VERSION_MINOR":
minor = string.strip (wl[2]) minor = wl[2].strip()
if wl[1] == "TDE_VERSION_RELEASE": if wl[1] == "TDE_VERSION_RELEASE":
micro = string.strip (wl[2]) micro = wl[2].strip()
if major and minor and micro: if major and minor and micro:
ok = 1 ok = 1
@ -357,18 +357,18 @@ def getKDEVersion (versFile):
kde_version = (int (major) << 16) + (int (minor) << 8) + int (micro) kde_version = (int (major) << 16) + (int (minor) << 8) + int (micro)
if kde_version > kde_max_version: if kde_version > kde_max_version:
print print()
sip_tqt_config.inform ("*** True KDE version is %s -- building for KDE %s ***" % (hex (kde_version), hex (kde_max_version))) sip_tqt_config.inform ("*** True KDE version is %s -- building for KDE %s ***" % (hex (kde_version), hex (kde_max_version)))
print print()
kde_version = kde_max_version kde_version = kde_max_version
major = hex ((kde_version & 0xff0000) >> 16) [ 2:] major = hex ((kde_version & 0xff0000) >> 16) [ 2:]
minor = hex ((kde_version & 0x00ff00) >> 8) [ 2:] minor = hex ((kde_version & 0x00ff00) >> 8) [ 2:]
micro = hex (kde_version & 0x0000ff) [ 2:] micro = hex (kde_version & 0x0000ff) [ 2:]
if ok: if ok:
kde_version_str = string.join ([major, minor, micro], ".") kde_version_str = ".".join([major, minor, micro])
kde_version_sfx = string.join (["-kde", major, minor, micro, ".diff"], "") kde_version_sfx = "".join(["-kde", major, minor, micro, ".diff"])
kde_version_extra = string.join (["kde", major, minor, micro], "") kde_version_extra = "".join(["kde", major, minor, micro])
else: else:
sip_tqt_config.error ("KDE version not found in %s" % versFile) sip_tqt_config.error ("KDE version not found in %s" % versFile)
@ -454,9 +454,9 @@ def create_top_level (mname):
d = open (diff) d = open (diff)
line = d.readline() line = d.readline()
while line: while line:
if string.find (line, "+") == 0: if line.find ("+") == 0:
plus.append (line [2:]) plus.append (line [2:])
elif string.find (line, "-") == 0: elif line.find ("-") == 0:
minus.append (line [2:]) minus.append (line [2:])
line = d.readline() line = d.readline()
@ -466,16 +466,16 @@ def create_top_level (mname):
line = sipin.readline() line = sipin.readline()
while line: while line:
if string.find (line, "%Include") == 0: if line.find("%Include") == 0:
inclFound = 1 inclFound = 1
if minus and line in minus: if minus and line in minus:
line = sipin.readline() line = sipin.readline()
continue continue
sipout.write (line) sipout.write (line)
elif string.find (line, "@mark@") == 0: elif line.find ("@mark@") == 0:
for p in plus: for p in plus:
sipout.write (p) sipout.write (p)
elif mname == "tdeabc" and kde_version < 0x030200 and string.find (line, "tderesourcesmod.sip") >= 0: elif mname == "tdeabc" and kde_version < 0x030200 and line.find("tderesourcesmod.sip") >= 0:
pass pass
else: else:
sipout.write (line) sipout.write (line)
@ -629,20 +629,19 @@ def generate_code(mname, imports=None, extra_cflags=None, extra_cxxflags=None, e
argv.append (pyqtcfg.pyqt_sip_dir) argv.append (pyqtcfg.pyqt_sip_dir)
pyqtInclPathSeen = 1 pyqtInclPathSeen = 1
elif mod == "dcop" or string.find (mod, "k") == 0 or string.find (mod, "tde") == 0: elif mod == "dcop" or mod.find("k") == 0 or mod.find("tde") == 0:
subdir = os.path.join(srcPath("sip"), mod) subdir = os.path.join(srcPath("sip"), mod)
argv.append("-I") argv.append("-I")
argv.append(subdir) argv.append(subdir)
# SIP-TQt assumes POSIX style path separators. # SIP-TQt assumes POSIX style path separators.
argv.append(srcPath(string.join(["sip", mname, mname + "mod.sip"], "/"))) argv.append(srcPath("/".join(["sip", mname, mname + "mod.sip"])))
# print string.join (argv)
# finally, run SIP-TQt and generate the C++ code # finally, run SIP-TQt and generate the C++ code
os.system (string.join(argv)) os.system (" ".join(argv))
# post process the C++ code for TQT_NO_TRANSLATION # post process the C++ code for TQT_NO_TRANSLATION
if os.system (string.join ([sys.executable, srcPath("postproc")] + ['-p', mname, "-o", "tr", "*.cpp"])) != 0: if os.system (" ".join ([sys.executable, srcPath("postproc")] + ['-p', mname, "-o", "tr", "*.cpp"])) != 0:
sip_tqt_config.error ("Post processing of C++ code failed %s (tr)" % mname) sip_tqt_config.error ("Post processing of C++ code failed %s (tr)" % mname)
# Check the result. # Check the result.
@ -662,7 +661,7 @@ def generate_code(mname, imports=None, extra_cflags=None, extra_cxxflags=None, e
# needs to be here (not earlier) to catch .py files if any # needs to be here (not earlier) to catch .py files if any
if postProcess [mname]: if postProcess [mname]:
for s in postProcess [mname]: for s in postProcess [mname]:
if os.system (string.join ([sys.executable, srcPath("postproc")] + s)) != 0: if os.system (" ".join ([sys.executable, srcPath("postproc")] + s)) != 0:
sip_tqt_config.error ("Post processing of C++ code failed %s (%s)" % (mname, s [3])) sip_tqt_config.error ("Post processing of C++ code failed %s (%s)" % (mname, s [3]))
# Generate the Makefile. # Generate the Makefile.
@ -777,7 +776,7 @@ def generate_code(mname, imports=None, extra_cflags=None, extra_cxxflags=None, e
makefile.extra_libs.insert(0, makefile.module_as_lib(im)) makefile.extra_libs.insert(0, makefile.module_as_lib(im))
makefile.generate() makefile.generate()
print print()
def create_makefiles(): def create_makefiles():
@ -806,14 +805,14 @@ def fileOpts (fn):
if (line [0] == '#') or (line == '\n'): if (line [0] == '#') or (line == '\n'):
continue continue
elif line [0] == '-': elif line [0] == '-':
opts.append ((line [0:2], string.strip (line [2:]))) opts.append ((line [0:2], line[2:].strip()))
else: else:
opts.append (("-" + line [0:1], string.strip (line [1:]))) opts.append (("-" + line [0:1], line[1:].strip()))
print 'Additional options: ', print('Additional options: ', end=' ')
for opt, arg in opts: for opt, arg in opts:
print "%s %s " %(opt, arg) print("%s %s " %(opt, arg))
print print()
return opts return opts
@ -928,7 +927,7 @@ def main(argv):
except: except:
sip_tqt_config.error ("%s is not a PyKDE module" % opt_startModName) sip_tqt_config.error ("%s is not a PyKDE module" % opt_startModName)
print "PyKDE modules to be built:\n %s\n" % string.join(pytde_modules [opt_startmod:opt_endmod]) print("PyKDE modules to be built:\n %s\n" % " ".join(pytde_modules[opt_startmod:opt_endmod]))
set_sip_flags() set_sip_flags()
@ -946,7 +945,7 @@ def main(argv):
def reporting_msg (): def reporting_msg ():
print """ print("""
If reporting errors, paste all of the output above into your If reporting errors, paste all of the output above into your
message and post to the PyKDE mailing list at: message and post to the PyKDE mailing list at:
@ -954,7 +953,7 @@ message and post to the PyKDE mailing list at:
subscribe: http://mats.imk.fraunhofer.de/mailman/listinfo/pytde subscribe: http://mats.imk.fraunhofer.de/mailman/listinfo/pytde
You can redirect the output into a file (> output.txt) if needed You can redirect the output into a file (> output.txt) if needed
""" """)
@ -970,9 +969,8 @@ if __name__ == "__main__":
raise raise
except: except:
reporting_msg () reporting_msg ()
print \ print("""
"""
An internal error occured. Please report all output from the program, An internal error occured. Please report all output from the program,
including the following traceback, to the PyKDE mailing list including the following traceback, to the PyKDE mailing list
""" """)
raise raise

@ -1,6 +1,6 @@
This subdirectory contains a few executable Python This subdirectory contains a few executable Python
programs that demonstrate or test some features of programs that demonstrate or test some features of
PyKDE: PyTDE:
uisampler.py - demos of most of the tdeui widgets, uisampler.py - demos of most of the tdeui widgets,
including dialogs, menus (TDEAction, KStdAction, etc) including dialogs, menus (TDEAction, KStdAction, etc)

@ -30,13 +30,13 @@ copyright holder.
""" """
# This is an example of a DCOP enabled application written in Python, using # This is an example of a DCOP enabled application written in Python, using
# PyKDE and the dcopexport module. Taken from server.py example in kde-bindings # PyTDE and the dcopexport module. Taken from server.py example in kde-bindings
# which was written by Torben Weis and Julian Rockey # which was written by Torben Weis and Julian Rockey
import sys import sys
from PyTQt.qt import TQString, TQStringList
from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData
from dcopexport import DCOPExObj from dcopexport import DCOPExObj
from PyTQt.qt import TQString, TQStringList
""" """
DCOPExObj provides all of the necessary machinery to DCOP-enable DCOPExObj provides all of the necessary machinery to DCOP-enable
@ -67,8 +67,8 @@ To DCOP-enable an app,
# the class which will expose methods to DCOP - the methods do NOT # the class which will expose methods to DCOP - the methods do NOT
# need to be a member of this class. # need to be a member of this class.
class DeadParrotObject (DCOPExObj): class DeadParrotObject (DCOPExObj):
def __init__ (self, id = 'dead parrot'): def __init__ (self, id = b'dead parrot'):
DCOPExObj.__init__ (self, id) DCOPExObj.__init__(self, id)
# the methods available from this app via DCOP # the methods available from this app via DCOP
# addMethod (<signature>, <Python method>) # addMethod (<signature>, <Python method>)
@ -100,28 +100,28 @@ class DeadParrotObject (DCOPExObj):
return qadjList return qadjList
description = "A basic application template"
version = "1.0" description = b"DCOP server template"
aboutData = TDEAboutData ("testdcopexport", "petshop",\ version = b"1.0"
aboutData = TDEAboutData (b"MyApp", b"MyApp",\
version, description, TDEAboutData.License_GPL,\ version, description, TDEAboutData.License_GPL,\
"(C) 2003 whoever the author is") b"(C) 2003 whoever the author is")
aboutData.addAuthor ("author1", "whatever they did", "email@somedomain") aboutData.addAuthor (b"author1", b"whatever they did", b"email@somedomain")
aboutData.addAuthor ("author2", "they did something else", "another@email.address") aboutData.addAuthor (b"author2", b"they did something else", b"another@email.address")
TDECmdLineArgs.init (sys.argv, aboutData) TDECmdLineArgs.init (sys.argv, aboutData)
TDECmdLineArgs.addCmdLineOptions ([(b"+files", b"File to open")])
TDECmdLineArgs.addCmdLineOptions ([("+files", "File to open")])
app = TDEApplication () app = TDEApplication ()
dcop = app.dcopClient () dcop = app.dcopClient ()
appid = dcop.registerAs('petshop') appid = dcop.registerAs(b'petshop')
print "DCOP Application: %s starting" % appid print("DCOP Application: %s starting" % appid.data())
parrot = DeadParrotObject() parrot = DeadParrotObject()
another_parrot = DeadParrotObject('polly') another_parrot = DeadParrotObject(b'polly')
print """ print("""
Run kdcop and look for the 'petshop' application instance. Run kdcop and look for the 'petshop' application instance.
This program exports the 'deadParrot' and 'polly' objects. This program exports the 'deadParrot' and 'polly' objects.
@ -129,7 +129,7 @@ Double-clicking those object's methods will allow you to get or set data.
To end the application, in kdcop choose the MainApplication-Interface To end the application, in kdcop choose the MainApplication-Interface
object and double-click the quit() method. object and double-click the quit() method.
""" """)
app.exec_loop() app.exec_loop()

@ -28,108 +28,105 @@ copyright holder.
""" """
import sys, time import sys, time
from PyTQt.qt import TQString, TQCString
import dcop import dcop
import dcopext import dcopext
from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData
from PyTQt.qt import TQString, TQCString
def getAnyApplication (client, appName): def getAnyApplication (client, appName):
for qcstring_app in client.registeredApplications (): for qcstring_app in client.registeredApplications ():
app = str (qcstring_app) app = str (qcstring_app)
if app == appName or app.startswith (appName + "-"): if app == appName or app.startswith (appName + "-"):
print app print(app)
print print()
objList, ok = client.remoteObjects (app) objList, ok = client.remoteObjects (app)
for obj in objList: for obj in objList:
print " ", obj print(" ", obj)
funcs, ok = client.remoteFunctions (app, obj) funcs, ok = client.remoteFunctions (app, obj)
for f in funcs: for f in funcs:
print " ", " ", f print(" ", " ", f)
break break
#-------------------- main ------------------------------------------------ #-------------------- main ------------------------------------------------
description = "A basic application template" description = b"DCOP client template"
version = "1.0" version = b"1.0"
aboutData = TDEAboutData ("testdcopext", "testdcopext",\ aboutData = TDEAboutData (b"MyApp", b"MyApp",\
version, description, TDEAboutData.License_GPL,\ version, description, TDEAboutData.License_GPL,\
"(C) 2003 whoever the author is") b"(C) 2003 whoever the author is")
aboutData.addAuthor ("author1", "whatever they did", "email@somedomain") aboutData.addAuthor (b"author1", b"whatever they did", b"email@somedomain")
aboutData.addAuthor ("author2", "they did something else", "another@email.address") aboutData.addAuthor (b"author2", b"they did something else", b"another@email.address")
TDECmdLineArgs.init (sys.argv, aboutData) TDECmdLineArgs.init (sys.argv, aboutData)
TDECmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) TDECmdLineArgs.addCmdLineOptions ([(b"+files", b"File to open")])
app = TDEApplication () app = TDEApplication ()
dcop = app.dcopClient () dcop = app.dcopClient ()
#getAnyApplication (dcop, "konqueror") #getAnyApplication (dcop, "konqueror")
print "--------------------------" print("--------------------------")
print "The DCOPObjects for kicker:" print("The DCOPObjects for kicker:")
d = dcopext.DCOPApp ("kicker", dcop) d = dcopext.DCOPApp ("kicker", dcop)
objs = d.objects objs = d.objects
if objs: if objs:
for obj in objs: for obj in objs:
print obj print(obj.data())
print("--------------------------")
print("The methods for the panel:")
o = d.object ("Panel") o = d.object ("Panel")
methods = o.methods methods = o.methods
for method in methods: for method in methods:
print method print(method.data())
m = o.method ("addNonKDEAppButton") m = o.method ("addNonKDEAppButton")
print(m)
print "--------------------------" print("--------------------------")
print "The method" print("The method")
print o.method print(o.method)
print "--------------------------" print("--------------------------")
print "Find the method:" print("Find the method:")
print m.findMethod () print(m.findMethod ())
print "--------------------------" print("--------------------------")
print "The return type:" print("The return type:")
print m.rtype print(m.rtype)
print "--------------------------" print("--------------------------")
print "The argument types:" print("The argument types:")
print m.argtypes print(m.argtypes)
print "--------------------------" print("--------------------------")
print "The argument names:" print("The argument names:")
print m.argnames print(m.argnames)
print "--------------------------" print("--------------------------")
print print("get kicker panel size via DCOP")
print "get kicker panel size via DCOP"
res = d.Panel.panelSize() res = d.Panel.panelSize()
print res, d.Panel.panelSize.valid print(res, d.Panel.panelSize.valid)
print "--------------------------" print("--------------------------")
print "Call a method that doesn't exist" print("Call a method that doesn't exist")
res = d.Panel.junk () res = d.Panel.junk ()
print res print(res)
print "--------------------------" print("--------------------------")
print "See if a non-existent method is valid" print("See if a non-existent method is valid")
print d.Panel.junk.valid print(d.Panel.junk.valid)
print print("--------------------------")
print "--------------------------"
print print("Start a kwrite instance")
print
print "Start a kwrite instance"
errcode, error, dcopService, pid = TDEApplication.startServiceByDesktopName ("kwrite", "") errcode, error, dcopService, pid = TDEApplication.startServiceByDesktopName ("kwrite", "")
dcopService = "kwrite-" + str (pid) dcopService = "kwrite-" + str (pid)
print "errcode: %i error: %s dcopService: %s pid: %i" % (errcode, error, dcopService, pid) print("errcode: %i error: %s dcopService: %s pid: %i" % (errcode, error, dcopService, pid))
print "--------------------------" print("--------------------------")
time.sleep (2) time.sleep (2)
o1 = dcopext.DCOPObj (dcopService, dcop, "EditInterface#1") o1 = dcopext.DCOPObj (dcopService, dcop, "EditInterface#1")
print "Check if insertLine is a valid function" print("Check if insertLine is a valid function")
print "valid", o1.insertLine.valid print("valid", o1.insertLine.valid)
print "--------------------------" print("--------------------------")
print "insertLine's arg types and names" print("insertLine's arg types and names")
print o1.insertLine.argtypes, o1.insertLine.argnames print(o1.insertLine.argtypes, o1.insertLine.argnames)
print "--------------------------" print("--------------------------")
print "Insert a line into the kwrite instance we launched" print("Insert a line into the kwrite instance we launched")
print "call returns:", o1.insertLine (0, "Now is the time for all good men to come to the aid of their party") print("call returns:", o1.insertLine (0, "Now is the time for all good men to come to the aid of their party"))

@ -36,7 +36,7 @@ from tdeui import TDEMainWindow, KEdit
class MainWin (TDEMainWindow): class MainWin (TDEMainWindow):
def __init__ (self, *args): def __init__ (self, *args):
apply (TDEMainWindow.__init__, (self,) + args) TDEMainWindow.__init__(self, *args)
self.setGeometry (0, 0, 400, 600) self.setGeometry (0, 0, 400, 600)
@ -79,18 +79,18 @@ class MainWin (TDEMainWindow):
#-------------------- main ------------------------------------------------ #-------------------- main ------------------------------------------------
description = "A basic application template" description = b"A basic application template"
version = "1.0" version = b"1.0"
aboutData = TDEAboutData ("", "",\ aboutData = TDEAboutData (b"MyApp", b"MyApp",\
version, description, TDEAboutData.License_GPL,\ version, description, TDEAboutData.License_GPL,\
"(C) 2003 whoever the author is") b"(C) 2003 whoever the author is")
aboutData.addAuthor ("author1", "whatever they did", "email@somedomain") aboutData.addAuthor (b"author1", b"whatever they did", b"email@somedomain")
aboutData.addAuthor ("author2", "they did something else", "another@email.address") aboutData.addAuthor (b"author2", b"they did something else", b"another@email.address")
TDECmdLineArgs.init (sys.argv, aboutData) TDECmdLineArgs.init (sys.argv, aboutData)
TDECmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) TDECmdLineArgs.addCmdLineOptions ([(b"+files", b"File to open")])
app = TDEApplication () app = TDEApplication ()
mainWindow = MainWin (None, "main window") mainWindow = MainWin (None, "main window")

@ -1,6 +1,6 @@
""" """
This template constructs an application with menus, toolbar and statusbar. This template constructs an application with menus, toolbar and statusbar.
It uses KDE classes and methods that simplify the task of building and It uses TDE classes and methods that simplify the task of building and
operating a GUI. It is recommended that this approach be used, rather operating a GUI. It is recommended that this approach be used, rather
than the primitive approach in menuapp1.py than the primitive approach in menuapp1.py
""" """
@ -35,10 +35,6 @@ copyright holder.
""" """
False = 0
True = not False
import sys import sys
from PyTQt.qt import TQPopupMenu, SIGNAL, TQLabel, TQIconSet from PyTQt.qt import TQPopupMenu, SIGNAL, TQLabel, TQIconSet
@ -53,7 +49,7 @@ STATUSBAR_RIGHT = 3
class MainWin (TDEMainWindow): class MainWin (TDEMainWindow):
def __init__ (self, *args): def __init__ (self, *args):
apply (TDEMainWindow.__init__, (self,) + args) TDEMainWindow.__init__(self, *args)
self.initActions () self.initActions ()
self.initMenus () self.initMenus ()
@ -106,14 +102,6 @@ class MainWin (TDEMainWindow):
self.actionMenu.insert (KStdAction.zoomIn (self.slotZoomIn, self.actionCollection ())) self.actionMenu.insert (KStdAction.zoomIn (self.slotZoomIn, self.actionCollection ()))
self.actionMenu.insert (KStdAction.zoomOut (self.slotZoomOut, self.actionCollection ())) self.actionMenu.insert (KStdAction.zoomOut (self.slotZoomOut, self.actionCollection ()))
# Doesn't work in KDE 2.1.1
# self.radio1Action = TDERadioAction ("Radio 1")
# self.radio1Action.setExclusiveGroup ("Radio")
# self.radio2Action = TDERadioAction ("Radio 2")
# self.radio2Action.setExclusiveGroup ("Radio")
# self.radio3Action = TDERadioAction ("Radio 3")
# self.radio3Action.setExclusiveGroup ("Radio")
def initMenus (self): def initMenus (self):
fileMenu = TQPopupMenu (self) fileMenu = TQPopupMenu (self)
self.newAction.plug (fileMenu) self.newAction.plug (fileMenu)
@ -272,20 +260,21 @@ class MainWin (TDEMainWindow):
#-------------------- main ------------------------------------------------ #-------------------- main ------------------------------------------------
description = "A basic application template" description = b"A basic application template"
version = "1.0" version = b"1.0"
aboutData = TDEAboutData ("", "",\ aboutData = TDEAboutData (b"MyApp", b"MyApp",\
version, description, TDEAboutData.License_GPL,\ version, description, TDEAboutData.License_GPL,\
"(C) 2003 whoever the author is") b"(C) 2003 whoever the author is")
aboutData.addAuthor ("author1", "whatever they did", "email@somedomain") aboutData.addAuthor (b"author1", b"whatever they did", b"email@somedomain")
aboutData.addAuthor ("author2", "they did something else", "another@email.address") aboutData.addAuthor (b"author2", b"they did something else", b"another@email.address")
TDECmdLineArgs.init (sys.argv, aboutData) TDECmdLineArgs.init (sys.argv, aboutData)
TDECmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) TDECmdLineArgs.addCmdLineOptions ([(b"+files", b"File to open")])
app = TDEApplication () app = TDEApplication ()
mainWindow = MainWin (None, "main window") mainWindow = MainWin (None, b"main window")
mainWindow.setGeometry(100, 100, 600, 400)
mainWindow.show() mainWindow.show()
app.exec_loop() app.exec_loop()

@ -4,8 +4,6 @@ methods (KMimeType, KService, etc). It generally tests the *::List
methods for these classes (eg KService::List) since that also tests methods for these classes (eg KService::List) since that also tests
the *::Ptr mapped type code (eg KService::Ptr) at the same time. the *::Ptr mapped type code (eg KService::Ptr) at the same time.
This version is suitable for KDE >= 3.0.0 (some methods not available
in earlier versions)
""" """
""" """
@ -47,7 +45,7 @@ from tdeio import KMimeType, KService, KServiceGroup, KServiceType, TDETrader, K
class MainWin (TDEMainWindow): class MainWin (TDEMainWindow):
def __init__ (self, *args): def __init__ (self, *args):
apply (TDEMainWindow.__init__, (self,) + args) TDEMainWindow.__init__(*(self,) + args)
tabctl = KTabCtl (self) tabctl = KTabCtl (self)
self.setGeometry (0, 0, 600, 400) self.setGeometry (0, 0, 600, 400)
@ -88,7 +86,7 @@ class OfferListTab (TQWidget):
trader = TDETrader.self () trader = TDETrader.self ()
slist = trader.query ("image/jpeg", "Type == 'Application'") slist = trader.query ("image/jpeg", "Type == 'Application'")
print "TDETrader returned:", slist print("TDETrader returned:", slist)
for s in slist: for s in slist:
lvi = TQListViewItem (lv, s.type_ (), s.name (), s.exec_ (), s.library ()) lvi = TQListViewItem (lv, s.type_ (), s.name (), s.exec_ (), s.library ())
@ -253,16 +251,16 @@ class KMimeTypeTab (TQWidget):
#-------------------- main ------------------------------------------------ #-------------------- main ------------------------------------------------
description = "Test/demo TDESharedPtr related methods/classes"
version = "1.0" description = b"Test/demo TDESharedPtr related methods/classes"
aboutData = TDEAboutData ("", "",\ version = b"1.0"
aboutData = TDEAboutData (b"MyApp", b"MyApp",\
version, description, TDEAboutData.License_GPL,\ version, description, TDEAboutData.License_GPL,\
"(C) 2003 Jim Bublitz") b"(C) 2003 Jim Bublitz")
TDECmdLineArgs.init (sys.argv, aboutData) TDECmdLineArgs.init (sys.argv, aboutData)
TDECmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) TDECmdLineArgs.addCmdLineOptions ([(b"+files", b"File to open")])
app = TDEApplication () app = TDEApplication ()
mainWindow = MainWin (None, "main window") mainWindow = MainWin (None, "main window")
mainWindow.show() mainWindow.show()

@ -8,7 +8,7 @@ This is an extemely simple and crude example of using
a TDEHTMLPart - I put it together mostly to make sure a TDEHTMLPart - I put it together mostly to make sure
the openURL method worked correctly after some modifications the openURL method worked correctly after some modifications
done in KParts::ReadOnlyPart. It took exactly four lines done in KParts::ReadOnlyPart. It took exactly four lines
added to a basic PyKDE app framework to display a URL added to a basic PyTDE app framework to display a URL
via the 'net: via the 'net:
self.w = TDEHTMLPart (self, "HTMLPart", self); self.w = TDEHTMLPart (self, "HTMLPart", self);
@ -26,31 +26,27 @@ probably need to connect some signals to slots. I
haven't tried it, but this should work with a plain haven't tried it, but this should work with a plain
TDEMainWindow or other widget too. TDEMainWindow or other widget too.
The KDE website also incorporates gifs, jpegs, and The TDE website also incorporates gifs, jpegs, and
I believe CSS too. Playing around with some other I believe CSS too. Playing around with some other
sites, it appears the font defaults could use some sites, it appears the font defaults could use some
improvement. improvement.
NOTE!!! For this to work, you (obviously) need to have NOTE!!! For this to work, you (obviously) need to have
a route to the internet established or specify a local a route to the internet established or specify a local
URL - PyKDE/KDE will take care of everything else. URL - PyTDE/TDE will take care of everything else.
Perceptive users will notice the TDEHTMLPart code is Perceptive users will notice the TDEHTMLPart code is
lifted from the KDE classref. lifted from the TDE classref.
""" """
# If you import more classes, don't forget to add them here (some of these # If you import more classes, don't forget to add them here (some of these
# are extras/not used) # are extras/not used)
from PyTQt.qt import TQString, TQStringList
from tdecore import TDECmdLineArgs, KURL, TDEApplication, i18n, TDEAboutData, BarIcon, KLibLoader from tdecore import TDECmdLineArgs, KURL, TDEApplication, i18n, TDEAboutData, BarIcon, KLibLoader
from tdeui import TDEMainWindow, KMessageBox, TDEAction, KStdAction, KKeyDialog, KEditToolbar from tdeui import TDEMainWindow, KMessageBox, TDEAction, KStdAction, KKeyDialog, KEditToolbar
from PyTQt.qt import TQString, TQStringList
from tdeio import TDETrader from tdeio import TDETrader
from tdehtml import TDEHTMLPart, TDEHTMLView from tdehtml import TDEHTMLPart, TDEHTMLView
# Importing the KParts namespace gets us all of the KParts:: classes # Importing the KParts namespace gets us all of the KParts:: classes
@ -58,20 +54,14 @@ from tdeparts import KParts, createReadOnlyPart, createReadWritePart
import sys, os import sys, os
FALSE = 0
TRUE = not FALSE
TOOLBAR_EXIT = 0 TOOLBAR_EXIT = 0
TOOLBAR_OPEN = 1 TOOLBAR_OPEN = 1
# Note that we use KParts.MainWindow, not TDEMainWindow as the superclass # Note that we use KParts.MainWindow, not TDEMainWindow as the superclass
# (KParts.MainWindow subclasses TDEMainWindow). Also, be sure the 'apply' # (KParts.MainWindow subclasses TDEMainWindow).
# clause references KParts.MainWindow - it's a hard bug to track down
# if it doesn't.
class pyPartsMW (KParts.MainWindow): class pyPartsMW (KParts.MainWindow):
def __init__ (self, *args): def __init__ (self, *args):
apply (KParts.MainWindow.__init__, (self,) + args) KParts.MainWindow.__init__(self, *args)
# Create the actions for our menu/toolbar to use # Create the actions for our menu/toolbar to use
# Keep in mind that the part loaded will provide its # Keep in mind that the part loaded will provide its
@ -90,19 +80,19 @@ class pyPartsMW (KParts.MainWindow):
KStdAction.configureToolbars(self.optionsConfigureToolbars, self.actionCollection()); KStdAction.configureToolbars(self.optionsConfigureToolbars, self.actionCollection());
self.path = os.getcwd () + '/' self.path = os.getcwd () + '/'
self.setGeometry (0, 0, 600, 500) self.setGeometry (0, 0, 1024, 768)
# point to our XML file # point to our XML file
self.setXMLFile (self.path + "pyParts.rc", FALSE) self.setXMLFile (self.path + "pyParts.rc", False)
# The next few lines are all that's necessary to # The next few lines are all that's necessary to
# create a web browser (of course you have to edit # create a web browser (of course you have to edit
# this file to change url's) # this file to change url's)
self.w = TDEHTMLPart (self, "HTMLPart", self); self.w = TDEHTMLPart (self, "HTMLPart", self);
self.w.openURL (KURL ("http://www.kde.org")); self.w.openURL (KURL ("http://www.trinitydesktop.org"));
self.w.view ().setGeometry (30, 55, 500, 400); self.w.view ().setGeometry (30, 30, 1024-60, 768-60);
# self.v = TDEHTMLView (self.w, self) # self.v = TDEHTMLView (self.w, self)
@ -143,21 +133,21 @@ class pyPartsMW (KParts.MainWindow):
# some boilerplate left over from pyKLess/KLess # some boilerplate left over from pyKLess/KLess
def queryClose(self): def queryClose(self):
res = KMessageBox.warningYesNoCancel(self,\ res = KMessageBox.warningYesNoCancel(self,\
i18n("Save changes to Document?<br>(Does not make sense, we know, but it is just a programming example :-)")) i18n("<qt>Save changes to Document?<br/>(Does not make sense, we know, but it is just a programming example :-)</qt>"))
if res == KMessageBox.Yes: if res == KMessageBox.Yes:
#// save document here. If saving fails, return FALSE #// save document here. If saving fails, return False
return TRUE return True
elif res == KMessageBox.No: elif res == KMessageBox.No:
return TRUE return True
else: #// cancel else: #// cancel
return FALSE return False
def queryExit(self): def queryExit(self):
#// this slot is invoked in addition when the *last* window is going #// this slot is invoked in addition when the *last* window is going
#// to be closed. We could do some final cleanup here. #// to be closed. We could do some final cleanup here.
return TRUE #// accept return True #// accept
# I'm not sure the session mgmt stuff here works # I'm not sure the session mgmt stuff here works
@ -181,16 +171,16 @@ class pyPartsMW (KParts.MainWindow):
#------------- main ---------------------------- #------------- main ----------------------------
# A Human readable description of your program # A Human readable description of your program
description = "TDEHTMLPart - simple example" description = b"TDEHTMLPart - simple example"
# The version # The version
version = "0.1" version = b"0.1"
# stuff for the "About" menu # stuff for the "About" menu
aboutData = TDEAboutData ("pyTDEHTMLPart", "pyHTMLPart",\ aboutData = TDEAboutData (b"pyTDEHTMLPart", b"pyHTMLPart",\
version, description, TDEAboutData.License_GPL,\ version, description, TDEAboutData.License_GPL,\
"(c) 2002, Jim Bublitz") b"(c) 2002, Jim Bublitz")
aboutData.addAuthor ("Jim Bublitz", "Example for PyKDE", "jbublitz@nwinternet.com") aboutData.addAuthor (b"Jim Bublitz", b"Example for PyTDE", b"jbublitz@nwinternet.com")
# This MUST go here (before TDEApplication () is called) # This MUST go here (before TDEApplication () is called)
TDECmdLineArgs.init (sys.argv, aboutData) TDECmdLineArgs.init (sys.argv, aboutData)

@ -1,4 +1,4 @@
How to Write Samples for the PyKDE Sampler How to Write Samples for the PyTDE Sampler
========================================== ==========================================
@ -12,11 +12,11 @@ In side the module, add the following:
default: 'filenew' default: 'filenew'
example: 'colorize' example: 'colorize'
When supplied, this should be the short name of a KDE icon, such as When supplied, this should be the short name of a TDE icon, such as
'stop', 'editclear', etc. If available, This icon will be used as 'stop', 'editclear', etc. If available, This icon will be used as
the list item's icon in the sampler. Not all icons are available in the list item's icon in the sampler. Not all icons are available in
all themes, so try to use the icons that are available in the all themes, so try to use the icons that are available in the
default KDE installation. default TDE installation.
- labelText - string (optional) - labelText - string (optional)

@ -1,5 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
""" About the PyKDE Sampler """ About the PyTDE Sampler
Defines the 'about' function to create a TDEAboutData instance for the Defines the 'about' function to create a TDEAboutData instance for the
sampler application. sampler application.
@ -8,16 +8,16 @@ from os.path import dirname, join
from tdecore import TDEAboutData from tdecore import TDEAboutData
appName = 'pytdesampler' appName = b'pytdesampler'
progName = 'PyKDE Sampler' progName = b'PyTDE Sampler'
authorName = 'Troy Melhase' authorName = b'Troy Melhase'
authorEmail = bugsEmailAddress = 'troy@gci.net' authorEmail = bugsEmailAddress = b'troy@gci.net'
version = '0.1' version = b'0.1'
shortDescription = 'The PyKDE Sampler' shortDescription = b'The PyTDE Sampler'
licenseType = TDEAboutData.License_GPL_V2 licenseType = TDEAboutData.License_GPL_V2
copyrightStatement = '(c) 2006, %s' % (authorName, ) copyrightStatement = '(c) 2006, Troy Melhase'
homePageAddress = 'http://www.riverbankcomputing.co.uk/pytde/' homePageAddress = b'http://www.riverbankcomputing.co.uk/pytde/'
aboutText = ("The application sampler for PyKDE.") aboutText = (b"The application sampler for PyTDE.")
contributors = [] # module-level global for keeping the strings around; intentional contributors = [] # module-level global for keeping the strings around; intentional

@ -1,7 +1,7 @@
labelText = 'Widgets' labelText = 'Widgets'
iconName = 'about_kde' iconName = 'about_kde'
helpText = """KDE provides a large set of basic widgets for application use. helpText = """TDE provides a large set of basic widgets for application use.
Select the children of this item to see for yourself.""" Select the children of this item to see for yourself."""
from PyTQt.qt import TQFrame, TQVBoxLayout from PyTQt.qt import TQFrame, TQVBoxLayout

@ -49,5 +49,5 @@ class MainFrame(TQFrame):
self.historySelection.setText) self.historySelection.setText)
def historyCleared(self): def historyCleared(self):
print 'History combo cleared.' print('History combo cleared.')

@ -1,4 +1,4 @@
# author, contributions, email # author, contributions, email
Phil Thompson, For PyTQt and SIP, phil@riverbankcomputing.co.uk Phil Thompson, For PyTQt and SIP, phil@riverbankcomputing.co.uk
Jim Bublitz, For PyKDE, jbublitz@nwinternet.com Jim Bublitz, For PyTDE, jbublitz@nwinternet.com

@ -2,7 +2,7 @@ labelText = 'Dialog Boxes'
iconName = 'launch' iconName = 'launch'
helpText = ("KDE provides a convenient set of dialog boxes for application use. " helpText = ("TDE provides a convenient set of dialog boxes for application use. "
"Select the children of this item to see for yourself.") "Select the children of this item to see for yourself.")

@ -1,7 +1,7 @@
labelText = 'About Dialogs' labelText = 'About Dialogs'
iconName = 'info' iconName = 'info'
helpText = ("KDE has multiple dialog types to display information about your " helpText = ("TDE has multiple dialog types to display information about your "
"applicaiton and environment. They provide a tremendous amount of functionality " "applicaiton and environment. They provide a tremendous amount of functionality "
"and consistency. They're easy to use, and they're good for the environment!") "and consistency. They're easy to use, and they're good for the environment!")

@ -1,5 +1,5 @@
iconName = 'about_kde' iconName = 'about_kde'
labelText = 'TDEAboutKDE' labelText = 'TDEAboutTDE'
from PyTQt.qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL from PyTQt.qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL
from tdecore import i18n from tdecore import i18n
@ -7,13 +7,13 @@ from tdeui import TDEAboutKDE, KPushButton, KTextEdit
helpText = ("Typically available via the applications 'Help' menu, this " helpText = ("Typically available via the applications 'Help' menu, this "
"dialog presents the user with the standard KDE About dialog.") "dialog presents the user with the standard TDE About dialog.")
class MainFrame(TQFrame): class MainFrame(TQFrame):
def __init__(self, parent=None): def __init__(self, parent=None):
TQFrame.__init__(self, parent) TQFrame.__init__(self, parent)
self.button = KPushButton(i18n('About KDE'), self) self.button = KPushButton(i18n('About TDE'), self)
self.help = KTextEdit(helpText, '', self) self.help = KTextEdit(helpText, '', self)
layout = TQVBoxLayout(self, 4) layout = TQVBoxLayout(self, 4)
layout.addWidget(self.help) layout.addWidget(self.help)

@ -1,7 +1,7 @@
iconName = 'core' iconName = 'core'
labelText = 'KBugReport' labelText = 'KBugReport'
##~ if we wanted to, we could define the name of a KDE class used for lookup of ##~ if we wanted to, we could define the name of a TDE class used for lookup of
##~ the documentation url. The 'labelText' string above already ##~ the documentation url. The 'labelText' string above already
##~ specifies what we want. ##~ specifies what we want.
##~ docItemName = 'KBugReport' ##~ docItemName = 'KBugReport'
@ -11,7 +11,7 @@ from tdecore import i18n
from tdeui import TDEAboutDialog, KPushButton, KBugReport, KTextEdit from tdeui import TDEAboutDialog, KPushButton, KBugReport, KTextEdit
helpText = ("KDE provides a way to report bugs from applications. This dialog" helpText = ("TDE provides a way to report bugs from applications. This dialog"
"is typically available from the application 'Help' menu.") "is typically available from the application 'Help' menu.")

@ -7,7 +7,7 @@ from tdecore import i18n
from tdeui import KPushButton, KColorDialog, KColorPatch, KTextEdit from tdeui import KPushButton, KColorDialog, KColorPatch, KTextEdit
helpText = ("KDE provides a nifty common color selection dialog." helpText = ("TDE provides a nifty common color selection dialog."
"The color selection in the dialog is tracked via a SIGNAL " "The color selection in the dialog is tracked via a SIGNAL "
"connected to the KColorPatch area below.") "connected to the KColorPatch area below.")

@ -34,18 +34,18 @@ class MainFrame(TQFrame):
def doneClicked(self): def doneClicked(self):
print 'done searching' print('done searching')
def searchClicked(self): def searchClicked(self):
print 'searching: ', self.dlg.getText(), print('searching: ', self.dlg.getText(), end=' ')
if self.dlg.get_direction(): if self.dlg.get_direction():
print '(backwards) ', print('(backwards) ', end=' ')
else: else:
print '(forwards) ', print('(forwards) ', end=' ')
if self.dlg.case_sensitive(): if self.dlg.case_sensitive():
print '(case-sensitive)' print('(case-sensitive)')
else: else:
print '(case-insensitive)' print('(case-insensitive)')

@ -33,19 +33,19 @@ class MainFrame(TQFrame):
def doneClicked(self): def doneClicked(self):
print 'done replacing' print('done replacing')
def replaceClicked(self): def replaceClicked(self):
print 'replacing: ', self.dlg.getText() print('replacing: ', self.dlg.getText())
return return
if self.dlg.get_direction(): if self.dlg.get_direction():
print '(backwards) ', print('(backwards) ', end=' ')
else: else:
print '(forwards) ', print('(forwards) ', end=' ')
if self.dlg.case_sensitive(): if self.dlg.case_sensitive():
print '(case-sensitive)' print('(case-sensitive)')
else: else:
print '(case-insensitive)' print('(case-insensitive)')

@ -6,7 +6,7 @@ from tdeui import KPushButton, TDEFontDialog, KTextEdit
iconName = 'fonts' iconName = 'fonts'
labelText = 'TDEFontDialog' labelText = 'TDEFontDialog'
docParts = ('tdeui', 'TDEFontDialog') docParts = ('tdeui', 'TDEFontDialog')
helpText = ("KDE provides a font dialog box for users to select (can you " helpText = ("TDE provides a font dialog box for users to select (can you "
"guess??) fonts. The button below displays a font dialog box. " "guess??) fonts. The button below displays a font dialog box. "
"The font of this widget (the text widget you're reading) is used " "The font of this widget (the text widget you're reading) is used "
"as the default. If the dialog is accepted, the font of this " "as the default. If the dialog is accepted, the font of this "

@ -3,7 +3,7 @@ labelText = 'KMessageBox'
from random import random from random import random
from traceback import print_exc from traceback import print_exc
from StringIO import StringIO from io import StringIO
from PyTQt.qt import TQFrame, TQGridLayout, TQLabel, TQStringList, SIGNAL from PyTQt.qt import TQFrame, TQGridLayout, TQLabel, TQStringList, SIGNAL
from tdecore import i18n from tdecore import i18n
@ -87,11 +87,11 @@ class MainFrame(TQFrame):
def questionYesNo(self): def questionYesNo(self):
dlg = KMessageBox.questionYesNo(self, self.msg, self.caption) dlg = KMessageBox.questionYesNo(self, self.msg, self.caption)
print 'You pressed "%s"' % (self.responses.get(dlg, dlg), ) print('You pressed "%s"' % (self.responses.get(dlg, dlg), ))
def warningYesNoCancel(self): def warningYesNoCancel(self):
dlg = KMessageBox.warningYesNoCancel(self, self.msg, self.caption) dlg = KMessageBox.warningYesNoCancel(self, self.msg, self.caption)
print 'You pressed "%s"' % (self.responses.get(dlg, dlg), ) print('You pressed "%s"' % (self.responses.get(dlg, dlg), ))
def warningContinueCancelList(self): def warningContinueCancelList(self):
uiitem = KGuiItem('Time to Eat', 'favorites') uiitem = KGuiItem('Time to Eat', 'favorites')
@ -99,43 +99,43 @@ class MainFrame(TQFrame):
dlgid = '%s' % random() dlgid = '%s' % random()
args = self, self.msg, self.items, self.caption, uiitem, dlgid args = self, self.msg, self.items, self.caption, uiitem, dlgid
dlg = ctor(*args) dlg = ctor(*args)
print 'You pressed "%s"' % (self.responses.get(dlg, dlg), ) print('You pressed "%s"' % (self.responses.get(dlg, dlg), ))
def error(self): def error(self):
dlg = KMessageBox.error(self, self.err) dlg = KMessageBox.error(self, self.err)
print 'You pressed "%s"' % (self.responses.get(dlg, dlg), ) print('You pressed "%s"' % (self.responses.get(dlg, dlg), ))
def detailedError(self): def detailedError(self):
try: try:
x = self.thisAttributeDoesNotExist x = self.thisAttributeDoesNotExist
except (AttributeError, ), ex: except (AttributeError, ) as ex:
handle = StringIO() handle = StringIO()
print_exc(0, handle) print_exc(0, handle)
details = handle.getvalue() details = handle.getvalue()
dlg = KMessageBox.detailedError(self, self.err, details) dlg = KMessageBox.detailedError(self, self.err, details)
print 'You pressed "%s"' % (self.responses.get(dlg, dlg), ) print('You pressed "%s"' % (self.responses.get(dlg, dlg), ))
def sorry(self): def sorry(self):
dlg = KMessageBox.sorry(self, self.err) dlg = KMessageBox.sorry(self, self.err)
print 'You pressed "%s"' % (self.responses.get(dlg, dlg), ) print('You pressed "%s"' % (self.responses.get(dlg, dlg), ))
def detailedSorry(self): def detailedSorry(self):
try: try:
x = self.thisAttributeDoesNotExist x = self.thisAttributeDoesNotExist
except (AttributeError, ), ex: except (AttributeError, ) as ex:
handle = StringIO() handle = StringIO()
print_exc(0, handle) print_exc(0, handle)
details = handle.getvalue() details = handle.getvalue()
dlg = KMessageBox.detailedSorry(self, self.err, details) dlg = KMessageBox.detailedSorry(self, self.err, details)
print 'You pressed "%s"' % (self.responses.get(dlg, dlg), ) print('You pressed "%s"' % (self.responses.get(dlg, dlg), ))
def information(self): def information(self):
dlgid = '%s' % random() dlgid = '%s' % random()
dlg = KMessageBox.information(self, self.info, '', dlgid) dlg = KMessageBox.information(self, self.info, '', dlgid)
print 'You pressed "%s"' % (self.responses.get(dlg, dlg), ) print('You pressed "%s"' % (self.responses.get(dlg, dlg), ))
def informationList(self): def informationList(self):
dlgid = '%s' % random() dlgid = '%s' % random()
ctor = KMessageBox.informationList ctor = KMessageBox.informationList
dlg = ctor(self, self.info, self.items, '', dlgid) dlg = ctor(self, self.info, self.items, '', dlgid)
print 'You pressed "%s"' % (self.responses.get(dlg, dlg), ) print('You pressed "%s"' % (self.responses.get(dlg, dlg), ))

@ -5,7 +5,7 @@ from tdeui import KPushButton, KPasswordDialog, KTextEdit
iconName = 'password' iconName = 'password'
labelText = 'KPasswordDialog' labelText = 'KPasswordDialog'
docParts = ('tdeui', 'KPasswordDialog') docParts = ('tdeui', 'KPasswordDialog')
helpText = ("KDE provides two variations on the password dialog. The simple " helpText = ("TDE provides two variations on the password dialog. The simple "
"one shown here prompts for a password. The other type allows the " "one shown here prompts for a password. The other type allows the "
"user to enter a new password, and provides a second field to " "user to enter a new password, and provides a second field to "
"confirm the first entry.") "confirm the first entry.")

@ -7,7 +7,7 @@ from tdecore import i18n
from tdeui import KPushButton, KProgressDialog, KTextEdit from tdeui import KPushButton, KProgressDialog, KTextEdit
helpText = """KDE provides a ready-built dialog to display a bit of text and a helpText = """TDE provides a ready-built dialog to display a bit of text and a
progress bar.""" progress bar."""

@ -8,7 +8,7 @@ from tdecore import i18n
from tdeui import KPushButton, KTipDatabase, KTipDialog, KTextEdit from tdeui import KPushButton, KTipDatabase, KTipDialog, KTextEdit
helpText = ("The KDE standard Tip-of-the-Day dialog.") helpText = ("The TDE standard Tip-of-the-Day dialog.")
class MainFrame(TQFrame): class MainFrame(TQFrame):

@ -1,23 +1,23 @@
<tip category="PyKDE Sampler|General"> <tip category="PyTDE Sampler|General">
<html> <html>
<p>Don't tug on Superman's cape.</p> <p>Don't tug on Superman's cape.</p>
</html> </html>
</tip> </tip>
<tip category="PyKDE Sampler|General"> <tip category="PyTDE Sampler|General">
<html> <html>
<p>Don't spit into the wind.</p> <p>Don't spit into the wind.</p>
</html> </html>
</tip> </tip>
<tip category="PyKDE Sampler|General"> <tip category="PyTDE Sampler|General">
<html> <html>
<p>Don't pull the mask off the Lone Ranger.</p> <p>Don't pull the mask off the Lone Ranger.</p>
</html> </html>
</tip> </tip>
<tip category="PyKDE Sampler|General"> <tip category="PyTDE Sampler|General">
<html> <html>
<p>And don't mess around with <em>Jim</em>!</p> <p>And don't mess around with <em>Jim</em>!</p>
</html> </html>

@ -2,7 +2,7 @@ mods = ['dcop', 'tdecore', 'tdefx', 'tdeprint', 'tdesu', 'tdeui', 'tdefile', 'td
all = [] all = []
print 'Module,Item,Path,Contributor' print('Module,Item,Path,Contributor')
for mod in mods: for mod in mods:
module = __import__(mod) module = __import__(mod)
items = dir(module) items = dir(module)
@ -12,7 +12,7 @@ for mod in mods:
for item in items: for item in items:
all.append(item) all.append(item)
print '%s,%s,,,' % (mod, item, ) print('%s,%s,,,' % (mod, item, ))

@ -2,7 +2,7 @@ labelText = 'Icons'
iconName = 'icons' iconName = 'icons'
helpText = ("KDE icons are nice. " helpText = ("TDE icons are nice. "
"Select the children of this item to see for yourself.") "Select the children of this item to see for yourself.")

@ -26,6 +26,6 @@ class MainFrame(TQFrame):
import os import os
fn = os.path.abspath('.') fn = os.path.abspath('.')
print fn print(fn)
self.write = KWritePermsIcon(fn) self.write = KWritePermsIcon(fn)
self.write.reparent(self, 0, TQPoint(0,0), True) self.write.reparent(self, 0, TQPoint(0,0), True)

@ -68,8 +68,8 @@ def listmodules():
path = path.replace(samplerpath, '').replace(os.path.sep, '.') path = path.replace(samplerpath, '').replace(os.path.sep, '.')
try: try:
module = namedimport(path) module = namedimport(path)
except (ValueError, ImportError, ), exc: except (ValueError, ImportError, ) as exc:
print 'Exception %s importing %s' % (exc, path, ) print(('Exception %s importing %s' % (exc, path, )))
else: else:
modules.append((path, module)) modules.append((path, module))
modules.sort() modules.sort()

@ -25,11 +25,9 @@ class MainFrame(TQFrame):
def showWindowInfo(self): def showWindowInfo(self):
main = TDEApplication.kApplication() app = TDEApplication.kApplication()
print main
print main.mainWidget()
info = KWindowInfo(main) info = KWindowInfo(app.activeWindow())
info.message('Updated Window Info', 3) info.message('Updated Window Info', 3000)

@ -44,7 +44,7 @@ tdecore,TDEConfigSkeleton,,,
tdecore,TDEConfigSkeletonItem,,, tdecore,TDEConfigSkeletonItem,,,
tdecore,TDECrash,,, tdecore,TDECrash,,,
tdecore,KDCOPPropertyProxy,,, tdecore,KDCOPPropertyProxy,,,
tdecore,KDE,,, tdecore,TDE,,,
tdecore,KDesktopFile,,, tdecore,KDesktopFile,,,
tdecore,KEntry,,, tdecore,KEntry,,,
tdecore,KEntryKey,,, tdecore,KEntryKey,,,

@ -22,7 +22,7 @@ class MainFrame(TQFrame):
self.help = KTextEdit(helpText, '', self) self.help = KTextEdit(helpText, '', self)
data = csv.reader(open(contrib)) data = csv.reader(open(contrib))
header = data.next() header = next(data)
items = [item for item in data] items = [item for item in data]
self.table = table = TQTable(len(items), len(header), self) self.table = table = TQTable(len(items), len(header), self)

@ -3,13 +3,9 @@
""" """
import sys import sys
from tdecore import TDEApplication, TDECmdLineArgs
from tdeui import TDEMainWindow
from PyTQt.qt import TQVBoxLayout from PyTQt.qt import TQVBoxLayout
from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData
## relative import -- cry me a river! from tdeui import TDEMainWindow
import about
class SamplerRunnerWindow(TDEMainWindow): class SamplerRunnerWindow(TDEMainWindow):
def __init__(self, ctor): def __init__(self, ctor):
@ -35,14 +31,21 @@ def importItem(name):
names = name.split('.') names = name.split('.')
modname, itemname = names[0:-1], names[-1] modname, itemname = names[0:-1], names[-1]
print(str.join('.', modname))
mod = importName(str.join('.', modname)) mod = importName(str.join('.', modname))
return getattr(mod, itemname) return getattr(mod, itemname)
if __name__ == '__main__': if __name__ == '__main__':
options = [('+item', 'An item in the sys.path')] description = b"A runner application"
TDECmdLineArgs.init(sys.argv, about.about) version = b"1.0"
aboutData = TDEAboutData (b"", b"",\
version, description, TDEAboutData.License_GPL,\
b"(C) 2003 whoever the author is")
options = [(b'+item', b'An item in the sys.path')]
TDECmdLineArgs.init(sys.argv, aboutData)
TDECmdLineArgs.addCmdLineOptions(options) TDECmdLineArgs.addCmdLineOptions(options)
args = TDECmdLineArgs.parsedArgs() args = TDECmdLineArgs.parsedArgs()

@ -1,5 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
""" The PyKDE application sampler """ The PyTDE application sampler
This module defines the top-level widgets for displaying the sampler This module defines the top-level widgets for displaying the sampler
application. application.
@ -25,7 +25,6 @@ from tdeio import TDETrader
from tdeparts import createReadOnlyPart, createReadWritePart from tdeparts import createReadOnlyPart, createReadWritePart
from tdehtml import TDEHTMLPart from tdehtml import TDEHTMLPart
import about
import lib import lib
@ -114,7 +113,7 @@ class SamplerFrame(CommonFrame):
try: try:
frameType = module.builder() frameType = module.builder()
except (AttributeError, ): except (AttributeError, ):
print 'No sample callable defined in %s' % (module.name(), ) print('No sample callable defined in %s' % (module.name(), ))
else: else:
frame = frameType(self) frame = frameType(self)
self.setWidget(frame) self.setWidget(frame)
@ -132,7 +131,7 @@ class SourceFrame(CommonFrame):
def showModuleSource(self, item, module): def showModuleSource(self, item, module):
if not self.part: if not self.part:
print 'No part available for displaying python source.' print('No part available for displaying python source.')
return return
try: try:
modulefile = inspect.getabsfile(module.module) modulefile = inspect.getabsfile(module.module)
@ -147,7 +146,7 @@ class WebFrame(CommonFrame):
""" frame with part for viewing web pages """ frame with part for viewing web pages
""" """
docBase = 'http://www.riverbankcomputing.com/Docs/PyKDE3/classref/' docBase = 'http://www.riverbankcomputing.com/Docs/PyTDE3/classref/'
def __init__(self, parent): def __init__(self, parent):
CommonFrame.__init__(self, parent) CommonFrame.__init__(self, parent)
@ -155,7 +154,7 @@ class WebFrame(CommonFrame):
#part.connect(part, SIGNAL('tdehtmlMousePressEvent(a)'), self.onURL) #part.connect(part, SIGNAL('tdehtmlMousePressEvent(a)'), self.onURL)
def onURL(self, a): def onURL(self, a):
print '****', a print('****', a)
def showDocs(self, item, module): def showDocs(self, item, module):
try: try:
@ -207,7 +206,7 @@ class SamplerListView(TDEListView):
self.setRootIsDecorated(True) self.setRootIsDecorated(True)
modules = lib.listmodules() modules = lib.listmodules()
modules.sort(lambda a, b: cmp(a[0], b[0])) modules.sort(key=lambda a: a[0])
modmap = dict(modules) modmap = dict(modules)
modules = [(name.split('.'), name, mod) for name, mod in modules] modules = [(name.split('.'), name, mod) for name, mod in modules]
@ -233,7 +232,7 @@ class SamplerListView(TDEListView):
subitem.setPixmap(0, getIcon(module.icon())) subitem.setPixmap(0, getIcon(module.icon()))
subitem = item subitem = item
for root in roots.values(): for root in list(roots.values()):
self.setOpen(root, True) self.setOpen(root, True)
@ -272,8 +271,8 @@ class SamplerMainWindow(TDEMainWindow):
self.resize(640, 480) self.resize(640, 480)
height, width = self.height(), self.width() height, width = self.height(), self.width()
hSplit.setSizes([width * 0.35, width * 0.65]) hSplit.setSizes([int(width * 0.35), int(width * 0.65)])
vSplit.setSizes([height * 0.80, height * 0.20]) vSplit.setSizes([int(height * 0.80), int(height * 0.20)])
self.xmlRcFileName = os.path.abspath(os.path.join(os.path.dirname(__file__), 'sampler.rc')) self.xmlRcFileName = os.path.abspath(os.path.join(os.path.dirname(__file__), 'sampler.rc'))
self.setXMLFile(self.xmlRcFileName) self.setXMLFile(self.xmlRcFileName)
@ -357,7 +356,7 @@ class SamplerMainWindow(TDEMainWindow):
""" """
ret = KKeyDialog.configure(self.actionCollection(), self) ret = KKeyDialog.configure(self.actionCollection(), self)
print ret print(ret)
if ret == TQDialog.Accepted: if ret == TQDialog.Accepted:
actions = self.actionCollection() actions = self.actionCollection()
actions.writeShortcutSettings(None, appConfig()) actions.writeShortcutSettings(None, appConfig())
@ -404,12 +403,18 @@ class SamplerMainWindow(TDEMainWindow):
def reloadModule(self, item, module): def reloadModule(self, item, module):
print >> sys.__stdout__, 'reload: ', reload(module.module) print('reload: ', importlib.reload(module.module), file=sys.__stdout__)
if __name__ == '__main__': if __name__ == '__main__':
aboutdata = about.about() description = b"A sampler application"
TDECmdLineArgs.init(sys.argv, aboutdata) version = b"1.0"
aboutData = TDEAboutData (b"", b"",\
version, description, TDEAboutData.License_GPL,\
b"(C) 2003 whoever the author is")
options = [(b'+item', b'An item in the sys.path')]
TDECmdLineArgs.init(sys.argv, aboutData)
app = TDEApplication() app = TDEApplication()
splashpix = TQPixmap(os.path.join(lib.samplerpath, 'aboutkde.png')) splashpix = TQPixmap(os.path.join(lib.samplerpath, 'aboutkde.png'))

@ -1,2 +0,0 @@
iconName = 'wizard'
labelText = 'Wizards'

@ -1,2 +0,0 @@
iconName = 'wizard'
labelText = 'Wizard'

@ -1,7 +1,7 @@
labelText = 'X Windows Features' labelText = 'X Windows Features'
iconName = 'kcmx' iconName = 'kcmx'
helpText = """KDE and PyKDE allow interaction with the X Window system. Check helpText = """TDE and PyTDE allow interaction with the X Window system. Check
out the nifty samples below.""" out the nifty samples below."""
from PyTQt.qt import TQFrame, TQLabel, TQVBoxLayout from PyTQt.qt import TQFrame, TQLabel, TQVBoxLayout

@ -73,7 +73,7 @@ class QXEmbedExample(TQWidget):
def launchApp(self): def launchApp(self):
print "QXEmbedExample.launchApp(): Not implemented yet" print("QXEmbedExample.launchApp(): Not implemented yet")
def __tr(self,s,c = None): def __tr(self,s,c = None):
return tqApp.translate("QXEmbedExample",s,c) return tqApp.translate(b"QXEmbedExample",s.encode(),c)

@ -30,25 +30,36 @@ copyright holder.
import sys import sys
from PyTQt.qt import TQLabel from PyTQt.qt import TQLabel
from tdecore import TDEApplication, TDEIcon, TDEIconLoader from tdecore import TDEAboutData, TDEApplication, TDECmdLineArgs, TDEIcon, TDEIconLoader
from tdeui import TDEMainWindow, KSystemTray from tdeui import TDEMainWindow, KSystemTray
class MainWin (TDEMainWindow): class MainWin (TDEMainWindow):
def __init__ (self, *args): def __init__ (self, *args):
apply (TDEMainWindow.__init__, (self,) + args) TDEMainWindow.__init__(self, *args)
#-------------------- main ------------------------------------------------ #-------------------- main ------------------------------------------------
appName = "template" description = b"A basic application template"
app = TDEApplication (sys.argv, appName) version = b"1.0"
mainWindow = MainWin (None, "main window") aboutData = TDEAboutData (b"MyApp", b"MyApp",\
version, description, TDEAboutData.License_GPL,\
b"(C) 2003 whoever the author is")
aboutData.addAuthor (b"author1", b"whatever they did", b"email@somedomain")
aboutData.addAuthor (b"author2", b"they did something else", b"another@email.address")
TDECmdLineArgs.init (sys.argv, aboutData)
TDECmdLineArgs.addCmdLineOptions ([(b"+files", b"File to open")])
app = TDEApplication ()
mainWindow = MainWin(None, "main window")
icons = TDEIconLoader () icons = TDEIconLoader ()
systray = KSystemTray (mainWindow) systray = KSystemTray (mainWindow)
systray.setPixmap (icons.loadIcon("process-stop", TDEIcon.Desktop)) systray.setPixmap (icons.loadIcon("process-stop", TDEIcon.Desktop))
systray.show () systray.show ()
#mainWindow.show()
app.exec_loop() app.exec_loop()

@ -16,11 +16,6 @@ Information = 4
Sorry = 5 Sorry = 5
Error = 6 Error = 6
# Python 2.2.2 supplies these, but they're duplicated here
# for backward compatibility
False = 0
True = 1
class CustomDlg (KDialog): class CustomDlg (KDialog):
def __init__ (self, parent, name = "custom dlg", modal = False): def __init__ (self, parent, name = "custom dlg", modal = False):
KDialog.__init__ (self, parent, name, modal) KDialog.__init__ (self, parent, name, modal)
@ -127,10 +122,10 @@ class MessageDlg (KDialog):
def dlgTDEAboutDialog (parent): def dlgTDEAboutDialog (parent):
dlg = TDEAboutDialog (parent, 'about dialog', False) dlg = TDEAboutDialog (parent, 'about dialog', False)
dlg.setLogo (TQPixmap ("pytestimage.png")) dlg.setLogo (TQPixmap ("pytestimage.png"))
dlg.setTitle ("UISampler for PyKDE") dlg.setTitle ("UISampler for PyTDE")
dlg.setAuthor ("Jim Bublitz", "jbublitz@nwinternet.com", "http://www.riverbankcomputing.co.uk",\ dlg.setAuthor ("Jim Bublitz", "jbublitz@nwinternet.com", "http://www.riverbankcomputing.co.uk",\
"\n\nPyKDE -- Python bindings\n\tfor KDE") "\n\nPyTDE -- Python bindings\n\tfor TDE")
dlg.addContributor ("PyKDE list", "pytde@mats.gmd.de", TQString.null, TQString.null) dlg.addContributor ("PyTDE list", "pytde@mats.gmd.de", TQString.null, TQString.null)
dlg.show () dlg.show ()
@ -189,8 +184,8 @@ def dlgKKeyDialog (parent):
def dlgKLineEditDlg (parent): def dlgKLineEditDlg (parent):
result, ok = KLineEditDlg.getText ("Enter text", "<Your input here>", parent) result, ok = KLineEditDlg.getText ("Enter text", "<Your input here>", parent)
print "result", result print("result", result)
print "ok", ok print("ok", ok)
# pop up another dlg to show what happened in the KLineEditDlg # pop up another dlg to show what happened in the KLineEditDlg
if ok: if ok:
@ -227,6 +222,6 @@ def dlgKWizard (parent):
wiz.show () wiz.show ()
if __name__ == "__main__": if __name__ == "__main__":
print print()
print "Please run uisampler.py" print("Please run uisampler.py")
print print()

@ -103,6 +103,6 @@ def menuKWindowListMenu (parent):
if __name__ == "__main__": if __name__ == "__main__":
print print()
print "Please run uisampler.py" print("Please run uisampler.py")
print print()

@ -234,6 +234,6 @@ def miscQXEmbed (parent):
parent.currentPageObj = PageNotImpl (parent) parent.currentPageObj = PageNotImpl (parent)
if __name__ == "__main__": if __name__ == "__main__":
print print()
print "Please run uisampler.py" print("Please run uisampler.py")
print print()

@ -1,7 +1,7 @@
import time, sys import time, sys
from PyTQt.qt import TQLabel, TQFrame, TQColor, TQPushButton, SIGNAL, TQButtonGroup, TQRadioButton, TQt, TQString, TQChar,\ from PyTQt.qt import TQLabel, TQFrame, TQColor, TQPushButton, SIGNAL, TQButtonGroup, TQRadioButton, \
TQWidget, TQTimer TQt, TQString, TQChar, TQWidget, TQTimer
from tdecore import TDEApplication from tdecore import TDEApplication
from tdeui import KEdit, KComboBox, KColorCombo, KEditListBox, TDEListBox, KLineEdit, KRestrictedLine,\ from tdeui import KEdit, KComboBox, KColorCombo, KEditListBox, TDEListBox, KLineEdit, KRestrictedLine,\
@ -12,10 +12,6 @@ from tdeui import KEdit, KComboBox, KColorCombo, KEditListBox, TDEListBox, KLine
KIntNumInput, KDoubleNumInput, KPasswordEdit, KURLLabel, KPaletteTable,\ KIntNumInput, KDoubleNumInput, KPasswordEdit, KURLLabel, KPaletteTable,\
KSeparator KSeparator
if sys.version [:6] < "2.2.2":
False = 0
True = 1
class Page1: class Page1:
def __init__ (self, parent): def __init__ (self, parent):
self.page = parent.addPage () self.page = parent.addPage ()
@ -350,7 +346,7 @@ class Page5:
urlLbl.setGeometry (x, y, 100, 20) urlLbl.setGeometry (x, y, 100, 20)
urlLbl.show () urlLbl.show ()
url = KURLLabel ("http://riverbankcomputing.co.uk", "PyKDE", self.page) url = KURLLabel ("http://riverbankcomputing.co.uk", "PyTDE", self.page)
url.setGeometry (x, y + 20, 100, 20) url.setGeometry (x, y + 20, 100, 20)
url.setUseTips (True) url.setUseTips (True)
url.setTipText ("http://riverbankcomputing.co.uk") url.setTipText ("http://riverbankcomputing.co.uk")
@ -749,6 +745,6 @@ def widKURLLabel (parent):
if __name__ == "__main__": if __name__ == "__main__":
print print()
print "Please run uisampler.py" print("Please run uisampler.py")
print print()

@ -69,7 +69,7 @@ class ExampleForm(QXEmbedExample):
self.launchPid = pid ## cheap self.launchPid = pid ## cheap
TQTimer.singleShot(2000, self.embedLaunchedWindow) TQTimer.singleShot(2000, self.embedLaunchedWindow)
else: else:
print 'failed to start %s' % name print('failed to start %s' % name)
return return
def embedLaunchedWindow(self): def embedLaunchedWindow(self):
@ -101,16 +101,16 @@ class ExampleMain(TDEMainWindow):
if __name__ == '__main__': if __name__ == '__main__':
aname = 'PyKDE QXEmbed Sample' aname = b'PyTDE QXEmbed Sample'
desc = 'A Simple PyKDE QXEmbed Sample' desc = b'A Simple PyTDE QXEmbed Sample'
ver = '1.0' ver = b'1.0'
lic = TDEAboutData.License_GPL lic = TDEAboutData.License_GPL
author = 'Troy Melhase' author = b'Troy Melhase'
authormail = 'troy@gci.net' authormail = b'troy@gci.net'
about = TDEAboutData(aname, aname, ver, desc, lic, '%s (c) 2004' % authormail) about = TDEAboutData(aname, aname, ver, desc, lic, b'troy@gci.net (c) 2004')
about.addAuthor(author, 'hi, mom!', authormail) about.addAuthor(author, b'hi, mom!', authormail)
about.addAuthor ('Jim Bublitz', 'For PyKDE', 'jbublitz@nwinternet.com') about.addAuthor (b'Jim Bublitz', b'For PyTDE', b'jbublitz@nwinternet.com')
TDECmdLineArgs.init(sys.argv, about) TDECmdLineArgs.init(sys.argv, about)
app = TDEApplication() app = TDEApplication()
mainWindow = ExampleMain() mainWindow = ExampleMain()

@ -12,9 +12,6 @@ from uimenus import *
from uixml import * from uixml import *
from uimisc import * from uimisc import *
False = 0
True = not False
listItems = {"Dialogs": listItems = {"Dialogs":
{"TDEAboutDialog": ["TDEAboutApplication", "TDEAboutContainer", "KImageTrackLabel",\ {"TDEAboutDialog": ["TDEAboutApplication", "TDEAboutContainer", "KImageTrackLabel",\
"TDEAboutContainerBase", "TDEAboutContributor", "TDEAboutWidget"],\ "TDEAboutContainerBase", "TDEAboutContributor", "TDEAboutWidget"],\
@ -125,7 +122,7 @@ prefix = {"Dialogs": "dlg", "Widgets": "wid", "XML": "xml", "Menus/Toolbars": "m
mainGeom = TQRect (0, 0, 640, 500) mainGeom = TQRect (0, 0, 640, 500)
treeWidth = 220 treeWidth = 220
blankMsg = """ UISampler - provides examples of PyKDE widgets blankMsg = """ UISampler - provides examples of PyTDE widgets
Select a dialog/widget/menu/etc example from the tree at left Select a dialog/widget/menu/etc example from the tree at left
""" """
@ -133,9 +130,9 @@ Select a dialog/widget/menu/etc example from the tree at left
class MainWin (TDEMainWindow): class MainWin (TDEMainWindow):
def __init__ (self, *args): def __init__ (self, *args):
apply (TDEMainWindow.__init__, (self,) + args) TDEMainWindow.__init__(*(self,) + args)
self.setCaption ("Samples of PyKDE widget usage") self.setCaption ("Samples of PyTDE widget usage")
self.setGeometry (mainGeom) self.setGeometry (mainGeom)
# create the main view - list view on the left and an # create the main view - list view on the left and an
@ -174,10 +171,10 @@ class MainWin (TDEMainWindow):
self.mainView.setSizes ([treeWidth, 375]) self.mainView.setSizes ([treeWidth, 375])
self.tree.setRootIsDecorated (True) self.tree.setRootIsDecorated (True)
self.tree.setVScrollBarMode (TQScrollView.AlwaysOn) self.tree.setVScrollBarMode (TQScrollView.AlwaysOn)
topLevel = listItems.keys () topLevel = list(listItems.keys ())
for item_1 in topLevel: for item_1 in topLevel:
parent = TQListViewItem (self.tree, item_1) parent = TQListViewItem (self.tree, item_1)
secondLevel = listItems [item_1].keys () secondLevel = list(listItems [item_1].keys ())
for item_2 in secondLevel: for item_2 in secondLevel:
child = TQListViewItem (parent, item_2) child = TQListViewItem (parent, item_2)
for item_3 in listItems [item_1][item_2]: for item_3 in listItems [item_1][item_2]:
@ -187,11 +184,11 @@ class MainWin (TDEMainWindow):
if not lvItem: if not lvItem:
return return
if lvItem.text (0).latin1 () in listItems.keys (): if lvItem.text (0).latin1 () in list(listItems.keys ()):
return return
p = lvItem.parent () p = lvItem.parent ()
if p.text (0).latin1 () in listItems.keys (): if p.text (0).latin1 () in list(listItems.keys ()):
pfx = prefix [p.text (0).latin1 ()] pfx = prefix [p.text (0).latin1 ()]
funcCall = pfx + lvItem.text (0).latin1 () + "(self)" funcCall = pfx + lvItem.text (0).latin1 () + "(self)"
else: else:
@ -219,9 +216,9 @@ class MainWin (TDEMainWindow):
#-------------------- main ------------------------------------------------ #-------------------- main ------------------------------------------------
appName = "UISampler" appName = b"UISampler"
app = TDEApplication (sys.argv, appName) app = TDEApplication (sys.argv, appName)
mainWindow = MainWin (None, "main window") mainWindow = MainWin (None, b"main window")
mainWindow.show() mainWindow.show()
app.exec_loop() app.exec_loop()

@ -35,7 +35,7 @@ from tdeui import KDockWidget, TDEListBox, KStdAction
try: try:
from tdemdi import KMdi, KMdiMainFrm, KMdiChildView from tdemdi import KMdi, KMdiMainFrm, KMdiChildView
except (ImportError, ): except (ImportError, ):
print 'Exception importing KMDI; check your PyKDE installation' print('Exception importing KMDI; check your PyTDE installation')
sys.exit(1) sys.exit(1)
@ -186,16 +186,16 @@ class KmdiExample(KMdiMainFrm):
if __name__ == '__main__': if __name__ == '__main__':
aname = 'PyKDE KMDI Sample' aname = b'PyTDE KMDI Sample'
desc = 'A Simple PyKDE KMDI Sample' desc = b'A Simple PyTDE KMDI Sample'
ver = '1.0' ver = b'1.0'
lic = TDEAboutData.License_GPL lic = TDEAboutData.License_GPL
author = 'Troy Melhase' author = b'Troy Melhase'
authormail = 'troy@gci.net' authormail = b'troy@gci.net'
about = TDEAboutData(aname, aname, ver, desc, lic, '%s (c) 2004' % authormail) about = TDEAboutData(aname, aname, ver, desc, lic, b'troy@gci.net (c) 2004')
about.addAuthor(author, 'hi, mom!', authormail) about.addAuthor(author, b'hi, mom!', authormail)
about.addAuthor ('Jim Bublitz', 'For PyKDE', 'jbublitz@nwinternet.com') about.addAuthor (b'Jim Bublitz', b'For PyTDE', b'jbublitz@nwinternet.com')
TDECmdLineArgs.init(sys.argv, about) TDECmdLineArgs.init(sys.argv, about)
app = TDEApplication() app = TDEApplication()
mainWindow = KmdiExample() mainWindow = KmdiExample()

@ -1,6 +1,6 @@
""" """
This template constructs an application with menus, toolbar and statusbar. This template constructs an application with menus, toolbar and statusbar.
It uses KDE classes and methods that simplify the task of building and It uses TDE classes and methods that simplify the task of building and
operating a GUI. It is recommended that this approach be used, rather operating a GUI. It is recommended that this approach be used, rather
than the primitive approach in menuapp1.py than the primitive approach in menuapp1.py
""" """
@ -35,10 +35,6 @@ copyright holder.
""" """
False = 0
True = not False
import sys, os import sys, os
from PyTQt.qt import TQPopupMenu, SIGNAL, TQLabel, TQIconSet from PyTQt.qt import TQPopupMenu, SIGNAL, TQLabel, TQIconSet
@ -53,7 +49,7 @@ STATUSBAR_RIGHT = 3
class MainWin (TDEMainWindow): class MainWin (TDEMainWindow):
def __init__ (self, *args): def __init__ (self, *args):
apply (TDEMainWindow.__init__, (self,) + args) TDEMainWindow.__init__(self, *args)
self.initActions () self.initActions ()
self.setGeometry (0, 0, 350, 200) self.setGeometry (0, 0, 350, 200)
@ -143,8 +139,8 @@ class MainWin (TDEMainWindow):
# By using KStdAction here, the XMLGUI mechanism will automatically # By using KStdAction here, the XMLGUI mechanism will automatically
# create a 'View' menu and insert "Zoom In" and "Zoom Out" objects # create a 'View' menu and insert "Zoom In" and "Zoom Out" objects
# in it. This happens because before parsing our *ui.rc file, # in it. This happens because before parsing our *ui.rc file,
# the standard KDE file config/ui/ui_standards.rc is parsed, and # the standard TDE file config/ui/ui_standards.rc is parsed, and
# then our *ui.rc file is merged with the result - this gives KDE # then our *ui.rc file is merged with the result - this gives TDE
# menus and toolBars a standard "look" and item placement (including # menus and toolBars a standard "look" and item placement (including
# separators). Creating the KStdActions alone is sufficient - you # separators). Creating the KStdActions alone is sufficient - you
# could delete their references from the *ui.rc file and the menu # could delete their references from the *ui.rc file and the menu
@ -268,24 +264,23 @@ class MainWin (TDEMainWindow):
#-------------------- main ------------------------------------------------ #-------------------- main ------------------------------------------------
description = "A basic application template" description = b"A basic application template"
version = "1.0" version = b"1.0"
# The appName (xmlmenudemo - first argument) is required # The appName (xmlmenudemo - first argument) is required
# if the program is to automatically locate it *ui.rc file # if the program is to automatically locate it *ui.rc file
aboutData = TDEAboutData ("xmlmenudemo", "xmlmenudemo",\ aboutData = TDEAboutData (b"xmlmenudemo", b"xmlmenudemo",\
version, description, TDEAboutData.License_GPL,\ version, description, TDEAboutData.License_GPL,\
"(C) 2003 whoever the author is") b"(C) 2003 whoever the author is")
aboutData.addAuthor ("author1", "whatever they did", "email@somedomain") aboutData.addAuthor (b"author1", b"whatever they did", b"email@somedomain")
aboutData.addAuthor ("author2", "they did something else", "another@email.address") aboutData.addAuthor (b"author2", b"they did something else", b"another@email.address")
mainpath = os.path.dirname (os.path.abspath (sys.argv[0])) mainpath = os.path.dirname (os.path.abspath (sys.argv[0]))
TDECmdLineArgs.init (sys.argv, aboutData)
TDECmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) TDECmdLineArgs.init (sys.argv, aboutData)
TDECmdLineArgs.addCmdLineOptions ([(b"+files", b"File to open")])
app = TDEApplication () app = TDEApplication ()
mainWindow = MainWin (None, "main window") mainWindow = MainWin (None, b"main window")
mainWindow.show() mainWindow.show()
app.exec_loop() app.exec_loop()

@ -59,8 +59,8 @@ numericTypes = ["char", "bool", "short", "int", "long", "uchar", "ushort", "uint
stringTypes = ["TQString", "TQCString"] stringTypes = ["TQString", "TQCString"]
class DCOPExObj (DCOPObject): class DCOPExObj (DCOPObject):
def __init__ (self, objid = None): def __init__(self, objid = None):
if isinstance (objid, str): if isinstance (objid, bytes):
DCOPObject.__init__ (self, objid) DCOPObject.__init__ (self, objid)
else: else:
DCOPObject.__init__ (self) DCOPObject.__init__ (self)
@ -69,12 +69,12 @@ class DCOPExObj (DCOPObject):
def process (self, meth, data, replyType, replyData): def process (self, meth, data, replyType, replyData):
# normalize the method signature received # normalize the method signature received
meth = str (DCOPClient.normalizeFunctionSignature (meth)).replace (">", "> ") _meth = DCOPClient.normalizeFunctionSignature(meth).replace (">", "> ")
# see if this method is available from us via DCOP # see if this method is available from us via DCOP
# if we don't have it, maybe DCOPObject already provides it (eg - qt object) # if we don't have it, maybe DCOPObject already provides it (eg - qt object)
if not self.matchMethod (meth): if not self.matchMethod (_meth):
return DCOPObject.process(self, meth, data, replyType, replyData); return DCOPObject.process(self, _meth, data, replyType, replyData);
# demarshall the arg list for the actual method call and call the method # demarshall the arg list for the actual method call and call the method
s = TQDataStream (data, IO_ReadOnly) s = TQDataStream (data, IO_ReadOnly)
@ -84,7 +84,7 @@ class DCOPExObj (DCOPObject):
result = self.method.pymethod () result = self.method.pymethod ()
else: else:
for i in range (len (self.method.argtypes)): for i in range (len (self.method.argtypes)):
arglist.append (dcop_next (s, TQCString (self.method.argtypes [i]))) arglist.append (dcop_next (s, TQCString(self.method.argtypes[i])))
result = self.method.pymethod (*arglist) result = self.method.pymethod (*arglist)
@ -149,8 +149,9 @@ class DCOPExObj (DCOPObject):
def matchMethod (self, meth): def matchMethod (self, meth):
# find the method in the dict if it's there # find the method in the dict if it's there
self.method = None self.method = None
if meth in self.methods: _meth = meth.data()
self.method = self.methods [meth] if _meth in self.methods:
self.method = self.methods [_meth]
return self.method != None return self.method != None
def functions (self): def functions (self):
@ -158,7 +159,7 @@ class DCOPExObj (DCOPObject):
# from the entries in the self.methods dict # from the entries in the self.methods dict
funcs = DCOPObject.functions (self) funcs = DCOPObject.functions (self)
for func in self.methods.keys (): for func in self.methods.keys ():
funcs.append (" ".join ([self.methods [func].rtype, func])) funcs.append((" ".join([self.methods[func].rtype, func])).encode())
return funcs; return funcs;
class DCOPExMeth: class DCOPExMeth:
@ -173,7 +174,7 @@ class DCOPExMeth:
def parseMethod (self, method): def parseMethod (self, method):
# strip whitespace # strip whitespace
method = str (DCOPClient.normalizeFunctionSignature (method)).replace (">", "> ") method = DCOPClient.normalizeFunctionSignature(method.encode()).data().replace (">", "> ")
# the return type (rtype) and signature (sig) # the return type (rtype) and signature (sig)
self.rtype, tail = method.split (" ", 1) self.rtype, tail = method.split (" ", 1)
@ -191,7 +192,7 @@ class DCOPExMeth:
# the list of arg types # the list of arg types
self.argtypes = [] self.argtypes = []
args = tail [i + 1 : -1].split (",") args = tail [i + 1 : -2].split (",")
if args and args != [""]: if args and args != [""]:
for arg in args: for arg in args:
self.argtypes.append (arg.strip ()) self.argtypes.append (arg.strip ())

File diff suppressed because it is too large Load Diff

@ -1,22 +1,22 @@
print "\nTesting PyKDE module imports\n" print("\nTesting PyKDE module imports\n")
try: try:
import pytdeconfig import pytdeconfig
except: except:
print "Can't find pytdeconfig.py - please check installation" print("Can't find pytdeconfig.py - please check installation")
raise raise
pytdecfg = pytdeconfig.Configuration () pytdecfg = pytdeconfig.Configuration ()
#modules = ["dcop", "tdecore", "tdesu", "tdefx", "tdeui", "tdeio", "tdefile", "tdeparts", "tdehtml", "kjs", "tdespell", "tdeprint"] #modules = ["dcop", "tdecore", "tdesu", "tdefx", "tdeui", "tdeio", "tdefile", "tdeparts", "tdehtml", "kjs", "tdespell", "tdeprint"]
print "Modules built:" print("Modules built:")
print " ",pytdecfg.pytde_modules print(" ",pytdecfg.pytde_modules)
print print()
print "Importing:" print("Importing:")
print print()
for mod in pytdecfg.pytde_modules.split(): for mod in pytdecfg.pytde_modules.split():
print mod print(mod)
if mod != "tdesu": if mod != "tdesu":
exec ("import " + mod) exec ("import " + mod)
print print()

@ -1,6 +1,6 @@
#!/usr/bin/python #!/usr/bin/python
import sys, getopt, os, os.path, fnmatch, string, StringIO import sys, getopt, os, os.path, fnmatch, string, io
#---------- globals ---------- #---------- globals ----------
@ -28,7 +28,7 @@ def getOptions ():
args = [] args = []
if (optlist == []) or (len (args) != 1): if (optlist == []) or (len (args) != 1):
print '\nUsage: postproc -p<path> -o<operation> <filespec>\n' print('\nUsage: postproc -p<path> -o<operation> <filespec>\n')
return FALSE return FALSE
pattern = args [0] pattern = args [0]
@ -41,13 +41,13 @@ def checkOptions (optlist):
for pair in optlist: for pair in optlist:
if (pair [0] == '--path') or (pair [0] == '-p'): if (pair [0] == '--path') or (pair [0] == '-p'):
if not checkPath (pair [1]): if not checkPath (pair [1]):
print '\nPath ' + pair [1] + ' does not exist\n' print('\nPath ' + pair [1] + ' does not exist\n')
else: else:
havePath = TRUE havePath = TRUE
elif (pair [0] == '--op') or (pair [0] == '-o'): elif (pair [0] == '--op') or (pair [0] == '-o'):
if not checkOp (pair [1]): if not checkOp (pair [1]):
print '\nOperation ' + pair [1] + ' does not exist\n' print('\nOperation ' + pair [1] + ' does not exist\n')
else: else:
haveOp = TRUE haveOp = TRUE
@ -92,7 +92,7 @@ def trFix (filelist):
for fn in filelist: for fn in filelist:
m = open (opPath + fn, 'r') m = open (opPath + fn, 'r')
tmpname = os.path.splitext (fn) [0] + '.tmp' tmpname = os.path.splitext (fn) [0] + '.tmp'
tmp = StringIO.StringIO () tmp = io.StringIO ()
buff = m.readlines () buff = m.readlines ()
m.close () m.close ()
@ -106,7 +106,7 @@ def trFix (filelist):
i = i + 1 i = i + 1
# find classname # find classname
while (i < nLines) and (not string.find (buff [i], 'PyObject *sipClass_') == 0): while (i < nLines) and (not buff[i].find('PyObject *sipClass_') == 0):
tmp.write (buff [i]) tmp.write (buff [i])
i = i + 1 i = i + 1
@ -135,7 +135,7 @@ def trFix (filelist):
while (i < nLines): while (i < nLines):
# skip sipName_qt_tr table entry/write out everything else # skip sipName_qt_tr table entry/write out everything else
if string.find (buff [i], '{sipName_qt_tr') < 0: if buff[i].find('{sipName_qt_tr') < 0:
tmp.write (buff [i]) tmp.write (buff [i])
i = i + 1 i = i + 1
@ -152,7 +152,7 @@ def qtNoTr (filelist):
for fn in filelist: for fn in filelist:
m = open (opPath + fn, 'r') m = open (opPath + fn, 'r')
tmpname = os.path.splitext (fn) [0] + '.tmp' tmpname = os.path.splitext (fn) [0] + '.tmp'
tmp = StringIO.StringIO () tmp = io.StringIO ()
buff = m.readlines () buff = m.readlines ()
m.close () m.close ()
@ -160,7 +160,7 @@ def qtNoTr (filelist):
i = 0 i = 0
nLines = len (buff) nLines = len (buff)
while (i < nLines) and (string.find (buff [i], 'Q_OBJECT') < 0): while (i < nLines) and (buff[i].find('Q_OBJECT') < 0):
tmp.write (buff [i]) tmp.write (buff [i])
i = i + 1 i = i + 1
@ -189,7 +189,7 @@ def shpix ():
files = os.listdir (opPath) files = os.listdir (opPath)
fn = [] fn = []
for file in files: for file in files:
if string.find (file, "tdeuipart") >= 0 and file [-4:] == ".cpp": if file.find("tdeuipart") >= 0 and file [-4:] == ".cpp":
fn.append (file) fn.append (file)
if not fn: if not fn:
@ -206,9 +206,9 @@ def shpix ():
state = None state = None
for ln in range (0, len (buff)): for ln in range (0, len (buff)):
line = buff [ln] line = buff [ln]
if string.find (line, "sipTDESharedPixmap::resolution") >= 0: if line.find("sipTDESharedPixmap::resolution") >= 0:
state = "res" state = "res"
elif string.find (line, "sipTDESharedPixmap::setResolution") >= 0: elif line.find("sipTDESharedPixmap::setResolution") >= 0:
state = "setRes" state = "setRes"
else: else:
state = None state = None
@ -219,9 +219,9 @@ def shpix ():
ln = ln + 1 ln = ln + 1
line = buff [ln] line = buff [ln]
if state == "res": if state == "res":
buff [ln] = string.replace (line, "TQPaintDevice::resolution", "KPixmap::resolution") buff [ln] = line.replace("TQPaintDevice::resolution", "KPixmap::resolution")
elif state == "setRes": elif state == "setRes":
buff [ln] = string.replace (line, "TQPaintDevice::setResolution", "KPixmap::setResolution") buff [ln] = line.replace("TQPaintDevice::setResolution", "KPixmap::setResolution")
tmpfile = open (os.path.join (opPath, tmpname), 'w') tmpfile = open (os.path.join (opPath, tmpname), 'w')
for line in buff: for line in buff:
@ -244,13 +244,13 @@ def notify ():
tmpBuff = [] tmpBuff = []
flag = 0 flag = 0
for line in buff: for line in buff:
if string.find (line, "class KNotify:") >= 0: if line.find("class KNotify:") >= 0:
flag = 1 flag = 1
elif flag == 1 and string.find (line, "class KNotifyWidgetBase(TQWidget):") >= 0: elif flag == 1 and line.find("class KNotifyWidgetBase(TQWidget):") >= 0:
flag = 2 flag = 2
elif flag == 2 and string.find (line, "class KNotifyWidget(KNotifyWidgetBase):") >= 0: elif flag == 2 and line.find("class KNotifyWidget(KNotifyWidgetBase):") >= 0:
for ln in tmpBuff: for ln in tmpBuff:
tmpfile.write (ln) tmpfile.write (ln)
flag = 0 flag = 0
@ -270,7 +270,7 @@ def varhier (filelist):
for fn in filelist: for fn in filelist:
m = open (opPath + fn, 'r') m = open (opPath + fn, 'r')
tmpname = os.path.splitext (fn) [0] + '.tmp' tmpname = os.path.splitext (fn) [0] + '.tmp'
tmp = StringIO.StringIO () tmp = io.StringIO ()
buff = m.readlines () buff = m.readlines ()
m.close () m.close ()
@ -278,11 +278,11 @@ def varhier (filelist):
i = 0 i = 0
nLines = len (buff) nLines = len (buff)
while (i < nLines) and (string.find (buff [i], 'PyMethodDef *sipClassVarHierTab_') < 0): while (i < nLines) and (buff[i].find('PyMethodDef *sipClassVarHierTab_') < 0):
tmp.write (buff [i]) tmp.write (buff [i])
i = i + 1 i = i + 1
while (i < nLines) and (string.find (buff [i], "};") < 0): while (i < nLines) and (buff[i].find("};") < 0):
tmp.write (buff [i]) tmp.write (buff [i])
i = i + 1 i = i + 1
@ -293,7 +293,7 @@ def varhier (filelist):
if not flag: if not flag:
tmp.write (buff [i]) tmp.write (buff [i])
if flag and not ((string.find (buff [i], "};") >= 0) or (string.find (buff [i], "NULL") >= 0)): if flag and not ((buff[i].find("};") >= 0) or (buff[i].find("NULL") >= 0)):
flag = FALSE flag = FALSE
i = i + 1 i = i + 1
@ -312,7 +312,7 @@ def appQuit (filelist):
for fn in filelist: for fn in filelist:
m = open (opPath + fn, 'r') m = open (opPath + fn, 'r')
tmpname = os.path.splitext (fn) [0] + '.tmp' tmpname = os.path.splitext (fn) [0] + '.tmp'
tmp = StringIO.StringIO () tmp = io.StringIO ()
buff = m.readlines () buff = m.readlines ()
m.close () m.close ()
@ -320,20 +320,20 @@ def appQuit (filelist):
i = 0 i = 0
nLines = len (buff) nLines = len (buff)
while (i < nLines) and (string.find (buff [i], 'import libsip') < 0): while (i < nLines) and (buff[i].find('import libsip') < 0):
tmp.write (buff [i]) tmp.write (buff [i])
i = i + 1 i = i + 1
tmp.write (buff [i] + "\nfrom PyTQt.qt import TQCloseEvent") tmp.write (buff [i] + "\nfrom PyTQt.qt import TQCloseEvent")
i = i + 1 i = i + 1
while (i < nLines) and (string.find (buff [i], "class TDEApplication") < 0): while (i < nLines) and (buff[i].find("class TDEApplication") < 0):
tmp.write (buff [i]) tmp.write (buff [i])
i = i + 1 i = i + 1
count = 0 count = 0
while count < 2: while count < 2:
while (i < nLines) and (string.find (buff [i], "return") < 0): while (i < nLines) and (buff[i].find("return") < 0):
tmp.write (buff [i]) tmp.write (buff [i])
i = i + 1 i = i + 1
@ -408,9 +408,9 @@ def fixSignal (filelist):
count = 0 count = 0
for line in m: for line in m:
if count < times: if count < times:
if string.find (line, "proxySlot(unsigned long)") > 0\ if line.find("proxySlot(unsigned long)") > 0\
or string.find (line, "proxySlot(unsigned long a0)") > 0: or line.find("proxySlot(unsigned long a0)") > 0:
line = string.replace (line, "unsigned long", "WId") line = line.replace("unsigned long", "WId")
count = count + 1 count = count + 1
n.write (line) n.write (line)
@ -439,13 +439,13 @@ def kjsfix (filelist):
purevirt = ["toPrimitive", "toBoolean", "toNumber", "toString", "toObject"] purevirt = ["toPrimitive", "toBoolean", "toNumber", "toString", "toObject"]
while (i < nLines): while (i < nLines):
if string.find (buff [i], "KJS::ExecState") >= 0: if buff[i].find("KJS::ExecState") >= 0:
for pv in purevirt: for pv in purevirt:
if string.find (buff [i], pv) >= 0: if buff[i].find(pv) >= 0:
i = i + 2 i = i + 2
buff [i] = "\t\treturn KJS::ObjectImp::%s(a0);" % pv buff [i] = "\t\treturn KJS::ObjectImp::%s(a0);" % pv
i = i + 1 i = i + 1
while string.find (buff [i], "}") < 0: while buff[i].find("}") < 0:
buff [i] = "" buff [i] = ""
i = i + 1 i = i + 1
break break
@ -474,37 +474,37 @@ if operation != "shpix":
if operation == "tr": if operation == "tr":
if not trFix (filelist): if not trFix (filelist):
print 'operation error -- tr' print('operation error -- tr')
sys.exit (-1) sys.exit (-1)
elif operation == 'qtNoTr': elif operation == 'qtNoTr':
if not qtNoTr (filelist): if not qtNoTr (filelist):
print 'operation error -- qtNoTr' print('operation error -- qtNoTr')
sys.exit (-1) sys.exit (-1)
elif operation == 'shpix': elif operation == 'shpix':
if not shpix (): if not shpix ():
print 'operation error -- shpix' print('operation error -- shpix')
sys.exit (-1) sys.exit (-1)
elif operation == "notify": elif operation == "notify":
if not notify (): if not notify ():
print "operation error -- notify" print("operation error -- notify")
sys.exit (-1) sys.exit (-1)
elif operation == "varhier": elif operation == "varhier":
if not varhier (filelist): if not varhier (filelist):
print "operation error -- varhier" print("operation error -- varhier")
sys.exit (-1) sys.exit (-1)
elif operation == "appQuit": elif operation == "appQuit":
if not appQuit (filelist): if not appQuit (filelist):
print "operation error -- appQuit" print("operation error -- appQuit")
sys.exit (-1) sys.exit (-1)
elif operation == "kjsfix": elif operation == "kjsfix":
if not kjsfix (filelist): if not kjsfix (filelist):
print "operation error -- kjsfix" print("operation error -- kjsfix")
sys.exit (-1) sys.exit (-1)
elif operation == "fixTQVariant": elif operation == "fixTQVariant":
@ -514,7 +514,7 @@ elif operation == "fixTQVariant":
elif operation == "fixSignal": elif operation == "fixSignal":
if not fixSignal (filelist): if not fixSignal (filelist):
print "operation error -- fixSignal" print("operation error -- fixSignal")
sys.exit (-1) sys.exit (-1)
sys.exit (0) sys.exit (0)

@ -51,7 +51,7 @@ subst = $DST/extra/kde350
import = qtmod.sip (TQt_3_0_0 TQt_4_0_0 WS_X11) import = qtmod.sip (TQt_3_0_0 TQt_4_0_0 WS_X11)
importpath = $IMP importpath = $IMP
sipslot = callBackObj callBackSlot dcopClient sipslot = callBackObj callBackSlot dcopClient
include = ../extra/kde350/dcop include = ./extra/kde350/dcop
libs = -L@BL_TDEDIR@ -lsip -lqtcmodule -lDCOP libs = -L@BL_TDEDIR@ -lsip -lqtcmodule -lDCOP
define = "KDE_DEPRECATED", "" define = "KDE_DEPRECATED", ""
define = "DCOP_EXPORT", "" define = "DCOP_EXPORT", ""
@ -184,7 +184,7 @@ import = tdeui
importpath = $IMP importpath = $IMP
amend = * ctor parent /TransferThis/ amend = * ctor parent /TransferThis/
amend = * all parent /Transfer/ amend = * all parent /Transfer/
include = ../extra/kde350/tdeio @KDE_INCLUDEPATH@/tdeio ../tdecore include = ./extra/kde350/tdeio @KDE_INCLUDEPATH@/tdeio ../tdecore
libs = -L@BL_TDEDIR@ -lsip -lqtcmodule -lDCOP -ltdeio -ltdeui -ltdecore -ldcopcmodule\ libs = -L@BL_TDEDIR@ -lsip -lqtcmodule -lDCOP -ltdeio -ltdeui -ltdecore -ldcopcmodule\
-ltdecorecmodule -ltdeuicmodule -ltdecorecmodule -ltdeuicmodule
sipslot = sipslot =

@ -51,7 +51,7 @@ subst = $DST/extra/kde351
import = qtmod.sip (TQt_3_0_0 TQt_4_0_0 WS_X11) import = qtmod.sip (TQt_3_0_0 TQt_4_0_0 WS_X11)
importpath = $IMP importpath = $IMP
sipslot = callBackObj callBackSlot dcopClient sipslot = callBackObj callBackSlot dcopClient
include = ../extra/kde351/dcop include = ./extra/kde351/dcop
libs = -L@BL_TDEDIR@ -lsip -lqtcmodule -lDCOP libs = -L@BL_TDEDIR@ -lsip -lqtcmodule -lDCOP
define = "KDE_DEPRECATED", "" define = "KDE_DEPRECATED", ""
define = "DCOP_EXPORT", "" define = "DCOP_EXPORT", ""
@ -184,7 +184,7 @@ import = tdeui
importpath = $IMP importpath = $IMP
amend = * ctor parent /TransferThis/ amend = * ctor parent /TransferThis/
amend = * all parent /Transfer/ amend = * all parent /Transfer/
include = ../extra/kde351/tdeio @KDE_INCLUDEPATH@/tdeio ../tdecore include = ./extra/kde351/tdeio @KDE_INCLUDEPATH@/tdeio ../tdecore
libs = -L@BL_TDEDIR@ -lsip -lqtcmodule -lDCOP -ltdeio -ltdeui -ltdecore -ldcopcmodule\ libs = -L@BL_TDEDIR@ -lsip -lqtcmodule -lDCOP -ltdeio -ltdeui -ltdecore -ldcopcmodule\
-ltdecorecmodule -ltdeuicmodule -ltdecorecmodule -ltdeuicmodule
sipslot = sipslot =

@ -51,7 +51,7 @@ subst = $DST/extra/kde352
import = qtmod.sip (TQt_3_0_0 TQt_4_0_0 WS_X11) import = qtmod.sip (TQt_3_0_0 TQt_4_0_0 WS_X11)
importpath = $IMP importpath = $IMP
sipslot = callBackObj callBackSlot dcopClient sipslot = callBackObj callBackSlot dcopClient
include = ../extra/kde352/dcop include = ./extra/kde352/dcop
libs = -L@BL_TDEDIR@ -lsip -lqtcmodule -lDCOP libs = -L@BL_TDEDIR@ -lsip -lqtcmodule -lDCOP
define = "KDE_DEPRECATED", "" define = "KDE_DEPRECATED", ""
define = "DCOP_EXPORT", "" define = "DCOP_EXPORT", ""
@ -184,7 +184,7 @@ import = tdeui
importpath = $IMP importpath = $IMP
amend = * ctor parent /TransferThis/ amend = * ctor parent /TransferThis/
amend = * all parent /Transfer/ amend = * all parent /Transfer/
include = ../extra/kde352/tdeio @KDE_INCLUDEPATH@/tdeio ../tdecore include = ./extra/kde352/tdeio @KDE_INCLUDEPATH@/tdeio ../tdecore
libs = -L@BL_TDEDIR@ -lsip -lqtcmodule -lDCOP -ltdeio -ltdeui -ltdecore -ldcopcmodule\ libs = -L@BL_TDEDIR@ -lsip -lqtcmodule -lDCOP -ltdeio -ltdeui -ltdecore -ldcopcmodule\
-ltdecorecmodule -ltdeuicmodule -ltdecorecmodule -ltdeuicmodule
sipslot = sipslot =

@ -51,7 +51,7 @@ subst = $DST/extra/kde353
import = qtmod.sip (TQt_3_0_0 TQt_4_0_0 WS_X11) import = qtmod.sip (TQt_3_0_0 TQt_4_0_0 WS_X11)
importpath = $IMP importpath = $IMP
sipslot = callBackObj callBackSlot dcopClient sipslot = callBackObj callBackSlot dcopClient
include = ../extra/kde353/dcop include = ./extra/kde353/dcop
libs = -L@BL_TDEDIR@ -lsip -lqtcmodule -lDCOP libs = -L@BL_TDEDIR@ -lsip -lqtcmodule -lDCOP
define = "KDE_DEPRECATED", "" define = "KDE_DEPRECATED", ""
define = "DCOP_EXPORT", "" define = "DCOP_EXPORT", ""
@ -184,7 +184,7 @@ import = tdeui
importpath = $IMP importpath = $IMP
amend = * ctor parent /TransferThis/ amend = * ctor parent /TransferThis/
amend = * all parent /Transfer/ amend = * all parent /Transfer/
include = ../extra/kde353/tdeio @KDE_INCLUDEPATH@/tdeio ../tdecore include = ./extra/kde353/tdeio @KDE_INCLUDEPATH@/tdeio ../tdecore
libs = -L@BL_TDEDIR@ -lsip -lqtcmodule -lDCOP -ltdeio -ltdeui -ltdecore -ldcopcmodule\ libs = -L@BL_TDEDIR@ -lsip -lqtcmodule -lDCOP -ltdeio -ltdeui -ltdecore -ldcopcmodule\
-ltdecorecmodule -ltdeuicmodule -ltdecorecmodule -ltdeuicmodule
sipslot = sipslot =

@ -88,7 +88,7 @@ public:
virtual bool process (const TQCString&, const TQByteArray&, TQCString&, TQByteArray&); virtual bool process (const TQCString&, const TQByteArray&, TQCString&, TQByteArray&);
DCOPClientTransaction* beginTransaction (); DCOPClientTransaction* beginTransaction ();
void endTransaction (DCOPClientTransaction*, TQCString&, TQByteArray&); void endTransaction (DCOPClientTransaction*, TQCString&, TQByteArray&);
TQ_INT32 transactionId (); TQ_INT32 transactionId ();
bool isApplicationRegistered (const TQCString&); bool isApplicationRegistered (const TQCString&);
QCStringList registeredApplications (); QCStringList registeredApplications ();
QCStringList remoteObjects (const TQCString&, bool* = 0); QCStringList remoteObjects (const TQCString&, bool* = 0);
@ -96,10 +96,10 @@ public:
QCStringList remoteFunctions (const TQCString&, const TQCString&, bool* = 0); QCStringList remoteFunctions (const TQCString&, const TQCString&, bool* = 0);
bool receive (const TQCString&, const TQCString&, const TQCString&, const TQByteArray&, TQCString& /Out/, TQByteArray& /Out/); bool receive (const TQCString&, const TQCString&, const TQCString&, const TQByteArray&, TQCString& /Out/, TQByteArray& /Out/);
bool find (const TQCString&, const TQCString&, const TQCString&, const TQByteArray&, TQCString& /Out/, TQByteArray& /Out/); bool find (const TQCString&, const TQCString&, const TQCString&, const TQByteArray&, TQCString& /Out/, TQByteArray& /Out/);
static TQCString normalizeFunctionSignature (const TQCString&); static TQCString normalizeFunctionSignature (const TQCString&);
TQCString senderId () const; TQCString senderId () const;
void setDefaultObject (const TQCString&); void setDefaultObject (const TQCString&);
TQCString defaultObject () const; TQCString defaultObject () const;
void setNotifications (bool); void setNotifications (bool);
void setDaemonMode (bool); void setDaemonMode (bool);

@ -141,7 +141,7 @@ void dcop_next (TQDataStream&, TQCString&);
{ {
TQ_INT8 res; TQ_INT8 res;
*a0 >> res; *a0 >> res;
return PyInt_FromLong ((long)res); return PyLong_FromLong ((long)res);
} }
else if (*a1 == "bool") else if (*a1 == "bool")
{ {
@ -153,7 +153,7 @@ void dcop_next (TQDataStream&, TQCString&);
{ {
int res; int res;
*a0 >> res; *a0 >> res;
return PyInt_FromLong ((long)res); return PyLong_FromLong ((long)res);
} }
else if (*a1 == "long") else if (*a1 == "long")
{ {
@ -165,19 +165,19 @@ void dcop_next (TQDataStream&, TQCString&);
{ {
short res; short res;
*a0 >> res; *a0 >> res;
return PyInt_FromLong ((long)res); return PyLong_FromLong ((long)res);
} }
if (*a1 == "uchar" || *a1 == "unsigned char") if (*a1 == "uchar" || *a1 == "unsigned char")
{ {
TQ_UINT8 res; TQ_UINT8 res;
*a0 >> res; *a0 >> res;
return PyInt_FromLong ((long)res); return PyLong_FromLong ((long)res);
} }
else if (*a1 == "uint" || *a1 == "unsigned int") else if (*a1 == "uint" || *a1 == "unsigned int")
{ {
unsigned int res; unsigned int res;
*a0 >> res; *a0 >> res;
return PyInt_FromLong ((long)res); return PyLong_FromLong ((long)res);
} }
else if (*a1 == "ulong" || *a1 == "unsigned long") else if (*a1 == "ulong" || *a1 == "unsigned long")
{ {
@ -201,7 +201,7 @@ void dcop_next (TQDataStream&, TQCString&);
{ {
unsigned short res; unsigned short res;
*a0 >> res; *a0 >> res;
return PyInt_FromLong ((long)res); return PyLong_FromLong ((long)res);
} }
else if (*a1 == "float") else if (*a1 == "float")
{ {
@ -315,7 +315,7 @@ void dcop_next (TQDataStream&, TQCString&);
{ {
unsigned int res; unsigned int res;
*a0 >> res; *a0 >> res;
return PyInt_FromLong ((long)res); return PyLong_FromLong ((long)res);
} }
else if (*a1 == "DCOPRef") else if (*a1 == "DCOPRef")
{ {

@ -35,7 +35,7 @@ class KCalendarSystemFactory
public: public:
KCalendarSystemFactory (); KCalendarSystemFactory ();
static KCalendarSystem* create (const TQString& = TQString ::fromLatin1 ("gregorian" ), const TDELocale* = 0); static KCalendarSystem* create (const TQString& = TQString ::fromUtf8 ("gregorian" ), const TDELocale* = 0);
static TQStringList calendarSystems (); static TQStringList calendarSystems ();
}; // class KCalendarSystemFactory }; // class KCalendarSystemFactory

@ -175,7 +175,7 @@ protected:
for (it = map.begin (); it != map.end (); ++it) for (it = map.begin (); it != map.end (); ++it)
{ {
key = PyInt_FromLong ((int) it.key ()); key = PyLong_FromLong ((int) it.key ());
value = sipConvertFromInstance ((void *)&(it.data ()), sipClass_TDEShortcut, sipTransferObj); value = sipConvertFromInstance ((void *)&(it.data ()), sipClass_TDEShortcut, sipTransferObj);
if ((value == NULL) || (PyDict_SetItem (dict, key, value) < 0)) if ((value == NULL) || (PyDict_SetItem (dict, key, value) < 0))
{ {
@ -208,14 +208,14 @@ protected:
{ {
cValue = (TDEShortcut *)sipForceConvertToType(value, sipType_TDEShortcut, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); cValue = (TDEShortcut *)sipForceConvertToType(value, sipType_TDEShortcut, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr);
if (iserr || !PyInt_Check (key)) if (iserr || !PyLong_Check (key))
{ {
*sipIsErr = 1; *sipIsErr = 1;
delete kbmap; delete kbmap;
return 0; return 0;
} }
kbmap->insert ((TDECompletionBase::KeyBindingType)PyInt_AS_LONG (key), *cValue); kbmap->insert ((TDECompletionBase::KeyBindingType)PyLong_AS_LONG (key), *cValue);
} }
*sipCppPtr = kbmap; *sipCppPtr = kbmap;

@ -91,7 +91,7 @@ public:
// Convert a Python instance to a Ptr on the heap. // Convert a Python instance to a Ptr on the heap.
if (sipIsErr == NULL) if (sipIsErr == NULL)
return PyInstance_Check(sipPy); return PyType_Check(sipPy);
int iserr = 0; int iserr = 0;
TDELockFile *cpp = (TDELockFile *)sipForceConvertToType(sipPy, sipType_TDELockFile, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); TDELockFile *cpp = (TDELockFile *)sipForceConvertToType(sipPy, sipType_TDELockFile, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr);

@ -143,7 +143,7 @@ TQString expandMacrosShellQuote (const TQString&, const TQMap<TQStr
for (it = map.begin (); it != map.end (); ++it) for (it = map.begin (); it != map.end (); ++it)
{ {
TQChar acpp = it.key (); TQChar acpp = it.key ();
PyObject *binst = PyString_FromString ((char *)((TQString *)&it.data ())); PyObject *binst = SIPBytes_FromString ((char *)((TQString *)&it.data ()));
PyObject *ainst; PyObject *ainst;
if (((ainst = sipConvertFromNewType(new TQChar(acpp), sipType_TQChar, sipTransferObj)) == NULL) if (((ainst = sipConvertFromNewType(new TQChar(acpp), sipType_TQChar, sipTransferObj)) == NULL)
|| (binst == NULL) || (binst == NULL)
@ -232,7 +232,7 @@ TQString expandMacrosShellQuote (const TQString&, const TQMap<TQStr
for (it = map.begin (); it != map.end (); ++it) for (it = map.begin (); it != map.end (); ++it)
{ {
TQStringList bcpp = it.data (); TQStringList bcpp = it.data ();
PyObject *ainst = PyString_FromString ((char *)((TQString *)&it.key ())); PyObject *ainst = SIPBytes_FromString ((char *)((TQString *)&it.key ()));
PyObject *binst; PyObject *binst;
if (((binst = sipConvertFromNewType(new TQStringList(bcpp), sipType_TQStringList, sipTransferObj)) == NULL) if (((binst = sipConvertFromNewType(new TQStringList(bcpp), sipType_TQStringList, sipTransferObj)) == NULL)
|| (ainst == NULL) || (ainst == NULL)

@ -92,7 +92,7 @@ private:
// Convert a Python instance to a Ptr on the heap. // Convert a Python instance to a Ptr on the heap.
if (sipIsErr == NULL) if (sipIsErr == NULL)
return PyInstance_Check(sipPy); return PyType_Check(sipPy);
int iserr = 0; int iserr = 0;
KMountPoint *cpp = (KMountPoint *)sipForceConvertToType(sipPy, sipType_KMountPoint, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); KMountPoint *cpp = (KMountPoint *)sipForceConvertToType(sipPy, sipType_KMountPoint, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr);

@ -235,7 +235,7 @@ public:
for (int i = 0; i < PyList_Size (a0); i++) for (int i = 0; i < PyList_Size (a0); i++)
{ {
elem = PyList_GET_ITEM (a0, i); elem = PyList_GET_ITEM (a0, i);
*sipCpp << PyString_AsString (elem); *sipCpp << sipBytes_AsString (elem);
} }

@ -44,7 +44,7 @@ public:
bool close (); bool close ();
%If ( KDE_3_2_0 - ) %If ( KDE_3_2_0 - )
static bool backupFile (const TQString&, const TQString& = TQString ::null , const TQString& = TQString ::fromLatin1 ("~" )); static bool backupFile (const TQString&, const TQString& = TQString ::null , const TQString& = TQString ::fromUtf8 ("~" ));
%End %End

@ -159,7 +159,7 @@ private:
// Convert a Python instance to a Ptr on the heap. // Convert a Python instance to a Ptr on the heap.
if (sipIsErr == NULL) if (sipIsErr == NULL)
return PyInstance_Check(sipPy); return PyType_Check(sipPy);
int iserr = 0; int iserr = 0;
KTimezoneSource *cpp = (KTimezoneSource *)sipForceConvertToType(sipPy, sipType_KTimezoneSource, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); KTimezoneSource *cpp = (KTimezoneSource *)sipForceConvertToType(sipPy, sipType_KTimezoneSource, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr);

@ -60,53 +60,53 @@ public:
KURL (const KURL&); KURL (const KURL&);
KURL (const TQUrl&); KURL (const TQUrl&);
KURL (const KURL&, const TQString&, int = 0); KURL (const KURL&, const TQString&, int = 0);
TQString protocol () const; TQString protocol () const;
void setProtocol (const TQString&); void setProtocol (const TQString&);
%If ( KDE_3_2_0 - ) %If ( KDE_3_2_0 - )
int uriMode () const; int uriMode () const;
%End %End
TQString user () const; TQString user () const;
void setUser (const TQString&); void setUser (const TQString&);
bool hasUser () const; bool hasUser () const;
TQString pass () /PyName=pass_/; TQString pass () /PyName=pass_/;
void setPass (const TQString&); void setPass (const TQString&);
bool hasPass () const; bool hasPass () const;
TQString host () const; TQString host () const;
void setHost (const TQString&); void setHost (const TQString&);
bool hasHost () const; bool hasHost () const;
ushort port () const; ushort port () const;
void setPort (ushort); void setPort (ushort);
TQString path () const; TQString path () const;
TQString path (int) const; TQString path (int) const;
void setPath (const TQString&); void setPath (const TQString&);
bool hasPath () const; bool hasPath () const;
void cleanPath (bool = 0); void cleanPath (bool = 0);
void adjustPath (int); void adjustPath (int);
void setEncodedPathAndQuery (const TQString&, int = 0); void setEncodedPathAndQuery (const TQString&, int = 0);
void setEncodedPath (const TQString&, int = 0); void setEncodedPath (const TQString&, int = 0);
TQString encodedPathAndQuery (int = 0, bool = 0, int = 0) const; TQString encodedPathAndQuery (int = 0, bool = 0, int = 0) const;
void setQuery (const TQString&, int = 0); void setQuery (const TQString&, int = 0);
TQString query () const; TQString query () const;
TQString ref () const; TQString ref () const;
void setRef (const TQString&); void setRef (const TQString&);
bool hasRef () const; bool hasRef () const;
TQString htmlRef () const; TQString htmlRef () const;
TQString encodedHtmlRef () const; TQString encodedHtmlRef () const;
void setHTMLRef (const TQString&); void setHTMLRef (const TQString&);
bool hasHTMLRef () const; bool hasHTMLRef () const;
bool isValid () const; bool isValid () const;
bool isMalformed () const; bool isMalformed () const;
bool isLocalFile () const; bool isLocalFile () const;
void setFileEncoding (const TQString&); void setFileEncoding (const TQString&);
TQString fileEncoding () const; TQString fileEncoding () const;
bool hasSubURL () const; bool hasSubURL () const;
void addPath (const TQString&); void addPath (const TQString&);
TQString queryItem (const TQString&) const; TQString queryItem (const TQString&) const;
%If ( KDE_3_2_0 - ) %If ( KDE_3_2_0 - )
TQString queryItem (const TQString&, int) const; TQString queryItem (const TQString&, int) const;
%End %End
@ -117,10 +117,10 @@ public:
CaseInsensitiveKeys CaseInsensitiveKeys
}; };
TQMap<TQString,TQString> queryItems (int = 0) const; TQMap<TQString, TQString> queryItems (int = 0) const;
%If ( KDE_3_2_0 - ) %If ( KDE_3_2_0 - )
TQMap<TQString,TQString> queryItems (int, int) const; TQMap<TQString, TQString> queryItems (int, int) const;
%End %End
void addQueryItem (const TQString&, const TQString&, int = 0); void addQueryItem (const TQString&, const TQString&, int = 0);
@ -128,25 +128,25 @@ public:
%End %End
void setFileName (const TQString&); void setFileName (const TQString&);
TQString fileName (bool = 1) const; TQString fileName (bool = 1) const;
TQString directory (bool = 1, bool = 1) const; TQString directory (bool = 1, bool = 1) const;
%If ( KDE_3_2_0 - ) %If ( KDE_3_2_0 - )
void setDirectory (const TQString&); void setDirectory (const TQString&);
%End %End
bool cd (const TQString&); bool cd (const TQString&);
TQString url (int = 0, int = 0) const; TQString url (int = 0, int = 0) const;
TQString prettyURL (int = 0) const; TQString prettyURL (int = 0) const;
TQString prettyURL (int, KURL::AdjustementFlags) const; TQString prettyURL (int, KURL::AdjustementFlags) const;
%If ( KDE_3_4_0 - ) %If ( KDE_3_4_0 - )
TQString pathOrURL () const; TQString pathOrURL () const;
%End %End
%If ( KDE_3_0_1 - ) %If ( KDE_3_0_1 - )
TQString htmlURL () const; TQString htmlURL () const;
%End %End
bool isEmpty () const; bool isEmpty () const;
@ -179,18 +179,18 @@ public:
static KURL fromPathOrURL (const TQString&); static KURL fromPathOrURL (const TQString&);
%End %End
static TQString encode_string (const TQString&, int = 0); static TQString encode_string (const TQString&, int = 0);
static TQString encode_string_no_slash (const TQString&, int = 0); static TQString encode_string_no_slash (const TQString&, int = 0);
static TQString decode_string (const TQString&, int = 0); static TQString decode_string (const TQString&, int = 0);
static bool isRelativeURL (const TQString&); static bool isRelativeURL (const TQString&);
%If ( KDE_3_2_0 - ) %If ( KDE_3_2_0 - )
static TQString relativeURL (const KURL&, const KURL&, int = 0); static TQString relativeURL (const KURL&, const KURL&, int = 0);
static TQString relativePath (const TQString&, const TQString&, bool* = 0); static TQString relativePath (const TQString&, const TQString&, bool* = 0);
static KURL::URIMode uriModeForProtocol (const TQString&); static KURL::URIMode uriModeForProtocol (const TQString&);
%End %End
TQString filename (bool = 1) const; TQString filename (bool = 1) const;
protected: protected:
void reset (); void reset ();

@ -29,7 +29,7 @@
class KUser class KUser
{ {
%TypeHeaderCode %TypeHeaderCode
#include <../extra/kde320/ksharedptr.h> #include <../../extra/kde320/ksharedptr.h>
#include <kuser.h> #include <kuser.h>
%End %End

@ -52,7 +52,7 @@ public:
unsigned long *list = new unsigned long [count]; unsigned long *list = new unsigned long [count];
for (int i = 0; i < count; i++) for (int i = 0; i < count; i++)
list [i] = (unsigned long)PyInt_AS_LONG (PyList_GET_ITEM (a2, i)); list [i] = (unsigned long)PyLong_AS_LONG (PyList_GET_ITEM (a2, i));
Py_BEGIN_ALLOW_THREADS Py_BEGIN_ALLOW_THREADS
Display *d = tqt_xdisplay (); Display *d = tqt_xdisplay ();
@ -83,7 +83,7 @@ public:
unsigned long *list = new unsigned long [count]; unsigned long *list = new unsigned long [count];
for (int i = 0; i < count; i++) for (int i = 0; i < count; i++)
list [i] = (unsigned long)PyInt_AS_LONG (PyList_GET_ITEM (a2, i)); list [i] = (unsigned long)PyLong_AS_LONG (PyList_GET_ITEM (a2, i));
Py_BEGIN_ALLOW_THREADS Py_BEGIN_ALLOW_THREADS
Display *d = tqt_xdisplay (); Display *d = tqt_xdisplay ();
@ -369,7 +369,7 @@ public:
unsigned long *list = new unsigned long [count]; unsigned long *list = new unsigned long [count];
for (int i = 0; i < count; i++) for (int i = 0; i < count; i++)
list [i] = (unsigned long)PyInt_AS_LONG (PyList_GET_ITEM (a2, i)); list [i] = (unsigned long)PyLong_AS_LONG (PyList_GET_ITEM (a2, i));
Py_BEGIN_ALLOW_THREADS Py_BEGIN_ALLOW_THREADS
Display *d = tqt_xdisplay (); Display *d = tqt_xdisplay ();
@ -410,7 +410,7 @@ public:
unsigned long *list = new unsigned long [count]; unsigned long *list = new unsigned long [count];
for (int i = 0; i < count; i++) for (int i = 0; i < count; i++)
list [i] = (unsigned long)PyInt_AS_LONG (PyList_GET_ITEM (a2, i)); list [i] = (unsigned long)PyLong_AS_LONG (PyList_GET_ITEM (a2, i));
Py_BEGIN_ALLOW_THREADS Py_BEGIN_ALLOW_THREADS
Display *d = tqt_xdisplay (); Display *d = tqt_xdisplay ();
@ -449,7 +449,7 @@ public:
unsigned long *list = new unsigned long [count]; unsigned long *list = new unsigned long [count];
for (int i = 0; i < count; i++) for (int i = 0; i < count; i++)
list [i] = (unsigned long)PyInt_AS_LONG (PyList_GET_ITEM (a2, i)); list [i] = (unsigned long)PyLong_AS_LONG (PyList_GET_ITEM (a2, i));
Py_BEGIN_ALLOW_THREADS Py_BEGIN_ALLOW_THREADS
Display *d = tqt_xdisplay (); Display *d = tqt_xdisplay ();
@ -494,7 +494,7 @@ public:
unsigned long *list = new unsigned long [count]; unsigned long *list = new unsigned long [count];
for (int i = 0; i < count; i++) for (int i = 0; i < count; i++)
list [i] = (unsigned long)PyInt_AS_LONG (PyList_GET_ITEM (a2, i)); list [i] = (unsigned long)PyLong_AS_LONG (PyList_GET_ITEM (a2, i));
Py_BEGIN_ALLOW_THREADS Py_BEGIN_ALLOW_THREADS
Display *d = tqt_xdisplay (); Display *d = tqt_xdisplay ();

@ -183,8 +183,8 @@ public:
for (it = map.begin (); it != map.end (); ++it) for (it = map.begin (); it != map.end (); ++it)
{ {
PyObject *iKey = PyInt_FromLong (((long) it.key ())); PyObject *iKey = PyLong_FromLong (((long) it.key ()));
PyObject *sData = PyString_FromString ((char *)((TQString *)&it.data ())); PyObject *sData = SIPBytes_FromString ((char *)((TQString *)&it.data ()));
if ((iKey == NULL) || (sData == NULL) || (PyDict_SetItem (dict, iKey, sData) < 0)) if ((iKey == NULL) || (sData == NULL) || (PyDict_SetItem (dict, iKey, sData) < 0))
{ {
@ -216,7 +216,7 @@ public:
{ {
int iserr = 0, sData_state; int iserr = 0, sData_state;
iKey = PyInt_AS_LONG (key); iKey = PyLong_AS_LONG (key);
sData = (TQString *)sipForceConvertToType(value, sipType_TQString, sipTransferObj, SIP_NOT_NONE, &sData_state, &iserr); sData = (TQString *)sipForceConvertToType(value, sipType_TQString, sipTransferObj, SIP_NOT_NONE, &sData_state, &iserr);
if (iserr) if (iserr)

@ -400,10 +400,9 @@ typedef ulong Atom;
// Convert a Python argv list to a conventional C argc count and argv array. // Convert a Python argv list to a conventional C argc count and argv array.
char **pyArgvToC(PyObject *argvlist,int *argcp) char **pyArgvToC(PyObject *argvlist,int *argcp)
{ {
int argc;
char **argv; char **argv;
argc = PyList_Size(argvlist); int argc = PyList_Size(argvlist);
// Allocate space for two copies of the argument pointers, plus the // Allocate space for two copies of the argument pointers, plus the
// terminating NULL. // terminating NULL.
@ -413,22 +412,30 @@ char **pyArgvToC(PyObject *argvlist,int *argcp)
// Convert the list. // Convert the list.
for (int a = 0; a < argc; ++a) for (int a = 0; a < argc; ++a)
{ {
char *arg; PyObject *argObject = PyList_GET_ITEM(argvlist, a);
char *arg;
// Get the argument and allocate memory for it.
if ((arg = PyString_AsString(PyList_GetItem(argvlist,a))) == NULL || if (PyUnicode_Check(argObject))
(argv[a] = (char *)sipMalloc(strlen(arg) + 1)) == NULL) {
return NULL; arg = tqstrdup(sipString_AsUTF8String(&argObject));
}
else if (SIPBytes_Check(argObject))
{
arg = tqstrdup(SIPBytes_AS_STRING(argObject));
}
else
{
return NULL;
}
// Copy the argument and save a pointer to it. argv[a] = argv[a + argc + 1] = arg;
strcpy(argv[a],arg);
argv[a + argc + 1] = argv[a];
} }
argv[argc + argc + 1] = argv[argc] = NULL; argv[argc] = argv[argc + argc + 1] = NULL;
if (argcp)
*argcp = argc; {
*argcp = argc;
}
return argv; return argv;
} }

@ -168,18 +168,34 @@ public:
goto errorExit; goto errorExit;
member = PyTuple_GET_ITEM (tuple, 0); member = PyTuple_GET_ITEM (tuple, 0);
if (PyString_Check (member)) if (PyUnicode_Check(member))
opts [i].name = PyString_AS_STRING (member); {
opts[i].name= tqstrdup(sipString_AsUTF8String(&member));
}
else if (SIPBytes_Check(member))
{
opts[i].name= tqstrdup(SIPBytes_AS_STRING(member));
}
else else
{
goto errorExit; goto errorExit;
}
if (tsz > 1) if (tsz > 1)
{ {
member = PyTuple_GET_ITEM (tuple, 1); member = PyTuple_GET_ITEM (tuple, 1);
if PyString_Check (member) if (PyUnicode_Check(member))
opts [i].description = PyString_AS_STRING (member); {
opts[i].description= tqstrdup(sipString_AsUTF8String(&member));
}
else if (SIPBytes_Check(member))
{
opts[i].description= tqstrdup(SIPBytes_AS_STRING(member));
}
else else
goto errorExit; {
goto errorExit;
}
} }
else else
opts [i].description = NULL; opts [i].description = NULL;
@ -188,10 +204,18 @@ public:
if (tsz > 2) if (tsz > 2)
{ {
member = PyTuple_GET_ITEM (tuple, 2); member = PyTuple_GET_ITEM (tuple, 2);
if PyString_Check (member) if (PyUnicode_Check(member))
opts [i].def = PyString_AS_STRING (member); {
opts[i].def= tqstrdup(sipString_AsUTF8String(&member));
}
else if (SIPBytes_Check(member))
{
opts[i].def= tqstrdup(SIPBytes_AS_STRING(member));
}
else else
goto errorExit; {
goto errorExit;
}
} }
else else
opts [i].def = NULL; opts [i].def = NULL;
@ -201,9 +225,9 @@ public:
} }
// mark the end of the list // mark the end of the list
opts [n].name = NULL; opts[n].name = NULL;
opts [n].description = NULL; opts[n].description = NULL;
opts [n].def = NULL; opts[n].def = NULL;
Py_BEGIN_ALLOW_THREADS Py_BEGIN_ALLOW_THREADS
TDECmdLineArgs::addCmdLineOptions (opts, a1, a2, a3); TDECmdLineArgs::addCmdLineOptions (opts, a1, a2, a3);

@ -217,7 +217,7 @@ private:
// Convert a Python instance to a Ptr on the heap. // Convert a Python instance to a Ptr on the heap.
if (sipIsErr == NULL) if (sipIsErr == NULL)
return PyInstance_Check(sipPy); return PyType_Check(sipPy);
int iserr = 0; int iserr = 0;
TDESharedConfig *cpp = (TDESharedConfig *)sipForceConvertToType(sipPy, sipType_TDESharedConfig, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); TDESharedConfig *cpp = (TDESharedConfig *)sipForceConvertToType(sipPy, sipType_TDESharedConfig, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr);

@ -277,15 +277,13 @@ protected:
%ConvertToTypeCode %ConvertToTypeCode
if (sipIsErr == NULL) if (sipIsErr == NULL)
return PyLong_Check (sipPy) || PyInt_Check (sipPy); return PyLong_Check (sipPy);
long long *ll = new long long; long long *ll = new long long;
*ll = 0; *ll = 0;
if (PyLong_Check (sipPy)) if (PyLong_Check (sipPy))
*ll = PyLong_AsLongLong (sipPy); *ll = PyLong_AsLongLong (sipPy);
else if (PyInt_Check (sipPy))
*ll = (long long)PyInt_AS_LONG (sipPy);
*sipCppPtr = ll; *sipCppPtr = ll;
@ -313,15 +311,13 @@ protected:
%ConvertToTypeCode %ConvertToTypeCode
if (sipIsErr == NULL) if (sipIsErr == NULL)
return PyLong_Check (sipPy) || PyInt_Check (sipPy); return PyLong_Check (sipPy);
unsigned long long *ul = new unsigned long long; unsigned long long *ul = new unsigned long long;
*ul = 0; *ul = 0;
if (PyLong_Check (sipPy)) if (PyLong_Check (sipPy))
*ul = PyLong_AsUnsignedLongLong (sipPy); *ul = PyLong_AsUnsignedLongLong (sipPy);
else if (PyInt_Check (sipPy))
*ul = (unsigned long long)PyInt_AS_LONG (sipPy);
*sipCppPtr = ul; *sipCppPtr = ul;

@ -133,7 +133,7 @@ public:
{ {
public: public:
ItemPassword (const TQString&, const TQString&, TQString&, const TQString& = TQString ::fromLatin1 ("" )); ItemPassword (const TQString&, const TQString&, TQString&, const TQString& = TQString ::fromUtf8 ("" ));
}; // class ItemPassword }; // class ItemPassword
@ -234,9 +234,9 @@ public:
void setCurrentGroup (const TQString&); void setCurrentGroup (const TQString&);
TQString currentGroup (); TQString currentGroup ();
void addItem (TDEConfigSkeletonItem*, const TQString& = TQString ::null ); void addItem (TDEConfigSkeletonItem*, const TQString& = TQString ::null );
ItemString* addItemString (const TQString&, TQString&, const TQString& = TQString ::fromLatin1 ("" ), const TQString& = TQString ::null ); ItemString* addItemString (const TQString&, TQString&, const TQString& = TQString ::fromUtf8 ("" ), const TQString& = TQString ::null );
TDEConfigSkeleton::ItemPassword* addItemPassword (const TQString&, TQString&, const TQString& = TQString ::fromLatin1 ("" ), const TQString& = TQString ::null ); TDEConfigSkeleton::ItemPassword* addItemPassword (const TQString&, TQString&, const TQString& = TQString ::fromUtf8 ("" ), const TQString& = TQString ::null );
TDEConfigSkeleton::ItemPath* addItemPath (const TQString&, TQString&, const TQString& = TQString ::fromLatin1 ("" ), const TQString& = TQString ::null ); TDEConfigSkeleton::ItemPath* addItemPath (const TQString&, TQString&, const TQString& = TQString ::fromUtf8 ("" ), const TQString& = TQString ::null );
ItemProperty* addItemProperty (const TQString&, TQVariant&, const TQVariant& = TQVariant (), const TQString& = TQString ::null ); ItemProperty* addItemProperty (const TQString&, TQVariant&, const TQVariant& = TQVariant (), const TQString& = TQString ::null );
ItemBool* addItemBool (const TQString&, bool&, bool = 0, const TQString& = TQString ::null ); ItemBool* addItemBool (const TQString&, bool&, bool = 0, const TQString& = TQString ::null );
%MethodCode %MethodCode
@ -437,7 +437,7 @@ public:
Path Path
}; };
ItemString (const TQString&, const TQString&, TQString&, const TQString& = TQString ::fromLatin1 ("" ), TDEConfigSkeleton::ItemString::Type = TDEConfigSkeleton ::ItemString ::Normal ); ItemString (const TQString&, const TQString&, TQString&, const TQString& = TQString ::fromUtf8 ("" ), TDEConfigSkeleton::ItemString::Type = TDEConfigSkeleton ::ItemString ::Normal );
void setValue (const TQString&); void setValue (const TQString&);
TQString& value (); TQString& value ();
virtual void setDefaultValue (const TQString&); virtual void setDefaultValue (const TQString&);

@ -114,7 +114,7 @@ protected:
for( it = cpplist->begin(); it != cpplist->end(); ++it ) for( it = cpplist->begin(); it != cpplist->end(); ++it )
{ {
WId cpp = *it; WId cpp = *it;
if (PyList_Append (pylist, PyInt_FromLong ((int) cpp)) < 0) if (PyList_Append (pylist, PyLong_FromLong ((int) cpp)) < 0)
{ {
Py_DECREF (pylist); Py_DECREF (pylist);
return NULL; return NULL;
@ -138,7 +138,7 @@ protected:
for (int i = 0; i < PyList_Size (sipPy); i++) for (int i = 0; i < PyList_Size (sipPy); i++)
{ {
elem = PyList_GET_ITEM (sipPy, i); elem = PyList_GET_ITEM (sipPy, i);
cpp = (WId) PyInt_AS_LONG (elem); cpp = (WId) PyLong_AS_LONG (elem);
if (iserr) if (iserr)
{ {
*sipIsErr = 1; *sipIsErr = 1;

@ -151,7 +151,7 @@ typedef TQMap<TQString, TQStringList> KStringListMap;
for (it = map.begin (); it != map.end (); ++it) for (it = map.begin (); it != map.end (); ++it)
{ {
PyObject *sKey = PyString_FromString ((const char *)((TQString)it.key ())); PyObject *sKey = SIPBytes_FromString ((const char *)((TQString)it.key ()));
PyObject *sData = sipConvertFromInstance ((void *)&it.data (), sipClass_TQStringList, sipTransferObj); PyObject *sData = sipConvertFromInstance ((void *)&it.data (), sipClass_TQStringList, sipTransferObj);
if ((sKey == NULL) || (sData == NULL) || (PyDict_SetItem (dict, sKey, sData) < 0)) if ((sKey == NULL) || (sData == NULL) || (PyDict_SetItem (dict, sKey, sData) < 0))

@ -152,7 +152,7 @@ typedef ACLUserPermissionsList ACLGroupPermissionsList;
delete cpplist; delete cpplist;
return 0; return 0;
} }
ushort p2 = (ushort)(PyInt_AS_LONG (PyTuple_GET_ITEM (elem, 1))); ushort p2 = (ushort)(PyLong_AS_LONG (PyTuple_GET_ITEM (elem, 1)));
cpplist->append (ACLUserPermissions (*p1, p2)); cpplist->append (ACLUserPermissions (*p1, p2));

@ -155,7 +155,7 @@ protected:
TQString acpp = it.key (); TQString acpp = it.key ();
int bcpp = (int) it.data (); int bcpp = (int) it.data ();
PyObject *ainst; PyObject *ainst;
PyObject *binst = PyInt_FromLong (bcpp); PyObject *binst = PyLong_FromLong (bcpp);
if (((ainst = sipConvertFromNewType(new TQString (acpp), sipType_TQString, sipTransferObj)) == NULL) if (((ainst = sipConvertFromNewType(new TQString (acpp), sipType_TQString, sipTransferObj)) == NULL)
|| (PyDict_SetItem (dict, ainst, binst) < 0)) || (PyDict_SetItem (dict, ainst, binst) < 0))
{ {
@ -189,7 +189,7 @@ protected:
acpp = (TQString *)sipForceConvertToType(aelem, sipType_TQString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr); acpp = (TQString *)sipForceConvertToType(aelem, sipType_TQString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr);
if (iserr || !PyInt_Check(belem)) if (iserr || !PyLong_Check(belem))
{ {
if (acpp_state) if (acpp_state)
sipReleaseType(acpp, sipType_TQString, acpp_state); sipReleaseType(acpp, sipType_TQString, acpp_state);
@ -199,7 +199,7 @@ protected:
return 0; return 0;
} }
bcpp = (TQVariant::Type) PyInt_AS_LONG(belem); bcpp = (TQVariant::Type) PyLong_AS_LONG(belem);
cppmap->insert (*acpp, bcpp); cppmap->insert (*acpp, bcpp);

@ -220,7 +220,7 @@ protected:
{ {
TQString current_key = it.currentKey (); TQString current_key = it.currentKey ();
PyObject *a0 = sipConvertFromInstance (&current_key, sipClass_TQString, sipTransferObj); PyObject *a0 = sipConvertFromInstance (&current_key, sipClass_TQString, sipTransferObj);
PyObject *a1 = PyInt_FromLong ((long) it.current ()); PyObject *a1 = PyLong_FromLong ((long) it.current ());
if ((a0 == NULL) || (a1 == NULL) || (PyDict_SetItem (dict, a0, a1) < 0)) if ((a0 == NULL) || (a1 == NULL) || (PyDict_SetItem (dict, a0, a1) < 0))
{ {
@ -254,7 +254,7 @@ protected:
a0 = (TQString *)sipForceConvertToType(key, sipType_TQString, sipTransferObj, SIP_NOT_NONE, &a0_state, &iserr); a0 = (TQString *)sipForceConvertToType(key, sipType_TQString, sipTransferObj, SIP_NOT_NONE, &a0_state, &iserr);
if (iserr || !PyInt_Check(value)) if (iserr || !PyLong_Check(value))
{ {
if (a0) if (a0)
sipReleaseType(a0, sipType_TQString, a0_state); sipReleaseType(a0, sipType_TQString, a0_state);
@ -264,7 +264,7 @@ protected:
return 0; return 0;
} }
a1 = (TQWidget::FocusPolicy) PyInt_AS_LONG (value); a1 = (TQWidget::FocusPolicy) PyLong_AS_LONG (value);
qdict->insert (*a0, &a1); qdict->insert (*a0, &a1);

@ -477,7 +477,7 @@ TQMap<TQCString,int> testTQMapTQCStringInt (TQMap<TQCString,int>);
PyObject *ainst; PyObject *ainst;
PyObject *binst = NULL; PyObject *binst = NULL;
if (((ainst = sipConvertFromNewType(new TQCString (acpp), sipType_TQCString, NULL)) == NULL) if (((ainst = sipConvertFromNewType(new TQCString (acpp), sipType_TQCString, NULL)) == NULL)
|| ((binst = PyInt_FromLong (bcpp)) == NULL) || ((binst = PyLong_FromLong (bcpp)) == NULL)
|| (PyDict_SetItem (dict, ainst, binst) < 0)) || (PyDict_SetItem (dict, ainst, binst) < 0))
{ {
Py_XDECREF (ainst); Py_XDECREF (ainst);
@ -510,14 +510,14 @@ TQMap<TQCString,int> testTQMapTQCStringInt (TQMap<TQCString,int>);
acpp = (TQCString *)sipForceConvertToType(aelem, sipType_TQCString, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); acpp = (TQCString *)sipForceConvertToType(aelem, sipType_TQCString, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr);
if (iserr || !PyInt_Check (belem)) if (iserr || !PyLong_Check (belem))
{ {
*sipIsErr = 1; *sipIsErr = 1;
delete cppmap; delete cppmap;
return 0; return 0;
} }
bcpp = PyInt_AS_LONG (belem); bcpp = PyLong_AS_LONG (belem);
cppmap->insert (*acpp, bcpp); cppmap->insert (*acpp, bcpp);
} }

@ -176,7 +176,7 @@ public:
const char **PyTQtListToArray(PyObject *lst) const char **PyTQtListToArray(PyObject *lst)
{ {
int nstr; SIP_SSIZE_T nstr;
const char **str, **sp; const char **str, **sp;
nstr = PyList_Size(lst); nstr = PyList_Size(lst);
@ -190,15 +190,16 @@ const char **PyTQtListToArray(PyObject *lst)
for (int i = 0; i < nstr; ++i) for (int i = 0; i < nstr; ++i)
{ {
char *s; PyObject *item = PyList_GetItem(lst, i);
const char *item_ascii = sipString_AsASCIIString(&item);
if ((s = PyString_AsString(PyList_GetItem(lst,i))) == NULL) if (item_ascii == NULL)
{ {
sipFree((void *)str); sipFree((void *)str);
return NULL; return NULL;
} }
*sp++ = s; *sp++ = item_ascii;
} }
return str; return str;

@ -206,7 +206,7 @@ typedef TQDict<int> IntDict;
{ {
TQString current_key = it.currentKey (); TQString current_key = it.currentKey ();
PyObject *a0 = sipConvertFromInstance (&current_key, sipClass_TQCString, sipTransferObj); PyObject *a0 = sipConvertFromInstance (&current_key, sipClass_TQCString, sipTransferObj);
PyObject *a1 = PyInt_FromLong ((long) it.current ()); PyObject *a1 = PyLong_FromLong ((long) it.current ());
if ((a0 == NULL) || (a1 == NULL) || (PyDict_SetItem (dict, a0, a1) < 0)) if ((a0 == NULL) || (a1 == NULL) || (PyDict_SetItem (dict, a0, a1) < 0))
{ {
@ -240,7 +240,7 @@ typedef TQDict<int> IntDict;
a0 = (TQString *)sipForceConvertToType(key, sipType_TQString, sipTransferObj, SIP_NOT_NONE, &a0_state, &iserr); a0 = (TQString *)sipForceConvertToType(key, sipType_TQString, sipTransferObj, SIP_NOT_NONE, &a0_state, &iserr);
if ((iserr) || (!PyInt_Check (value))) if ((iserr) || (!PyLong_Check (value)))
{ {
if (a0) if (a0)
sipReleaseType(a0, sipType_TQString, a0_state); sipReleaseType(a0, sipType_TQString, a0_state);
@ -250,7 +250,7 @@ typedef TQDict<int> IntDict;
return 0; return 0;
} }
a1 = (int) PyInt_AS_LONG (value); a1 = (int) PyLong_AS_LONG (value);
qdict->insert (*a0, &a1); qdict->insert (*a0, &a1);

@ -76,7 +76,7 @@ public:
//ig TQPtrListIterator<TDEToolBar> toolBarIterator (); //ig TQPtrListIterator<TDEToolBar> toolBarIterator ();
TDEAccel* accel (); TDEAccel* accel ();
void setFrameBorderWidth (int); void setFrameBorderWidth (int);
void setAutoSaveSettings (const TQString& = TQString ::fromLatin1 ("MainWindow" ), bool = 1); void setAutoSaveSettings (const TQString& = TQString ::fromUtf8 ("MainWindow" ), bool = 1);
void resetAutoSaveSettings (); void resetAutoSaveSettings ();
%If ( KDE_3_1_0 - ) %If ( KDE_3_1_0 - )

@ -16,11 +16,11 @@ for file in newfiles:
os.system ("cp %s %s" % (os.path.join (newpath, sip), svnpath)) os.system ("cp %s %s" % (os.path.join (newpath, sip), svnpath))
if sip not in svnsip: if sip not in svnsip:
os.system ("svn add %s" % (os.path.join (svnpath, sip))) os.system ("svn add %s" % (os.path.join (svnpath, sip)))
print "added %s" % sip print("added %s" % sip)
else: else:
os.system ("cp -R %s %s" % (newpath, svnpath)) os.system ("cp -R %s %s" % (newpath, svnpath))
os.system ("svn add %s" % svnpath) os.system ("svn add %s" % svnpath)
print "added %s" % svnpath print("added %s" % svnpath)
newfiles = os.listdir (os.path.join (newbase, "extra")) newfiles = os.listdir (os.path.join (newbase, "extra"))
@ -35,11 +35,11 @@ for file in newfiles:
os.system ("cp %s %s" % (os.path.join (newpath, extra), svnpath)) os.system ("cp %s %s" % (os.path.join (newpath, extra), svnpath))
if extra not in svnextra: if extra not in svnextra:
os.system ("svn add %s" % (os.path.join (svnpath, extra))) os.system ("svn add %s" % (os.path.join (svnpath, extra)))
print "added %s" % extra print("added %s" % extra)
else: else:
os.system ("cp -R %s %s" % (newpath, svnpath)) os.system ("cp -R %s %s" % (newpath, svnpath))
os.system ("svn add %s" % svnpath) os.system ("svn add %s" % svnpath)
print "added %s" % svnpath print("added %s" % svnpath)
files = ["configure.py", "*.prj", "svnm*"] files = ["configure.py", "*.prj", "svnm*"]

@ -16,7 +16,7 @@ for file in newfiles:
os.system ("cp %s %s" % (os.path.join (newpath, doc), svnpath)) os.system ("cp %s %s" % (os.path.join (newpath, doc), svnpath))
if doc not in svndoc: if doc not in svndoc:
os.system ("svn add %s" % (os.path.join (svnpath, doc))) os.system ("svn add %s" % (os.path.join (svnpath, doc)))
print "added %s" % doc print("added %s" % doc)
else: else:
os.system ("cp -R %s %s" % (newpath, svnpath)) os.system ("cp -R %s %s" % (newpath, svnpath))
os.system ("svn add %s" % svnpath) os.system ("svn add %s" % svnpath)

@ -54,5 +54,5 @@ TDECmdLineArgs.init (sys.argv, aboutData)
app = TDEApplication () app = TDEApplication ()
mainWindow = MainWin (None, "main window") mainWindow = MainWin (None, "main window")
mainWindow.show() mainWindow.show()
app.connect (app, SIGNAL ("lastWindowClosed ()"), app.quit) app.connect (app, SIGNAL ("lastWindowClosed()"), app.quit)
app.exec_loop() app.exec_loop()

@ -36,10 +36,6 @@ copyright holder.
""" """
False = 0
True = not False
import sys import sys
from PyTQt.qt import TQPopupMenu, SIGNAL from PyTQt.qt import TQPopupMenu, SIGNAL
@ -60,7 +56,7 @@ STATUSBAR_RIGHT = 3
class MainWin (TDEMainWindow): class MainWin (TDEMainWindow):
def __init__ (self, *args): def __init__ (self, *args):
apply (TDEMainWindow.__init__, (self,) + args) TDEMainWindow.__init__(self, *args)
self.initMenus () self.initMenus ()
self.initToolBar () self.initToolBar ()

@ -35,10 +35,6 @@ copyright holder.
""" """
False = 0
True = not False
import sys import sys
from PyTQt.qt import TQPopupMenu, SIGNAL from PyTQt.qt import TQPopupMenu, SIGNAL
@ -52,7 +48,7 @@ STATUSBAR_RIGHT = 3
class MainWin (TDEMainWindow): class MainWin (TDEMainWindow):
def __init__ (self, *args): def __init__ (self, *args):
apply (TDEMainWindow.__init__, (self,) + args) TDEMainWindow.__init__(self, *args)
self.initActions () self.initActions ()
self.initMenus () self.initMenus ()

@ -31,6 +31,7 @@ dealings in this Software without prior written authorization from the
copyright holder. copyright holder.
""" """
import PyTQt
from tdeui import PyKPanelApplet, KPanelApplet from tdeui import PyKPanelApplet, KPanelApplet

@ -30,21 +30,32 @@ copyright holder.
import sys import sys
from PyTQt.qt import TQWidget, SIGNAL from PyTQt.qt import TQWidget, SIGNAL
from tdecore import TDEApplication, TDEIcon, TDEIconLoader from tdecore import TDEApplication, TDEIcon, TDEIconLoader, TDEAboutData, TDECmdLineArgs
from tdeui import KSystemTray from tdeui import KSystemTray
class MainWin (TQWidget): class MainWin (TQWidget):
def __init__ (self, *args): def __init__ (self, *args):
apply (TQWidget.__init__, (self,) + args) TQWidget.__init__(self, *args)
#-------------------- main ------------------------------------------------ #-------------------- main ------------------------------------------------
def slotQuitSelected (): def slotQuitSelected ():
TDEApplication.kApplication ().quit () TDEApplication.kApplication().quit()
appName = "template" version = "1.0"
app = TDEApplication (sys.argv, appName) description = "A basic application template"
ad = TDEAboutData ("template", "Template App",\
version, description, TDEAboutData.License_GPL_V2,\
"(C) 2003 whoever the author is")
ad.addAuthor ("author1", "whatever they did", "email@somedomain")
ad.addAuthor ("author2", "they did something else", "another@email.address")
TDECmdLineArgs.init(["SysTrayApp"], ad)
TDECmdLineArgs.addCmdLineOptions ([("+files", "File to open", "")])
app = TDEApplication()
mainWindow = MainWin (None, "main window") mainWindow = MainWin (None, "main window")
icons = TDEIconLoader () icons = TDEIconLoader ()

Loading…
Cancel
Save