From 9ba04742771370f59740e32e11c5f3a1e6a1b70a Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 5 Dec 2011 15:55:57 -0600 Subject: Initial TQt conversion --- qtsharp/src/generator/ParseAPI.cs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'qtsharp/src/generator/ParseAPI.cs') 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; } -- cgit v1.2.1