summaryrefslogtreecommitdiffstats
path: root/languages/java
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-09-25 13:57:48 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-09-27 10:48:41 +0900
commit392b47409ac925384208e3abfdd039f6be47ce56 (patch)
treef2587004d7fee4717f569ef0d0cbc12e67b9f3b6 /languages/java
parent2693e2b9a63c993da052449b5bdca241d05ed95f (diff)
downloadtdevelop-392b47409ac925384208e3abfdd039f6be47ce56.tar.gz
tdevelop-392b47409ac925384208e3abfdd039f6be47ce56.zip
Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* versionr14.1.1
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit d2728dd8dbad48f045a5eca1899924df15633a89)
Diffstat (limited to 'languages/java')
-rw-r--r--languages/java/app_templates/kappjava/app_client.java6
-rw-r--r--languages/java/app_templates/kappjava/appview.java4
-rw-r--r--languages/java/app_templates/kappjava/pref.java4
-rw-r--r--languages/java/app_templates/superwaba/superwaba4
-rw-r--r--languages/java/app_templates/superwaba/superwaba.kdevtemplate4
-rw-r--r--languages/java/java.g16
-rw-r--r--languages/java/java.store.g40
7 files changed, 39 insertions, 39 deletions
diff --git a/languages/java/app_templates/kappjava/app_client.java b/languages/java/app_templates/kappjava/app_client.java
index 9648cfad..ab327d4c 100644
--- a/languages/java/app_templates/kappjava/app_client.java
+++ b/languages/java/app_templates/kappjava/app_client.java
@@ -19,10 +19,10 @@ int main(int argc, char **argv)
QByteArray data;
QDataStream ds(data, IO_WriteOnly);
if (argc > 1)
- ds << QString(argv[1]);
+ ds << TQString(argv[1]);
else
- ds << QString("http://www.kde.org");
- client->send("%{APPNAMELC}", "%{APPNAME}Iface", "openURL(QString)", data);
+ ds << TQString("http://www.kde.org");
+ client->send("%{APPNAMELC}", "%{APPNAME}Iface", "openURL(TQString)", data);
return app.exec();
}
diff --git a/languages/java/app_templates/kappjava/appview.java b/languages/java/app_templates/kappjava/appview.java
index 347ff58f..0d79ac31 100644
--- a/languages/java/app_templates/kappjava/appview.java
+++ b/languages/java/app_templates/kappjava/appview.java
@@ -17,12 +17,12 @@ import org.kde.koala.*;
* @author %{AUTHOR} <%{EMAIL}>
* @version %{VERSION}
*/
-public class %{APPNAME}View extends QWidget
+public class %{APPNAME}View extends TQWidget
{
QHBoxLayout top_layout;
-public %{APPNAME}View(QWidget parent)
+public %{APPNAME}View(TQWidget parent)
{
super(parent, null);
// setup our layout manager to automatically add our widgets
diff --git a/languages/java/app_templates/kappjava/pref.java b/languages/java/app_templates/kappjava/pref.java
index a50fdb31..90e8e533 100644
--- a/languages/java/app_templates/kappjava/pref.java
+++ b/languages/java/app_templates/kappjava/pref.java
@@ -28,7 +28,7 @@ public %{APPNAME}Preferences()
}
public class %{APPNAME}PrefPageOne extends QFrame {
-public %{APPNAME}PrefPageOne(QWidget parent)
+public %{APPNAME}PrefPageOne(TQWidget parent)
{
super(parent);
QHBoxLayout layout = new QHBoxLayout(this);
@@ -39,7 +39,7 @@ public %{APPNAME}PrefPageOne(QWidget parent)
}
public class %{APPNAME}PrefPageTwo extends QFrame {
-public %{APPNAME}PrefPageTwo(QWidget parent)
+public %{APPNAME}PrefPageTwo(TQWidget parent)
{
super(parent);
QHBoxLayout layout = new QHBoxLayout(this);
diff --git a/languages/java/app_templates/superwaba/superwaba b/languages/java/app_templates/superwaba/superwaba
index eddcce86..82fb4752 100644
--- a/languages/java/app_templates/superwaba/superwaba
+++ b/languages/java/app_templates/superwaba/superwaba
@@ -16,14 +16,14 @@ Type=value
Value=JAVA
Comment=Path to your java root
Default=/usr/lib/java
-ValueType=QString
+ValueType=TQString
[WABA]
Type=value
Value=WABA
Comment=Path to your SuperWaba root
Default=/usr/lib
-ValueType=QString
+ValueType=TQString
[GNU]
Type=install archive
diff --git a/languages/java/app_templates/superwaba/superwaba.kdevtemplate b/languages/java/app_templates/superwaba/superwaba.kdevtemplate
index a14c511a..3711dbc4 100644
--- a/languages/java/app_templates/superwaba/superwaba.kdevtemplate
+++ b/languages/java/app_templates/superwaba/superwaba.kdevtemplate
@@ -16,14 +16,14 @@ Type=value
Value=JAVA
Comment=Path to your java root
Default=/usr/lib/java
-ValueType=QString
+ValueType=TQString
[WABA]
Type=value
Value=WABA
Comment=Path to your SuperWaba root
Default=/usr/lib
-ValueType=QString
+ValueType=TQString
[GNU]
Type=install archive
diff --git a/languages/java/java.g b/languages/java/java.g
index 4228a573..15ccf63d 100644
--- a/languages/java/java.g
+++ b/languages/java/java.g
@@ -157,18 +157,18 @@ private:
public:
void setDriver( Driver* d ) { m_driver = d; }
- void setFileName( const QString& fileName ) { m_driver->currentFileName() = fileName; }
+ void setFileName( const TQString& fileName ) { m_driver->currentFileName() = fileName; }
void reportError( const ANTLR_USE_NAMESPACE(antlr)RecognitionException& ex ){
- m_driver->addProblem( m_driver->currentFileName(), Problem( QString::fromLocal8Bit(ex.getMessage().c_str()), ex.getLine(), ex.getColumn()) );
+ m_driver->addProblem( m_driver->currentFileName(), Problem( TQString::fromLocal8Bit(ex.getMessage().c_str()), ex.getLine(), ex.getColumn()) );
}
void reportError( const ANTLR_USE_NAMESPACE(std)string& errorMessage ){
- m_driver->addProblem( m_driver->currentFileName(), Problem( QString::fromLocal8Bit(errorMessage.c_str()), LT(1)->getLine(), LT(1)->getColumn()) );
+ m_driver->addProblem( m_driver->currentFileName(), Problem( TQString::fromLocal8Bit(errorMessage.c_str()), LT(1)->getLine(), LT(1)->getColumn()) );
}
void reportMessage( const ANTLR_USE_NAMESPACE(std)string& message ){
- m_driver->addProblem( m_driver->currentFileName(), Problem( QString::fromLocal8Bit(message.c_str()), LT(1)->getLine(), LT(1)->getColumn()) );
+ m_driver->addProblem( m_driver->currentFileName(), Problem( TQString::fromLocal8Bit(message.c_str()), LT(1)->getLine(), LT(1)->getColumn()) );
}
}
@@ -1061,18 +1061,18 @@ private:
public:
void setDriver( Driver* d ) { m_driver = d; }
- void setFileName( const QString& fileName ) { m_driver->currentFileName() = fileName; }
+ void setFileName( const TQString& fileName ) { m_driver->currentFileName() = fileName; }
virtual void reportError( const ANTLR_USE_NAMESPACE(antlr)RecognitionException& ex ){
- m_driver->addProblem( m_driver->currentFileName(), Problem( QString::fromLocal8Bit(ex.getMessage().c_str()), ex.getLine(), ex.getColumn()) );
+ m_driver->addProblem( m_driver->currentFileName(), Problem( TQString::fromLocal8Bit(ex.getMessage().c_str()), ex.getLine(), ex.getColumn()) );
}
virtual void reportError( const ANTLR_USE_NAMESPACE(std)string& errorMessage ){
- m_driver->addProblem( m_driver->currentFileName(), Problem( QString::fromLocal8Bit(errorMessage.c_str()), getLine(), getColumn()) );
+ m_driver->addProblem( m_driver->currentFileName(), Problem( TQString::fromLocal8Bit(errorMessage.c_str()), getLine(), getColumn()) );
}
virtual void reportWarning( const ANTLR_USE_NAMESPACE(std)string& warnMessage ){
- m_driver->addProblem( m_driver->currentFileName(), Problem( QString::fromLocal8Bit(warnMessage.c_str()), getLine(), getColumn()) );
+ m_driver->addProblem( m_driver->currentFileName(), Problem( TQString::fromLocal8Bit(warnMessage.c_str()), getLine(), getColumn()) );
}
}
diff --git a/languages/java/java.store.g b/languages/java/java.store.g
index cc545c64..bf996974 100644
--- a/languages/java/java.store.g
+++ b/languages/java/java.store.g
@@ -72,26 +72,26 @@ public:
}
}
-compilationUnit { QString package; QString imp; QStringList imports; }
+compilationUnit { TQString package; TQString imp; QStringList imports; }
: { init(); }
(package=packageDefinition)?
(imp=importDefinition { imports << imp; } )*
(typeDefinition)*
;
-packageDefinition returns [ QString id ]
+packageDefinition returns [ TQString id ]
: #( PACKAGE_DEF id=identifier )
;
-importDefinition returns [ QString id ]
+importDefinition returns [ TQString id ]
: #( IMPORT id=identifierStar )
;
-typeDefinition { QStringList bases; QString className; ClassDom klass; QStringList m;}
+typeDefinition { QStringList bases; TQString className; ClassDom klass; QStringList m;}
: #(CLASS_DEF m=modifiers IDENT
{
klass = m_model->create<ClassModel>();
- QString name = QString::fromUtf8( #IDENT->getText().c_str(), #IDENT->getText().length() );
+ TQString name = TQString::fromUtf8( #IDENT->getText().c_str(), #IDENT->getText().length() );
QStringList path = QStringList::split( ".", name );
className = path.back();
@@ -125,7 +125,7 @@ typeDefinition { QStringList bases; QString className; ClassDom klass; QStringLi
| #(INTERFACE_DEF m=modifiers IDENT
{
klass = m_model->create<ClassModel>();
- QString name = QString::fromUtf8( #IDENT->getText().c_str(), #IDENT->getText().length() );
+ TQString name = TQString::fromUtf8( #IDENT->getText().c_str(), #IDENT->getText().length() );
QStringList path = QStringList::split( ".", name );
className = path.back();
@@ -154,16 +154,16 @@ typeDefinition { QStringList bases; QString className; ClassDom klass; QStringLi
)
;
-typeSpec returns [ QString tp ]
+typeSpec returns [ TQString tp ]
: #(TYPE tp=typeSpecArray)
;
-typeSpecArray returns [ QString tp ]
+typeSpecArray returns [ TQString tp ]
: #( ARRAY_DECLARATOR tp=typeSpecArray ) { tp += "[]"; }
| tp=type
;
-type returns [ QString tp ]
+type returns [ TQString tp ]
: tp=identifier
| b:builtInType { tp = #b->getText().c_str(); }
;
@@ -199,11 +199,11 @@ modifier
| "volatile"
;
-extendsClause returns [ QStringList l ] { QString id; }
+extendsClause returns [ QStringList l ] { TQString id; }
: #(EXTENDS_CLAUSE (id=identifier { l << id; } )* )
;
-implementsClause returns [ QStringList l ] { QString id; }
+implementsClause returns [ QStringList l ] { TQString id; }
: #(IMPLEMENTS_CLAUSE (id=identifier { l << id; } )* )
;
@@ -256,7 +256,7 @@ ctorDef returns [ FunctionDom meth ] {
methodDecl returns [ FunctionDom meth ] {
QStringList m;
- QString tp;
+ TQString tp;
meth = m_model->create<FunctionModel>();
meth->setFileName( m_file->name() );
}
@@ -274,7 +274,7 @@ methodDecl returns [ FunctionDom meth ] {
methodDef returns [ FunctionDom meth ] {
QStringList m;
- QString tp;
+ TQString tp;
meth = m_model->create<FunctionModel>();
meth->setFileName( m_file->name() );
}
@@ -292,7 +292,7 @@ methodDef returns [ FunctionDom meth ] {
variableDef returns [ VariableDom attr ] {
QStringList m;
- QString tp;
+ TQString tp;
attr = m_model->create<VariableModel>();
attr->setFileName( m_file->name() );
}
@@ -311,7 +311,7 @@ variableDef returns [ VariableDom attr ] {
;
parameterDef returns [ ArgumentDom arg ] {
- QString tp;
+ TQString tp;
arg = m_model->create<ArgumentModel>();
}
: #(PARAMETER_DEF modifiers tp=typeSpec IDENT )
@@ -360,21 +360,21 @@ throwsClause
: #( "throws" (identifier)* )
;
-identifier returns [ QString id ]
+identifier returns [ TQString id ]
: IDENT {
id = #IDENT->getText().c_str();
}
| #( DOT id=identifier IDENT ) {
- id += QString(".") + #IDENT->getText().c_str();
+ id += TQString(".") + #IDENT->getText().c_str();
}
;
-identifierStar returns [ QString id ]
+identifierStar returns [ TQString id ]
: IDENT {
id = #IDENT->getText().c_str();
}
- | #( DOT id=identifier (STAR { id += QString(".") + #STAR->getText().c_str(); } |
- IDENT { id += QString(".") + #IDENT->getText().c_str(); }) )
+ | #( DOT id=identifier (STAR { id += TQString(".") + #STAR->getText().c_str(); } |
+ IDENT { id += TQString(".") + #IDENT->getText().c_str(); }) )
;
slist