Rename KApplication to TDEApplication to avoid conflicts with KDE4

pull/1/head
Timothy Pearson 11 years ago
parent 1d7616d07e
commit 6677c2f8c6

@ -62,7 +62,7 @@ def getOptions ():
kdepyuic [options] filename.ui kdepyuic [options] filename.ui
Options: Options:
-a, --noapp Don't add KApplication code -a, --noapp Don't add TDEApplication code
-i, --noimport Don't add tdecore, tdeui import statements -i, --noimport Don't add tdecore, tdeui import statements
-p, --pyuic Path to pyuic program -p, --pyuic Path to pyuic program
--usekdei18n Adds KDEs default i18n functions to your Python KDE ui file --usekdei18n Adds KDEs default i18n functions to your Python KDE ui file
@ -95,7 +95,7 @@ def checkOptions (optlist):
def addimport (n): def addimport (n):
if addApp: if addApp:
n.write ('from tdecore import KCmdLineArgs, KApplication\n') n.write ('from tdecore import KCmdLineArgs, TDEApplication\n')
if i18nFunc: if i18nFunc:
n.write ('from tdecore import i18n\n') n.write ('from tdecore import i18n\n')
n.write ('from tdeui import *\n\n') n.write ('from tdeui import *\n\n')
@ -107,7 +107,7 @@ def addapp (indent, n):
n.write (indent + 'version = ""\n') n.write (indent + 'version = ""\n')
n.write ('\n') n.write ('\n')
n.write (indent + 'KCmdLineArgs.init (sys.argv, appname, description, version)\n') n.write (indent + 'KCmdLineArgs.init (sys.argv, appname, description, version)\n')
n.write (indent + 'a = KApplication ()\n\n') n.write (indent + 'a = TDEApplication ()\n\n')
def doPyuic (): def doPyuic ():

@ -232,9 +232,9 @@
<tr ><td><a href="tdeui/KActiveLabel.html">KActiveLabel</A></td></tr> <tr ><td><a href="tdeui/KActiveLabel.html">KActiveLabel</A></td></tr>
<tr ><td><a href="tdeui/KAnimWidget.html">KAnimWidget</A></td></tr> <tr ><td><a href="tdeui/KAnimWidget.html">KAnimWidget</A></td></tr>
<tr ><td><a href="kfile/KAppTreeListItem.html">KAppTreeListItem</A></td></tr> <tr ><td><a href="kfile/KAppTreeListItem.html">KAppTreeListItem</A></td></tr>
<tr ><td><a href="tdecore/KApplication.html">KApplication</A></td></tr> <tr ><td><a href="tdecore/TDEApplication.html">TDEApplication</A></td></tr>
<tr ><td><a href="kfile/KApplicationPropsPlugin.html">KApplicationPropsPlugin</A></td></tr> <tr ><td><a href="kfile/TDEApplicationPropsPlugin.html">TDEApplicationPropsPlugin</A></td></tr>
<tr ><td><a href="kfile/KApplicationTree.html">KApplicationTree</A></td></tr> <tr ><td><a href="kfile/TDEApplicationTree.html">TDEApplicationTree</A></td></tr>
<tr ><td><a href="kio/KAr.html">KAr</A></td></tr> <tr ><td><a href="kio/KAr.html">KAr</A></td></tr>
<tr ><td><a href="kio/KArchive.html"><i>KArchive</i></A></td></tr> <tr ><td><a href="kio/KArchive.html"><i>KArchive</i></A></td></tr>
<tr ><td><a href="kio/KArchiveDirectory.html">KArchiveDirectory</A></td></tr> <tr ><td><a href="kio/KArchiveDirectory.html">KArchiveDirectory</A></td></tr>

@ -3,7 +3,7 @@
"http://www.w3.org/TR/html4/loose.dtd""> "http://www.w3.org/TR/html4/loose.dtd"">
<html> <html>
<head> <head>
<title>class KApplicationPropsPlugin</title> <title>class TDEApplicationPropsPlugin</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="GENERATOR" content="wabbit dumphtml"> <meta name="GENERATOR" content="wabbit dumphtml">
</head> </head>
@ -12,7 +12,7 @@
<hr> <hr>
<table width="100%"><tr> <table width="100%"><tr>
<td width ="70%"> <td width ="70%">
<h1>class KApplicationPropsPlugin</h1><hr> <h1>class TDEApplicationPropsPlugin</h1><hr>
</td> </td>
<td width="30%" valign="top" align="right"> <td width="30%" valign="top" align="right">
<table> <table>
@ -28,15 +28,15 @@
<td width="30%" align=left>kfile</td> <td width="30%" align=left>kfile</td>
</tr> </tr>
<tr><td>Class</td> <tr><td>Class</td>
<td>KApplicationPropsPlugin</td> <td>TDEApplicationPropsPlugin</td>
</tr> </tr>
<tr><td>Inherits</td> <tr><td>Inherits</td>
<td>KPropsDlgPlugin </td> <td>KPropsDlgPlugin </td>
</tr> </tr>
</table> </table>
<h3>methods</h3><ul> <h3>methods</h3><ul>
<li><b>KApplicationPropsPlugin</b> (_props) <li><b>TDEApplicationPropsPlugin</b> (_props)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>a KApplicationPropsPlugin instance</i></td></tr> <table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>a TDEApplicationPropsPlugin instance</i></td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr> </table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
<tr><td>_props</td><td>KPropertiesDialog</td><td></td></tr> <tr><td>_props</td><td>KPropertiesDialog</td><td></td></tr>
</table> </table>

@ -3,7 +3,7 @@
"http://www.w3.org/TR/html4/loose.dtd""> "http://www.w3.org/TR/html4/loose.dtd"">
<html> <html>
<head> <head>
<title>class KApplicationTree</title> <title>class TDEApplicationTree</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="GENERATOR" content="wabbit dumphtml"> <meta name="GENERATOR" content="wabbit dumphtml">
</head> </head>
@ -12,7 +12,7 @@
<hr> <hr>
<table width="100%"><tr> <table width="100%"><tr>
<td width ="70%"> <td width ="70%">
<h1>class KApplicationTree</h1><hr> <h1>class TDEApplicationTree</h1><hr>
</td> </td>
<td width="30%" valign="top" align="right"> <td width="30%" valign="top" align="right">
<table> <table>
@ -28,15 +28,15 @@
<td width="30%" align=left>kfile</td> <td width="30%" align=left>kfile</td>
</tr> </tr>
<tr><td>Class</td> <tr><td>Class</td>
<td>KApplicationTree</td> <td>TDEApplicationTree</td>
</tr> </tr>
<tr><td>Inherits</td> <tr><td>Inherits</td>
<td>KListView </td> <td>KListView </td>
</tr> </tr>
</table> </table>
<h3>methods</h3><ul> <h3>methods</h3><ul>
<li><b>KApplicationTree</b> (a0) <li><b>TDEApplicationTree</b> (a0)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>a KApplicationTree instance</i></td></tr> <table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>a TDEApplicationTree instance</i></td></tr>
<tr><td>In versions <i>less than</i> KDE 3.1.0 only</td></tr> <tr><td>In versions <i>less than</i> KDE 3.1.0 only</td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr> </table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
<tr><td>a0</td><td>TQWidget</td><td></td></tr> <tr><td>a0</td><td>TQWidget</td><td></td></tr>

@ -26,8 +26,8 @@
<td valign="top"><table border="0"> <td valign="top"><table border="0">
<tr bgcolor="#fff0ff"><th>KAppTreeListItem - KFileFilterCombo</th></tr> <tr bgcolor="#fff0ff"><th>KAppTreeListItem - KFileFilterCombo</th></tr>
<tr ><td><a href="KAppTreeListItem.html">KAppTreeListItem</a></td></tr> <tr ><td><a href="KAppTreeListItem.html">KAppTreeListItem</a></td></tr>
<tr ><td><a href="KApplicationPropsPlugin.html">KApplicationPropsPlugin</a></td></tr> <tr ><td><a href="TDEApplicationPropsPlugin.html">TDEApplicationPropsPlugin</a></td></tr>
<tr ><td><a href="KApplicationTree.html">KApplicationTree</a></td></tr> <tr ><td><a href="TDEApplicationTree.html">TDEApplicationTree</a></td></tr>
<tr ><td><a href="KBindingPropsPlugin.html">KBindingPropsPlugin</a></td></tr> <tr ><td><a href="KBindingPropsPlugin.html">KBindingPropsPlugin</a></td></tr>
<tr ><td><a href="KCombiView.html">KCombiView</a></td></tr> <tr ><td><a href="KCombiView.html">KCombiView</a></td></tr>
<tr ><td><a href="KCustomMenuEditor.html">KCustomMenuEditor</a></td></tr> <tr ><td><a href="KCustomMenuEditor.html">KCustomMenuEditor</a></td></tr>

@ -3,7 +3,7 @@
"http://www.w3.org/TR/html4/loose.dtd""> "http://www.w3.org/TR/html4/loose.dtd"">
<html> <html>
<head> <head>
<title>class KApplication</title> <title>class TDEApplication</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="GENERATOR" content="wabbit dumphtml"> <meta name="GENERATOR" content="wabbit dumphtml">
</head> </head>
@ -12,7 +12,7 @@
<hr> <hr>
<table width="100%"><tr> <table width="100%"><tr>
<td width ="70%"> <td width ="70%">
<h1>class KApplication</h1><hr> <h1>class TDEApplication</h1><hr>
</td> </td>
<td width="30%" valign="top" align="right"> <td width="30%" valign="top" align="right">
<table> <table>
@ -28,7 +28,7 @@
<td width="30%" align=left>tdecore</td> <td width="30%" align=left>tdecore</td>
</tr> </tr>
<tr><td>Class</td> <tr><td>Class</td>
<td>KApplication</td> <td>TDEApplication</td>
</tr> </tr>
<tr><td>Inherits</td> <tr><td>Inherits</td>
<td>TQApplication, KInstance </td> <td>TQApplication, KInstance </td>
@ -44,21 +44,21 @@
}<li><b>ShutdownType</b> = {ShutdownTypeDefault, ShutdownTypeNone, ShutdownTypeReboot, ShutdownTypeHalt }<li><b>ShutdownType</b> = {ShutdownTypeDefault, ShutdownTypeNone, ShutdownTypeReboot, ShutdownTypeHalt
}</ul> }</ul>
<h3>methods</h3><ul> <h3>methods</h3><ul>
<li><b>KApplication</b> (allowStyles = 1, GUIenabled = 1) <li><b>TDEApplication</b> (allowStyles = 1, GUIenabled = 1)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>a KApplication instance</i></td></tr> <table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>a TDEApplication instance</i></td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr> </table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
<tr><td>allowStyles</td><td>bool</td><td>1</td></tr> <tr><td>allowStyles</td><td>bool</td><td>1</td></tr>
<tr><td>GUIenabled</td><td>bool</td><td>1</td></tr> <tr><td>GUIenabled</td><td>bool</td><td>1</td></tr>
</table> </table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr> </td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>KApplication</b> (display, visual = 0, colormap = 0, allowStyles = 1) <li><b>TDEApplication</b> (display, visual = 0, colormap = 0, allowStyles = 1)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td><i>Not Implemented</i></td></tr></table> <table width = "100%"><tr><td width="50%" valign="top"><table><tr><td><i>Not Implemented</i></td></tr></table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr> </td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>KApplication</b> (display, rAppName, allowStyles = 1, GUIenabled = 1) <li><b>TDEApplication</b> (display, rAppName, allowStyles = 1, GUIenabled = 1)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td><i>Not Implemented</i></td></tr></table> <table width = "100%"><tr><td width="50%" valign="top"><table><tr><td><i>Not Implemented</i></td></tr></table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr> </td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>KApplication</b> (argv, rAppName, allowStyles = 1, GUIenabled = 1) <li><b>TDEApplication</b> (argv, rAppName, allowStyles = 1, GUIenabled = 1)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>a KApplication instance</i></td></tr> <table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>a TDEApplication instance</i></td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr> </table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
<tr><td>argv</td><td>a Python list of strings</td><td></td></tr> <tr><td>argv</td><td>a Python list of strings</td><td></td></tr>
<tr><td>rAppName</td><td>Python string</td><td></td></tr> <tr><td>rAppName</td><td>Python string</td><td></td></tr>
@ -66,21 +66,21 @@
<tr><td>GUIenabled</td><td>bool</td><td>1</td></tr> <tr><td>GUIenabled</td><td>bool</td><td>1</td></tr>
</table> </table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr> </td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>KApplication</b> (allowStyles, GUIenabled, _instance) <li><b>TDEApplication</b> (allowStyles, GUIenabled, _instance)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>a KApplication instance</i></td></tr> <table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>a TDEApplication instance</i></td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr> </table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
<tr><td>allowStyles</td><td>bool</td><td></td></tr> <tr><td>allowStyles</td><td>bool</td><td></td></tr>
<tr><td>GUIenabled</td><td>bool</td><td></td></tr> <tr><td>GUIenabled</td><td>bool</td><td></td></tr>
<tr><td>_instance</td><td>KInstance</td><td></td></tr> <tr><td>_instance</td><td>KInstance</td><td></td></tr>
</table> </table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr> </td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>KApplication</b> (display, visual, colormap, allowStyles, _instance) <li><b>TDEApplication</b> (display, visual, colormap, allowStyles, _instance)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td><i>Not Implemented</i></td></tr></table> <table width = "100%"><tr><td width="50%" valign="top"><table><tr><td><i>Not Implemented</i></td></tr></table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr> </td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>KApplication</b> (a0) <li><b>TDEApplication</b> (a0)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>a KApplication instance</i></td></tr> <table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>a TDEApplication instance</i></td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr> </table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
<tr><td>a0</td><td>KApplication</td><td></td></tr> <tr><td>a0</td><td>TDEApplication</td><td></td></tr>
</table> </table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr> </td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>addCmdLineOptions</b> () <li><b>addCmdLineOptions</b> ()
@ -364,7 +364,7 @@
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(bool)</i></td></tr> <table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(bool)</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr> </table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>kApplication</b> () <li><b>kApplication</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(KApplication)</i></td></tr> <table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(TDEApplication)</i></td></tr>
<tr><td><i>static</i></td></tr> <tr><td><i>static</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr> </table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>tdeinitExec</b> (name, args, startup_id) <li><b>tdeinitExec</b> (name, args, startup_id)
@ -499,9 +499,9 @@
<li><b>requestShutDown</b> (confirm = ShutdownConfirmDefault, sdtype = ShutdownTypeDefault, sdmode = ShutdownModeDefault) <li><b>requestShutDown</b> (confirm = ShutdownConfirmDefault, sdtype = ShutdownTypeDefault, sdmode = ShutdownModeDefault)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(bool)</i></td></tr> <table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(bool)</i></td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr> </table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
<tr><td>confirm</td><td>KApplication.ShutdownConfirm</td><td>ShutdownConfirmDefault</td></tr> <tr><td>confirm</td><td>TDEApplication.ShutdownConfirm</td><td>ShutdownConfirmDefault</td></tr>
<tr><td>sdtype</td><td>KApplication.ShutdownType</td><td>ShutdownTypeDefault</td></tr> <tr><td>sdtype</td><td>TDEApplication.ShutdownType</td><td>ShutdownTypeDefault</td></tr>
<tr><td>sdmode</td><td>KApplication.ShutdownMode</td><td>ShutdownModeDefault</td></tr> <tr><td>sdmode</td><td>TDEApplication.ShutdownMode</td><td>ShutdownModeDefault</td></tr>
</table> </table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr> </td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>saveState</b> (sm) <li><b>saveState</b> (sm)

@ -31,7 +31,7 @@
<td>KUniqueApplication</td> <td>KUniqueApplication</td>
</tr> </tr>
<tr><td>Inherits</td> <tr><td>Inherits</td>
<td>KApplication, DCOPObject </td> <td>TDEApplication, DCOPObject </td>
</tr> </tr>
</table> </table>
<h3>methods</h3><ul> <h3>methods</h3><ul>

@ -34,7 +34,7 @@
<tr ><td><a href="KAccelActions.html">KAccelActions</a></td></tr> <tr ><td><a href="KAccelActions.html">KAccelActions</a></td></tr>
<tr ><td><a href="KAccelBase.html"><i>KAccelBase</i></a></td></tr> <tr ><td><a href="KAccelBase.html"><i>KAccelBase</i></a></td></tr>
<tr ><td><a href="KAccelShortcutList.html">KAccelShortcutList</a></td></tr> <tr ><td><a href="KAccelShortcutList.html">KAccelShortcutList</a></td></tr>
<tr ><td><a href="KApplication.html">KApplication</a></td></tr> <tr ><td><a href="TDEApplication.html">TDEApplication</a></td></tr>
<tr ><td><a href="KAsyncIO.html"><i>KAsyncIO</i></a></td></tr> <tr ><td><a href="KAsyncIO.html"><i>KAsyncIO</i></a></td></tr>
<tr ><td><a href="KAudioPlayer.html">KAudioPlayer</a></td></tr> <tr ><td><a href="KAudioPlayer.html">KAudioPlayer</a></td></tr>
<tr ><td><a href="KBufferedIO.html"><i>KBufferedIO</i></a></td></tr> <tr ><td><a href="KBufferedIO.html"><i>KBufferedIO</i></a></td></tr>

@ -92,7 +92,7 @@ object names have this property).
import dcopext import dcopext
# ! other imports not shown ! # ! other imports not shown !
app = KApplication () app = TDEApplication ()
dcop = app.dcopClient () dcop = app.dcopClient ()
d = dcopext.DCOPApp ("kicker", dcop) d = dcopext.DCOPApp ("kicker", dcop)
@ -101,7 +101,7 @@ ok, panelPos = d.Panel.panelPosition ()
</PRE></TD></TR></TABLE> </PRE></TD></TR></TABLE>
<p> <p>
That's all there's to it in this case. We import dcopext, which contains the client extension That's all there's to it in this case. We import dcopext, which contains the client extension
classes; from the KApplication instance, we "borrow" the DCOPClient instance (dcop); we create a classes; from the TDEApplication instance, we "borrow" the DCOPClient instance (dcop); we create a
DCOPApp instance, passing it the name of the app ("kicker") and the DCOPClient instance; we DCOPApp instance, passing it the name of the app ("kicker") and the DCOPClient instance; we
call kicker's Panel object's panelPosition method (d.Panel.panelPosition); lastly, the integer call kicker's Panel object's panelPosition method (d.Panel.panelPosition); lastly, the integer
value is returned to our application (panelPos) as the second item in a tuple - the first element value is returned to our application (panelPos) as the second item in a tuple - the first element
@ -146,7 +146,7 @@ full id (app name + pid - eg konqueror-14409) when constructing DCOPApp or DCOPO
</p> </p>
<p> <p>
If you instantiate the application you want to communicate with from your own application (that If you instantiate the application you want to communicate with from your own application (that
will be making the DCOP calls), methods like KApplication.startServiceByDesktopName will will be making the DCOP calls), methods like TDEApplication.startServiceByDesktopName will
let you start the app and also return both the PID of the started app and the complete let you start the app and also return both the PID of the started app and the complete
identifier string needed to initiate DCOP communications. The identifier's name portion may or identifier string needed to initiate DCOP communications. The identifier's name portion may or
may not be the same as the name of the application (see the example_dcopexport.py example program, may not be the same as the name of the application (see the example_dcopexport.py example program,

@ -34,7 +34,7 @@ copyright holder.
# which was written by Torben Weis and Julian Rockey # which was written by Torben Weis and Julian Rockey
import sys import sys
from tdecore import KApplication, KCmdLineArgs, KAboutData from tdecore import TDEApplication, KCmdLineArgs, KAboutData
from dcopexport import DCOPExObj from dcopexport import DCOPExObj
from qt import TQString, TQStringList from qt import TQString, TQStringList
@ -113,7 +113,7 @@ KCmdLineArgs.init (sys.argv, aboutData)
KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")])
app = KApplication () app = TDEApplication ()
dcop = app.dcopClient () dcop = app.dcopClient ()
appid = dcop.registerAs('petshop') appid = dcop.registerAs('petshop')
print "DCOP Application: %s starting" % appid print "DCOP Application: %s starting" % appid

@ -30,7 +30,7 @@ copyright holder.
import sys, time import sys, time
import dcop import dcop
import dcopext import dcopext
from tdecore import KApplication, KCmdLineArgs, KAboutData from tdecore import TDEApplication, KCmdLineArgs, KAboutData
from qt import TQString, TQCString from qt import TQString, TQCString
@ -65,7 +65,7 @@ KCmdLineArgs.init (sys.argv, aboutData)
KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")])
app = KApplication () app = TDEApplication ()
dcop = app.dcopClient () dcop = app.dcopClient ()
#getAnyApplication (dcop, "konqueror") #getAnyApplication (dcop, "konqueror")
@ -118,7 +118,7 @@ print "--------------------------"
print print
print print
print "Start a kwrite instance" print "Start a kwrite instance"
errcode, error, dcopService, pid = KApplication.startServiceByDesktopName ("kwrite", "") errcode, error, dcopService, pid = TDEApplication.startServiceByDesktopName ("kwrite", "")
dcopService = "kwrite-" + str (pid) dcopService = "kwrite-" + str (pid)
print "errcode: %i error: %s dcopService: %s pid: %i" % (errcode, error, dcopService, pid) print "errcode: %i error: %s dcopService: %s pid: %i" % (errcode, error, dcopService, pid)
print "--------------------------" print "--------------------------"

@ -31,7 +31,7 @@ urls = ["http://slashdot.org", "http://www.kde.org", "http://www.riverbankcomput
import sys import sys
from tdecore import KApplication, KCmdLineArgs, KAboutData, KURL from tdecore import TDEApplication, KCmdLineArgs, KAboutData, KURL
from tdeui import KMainWindow, KEdit from tdeui import KMainWindow, KEdit
class MainWin (KMainWindow): class MainWin (KMainWindow):
@ -92,7 +92,7 @@ KCmdLineArgs.init (sys.argv, aboutData)
KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")])
app = KApplication () app = TDEApplication ()
mainWindow = MainWin (None, "main window") mainWindow = MainWin (None, "main window")
mainWindow.show() mainWindow.show()
app.exec_loop() app.exec_loop()

@ -43,7 +43,7 @@ import sys
from qt import TQPopupMenu, SIGNAL, TQLabel, TQIconSet from qt import TQPopupMenu, SIGNAL, TQLabel, TQIconSet
from tdecore import KApplication, KCmdLineArgs, KAboutData, i18n, KIcon, KIconLoader, KShortcut from tdecore import TDEApplication, KCmdLineArgs, KAboutData, i18n, KIcon, KIconLoader, KShortcut
from tdeui import KMainWindow, KMessageBox, KStdAction, KAction, KToggleAction, KFontSizeAction, KFontAction, KRadioAction,\ from tdeui import KMainWindow, KMessageBox, KStdAction, KAction, KToggleAction, KFontSizeAction, KFontAction, KRadioAction,\
KActionSeparator, KActionMenu, KWindowListMenu KActionSeparator, KActionMenu, KWindowListMenu
@ -285,7 +285,7 @@ KCmdLineArgs.init (sys.argv, aboutData)
KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")])
app = KApplication () app = TDEApplication ()
mainWindow = MainWin (None, "main window") mainWindow = MainWin (None, "main window")
mainWindow.show() mainWindow.show()
app.exec_loop() app.exec_loop()

@ -41,7 +41,7 @@ import sys
from qt import TQWidget, TQButtonGroup, TQt, TQLabel, TQListView, TQListViewItem from qt import TQWidget, TQButtonGroup, TQt, TQLabel, TQListView, TQListViewItem
from tdecore import KApplication, KCmdLineArgs, KAboutData, KURL from tdecore import TDEApplication, KCmdLineArgs, KAboutData, KURL
from tdeui import KMainWindow, KTabCtl, KListBox from tdeui import KMainWindow, KTabCtl, KListBox
from kio import KMimeType, KService, KServiceGroup, KServiceType, KTrader, KServiceTypeProfile, KServiceGroup from kio import KMimeType, KService, KServiceGroup, KServiceType, KTrader, KServiceTypeProfile, KServiceGroup
@ -263,7 +263,7 @@ KCmdLineArgs.init (sys.argv, aboutData)
KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")])
app = KApplication () app = TDEApplication ()
mainWindow = MainWin (None, "main window") mainWindow = MainWin (None, "main window")
mainWindow.show() mainWindow.show()
app.exec_loop() app.exec_loop()

@ -43,7 +43,7 @@ lifted from the KDE classref.
# If you import more classes, don't forget to add them here (some of these # If you import more classes, don't forget to add them here (some of these
# are extras/not used) # are extras/not used)
from tdecore import KCmdLineArgs, KURL, KApplication, i18n, KAboutData, BarIcon, KLibLoader from tdecore import KCmdLineArgs, KURL, TDEApplication, i18n, KAboutData, BarIcon, KLibLoader
from tdeui import KMainWindow, KMessageBox, KAction, KStdAction, KKeyDialog, KEditToolbar from tdeui import KMainWindow, KMessageBox, KAction, KStdAction, KKeyDialog, KEditToolbar
@ -192,10 +192,10 @@ aboutData = KAboutData ("pyKHTMLPart", "pyHTMLPart",\
aboutData.addAuthor ("Jim Bublitz", "Example for PyKDE", "jbublitz@nwinternet.com") aboutData.addAuthor ("Jim Bublitz", "Example for PyKDE", "jbublitz@nwinternet.com")
# This MUST go here (before KApplication () is called) # This MUST go here (before TDEApplication () is called)
KCmdLineArgs.init (sys.argv, aboutData) KCmdLineArgs.init (sys.argv, aboutData)
app = KApplication () app = TDEApplication ()
if (app.isRestored()): if (app.isRestored()):
RESTORE(KLess) RESTORE(KLess)

@ -3,7 +3,7 @@
from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL
from tdeui import KWindowInfo, KPushButton, KTextEdit from tdeui import KWindowInfo, KPushButton, KTextEdit
from tdecore import i18n, KApplication from tdecore import i18n, TDEApplication
iconName = 'misc' iconName = 'misc'
labelText = 'KWindowInfo' labelText = 'KWindowInfo'
@ -25,7 +25,7 @@ class MainFrame(TQFrame):
def showWindowInfo(self): def showWindowInfo(self):
main = KApplication.kApplication() main = TDEApplication.kApplication()
print main print main
print main.mainWidget() print main.mainWidget()

@ -19,7 +19,7 @@ tdecore,KAccelAction,,,
tdecore,KAccelActions,,, tdecore,KAccelActions,,,
tdecore,KAccelBase,,, tdecore,KAccelBase,,,
tdecore,KAccelShortcutList,,, tdecore,KAccelShortcutList,,,
tdecore,KApplication,,, tdecore,TDEApplication,,,
tdecore,KAsyncIO,,, tdecore,KAsyncIO,,,
tdecore,KAudioPlayer,,, tdecore,KAudioPlayer,,,
tdecore,KBufferedIO,,, tdecore,KBufferedIO,,,
@ -342,7 +342,7 @@ tdeui,KXMLGUIFactory,,,
tdeui,KXYSelector,,, tdeui,KXYSelector,,,
tdeui,QXEmbed,,, tdeui,QXEmbed,,,
tdeui,testKActionList,,, tdeui,testKActionList,,,
kfile,KApplicationPropsPlugin,,, kfile,TDEApplicationPropsPlugin,,,
kfile,KBindingPropsPlugin,,, kfile,KBindingPropsPlugin,,,
kfile,KCombiView,,, kfile,KCombiView,,,
kfile,KCustomMenuEditor,,, kfile,KCustomMenuEditor,,,

@ -3,7 +3,7 @@
""" """
import sys import sys
from tdecore import KApplication, KCmdLineArgs from tdecore import TDEApplication, KCmdLineArgs
from tdeui import KMainWindow from tdeui import KMainWindow
from qt import TQVBoxLayout from qt import TQVBoxLayout
@ -52,7 +52,7 @@ if __name__ == '__main__':
pathitem = args.arg(0) pathitem = args.arg(0)
widget = importItem(pathitem) widget = importItem(pathitem)
app = KApplication() app = TDEApplication()
mainWindow = SamplerRunnerWindow(widget) mainWindow = SamplerRunnerWindow(widget)
mainWindow.show() mainWindow.show()
app.exec_loop() app.exec_loop()

@ -14,7 +14,7 @@ from qt import SIGNAL, SLOT, PYSIGNAL, TQt
from qt import TQVBoxLayout, TQLabel, TQPixmap, TQSplitter, TQFrame, TQDialog from qt import TQVBoxLayout, TQLabel, TQPixmap, TQSplitter, TQFrame, TQDialog
from qt import TQSizePolicy, TQHBoxLayout, TQSpacerItem, TQPushButton from qt import TQSizePolicy, TQHBoxLayout, TQSpacerItem, TQPushButton
from tdecore import i18n, KAboutData, KApplication, KCmdLineArgs, KGlobal from tdecore import i18n, KAboutData, TDEApplication, KCmdLineArgs, KGlobal
from tdecore import KGlobalSettings, KWin, KWinModule, KURL, KIcon from tdecore import KGlobalSettings, KWin, KWinModule, KURL, KIcon
from tdeui import KComboBox, KListView, KListViewItem, KTabWidget, KTextEdit from tdeui import KComboBox, KListView, KListViewItem, KTabWidget, KTextEdit
@ -410,7 +410,7 @@ class SamplerMainWindow(KMainWindow):
if __name__ == '__main__': if __name__ == '__main__':
aboutdata = about.about() aboutdata = about.about()
KCmdLineArgs.init(sys.argv, aboutdata) KCmdLineArgs.init(sys.argv, aboutdata)
app = KApplication() app = TDEApplication()
splashpix = TQPixmap(os.path.join(lib.samplerpath, 'aboutkde.png')) splashpix = TQPixmap(os.path.join(lib.samplerpath, 'aboutkde.png'))
splash = KSplashScreen(splashpix) splash = KSplashScreen(splashpix)

@ -30,7 +30,7 @@ copyright holder.
import sys import sys
from qt import TQLabel from qt import TQLabel
from tdecore import KApplication, KIcon, KIconLoader from tdecore import TDEApplication, KIcon, KIconLoader
from tdeui import KMainWindow, KSystemTray from tdeui import KMainWindow, KSystemTray
class MainWin (KMainWindow): class MainWin (KMainWindow):
@ -40,7 +40,7 @@ class MainWin (KMainWindow):
#-------------------- main ------------------------------------------------ #-------------------- main ------------------------------------------------
appName = "template" appName = "template"
app = KApplication (sys.argv, appName) app = TDEApplication (sys.argv, appName)
mainWindow = MainWin (None, "main window") mainWindow = MainWin (None, "main window")
icons = KIconLoader () icons = KIconLoader ()

@ -29,7 +29,7 @@ import os
import sys import sys
from qt import SIGNAL, TQVBoxLayout, TQLabel from qt import SIGNAL, TQVBoxLayout, TQLabel
from tdecore import i18n, KAboutData, KApplication, KGlobal, KIcon, KCmdLineArgs from tdecore import i18n, KAboutData, TDEApplication, KGlobal, KIcon, KCmdLineArgs
from tdeui import KDockWidget, KListBox, KStdAction from tdeui import KDockWidget, KListBox, KStdAction
try: try:
@ -197,7 +197,7 @@ if __name__ == '__main__':
about.addAuthor(author, 'hi, mom!', authormail) about.addAuthor(author, 'hi, mom!', authormail)
about.addAuthor ('Jim Bublitz', 'For PyKDE', 'jbublitz@nwinternet.com') about.addAuthor ('Jim Bublitz', 'For PyKDE', 'jbublitz@nwinternet.com')
KCmdLineArgs.init(sys.argv, about) KCmdLineArgs.init(sys.argv, about)
app = KApplication() app = TDEApplication()
mainWindow = KmdiExample() mainWindow = KmdiExample()
mainWindow.show() mainWindow.show()
app.exec_loop() app.exec_loop()

@ -2,7 +2,7 @@ import os
from qt import TQLabel from qt import TQLabel
from tdecore import KApplication from tdecore import TDEApplication
class PageLaunch: class PageLaunch:
def __init__ (self, parent): def __init__ (self, parent):
@ -17,7 +17,7 @@ class PageLaunch:
self.page.show () self.page.show ()
KApplication.kApplication ().processEvents () TDEApplication.kApplication ().processEvents ()
class PageNotImpl: class PageNotImpl:

@ -3,7 +3,7 @@ import time, sys
from qt import TQLabel, TQFrame, TQColor, TQPushButton, SIGNAL, TQButtonGroup, TQRadioButton, TQt, TQString, TQChar,\ from qt import TQLabel, TQFrame, TQColor, TQPushButton, SIGNAL, TQButtonGroup, TQRadioButton, TQt, TQString, TQChar,\
TQWidget, TQTimer TQWidget, TQTimer
from tdecore import KApplication from tdecore import TDEApplication
from tdeui import KEdit, KComboBox, KColorCombo, KEditListBox, KListBox, KLineEdit, KRestrictedLine,\ from tdeui import KEdit, KComboBox, KColorCombo, KEditListBox, KListBox, KLineEdit, KRestrictedLine,\
KSqueezedTextLabel, KFontChooser, KButtonBox, KColorButton, KColorCells,\ KSqueezedTextLabel, KFontChooser, KButtonBox, KColorButton, KColorCells,\
KColorPatch, KDualColorButton,\ KColorPatch, KDualColorButton,\
@ -118,7 +118,7 @@ class Page1:
grp.show () grp.show ()
self.page.show () self.page.show ()
kapp = KApplication.kApplication () kapp = TDEApplication.kApplication ()
kapp.processEvents () kapp.processEvents ()
y = y + 195 y = y + 195

@ -2,7 +2,7 @@ import os
from qt import TQLabel from qt import TQLabel
from tdecore import KApplication from tdecore import TDEApplication
class PageLaunch: class PageLaunch:
def __init__ (self, parent): def __init__ (self, parent):
@ -17,7 +17,7 @@ class PageLaunch:
self.page.show () self.page.show ()
KApplication.kApplication ().processEvents () TDEApplication.kApplication ().processEvents ()
def xmlKActionCollection (parent): def xmlKActionCollection (parent):
parent.currentPageObj = PageLaunch (parent) parent.currentPageObj = PageLaunch (parent)

@ -6,7 +6,7 @@ import sys
from qt import TQIconSet, TQProcess, TQTimer, SIGNAL, SLOT from qt import TQIconSet, TQProcess, TQTimer, SIGNAL, SLOT
from tdecore import KAboutData, KApplication, KCmdLineArgs, KGlobal, KIcon from tdecore import KAboutData, TDEApplication, KCmdLineArgs, KGlobal, KIcon
from tdecore import KWin, KWinModule from tdecore import KWin, KWinModule
from tdeui import KComboBox, KMainWindow, KPushButton, QXEmbed from tdeui import KComboBox, KMainWindow, KPushButton, QXEmbed
@ -112,7 +112,7 @@ if __name__ == '__main__':
about.addAuthor(author, 'hi, mom!', authormail) about.addAuthor(author, 'hi, mom!', authormail)
about.addAuthor ('Jim Bublitz', 'For PyKDE', 'jbublitz@nwinternet.com') about.addAuthor ('Jim Bublitz', 'For PyKDE', 'jbublitz@nwinternet.com')
KCmdLineArgs.init(sys.argv, about) KCmdLineArgs.init(sys.argv, about)
app = KApplication() app = TDEApplication()
mainWindow = ExampleMain() mainWindow = ExampleMain()
mainWindow.show() mainWindow.show()
app.connect(app, SIGNAL('lastWindowClosed()'), app, SLOT('quit()')) app.connect(app, SIGNAL('lastWindowClosed()'), app, SLOT('quit()'))

@ -3,7 +3,7 @@ sys.path.append ("./uimodules")
from qt import TQSplitter, TQWidgetStack, TQWidget, TQListViewItem, SIGNAL, TQCString , TQScrollView, TQRect, TQt from qt import TQSplitter, TQWidgetStack, TQWidget, TQListViewItem, SIGNAL, TQCString , TQScrollView, TQRect, TQt
from tdecore import KApplication, KCmdLineArgs, KAboutData from tdecore import TDEApplication, KCmdLineArgs, KAboutData
from tdeui import KMainWindow, KListView from tdeui import KMainWindow, KListView
from uidialogs import * from uidialogs import *
@ -220,7 +220,7 @@ class MainWin (KMainWindow):
#-------------------- main ------------------------------------------------ #-------------------- main ------------------------------------------------
appName = "UISampler" appName = "UISampler"
app = KApplication (sys.argv, appName) app = TDEApplication (sys.argv, appName)
mainWindow = MainWin (None, "main window") mainWindow = MainWin (None, "main window")
mainWindow.show() mainWindow.show()
app.exec_loop() app.exec_loop()

@ -43,7 +43,7 @@ import sys, os
from qt import TQPopupMenu, SIGNAL, TQLabel, TQIconSet from qt import TQPopupMenu, SIGNAL, TQLabel, TQIconSet
from tdecore import KApplication, KCmdLineArgs, KAboutData, i18n, KIcon, KIconLoader, KShortcut, KGlobal from tdecore import TDEApplication, KCmdLineArgs, KAboutData, i18n, KIcon, KIconLoader, KShortcut, KGlobal
from tdeui import KMainWindow, KMessageBox, KStdAction, KAction, KToggleAction, KFontSizeAction, KFontAction, KRadioAction,\ from tdeui import KMainWindow, KMessageBox, KStdAction, KAction, KToggleAction, KFontSizeAction, KFontAction, KRadioAction,\
KActionSeparator, KActionMenu, KWindowListMenu, KXMLGUIClient, KActionCollection KActionSeparator, KActionMenu, KWindowListMenu, KXMLGUIClient, KActionCollection
@ -285,7 +285,7 @@ KCmdLineArgs.init (sys.argv, aboutData)
KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")])
app = KApplication () app = TDEApplication ()
mainWindow = MainWin (None, "main window") mainWindow = MainWin (None, "main window")
mainWindow.show() mainWindow.show()
app.exec_loop() app.exec_loop()

@ -76,7 +76,7 @@ allow transparent Python calls to DCOP methods. For example:
d = DCOPApp ("kicker", dcop) d = DCOPApp ("kicker", dcop)
(where "kicker" is the complete name of an application and 'dcop' is (where "kicker" is the complete name of an application and 'dcop' is
the dcopClient instance owned by the KApplication creating the DCOPApp the dcopClient instance owned by the TDEApplication creating the DCOPApp
instance) creates a DCOPApp instance. All of the classes in this instance) creates a DCOPApp instance. All of the classes in this
file "borrow" a DCOPClient instance from the calling application. file "borrow" a DCOPClient instance from the calling application.

@ -327,7 +327,7 @@ def appQuit (filelist):
tmp.write (buff [i] + "\nfrom qt import TQCloseEvent") tmp.write (buff [i] + "\nfrom qt import TQCloseEvent")
i = i + 1 i = i + 1
while (i < nLines) and (string.find (buff [i], "class KApplication") < 0): while (i < nLines) and (string.find (buff [i], "class TDEApplication") < 0):
tmp.write (buff [i]) tmp.write (buff [i])
i = i + 1 i = i + 1
@ -343,7 +343,7 @@ def appQuit (filelist):
tmp.write (\ tmp.write (\
"""\tdef quit (self): """\tdef quit (self):
\t\tk = KApplication.kApplication () \t\tk = TDEApplication.kApplication ()
\t\te = TQCloseEvent () \t\te = TQCloseEvent ()
\t\tfor w in k.topLevelWidgets (): \t\tfor w in k.topLevelWidgets ():

@ -133,10 +133,10 @@ private:
// must be sorted by name. // must be sorted by name.
static sipStringTypeClassMap map[] = { static sipStringTypeClassMap map[] = {
{sipName_KApplicationPropsPlugin, &sipClass_KApplicationPropsPlugin}, {sipName_TDEApplicationPropsPlugin, &sipClass_TDEApplicationPropsPlugin},
{sipName_KApplicationPropsPlugin, &sipClass_KApplicationPropsPlugin}, {sipName_TDEApplicationPropsPlugin, &sipClass_TDEApplicationPropsPlugin},
#if TDE_VERSION < 310 #if TDE_VERSION < 310
// {sipName_KApplicationTree, &sipClass_KApplicationTree}, // {sipName_TDEApplicationTree, &sipClass_TDEApplicationTree},
#endif #endif
{sipName_KBindingPropsPlugin, &sipClass_KBindingPropsPlugin}, {sipName_KBindingPropsPlugin, &sipClass_KBindingPropsPlugin},
{sipName_KBindingPropsPlugin, &sipClass_KBindingPropsPlugin}, {sipName_KBindingPropsPlugin, &sipClass_KBindingPropsPlugin},

@ -116,7 +116,7 @@ protected:
%If ( - KDE_3_1_0 ) %If ( - KDE_3_1_0 )
class KApplicationTree : KListView class TDEApplicationTree : KListView
{ {
%TypeHeaderCode %TypeHeaderCode
#include <kopenwith.h> #include <kopenwith.h>
@ -124,7 +124,7 @@ class KApplicationTree : KListView
public: public:
KApplicationTree (TQWidget* /TransferThis/); TDEApplicationTree (TQWidget* /TransferThis/);
void addDesktopGroup (TQString, KAppTreeListItem* = 0); void addDesktopGroup (TQString, KAppTreeListItem* = 0);
KAppTreeListItem* it; KAppTreeListItem* it;
bool isDirSel (); bool isDirSel ();
@ -140,7 +140,7 @@ signals:
void selected (const TQString&, const TQString&); void selected (const TQString&, const TQString&);
void highlighted (const TQString&, const TQString&); void highlighted (const TQString&, const TQString&);
}; // class KApplicationTree }; // class TDEApplicationTree
%End %End

@ -284,7 +284,7 @@ public slots:
}; // class KExecPropsPlugin }; // class KExecPropsPlugin
class KApplicationPropsPlugin : KPropsDlgPlugin class TDEApplicationPropsPlugin : KPropsDlgPlugin
{ {
%TypeHeaderCode %TypeHeaderCode
#include <kpropertiesdialog.h> #include <kpropertiesdialog.h>
@ -292,7 +292,7 @@ class KApplicationPropsPlugin : KPropsDlgPlugin
public: public:
KApplicationPropsPlugin (KPropertiesDialog*); TDEApplicationPropsPlugin (KPropertiesDialog*);
virtual void applyChanges (); virtual void applyChanges ();
static bool supports (KFileItemList); static bool supports (KFileItemList);
@ -300,5 +300,5 @@ public slots:
void slotDelExtension (); void slotDelExtension ();
void slotAddExtension (); void slotAddExtension ();
}; // class KApplicationPropsPlugin }; // class TDEApplicationPropsPlugin

@ -158,7 +158,7 @@ public:
}; // class KURLPropsPlugin }; // class KURLPropsPlugin
class KApplicationPropsPlugin : KPropsDlgPlugin class TDEApplicationPropsPlugin : KPropsDlgPlugin
{ {
%TypeHeaderCode %TypeHeaderCode
#include <kpropsdlg.h> #include <kpropsdlg.h>
@ -166,7 +166,7 @@ class KApplicationPropsPlugin : KPropsDlgPlugin
public: public:
KApplicationPropsPlugin (KPropertiesDialog*); TDEApplicationPropsPlugin (KPropertiesDialog*);
virtual void applyChanges (); virtual void applyChanges ();
static bool supports (KFileItemList); static bool supports (KFileItemList);
@ -174,7 +174,7 @@ public slots:
void slotDelExtension (); void slotDelExtension ();
void slotAddExtension (); void slotAddExtension ();
}; // class KApplicationPropsPlugin }; // class TDEApplicationPropsPlugin
class KBindingPropsPlugin : KPropsDlgPlugin class KBindingPropsPlugin : KPropsDlgPlugin

@ -118,7 +118,7 @@ public:
static sipStringTypeClassMap map[] = { static sipStringTypeClassMap map[] = {
{sipName_KAccel, &sipClass_KAccel}, {sipName_KAccel, &sipClass_KAccel},
{sipName_KApplication, &sipClass_KApplication}, {sipName_TDEApplication, &sipClass_TDEApplication},
{sipName_KAsyncIO, &sipClass_KAsyncIO}, {sipName_KAsyncIO, &sipClass_KAsyncIO},
{sipName_KAudioPlayer, &sipClass_KAudioPlayer}, {sipName_KAudioPlayer, &sipClass_KAudioPlayer},
{sipName_KBufferedIO, &sipClass_KBufferedIO}, {sipName_KBufferedIO, &sipClass_KBufferedIO},

@ -24,7 +24,7 @@
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class KApplication : TQApplication, KInstance class TDEApplication : TQApplication, KInstance
{ {
%TypeHeaderCode %TypeHeaderCode
#include <kapplication.h> #include <kapplication.h>
@ -43,14 +43,14 @@ public:
CaptionNoApp CaptionNoApp
}; };
KApplication (bool = 1, bool = 1); TDEApplication (bool = 1, bool = 1);
%If ( KDE_3_3_0 - ) %If ( KDE_3_3_0 - )
//ig KApplication (Display*, TQt::HANDLE = 0, TQt::HANDLE = 0, bool = 1); //ig TDEApplication (Display*, TQt::HANDLE = 0, TQt::HANDLE = 0, bool = 1);
%End %End
//ig KApplication (Display*, int&, char**, const TQCString&, bool = 1, bool = 1); //ig TDEApplication (Display*, int&, char**, const TQCString&, bool = 1, bool = 1);
KApplication (SIP_PYLIST, TQCString&, bool = 1, bool = 1) [(int&, char**, const TQCString&, bool = 1, bool = 1)]; TDEApplication (SIP_PYLIST, TQCString&, bool = 1, bool = 1) [(int&, char**, const TQCString&, bool = 1, bool = 1)];
%MethodCode %MethodCode
//takes argv | (a Python list of strings) | rAppName | (Python string) | allowStyles | (bool = 1) | GUIenabled | (bool = 1) //takes argv | (a Python list of strings) | rAppName | (Python string) | allowStyles | (bool = 1) | GUIenabled | (bool = 1)
@ -71,10 +71,10 @@ public:
// The following two lines simulate the actual ctor call // The following two lines simulate the actual ctor call
// which is commented out below // which is commented out below
KCmdLineArgs::init (nargc, argv, (char *)"unknown", (char *)"KDE Application", NULL, false); KCmdLineArgs::init (nargc, argv, (char *)"unknown", (char *)"KDE Application", NULL, false);
sipCpp = new sipKApplication((bool)a1,(bool)a2); sipCpp = new sipTDEApplication((bool)a1,(bool)a2);
// This method calls KCmdLineArgs::initIgnore, which is a private method // This method calls KCmdLineArgs::initIgnore, which is a private method
// sipCpp = new sipKApplication (nargc,argv, qc, a1, a2); // sipCpp = new sipTDEApplication (nargc,argv, qc, a1, a2);
Py_END_ALLOW_THREADS Py_END_ALLOW_THREADS
@ -84,7 +84,7 @@ public:
%End %End
static void addCmdLineOptions (); static void addCmdLineOptions ();
static KApplication* kApplication (); static TDEApplication* kApplication ();
KConfig* sessionConfig (); KConfig* sessionConfig ();
bool isRestored () const; bool isRestored () const;
void disableSessionManagement (); void disableSessionManagement ();
@ -120,7 +120,7 @@ public:
ShutdownModeInteractive ShutdownModeInteractive
}; };
bool requestShutDown (KApplication::ShutdownConfirm = ShutdownConfirmDefault , KApplication::ShutdownType = ShutdownTypeDefault , KApplication::ShutdownMode = ShutdownModeDefault ); bool requestShutDown (TDEApplication::ShutdownConfirm = ShutdownConfirmDefault , TDEApplication::ShutdownType = ShutdownTypeDefault , TDEApplication::ShutdownMode = ShutdownModeDefault );
void propagateSessionManager (); void propagateSessionManager ();
void commitData (TQSessionManager&); void commitData (TQSessionManager&);
void saveState (TQSessionManager&); void saveState (TQSessionManager&);
@ -291,10 +291,10 @@ public slots:
void deref (); void deref ();
protected: protected:
KApplication (bool, bool, KInstance*); TDEApplication (bool, bool, KInstance*);
%If ( KDE_3_3_0 - ) %If ( KDE_3_3_0 - )
//ig KApplication (Display*, TQt::HANDLE, TQt::HANDLE, bool, KInstance*); //ig TDEApplication (Display*, TQt::HANDLE, TQt::HANDLE, bool, KInstance*);
%End %End
//ig bool x11EventFilter (XEvent*); //ig bool x11EventFilter (XEvent*);
@ -357,7 +357,7 @@ signals:
void shutDown (); void shutDown ();
private: private:
KApplication (const KApplication&); TDEApplication (const TDEApplication&);
protected: protected:
//igx virtual void virtual_hook (int, void*); //igx virtual void virtual_hook (int, void*);
@ -369,7 +369,7 @@ public:
%End %End
}; // class KApplication }; // class TDEApplication
class KSessionManaged class KSessionManaged

@ -24,7 +24,7 @@
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class KUniqueApplication : KApplication, DCOPObject class KUniqueApplication : TDEApplication, DCOPObject
{ {
%TypeHeaderCode %TypeHeaderCode
#include <kuniqueapp.h> #include <kuniqueapp.h>

@ -35,7 +35,7 @@ copyright holder.
import sys import sys
from tdecore import KApplication, KCmdLineArgs, KAboutData from tdecore import TDEApplication, KCmdLineArgs, KAboutData
from tdeui import KMainWindow from tdeui import KMainWindow
""" """
@ -76,9 +76,9 @@ aboutData.addAuthor ("author2", "they did something else", "another@email.addres
# Pass the command line arguments and aboutData to # Pass the command line arguments and aboutData to
# KCmdLineArgs - this is where KDE will look for # KCmdLineArgs - this is where KDE will look for
# this information. The KApplication constructor # this information. The TDEApplication constructor
# used below *requires* the args are processed # used below *requires* the args are processed
# *before* KApplication is instantiated. There # *before* TDEApplication is instantiated. There
# is an alternate constructor that takes sys.argv # is an alternate constructor that takes sys.argv
# as an argument (see minimal.py) # as an argument (see minimal.py)
@ -96,10 +96,10 @@ KCmdLineArgs.init (sys.argv, aboutData)
# of tuples # of tuples
KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")])
# instantiate KApplication - no other TQObject # instantiate TDEApplication - no other TQObject
# or TQWidget based classes can be instantiated # or TQWidget based classes can be instantiated
# until there is a KApplication instance # until there is a TDEApplication instance
app = KApplication () app = TDEApplication ()
# instantiate the subclass of KMainWindow # instantiate the subclass of KMainWindow
mainWindow = MainWin (None, "main window") mainWindow = MainWin (None, "main window")
@ -107,7 +107,7 @@ mainWindow = MainWin (None, "main window")
# create the display # create the display
mainWindow.show() mainWindow.show()
# run KApplication's event loop until the # run TDEApplication's event loop until the
# program exits # program exits
app.exec_loop() app.exec_loop()

@ -45,7 +45,7 @@ import sys
from qt import TQPopupMenu, SIGNAL from qt import TQPopupMenu, SIGNAL
from tdecore import KApplication, KCmdLineArgs, KAboutData, i18n, KStdAccel, KIcon, KIconLoader from tdecore import TDEApplication, KCmdLineArgs, KAboutData, i18n, KStdAccel, KIcon, KIconLoader
from tdeui import KMainWindow, KMessageBox from tdeui import KMainWindow, KMessageBox
TOOLBAR_NEW = 1 TOOLBAR_NEW = 1
@ -264,7 +264,7 @@ KCmdLineArgs.init (sys.argv, aboutData)
KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")])
app = KApplication () app = TDEApplication ()
mainWindow = MainWin (None, "main window") mainWindow = MainWin (None, "main window")
mainWindow.show() mainWindow.show()
app.exec_loop() app.exec_loop()

@ -43,7 +43,7 @@ import sys
from qt import TQPopupMenu, SIGNAL from qt import TQPopupMenu, SIGNAL
from tdecore import KApplication, KCmdLineArgs, KAboutData, i18n from tdecore import TDEApplication, KCmdLineArgs, KAboutData, i18n
from tdeui import KMainWindow, KMessageBox, KStdAction, KAction from tdeui import KMainWindow, KMessageBox, KStdAction, KAction
STATUSBAR_LEFT = 1 STATUSBAR_LEFT = 1
@ -238,7 +238,7 @@ KCmdLineArgs.init (sys.argv, aboutData)
KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")])
app = KApplication () app = TDEApplication ()
mainWindow = MainWin (None, "main window") mainWindow = MainWin (None, "main window")
mainWindow.show() mainWindow.show()
app.exec_loop() app.exec_loop()

@ -43,7 +43,7 @@ import sys
from qt import TQPopupMenu, SIGNAL from qt import TQPopupMenu, SIGNAL
from tdecore import KApplication, KCmdLineArgs, KAboutData, i18n from tdecore import TDEApplication, KCmdLineArgs, KAboutData, i18n
from tdeui import KMainWindow, KMessageBox, KStdAction, KAction, KActionCollection from tdeui import KMainWindow, KMessageBox, KStdAction, KAction, KActionCollection
STATUSBAR_LEFT = 1 STATUSBAR_LEFT = 1
@ -202,7 +202,7 @@ KCmdLineArgs.init (sys.argv, aboutData)
KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")])
app = KApplication () app = TDEApplication ()
mainWindow = MainWin (None, "main window") mainWindow = MainWin (None, "main window")
mainWindow.show() mainWindow.show()
app.exec_loop() app.exec_loop()

@ -34,7 +34,7 @@ copyright holder.
import sys import sys
from tdecore import KApplication from tdecore import TDEApplication
from tdeui import KMainWindow from tdeui import KMainWindow
@ -56,11 +56,11 @@ class MainWin (KMainWindow):
#-------------------- main ------------------------------------------------ #-------------------- main ------------------------------------------------
# instantiate KApplication - no other TQObject # instantiate TDEApplication - no other TQObject
# or TQWidget based classes can be instantiated # or TQWidget based classes can be instantiated
# until there is a KApplication instance # until there is a TDEApplication instance
appName = "template" appName = "template"
app = KApplication (sys.argv, appName) app = TDEApplication (sys.argv, appName)
# instantiate the subclass of KMainWindow # instantiate the subclass of KMainWindow
mainWindow = MainWin (None, "main window") mainWindow = MainWin (None, "main window")
@ -68,7 +68,7 @@ mainWindow = MainWin (None, "main window")
# create the display # create the display
mainWindow.show() mainWindow.show()
# run KApplication's event loop until the # run TDEApplication's event loop until the
# program exits # program exits
app.exec_loop() app.exec_loop()

@ -30,7 +30,7 @@ copyright holder.
import sys import sys
from qt import TQWidget, SIGNAL from qt import TQWidget, SIGNAL
from tdecore import KApplication, KIcon, KIconLoader from tdecore import TDEApplication, KIcon, KIconLoader
from tdeui import KSystemTray from tdeui import KSystemTray
""" """
@ -38,7 +38,7 @@ Typically an application's "main window" will be a KMainWindow or
a subclass of KMainWindow (KMainWindow provides simple mechanisms a subclass of KMainWindow (KMainWindow provides simple mechanisms
for constructing mens, toolbars, statusbars, etc). The problem with for constructing mens, toolbars, statusbars, etc). The problem with
using KMainWindow in a System Tray application is that when using KMainWindow in a System Tray application is that when
KMainWindow is closed, it also shuts down KApplication and the KMainWindow is closed, it also shuts down TDEApplication and the
program terminates. program terminates.
One way around that (not necessarily the best way - see systray1.py) One way around that (not necessarily the best way - see systray1.py)
@ -56,11 +56,11 @@ class MainWin (TQWidget):
# when the user right clicks the icon in the system tray and # when the user right clicks the icon in the system tray and
# selects "Quit" from the popup menu # selects "Quit" from the popup menu
def slotQuitSelected (): def slotQuitSelected ():
KApplication.kApplication ().quit () TDEApplication.kApplication ().quit ()
# The usual stuff # The usual stuff
appName = "template" appName = "template"
app = KApplication (sys.argv, appName) app = TDEApplication (sys.argv, appName)
mainWindow = MainWin (None, "main window") mainWindow = MainWin (None, "main window")
# System tray apps need an icon # System tray apps need an icon

@ -36,7 +36,7 @@ copyright holder.
import sys import sys
from qt import TQLabel, TQWidget, SIGNAL from qt import TQLabel, TQWidget, SIGNAL
from tdecore import KApplication, KIcon, KIconLoader from tdecore import TDEApplication, KIcon, KIconLoader
from tdeui import KMainWindow, KSystemTray from tdeui import KMainWindow, KSystemTray
# This template uses KMainWindow as the main window widget # This template uses KMainWindow as the main window widget
@ -70,15 +70,15 @@ class MainWin (KMainWindow):
# system tray icon's menu # system tray icon's menu
def slotQuitSelected (self): def slotQuitSelected (self):
self.exitFlag = True self.exitFlag = True
KApplication.kApplication ().quit () TDEApplication.kApplication ().quit ()
#-------------------- main ------------------------------------------------ #-------------------- main ------------------------------------------------
# The usual stuff - you can also use the KAboutData/KCmdLineArgs version # The usual stuff - you can also use the KAboutData/KCmdLineArgs version
# for program startup used in other templates - the KApplication constructor # for program startup used in other templates - the TDEApplication constructor
# used here may be obsoleted eventually # used here may be obsoleted eventually
appName = "template" appName = "template"
app = KApplication (sys.argv, appName) app = TDEApplication (sys.argv, appName)
mainWindow = MainWin (None, "main window") mainWindow = MainWin (None, "main window")
mainWindow.show() mainWindow.show()

@ -30,7 +30,7 @@ copyright holder.
import sys import sys
from qt import SIGNAL from qt import SIGNAL
from tdecore import KApplication, KCmdLineArgs, KAboutData from tdecore import TDEApplication, KCmdLineArgs, KAboutData
from tdeui import KMainWindow from tdeui import KMainWindow
class MainWin (KMainWindow): class MainWin (KMainWindow):
@ -51,7 +51,7 @@ aboutData.addAuthor ("author2", "they did something else", "another@email.addres
KCmdLineArgs.init (sys.argv, aboutData) KCmdLineArgs.init (sys.argv, aboutData)
app = KApplication () app = TDEApplication ()
mainWindow = MainWin (None, "main window") mainWindow = MainWin (None, "main window")
mainWindow.show() mainWindow.show()
app.connect (app, SIGNAL ("lastWindowClosed ()"), app.quit) app.connect (app, SIGNAL ("lastWindowClosed ()"), app.quit)

@ -44,7 +44,7 @@ import sys
from qt import TQPopupMenu, SIGNAL from qt import TQPopupMenu, SIGNAL
from tdecore import KApplication, KCmdLineArgs, KAboutData, i18n, KStdAccel, KIcon, KIconLoader from tdecore import TDEApplication, KCmdLineArgs, KAboutData, i18n, KStdAccel, KIcon, KIconLoader
from tdeui import KMainWindow, KMessageBox from tdeui import KMainWindow, KMessageBox
TOOLBAR_NEW = 1 TOOLBAR_NEW = 1
@ -188,7 +188,7 @@ KCmdLineArgs.init (sys.argv, aboutData)
KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")])
app = KApplication () app = TDEApplication ()
mainWindow = MainWin (None, "main window") mainWindow = MainWin (None, "main window")
mainWindow.show() mainWindow.show()
app.exec_loop() app.exec_loop()

@ -43,7 +43,7 @@ import sys
from qt import TQPopupMenu, SIGNAL from qt import TQPopupMenu, SIGNAL
from tdecore import KApplication, KCmdLineArgs, KAboutData, i18n, KShortcut from tdecore import TDEApplication, KCmdLineArgs, KAboutData, i18n, KShortcut
from tdeui import KMainWindow, KMessageBox, KStdAction, KAction from tdeui import KMainWindow, KMessageBox, KStdAction, KAction
STATUSBAR_LEFT = 1 STATUSBAR_LEFT = 1
@ -194,7 +194,7 @@ KCmdLineArgs.init (sys.argv, aboutData)
KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")])
app = KApplication () app = TDEApplication ()
mainWindow = MainWin (None, "main window") mainWindow = MainWin (None, "main window")
mainWindow.show() mainWindow.show()
app.exec_loop() app.exec_loop()

@ -43,7 +43,7 @@ import sys
from qt import TQPopupMenu, SIGNAL from qt import TQPopupMenu, SIGNAL
from tdecore import KApplication, KCmdLineArgs, KAboutData, i18n, KShortcut from tdecore import TDEApplication, KCmdLineArgs, KAboutData, i18n, KShortcut
from tdeui import KMainWindow, KMessageBox, KStdAction, KAction, KActionCollection from tdeui import KMainWindow, KMessageBox, KStdAction, KAction, KActionCollection
STATUSBAR_LEFT = 1 STATUSBAR_LEFT = 1
@ -155,7 +155,7 @@ KCmdLineArgs.init (sys.argv, aboutData)
KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")])
app = KApplication () app = TDEApplication ()
mainWindow = MainWin (None, "main window") mainWindow = MainWin (None, "main window")
mainWindow.show() mainWindow.show()
app.exec_loop() app.exec_loop()

@ -29,7 +29,7 @@ copyright holder.
import sys import sys
from tdecore import KApplication from tdecore import TDEApplication
from tdeui import KMainWindow from tdeui import KMainWindow
class MainWin (KMainWindow): class MainWin (KMainWindow):
@ -40,7 +40,7 @@ class MainWin (KMainWindow):
#-------------------- main ------------------------------------------------ #-------------------- main ------------------------------------------------
appName = "template" appName = "template"
app = KApplication (sys.argv, appName) app = TDEApplication (sys.argv, appName)
mainWindow = MainWin (None, "main window") mainWindow = MainWin (None, "main window")
mainWindow.show() mainWindow.show()
app.exec_loop() app.exec_loop()

@ -30,7 +30,7 @@ copyright holder.
import sys import sys
from qt import TQWidget, SIGNAL from qt import TQWidget, SIGNAL
from tdecore import KApplication, KIcon, KIconLoader from tdecore import TDEApplication, KIcon, KIconLoader
from tdeui import KSystemTray from tdeui import KSystemTray
@ -41,10 +41,10 @@ class MainWin (TQWidget):
#-------------------- main ------------------------------------------------ #-------------------- main ------------------------------------------------
def slotQuitSelected (): def slotQuitSelected ():
KApplication.kApplication ().quit () TDEApplication.kApplication ().quit ()
appName = "template" appName = "template"
app = KApplication (sys.argv, appName) app = TDEApplication (sys.argv, appName)
mainWindow = MainWin (None, "main window") mainWindow = MainWin (None, "main window")
icons = KIconLoader () icons = KIconLoader ()

@ -30,7 +30,7 @@ copyright holder.
import sys import sys
from qt import TQLabel, TQWidget, SIGNAL from qt import TQLabel, TQWidget, SIGNAL
from tdecore import KApplication, KIcon, KIconLoader from tdecore import TDEApplication, KIcon, KIconLoader
from tdeui import KMainWindow, KSystemTray from tdeui import KMainWindow, KSystemTray
class MainWin (KMainWindow): class MainWin (KMainWindow):
@ -52,13 +52,13 @@ class MainWin (KMainWindow):
def slotQuitSelected (self): def slotQuitSelected (self):
self.exitFlag = True self.exitFlag = True
KApplication.kApplication ().quit () TDEApplication.kApplication ().quit ()
#-------------------- main ------------------------------------------------ #-------------------- main ------------------------------------------------
appName = "template" appName = "template"
app = KApplication (sys.argv, appName) app = TDEApplication (sys.argv, appName)
mainWindow = MainWin (None, "main window") mainWindow = MainWin (None, "main window")
mainWindow.show() mainWindow.show()

Loading…
Cancel
Save