summaryrefslogtreecommitdiffstats
path: root/qtsharp/src/generator/ParseAPI.cs
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 /qtsharp/src/generator/ParseAPI.cs
parent1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff)
downloadtdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz
tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip
Initial TQt conversion
Diffstat (limited to 'qtsharp/src/generator/ParseAPI.cs')
-rw-r--r--qtsharp/src/generator/ParseAPI.cs24
1 files changed, 12 insertions, 12 deletions
diff --git a/qtsharp/src/generator/ParseAPI.cs b/qtsharp/src/generator/ParseAPI.cs
index a79a8ab9..c6a86182 100644
--- a/qtsharp/src/generator/ParseAPI.cs
+++ b/qtsharp/src/generator/ParseAPI.cs
@@ -35,7 +35,7 @@ namespace QtCSharp {
Parse ();
}
- public ArrayList QTypes
+ public ArrayList TQTypes
{
get {return qtypes;}
}
@@ -47,7 +47,7 @@ namespace QtCSharp {
if (xtr.NodeType != XmlNodeType.EndElement) {
switch(xtr.Name) {
case "qtype":
- QType t = AddQType ();
+ TQType t = AddTQType ();
typehash[t.Name] = t;
continue;
default:
@@ -56,31 +56,31 @@ namespace QtCSharp {
}
}
- foreach (QType t in qtypes) {
- t.IsQObject = IsQObject(t, typehash);
+ foreach (TQType t in qtypes) {
+ t.IsTQObject = IsTQObject(t, typehash);
}
}
- public QType AddQType ()
+ public TQType AddTQType ()
{
Parser parser = new Parser (xtr.ReadOuterXml ());
- QType type = parser.GetQType ();
+ TQType type = parser.GetTQType ();
qtypes.Add (type);
return type;
}
- private static bool IsQObject(QType t, Hashtable typehash)
+ private static bool IsTQObject(TQType t, Hashtable typehash)
{
if (t.IsInterface) return false;
- if (t.Name == "TQObject") return true;
+ if (t.Name == "TTQObject") return true;
- foreach (QAncestor a in t.QAncestors) {
- QType at = (QType)typehash[a.Name];
+ foreach (TQAncestor a in t.TQAncestors) {
+ TQType at = (TQType)typehash[a.Name];
if (at == null)
continue;
- else if (at.Name == "TQObject")
+ else if (at.Name == "TTQObject")
return true;
- else if (IsQObject(at, typehash))
+ else if (IsTQObject(at, typehash))
return true;
}