summaryrefslogtreecommitdiffstats
path: root/qtsharp/src/uicsharp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 16:20:48 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 16:20:48 -0600
commite63beeb5bdb82987b1e00bc35178667786fbad48 (patch)
treeab77b6ac830b7944d5d1eb9ce8f81feb8fdab948 /qtsharp/src/uicsharp
parent67557a2b56c0678c22ab1b00c4fd0224c5e9ed99 (diff)
downloadtdebindings-e63beeb5bdb82987b1e00bc35178667786fbad48.tar.gz
tdebindings-e63beeb5bdb82987b1e00bc35178667786fbad48.zip
Fix incorrect conversion
Diffstat (limited to 'qtsharp/src/uicsharp')
-rw-r--r--qtsharp/src/uicsharp/uicsharp.cs62
1 files changed, 31 insertions, 31 deletions
diff --git a/qtsharp/src/uicsharp/uicsharp.cs b/qtsharp/src/uicsharp/uicsharp.cs
index 32587f4b..b6306a1e 100644
--- a/qtsharp/src/uicsharp/uicsharp.cs
+++ b/qtsharp/src/uicsharp/uicsharp.cs
@@ -63,7 +63,7 @@ namespace QtSharp {
try {
String []dummyargs=new String[0];
- TTQApplication dummyapp=new TTQApplication(dummyargs,false);
+ TQApplication dummyapp=new TQApplication(dummyargs,false);
qtAssembly=Assembly.GetAssembly(dummyapp.GetType());
// qtAssembly=Assembly.Load("Qt.dll");
Console.WriteLine("CodeBase="+qtAssembly.CodeBase);
@@ -225,11 +225,11 @@ namespace QtSharp {
{
if (menubarElement==null) return;
writer.WriteLine("\t//Menubar member fields");
- writer.WriteLine("\t TTQMenuBar menubar;");
+ writer.WriteLine("\t TQMenuBar menubar;");
foreach (XmlNode node in menubarElement.ChildNodes) {
XmlElement el=node as XmlElement;
if (el.Name=="item") {
- writer.WriteLine("\tpublic TTQPopupMenu {0};",el.GetAttribute("name"));
+ writer.WriteLine("\tpublic TQPopupMenu {0};",el.GetAttribute("name"));
}
}
}
@@ -241,7 +241,7 @@ namespace QtSharp {
foreach (XmlNode node in actionsElement.ChildNodes) {
XmlElement el=node as XmlElement;
if (el.Name=="action") {
- writer.WriteLine("\tpublic TTQAction {0};",getName(el));
+ writer.WriteLine("\tpublic TQAction {0};",getName(el));
}
}
}
@@ -253,7 +253,7 @@ namespace QtSharp {
foreach (XmlNode node in toolbarsElement.ChildNodes) {
XmlElement el=node as XmlElement;
if (el.Name=="toolbar") {
- writer.WriteLine("\tpublic TTQToolBar {0};",getName(el));
+ writer.WriteLine("\tpublic TQToolBar {0};",getName(el));
}
}
}
@@ -346,7 +346,7 @@ namespace QtSharp {
private void createConstructor()
{
//Later handle non qwidgets better (dialog,....)
- writer.WriteLine("\n\tpublic "+className+"(TTQWidget parent, String name) :base(parent, name) {");
+ writer.WriteLine("\n\tpublic "+className+"(TQWidget parent, String name) :base(parent, name) {");
writer.WriteLine("\t\tif (name==null) SetName(\""+className+"\");");
setupImages();
setupActions();
@@ -370,7 +370,7 @@ namespace QtSharp {
writer.WriteLine("\t//images");
foreach (XmlNode node in imagesElement.ChildNodes) {
XmlElement el=node as XmlElement;
- writer.WriteLine("\t\t{0}=new TTQPixmap({1}_data);",
+ writer.WriteLine("\t\t{0}=new TQPixmap({1}_data);",
el.GetAttribute("name"),el.GetAttribute("name"));
}
}
@@ -382,7 +382,7 @@ namespace QtSharp {
foreach (XmlNode aNode in actionsElement.ChildNodes) {
XmlElement action=aNode as XmlElement;
if (action.Name!="action") continue;
- writer.WriteLine("\t\t{0}= new TTQAction(this,\"{1}\");",getName(action),getName(action));
+ writer.WriteLine("\t\t{0}= new TQAction(this,\"{1}\");",getName(action),getName(action));
foreach (XmlNode pNode in action.ChildNodes) {
XmlElement prop=pNode as XmlElement;
if (prop.Name!="property") continue;
@@ -398,14 +398,14 @@ namespace QtSharp {
if (menubarElement==null) return;
writer.WriteLine("\t//menubar");
String barname=getName(menubarElement);
- writer.WriteLine("\t\t{0}=new TTQMenuBar(this,\"{1}\");",barname,barname);
+ writer.WriteLine("\t\t{0}=new TQMenuBar(this,\"{1}\");",barname,barname);
int count=0;
foreach (XmlNode mNode in menubarElement.ChildNodes) {
XmlElement item=mNode as XmlElement;
if (item.Name!="item") continue;
String submenu_name=item.GetAttribute("name");
String submenu_text=stringify(item.GetAttribute("text"));
- writer.WriteLine("\t\t{0}=new TTQPopupMenu(this);",submenu_name);
+ writer.WriteLine("\t\t{0}=new TQPopupMenu(this);",submenu_name);
foreach (XmlNode node in item.ChildNodes) {
XmlElement element=node as XmlElement;
@@ -428,7 +428,7 @@ namespace QtSharp {
XmlElement toolbar=tNode as XmlElement;
if (toolbar.Name!="toolbar") continue;
String varname=getName(toolbar);
- writer.WriteLine("\t\t{0}=new TTQToolBar(this,\"{1}\");",varname,varname);
+ writer.WriteLine("\t\t{0}=new TQToolBar(this,\"{1}\");",varname,varname);
writer.WriteLine("\t\tthis.AddDockWindow({0},(Qt.Dock){1},false);",varname,toolbar.GetAttribute("dock"));
foreach (XmlNode node in toolbar.ChildNodes) {
XmlElement element=node as XmlElement;
@@ -473,7 +473,7 @@ namespace QtSharp {
private void widgetAdd(String parname,XmlElement par, XmlElement obj)
{
if (par==widgetElement) {
- if (par.GetAttribute("class")=="TTQWizard")
+ if (par.GetAttribute("class")=="TQWizard")
{
writer.WriteLine("\t\tAddPage("+getName(obj)+", "+getName(obj)+".Caption());");
}
@@ -486,7 +486,7 @@ namespace QtSharp {
else writer.WriteLine("\t\t"+parname+".Add("+getName(obj)+");");
}
else switch(par.GetAttribute("class")) {
- case "TTQTabWidget": writer.WriteLine("\t\t"+parname+".InsertTab("+getName(obj)+",\"\");");
+ case "TQTabWidget": writer.WriteLine("\t\t"+parname+".InsertTab("+getName(obj)+",\"\");");
break;
default: break;
}
@@ -575,10 +575,10 @@ namespace QtSharp {
break;
}
}
- writer.WriteLine("\t\tTQSpacerItem {0}=new TTQSpacerItem({1},{2},{3},{4});",
+ writer.WriteLine("\t\tTQSpacerItem {0}=new TQSpacerItem({1},{2},{3},{4});",
name,shx,shy,
- (orientation=="VERTICAL")?"Qt.TTQSizePolicy.SizeType.Minimum":("Qt.TTQSizePolicy.SizeType."+toPascal(sizeType)),
- (orientation!="VERTICAL")?"Qt.TTQSizePolicy.SizeType.Minimum":("Qt.TTQSizePolicy.SizeType."+toPascal(sizeType)));
+ (orientation=="VERTICAL")?"Qt.TQSizePolicy.SizeType.Minimum":("Qt.TQSizePolicy.SizeType."+toPascal(sizeType)),
+ (orientation!="VERTICAL")?"Qt.TQSizePolicy.SizeType.Minimum":("Qt.TQSizePolicy.SizeType."+toPascal(sizeType)));
}
int layoutcnt=1;
@@ -600,11 +600,11 @@ namespace QtSharp {
parent=obj.GetAttribute("uicsharp_parent");
switch (obj.Name) {
- case "vbox": writer.WriteLine("\t\t"+(privateLayout?"TTQVBoxLayout ":"")+name+"= new TTQVBoxLayout("+
+ case "vbox": writer.WriteLine("\t\t"+(privateLayout?"TQVBoxLayout ":"")+name+"= new TQVBoxLayout("+
((parent==null)?"":parent)+");");
setupLayout(name,obj);
return obj;
- case "hbox": writer.WriteLine("\t\t"+(privateLayout?"TTQHBoxLayout ":"")+name+"= new TTQHBoxLayout("+
+ case "hbox": writer.WriteLine("\t\t"+(privateLayout?"TQHBoxLayout ":"")+name+"= new TQHBoxLayout("+
((parent==null)?"":parent)+");");
setupLayout(name,obj);
return obj;
@@ -647,7 +647,7 @@ namespace QtSharp {
rows=(tmprows<rows)?rows:tmprows;
}
}
- writer.WriteLine("\t\t"+ (privateLayout?"TTQGridLayout ":"")+name +"= new TTQGridLayout ("+
+ writer.WriteLine("\t\t"+ (privateLayout?"TQGridLayout ":"")+name +"= new TQGridLayout ("+
((parent==null)?"":(parent+", "))+rows+", "+cols+");");
setupLayout(name,obj);
return obj;
@@ -696,7 +696,7 @@ namespace QtSharp {
private void widgetType(XmlElement obj, ref String typename, ref XmlElement subcontainer, bool write)
{
typename=obj.GetAttribute("class");
- if ((typename!="TTQGroupBox") && (typename!="ButtonGroup")) return;
+ if ((typename!="TQGroupBox") && (typename!="ButtonGroup")) return;
foreach (XmlNode node in obj.ChildNodes) {
if (elementType(node as XmlElement)==ElementType.LayoutType) {
XmlElement el =node as XmlElement;
@@ -708,17 +708,17 @@ namespace QtSharp {
el.SetAttribute("uicsharp_alignment","(int)Qt.AlignmentFlags.AlignTop");
switch (el.Name) {
- case "vbox": typename="TTQGroupBox";
+ case "vbox": typename="TQGroupBox";
if (write)
- writer.WriteLine("\t\t TTQVBoxLayout "+el.GetAttribute("uicsharp_name")+";");
+ writer.WriteLine("\t\t TQVBoxLayout "+el.GetAttribute("uicsharp_name")+";");
return;
- case "hbox": typename="TTQGroupBox";
+ case "hbox": typename="TQGroupBox";
if (write)
- writer.WriteLine("\t\t TTQHBoxLayout "+el.GetAttribute("uicsharp_name")+";");
+ writer.WriteLine("\t\t TQHBoxLayout "+el.GetAttribute("uicsharp_name")+";");
return;
- case "grid": typename="TTQGroupBox";
+ case "grid": typename="TQGroupBox";
if (write)
- writer.WriteLine("\t\t TTQGridLayout "+el.GetAttribute("uicsharp_name")+";");
+ writer.WriteLine("\t\t TQGridLayout "+el.GetAttribute("uicsharp_name")+";");
return;
@@ -769,7 +769,7 @@ namespace QtSharp {
switch (value.Name) {
case "string" : if (prop.GetAttribute("name")!="accel") sc += "\""+stringify(value.InnerText)+"\"";
- else sc+="new TTQKeySequence(\""+stringify(value.InnerText)+"\")";
+ else sc+="new TQKeySequence(\""+stringify(value.InnerText)+"\")";
break;
case "cstring" : sc += value.InnerText;
break;
@@ -789,9 +789,9 @@ namespace QtSharp {
}
}
if ((varName=="this") && (methodName=="SetGeometry"))
- sc = "Resize ((new TTQSize("+rw+", "+rh+")).ExpandedTo(SizeHint())";
+ sc = "Resize ((new TQSize("+rw+", "+rh+")).ExpandedTo(SizeHint())";
else
- sc += "new TTQRect("+rx+", "+ry+", "+rw+", "+rh+")";
+ sc += "new TQRect("+rx+", "+ry+", "+rw+", "+rh+")";
break;
case "enum" :
@@ -810,7 +810,7 @@ namespace QtSharp {
}
break;
- case "iconset" : sc += "new TTQIconSet("+value.InnerText+")";
+ case "iconset" : sc += "new TQIconSet("+value.InnerText+")";
break;
case "bool" : sc += value.InnerText;
break;
@@ -923,7 +923,7 @@ namespace QtSharp {
{
writer.WriteLine("\tpublic static void Main (String[] args)\n"+
"\t{\n"+
- "\t\tTQApplication app = new TTQApplication (args);\n"+
+ "\t\tTQApplication app = new TQApplication (args);\n"+
"\t\t"+className+" test = new "+className+" (null,\"\");\n"+
"\t\tapp.SetMainWidget (test);\n"+
"\t\ttest.Show ();\n"+