]> SALOME platform Git repositories - modules/gui.git/blob - doc/salome/gui/locale/fr/LC_MESSAGES/using_pluginsmanager.po
Salome HOME
[bos #42871] Clipping plane remains applied after being deleted
[modules/gui.git] / doc / salome / gui / locale / fr / LC_MESSAGES / using_pluginsmanager.po
1 # SOME DESCRIPTIVE TITLE.
2 # Copyright (C)
3 # This file is distributed under the same license as the GUI package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, 2017.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: GUI 8.4.0\n"
10 "Report-Msgid-Bugs-To: \n"
11 "POT-Creation-Date: 2017-12-14 15:16+0300\n"
12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 "Language-Team: LANGUAGE <LL@li.org>\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=utf-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18 "Generated-By: Babel 2.0\n"
19
20 # fac521da706d4ebb9d6f86e06d860776
21 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:7
22 msgid "Extend SALOME gui functions using python plugins"
23 msgstr ""
24
25 # 6bedc75f15914ac78daf8d3b20834cda
26 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:9
27 msgid ":ref:`S1_SALOMEPLUGINS`"
28 msgstr ""
29
30 # 31ec006356a64dc6a113775f4ef7e5cf
31 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:10
32 msgid ":ref:`S2_SALOMEPLUGINS`"
33 msgstr ""
34
35 # 8f3cd214d2434d2d852eed5056139b3c
36 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:11
37 msgid ":ref:`S3_SALOMEPLUGINS`"
38 msgstr ""
39
40 # 29123f4f61fa4c5aa2e0d9616df2326c
41 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:12
42 msgid ":ref:`S4_SALOMEPLUGINS`"
43 msgstr ""
44
45 # 45b824aecfa946da9d283d1a3e66f0ba
46 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:13
47 msgid ":ref:`S5_SALOMEPLUGINS`"
48 msgstr ""
49
50 # b9426ec23eb64c7eaf689185424e8578
51 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:18
52 msgid "Objectives"
53 msgstr ""
54
55 # d0ea0c8031684393966faa00b62d1229
56 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:20
57 msgid ""
58 "The SALOME python plugin manager allows the end user to extend the "
59 "graphic interface of SALOME with custom functions written as python "
60 "modules. The screenshots below show the example of a tool that creates a "
61 "mesh from a set of geometrical parameters with the support of simple "
62 "graphical interface:"
63 msgstr ""
64
65 # b7c4d33464114470be65435be3379556
66 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:26
67 msgid "The default menu for plugins is \"Tool->Extensions\":"
68 msgstr ""
69
70 # a1d7cfbc27334752b1ae0e6c0df97af3
71 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:31
72 msgid ""
73 "In this example, the plugin provides a small interface to input the "
74 "parameters (not provided by the plugin manager):"
75 msgstr ""
76
77 # 2bef5c0de8de46e5a7fb7e3ffa302216
78 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:37
79 msgid "Then creates the mesh model:"
80 msgstr ""
81
82 # 8a6e226ea68a498d811f4a2eb0ec2069
83 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:42
84 msgid "In this example, the end user has to write:"
85 msgstr ""
86
87 # 448a48535b234a1bb4ddbf2642d80330
88 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:44
89 msgid ""
90 "the python script that creates the mesh from the parameters, using the "
91 "GEOM and SMESH python interface, as in a classic use case,"
92 msgstr ""
93
94 # 358ec05bec7e471499d8bb820c9db398
95 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:45
96 msgid "the dialog box in PyQt to input the parameters,"
97 msgstr ""
98
99 # 8868d589a2644d528f45e0dd372390ae
100 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:46
101 msgid "the file salome_plugins.py that declares the plugins."
102 msgstr ""
103
104 # 94f97b4bf9a449fda1b6073f0f074ebd
105 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:48
106 msgid "This page explains only the last point."
107 msgstr ""
108
109 # 8b28f1e86ee34aa694ca06ba10418c01
110 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:53
111 msgid "Principles"
112 msgstr ""
113
114 # 85e23efe12994b58a2d4e02f43a9c1cd
115 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:55
116 msgid "The general form of the file salome_plugins.py is:"
117 msgstr ""
118
119 # 903c22f87b0f473e8b0a998b81e3a503
120 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:78
121 msgid ""
122 "The procedure is to define a function that implements the plugin, and to "
123 "declare this function to the plugins manager. The implementation can be "
124 "very variable. It is advisable to consider this function as a proxy to "
125 "your code that you can manage in a python package installed in the "
126 "standard SALOME python directories."
127 msgstr ""
128
129 # 46702664320040e29ff11d8ffebbaeb9
130 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:84
131 msgid ""
132 "In this code, the variable \"context\" is automatically transmitted by "
133 "the pluginmanager when you request the plugin. This context provides you "
134 "with at least the following attributes:"
135 msgstr ""
136
137 # cb906cc66148475ea939d85fb1d2941a
138 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:94
139 msgid ""
140 "Once written, this script salome_plugin.py has to be moved to a specific "
141 "place on your filesystem where SALOME is programmed to search for "
142 "plugins. The possible directories are (in search order):"
143 msgstr ""
144
145 # 311b4fba4836457a8186c3226c874d87
146 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:98
147 msgid ""
148 "The directory <\\*_ROOT_DIR>/share/salome/plugins/<module_name>, when "
149 "this plugin is developped in the framework of a SALOME module "
150 "(<\\*_ROOT_DIR> is the root installation directory of the module, and "
151 "<module_name> is the name of the module in low letters)."
152 msgstr ""
153
154 # d09ccefa4f01400ba7f1c33f0c2025d6
155 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:99
156 msgid "The directory ~/.config/salome/Plugins for personnal end user plugins."
157 msgstr ""
158
159 # 275f37e4ed81451aa8746d3e6730ec89
160 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:100
161 msgid ""
162 "Any path in the shell variable SALOME_PLUGINS_PATH (each path must be "
163 "separated by a comma \":\" for unix and \";\" for windows). This variable"
164 " should be set and exported before running the SALOME application."
165 msgstr ""
166
167 # 9415324d8c644fc3b2c1e13e97c526ed
168 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:105
169 msgid "A complete example"
170 msgstr ""
171
172 # 227244433b9447b99930f0c45faf1d3a
173 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:107
174 msgid ""
175 "Suppose that you write a SALOME script that creates a trihedron for each "
176 "of your studies (a simple and standard SALOME script, that every end user"
177 " is capable to write if he reads the documentation and follows the "
178 "training course):"
179 msgstr ""
180
181 # 9801da957d8548cc92d225cacd647d9b
182 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:133
183 msgid "The job consists in creating the file salome_plugins.py as follows:"
184 msgstr ""
185
186 # b20c95556cd34b73884767d7d7ab9949
187 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:163
188 msgid ""
189 "Move this script in the directory ~/.config/salome/Plugins, run SALOME "
190 "and enjoy your new function."
191 msgstr ""
192
193 # 5bbb2f7c6dd34fef84b3f5be514e4161
194 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:168
195 msgid "How to select an object of the object browser"
196 msgstr ""
197
198 # 31a077eed83d4b9ebc8576e94aa2a3de
199 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:170
200 msgid ""
201 "Sometimes it can be useful to retrieve an object of the object browser to"
202 " perform an action on it, for example, to select a mesh and display some "
203 "information related to it."
204 msgstr ""
205
206 # bb78ad76697d4e9aa77791f28b3581bb
207 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:173
208 msgid "Some important methods and objects to use are as follows:"
209 msgstr ""
210
211 # df343d6c2f054b7aae25905a24a48ad6
212 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:175
213 msgid ""
214 "context.sg.getObjectBrowser():  to connect the signal event "
215 "`selectionChanged()` to a custom slot"
216 msgstr ""
217
218 # 6bd95666e09242968766e619f82671bd
219 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:176
220 msgid ""
221 "context.salome.sg.getAllSelected(): to get the list of selected object in"
222 " the object browser"
223 msgstr ""
224
225 # 4107479424604782afe3763a57e74cda
226 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:177
227 msgid ""
228 "objId = context.salome.sg.getSelected(0): to get the first selected "
229 "object in the object browser"
230 msgstr ""
231
232 # 941477c6f92e432ab3615243eda78e28
233 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:178
234 msgid ""
235 "salomeObj = context.salome.study.FindObjectID(objId).GetObject(): to "
236 "retrieve the salome object from selection. It can be a GEOM, SMESH, or "
237 "any other module object."
238 msgstr ""
239
240 # 0fc2ff4710624da0b67fa094afe6c4f0
241 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:180
242 msgid ""
243 "If it is a mesh, then it is possible to call methods of the "
244 "SMESH::SMESH_Mesh interface on the object, for example GetShapeToMesh(). "
245 "If it is not a mesh, this call will raise an exception. So it is possible"
246 " to write the code retrieving the shape a mesh is built on in the "
247 "following way:"
248 msgstr ""
249
250 # 9efdb1c1d2fd430d9c22028cf04c594a
251 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:194
252 msgid ""
253 "An example of those methods is available with the demo examples. See the "
254 "next chapter :ref:`S5_SALOMEPLUGINS`."
255 msgstr ""
256
257 # 43d1764cfa014448af15e2670a728097
258 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:200
259 msgid "Other examples"
260 msgstr ""
261
262 # 961e1f6f48cb444b8c00461428403355
263 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:202
264 msgid ""
265 "The GUI module provides you with some basic demo examples located in the "
266 "directory src/SalomeApp/pluginsdemo of the source space and installed in "
267 "the directory $GUI_ROOT_DIR/share/salome/plugins/gui/demo."
268 msgstr ""
269
270 # fdff83713d974345aa6dede472940f72
271 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:206
272 msgid ""
273 "These examples are automatically installed when you install the GUI but "
274 "are not activated. To activate the plugins, edit the file "
275 "$GUI_ROOT_DIR/share/salome/plugins/gui/demo/salome_plugins.py and turn "
276 "the variable DEMO_IS_ACTIVATED to True."
277 msgstr ""
278
279 # 5fdf88deea164af2b094fb7f845ea94e
280 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:208
281 msgid "The demo examples are:"
282 msgstr ""
283
284 # f869117eeca44e0eac45eeee21e781de
285 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:210
286 msgid "**trihedron:** create a trihedron and display it with fit on the size"
287 msgstr ""
288
289 # ddc5d778d7164af28339ba0ee400a56e
290 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:211
291 msgid ""
292 "**tube_shapewithgui:** create a geom object from parameters given by a "
293 "dialog box."
294 msgstr ""
295
296 # dc888994da8744189e62959b71d3446f
297 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:212
298 msgid ""
299 "**tube_meshwithgui:** create a mesh object from parameters given by a "
300 "dialog box. This illustrates that a plugin can work with more than one "
301 "SALOME module."
302 msgstr ""
303
304 # c826fed95a1649139f958591d1eefdc6
305 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:213
306 msgid ""
307 "**tube_shapewithguiAndPreview:** same than tube_shapewithgui but with an "
308 "additionnal preview function (button apply in the dialog box)."
309 msgstr ""
310
311 # fb48766a628049c49b36a42e7d41ad89
312 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:214
313 msgid "**runSalomeShellSession:** run a SALOME prepared shell session in a xterm."
314 msgstr ""
315
316 # 9d68bcbfa8364e6e9b121beb7904e6f7
317 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:217
318 msgid ""
319 "**minmax:** computes the min and max values of a control on a selected "
320 "mesh."
321 msgstr ""
322
323 # 53ab7eb332db4706bc09a0b56aa5c91a
324 #: ../../../../../../SRC/GUI_SRC/doc/salome/gui/input/using_pluginsmanager.rst:216
325 msgid ""
326 "This plugin is available in the SMESH module only. To activate it, edit "
327 "the file $GUI_ROOT_DIR/share/salome/plugins/gui/demo/smesh_plugins.py and"
328 " turn the variable DEMO_IS_ACTIVATED to True."
329 msgstr ""
330