@ -1,7 +1,7 @@
/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
First configuration page
First configuration page
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
function Page1 ( tq parentWidget) {
function Page1 ( parentWidget) {
this . defaults = function ( ) {
this . defaults = function ( ) {
alert ( "Defaults has been called" ) ;
alert ( "Defaults has been called" ) ;
}
}
@ -11,7 +11,7 @@ function Page1 (tqparentWidget) {
this . reset = function ( ) {
this . reset = function ( ) {
alert ( "Reset defaults has been called" ) ;
alert ( "Reset defaults has been called" ) ;
}
}
box = new QVBox ( tq parentWidget) ;
box = new QVBox ( parentWidget) ;
this . button1 = new QPushButton ( box ) ;
this . button1 = new QPushButton ( box ) ;
this . button1 . text = "P1 Button 1" ;
this . button1 . text = "P1 Button 1" ;
this . button1 . show ( ) ;
this . button1 . show ( ) ;
@ -27,8 +27,8 @@ Page1.fullName="Test1/Page1";
Second configuration page
Second configuration page
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
function Page2 ( tq parentWidget) {
function Page2 ( parentWidget) {
box = new QVBox ( tq parentWidget) ;
box = new QVBox ( parentWidget) ;
this . button1 = new QPushButton ( box ) ;
this . button1 = new QPushButton ( box ) ;
this . button1 . text = "P2 Button 1" ;
this . button1 . text = "P2 Button 1" ;
this . button1 . show ( ) ;
this . button1 . show ( ) ;
@ -44,8 +44,8 @@ Page2.fullName="Test1/Page2";
Third configuration page
Third configuration page
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
function Page3 ( tq parentWidget) {
function Page3 ( parentWidget) {
box = new QVBox ( tq parentWidget) ;
box = new QVBox ( parentWidget) ;
this . button1 = new QPushButton ( box ) ;
this . button1 = new QPushButton ( box ) ;
this . button1 . text = "P3 Button 1" ;
this . button1 . text = "P3 Button 1" ;
this . button1 . show ( ) ;
this . button1 . show ( ) ;
@ -62,11 +62,11 @@ Page3.fullName="Test1/Page3";
First toolview
First toolview
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
function MyToolView1 ( mainwindow , tq parentwidget) {
function MyToolView1 ( mainwindow , parentwidget) {
tq parentwidget. caption = "This is my first JS Toolview" ;
parentwidget. caption = "This is my first JS Toolview" ;
tq parentwidget. icon = StdIcons . BarIcon ( "yes" ) ;
parentwidget. icon = StdIcons . BarIcon ( "yes" ) ;
this . lv = new KListView ( tq parentwidget ) ;
this . lv = new KListView ( parentwidget ) ;
this . lv . addColumn ( 'Pix' ) ;
this . lv . addColumn ( 'Pix' ) ;
this . lv . addColumn ( 'One' ) ;
this . lv . addColumn ( 'One' ) ;
@ -99,11 +99,11 @@ MyToolView1.name="myfirstjstoolview"
Second toolview
Second toolview
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
function MyToolView2 ( mainwindow , tq parentwidget) {
function MyToolView2 ( mainwindow , parentwidget) {
tq parentwidget. caption = "This is my second JS Toolview" ;
parentwidget. caption = "This is my second JS Toolview" ;
tq parentwidget. icon = StdIcons . BarIcon ( "no" ) ;
parentwidget. icon = StdIcons . BarIcon ( "no" ) ;
this . lb = new QListBox ( tq parentwidget) ;
this . lb = new QListBox ( parentwidget) ;
this . mainwindow = mainwindow ;
this . mainwindow = mainwindow ;
this . cleanup = function ( ) {
this . cleanup = function ( ) {
alert ( "Cleanup MyToolView2" ) ;
alert ( "Cleanup MyToolView2" ) ;
@ -121,11 +121,11 @@ MyToolView2.name="mysecondjstoolview"
function newWindowCallBack ( mainwindow ) {
function newWindowCallBack ( mainwindow ) {
alert ( "New Window has been created" ) ;
alert ( "New Window has been created" ) ;
/ *
/ *
anotherToolView = function ( mainwindow , tq parentwidget) {
anotherToolView = function ( mainwindow , parentwidget) {
tq parentwidget. caption = "This is my third JS Toolview" ;
parentwidget. caption = "This is my third JS Toolview" ;
tq parentwidget. icon = StdIcons . BarIcon ( "kate" ) ;
parentwidget. icon = StdIcons . BarIcon ( "kate" ) ;
this . lb = new QListBox ( tq parentwidget) ;
this . lb = new QListBox ( parentwidget) ;
this . mainwindow = mainwindow ;
this . mainwindow = mainwindow ;
this . cleanup = function ( ) {
this . cleanup = function ( ) {
alert ( "Cleanup MyToolView3" ) ;
alert ( "Cleanup MyToolView3" ) ;