Salome HOME
Correct documentation bugs, adapt for 'Read The Docs' theme (bos #18858)
[modules/shaper.git] / doc / gui / Introduction.rst
1 \r
2 .. _introduction:\r
3 \r
4 Introduction to SHAPER\r
5 ======================\r
6 \r
7 SHAPER module of SALOME is destined for:\r
8 \r
9 - import and export of geometrical models in IGES, BREP, STEP and XAO formats;\r
10 - parametric construction of geometrical objects using a wide range of functions:\r
11     \r
12   - creation of complex 2D sections using :ref:`sketchPlugin` with consequent extrusion or revolution (see :ref:`featuresPlugin`);\r
13   - construction of model using primitives defined in :ref:`primitivesPlugin`;\r
14   - usage of Boolean operations (see :ref:`featuresPlugin`);\r
15   \r
16 - viewing geometrical objects in the OCC viewer;\r
17 - transformation of geometrical objects using various algorithms.\r
18 \r
19 It is possible to easily set :ref:`parameter_usage` predefined to be used as arguments when objects are created.\r
20 \r
21 SHAPER module preferences are described in the :ref:`preferences` section of SALOME Help.\r
22 \r
23 Almost all SHAPER  module functionalities are accessible via Python Interface.\r
24 \r
25 SHAPER module works with one study containing several documents:\r
26 \r
27 - partset\r
28 - one or several parts.\r
29 \r
30 Only one document can be active. In complicated models partset consists of several parts. Parts in partset may be copied, positioned relatively to each other, or simply translated.\r
31   \r
32 A new study contains only a partset with 7 default constructions, which cannot be deleted:\r
33   \r
34 - one point **Origin** coinciding with the origin of the coordinate system;\r
35 - three axes **OX**, **OY**, **OZ**  coinciding with coordinate axes;\r
36 - three planes **YOZ**, **XOZ**, **XOY**  coinciding with coordinate planes.    \r
37 \r
38 Only  points, axis, planes (see  :ref:`constructionPlugin`) and sketches (see  :ref:`sketchPlugin`) can be added into Partset to be used in any part later.\r
39 :ref:`parameter_usage` can be used both in Partset and any Part.\r
40     \r
41 A new Part can be created as described in :ref:`partPlugin`.\r
42 \r
43 Double click or pop-up menu can be used to activate existing document.\r
44 \r
45 Application desktop\r
46 -------------------\r
47 \r
48 The main window of the application consists of the following components:\r
49 \r
50 - :ref:`main_menu`;\r
51 - :ref:`doc_windows`;\r
52 - :ref:`viewer`;\r
53 - :ref:`toolbar`;    \r
54 - status bar.    \r
55 \r
56 .. figure:: images/main_window.png\r
57    :align: center\r
58 \r
59    Main window of SHAPER module\r
60   \r
61 .. _main_menu:\r
62 \r
63 Main menu \r
64 ---------\r
65 \r
66 Main menu provides access to all commands of the application.\r
67 \r
68 .. figure:: images/main_menu.png\r
69    :align: center\r
70 \r
71    Main menu\r
72 \r
73 Main menu includes standard Salome items:\r
74 \r
75 - File;\r
76 - Edit;\r
77 - View;\r
78 - Tools;   \r
79 - Window;\r
80 - Help;\r
81     \r
82 and items specific for SHAPER module:\r
83 \r
84 - Part (see :ref:`partPlugin`);\r
85 - Sketch (see :ref:`sketchPlugin`);\r
86 - Construction (see :ref:`constructionPlugin`);\r
87 - Build (see :ref:`buildPlugin`);\r
88 - Primitives (see :ref:`primitivesPlugin`);\r
89 - GDML (see :ref:`gdmlPlugin`);\r
90 - Features (see :ref:`featuresPlugin`);  \r
91 - Macros. \r
92 \r
93  .. _toolbar:  \r
94 \r
95 SHAPER toolbar\r
96 --------------\r
97 \r
98 Application toolbar contains:\r
99 \r
100 - standard toolbar;\r
101 - modules toolbar;\r
102 - SHAPER toolbar.\r
103 \r
104 .. figure:: images/toolbar.png\r
105    :align: center\r
106 \r
107    Toolbars\r
108   \r
109 SHAPER toolbar duplicates the main menu and  provides access to all commands of the application.\r
110 \r
111 SHAPER toolbar is separated into sections:\r
112 \r
113 - Part;\r
114 - Movement;\r
115 - Measurement;\r
116 - Sketch;\r
117 - Construction;\r
118 - Build;\r
119 - Primitives;\r
120 - GDML;\r
121 - Features;\r
122 - Boolean;\r
123 - Collections;    \r
124 - Fillet;  \r
125 - Macros.  \r
126 \r
127 Visibility of SHAPER toolbar sections is managed using *View -> Toolbar* :ref:`main_menu` item or toolbar pop-up menu.\r
128 \r
129 .. _doc_windows:\r
130 \r
131 Dock windows\r
132 ------------\r
133 \r
134 Standard dock windows are: \r
135 \r
136 - :ref:`object_browser`\r
137 - :ref:`inspection_panel`\r
138 - :ref:`hidefaces_panel`\r
139 - :ref:`python console`\r
140 - :ref:`property_panel`\r
141 \r
142 Dock windows can be placed in three dock areas using drag-and-drop:\r
143   \r
144 - left, \r
145 - right, \r
146 - bottom.\r
147 \r
148 By default Object browser window is placed at the left dock area, Inspection panel at the right dock area and Python console at the bottom dock area of the main window.\r
149 \r
150 Property Panel is hidden.\r
151 \r
152 Property Panel is shown on operation start in left dock area of the main window by default.\r
153 \r
154 If Object browser is shown at the same side then they will be tabbed.\r
155 \r
156 Each dock window can be closed using **Cross** window button and opened again using a corresponding command from *View - Windows* :ref:`main_menu` or alternatively using pop-up menu.\r
157 \r
158 .. figure:: images/popup_menu.png\r
159    :align: center\r
160 \r
161    Pop-up menu for visibility of windows and toolbars\r
162 \r
163 .. _object_browser: \r
164 \r
165 Object browser\r
166 ^^^^^^^^^^^^^^\r
167 \r
168 Object browser contains all documents created in the current study. \r
169 \r
170 Each document includes standard branches where created objects are placed.\r
171 \r
172 Documents with branches are shown in Tree View.\r
173 \r
174 .. figure:: images/object_browser.png\r
175    :align: center\r
176 \r
177    **Object browser**: Partset active\r
178 \r
179 Partset includes three branches:\r
180 \r
181 - Parameters;\r
182 - Constructions;\r
183 - Features    \r
184 \r
185 Part includes the following branches:\r
186 \r
187 - Parameters;\r
188 - Constructions;\r
189 - Results;\r
190 - Fields;\r
191 - Groups;   \r
192 - Features.    \r
193 \r
194 New part contains only 3 empty branches:\r
195  \r
196 - Parameters;\r
197 - Constructions;\r
198 - Results.\r
199 \r
200 Features are placed one after another in the active document with default names and their results are placed into the corresponding branch.\r
201 \r
202 Examples of default names assigned automatically for :ref:`box_feature` are:\r
203  \r
204 * **Box_1**, **Box_2**, ... for Feature;\r
205 * **Box_1_1**, **Box_2_1**, ... for Result.\r
206 \r
207 Note, that a default branch is added into Tree View when the first feature of this type is created.\r
208 \r
209 Note, that the result used in feature as argument is removed.\r
210 \r
211 This child result can be restored using **Recover** feature.\r
212 \r
213 Each feature, result, construction, group, field, parameter can be renamed using *Rename* pop-up menu command.\r
214 \r
215 .. figure:: images/popup_menu_object_browser_feature.png\r
216    :align: center\r
217 \r
218    **Feature** pop-up menu\r
219 \r
220 .. figure:: images/popup_menu_object_browser_result.png\r
221    :align: center\r
222 \r
223    **Result** pop-up menu\r
224 \r
225 .. figure:: images/popup_menu_object_browser_construction.png\r
226    :align: center\r
227 \r
228    **Construction** pop-up menu\r
229 \r
230 The order of features can be changed using *Move to the end* and *Move to the end and split* pop-up menu commands. They work only for Group features. The selected group or several groups will be moved to the end of features list. The *Move to the end and split* also splits the resulting group in several groups: one group per one selection.\r
231 \r
232 Folders can be used to arrange long Tree View for features.\r
233 \r
234 .. figure:: images/object_browser_folder.png\r
235    :align: center\r
236 \r
237    **Object browser** with folder Dome: Part_1 active\r
238 \r
239 *Insert a folder before* pop-up menu command creates a new empty folder before the selected feature. The folder can be renamed.\r
240 \r
241 Features placed after/before the created folder can be moved into the folder using *Move into the previous folder* / *Move into the next folder* pop-up menu command.\r
242 \r
243 This allows to decrease the length of feature list.\r
244 \r
245 Features can be removed from the folder using *Move out before the folder* / *Move out after the folder* pop-up menu command.\r
246 \r
247 *Clean history* pop-up menu command looks for features that do not participate in other features.\r
248 \r
249 **Clean history** dialog box shows a list of unused features. After confirmation by click **Yes** button unused features are removed.\r
250 \r
251 .. figure:: images/clean_history.png\r
252    :align: center\r
253 \r
254    **Clean history** dialog box\r
255 \r
256 *Select result* and *Select parent feature* pop-up menu commands help to navigate along Tree View.\r
257 \r
258 A feature and its result can be deleted using *Delete* pop-up menu command.\r
259 \r
260 Note that all features using the removed feature and their results will be removed simultaneously.\r
261 \r
262 **Delete feature** dialog box shows the list of features to be removed. After confirmation by click **Yes** button all these features are removed.\r
263 \r
264 .. figure:: images/delete_feature.png\r
265    :align: center\r
266 \r
267    **Delete feature** dialog box\r
268    \r
269 .. _property_panel:\r
270 \r
271 Property panel\r
272 ^^^^^^^^^^^^^^\r
273 \r
274 .. |ok_btn| image:: images/button_ok.png\r
275 .. |cancel_btn| image:: images/button_cancel.png\r
276 .. |help_btn| image:: images/button_help.png\r
277 \r
278 Property panel consists of two parts:\r
279 \r
280 - controls a container for input of parameters for the current operation;\r
281 - buttons panel containing standard buttons:\r
282  \r
283    | |ok_btn| **Ok/Apply** executes operation with defined parameters,\r
284    | |cancel_btn| **Cancel/Close** calls **Abort operation** dialog box to confirm  operation abort, \r
285    | |help_btn| **Help** calls User's guide opened on page describing the current operation.\r
286 \r
287    .. figure:: images/abort_operation.png\r
288       :align: center\r
289      \r
290       **Abort operation** dialog box\r
291 \r
292 |ok_btn| **OK/Apply**  button is disabled if not all input parameters are defined or some errors are found. Error is shown as tooltip and in status bar.\r
293 \r
294 .. _inspection_panel: \r
295 \r
296 Inspection panel \r
297 ^^^^^^^^^^^^^^^^\r
298 \r
299 Inspection panel provides the list of types and quantities of all topological entities, composing the selected result, construction or feature.\r
300 \r
301 .. figure:: images/inspection_panel.png\r
302    :align: center\r
303 \r
304    **Inspection panel** for default Box\r
305 \r
306 **Object** displays name of the selected result, construction  or feature.\r
307 \r
308 **Type** characterizes the whole shape.\r
309    \r
310 The information about Point, Axis or Edge  additionally shows coordinates of point / end points.\r
311 \r
312 .. figure:: images/inspection_panel_line.png\r
313    :align: center\r
314 \r
315    **Inspection panel** for Axis\r
316    \r
317 The information about  Plane, Face additionally shows coordinates of center point and direction of normal.\r
318 \r
319 .. figure:: images/inspection_panel_face.png\r
320    :align: center\r
321 \r
322    **Inspection panel** for Face \r
323 \r
324 .. _hidefaces_panel:\r
325 \r
326 Hide Faces panel\r
327 ^^^^^^^^^^^^^^^^\r
328 \r
329 **Hide Faces** panel makes possible to hide temporary faces of any displayed object. **Hide Faces** panel looks like following:\r
330 \r
331 .. figure:: images/hide_faces_panel.png\r
332    :align: center\r
333 \r
334    **Hide Faces** panel\r
335 \r
336 - If this panel is activated it "listens" user selection.\r
337 - If a face is selected then its name will be shown in the panel's list and hidden in the viewer. \r
338 - If user selects a group of faces (or at least a one face of this group) then whole group will be hidden and also all faces from all objects referenced by this group.\r
339 - If user will display the hidden group again (by a show operation) then the group will be removed from Hide Faces list and visibility of all referenced faces will be restored.\r
340 \r
341 Also it is possible do not to hide faces, but make them transparent. For this purpose **"Transparent"** check-box can be used. Value of the transparency can be changed in **Visualization** tab of **Preferences** dialog box.\r
342 Closing of **Hide Faces** panel restores visibility state of all objects. If it is necessary to deactivete the **Hide Faces** panel (preserving the current display state) then user has to press **"Esc"** button.\r
343 \r
344 .. _python console:\r
345 \r
346 Python console\r
347 ^^^^^^^^^^^^^^\r
348 \r
349 Python console interpreters Python commands entered manually.\r
350 \r
351 In particular, it is possible to load the python script:\r
352 \r
353 *execfile(r"/dn48/newgeom/data/example.py")*\r
354 \r
355 Pop-up menu gives the possibility to:\r
356 \r
357 - Copy the selected text to clipboard;\r
358 - Paste the text from clipboard to Python console ;\r
359 - Clear Python console;\r
360 - Dump commands from console into the specified file;\r
361 - Start/Stop writing log into the specified file.    \r
362  \r
363 .. figure:: images/python_console_popup.png\r
364    :align: center\r
365 \r
366    Pop-up menu of Python console\r
367 \r
368 .. _viewer:\r
369 \r
370 Viewer\r
371 ------\r
372 \r
373 The application supports one instance of OCC 3D viewer and is able to show only one 3D space.\r
374 \r
375 This 3D space can be represented in several view windows. New view window can be created using **Clone view** button in viewer toolbar.\r
376 \r
377 Each view windows shows its own point of view on the 3D scene.\r
378 \r
379 This point of view can be modified using viewer commands: **Panning**, **Zooming**, **Scaling**, etc.\r
380 \r
381 .. figure:: images/2_viewers.png\r
382    :align: center\r
383 \r
384    Two view windows\r
385 \r
386 The description of OCC 3D Viewer architecture and functionality is provided in GUI module user's guide in chapter **OCC 3D Viewer**.\r
387 \r
388 .. _parameter_usage:\r
389 \r
390 Parameters \r
391 ----------\r
392 \r
393 Model parametrization can be done using parameters.\r
394 \r
395 A parameter can be created in the active partset or part by:\r
396 \r
397 - :ref:`parameter`;\r
398 - :ref:`parameters`;\r
399 - :ref:`parameter_expression`.\r
400 \r
401 Any argument in features can be defined as parameter or expression containing parameters.\r
402 \r
403 The list of features using parameters is given in **Parameters** dialog box:\r
404 \r
405  .. figure:: images/parameters_feature.png\r
406    :align: center\r
407 \r
408    Parameters dialog box\r
409   \r
410 If a parameter value is changed, then all features where it is used are rebuilt.\r
411 \r
412 A parameter name should be unique in the active document.\r
413 \r
414 However, partset and part can have parameters with the same name. If parameter names in Partset and Part are identical, then Part parameter has a higher priority and its value will be used in the features of this part.\r
415 \r
416 In contrast to features (see :ref:`object_browser`), there is an additional option when parameters are deleted.   \r
417 \r
418 .. figure:: images/delete_parameter.png\r
419    :align: center\r
420 \r
421    Delete parameter\r
422 \r
423 After clicking **Replace** button, the selected parameter is removed but its parent parameters and features are not removed. The deleted parameter is replaced by its value.\r
424 \r
425 .. _parameter_expression:\r
426 \r
427 Create parameter on fly\r
428 ^^^^^^^^^^^^^^^^^^^^^^^\r
429 \r
430 Parameter can be created during feature creation simply by writing *variable=expression* in any editbox.\r
431 \r
432 After feature validation a new parameter with the given name **variable** and value equal to the evaluated expression appears in object browser under **Parameters** in the active partset or part.\r
433 \r
434 .. _preferences:\r
435 \r
436 SHAPER preferences\r
437 ------------------\r
438 \r
439 Description of General application preferences and **Preferences** dialog box is provided in GUI module user's guide in chapter **Setting Preferences**.\r
440 \r
441 SHAPER preferences define visualization of objects, visualization during selection, edition. New preferences can be used right after modification or later after activation of SHAPER module.\r
442 \r
443 To call **Preferences** dialog box:\r
444 \r
445 #. select in the Main Menu *File - > Preferences* item or\r
446 #. use  **Ctrl+P** shortcut.\r
447 \r
448 SHAPER preferences contains the following tabs:\r
449 \r
450 - :ref:`visualization_preferences`;\r
451 - :ref:`plugins_preferences`;\r
452 - :ref:`shortcuts_preferences`;\r
453 - :ref:`windows_preferences`.\r
454 - :ref:`sketch_preferences`.\r
455 - :ref:`viewer_preferences`.\r
456 \r
457 Visualization tab is activated by default when **Preferences** dialog box is opened in the active SHAPER module.\r
458 \r
459 Other tabs are activated by click on tab header.\r
460   \r
461 .. _visualization_preferences:\r
462 \r
463 Visualization tab\r
464 ^^^^^^^^^^^^^^^^^\r
465 \r
466 This tab defines presentation of objects displayed in OCC 3D viewer.\r
467 \r
468 .. figure:: images/visualization_preferences.png\r
469    :align: center\r
470 \r
471    **Preferences**: Visualization tab\r
472 \r
473 **Input fields**:\r
474 \r
475 - **Selection color** defines a color for selected objects;\r
476 - **Result color** selects default shading color for objects from **Results** branch;\r
477 - **Group color** selects default color for objects from **Groups** branch;\r
478 - **Construction color** selects default color for objects from **Constructions** branch;\r
479 - **Part color** selects default color for parts shown in Partset;  \r
480 - **Field color** selects default color for objects from **Fields** branch;\r
481 - **Body deflection coefficient** defines default deflection coefficient for objects from **Results** branch. A smaller coefficient provides better quality of a shape in the viewer;\r
482 - **Construction deflection coefficient** defines default deflection coefficient for objects from **Constructions** branch. A smaller coefficient provides better quality of a shape in the viewer;\r
483 - **Reference shape wireframe color in operation** selects default color used for wireframe visualization of objects used in active operation;\r
484 - **Result shape wireframe color in operation** selects default color used for wireframe visualization of result in active operation. Click **See preview** button to show result;\r
485 - **Multi selector item color in operation** selects default color used for visualization of objects selected in property panel to distinguish them among all objects used in active operation;\r
486 - **Color of removed feature in operation** selects default color used for visualization of sketch entities to be removed during **Trim/Split** operations;\r
487 - **Color of sketch plane** selects default shading color for sketch plane;\r
488 - **Hidden faces transparency** defines default transparency value for hidden faces;\r
489 - **Dimension arrow size**  defines default size of arrows for extension line showing dimensional constraint;  \r
490 - **Dimension font** defines font used for value of dimensional constraint;\r
491 - **Dimension value size**  defines default size of value for dimensional constraint;\r
492 - **Sketch dimension color**  defines default color of dimensional constraint; \r
493 - **Construction plane color** selects default color for Construction planes;  \r
494 - **Sketch entity color** selects default color for sketch objects;\r
495 - **Sketch external entity color** selects default color for external objects selected as reference during sketch creation/edition;\r
496 - **Sketch auxiliary entity color** selects default color for sketch auxiliary objects;\r
497 - **Sketch overconstraint color** selects default color for a sketch with redundant constraints;\r
498 - **Sketch fully constraint color** selects default color for a sketch with zero degrees of freedom.\r
499   \r
500 To redefine any color click on the corresponding line to access **Select color** dialog box\r
501 \r
502 .. figure:: images/select_color.png\r
503    :align: center\r
504 \r
505    **Preferences**: **Select color** dialog box\r
506    \r
507 Preferences for sketch are applicable  during sketch creation/edition operation.\r
508    \r
509 .. _plugins_preferences:\r
510    \r
511 Plugins tab\r
512 ^^^^^^^^^^^\r
513 Plugins tab defines folders where plugins and resources are located.\r
514 \r
515 .. figure:: images/plugins_preferences.png\r
516    :align: center\r
517 \r
518    **Preferences**: Plugins tab\r
519 \r
520 **Input fields**:\r
521 \r
522 - **Default path** selects default folder where plugins are located. Click on **Open** button opens standard **Find directory** dialog box to navigate to desired folder;\r
523 \r
524 - **Import initial directory** selects default folder where resources are located. Click on **Open** button opens standard **Find directory** dialog box to navigate to desired folder.\r
525 \r
526 .. figure:: images/open_button.png\r
527    :align: center\r
528 \r
529    **Open** button\r
530 \r
531 .. figure:: images/find_directory.png\r
532    :align: center\r
533 \r
534    **Find directory** dialog box\r
535     \r
536    \r
537 .. _shortcuts_preferences:\r
538    \r
539 Shortcuts tab\r
540 ^^^^^^^^^^^^^\r
541 \r
542 Shortcuts tab defines shortcut keys for different operations.\r
543 \r
544 .. figure:: images/shortcuts_preferences.png\r
545    :align: center\r
546 \r
547    **Preferences**: Shortcuts tab\r
548    \r
549 - **Add parameter in parameters manager dialog** defines shortcut keys for adding parameter in parameters manager dialog box.\r
550    \r
551 .. _windows_preferences:\r
552 \r
553 Windows tab\r
554 ^^^^^^^^^^^\r
555 \r
556 Windows tab contains definitions for the module windows management.\r
557 \r
558 .. figure:: images/windows_preferences.png\r
559    :align: center\r
560 \r
561    **Preferences**: Windows tab\r
562 \r
563 - **Use HideFaces panel in operation** if the checkbox is checked then HideFaces panel will be launched automatically on launching an operation where using of this panel is considered.\r
564 \r
565 .. _sketch_preferences:\r
566 \r
567 Sketch tab\r
568 ^^^^^^^^^^\r
569 \r
570 Sketch tab defines properties of coordinate planes shown for selection of sketch plane when no convenient objects are shown in OCC 3D viewer.\r
571 \r
572 .. figure:: images/sketch_preferences.png\r
573    :align: center\r
574 \r
575    **Preferences**: Sketch tab\r
576 \r
577 **Input fields**:\r
578 \r
579 - **Size** defines size of coordinate planes;\r
580 - **Thickness**  defines thickness of coordinate plane borders; \r
581 - **Rotate to plane when selected** check-box turns on/off automatic switch the viewer to the top view for the selected sketch plane.  \r
582 - **Angular tolerance** defines defines an angular tolerance for automatic creation of horizontal and vertical constraints;\r
583 - **Default spline weight** defines default weight for B-spline nodes during creation. The default value can be changed by editing of the spline;\r
584 - **Cursor for sketch operation** defines a cursor which indicates a launched sketcher sub-operation.\r
585 - **Create sketch entities by dragging** defines a style of sketch etities creation. It concerns creation of lines, rectangles, circles, arcs, ellipses, elliptic arcs. If it is switched ON then points of objects have to be defined by mouse press - mouse move - mouse release. Otherwise every point of an object has to be defined by mouse click;\r
586    \r
587 .. _viewer_preferences:\r
588    \r
589 Viewer tab\r
590 ^^^^^^^^^^\r
591 \r
592 Viewer tab defines selection in OCC 3D viewer properties. \r
593 \r
594 .. figure:: images/viewer_preferences.png\r
595    :align: center\r
596 \r
597    **Preferences**: Viewer tab   \r
598 \r
599 **Input fields**:\r
600 \r
601 - **Default Selection** defines objects to be selected by mouse click in OCC 3D viewer:\r
602 \r
603   - **Faces** check-box turns on/off selection of faces;\r
604   - **Edges** check-box turns on/off selection of edges;\r
605   - **Vertices** check-box turns on/off selection of vertices;\r
606 \r
607 - **Selection sensitivity** defines size of area around object in pixels, in which  mouse click selects object inside this area:\r
608 \r
609   - **Vertex** defines selection  sensitivity for vertices; \r
610   - **Edge**  defines selection  sensitivity for edges.  \r
611 \r
612 .. _toolbars_management:\r
613 \r
614 Toolbars management\r
615 -------------------\r
616 \r
617 .. _toolbars_dialog:\r
618 \r
619 **Toolbars** dialog box\r
620 ^^^^^^^^^^^^^^^^^^^^^^^\r
621 To edit the current tool bars structure select in the Main Menu *Edit - > Edit toolbars* item. \r
622 The following dialog box with existing toolbars appears:\r
623 \r
624 .. figure:: images/Toolbars.png\r
625    :align: center\r
626 \r
627    **Toolbars** dialog box\r
628 \r
629 **Input fields**:\r
630 \r
631 - **Toolbars** window contains list of toolbars names. Number of commands in each tool bar is shown in brackets.\r
632 - **Add** button creates a new toolbar. Click on **Add** button opens :ref:`create_toolbar`;\r
633 - **Edit**  button  calls :ref:`edit_toolbar` for currently selected tool bar;\r
634 - **Delete** button removes currently selected tool bar. Click on **Delete** button opens warning dialog box. After confirmation by click **Yes** button the selected toolbar is deleted. Click **No** button cancels removing of the selected toolbar;\r
635 - **Reset** button restores modified tool bars structure to default state;\r
636 - **OK** button closes the dialog box, stores result of tool bars edition and updates Shaper tool bars;\r
637 - **Cancel** button closes the dialog box without modification of tool bars.\r
638 \r
639 .. figure:: images/delete_toolbar.png\r
640    :align: center\r
641 \r
642    Warning dialog box\r
643    \r
644 .. _create_toolbar:\r
645 \r
646 **Create toolbar** dialog box\r
647 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r
648 \r
649 **Input fields** of **Create toolbar** dialog box:\r
650 \r
651 .. figure:: images/create_toolbar.png\r
652    :align: center\r
653 \r
654    **Create toolbar** dialog box\r
655 \r
656 - **Name of a new toolbar** defines name of the new tool bar. The name of tool bar has to be unique. If user defines a not unique name then a warning appears and a new tooolbar with not unique name is not created;\r
657 - **Ok** button closes the dialog box and add a new tool bar of the module into  **Toolbars** window;\r
658 - **Cancel** button closes the dialog box without addition of a new tool bar.\r
659 \r
660 .. figure:: images/name_toolbar.png\r
661    :align: center\r
662 \r
663    **Warning** dialog box\r
664 \r
665 .. _edit_toolbar:\r
666 \r
667 **Edit toolbar** dialog box\r
668 ^^^^^^^^^^^^^^^^^^^^^^^^^^^\r
669 \r
670 **Input fields** of **Edit toolbar** dialog box:\r
671 \r
672 .. figure:: images/EditToolbar.png\r
673    :align: center\r
674 \r
675    **Edit toolbar** dialog box\r
676 \r
677 - **Toolbar name** non-editable field displays  name of modified tool bar;\r
678 - **Out of toolbars** window contains list of commands which are not included into any tool bar and separator definition "------";\r
679 - **In the toolbar** window contains list of commands which are defined in the current tool bar. Items in this window are listed according to order of commands in the toolbar; \r
680 - **Right arrow** button transfers currently selected item from  **Out of toolbars** window to **In the toolbar** window and puts new item before the selected item in **In the toolbar** window.\r
681     If there is no selected item in **In the toolbar**  window then new item will be added at the end of items list. In order to clear current selection it is necessary to click in empty space of the window.\r
682 - **Left arrow** button transfers currently selected item from **In the toolbar** window into **Out of toolbars** window;\r
683 - **Up** and **Down** buttons  change position of selected command in **In the toolbar** window;\r
684 - **Ok** button closes the dialog box, stores result of edition;\r
685 - **Cancel**  button closes the dialog box without modification of tool bar content.\r