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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
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,
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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()
can be used as intializer for defaults; removed C++
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
(TQValueList<int>() as arg default value) and
@ -163,7 +340,7 @@ tdeio/slaveinterface.sip (%TypeHeaderCode in namespace
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
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)
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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;
added fully-qualified names to two 'Other' arguments in
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
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
------------------------------------------------------------------------
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
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
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
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
------------------------------------------------------------------------
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
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)
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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)
------------------------------------------------------------------------
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 ()
------------------------------------------------------------------------
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
corrected; TDERecentDirs (and extra/ hfiles) added; pytde332.prj
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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 ???
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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)
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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
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)
------------------------------------------------------------------------
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
------------------------------------------------------------------------
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

@ -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
------------------------------------------------------------------------

@ -170,7 +170,7 @@ def check_gcc ():
vers = m.read().strip()
m.close ()
os.unlink ('gccvers.txt')
print "gcc version %s" % vers
print("gcc version %s" % vers)
if opt_concat == None:
if vers < "4.0.0" or vers >= "4.0.3":
@ -179,10 +179,10 @@ def check_gcc ():
opt_concat = 0
if opt_concat == 1:
print "concatenating files"
print("concatenating files")
else:
print "no concatenation"
print
print("no concatenation")
print()
def init_and_check_sanity ():
""" 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.
"""
print "Usage:"
print " python configure.py [-h] [-c] [-d dir] [-g] [-j #] [-k] [-n dir] [-o dir] [-r] [-u] [-v dir] [-z file]"
print "where:"
print " -h displays this help message"
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 " -e lib explicitly specify the python library"
print " -g always release the GIL (SIP-TQt v3.x behaviour)"
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 " -k dir the KDE base directory"
print " -L dir the library directory name [default lib]"
print " -n dir the directory containing the KDE lib files"
print " -o dir the directory containing the KDE header files"
print " -r generates code with tracing enabled [default disabled]"
print " -u build with debugging symbols"
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 " -z file the name of a file containing command line flags"
print("Usage:")
print(" python configure.py [-h] [-c] [-d dir] [-g] [-j #] [-k] [-n dir] [-o dir] [-r] [-u] [-v dir] [-z file]")
print("where:")
print(" -h displays this help message")
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(" -e lib explicitly specify the python library")
print(" -g always release the GIL (SIP-TQt v3.x behaviour)")
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(" -k dir the KDE base directory")
print(" -L dir the library directory name [default lib]")
print(" -n dir the directory containing the KDE lib files")
print(" -o dir the directory containing the KDE header files")
print(" -r generates code with tracing enabled [default disabled]")
print(" -u build with debugging symbols")
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(" -z file the name of a file containing command line flags")
sys.exit(rcode)
@ -252,23 +252,23 @@ def inform_user(stage):
"""Tell the user the option values that are going to be used.
"""
if stage == 0:
print
print " PyKDE version %s" % pytde_version_str
print " -------"
print
print()
print(" PyKDE version %s" % pytde_version_str)
print(" -------")
print()
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))
print
print()
sip_tqt_config.inform ("sip-tqt version is %s (%s)" % (sipcfg.sip_version_str,
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 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 version is %s (%s)" % (pyqtcfg.pyqt_version_str,
sip_tqt_config.version_to_string (pyqtcfg.pyqt_version)))
print
print()
elif stage == 1:
sip_tqt_config.inform ("KDE base directory is %s" % opt_tdebasedir)
@ -278,11 +278,11 @@ def inform_user(stage):
elif stage == 2:
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 .sip files will be installed in %s" % opt_pytdesipdir)
print
print()
@ -332,16 +332,16 @@ def getKDEVersion (versFile):
ok = 0
while not ok and l:
wl = string.split(l)
wl = l.split()
if len(wl) == 3 and wl[0] == "#define":
if wl[1] == "TDE_VERSION_MAJOR":
major = string.strip (wl[2])
major = wl[2].strip()
if wl[1] == "TDE_VERSION_MINOR":
minor = string.strip (wl[2])
minor = wl[2].strip()
if wl[1] == "TDE_VERSION_RELEASE":
micro = string.strip (wl[2])
micro = wl[2].strip()
if major and minor and micro:
ok = 1
@ -357,18 +357,18 @@ def getKDEVersion (versFile):
kde_version = (int (major) << 16) + (int (minor) << 8) + int (micro)
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)))
print
print()
kde_version = kde_max_version
major = hex ((kde_version & 0xff0000) >> 16) [ 2:]
minor = hex ((kde_version & 0x00ff00) >> 8) [ 2:]
micro = hex (kde_version & 0x0000ff) [ 2:]
if ok:
kde_version_str = string.join ([major, minor, micro], ".")
kde_version_sfx = string.join (["-kde", major, minor, micro, ".diff"], "")
kde_version_extra = string.join (["kde", major, minor, micro], "")
kde_version_str = ".".join([major, minor, micro])
kde_version_sfx = "".join(["-kde", major, minor, micro, ".diff"])
kde_version_extra = "".join(["kde", major, minor, micro])
else:
sip_tqt_config.error ("KDE version not found in %s" % versFile)
@ -454,9 +454,9 @@ def create_top_level (mname):
d = open (diff)
line = d.readline()
while line:
if string.find (line, "+") == 0:
if line.find ("+") == 0:
plus.append (line [2:])
elif string.find (line, "-") == 0:
elif line.find ("-") == 0:
minus.append (line [2:])
line = d.readline()
@ -466,16 +466,16 @@ def create_top_level (mname):
line = sipin.readline()
while line:
if string.find (line, "%Include") == 0:
if line.find("%Include") == 0:
inclFound = 1
if minus and line in minus:
line = sipin.readline()
continue
sipout.write (line)
elif string.find (line, "@mark@") == 0:
elif line.find ("@mark@") == 0:
for p in plus:
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
else:
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)
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)
argv.append("-I")
argv.append(subdir)
# 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
os.system (string.join(argv))
os.system (" ".join(argv))
# 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)
# 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
if 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]))
# 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.generate()
print
print()
def create_makefiles():
@ -806,14 +805,14 @@ def fileOpts (fn):
if (line [0] == '#') or (line == '\n'):
continue
elif line [0] == '-':
opts.append ((line [0:2], string.strip (line [2:])))
opts.append ((line [0:2], line[2:].strip()))
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:
print "%s %s " %(opt, arg)
print
print("%s %s " %(opt, arg))
print()
return opts
@ -928,7 +927,7 @@ def main(argv):
except:
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()
@ -946,7 +945,7 @@ def main(argv):
def reporting_msg ():
print """
print("""
If reporting errors, paste all of the output above into your
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
You can redirect the output into a file (> output.txt) if needed
"""
""")
@ -970,9 +969,8 @@ if __name__ == "__main__":
raise
except:
reporting_msg ()
print \
"""
print("""
An internal error occured. Please report all output from the program,
including the following traceback, to the PyKDE mailing list
"""
""")
raise

@ -1,6 +1,6 @@
This subdirectory contains a few executable Python
programs that demonstrate or test some features of
PyKDE:
PyTDE:
uisampler.py - demos of most of the tdeui widgets,
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
# 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
import sys
from PyTQt.qt import TQString, TQStringList
from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData
from dcopexport import DCOPExObj
from PyTQt.qt import TQString, TQStringList
"""
DCOPExObj provides all of the necessary machinery to DCOP-enable
@ -67,7 +67,7 @@ To DCOP-enable an app,
# the class which will expose methods to DCOP - the methods do NOT
# need to be a member of this class.
class DeadParrotObject (DCOPExObj):
def __init__ (self, id = 'dead parrot'):
def __init__ (self, id = b'dead parrot'):
DCOPExObj.__init__(self, id)
# the methods available from this app via DCOP
@ -100,28 +100,28 @@ class DeadParrotObject (DCOPExObj):
return qadjList
description = "A basic application template"
version = "1.0"
aboutData = TDEAboutData ("testdcopexport", "petshop",\
description = b"DCOP server template"
version = b"1.0"
aboutData = TDEAboutData (b"MyApp", b"MyApp",\
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 ("author2", "they did something else", "another@email.address")
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 ([("+files", "File to open")])
TDECmdLineArgs.addCmdLineOptions ([(b"+files", b"File to open")])
app = TDEApplication ()
dcop = app.dcopClient ()
appid = dcop.registerAs('petshop')
print "DCOP Application: %s starting" % appid
appid = dcop.registerAs(b'petshop')
print("DCOP Application: %s starting" % appid.data())
parrot = DeadParrotObject()
another_parrot = DeadParrotObject('polly')
another_parrot = DeadParrotObject(b'polly')
print """
print("""
Run kdcop and look for the 'petshop' application instance.
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
object and double-click the quit() method.
"""
""")
app.exec_loop()

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

@ -36,7 +36,7 @@ from tdeui import TDEMainWindow, KEdit
class MainWin (TDEMainWindow):
def __init__ (self, *args):
apply (TDEMainWindow.__init__, (self,) + args)
TDEMainWindow.__init__(self, *args)
self.setGeometry (0, 0, 400, 600)
@ -79,18 +79,18 @@ class MainWin (TDEMainWindow):
#-------------------- main ------------------------------------------------
description = "A basic application template"
version = "1.0"
aboutData = TDEAboutData ("", "",\
description = b"A basic application template"
version = b"1.0"
aboutData = TDEAboutData (b"MyApp", b"MyApp",\
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 ("author2", "they did something else", "another@email.address")
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 ([("+files", "File to open")])
TDECmdLineArgs.addCmdLineOptions ([(b"+files", b"File to open")])
app = TDEApplication ()
mainWindow = MainWin (None, "main window")

@ -1,6 +1,6 @@
"""
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
than the primitive approach in menuapp1.py
"""
@ -35,10 +35,6 @@ copyright holder.
"""
False = 0
True = not False
import sys
from PyTQt.qt import TQPopupMenu, SIGNAL, TQLabel, TQIconSet
@ -53,7 +49,7 @@ STATUSBAR_RIGHT = 3
class MainWin (TDEMainWindow):
def __init__ (self, *args):
apply (TDEMainWindow.__init__, (self,) + args)
TDEMainWindow.__init__(self, *args)
self.initActions ()
self.initMenus ()
@ -106,14 +102,6 @@ class MainWin (TDEMainWindow):
self.actionMenu.insert (KStdAction.zoomIn (self.slotZoomIn, 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):
fileMenu = TQPopupMenu (self)
self.newAction.plug (fileMenu)
@ -272,20 +260,21 @@ class MainWin (TDEMainWindow):
#-------------------- main ------------------------------------------------
description = "A basic application template"
version = "1.0"
aboutData = TDEAboutData ("", "",\
description = b"A basic application template"
version = b"1.0"
aboutData = TDEAboutData (b"MyApp", b"MyApp",\
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 ("author2", "they did something else", "another@email.address")
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 ([("+files", "File to open")])
TDECmdLineArgs.addCmdLineOptions ([(b"+files", b"File to open")])
app = TDEApplication ()
mainWindow = MainWin (None, "main window")
mainWindow = MainWin (None, b"main window")
mainWindow.setGeometry(100, 100, 600, 400)
mainWindow.show()
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
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):
def __init__ (self, *args):
apply (TDEMainWindow.__init__, (self,) + args)
TDEMainWindow.__init__(*(self,) + args)
tabctl = KTabCtl (self)
self.setGeometry (0, 0, 600, 400)
@ -88,7 +86,7 @@ class OfferListTab (TQWidget):
trader = TDETrader.self ()
slist = trader.query ("image/jpeg", "Type == 'Application'")
print "TDETrader returned:", slist
print("TDETrader returned:", slist)
for s in slist:
lvi = TQListViewItem (lv, s.type_ (), s.name (), s.exec_ (), s.library ())
@ -253,16 +251,16 @@ class KMimeTypeTab (TQWidget):
#-------------------- main ------------------------------------------------
description = "Test/demo TDESharedPtr related methods/classes"
version = "1.0"
aboutData = TDEAboutData ("", "",\
description = b"Test/demo TDESharedPtr related methods/classes"
version = b"1.0"
aboutData = TDEAboutData (b"MyApp", b"MyApp",\
version, description, TDEAboutData.License_GPL,\
"(C) 2003 Jim Bublitz")
b"(C) 2003 Jim Bublitz")
TDECmdLineArgs.init (sys.argv, aboutData)
TDECmdLineArgs.addCmdLineOptions ([("+files", "File to open")])
TDECmdLineArgs.addCmdLineOptions ([(b"+files", b"File to open")])
app = TDEApplication ()
mainWindow = MainWin (None, "main window")
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
the openURL method worked correctly after some modifications
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:
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
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
sites, it appears the font defaults could use some
improvement.
NOTE!!! For this to work, you (obviously) need to have
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
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
# are extras/not used)
from PyTQt.qt import TQString, TQStringList
from tdecore import TDECmdLineArgs, KURL, TDEApplication, i18n, TDEAboutData, BarIcon, KLibLoader
from tdeui import TDEMainWindow, KMessageBox, TDEAction, KStdAction, KKeyDialog, KEditToolbar
from PyTQt.qt import TQString, TQStringList
from tdeio import TDETrader
from tdehtml import TDEHTMLPart, TDEHTMLView
# Importing the KParts namespace gets us all of the KParts:: classes
@ -58,20 +54,14 @@ from tdeparts import KParts, createReadOnlyPart, createReadWritePart
import sys, os
FALSE = 0
TRUE = not FALSE
TOOLBAR_EXIT = 0
TOOLBAR_OPEN = 1
# Note that we use KParts.MainWindow, not TDEMainWindow as the superclass
# (KParts.MainWindow subclasses TDEMainWindow). Also, be sure the 'apply'
# clause references KParts.MainWindow - it's a hard bug to track down
# if it doesn't.
# (KParts.MainWindow subclasses TDEMainWindow).
class pyPartsMW (KParts.MainWindow):
def __init__ (self, *args):
apply (KParts.MainWindow.__init__, (self,) + args)
KParts.MainWindow.__init__(self, *args)
# Create the actions for our menu/toolbar to use
# Keep in mind that the part loaded will provide its
@ -90,19 +80,19 @@ class pyPartsMW (KParts.MainWindow):
KStdAction.configureToolbars(self.optionsConfigureToolbars, self.actionCollection());
self.path = os.getcwd () + '/'
self.setGeometry (0, 0, 600, 500)
self.setGeometry (0, 0, 1024, 768)
# 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
# create a web browser (of course you have to edit
# this file to change url's)
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)
@ -143,21 +133,21 @@ class pyPartsMW (KParts.MainWindow):
# some boilerplate left over from pyKLess/KLess
def queryClose(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:
#// save document here. If saving fails, return FALSE
return TRUE
#// save document here. If saving fails, return False
return True
elif res == KMessageBox.No:
return TRUE
return True
else: #// cancel
return FALSE
return False
def queryExit(self):
#// this slot is invoked in addition when the *last* window is going
#// 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
@ -181,16 +171,16 @@ class pyPartsMW (KParts.MainWindow):
#------------- main ----------------------------
# A Human readable description of your program
description = "TDEHTMLPart - simple example"
description = b"TDEHTMLPart - simple example"
# The version
version = "0.1"
version = b"0.1"
# stuff for the "About" menu
aboutData = TDEAboutData ("pyTDEHTMLPart", "pyHTMLPart",\
aboutData = TDEAboutData (b"pyTDEHTMLPart", b"pyHTMLPart",\
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)
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'
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
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
default KDE installation.
default TDE installation.
- labelText - string (optional)

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

@ -1,7 +1,7 @@
labelText = 'Widgets'
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."""
from PyTQt.qt import TQFrame, TQVBoxLayout

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

@ -1,4 +1,4 @@
# author, contributions, email
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'
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.")

@ -1,7 +1,7 @@
labelText = 'About Dialogs'
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 "
"and consistency. They're easy to use, and they're good for the environment!")

@ -1,5 +1,5 @@
iconName = 'about_kde'
labelText = 'TDEAboutKDE'
labelText = 'TDEAboutTDE'
from PyTQt.qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL
from tdecore import i18n
@ -7,13 +7,13 @@ from tdeui import TDEAboutKDE, KPushButton, KTextEdit
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):
def __init__(self, parent=None):
TQFrame.__init__(self, parent)
self.button = KPushButton(i18n('About KDE'), self)
self.button = KPushButton(i18n('About TDE'), self)
self.help = KTextEdit(helpText, '', self)
layout = TQVBoxLayout(self, 4)
layout.addWidget(self.help)

@ -1,7 +1,7 @@
iconName = 'core'
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
##~ specifies what we want.
##~ docItemName = 'KBugReport'
@ -11,7 +11,7 @@ from tdecore import i18n
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.")

@ -7,7 +7,7 @@ from tdecore import i18n
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 "
"connected to the KColorPatch area below.")

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

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

@ -6,7 +6,7 @@ from tdeui import KPushButton, TDEFontDialog, KTextEdit
iconName = 'fonts'
labelText = '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. "
"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 "

@ -3,7 +3,7 @@ labelText = 'KMessageBox'
from random import random
from traceback import print_exc
from StringIO import StringIO
from io import StringIO
from PyTQt.qt import TQFrame, TQGridLayout, TQLabel, TQStringList, SIGNAL
from tdecore import i18n
@ -87,11 +87,11 @@ class MainFrame(TQFrame):
def questionYesNo(self):
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):
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):
uiitem = KGuiItem('Time to Eat', 'favorites')
@ -99,43 +99,43 @@ class MainFrame(TQFrame):
dlgid = '%s' % random()
args = self, self.msg, self.items, self.caption, uiitem, dlgid
dlg = ctor(*args)
print 'You pressed "%s"' % (self.responses.get(dlg, dlg), )
print('You pressed "%s"' % (self.responses.get(dlg, dlg), ))
def error(self):
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):
try:
x = self.thisAttributeDoesNotExist
except (AttributeError, ), ex:
except (AttributeError, ) as ex:
handle = StringIO()
print_exc(0, handle)
details = handle.getvalue()
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):
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):
try:
x = self.thisAttributeDoesNotExist
except (AttributeError, ), ex:
except (AttributeError, ) as ex:
handle = StringIO()
print_exc(0, handle)
details = handle.getvalue()
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):
dlgid = '%s' % random()
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):
dlgid = '%s' % random()
ctor = KMessageBox.informationList
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'
labelText = '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 "
"user to enter a new password, and provides a second field to "
"confirm the first entry.")

@ -7,7 +7,7 @@ from tdecore import i18n
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."""

@ -8,7 +8,7 @@ from tdecore import i18n
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):

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

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

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

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

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

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

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

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

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

@ -1,5 +1,5 @@
#!/usr/bin/env python
""" The PyKDE application sampler
""" The PyTDE application sampler
This module defines the top-level widgets for displaying the sampler
application.
@ -25,7 +25,6 @@ from tdeio import TDETrader
from tdeparts import createReadOnlyPart, createReadWritePart
from tdehtml import TDEHTMLPart
import about
import lib
@ -114,7 +113,7 @@ class SamplerFrame(CommonFrame):
try:
frameType = module.builder()
except (AttributeError, ):
print 'No sample callable defined in %s' % (module.name(), )
print('No sample callable defined in %s' % (module.name(), ))
else:
frame = frameType(self)
self.setWidget(frame)
@ -132,7 +131,7 @@ class SourceFrame(CommonFrame):
def showModuleSource(self, item, module):
if not self.part:
print 'No part available for displaying python source.'
print('No part available for displaying python source.')
return
try:
modulefile = inspect.getabsfile(module.module)
@ -147,7 +146,7 @@ class WebFrame(CommonFrame):
""" 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):
CommonFrame.__init__(self, parent)
@ -155,7 +154,7 @@ class WebFrame(CommonFrame):
#part.connect(part, SIGNAL('tdehtmlMousePressEvent(a)'), self.onURL)
def onURL(self, a):
print '****', a
print('****', a)
def showDocs(self, item, module):
try:
@ -207,7 +206,7 @@ class SamplerListView(TDEListView):
self.setRootIsDecorated(True)
modules = lib.listmodules()
modules.sort(lambda a, b: cmp(a[0], b[0]))
modules.sort(key=lambda a: a[0])
modmap = dict(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 = item
for root in roots.values():
for root in list(roots.values()):
self.setOpen(root, True)
@ -272,8 +271,8 @@ class SamplerMainWindow(TDEMainWindow):
self.resize(640, 480)
height, width = self.height(), self.width()
hSplit.setSizes([width * 0.35, width * 0.65])
vSplit.setSizes([height * 0.80, height * 0.20])
hSplit.setSizes([int(width * 0.35), int(width * 0.65)])
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.setXMLFile(self.xmlRcFileName)
@ -357,7 +356,7 @@ class SamplerMainWindow(TDEMainWindow):
"""
ret = KKeyDialog.configure(self.actionCollection(), self)
print ret
print(ret)
if ret == TQDialog.Accepted:
actions = self.actionCollection()
actions.writeShortcutSettings(None, appConfig())
@ -404,12 +403,18 @@ class SamplerMainWindow(TDEMainWindow):
def reloadModule(self, item, module):
print >> sys.__stdout__, 'reload: ', reload(module.module)
print('reload: ', importlib.reload(module.module), file=sys.__stdout__)
if __name__ == '__main__':
aboutdata = about.about()
TDECmdLineArgs.init(sys.argv, aboutdata)
description = b"A sampler application"
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()
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'
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."""
from PyTQt.qt import TQFrame, TQLabel, TQVBoxLayout

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

@ -30,17 +30,29 @@ copyright holder.
import sys
from PyTQt.qt import TQLabel
from tdecore import TDEApplication, TDEIcon, TDEIconLoader
from tdecore import TDEAboutData, TDEApplication, TDECmdLineArgs, TDEIcon, TDEIconLoader
from tdeui import TDEMainWindow, KSystemTray
class MainWin (TDEMainWindow):
def __init__ (self, *args):
apply (TDEMainWindow.__init__, (self,) + args)
TDEMainWindow.__init__(self, *args)
#-------------------- main ------------------------------------------------
appName = "template"
app = TDEApplication (sys.argv, appName)
description = b"A basic application template"
version = b"1.0"
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 ()
@ -48,7 +60,6 @@ systray = KSystemTray (mainWindow)
systray.setPixmap (icons.loadIcon("process-stop", TDEIcon.Desktop))
systray.show ()
#mainWindow.show()
app.exec_loop()

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

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

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

@ -1,7 +1,7 @@
import time, sys
from PyTQt.qt import TQLabel, TQFrame, TQColor, TQPushButton, SIGNAL, TQButtonGroup, TQRadioButton, TQt, TQString, TQChar,\
TQWidget, TQTimer
from PyTQt.qt import TQLabel, TQFrame, TQColor, TQPushButton, SIGNAL, TQButtonGroup, TQRadioButton, \
TQt, TQString, TQChar, TQWidget, TQTimer
from tdecore import TDEApplication
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,\
KSeparator
if sys.version [:6] < "2.2.2":
False = 0
True = 1
class Page1:
def __init__ (self, parent):
self.page = parent.addPage ()
@ -350,7 +346,7 @@ class Page5:
urlLbl.setGeometry (x, y, 100, 20)
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.setUseTips (True)
url.setTipText ("http://riverbankcomputing.co.uk")
@ -749,6 +745,6 @@ def widKURLLabel (parent):
if __name__ == "__main__":
print
print "Please run uisampler.py"
print
print()
print("Please run uisampler.py")
print()

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

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

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

@ -1,6 +1,6 @@
"""
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
than the primitive approach in menuapp1.py
"""
@ -35,10 +35,6 @@ copyright holder.
"""
False = 0
True = not False
import sys, os
from PyTQt.qt import TQPopupMenu, SIGNAL, TQLabel, TQIconSet
@ -53,7 +49,7 @@ STATUSBAR_RIGHT = 3
class MainWin (TDEMainWindow):
def __init__ (self, *args):
apply (TDEMainWindow.__init__, (self,) + args)
TDEMainWindow.__init__(self, *args)
self.initActions ()
self.setGeometry (0, 0, 350, 200)
@ -143,8 +139,8 @@ class MainWin (TDEMainWindow):
# By using KStdAction here, the XMLGUI mechanism will automatically
# create a 'View' menu and insert "Zoom In" and "Zoom Out" objects
# in it. This happens because before parsing our *ui.rc file,
# the standard KDE file config/ui/ui_standards.rc is parsed, and
# then our *ui.rc file is merged with the result - this gives KDE
# the standard TDE file config/ui/ui_standards.rc is parsed, and
# then our *ui.rc file is merged with the result - this gives TDE
# menus and toolBars a standard "look" and item placement (including
# separators). Creating the KStdActions alone is sufficient - you
# could delete their references from the *ui.rc file and the menu
@ -268,24 +264,23 @@ class MainWin (TDEMainWindow):
#-------------------- main ------------------------------------------------
description = "A basic application template"
version = "1.0"
description = b"A basic application template"
version = b"1.0"
# The appName (xmlmenudemo - first argument) is required
# 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,\
"(C) 2003 whoever the author is")
b"(C) 2003 whoever the author is")
aboutData.addAuthor ("author1", "whatever they did", "email@somedomain")
aboutData.addAuthor ("author2", "they did something else", "another@email.address")
aboutData.addAuthor (b"author1", b"whatever they did", b"email@somedomain")
aboutData.addAuthor (b"author2", b"they did something else", b"another@email.address")
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 ()
mainWindow = MainWin (None, "main window")
mainWindow = MainWin (None, b"main window")
mainWindow.show()
app.exec_loop()

@ -60,7 +60,7 @@ stringTypes = ["TQString", "TQCString"]
class DCOPExObj (DCOPObject):
def __init__(self, objid = None):
if isinstance (objid, str):
if isinstance (objid, bytes):
DCOPObject.__init__ (self, objid)
else:
DCOPObject.__init__ (self)
@ -69,12 +69,12 @@ class DCOPExObj (DCOPObject):
def process (self, meth, data, replyType, replyData):
# 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
# if we don't have it, maybe DCOPObject already provides it (eg - qt object)
if not self.matchMethod (meth):
return DCOPObject.process(self, meth, data, replyType, replyData);
if not self.matchMethod (_meth):
return DCOPObject.process(self, _meth, data, replyType, replyData);
# demarshall the arg list for the actual method call and call the method
s = TQDataStream (data, IO_ReadOnly)
@ -149,8 +149,9 @@ class DCOPExObj (DCOPObject):
def matchMethod (self, meth):
# find the method in the dict if it's there
self.method = None
if meth in self.methods:
self.method = self.methods [meth]
_meth = meth.data()
if _meth in self.methods:
self.method = self.methods [_meth]
return self.method != None
def functions (self):
@ -158,7 +159,7 @@ class DCOPExObj (DCOPObject):
# from the entries in the self.methods dict
funcs = DCOPObject.functions (self)
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;
class DCOPExMeth:
@ -173,7 +174,7 @@ class DCOPExMeth:
def parseMethod (self, method):
# strip whitespace
method = str (DCOPClient.normalizeFunctionSignature (method)).replace (">", "> ")
method = DCOPClient.normalizeFunctionSignature(method.encode()).data().replace (">", "> ")
# the return type (rtype) and signature (sig)
self.rtype, tail = method.split (" ", 1)
@ -191,7 +192,7 @@ class DCOPExMeth:
# the list of arg types
self.argtypes = []
args = tail [i + 1 : -1].split (",")
args = tail [i + 1 : -2].split (",")
if args and args != [""]:
for arg in args:
self.argtypes.append (arg.strip ())

@ -57,7 +57,7 @@ typedefIntTypes = set(["uchar", "ushort", "uint", "ulong",
# XXX string and std::string too?
stringTypes = set(["TQString", "TQCString"])
pythonStringTypes = set([TQString, TQCString, str])
stringTypesDict = {"TQString":TQString,"TQCString":TQCString,"str":str,"unicode":unicode}
stringTypesDict = {"TQString":TQString,"TQCString":TQCString,"str":str}
VOID = 0
BOOLEAN = 1 # XXX bool is not supported by dcop_add, but maybe some time...
@ -140,12 +140,12 @@ or
"""
# support stuff:
def _xiter(*seqences):
iters = [iter(seq) for seq in seqences]
def _xiter(*sequences):
iters = [iter(seq) for seq in sequences]
try:
while True:
yield [it.next() for it in iters]
yield [next(it) for it in iters]
except StopIteration:
pass
@ -175,7 +175,7 @@ class MethodParser(object):
num_r = re.compile("0x[0-0a-fA-F]+|[0-9]+")
def __init__(self,method):
self.method = str(method)
self.method = method
self.rtype = None
self.name = None
self.args = []
@ -193,8 +193,8 @@ class MethodParser(object):
i, self.name = self.parseIdentifier(self.method,i)
i = self.parseArgs(self.method,i)
if i != len(self.method):
raise SyntaxError, "invalid function definition: %s" % self.method
if i != (len(self.method) - 1):
raise SyntaxError("invalid function definition: %s" % self.method)
@staticmethod
def skipws(s,i):
@ -253,9 +253,9 @@ class MethodParser(object):
if s[i:i+1] == ')':
i += 1
else:
raise SyntaxError, "missing ')'."
raise SyntaxError("missing ')'.")
else:
raise SyntaxError, "missing '('."
raise SyntaxError("missing '('.")
return i
@ -320,7 +320,7 @@ class MethodParser(object):
L.append('>')
else:
raise SyntaxError, "missing '>'."
raise SyntaxError("missing '>'.")
return i, ''.join(L)
@ -465,7 +465,7 @@ class DCOPApp(object):
or create and return an instance of a specific DCOP object.
"""
def __init__ (self, name, client):
self.appname = name
self.appname = name.encode()
self.appclient = client
def __getattr__ (self, item ):
@ -511,7 +511,7 @@ class DCOPObj(object):
def __init__ (self, *args):
if isStringType(args[0]):
self.appname = args [0]
self.appname = args [0].encode()
self.objclient = args [1]
self.objname = args [2]
else:
@ -537,7 +537,7 @@ class DCOPObj(object):
return DCOPMeth(self, name)
def getMethods(self):
flist, ok = self.objclient.remoteFunctions(self.appname, self.objname)
flist, ok = self.objclient.remoteFunctions(self.appname, self.objname.encode())
if ok:
return flist
@ -575,13 +575,10 @@ class DCOPMeth(object):
self.methname = name
self.client = dcopObj.objclient
try:
self.methods = [str(meth) for meth in dcopObj.objmethods]
self.methods = [meth.data() for meth in dcopObj.objmethods]
except TypeError:
self.methods = []
self.valid = self.findMethod()
#
# if not self.valid:
# self.fcnname = self.rtype = self.argtypes = self.argnames = None
def __repr__( self ):
return "%s(%s,%s,%s)" % (self.__class__.__name__,repr(self.appname),repr(self.objname),repr(self.methname))
@ -607,7 +604,7 @@ class DCOPMeth(object):
meth, argtypes = found
ok, replyType, replyData = self.client.call(self.appname, self.objname, meth, self.__marshall(args,argtypes))
ok, replyType, replyData = self.client.call(self.appname, self.objname.encode(), meth.encode(), self.__marshall(args,argtypes))
if ok:
return ok, self.__unmarshall(replyData, replyType)
@ -676,10 +673,10 @@ class DCOPMeth(object):
for arg, (argtype, argkind) in _xiter(args, argtypes):
if argkind == BOOLEAN:
# XXX for now, let bools be handelt like int
dcop_add(params, int(arg), 'int')
dcop_add(params, int(arg), b'int')
elif argkind in (INTEGER, FLOAT):
dcop_add(params, arg, argtype)
dcop_add(params, arg, argtype.encode())
elif argkind == STRING:
# convert it to the right string type:
@ -710,14 +707,14 @@ class DCOPMeth(object):
dcop_add(params, arg)
else:
raise TypeError, "expected type %s, got type %s." % (argtype, arg.__class__.__name__)
raise TypeError("expected type %s, got type %s." % (argtype, arg.__class__.__name__))
return data
def __unmarshall(self, data, type_):
s = TQDataStream(data, IO_ReadOnly)
if str(type_) in stringTypes:
return unicode(dcop_next(s, type_))
if str(type_.data()) in stringTypes:
return dcop_next(s, type_).decode()
else:
return dcop_next(s, type_)

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

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

@ -51,7 +51,7 @@ subst = $DST/extra/kde350
import = qtmod.sip (TQt_3_0_0 TQt_4_0_0 WS_X11)
importpath = $IMP
sipslot = callBackObj callBackSlot dcopClient
include = ../extra/kde350/dcop
include = ./extra/kde350/dcop
libs = -L@BL_TDEDIR@ -lsip -lqtcmodule -lDCOP
define = "KDE_DEPRECATED", ""
define = "DCOP_EXPORT", ""
@ -184,7 +184,7 @@ import = tdeui
importpath = $IMP
amend = * ctor parent /TransferThis/
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\
-ltdecorecmodule -ltdeuicmodule
sipslot =

@ -51,7 +51,7 @@ subst = $DST/extra/kde351
import = qtmod.sip (TQt_3_0_0 TQt_4_0_0 WS_X11)
importpath = $IMP
sipslot = callBackObj callBackSlot dcopClient
include = ../extra/kde351/dcop
include = ./extra/kde351/dcop
libs = -L@BL_TDEDIR@ -lsip -lqtcmodule -lDCOP
define = "KDE_DEPRECATED", ""
define = "DCOP_EXPORT", ""
@ -184,7 +184,7 @@ import = tdeui
importpath = $IMP
amend = * ctor parent /TransferThis/
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\
-ltdecorecmodule -ltdeuicmodule
sipslot =

@ -51,7 +51,7 @@ subst = $DST/extra/kde352
import = qtmod.sip (TQt_3_0_0 TQt_4_0_0 WS_X11)
importpath = $IMP
sipslot = callBackObj callBackSlot dcopClient
include = ../extra/kde352/dcop
include = ./extra/kde352/dcop
libs = -L@BL_TDEDIR@ -lsip -lqtcmodule -lDCOP
define = "KDE_DEPRECATED", ""
define = "DCOP_EXPORT", ""
@ -184,7 +184,7 @@ import = tdeui
importpath = $IMP
amend = * ctor parent /TransferThis/
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\
-ltdecorecmodule -ltdeuicmodule
sipslot =

@ -51,7 +51,7 @@ subst = $DST/extra/kde353
import = qtmod.sip (TQt_3_0_0 TQt_4_0_0 WS_X11)
importpath = $IMP
sipslot = callBackObj callBackSlot dcopClient
include = ../extra/kde353/dcop
include = ./extra/kde353/dcop
libs = -L@BL_TDEDIR@ -lsip -lqtcmodule -lDCOP
define = "KDE_DEPRECATED", ""
define = "DCOP_EXPORT", ""
@ -184,7 +184,7 @@ import = tdeui
importpath = $IMP
amend = * ctor parent /TransferThis/
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\
-ltdecorecmodule -ltdeuicmodule
sipslot =

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

@ -35,7 +35,7 @@ class KCalendarSystemFactory
public:
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 ();
}; // class KCalendarSystemFactory

@ -175,7 +175,7 @@ protected:
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);
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);
if (iserr || !PyInt_Check (key))
if (iserr || !PyLong_Check (key))
{
*sipIsErr = 1;
delete kbmap;
return 0;
}
kbmap->insert ((TDECompletionBase::KeyBindingType)PyInt_AS_LONG (key), *cValue);
kbmap->insert ((TDECompletionBase::KeyBindingType)PyLong_AS_LONG (key), *cValue);
}
*sipCppPtr = kbmap;

@ -91,7 +91,7 @@ public:
// Convert a Python instance to a Ptr on the heap.
if (sipIsErr == NULL)
return PyInstance_Check(sipPy);
return PyType_Check(sipPy);
int iserr = 0;
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)
{
TQChar acpp = it.key ();
PyObject *binst = PyString_FromString ((char *)((TQString *)&it.data ()));
PyObject *binst = SIPBytes_FromString ((char *)((TQString *)&it.data ()));
PyObject *ainst;
if (((ainst = sipConvertFromNewType(new TQChar(acpp), sipType_TQChar, sipTransferObj)) == NULL)
|| (binst == NULL)
@ -232,7 +232,7 @@ TQString expandMacrosShellQuote (const TQString&, const TQMap<TQStr
for (it = map.begin (); it != map.end (); ++it)
{
TQStringList bcpp = it.data ();
PyObject *ainst = PyString_FromString ((char *)((TQString *)&it.key ()));
PyObject *ainst = SIPBytes_FromString ((char *)((TQString *)&it.key ()));
PyObject *binst;
if (((binst = sipConvertFromNewType(new TQStringList(bcpp), sipType_TQStringList, sipTransferObj)) == NULL)
|| (ainst == NULL)

@ -92,7 +92,7 @@ private:
// Convert a Python instance to a Ptr on the heap.
if (sipIsErr == NULL)
return PyInstance_Check(sipPy);
return PyType_Check(sipPy);
int iserr = 0;
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++)
{
elem = PyList_GET_ITEM (a0, i);
*sipCpp << PyString_AsString (elem);
*sipCpp << sipBytes_AsString (elem);
}

@ -44,7 +44,7 @@ public:
bool close ();
%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

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

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

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

@ -183,8 +183,8 @@ public:
for (it = map.begin (); it != map.end (); ++it)
{
PyObject *iKey = PyInt_FromLong (((long) it.key ()));
PyObject *sData = PyString_FromString ((char *)((TQString *)&it.data ()));
PyObject *iKey = PyLong_FromLong (((long) it.key ()));
PyObject *sData = SIPBytes_FromString ((char *)((TQString *)&it.data ()));
if ((iKey == NULL) || (sData == NULL) || (PyDict_SetItem (dict, iKey, sData) < 0))
{
@ -216,7 +216,7 @@ public:
{
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);
if (iserr)

@ -400,10 +400,9 @@ typedef ulong Atom;
// Convert a Python argv list to a conventional C argc count and argv array.
char **pyArgvToC(PyObject *argvlist,int *argcp)
{
int argc;
char **argv;
argc = PyList_Size(argvlist);
int argc = PyList_Size(argvlist);
// Allocate space for two copies of the argument pointers, plus the
// terminating NULL.
@ -413,22 +412,30 @@ char **pyArgvToC(PyObject *argvlist,int *argcp)
// Convert the list.
for (int a = 0; a < argc; ++a)
{
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 ||
(argv[a] = (char *)sipMalloc(strlen(arg) + 1)) == NULL)
if (PyUnicode_Check(argObject))
{
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.
strcpy(argv[a],arg);
argv[a + argc + 1] = argv[a];
}
argv[argc + argc + 1] = argv[argc] = NULL;
argv[a] = argv[a + argc + 1] = arg;
}
argv[argc] = argv[argc + argc + 1] = NULL;
if (argcp)
{
*argcp = argc;
}
return argv;
}

@ -168,19 +168,35 @@ public:
goto errorExit;
member = PyTuple_GET_ITEM (tuple, 0);
if (PyString_Check (member))
opts [i].name = PyString_AS_STRING (member);
if (PyUnicode_Check(member))
{
opts[i].name= tqstrdup(sipString_AsUTF8String(&member));
}
else if (SIPBytes_Check(member))
{
opts[i].name= tqstrdup(SIPBytes_AS_STRING(member));
}
else
{
goto errorExit;
}
if (tsz > 1)
{
member = PyTuple_GET_ITEM (tuple, 1);
if PyString_Check (member)
opts [i].description = PyString_AS_STRING (member);
if (PyUnicode_Check(member))
{
opts[i].description= tqstrdup(sipString_AsUTF8String(&member));
}
else if (SIPBytes_Check(member))
{
opts[i].description= tqstrdup(SIPBytes_AS_STRING(member));
}
else
{
goto errorExit;
}
}
else
opts [i].description = NULL;
@ -188,11 +204,19 @@ public:
if (tsz > 2)
{
member = PyTuple_GET_ITEM (tuple, 2);
if PyString_Check (member)
opts [i].def = PyString_AS_STRING (member);
if (PyUnicode_Check(member))
{
opts[i].def= tqstrdup(sipString_AsUTF8String(&member));
}
else if (SIPBytes_Check(member))
{
opts[i].def= tqstrdup(SIPBytes_AS_STRING(member));
}
else
{
goto errorExit;
}
}
else
opts [i].def = NULL;
}

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

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

@ -133,7 +133,7 @@ public:
{
public:
ItemPassword (const TQString&, const TQString&, TQString&, const TQString& = TQString ::fromLatin1 ("" ));
ItemPassword (const TQString&, const TQString&, TQString&, const TQString& = TQString ::fromUtf8 ("" ));
}; // class ItemPassword
@ -234,9 +234,9 @@ public:
void setCurrentGroup (const TQString&);
TQString currentGroup ();
void addItem (TDEConfigSkeletonItem*, const TQString& = TQString ::null );
ItemString* addItemString (const TQString&, TQString&, const TQString& = TQString ::fromLatin1 ("" ), const TQString& = TQString ::null );
TDEConfigSkeleton::ItemPassword* addItemPassword (const TQString&, TQString&, const TQString& = TQString ::fromLatin1 ("" ), const TQString& = TQString ::null );
TDEConfigSkeleton::ItemPath* addItemPath (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 ::fromUtf8 ("" ), 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 );
ItemBool* addItemBool (const TQString&, bool&, bool = 0, const TQString& = TQString ::null );
%MethodCode
@ -437,7 +437,7 @@ public:
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&);
TQString& value ();
virtual void setDefaultValue (const TQString&);

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

@ -151,7 +151,7 @@ typedef TQMap<TQString, TQStringList> KStringListMap;
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);
if ((sKey == NULL) || (sData == NULL) || (PyDict_SetItem (dict, sKey, sData) < 0))

@ -152,7 +152,7 @@ typedef ACLUserPermissionsList ACLGroupPermissionsList;
delete cpplist;
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));

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

@ -220,7 +220,7 @@ protected:
{
TQString current_key = it.currentKey ();
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))
{
@ -254,7 +254,7 @@ protected:
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)
sipReleaseType(a0, sipType_TQString, a0_state);
@ -264,7 +264,7 @@ protected:
return 0;
}
a1 = (TQWidget::FocusPolicy) PyInt_AS_LONG (value);
a1 = (TQWidget::FocusPolicy) PyLong_AS_LONG (value);
qdict->insert (*a0, &a1);

@ -477,7 +477,7 @@ TQMap<TQCString,int> testTQMapTQCStringInt (TQMap<TQCString,int>);
PyObject *ainst;
PyObject *binst = 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))
{
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);
if (iserr || !PyInt_Check (belem))
if (iserr || !PyLong_Check (belem))
{
*sipIsErr = 1;
delete cppmap;
return 0;
}
bcpp = PyInt_AS_LONG (belem);
bcpp = PyLong_AS_LONG (belem);
cppmap->insert (*acpp, bcpp);
}

@ -176,7 +176,7 @@ public:
const char **PyTQtListToArray(PyObject *lst)
{
int nstr;
SIP_SSIZE_T nstr;
const char **str, **sp;
nstr = PyList_Size(lst);
@ -190,15 +190,16 @@ const char **PyTQtListToArray(PyObject *lst)
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);
return NULL;
}
*sp++ = s;
*sp++ = item_ascii;
}
return str;

@ -206,7 +206,7 @@ typedef TQDict<int> IntDict;
{
TQString current_key = it.currentKey ();
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))
{
@ -240,7 +240,7 @@ typedef TQDict<int> IntDict;
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)
sipReleaseType(a0, sipType_TQString, a0_state);
@ -250,7 +250,7 @@ typedef TQDict<int> IntDict;
return 0;
}
a1 = (int) PyInt_AS_LONG (value);
a1 = (int) PyLong_AS_LONG (value);
qdict->insert (*a0, &a1);

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

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

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

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

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

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

@ -30,21 +30,32 @@ copyright holder.
import sys
from PyTQt.qt import TQWidget, SIGNAL
from tdecore import TDEApplication, TDEIcon, TDEIconLoader
from tdecore import TDEApplication, TDEIcon, TDEIconLoader, TDEAboutData, TDECmdLineArgs
from tdeui import KSystemTray
class MainWin (TQWidget):
def __init__ (self, *args):
apply (TQWidget.__init__, (self,) + args)
TQWidget.__init__(self, *args)
#-------------------- main ------------------------------------------------
def slotQuitSelected ():
TDEApplication.kApplication().quit()
appName = "template"
app = TDEApplication (sys.argv, appName)
version = "1.0"
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")
icons = TDEIconLoader ()

Loading…
Cancel
Save