diff options
Diffstat (limited to 'kjsembed/docs/examples/buttonmaker')
-rw-r--r-- | kjsembed/docs/examples/buttonmaker/ButtonMakerUI.ui | 64 | ||||
-rwxr-xr-x | kjsembed/docs/examples/buttonmaker/buttonmaker.js | 12 | ||||
-rwxr-xr-x | kjsembed/docs/examples/buttonmaker/pillbox.js | 34 |
3 files changed, 55 insertions, 55 deletions
diff --git a/kjsembed/docs/examples/buttonmaker/ButtonMakerUI.ui b/kjsembed/docs/examples/buttonmaker/ButtonMakerUI.ui index 23c30593..60339d6a 100644 --- a/kjsembed/docs/examples/buttonmaker/ButtonMakerUI.ui +++ b/kjsembed/docs/examples/buttonmaker/ButtonMakerUI.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>Form1</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>Form1</cstring> </property> @@ -24,7 +24,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QGroupBox"> + <widget class="TQGroupBox"> <property name="name"> <cstring>PreviewBox</cstring> </property> @@ -43,7 +43,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel" row="0" column="0"> + <widget class="TQLabel" row="0" column="0"> <property name="name"> <cstring>Preview</cstring> </property> @@ -56,7 +56,7 @@ </widget> </grid> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout6</cstring> </property> @@ -64,7 +64,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1</cstring> </property> @@ -82,7 +82,7 @@ </widget> </hbox> </widget> - <widget class="QButtonGroup"> + <widget class="TQButtonGroup"> <property name="name"> <cstring>Mode</cstring> </property> @@ -93,7 +93,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout15</cstring> </property> @@ -101,7 +101,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout8</cstring> </property> @@ -109,7 +109,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QRadioButton"> + <widget class="TQRadioButton"> <property name="name"> <cstring>Srcimg</cstring> </property> @@ -127,7 +127,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout14</cstring> </property> @@ -152,7 +152,7 @@ </size> </property> </spacer> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout13</cstring> </property> @@ -160,7 +160,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel3_2</cstring> </property> @@ -178,7 +178,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout12</cstring> </property> @@ -186,7 +186,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel4_2</cstring> </property> @@ -208,7 +208,7 @@ </widget> </vbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout17</cstring> </property> @@ -216,7 +216,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QRadioButton"> + <widget class="TQRadioButton"> <property name="name"> <cstring>Pillbox</cstring> </property> @@ -241,7 +241,7 @@ </size> </property> </spacer> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout9</cstring> </property> @@ -249,7 +249,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel2</cstring> </property> @@ -273,7 +273,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout10</cstring> </property> @@ -281,7 +281,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_2</cstring> </property> @@ -322,7 +322,7 @@ </size> </property> </spacer> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout15</cstring> </property> @@ -330,7 +330,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_3</cstring> </property> @@ -362,7 +362,7 @@ </widget> </vbox> </widget> - <widget class="QGroupBox"> + <widget class="TQGroupBox"> <property name="name"> <cstring>TextBox</cstring> </property> @@ -373,7 +373,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel3</cstring> </property> @@ -392,7 +392,7 @@ <bool>false</bool> </property> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout16</cstring> </property> @@ -400,7 +400,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel2_2</cstring> </property> @@ -413,7 +413,7 @@ <cstring>XOffset</cstring> </property> </widget> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel2_2_2</cstring> </property> @@ -445,7 +445,7 @@ </spacer> </hbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout10</cstring> </property> @@ -453,7 +453,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout7</cstring> </property> @@ -461,7 +461,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel4</cstring> </property> @@ -496,7 +496,7 @@ </size> </property> </spacer> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout8</cstring> </property> @@ -504,7 +504,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel5</cstring> </property> diff --git a/kjsembed/docs/examples/buttonmaker/buttonmaker.js b/kjsembed/docs/examples/buttonmaker/buttonmaker.js index ac85b878..8cb82ba3 100755 --- a/kjsembed/docs/examples/buttonmaker/buttonmaker.js +++ b/kjsembed/docs/examples/buttonmaker/buttonmaker.js @@ -24,20 +24,20 @@ win.connect( saveAction, 'activated()', this, 'saveImage'); win.connect( newAction, 'activated()', this, 'resetView'); -win.connect(view.TextBox.Font, 'fontSelected(const QFont&)', this, 'updateUI' ); -win.connect(view.TextBox.TextColors, 'fgChanged(const QColor&)', this, 'updateUI' ); -win.connect(view.TextBox.TextColors, 'bgChanged(const QColor&)', this, 'updateUI' ); +win.connect(view.TextBox.Font, 'fontSelected(const TQFont&)', this, 'updateUI' ); +win.connect(view.TextBox.TextColors, 'fgChanged(const TQColor&)', this, 'updateUI' ); +win.connect(view.TextBox.TextColors, 'bgChanged(const TQColor&)', this, 'updateUI' ); win.connect(view.TextBox.Offset, 'valueChanged(int)', this, 'updateUI' ); win.connect(view.TextBox.YOffset, 'valueChanged(int)', this, 'updateUI' ); win.connect(view.TextBox.XOffset, 'valueChanged(int)', this, 'updateUI' ); -win.connect(view.Text, 'returnPressed(const QString&)', this, 'updateUI'); +win.connect(view.Text, 'returnPressed(const TQString&)', this, 'updateUI'); win.connect(view.Mode, 'released(int)', this, 'changeMode'); win.connect(view.Mode.Xsize, 'valueChanged(int)', this, 'updatePillBox' ); win.connect(view.Mode.Ysize, 'valueChanged(int)', this, 'updatePillBox' ); -win.connect(view.Mode.BaseColor, 'changed(const QColor&)', this, 'updatePillBox' ); -win.connect(view.Mode.BaseImage, 'urlSelected(const QString&)', this, 'loadImage'); +win.connect(view.Mode.BaseColor, 'changed(const TQColor&)', this, 'updatePillBox' ); +win.connect(view.Mode.BaseImage, 'urlSelected(const TQString&)', this, 'loadImage'); win.connect(view.Mode.Xscale, 'valueChanged(int)', this, 'updateUI' ); win.connect(view.Mode.Yscale, 'valueChanged(int)', this, 'updateUI' ); diff --git a/kjsembed/docs/examples/buttonmaker/pillbox.js b/kjsembed/docs/examples/buttonmaker/pillbox.js index 25c50ae1..21621c19 100755 --- a/kjsembed/docs/examples/buttonmaker/pillbox.js +++ b/kjsembed/docs/examples/buttonmaker/pillbox.js @@ -61,35 +61,35 @@ function BaseImage() } this.test = function( parent ) { - var box = new QHBox(parent); - var vbox1 = new QVBox(box); - var vbox2 = new QVBox(box); - var vbox3 = new QVBox(box); - var l1 = new QLabel(vbox1); + var box = new TQHBox(parent); + var vbox1 = new TQVBox(box); + var vbox2 = new TQVBox(box); + var vbox3 = new TQVBox(box); + var l1 = new TQLabel(vbox1); l1.pixmap = this.a.pixmap(); - var l2 = new QLabel(vbox1); + var l2 = new TQLabel(vbox1); l2.pixmap = this.d.pixmap(); - var l3 = new QLabel(vbox1); + var l3 = new TQLabel(vbox1); l3.pixmap = this.g.pixmap(); - var l4 = new QLabel(vbox2); + var l4 = new TQLabel(vbox2); l4.pixmap = this.b.pixmap(); - var l5 = new QLabel(vbox2); + var l5 = new TQLabel(vbox2); l5.pixmap = this.e.pixmap(); - var l6 = new QLabel(vbox2); + var l6 = new TQLabel(vbox2); l6.pixmap = this.h.pixmap(); - var l7 = new QLabel(vbox3); + var l7 = new TQLabel(vbox3); l7.pixmap = this.c.pixmap(); - var l8 = new QLabel(vbox3); + var l8 = new TQLabel(vbox3); l8.pixmap = this.f.pixmap(); - var l9 = new QLabel(vbox3); + var l9 = new TQLabel(vbox3); l9.pixmap = this.i.pixmap(); } @@ -138,7 +138,7 @@ function BaseImage() var base = new BaseImage(); -var label = new QLabel(this); +var label = new TQLabel(this); if ( !base.loadImages() ) @@ -150,8 +150,8 @@ var W = 128; base.resize(W,H); -var box = new QHBox(this); -var label = new QLabel(box); +var box = new TQHBox(this); +var label = new TQLabel(box); label.resize(W,H); label.paintEvent = function(ev) { @@ -159,7 +159,7 @@ label.paintEvent = function(ev) base.widget(label); } -var label2 = new QLabel(box); +var label2 = new TQLabel(box); label2.pixmap = base.pixmap(W,H); base.test(box); |