summaryrefslogtreecommitdiffstats
path: root/qtjava/designer/juic/java/definitions.xsl
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 15:55:57 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 15:55:57 -0600
commit9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch)
treec81c34dae2b3b1ea73801bf18a960265dc4207f7 /qtjava/designer/juic/java/definitions.xsl
parent1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff)
downloadtdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz
tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip
Initial TQt conversion
Diffstat (limited to 'qtjava/designer/juic/java/definitions.xsl')
-rw-r--r--qtjava/designer/juic/java/definitions.xsl36
1 files changed, 18 insertions, 18 deletions
diff --git a/qtjava/designer/juic/java/definitions.xsl b/qtjava/designer/juic/java/definitions.xsl
index 9e3af53d..f04fbd62 100644
--- a/qtjava/designer/juic/java/definitions.xsl
+++ b/qtjava/designer/juic/java/definitions.xsl
@@ -29,8 +29,8 @@
<xsl:param name="data"/>
<xsl:value-of select="$nlIndent8"/>
<xsl:choose>
- <xsl:when test="@class = 'QMainWindow'">
- <xsl:text>setCentralWidget( new QWidget( this, "qt_central_widget" ) );</xsl:text>
+ <xsl:when test="@class = 'TQMainWindow'">
+ <xsl:text>setCentralWidget( new TQWidget( this, "qt_central_widget" ) );</xsl:text>
</xsl:when>
</xsl:choose>
</xsl:template>
@@ -49,12 +49,12 @@
<xsl:apply-templates mode="toClass" select="."/>
<xsl:text>( </xsl:text>
<!-- insert reference to parent widget -->
- <xsl:variable name="container" select="ancestor::widget[@class != 'QLayoutWidget'][1]"/>
+ <xsl:variable name="container" select="ancestor::widget[@class != 'TQLayoutWidget'][1]"/>
<xsl:value-of select="java:getContainerName($container)"/>
<xsl:text>, "</xsl:text>
<xsl:value-of select="$name"/>
<xsl:text>" );</xsl:text>
- <xsl:if test="../@class = 'KWizard' or ../@class = 'QWizard'">
+ <xsl:if test="../@class = 'KWizard' or ../@class = 'TQWizard'">
<xsl:value-of select="$newline"/>
<xsl:value-of select="$nlIndent8"/>
<xsl:text>addPage( </xsl:text>
@@ -84,11 +84,11 @@
<xsl:text>( </xsl:text>
<!-- insert reference to parent container -->
<xsl:choose>
- <xsl:when test="../@class != 'QLayoutWidget' or $isTopmost">
+ <xsl:when test="../@class != 'TQLayoutWidget' or $isTopmost">
<xsl:value-of select="java:getContainerName(..)"/>
</xsl:when>
<xsl:otherwise>
- <xsl:text>(QWidget)null</xsl:text>
+ <xsl:text>(TQWidget)null</xsl:text>
</xsl:otherwise>
</xsl:choose>
<xsl:text>, </xsl:text>
@@ -131,7 +131,7 @@
<xsl:value-of select="$nlIndent8"/>
<xsl:value-of select="java:getNodeName(..)"/>
<xsl:choose>
- <xsl:when test="@class = 'QLayoutWidget'">
+ <xsl:when test="@class = 'TQLayoutWidget'">
<xsl:text>.addLayout( </xsl:text>
<xsl:value-of select="java:getNodeName(hbox|vbox|grid)"/>
</xsl:when>
@@ -166,7 +166,7 @@
<xsl:text>// Column number </xsl:text>
<xsl:value-of select="$colno"/>
<xsl:choose>
- <xsl:when test="$container = 'QTable'">
+ <xsl:when test="$container = 'TQTable'">
<xsl:value-of select="$nlIndent8"/>
<xsl:value-of select="$colname"/>
<xsl:text>.setNumCols( </xsl:text>
@@ -419,26 +419,26 @@
<xsl:variable name="hexp">
<xsl:choose>
<xsl:when test="$orientation = 'Horizontal'">
- <xsl:value-of select="concat('QSizePolicy.', $sizeType)"/>
+ <xsl:value-of select="concat('TQSizePolicy.', $sizeType)"/>
</xsl:when>
<xsl:otherwise>
- <xsl:value-of select="'QSizePolicy.Minimum'"/>
+ <xsl:value-of select="'TQSizePolicy.Minimum'"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="vexp">
<xsl:choose>
<xsl:when test="$orientation = 'Vertical'">
- <xsl:value-of select="concat('QSizePolicy.', $sizeType)"/>
+ <xsl:value-of select="concat('TQSizePolicy.', $sizeType)"/>
</xsl:when>
<xsl:otherwise>
- <xsl:value-of select="'QSizePolicy.Minimum'"/>
+ <xsl:value-of select="'TQSizePolicy.Minimum'"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:value-of select="$nlIndent8"/>
<xsl:value-of select="concat(java:getNodeName(.),
- ' = new QSpacerItem( ', property[@name = 'sizeHint']/size/width,
+ ' = new TQSpacerItem( ', property[@name = 'sizeHint']/size/width,
', ', property[@name = 'sizeHint']/size/height,
', ', $hexp,
', ', $vexp, ' );')"/>
@@ -463,7 +463,7 @@
</xsl:variable>
<xsl:value-of select="$nlIndent8"/>
<xsl:value-of select="concat($nodeName,
- ' = new QActionGroup( ',
+ ' = new TQActionGroup( ',
$parentName,
', &quot;', $nodeName, '&quot; );')"/>
</xsl:template>
@@ -485,7 +485,7 @@
</xsl:variable>
<xsl:value-of select="$nlIndent8"/>
<xsl:value-of select="concat($nodeName,
- ' = new QAction( ',
+ ' = new TQAction( ',
$parentName,
', &quot;', $nodeName, '&quot; );')"/>
</xsl:template>
@@ -501,7 +501,7 @@
<xsl:value-of select="$newline"/>
<xsl:value-of select="$nlIndent8"/>
<xsl:value-of select="concat($name,
- ' = new QMenuBar( this, &quot;', $name, '&quot; );')"/>
+ ' = new TQMenuBar( this, &quot;', $name, '&quot; );')"/>
</xsl:template>
<!--
@@ -515,7 +515,7 @@
<xsl:variable name="pos" select="count(preceding-sibling::item)"/>
<xsl:value-of select="$newline"/>
<xsl:value-of select="$nlIndent8"/>
- <xsl:value-of select="concat('QPopupMenu ', @name, ' = new QPopupMenu( this );')"/>
+ <xsl:value-of select="concat('TQPopupMenu ', @name, ' = new TQPopupMenu( this );')"/>
<xsl:value-of select="$nlIndent8"/>
<xsl:value-of select="concat($menu,
'.insertItem( &quot;&quot;, ',
@@ -573,7 +573,7 @@
<xsl:value-of select="$newline"/>
<xsl:value-of select="$nlIndent8"/>
<xsl:value-of select="concat($name,
- ' = new QToolBar( &quot;',
+ ' = new TQToolBar( &quot;',
property[@name='label']/string,
'&quot;, this );')"/>
</xsl:template>