diff options
Diffstat (limited to 'qtsharp/src/uicsharp')
-rw-r--r-- | qtsharp/src/uicsharp/tests/form1.ui | 8 | ||||
-rw-r--r-- | qtsharp/src/uicsharp/tests/form10.ui | 20 | ||||
-rw-r--r-- | qtsharp/src/uicsharp/tests/form2.ui | 28 | ||||
-rw-r--r-- | qtsharp/src/uicsharp/tests/form3.ui | 42 | ||||
-rw-r--r-- | qtsharp/src/uicsharp/tests/form4.ui | 46 | ||||
-rw-r--r-- | qtsharp/src/uicsharp/tests/form5.ui | 2 | ||||
-rw-r--r-- | qtsharp/src/uicsharp/tests/form6.ui | 16 | ||||
-rw-r--r-- | qtsharp/src/uicsharp/tests/form7.ui | 42 | ||||
-rw-r--r-- | qtsharp/src/uicsharp/tests/form8.ui | 8 | ||||
-rw-r--r-- | qtsharp/src/uicsharp/tests/form9.ui | 26 | ||||
-rw-r--r-- | qtsharp/src/uicsharp/uicsharp.cs | 72 |
11 files changed, 155 insertions, 155 deletions
diff --git a/qtsharp/src/uicsharp/tests/form1.ui b/qtsharp/src/uicsharp/tests/form1.ui index e5895a10..f9553078 100644 --- a/qtsharp/src/uicsharp/tests/form1.ui +++ b/qtsharp/src/uicsharp/tests/form1.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.1" stdsetdef="1"> <class>Form1</class> -<widget class="QDialog"> +<widget class="TQDialog"> <property name="name"> <cstring>Form1</cstring> </property> @@ -16,12 +16,12 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLineEdit"> + <widget class="TQLineEdit"> <property name="name"> <cstring>LineEdit1</cstring> </property> </widget> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>PushButton1</cstring> </property> @@ -29,7 +29,7 @@ <string>PushButton1</string> </property> </widget> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>TextLabel1</cstring> </property> diff --git a/qtsharp/src/uicsharp/tests/form10.ui b/qtsharp/src/uicsharp/tests/form10.ui index 50b27bb6..c5b42cce 100644 --- a/qtsharp/src/uicsharp/tests/form10.ui +++ b/qtsharp/src/uicsharp/tests/form10.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.1" stdsetdef="1"> <class>Form2</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>Form2</cstring> </property> @@ -12,7 +12,7 @@ <height>480</height> </rect> </property> - <widget class="QWidgetStack"> + <widget class="TQWidgetStack"> <property name="name"> <cstring>WidgetStack1</cstring> </property> @@ -24,7 +24,7 @@ <height>301</height> </rect> </property> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>page</cstring> </property> @@ -35,7 +35,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>CheckBox2</cstring> </property> @@ -43,7 +43,7 @@ <string>CheckBox2</string> </property> </widget> - <widget class="QRadioButton"> + <widget class="TQRadioButton"> <property name="name"> <cstring>RadioButton2</cstring> </property> @@ -53,7 +53,7 @@ </widget> </vbox> </widget> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>page</cstring> </property> @@ -64,7 +64,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QListView"> + <widget class="TQListView"> <column> <property name="text"> <string>Column 1</string> @@ -88,7 +88,7 @@ <cstring>ListView1</cstring> </property> </widget> - <widget class="QTable"> + <widget class="TQTable"> <property name="name"> <cstring>Table1</cstring> </property> @@ -101,7 +101,7 @@ </widget> </vbox> </widget> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>page</cstring> </property> @@ -112,7 +112,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QTable"> + <widget class="TQTable"> <property name="name"> <cstring>Table2</cstring> </property> diff --git a/qtsharp/src/uicsharp/tests/form2.ui b/qtsharp/src/uicsharp/tests/form2.ui index 4d6545d5..57e7256b 100644 --- a/qtsharp/src/uicsharp/tests/form2.ui +++ b/qtsharp/src/uicsharp/tests/form2.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.1" stdsetdef="1"> <class>Form1</class> -<widget class="QDialog"> +<widget class="TQDialog"> <property name="name"> <cstring>Form1</cstring> </property> @@ -16,7 +16,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QGroupBox"> + <widget class="TQGroupBox"> <property name="name"> <cstring>GroupBox1</cstring> </property> @@ -27,7 +27,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QCheckBox" row="0" column="0"> + <widget class="TQCheckBox" row="0" column="0"> <property name="name"> <cstring>CheckBox1</cstring> </property> @@ -35,7 +35,7 @@ <string>CheckBox1</string> </property> </widget> - <widget class="QCheckBox" row="1" column="0"> + <widget class="TQCheckBox" row="1" column="0"> <property name="name"> <cstring>CheckBox2</cstring> </property> @@ -43,7 +43,7 @@ <string>CheckBox2</string> </property> </widget> - <widget class="QCheckBox" row="2" column="0"> + <widget class="TQCheckBox" row="2" column="0"> <property name="name"> <cstring>CheckBox3</cstring> </property> @@ -51,7 +51,7 @@ <string>CheckBox3</string> </property> </widget> - <widget class="QCheckBox" row="3" column="0"> + <widget class="TQCheckBox" row="3" column="0"> <property name="name"> <cstring>CheckBox4</cstring> </property> @@ -59,7 +59,7 @@ <string>CheckBox4</string> </property> </widget> - <widget class="QCheckBox" row="0" column="1"> + <widget class="TQCheckBox" row="0" column="1"> <property name="name"> <cstring>CheckBox5</cstring> </property> @@ -67,7 +67,7 @@ <string>CheckBox5</string> </property> </widget> - <widget class="QCheckBox" row="2" column="1"> + <widget class="TQCheckBox" row="2" column="1"> <property name="name"> <cstring>CheckBox6</cstring> </property> @@ -75,7 +75,7 @@ <string>CheckBox6</string> </property> </widget> - <widget class="QCheckBox" row="3" column="1"> + <widget class="TQCheckBox" row="3" column="1"> <property name="name"> <cstring>CheckBox7</cstring> </property> @@ -83,7 +83,7 @@ <string>CheckBox7</string> </property> </widget> - <widget class="QCheckBox" row="4" column="1"> + <widget class="TQCheckBox" row="4" column="1"> <property name="name"> <cstring>CheckBox8</cstring> </property> @@ -91,7 +91,7 @@ <string>CheckBox8</string> </property> </widget> - <widget class="QCheckBox" row="4" column="0"> + <widget class="TQCheckBox" row="4" column="0"> <property name="name"> <cstring>CheckBox9</cstring> </property> @@ -101,7 +101,7 @@ </widget> </grid> </widget> - <widget class="QFrame"> + <widget class="TQFrame"> <property name="name"> <cstring>Frame3</cstring> </property> @@ -115,12 +115,12 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLineEdit"> + <widget class="TQLineEdit"> <property name="name"> <cstring>LineEdit1</cstring> </property> </widget> - <widget class="QListBox"> + <widget class="TQListBox"> <item> <property name="text"> <string>New Item</string> diff --git a/qtsharp/src/uicsharp/tests/form3.ui b/qtsharp/src/uicsharp/tests/form3.ui index 2e77c2bd..eb6533ba 100644 --- a/qtsharp/src/uicsharp/tests/form3.ui +++ b/qtsharp/src/uicsharp/tests/form3.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.1" stdsetdef="1"> <class>Form1</class> -<widget class="QDialog"> +<widget class="TQDialog"> <property name="name"> <cstring>Form1</cstring> </property> @@ -16,7 +16,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>Layout1</cstring> </property> @@ -24,7 +24,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QGroupBox"> + <widget class="TQGroupBox"> <property name="name"> <cstring>GroupBox1</cstring> </property> @@ -35,7 +35,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QCheckBox" row="0" column="0"> + <widget class="TQCheckBox" row="0" column="0"> <property name="name"> <cstring>CheckBox1</cstring> </property> @@ -43,7 +43,7 @@ <string>CheckBox1</string> </property> </widget> - <widget class="QCheckBox" row="1" column="0"> + <widget class="TQCheckBox" row="1" column="0"> <property name="name"> <cstring>CheckBox2</cstring> </property> @@ -51,7 +51,7 @@ <string>CheckBox2</string> </property> </widget> - <widget class="QCheckBox" row="2" column="0"> + <widget class="TQCheckBox" row="2" column="0"> <property name="name"> <cstring>CheckBox3</cstring> </property> @@ -59,7 +59,7 @@ <string>CheckBox3</string> </property> </widget> - <widget class="QCheckBox" row="3" column="0"> + <widget class="TQCheckBox" row="3" column="0"> <property name="name"> <cstring>CheckBox4</cstring> </property> @@ -67,7 +67,7 @@ <string>CheckBox4</string> </property> </widget> - <widget class="QCheckBox" row="0" column="1"> + <widget class="TQCheckBox" row="0" column="1"> <property name="name"> <cstring>CheckBox5</cstring> </property> @@ -75,7 +75,7 @@ <string>CheckBox5</string> </property> </widget> - <widget class="QCheckBox" row="2" column="1"> + <widget class="TQCheckBox" row="2" column="1"> <property name="name"> <cstring>CheckBox6</cstring> </property> @@ -83,7 +83,7 @@ <string>CheckBox6</string> </property> </widget> - <widget class="QCheckBox" row="3" column="1"> + <widget class="TQCheckBox" row="3" column="1"> <property name="name"> <cstring>CheckBox7</cstring> </property> @@ -91,7 +91,7 @@ <string>CheckBox7</string> </property> </widget> - <widget class="QCheckBox" row="4" column="1"> + <widget class="TQCheckBox" row="4" column="1"> <property name="name"> <cstring>CheckBox8</cstring> </property> @@ -99,7 +99,7 @@ <string>CheckBox8</string> </property> </widget> - <widget class="QCheckBox" row="4" column="0"> + <widget class="TQCheckBox" row="4" column="0"> <property name="name"> <cstring>CheckBox9</cstring> </property> @@ -109,7 +109,7 @@ </widget> </grid> </widget> - <widget class="QGroupBox"> + <widget class="TQGroupBox"> <property name="name"> <cstring>GroupBox2</cstring> </property> @@ -120,7 +120,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>PushButton1</cstring> </property> @@ -128,7 +128,7 @@ <string>PushButton1</string> </property> </widget> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>PushButton2</cstring> </property> @@ -138,7 +138,7 @@ </widget> </vbox> </widget> - <widget class="QGroupBox"> + <widget class="TQGroupBox"> <property name="name"> <cstring>GroupBox3</cstring> </property> @@ -149,7 +149,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>PushButton3</cstring> </property> @@ -157,7 +157,7 @@ <string>PushButton3</string> </property> </widget> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>PushButton4</cstring> </property> @@ -169,7 +169,7 @@ </widget> </hbox> </widget> - <widget class="QFrame"> + <widget class="TQFrame"> <property name="name"> <cstring>Frame3</cstring> </property> @@ -183,12 +183,12 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLineEdit"> + <widget class="TQLineEdit"> <property name="name"> <cstring>LineEdit1</cstring> </property> </widget> - <widget class="QListBox"> + <widget class="TQListBox"> <item> <property name="text"> <string>New Item</string> diff --git a/qtsharp/src/uicsharp/tests/form4.ui b/qtsharp/src/uicsharp/tests/form4.ui index bb18f36e..21733b0b 100644 --- a/qtsharp/src/uicsharp/tests/form4.ui +++ b/qtsharp/src/uicsharp/tests/form4.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.1" stdsetdef="1"> <class>Form1</class> -<widget class="QDialog"> +<widget class="TQDialog"> <property name="name"> <cstring>Form1</cstring> </property> @@ -16,7 +16,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>Layout1</cstring> </property> @@ -24,7 +24,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QGroupBox"> + <widget class="TQGroupBox"> <property name="name"> <cstring>GroupBox1</cstring> </property> @@ -35,7 +35,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QCheckBox" row="0" column="0"> + <widget class="TQCheckBox" row="0" column="0"> <property name="name"> <cstring>CheckBox1</cstring> </property> @@ -43,7 +43,7 @@ <string>CheckBox1</string> </property> </widget> - <widget class="QCheckBox" row="1" column="0"> + <widget class="TQCheckBox" row="1" column="0"> <property name="name"> <cstring>CheckBox2</cstring> </property> @@ -51,7 +51,7 @@ <string>CheckBox2</string> </property> </widget> - <widget class="QCheckBox" row="2" column="0"> + <widget class="TQCheckBox" row="2" column="0"> <property name="name"> <cstring>CheckBox3</cstring> </property> @@ -59,7 +59,7 @@ <string>CheckBox3</string> </property> </widget> - <widget class="QCheckBox" row="3" column="0"> + <widget class="TQCheckBox" row="3" column="0"> <property name="name"> <cstring>CheckBox4</cstring> </property> @@ -67,7 +67,7 @@ <string>CheckBox4</string> </property> </widget> - <widget class="QCheckBox" row="0" column="1"> + <widget class="TQCheckBox" row="0" column="1"> <property name="name"> <cstring>CheckBox5</cstring> </property> @@ -75,7 +75,7 @@ <string>CheckBox5</string> </property> </widget> - <widget class="QCheckBox" row="2" column="1"> + <widget class="TQCheckBox" row="2" column="1"> <property name="name"> <cstring>CheckBox6</cstring> </property> @@ -83,7 +83,7 @@ <string>CheckBox6</string> </property> </widget> - <widget class="QCheckBox" row="3" column="1"> + <widget class="TQCheckBox" row="3" column="1"> <property name="name"> <cstring>CheckBox7</cstring> </property> @@ -91,7 +91,7 @@ <string>CheckBox7</string> </property> </widget> - <widget class="QCheckBox" row="4" column="1"> + <widget class="TQCheckBox" row="4" column="1"> <property name="name"> <cstring>CheckBox8</cstring> </property> @@ -99,7 +99,7 @@ <string>CheckBox8</string> </property> </widget> - <widget class="QCheckBox" row="4" column="0"> + <widget class="TQCheckBox" row="4" column="0"> <property name="name"> <cstring>CheckBox9</cstring> </property> @@ -109,7 +109,7 @@ </widget> </grid> </widget> - <widget class="QGroupBox"> + <widget class="TQGroupBox"> <property name="name"> <cstring>GroupBox2</cstring> </property> @@ -120,7 +120,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>PushButton1</cstring> </property> @@ -128,7 +128,7 @@ <string>PushButton1</string> </property> </widget> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>PushButton2</cstring> </property> @@ -138,7 +138,7 @@ </widget> </vbox> </widget> - <widget class="QGroupBox"> + <widget class="TQGroupBox"> <property name="name"> <cstring>GroupBox3</cstring> </property> @@ -149,7 +149,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>PushButton3</cstring> </property> @@ -157,7 +157,7 @@ <string>PushButton3</string> </property> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>Layout2</cstring> </property> @@ -165,7 +165,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>CheckBox10</cstring> </property> @@ -173,7 +173,7 @@ <string>CheckBox10</string> </property> </widget> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>CheckBox11</cstring> </property> @@ -187,7 +187,7 @@ </widget> </hbox> </widget> - <widget class="QFrame"> + <widget class="TQFrame"> <property name="name"> <cstring>Frame3</cstring> </property> @@ -201,12 +201,12 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLineEdit"> + <widget class="TQLineEdit"> <property name="name"> <cstring>LineEdit1</cstring> </property> </widget> - <widget class="QListBox"> + <widget class="TQListBox"> <item> <property name="text"> <string>New Item</string> diff --git a/qtsharp/src/uicsharp/tests/form5.ui b/qtsharp/src/uicsharp/tests/form5.ui index 47cd7d91..bb998334 100644 --- a/qtsharp/src/uicsharp/tests/form5.ui +++ b/qtsharp/src/uicsharp/tests/form5.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.1" stdsetdef="1"> <class>Form1</class> -<widget class="QMainWindow"> +<widget class="TQMainWindow"> <property name="name"> <cstring>Form1</cstring> </property> diff --git a/qtsharp/src/uicsharp/tests/form6.ui b/qtsharp/src/uicsharp/tests/form6.ui index 7e67784c..bcc04572 100644 --- a/qtsharp/src/uicsharp/tests/form6.ui +++ b/qtsharp/src/uicsharp/tests/form6.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.1" stdsetdef="1"> <class>MyDialog</class> -<widget class="QDialog"> +<widget class="TQDialog"> <property name="name"> <cstring>MyDialog</cstring> </property> @@ -19,14 +19,14 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QSplitter"> + <widget class="TQSplitter"> <property name="name"> <cstring>Splitter1</cstring> </property> <property name="orientation"> <enum>Vertical</enum> </property> - <widget class="QListView"> + <widget class="TQListView"> <column> <property name="text"> <string>Column 1</string> @@ -50,7 +50,7 @@ <cstring>ListView1</cstring> </property> </widget> - <widget class="QIconView"> + <widget class="TQIconView"> <item> <property name="text"> <string>New Item</string> @@ -64,7 +64,7 @@ </property> </widget> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>Layout5</cstring> </property> @@ -78,7 +78,7 @@ <property name="spacing"> <number>6</number> </property> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>buttonOk</cstring> </property> @@ -95,7 +95,7 @@ <bool>true</bool> </property> </widget> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>buttonCancel</cstring> </property> @@ -109,7 +109,7 @@ <bool>true</bool> </property> </widget> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>buttonHelp</cstring> </property> diff --git a/qtsharp/src/uicsharp/tests/form7.ui b/qtsharp/src/uicsharp/tests/form7.ui index 6cf51c06..8d043b3a 100644 --- a/qtsharp/src/uicsharp/tests/form7.ui +++ b/qtsharp/src/uicsharp/tests/form7.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.1" stdsetdef="1"> <class>Form1</class> -<widget class="QDialog"> +<widget class="TQDialog"> <property name="name"> <cstring>Form1</cstring> </property> @@ -12,7 +12,7 @@ <height>480</height> </rect> </property> - <widget class="QGroupBox"> + <widget class="TQGroupBox"> <property name="name"> <cstring>GroupBox3</cstring> </property> @@ -27,7 +27,7 @@ <property name="title"> <string>GroupBox3</string> </property> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>PushButton3</cstring> </property> @@ -43,7 +43,7 @@ <string>PushButton3</string> </property> </widget> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>CheckBox10</cstring> </property> @@ -59,7 +59,7 @@ <string>CheckBox10</string> </property> </widget> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>CheckBox11</cstring> </property> @@ -76,7 +76,7 @@ </property> </widget> </widget> - <widget class="QGroupBox"> + <widget class="TQGroupBox"> <property name="name"> <cstring>GroupBox1</cstring> </property> @@ -91,7 +91,7 @@ <property name="title"> <string>GroupBox1</string> </property> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>CheckBox1</cstring> </property> @@ -107,7 +107,7 @@ <string>CheckBox1</string> </property> </widget> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>CheckBox2</cstring> </property> @@ -123,7 +123,7 @@ <string>CheckBox2</string> </property> </widget> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>CheckBox3</cstring> </property> @@ -139,7 +139,7 @@ <string>CheckBox3</string> </property> </widget> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>CheckBox4</cstring> </property> @@ -155,7 +155,7 @@ <string>CheckBox4</string> </property> </widget> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>CheckBox5</cstring> </property> @@ -171,7 +171,7 @@ <string>CheckBox5</string> </property> </widget> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>CheckBox6</cstring> </property> @@ -187,7 +187,7 @@ <string>CheckBox6</string> </property> </widget> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>CheckBox7</cstring> </property> @@ -203,7 +203,7 @@ <string>CheckBox7</string> </property> </widget> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>CheckBox8</cstring> </property> @@ -219,7 +219,7 @@ <string>CheckBox8</string> </property> </widget> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>CheckBox9</cstring> </property> @@ -236,7 +236,7 @@ </property> </widget> </widget> - <widget class="QGroupBox"> + <widget class="TQGroupBox"> <property name="name"> <cstring>GroupBox2</cstring> </property> @@ -251,7 +251,7 @@ <property name="title"> <string>GroupBox2</string> </property> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>PushButton1</cstring> </property> @@ -267,7 +267,7 @@ <string>PushButton1</string> </property> </widget> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>PushButton2</cstring> </property> @@ -284,7 +284,7 @@ </property> </widget> </widget> - <widget class="QFrame"> + <widget class="TQFrame"> <property name="name"> <cstring>Frame3</cstring> </property> @@ -302,7 +302,7 @@ <property name="frameShadow"> <enum>Raised</enum> </property> - <widget class="QLineEdit"> + <widget class="TQLineEdit"> <property name="name"> <cstring>LineEdit1</cstring> </property> @@ -315,7 +315,7 @@ </rect> </property> </widget> - <widget class="QListBox"> + <widget class="TQListBox"> <item> <property name="text"> <string>New Item</string> diff --git a/qtsharp/src/uicsharp/tests/form8.ui b/qtsharp/src/uicsharp/tests/form8.ui index 09f20bef..072b9977 100644 --- a/qtsharp/src/uicsharp/tests/form8.ui +++ b/qtsharp/src/uicsharp/tests/form8.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.1" stdsetdef="1"> <class>Form1</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>Form1</cstring> </property> @@ -12,7 +12,7 @@ <height>480</height> </rect> </property> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>PushButton1</cstring> </property> @@ -28,7 +28,7 @@ <string>PushButton1</string> </property> </widget> - <widget class="QRadioButton"> + <widget class="TQRadioButton"> <property name="name"> <cstring>RadioButton1</cstring> </property> @@ -44,7 +44,7 @@ <string>RadioButton1</string> </property> </widget> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>CheckBox1</cstring> </property> diff --git a/qtsharp/src/uicsharp/tests/form9.ui b/qtsharp/src/uicsharp/tests/form9.ui index b1e61488..3ba562c7 100644 --- a/qtsharp/src/uicsharp/tests/form9.ui +++ b/qtsharp/src/uicsharp/tests/form9.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.1" stdsetdef="1"> <class>MyDialog1</class> -<widget class="QDialog"> +<widget class="TQDialog"> <property name="name"> <cstring>MyDialog1</cstring> </property> @@ -25,18 +25,18 @@ <property name="spacing"> <number>6</number> </property> - <widget class="QTabWidget"> + <widget class="TQTabWidget"> <property name="name"> <cstring>tabWidget</cstring> </property> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>Widget8</cstring> </property> <attribute name="title"> <string>Tab</string> </attribute> - <widget class="QComboBox"> + <widget class="TQComboBox"> <property name="name"> <cstring>ComboBox1</cstring> </property> @@ -49,7 +49,7 @@ </rect> </property> </widget> - <widget class="QListBox"> + <widget class="TQListBox"> <item> <property name="text"> <string>New Item</string> @@ -67,7 +67,7 @@ </rect> </property> </widget> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>TextLabel1</cstring> </property> @@ -84,7 +84,7 @@ </property> </widget> </widget> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>Widget9</cstring> </property> @@ -95,7 +95,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QListBox"> + <widget class="TQListBox"> <item> <property name="text"> <string>New Item</string> @@ -105,7 +105,7 @@ <cstring>ListBox2</cstring> </property> </widget> - <widget class="QTextEdit"> + <widget class="TQTextEdit"> <property name="name"> <cstring>TextEdit1</cstring> </property> @@ -113,7 +113,7 @@ </hbox> </widget> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>Layout1</cstring> </property> @@ -127,7 +127,7 @@ <property name="spacing"> <number>6</number> </property> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>buttonHelp</cstring> </property> @@ -158,7 +158,7 @@ </size> </property> </spacer> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>buttonOk</cstring> </property> @@ -175,7 +175,7 @@ <bool>true</bool> </property> </widget> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>buttonCancel</cstring> </property> diff --git a/qtsharp/src/uicsharp/uicsharp.cs b/qtsharp/src/uicsharp/uicsharp.cs index 62a67757..32587f4b 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]; - TQApplication dummyapp=new TQApplication(dummyargs,false); + TTQApplication dummyapp=new TTQApplication(dummyargs,false); qtAssembly=Assembly.GetAssembly(dummyapp.GetType()); // qtAssembly=Assembly.Load("Qt.dll"); Console.WriteLine("CodeBase="+qtAssembly.CodeBase); @@ -216,7 +216,7 @@ namespace QtSharp { "\"....#aaaaaaaaaaaaa#...\",\"....#aaaaaaaaaaaaa#...\",\"....#aaaaaaaaaaaaa#...\","+ "\"....#aaaaaaaaaaaaa#...\",\"....#aaaaaaaaaaaaa#...\",\"....###############...\","+ "\"......................\",\"......................\"};"); - writer.WriteLine("\tQPixmap {0};",el.GetAttribute("name")); + writer.WriteLine("\tTQPixmap {0};",el.GetAttribute("name")); } } @@ -225,11 +225,11 @@ namespace QtSharp { { if (menubarElement==null) return; writer.WriteLine("\t//Menubar member fields"); - writer.WriteLine("\t TQMenuBar menubar;"); + writer.WriteLine("\t TTQMenuBar menubar;"); foreach (XmlNode node in menubarElement.ChildNodes) { XmlElement el=node as XmlElement; if (el.Name=="item") { - writer.WriteLine("\tpublic TQPopupMenu {0};",el.GetAttribute("name")); + writer.WriteLine("\tpublic TTQPopupMenu {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 TQAction {0};",getName(el)); + writer.WriteLine("\tpublic TTQAction {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 TQToolBar {0};",getName(el)); + writer.WriteLine("\tpublic TTQToolBar {0};",getName(el)); } } } @@ -269,7 +269,7 @@ namespace QtSharp { if (submembernode.ParentNode!=widget) continue; // I think this is a workaround for a classlib bug XmlElement submember=submembernode as XmlElement; addSubMembers(submember); - if (submember.GetAttribute("class")=="QLayoutWidget") continue; //they are private + if (submember.GetAttribute("class")=="TQLayoutWidget") continue; //they are private String membername=getName(submember); if (membername==String.Empty) continue; writer.WriteLine("\t"+submember.GetAttribute("class")+" "+membername+";"); @@ -334,7 +334,7 @@ namespace QtSharp { tmp=tmp.NextSibling as XmlElement; String slot=tmp.InnerText; - writer.WriteLine("\t\tQObject.Connect({0},TQT_SIGNAL(\"{1}\"),{2},TQT_SLOT(\"{3}\"));", + writer.WriteLine("\t\tTQObject.Connect({0},TQT_SIGNAL(\"{1}\"),{2},TQT_SLOT(\"{3}\"));", sender,signal,receiver,slot); } break; @@ -346,7 +346,7 @@ namespace QtSharp { private void createConstructor() { //Later handle non qwidgets better (dialog,....) - writer.WriteLine("\n\tpublic "+className+"(TQWidget parent, String name) :base(parent, name) {"); + writer.WriteLine("\n\tpublic "+className+"(TTQWidget 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 TQPixmap({1}_data);", + writer.WriteLine("\t\t{0}=new TTQPixmap({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 TQAction(this,\"{1}\");",getName(action),getName(action)); + writer.WriteLine("\t\t{0}= new TTQAction(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 TQMenuBar(this,\"{1}\");",barname,barname); + writer.WriteLine("\t\t{0}=new TTQMenuBar(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 TQPopupMenu(this);",submenu_name); + writer.WriteLine("\t\t{0}=new TTQPopupMenu(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 TQToolBar(this,\"{1}\");",varname,varname); + writer.WriteLine("\t\t{0}=new TTQToolBar(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; @@ -442,7 +442,7 @@ namespace QtSharp { private ElementType elementType(XmlElement el) { switch (el.Name) { - case "widget": return (el.GetAttribute("class")=="QLayoutWidget")? + case "widget": return (el.GetAttribute("class")=="TQLayoutWidget")? ElementType.LayoutType:ElementType.WidgetType; case "vbox": return ElementType.LayoutType; case "hbox": return ElementType.LayoutType; @@ -473,7 +473,7 @@ namespace QtSharp { private void widgetAdd(String parname,XmlElement par, XmlElement obj) { if (par==widgetElement) { - if (par.GetAttribute("class")=="TQWizard") + if (par.GetAttribute("class")=="TTQWizard") { 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 "TQTabWidget": writer.WriteLine("\t\t"+parname+".InsertTab("+getName(obj)+",\"\");"); + case "TTQTabWidget": writer.WriteLine("\t\t"+parname+".InsertTab("+getName(obj)+",\"\");"); break; default: break; } @@ -575,10 +575,10 @@ namespace QtSharp { break; } } - writer.WriteLine("\t\tQSpacerItem {0}=new TQSpacerItem({1},{2},{3},{4});", + writer.WriteLine("\t\tTQSpacerItem {0}=new TTQSpacerItem({1},{2},{3},{4});", name,shx,shy, - (orientation=="VERTICAL")?"Qt.TQSizePolicy.SizeType.Minimum":("Qt.TQSizePolicy.SizeType."+toPascal(sizeType)), - (orientation!="VERTICAL")?"Qt.TQSizePolicy.SizeType.Minimum":("Qt.TQSizePolicy.SizeType."+toPascal(sizeType))); + (orientation=="VERTICAL")?"Qt.TTQSizePolicy.SizeType.Minimum":("Qt.TTQSizePolicy.SizeType."+toPascal(sizeType)), + (orientation!="VERTICAL")?"Qt.TTQSizePolicy.SizeType.Minimum":("Qt.TTQSizePolicy.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?"TQVBoxLayout ":"")+name+"= new TQVBoxLayout("+ + case "vbox": writer.WriteLine("\t\t"+(privateLayout?"TTQVBoxLayout ":"")+name+"= new TTQVBoxLayout("+ ((parent==null)?"":parent)+");"); setupLayout(name,obj); return obj; - case "hbox": writer.WriteLine("\t\t"+(privateLayout?"TQHBoxLayout ":"")+name+"= new TQHBoxLayout("+ + case "hbox": writer.WriteLine("\t\t"+(privateLayout?"TTQHBoxLayout ":"")+name+"= new TTQHBoxLayout("+ ((parent==null)?"":parent)+");"); setupLayout(name,obj); return obj; @@ -647,7 +647,7 @@ namespace QtSharp { rows=(tmprows<rows)?rows:tmprows; } } - writer.WriteLine("\t\t"+ (privateLayout?"TQGridLayout ":"")+name +"= new TQGridLayout ("+ + writer.WriteLine("\t\t"+ (privateLayout?"TTQGridLayout ":"")+name +"= new TTQGridLayout ("+ ((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!="TQGroupBox") && (typename!="ButtonGroup")) return; + if ((typename!="TTQGroupBox") && (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="TQGroupBox"; + case "vbox": typename="TTQGroupBox"; if (write) - writer.WriteLine("\t\t TQVBoxLayout "+el.GetAttribute("uicsharp_name")+";"); + writer.WriteLine("\t\t TTQVBoxLayout "+el.GetAttribute("uicsharp_name")+";"); return; - case "hbox": typename="TQGroupBox"; + case "hbox": typename="TTQGroupBox"; if (write) - writer.WriteLine("\t\t TQHBoxLayout "+el.GetAttribute("uicsharp_name")+";"); + writer.WriteLine("\t\t TTQHBoxLayout "+el.GetAttribute("uicsharp_name")+";"); return; - case "grid": typename="TQGroupBox"; + case "grid": typename="TTQGroupBox"; if (write) - writer.WriteLine("\t\t TQGridLayout "+el.GetAttribute("uicsharp_name")+";"); + writer.WriteLine("\t\t TTQGridLayout "+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 TQKeySequence(\""+stringify(value.InnerText)+"\")"; + else sc+="new TTQKeySequence(\""+stringify(value.InnerText)+"\")"; break; case "cstring" : sc += value.InnerText; break; @@ -789,9 +789,9 @@ namespace QtSharp { } } if ((varName=="this") && (methodName=="SetGeometry")) - sc = "Resize ((new TQSize("+rw+", "+rh+")).ExpandedTo(SizeHint())"; + sc = "Resize ((new TTQSize("+rw+", "+rh+")).ExpandedTo(SizeHint())"; else - sc += "new TQRect("+rx+", "+ry+", "+rw+", "+rh+")"; + sc += "new TTQRect("+rx+", "+ry+", "+rw+", "+rh+")"; break; case "enum" : @@ -810,12 +810,12 @@ namespace QtSharp { } break; - case "iconset" : sc += "new TQIconSet("+value.InnerText+")"; + case "iconset" : sc += "new TTQIconSet("+value.InnerText+")"; break; case "bool" : sc += value.InnerText; break; case "font": String fvn=varName+"_Font"; - sc="\t\tQFont "+fvn+" = ("+varName+".Font());\n"; + sc="\t\tTQFont "+fvn+" = ("+varName+".Font());\n"; foreach(XmlNode fn in value.ChildNodes) { XmlElement fe=fn as XmlElement; switch (fe.Name) { @@ -923,7 +923,7 @@ namespace QtSharp { { writer.WriteLine("\tpublic static void Main (String[] args)\n"+ "\t{\n"+ - "\t\tQApplication app = new TQApplication (args);\n"+ + "\t\tTQApplication app = new TTQApplication (args);\n"+ "\t\t"+className+" test = new "+className+" (null,\"\");\n"+ "\t\tapp.SetMainWidget (test);\n"+ "\t\ttest.Show ();\n"+ |