]> Creatis software - bbtk.git/blob - packages/toolsbbtk/bbs/appli/GUIPlugPackage.bbg
Feature #1774
[bbtk.git] / packages / toolsbbtk / bbs / appli / GUIPlugPackage.bbg
1 # ---------------------------------------------------------------------
2 #
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
4 #                        pour la SantÈ)
5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
6 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
7 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
8 #
9 #  This software is governed by the CeCILL-B license under French law and
10 #  abiding by the rules of distribution of free software. You can  use,
11 #  modify and/ or redistribute the software under the terms of the CeCILL-B
12 #  license as circulated by CEA, CNRS and INRIA at the following URL
13 #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
14 #  or in the file LICENSE.txt.
15 #
16 #  As a counterpart to the access to the source code and  rights to copy,
17 #  modify and redistribute granted by the license, users are provided only
18 #  with a limited warranty  and the software's author,  the holder of the
19 #  economic rights,  and the successive licensors  have only  limited
20 #  liability.
21 #
22 #  The fact that you are presently reading this means that you have had
23 #  knowledge of the CeCILL-B license and that you accept its terms.
24 # ------------------------------------------------------------------------ */
25
26
27 # ----------------------------------
28 # - BBTKGEditor v 1.3 BBG BlackBox Diagram file
29 # - /home/daniel/Documents/TrabajosCreaTools/Proyectos/PlugPackageBBS/GUIPlugPackage.bbg
30 # ----------------------------------
31
32 APP_START
33 CATEGORY:Core Script
34 DESCRIPTION:Plug Package Script
35 AUTHOR:Daniel Gonzalez
36 COMPLEXBOX:FALSE
37 BOXES:10
38 BOX
39 wx:DirectorySelector:directorySelect
40 ISEXEC:TRUE
41 -53.953613:46.374504:-900.000000
42 17.221387:36.374504:-900.000000
43 PORT
44 Message:"Select the location of the package"
45 PORT
46 Title:"Select Package"
47 FIN_BOX
48 BOX
49 wx:LayoutLine:Layout
50 ISEXEC:TRUE
51 -86.305460:-39.244838:-900.000000
52 -28.745460:-49.244838:-900.000000
53 PORT
54 WinHeight:"200"
55 PORT
56 WinTitle:"Plug Package"
57 PORT
58 WinWidth:"500"
59 FIN_BOX
60 BOX
61 wx:OutputText:title
62 ISEXEC:FALSE
63 -112.774918:11.953102:-900.000000
64 -67.199918:1.953102:-900.000000
65 PORT
66 In:"Plug package directory&&2P&& "
67 FIN_BOX
68 BOX
69 std:ExecSystemCommand:execution
70 ISEXEC:FALSE
71 7.470713:-54.422091:-900.000000
72 78.645713:-64.422091:-900.000000
73 FIN_BOX
74 BOX
75 wx:CommandButton:plugButton
76 ISEXEC:FALSE
77 -15.909874:12.084440:-900.000000
78 55.265126:2.084440:-900.000000
79 PORT
80 In:"print $lineToExecute.Out$;"
81 PORT
82 Label:"Plug it!"
83 FIN_BOX
84 BOX
85 std:ConcatStrings:lineToExecute
86 ISEXEC:FALSE
87 15.812930:-18.789154:-900.000000
88 86.987930:-28.789154:-900.000000
89 PORT
90 In1:"bbPlugPackage "
91 FIN_BOX
92 BOX
93 wx:OutputText:pathText
94 ISEXEC:FALSE
95 -64.000751:12.249860:-900.000000
96 -18.425751:2.249860:-900.000000
97 FIN_BOX
98 BOX
99 std:StringSelect:resultString
100 ISEXEC:FALSE
101 -2.976464:-81.624410:-900.000000
102 42.598536:-91.624410:-900.000000
103 PORT
104 In0:"Packaged Successfully Plugged"
105 PORT
106 In1:"An error occurred while plugging the package. Please check the command line."
107 PORT
108 In2:"An error 2 occurred while plugging the package. Please check the command line."
109 PORT
110 In3:"An error 3 occurred while plugging the package. Please check the command line."
111 PORT
112 In4:"An error 4 occurred while plugging the package. Please check the command line."
113 PORT
114 In5:"An error 5 occurred while plugging the package. Please check the command line."
115 PORT
116 In6:"An error 6 occurred while plugging the package. Please check the command line."
117 PORT
118 In7:"An error 7 occurred while plugging the package. Please check the command line."
119 PORT
120 In8:"An error 8 occurred while plugging the package. Please check the command line."
121 PORT
122 In9:"An error 9 occurred while plugging the package. Please check the command line."
123 FIN_BOX
124 BOX
125 wx:LayoutLine:resultDialog
126 ISEXEC:FALSE
127 -45.213908:-131.484121:-900.000000
128 12.346092:-141.484121:-900.000000
129 PORT
130 WinDialog:"true"
131 PORT
132 WinHeight:"100"
133 PORT
134 WinTitle:"Result"
135 PORT
136 WinWidth:"400"
137 FIN_BOX
138 BOX
139 wx:OutputText:textLabel
140 ISEXEC:FALSE
141 -21.213212:-107.294445:-900.000000
142 24.361788:-117.294445:-900.000000
143 FIN_BOX
144 CONNECTIONS:13
145 CONNECTION
146 title:Widget:Layout:Widget1
147 NumberOfControlPoints:0
148 CONNECTION
149 lineToExecute:Out:execution:In
150 NumberOfControlPoints:0
151 CONNECTION
152 plugButton:Widget:Layout:Widget3
153 NumberOfControlPoints:0
154 CONNECTION
155 directorySelect:Out:lineToExecute:In2
156 NumberOfControlPoints:0
157 CONNECTION
158 directorySelect:Out:pathText:In
159 NumberOfControlPoints:0
160 CONNECTION
161 pathText:Widget:Layout:Widget2
162 NumberOfControlPoints:0
163 CONNECTION
164 plugButton:BoxChange:execution:BoxExecute
165 NumberOfControlPoints:0
166 CONNECTION
167 textLabel:Widget:resultDialog:Widget1
168 NumberOfControlPoints:0
169 CONNECTION
170 plugButton:BoxChange:resultDialog:BoxExecute
171 NumberOfControlPoints:0
172 CONNECTION
173 plugButton:BoxChange:textLabel:BoxExecute
174 NumberOfControlPoints:0
175 CONNECTION
176 execution:Return:resultString:In
177 NumberOfControlPoints:0
178 CONNECTION
179 resultString:Out:textLabel:In
180 NumberOfControlPoints:0
181 CONNECTION
182 plugButton:BoxChange:resultString:BoxExecute
183 NumberOfControlPoints:0
184 APP_END