diff options
Diffstat (limited to 'kate/kjswrapper/samples')
-rw-r--r-- | kate/kjswrapper/samples/katekjstest1.js | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/kate/kjswrapper/samples/katekjstest1.js b/kate/kjswrapper/samples/katekjstest1.js index a8b061b..7e4e041 100644 --- a/kate/kjswrapper/samples/katekjstest1.js +++ b/kate/kjswrapper/samples/katekjstest1.js @@ -1,7 +1,7 @@ /**************************************************************** First configuration page ****************************************************************/ -function Page1 (tqparentWidget) { +function Page1 (parentWidget) { this.defaults=function() { alert("Defaults has been called"); } @@ -11,7 +11,7 @@ function Page1 (tqparentWidget) { this.reset=function() { alert("Reset defaults has been called"); } - box=new QVBox(tqparentWidget); + box=new QVBox(parentWidget); this.button1=new QPushButton(box); this.button1.text="P1 Button 1"; this.button1.show(); @@ -27,8 +27,8 @@ Page1.fullName="Test1/Page1"; Second configuration page ****************************************************************/ -function Page2 (tqparentWidget) { - box=new QVBox(tqparentWidget); +function Page2 (parentWidget) { + box=new QVBox(parentWidget); this.button1=new QPushButton(box); this.button1.text="P2 Button 1"; this.button1.show(); @@ -44,8 +44,8 @@ Page2.fullName="Test1/Page2"; Third configuration page ****************************************************************/ -function Page3 (tqparentWidget) { - box=new QVBox(tqparentWidget); +function Page3 (parentWidget) { + box=new QVBox(parentWidget); this.button1=new QPushButton(box); this.button1.text="P3 Button 1"; this.button1.show(); @@ -62,11 +62,11 @@ Page3.fullName="Test1/Page3"; First toolview ****************************************************************/ -function MyToolView1 (mainwindow,tqparentwidget) { - tqparentwidget.caption="This is my first JS Toolview"; - tqparentwidget.icon=StdIcons.BarIcon("yes"); +function MyToolView1 (mainwindow,parentwidget) { + parentwidget.caption="This is my first JS Toolview"; + parentwidget.icon=StdIcons.BarIcon("yes"); - this.lv = new KListView( tqparentwidget ); + this.lv = new KListView( parentwidget ); this.lv.addColumn('Pix'); this.lv.addColumn('One'); @@ -99,11 +99,11 @@ MyToolView1.name="myfirstjstoolview" Second toolview ****************************************************************/ -function MyToolView2 (mainwindow,tqparentwidget) { - tqparentwidget.caption="This is my second JS Toolview"; - tqparentwidget.icon=StdIcons.BarIcon("no"); +function MyToolView2 (mainwindow,parentwidget) { + parentwidget.caption="This is my second JS Toolview"; + parentwidget.icon=StdIcons.BarIcon("no"); - this.lb=new QListBox(tqparentwidget); + this.lb=new QListBox(parentwidget); this.mainwindow=mainwindow; this.cleanup=function() { alert("Cleanup MyToolView2"); @@ -121,11 +121,11 @@ MyToolView2.name="mysecondjstoolview" function newWindowCallBack(mainwindow) { alert("New Window has been created"); /* - anotherToolView = function (mainwindow,tqparentwidget) { - tqparentwidget.caption="This is my third JS Toolview"; - tqparentwidget.icon=StdIcons.BarIcon("kate"); + anotherToolView = function (mainwindow,parentwidget) { + parentwidget.caption="This is my third JS Toolview"; + parentwidget.icon=StdIcons.BarIcon("kate"); - this.lb=new QListBox(tqparentwidget); + this.lb=new QListBox(parentwidget); this.mainwindow=mainwindow; this.cleanup=function() { alert("Cleanup MyToolView3"); |