]> Creatis software - bbtk.git/blobdiff - packages/wxvtk/bbs/boxes/bbBasicImageApplication.bbs
*** empty log message ***
[bbtk.git] / packages / wxvtk / bbs / boxes / bbBasicImageApplication.bbs
index d83f1a7b66302e37fc9b0c8afe8e2cd04326a674..3780b202fb799ee98e413d511bcee1e5f5d8959e 100644 (file)
@@ -9,7 +9,7 @@ load vtk
 define BasicImageApplication
 
 ##
-   description "Interface of a 'standard' image application. Displays two images : before/after processing; Offers buttons : open/parameters/run/save/quit. See <a href='../demo/index.html#DemoBasicImageApplication'>DemoBasicImageApplication.bbs</a>. Screenshot : <center><img src='../demo/DemoBasicImageApplication1.png' width=400></center>."
+  description "Interface of a 'standard' image application. Displays two images : before/after processing; Offers buttons : open/parameters/run/save/quit. See <a href='../demo/index.html#DemoBasicImageApplication'>DemoBasicImageApplication.bbs</a>."
   author "laurent.guigues@creatis.insa-lyon.fr"
   category "widget"
 ##
@@ -64,10 +64,6 @@ define BasicImageApplication
   connect refreshViewerOut.Out viewer.RefreshSlicer2
   connect runButton.BoxChange refreshViewerOut.In1
 
-#QUIT
-  set quitButton.Label "Quit"
-  set quitButton.In "quit"
-  
 
 #SAVE 
   new ImageWriter writer
@@ -89,9 +85,18 @@ define BasicImageApplication
   new CommandButton paramWindowCloseButton
   set paramWindowCloseButton.Label "Close"
   connect paramWindowCloseButton.Widget paramWindow.Widget2
-  connect paramWindowCloseButton.BoxChange paramWindow.WinHide
+  new MultipleInputs paramWindowHide
+  connect paramWindowHide.Out paramWindow.WinHide
+  connect paramWindowCloseButton.BoxChange paramWindowHide.In1
   connect paramButton.BoxChange paramWindow.BoxExecute
 
+#QUIT
+  set quitButton.Label "Quit"
+  connect quitButton.BoxChange mainWindow.WinHide
+  connect quitButton.BoxChange paramWindowHide.In2
+  set quitButton.In "reset"
+
+
 
 # INPUTS / OUTPUTS 
   new anyItkImagePointerRelay imageOut