Rename TQXEmbed to correct QXEmbed

pull/1/head
Timothy Pearson 13 years ago
parent 2627136bb0
commit 8fa6239b59

@ -789,7 +789,7 @@
<tr ><td><a href="tdecore/NETStrut.html">NETStrut</A></td></tr> <tr ><td><a href="tdecore/NETStrut.html">NETStrut</A></td></tr>
<tr ><td><a href="tdecore/NETWinInfo.html">NETWinInfo</A></td></tr> <tr ><td><a href="tdecore/NETWinInfo.html">NETWinInfo</A></td></tr>
<tr ><td><a href="kio/Observer.html">Observer</A></td></tr> <tr ><td><a href="kio/Observer.html">Observer</A></td></tr>
<tr ><td><a href="tdeui/TQXEmbed.html">TQXEmbed</A></td></tr> <tr ><td><a href="tdeui/QXEmbed.html">QXEmbed</A></td></tr>
<tr ><td><a href="kio/RenameDlgPlugin.html">RenameDlgPlugin</A></td></tr> <tr ><td><a href="kio/RenameDlgPlugin.html">RenameDlgPlugin</A></td></tr>
<tr ><td><a href="kparts/TerminalInterface.html"><i>TerminalInterface</i></A></td></tr> <tr ><td><a href="kparts/TerminalInterface.html"><i>TerminalInterface</i></A></td></tr>
<tr ><td><a href="kio/ThumbCreator.html"><i>ThumbCreator</i></A></td></tr> <tr ><td><a href="kio/ThumbCreator.html"><i>ThumbCreator</i></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 TQXEmbed</title> <title>class QXEmbed</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 TQXEmbed</h1><hr> <h1>class QXEmbed</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>tdeui</td> <td width="30%" align=left>tdeui</td>
</tr> </tr>
<tr><td>Class</td> <tr><td>Class</td>
<td>TQXEmbed</td> <td>QXEmbed</td>
</tr> </tr>
<tr><td>Inherits</td> <tr><td>Inherits</td>
<td>TQWidget </td> <td>TQWidget </td>
@ -38,8 +38,8 @@
<li><b>Protocol</b> = {XEMBED, XPLAIN <li><b>Protocol</b> = {XEMBED, XPLAIN
}</ul> }</ul>
<h3>methods</h3><ul> <h3>methods</h3><ul>
<li><b>TQXEmbed</b> (parent = 0, name = 0, f = 0) <li><b>QXEmbed</b> (parent = 0, name = 0, f = 0)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>a TQXEmbed instance</i></td></tr> <table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>a QXEmbed 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>parent</td><td>TQWidget</td><td>0</td></tr> <tr><td>parent</td><td>TQWidget</td><td>0</td></tr>
<tr><td>name</td><td>char</td><td>0</td></tr> <tr><td>name</td><td>char</td><td>0</td></tr>
@ -133,7 +133,7 @@
</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>protocol</b> () <li><b>protocol</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(TQXEmbed.Protocol)</i></td></tr> <table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(QXEmbed.Protocol)</i></td></tr>
<tr><td>In versions KDE 3.1.1 and above only</td></tr> <tr><td>In versions KDE 3.1.1 and above only</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>reparent</b> (parent, f, p, showIt = 0) <li><b>reparent</b> (parent, f, p, showIt = 0)
@ -166,7 +166,7 @@
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>nothing</i></td></tr> <table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>nothing</i></td></tr>
<tr><td>In versions KDE 3.1.1 and above only</td></tr> <tr><td>In versions KDE 3.1.1 and above 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>proto</td><td>TQXEmbed.Protocol</td><td></td></tr> <tr><td>proto</td><td>QXEmbed.Protocol</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>showEvent</b> (a0) <li><b>showEvent</b> (a0)

@ -148,7 +148,7 @@
<tr ><td><a href="KPasteTextAction.html">KPasteTextAction</a></td></tr> <tr ><td><a href="KPasteTextAction.html">KPasteTextAction</a></td></tr>
<tr ><td><a href="KPixmapIO.html">KPixmapIO</a></td></tr> <tr ><td><a href="KPixmapIO.html">KPixmapIO</a></td></tr>
</table></td><td valign="top"><table border="0"> </table></td><td valign="top"><table border="0">
<tr bgcolor="#fff0ff"><th>KPixmapRegionSelectorDialog - TQXEmbed</th></tr> <tr bgcolor="#fff0ff"><th>KPixmapRegionSelectorDialog - QXEmbed</th></tr>
<tr ><td><a href="KPixmapRegionSelectorDialog.html">KPixmapRegionSelectorDialog</a></td></tr> <tr ><td><a href="KPixmapRegionSelectorDialog.html">KPixmapRegionSelectorDialog</a></td></tr>
<tr ><td><a href="KPixmapRegionSelectorWidget.html">KPixmapRegionSelectorWidget</a></td></tr> <tr ><td><a href="KPixmapRegionSelectorWidget.html">KPixmapRegionSelectorWidget</a></td></tr>
<tr ><td><a href="KPopupFrame.html">KPopupFrame</a></td></tr> <tr ><td><a href="KPopupFrame.html">KPopupFrame</a></td></tr>
@ -207,7 +207,7 @@
<tr ><td><a href="KXMLGUIClient.StateChange.html">KXMLGUIClient.StateChange</a></td></tr> <tr ><td><a href="KXMLGUIClient.StateChange.html">KXMLGUIClient.StateChange</a></td></tr>
<tr ><td><a href="KXMLGUIFactory.html">KXMLGUIFactory</a></td></tr> <tr ><td><a href="KXMLGUIFactory.html">KXMLGUIFactory</a></td></tr>
<tr ><td><a href="KXYSelector.html">KXYSelector</a></td></tr> <tr ><td><a href="KXYSelector.html">KXYSelector</a></td></tr>
<tr ><td><a href="TQXEmbed.html">TQXEmbed</a></td></tr> <tr ><td><a href="QXEmbed.html">QXEmbed</a></td></tr>
</table></td></tr></table> </table></td></tr></table>
</body> </body>
</html> </html>

@ -340,7 +340,7 @@ tdeui,KXMLGUIBuilder,,,
tdeui,KXMLGUIClient,,, tdeui,KXMLGUIClient,,,
tdeui,KXMLGUIFactory,,, tdeui,KXMLGUIFactory,,,
tdeui,KXYSelector,,, tdeui,KXYSelector,,,
tdeui,TQXEmbed,,, tdeui,QXEmbed,,,
tdeui,testKActionList,,, tdeui,testKActionList,,,
kfile,KApplicationPropsPlugin,,, kfile,KApplicationPropsPlugin,,,
kfile,KBindingPropsPlugin,,, kfile,KBindingPropsPlugin,,,

@ -11,15 +11,15 @@
from qt import * from qt import *
class TQXEmbedExample(TQWidget): class QXEmbedExample(TQWidget):
def __init__(self,parent = None,name = None,fl = 0): def __init__(self,parent = None,name = None,fl = 0):
TQWidget.__init__(self,parent,name,fl) TQWidget.__init__(self,parent,name,fl)
if not name: if not name:
self.setName("TQXEmbedExample") self.setName("QXEmbedExample")
TQXEmbedExampleLayout = TQVBoxLayout(self,11,6,"TQXEmbedExampleLayout") QXEmbedExampleLayout = TQVBoxLayout(self,11,6,"QXEmbedExampleLayout")
layout2 = TQHBoxLayout(None,0,6,"layout2") layout2 = TQHBoxLayout(None,0,6,"layout2")
@ -32,13 +32,13 @@ class TQXEmbedExample(TQWidget):
layout2.addWidget(self.launchButton) layout2.addWidget(self.launchButton)
spacer1 = TQSpacerItem(209,31,TQSizePolicy.Expanding,TQSizePolicy.Minimum) spacer1 = TQSpacerItem(209,31,TQSizePolicy.Expanding,TQSizePolicy.Minimum)
layout2.addItem(spacer1) layout2.addItem(spacer1)
TQXEmbedExampleLayout.addLayout(layout2) QXEmbedExampleLayout.addLayout(layout2)
self.line1 = TQFrame(self,"line1") self.line1 = TQFrame(self,"line1")
self.line1.setFrameShape(TQFrame.HLine) self.line1.setFrameShape(TQFrame.HLine)
self.line1.setFrameShadow(TQFrame.Sunken) self.line1.setFrameShadow(TQFrame.Sunken)
self.line1.setFrameShape(TQFrame.HLine) self.line1.setFrameShape(TQFrame.HLine)
TQXEmbedExampleLayout.addWidget(self.line1) QXEmbedExampleLayout.addWidget(self.line1)
self.mainTabs = TQTabWidget(self,"mainTabs") self.mainTabs = TQTabWidget(self,"mainTabs")
@ -48,7 +48,7 @@ class TQXEmbedExample(TQWidget):
self.textLabel1 = TQLabel(self.tab,"textLabel1") self.textLabel1 = TQLabel(self.tab,"textLabel1")
tabLayout.addWidget(self.textLabel1) tabLayout.addWidget(self.textLabel1)
self.mainTabs.insertTab(self.tab,TQString("")) self.mainTabs.insertTab(self.tab,TQString(""))
TQXEmbedExampleLayout.addWidget(self.mainTabs) QXEmbedExampleLayout.addWidget(self.mainTabs)
self.languageChange() self.languageChange()
@ -59,13 +59,13 @@ class TQXEmbedExample(TQWidget):
def languageChange(self): def languageChange(self):
self.setCaption(self.__tr("TQXEmbed Example")) self.setCaption(self.__tr("QXEmbed Example"))
self.appNameCombo.clear() self.appNameCombo.clear()
self.appNameCombo.insertItem(self.__tr("kcalc")) self.appNameCombo.insertItem(self.__tr("kcalc"))
self.appNameCombo.insertItem(self.__tr("konqueror")) self.appNameCombo.insertItem(self.__tr("konqueror"))
self.appNameCombo.insertItem(self.__tr("kedit")) self.appNameCombo.insertItem(self.__tr("kedit"))
self.launchButton.setText(self.__tr("Launch and Embed")) self.launchButton.setText(self.__tr("Launch and Embed"))
self.textLabel1.setText(self.__tr("<b>TQXEmbed Example</b>\n" self.textLabel1.setText(self.__tr("<b>QXEmbed Example</b>\n"
"<br><br>\n" "<br><br>\n"
"\n" "\n"
"Select one of the app names from the combo list, then launch it with the button. Two seconds after launch, the window for the new process will get added as a new tab.")) "Select one of the app names from the combo list, then launch it with the button. Two seconds after launch, the window for the new process will get added as a new tab."))
@ -73,7 +73,7 @@ class TQXEmbedExample(TQWidget):
def launchApp(self): def launchApp(self):
print "TQXEmbedExample.launchApp(): Not implemented yet" print "QXEmbedExample.launchApp(): Not implemented yet"
def __tr(self,s,c = None): def __tr(self,s,c = None):
return qApp.translate("TQXEmbedExample",s,c) return qApp.translate("QXEmbedExample",s,c)

@ -1,8 +1,8 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>TQXEmbedExample</class> <class>QXEmbedExample</class>
<widget class="TQWidget"> <widget class="TQWidget">
<property name="name"> <property name="name">
<cstring>TQXEmbedExample</cstring> <cstring>QXEmbedExample</cstring>
</property> </property>
<property name="geometry"> <property name="geometry">
<rect> <rect>
@ -13,7 +13,7 @@
</rect> </rect>
</property> </property>
<property name="caption"> <property name="caption">
<string>TQXEmbed Example</string> <string>QXEmbed Example</string>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
@ -124,7 +124,7 @@
<cstring>textLabel1</cstring> <cstring>textLabel1</cstring>
</property> </property>
<property name="text"> <property name="text">
<string>&lt;b&gt;TQXEmbed Example&lt;/b&gt; <string>&lt;b&gt;QXEmbed Example&lt;/b&gt;
&lt;br&gt;&lt;br&gt; &lt;br&gt;&lt;br&gt;
Select one of the app names from the combo list, then launch it with the button. Two seconds after launch, the window for the new process will get added as a new tab.</string> Select one of the app names from the combo list, then launch it with the button. Two seconds after launch, the window for the new process will get added as a new tab.</string>
@ -139,7 +139,7 @@ Select one of the app names from the combo list, then launch it with the button.
<connection> <connection>
<sender>launchButton</sender> <sender>launchButton</sender>
<signal>clicked()</signal> <signal>clicked()</signal>
<receiver>TQXEmbedExample</receiver> <receiver>QXEmbedExample</receiver>
<slot>launchApp()</slot> <slot>launchApp()</slot>
</connection> </connection>
</connections> </connections>

@ -230,7 +230,7 @@ def miscKSystemTray (parent):
def miscKThemeBase (parent): def miscKThemeBase (parent):
parent.currentPageObj = PageNotImpl (parent) parent.currentPageObj = PageNotImpl (parent)
def miscTQXEmbed (parent): def miscQXEmbed (parent):
parent.currentPageObj = PageNotImpl (parent) parent.currentPageObj = PageNotImpl (parent)
if __name__ == "__main__": if __name__ == "__main__":

@ -8,7 +8,7 @@ from qt import TQIconSet, TQProcess, TQTimer, SIGNAL, SLOT
from tdecore import KAboutData, KApplication, KCmdLineArgs, KGlobal, KIcon from tdecore import KAboutData, KApplication, KCmdLineArgs, KGlobal, KIcon
from tdecore import KWin, KWinModule from tdecore import KWin, KWinModule
from tdeui import KComboBox, KMainWindow, KPushButton, TQXEmbed from tdeui import KComboBox, KMainWindow, KPushButton, QXEmbed
## add the missing items to the pyuic-generated module ## add the missing items to the pyuic-generated module
@ -16,7 +16,7 @@ import qxembedexample
qxembedexample.KComboBox = KComboBox qxembedexample.KComboBox = KComboBox
qxembedexample.KPushButton = KPushButton qxembedexample.KPushButton = KPushButton
from qxembedexample import TQXEmbedExample from qxembedexample import QXEmbedExample
def getIcon(name, group=KIcon.NoGroup, size=KIcon.SizeSmall): def getIcon(name, group=KIcon.NoGroup, size=KIcon.SizeSmall):
@ -42,12 +42,12 @@ def getWindow(pid):
return info return info
class ExampleForm(TQXEmbedExample): class ExampleForm(QXEmbedExample):
""" wraps the pyuic generated form class with our behavior """ wraps the pyuic generated form class with our behavior
""" """
def __init__(self, parent): def __init__(self, parent):
TQXEmbedExample.__init__(self, parent) QXEmbedExample.__init__(self, parent)
combo = self.appNameCombo combo = self.appNameCombo
items = [(idx, '%s' % combo.text(idx)) for idx in range(combo.count())] items = [(idx, '%s' % combo.text(idx)) for idx in range(combo.count())]
for idx, name in items: for idx, name in items:
@ -80,7 +80,7 @@ class ExampleForm(TQXEmbedExample):
winobj = getWindow(pid) winobj = getWindow(pid)
if winobj: if winobj:
tabs = self.mainTabs tabs = self.mainTabs
embedded = TQXEmbed(self) embedded = QXEmbed(self)
caption = '%s (%s)' % (winobj.name, pid, ) caption = '%s (%s)' % (winobj.name, pid, )
tabs.insertTab(embedded, caption) tabs.insertTab(embedded, caption)
embedded.embed(winobj.win) embedded.embed(winobj.win)
@ -101,8 +101,8 @@ class ExampleMain(KMainWindow):
if __name__ == '__main__': if __name__ == '__main__':
aname = 'PyKDE TQXEmbed Sample' aname = 'PyKDE QXEmbed Sample'
desc = 'A Simple PyKDE TQXEmbed Sample' desc = 'A Simple PyKDE QXEmbed Sample'
ver = '1.0' ver = '1.0'
lic = KAboutData.License_GPL lic = KAboutData.License_GPL
author = 'Troy Melhase' author = 'Troy Melhase'

@ -117,7 +117,7 @@ listItems = {"Dialogs":
"KSharedPixmap": [],\ "KSharedPixmap": [],\
"KSystemTray": [],\ "KSystemTray": [],\
"KThemeBase": ["KThemeCache", "KThemePixmap", "KThemeStyle"],\ "KThemeBase": ["KThemeCache", "KThemePixmap", "KThemeStyle"],\
"TQXEmbed": []}} "QXEmbed": []}}
prefix = {"Dialogs": "dlg", "Widgets": "wid", "XML": "xml", "Menus/Toolbars": "menu", "Other": "misc"} prefix = {"Dialogs": "dlg", "Widgets": "wid", "XML": "xml", "Menus/Toolbars": "menu", "Other": "misc"}

@ -194,7 +194,7 @@ protected:
{sipName_KXMLGUIFactory, &sipClass_KXMLGUIFactory}, {sipName_KXMLGUIFactory, &sipClass_KXMLGUIFactory},
{sipName_KXYSelector, &sipClass_KXYSelector}, {sipName_KXYSelector, &sipClass_KXYSelector},
// {sipName_PyKPanelApplet, &sipClass_PyKPanelApplet}, // {sipName_PyKPanelApplet, &sipClass_PyKPanelApplet},
// {sipName_TQXEmbed, &sipClass_TQXEmbed}, // {sipName_QXEmbed, &sipClass_QXEmbed},
}; };
sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0])); sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0]));

@ -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 TQXEmbed : TQWidget class QXEmbed : TQWidget
{ {
%TypeHeaderCode %TypeHeaderCode
#include <qxembed.h> #include <qxembed.h>
@ -32,7 +32,7 @@ class TQXEmbed : TQWidget
public: public:
TQXEmbed (TQWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); QXEmbed (TQWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0);
static void initialize (); static void initialize ();
%If ( KDE_3_1_1 - ) %If ( KDE_3_1_1 - )
@ -43,8 +43,8 @@ public:
XPLAIN XPLAIN
}; };
void setProtocol (TQXEmbed::Protocol); void setProtocol (QXEmbed::Protocol);
TQXEmbed::Protocol protocol (); QXEmbed::Protocol protocol ();
%End %End
void embed (WId); void embed (WId);
@ -69,7 +69,7 @@ public:
return NULL; return NULL;
Py_BEGIN_ALLOW_THREADS Py_BEGIN_ALLOW_THREADS
sipRes = TQXEmbed::processClientCmdline (a0, n, strings); sipRes = QXEmbed::processClientCmdline (a0, n, strings);
Py_END_ALLOW_THREADS Py_END_ALLOW_THREADS
sipFree((ANY *)strings); sipFree((ANY *)strings);
@ -109,5 +109,5 @@ protected:
virtual void windowChanged (WId); virtual void windowChanged (WId);
bool focusNextPrevChild (bool); bool focusNextPrevChild (bool);
}; // class TQXEmbed }; // class QXEmbed

Loading…
Cancel
Save