Salome HOME
[bos #35160][EDF](2023-T1) Keyboard shortcuts.
[modules/gui.git] / doc / salome / gui / input / setting_preferences.rst
1 .. _setting_preferences_page:
2
3 *******************
4 Setting Preferences
5 *******************
6
7 All user preferences of **SALOME** application can be customized using the
8 common **Preferences** dialog box. This dialog can be open using the
9 ***File > Preferences...*** menu item.
10
11 The **Preferences** dialog box consists of two parts:
12
13 - Available preferences sections are listed in the left part of the dialog box; usually this list contains "SALOME" item that specifies general application preferences and a separate section for each SALOME module available in the current session.
14 - The tabbed widget at the right side of the dialog box provides controls that can be used to customize the preferences.
15
16 .. note:: The preferences for modules become accessible only after explicit loading of these modules. Until then the dialog box will show the corresponding warning message.
17
18 More detailed information about preferences for certain modules can be found in the User's guide of the corresponding module.
19
20 General application preferences are specified in the **SALOME** section
21 of the **Preferences** dialog box. These preferences affect on the
22 application look-n-feel and common functionality.
23
24 If the study has just been started and other
25 modules have not been loaded yet, it will be possible to change only the settings which refer to
26 the whole GUI SALOME session.
27
28 General Preferences
29 ###################
30
31 .. image:: ../images/pref_salome_general.png
32         :align: center
33
34 - **Language**
35
36   - **Current language** - the language used by the application GUI. The language change will come in force only after the application is restarted.
37   - **Use C locale**  - when checked, the C locale will be set for the application, otherwise a system locale will be used. The locale change will come in force only after the application is restarted.
38
39 - **Look and feel**
40
41   - **Show splash screen at start-up** - allows showing or hiding the splash screen at start-up.
42   - **Opaque resize** - force opaque resize mode for viewers area (tabbed workspace). Clear this checkbox for less perfomant workstations.
43   - **Drop-down buttons in toolbars for action groups** - when checked, the action groups are represented in the viewer toolbars as a single drop-down button, switchable by the user. Otherwise, all the buttons from the action groups are displayed in the toolbar.
44
45 - **Study Properties**
46
47   - **Multi file save** - if checked in, your study will be saved in several HDF files (one basic HDF file which will store the main information about the saved study and several other files for the data created by each component used during the study session). Opening of this study requires that **ALL** saved files should be stored in the **SAME** directory. If you would like to copy your saved study in another directory or machine, you should copy all stored files. Otherwise, if you try to open this study, some data will be lost and it will lead to invalid functioning of the SALOME platform.
48   - **ASCII save** - if checked in, your study will be saved in ASCII format file (or files).
49   - **Automatic loading of light modules when opening study** -  if checked in, Light Modules of the current study will be automatically loaded at the next study opening, allowing completion of object browser.
50   - **Store positions of windows** -  if checked in, positions of windows will be saved in a special file at the end of the current session and then restored for a new session.
51   - **Store positions of toolbars** -  if checked in, positions of toolbars will be saved in a special file at the end of the current session and then restored for a new session.
52   - **Auto-save interval (min)** - allows to specify the time interval (in minutes) for automatic study saving operation. If the time interval is equal to 0 ("Disabled" value is shown) the automatic saving is not performed.
53   - **Store/restore last GUI state** - if checked in, all GUI settings are saved with the rest of the data whenever you save the study. When the study is reopened, the GUI state is restored.
54   - **Publish in study in python dump** - if this option is switched on, the Python script resulting from Dump Python operation will include commands related to the publication of the data in the study (if this option is supported by specific module).
55   - **Multi file python dump** - allows to generate multiple files (separately for each component) for dumping of a study to a python script. If the option is disabled, the study is dumped to a single python script.
56   - **Save GUI state in python dump** - if this option is switched on, the Python script resulting from Dump Python operation will include commands related to the GUI state.
57
58 - **External browser** - allows to define what browser will be used to show SALOME reference manuals: internal (built-in SALOME browser) or external (IE, Netscape, Mozilla, ...). In addition, it is possible to specify
59
60     - **Application** - this option allows you to set an external browser (IE, Netscape) which will be used for viewing SALOME reference manuals. By default, Mozilla is used.
61     - **Parameters** - additional parameters required for launching of the external browser (if applicable).
62
63 - **Python console**
64
65     - **Font** - allows quickly setting the parameters (style, size, face) of the :ref:`font_color_dlg` used in embedded Python console.
66     - **Show banner** - this option allows to show/hide the Python banner on top of the console window.
67
68 - **Show MRU items** - allows to define the maximum **Number** of items in **Most Recently Used** list and the **Link type**:
69
70   - **Long** - shows the full path to the file.
71   - **Short** - shows the file name only.
72   - **Auto** - shows full paths to the files only if some files from different locations have the same name.
73
74 - **Full-screen**
75
76   - **Hide object browser and viewers toolbars** - switches automatic hiding of Object Browser and OCC viewer toolbar in full-screen mode.
77
78 3D Viewer Preferences
79 #####################
80
81 .. image:: ../images/pref_salome_3dviewer.png
82         :align: center
83
84 - **Navigation style** - this option allows to choose one of the modes of work with mouse in OCC and VTK 3D viewers.
85
86   - **Salome Standard Controls** - allows to manipulate objects in the viewer with the mouse and locked Ctrl button: increase or decrease the zoom ratio with the left mouse button, translate object in any direction with the central mouse button or rotate it with the right mouse button.
87   - **Keyboard Free** - allows to manipulate objects in the viewer with the mouse without locking Ctrl button. In this case the operations are assigned to the buttons differently: rotation is made with the left button, translation with the right and zoom with both pressed in the same time.
88
89 - **Zooming style** - this option allows to choose a zooming mode.
90
91   - **Relative to the view's center** - allows to zoom the view relatively to its center.
92   - **Relative to the cursor** - allows to zoom the view relatively to the current cursor position.
93
94 - **Trihedron** - viewer trihedron settings:
95
96   - **Size** - size of the coordinate axes (global trihedron) displayed in the viewer.
97   - **Relative** - if this option is switched on, trihedron axes scale to fit the size of the scene displayed in 3D viewer.
98   - **Show static trihedron** - allows to show/hide the static mini-trihedron located in the bottom-left corner of the viewer.
99
100 .. _occ_preferences:
101
102 OCC 3D Viewer Preferences
103 #########################
104
105 .. image:: ../images/pref_salome_occviewer.png
106         :align: center
107
108 - **Projection mode** - sets the default projection mode for the viewers: Orthogonal or Perpective.
109 - **Stereo render** - stereoscopic view settings:
110
111   - **Stereo type** - specifies a stereo pair type:
112
113     - Shutter glasses (OpenGL quad-buffer)
114     - Anaglyph
115     - Row-interlaced
116     - Column-interlaced
117     - Chess-board stereo for DLP TVs
118     - Horizontal-anamorphic (side-by-side)
119     - Vertical-anamorphic (Half OverUnder)
120
121     .. note::
122                 The stereo pair type selected in this combobox is applied for all existing OCC 3D views with stereo rendering already turned on within the same SALOME GUI session. It is not possible to use different stereo modes in several OCC 3D views at the same time within the same SALOME GUI session.
123
124   - **Anaglyph filter** - specifies the format of anaglyph stereo pair:
125
126     - Red-Cyan (default)
127     - Yellow-Blue
128     - Green-Magenta
129
130   - **Convergence distance type**: Absolute or Relative (default).
131   - **Stereographic focus value** - 1 by default.
132   - **IOD type** - Absolute or Relative (default).
133   - **Interocular distance (IOD) value** - 0.05 by default.
134   - **Reverse stereo** - option to swap left and right frames.
135   - **Enable V-Sync** - activates vertical synchronization.
136   - **Enable quad-buffer support** - allows quad-buffered rendering.
137
138   .. note::
139         It is neccessary to enable quad-buffered stereoscopic rendering manually in graphic driver settings. SALOME does not do it automatically.
140
141   .. note::
142         All existing OCC 3D views should be re-created for quad-buffer support.
143
144 - **Background** - specifies the default background for the viewers, separately for (for more details, refer to the :ref:`viewer_background` page"):
145
146   - **3D View**
147   - **XZ View**
148   - **YZ View**
149   - **XY View**
150
151 - **Selection**
152
153   - **Enable preselection** - switches preselection on/off.
154   - **Enable selection** - switches selection on/off.
155   - **Advanced selection** - switches default advanced selection style by Polygon or by Circle.
156
157 - **Clipping parameters** - specifies the default clipping plane parameters.
158
159   - **Color** - allows to change the color of the clipped region.
160   - **Use default texture** - if this option is switched on, the default texture will be used for clipping texture, otherwise - the texture specified in "Texture" field.
161   - **Texture** - allows to change the texture of the clipped region (enable if "Use default texture" is switched off).
162   - **Modulate** - controls if "Texture" should be mixed with "Color" parameter or not.
163   - **Scale factor** - sets the scale factor for default and custom textures.
164
165 - **Ray tracing** - specifies the default GPU ray-tracing parameters.
166
167   - **Depth** - defines maximum ray-tracing depth.
168   - **Specular reflections** - enables/disables specular reflections.
169   - **Adaptive anti-aliasing** - enables/disables adaptive anti-aliasing.
170   - **Shadows rendering** - enables/disables shadows rendering.
171   - **Transparent shadow** - enables/disables light propagation through transparent media.
172
173 - **Light source** - allows to set default parameters for directional light source.
174
175   - **Color** - allows to change the color of light source.
176   - **Dx, Dy, Dz** - sets direction coordinates.
177
178 - **Navigation Cube** - allows to manage parameters of navigation cube.
179
180   - **Show navigation cube on start** - if checked, navigation cube will appear in a new occ viewer.
181   - **Animation duration (sec)** - duration of animation of camera rotation.
182   - **Customize navigation cube appearance** - if checked, below defined parameters will be used instead of default ones.
183   - **Cube color** - color of the navigation cube.
184   - **Text color** - color of text on the navigation cube faces.
185   - **Cube size** - size of the navigation cube.
186   - **Show navigation cube axes** - show navigation cube own axes.
187
188 .. _vtk_preferences:
189
190 VTK 3D Viewer Preferences
191 #########################
192
193 .. image:: ../images/pref_salome_vtkviewer.png
194         :align: center
195
196 - **Projection mode** - allows choosing between **Orthogonal** and **Perspective** projection mode.
197 - **Background** - specifies the default background for the viewer; for more details, refer to the :ref:`viewer_background`.
198 - **Speed Increment** - defines the number of units by which the speed increases or respectively decreases after pressing [+] or [-] keyboard buttons.
199 - **Modification Mode** - allows choosing between **Arithmetic** and **Geometrical** progression used for zooming.
200 - **Stereo render** - stereoscopic view settings:
201
202   - **Stereo type** - specifies a stereo pair type:
203
204     - Crystal Eyes
205     - Red-Blue
206     - Interlaced
207     - Left
208     - Right
209     - Dresden
210     - Anaglyph
211     - Checkerboard
212     - Split View Port Horizontal
213
214     .. note::
215                 The stereo pair type selected in this combobox is applied for all existing VTK 3D views with stereo rendering already turned on within the same SALOME GUI session. It is not possible to use different stereo modes in several VTK 3D views at the same time within the same SALOME GUI session.
216
217   - **Anaglyph filter** - specifies the format of anaglyph stereo pair:
218
219     - Red-Cyan (default)
220     - Yellow-Blue
221     - Green-Magenta
222
223   - **Enable quad-buffer support** - allows quad-buffered rendering.
224
225   .. note::
226                 It is neccessary to enable quad-buffered stereoscopic rendering manually in graphic driver settings. SALOME does not do it automatically.
227   .. note::
228                 All existing VTK 3D views should be re-created for quad-buffer support.
229
230 - **Selection**
231
232   - **Preselection** - allows to choose among three possible preselection modes:
233
234     - **Standard** - this mode works quickly, by checking only bounding boxes of objects. It does not deal with the order of actors in the view or with their data (points/ cells).
235     - **Dynamic** - works directly with cells of actors, which provides the exact area of preselection. This mode is much more slower.
236     - **Disabled** - switches off the preselection.
237
238   - **Enable selection** - switches selection on/off.
239
240 - **Spacemouse** - a mouse-like manipulator device specially designed for working with 3D presentations, objects, etc. You can reassign the actions listed below to any of its buttons.
241
242   - **Decrease Speed Increment** - decreases by 1 the speed increment used for the keyboard (same as [-] key).
243   - **Increase Speed Increment** - increase by 1 the speed increment used for the keyboard (same as [+] key).
244   - **Dominant / combined switch** - toggles button to switch to dominant or combined movements.
245
246 - **AVI Recording**
247
248   - **Mode** - allows to choose from two recording regimes:
249
250     - **Recording all displayed frames** - records exactly at the FPS rate specified by the user.
251     - **Recording at a given FPS** - records only when the contents of the viewer change (some activity is performed).  In the AVI file non-recorded images are substituted with the copies of the latest recorded image, which produces files with lower quality but requires less system resources.
252
253   - **FPS** - allows to define the FPS (frames per second) rate for the clip. Set greater value for better quality.
254   - **Quality** - allows to set the quality of the clip in the interval between 0 and 100.
255   - **Progressive** - allows to record a progressive API file.
256
257 - **Names of groups** - allows to specify parameters of the titles displayed in the viewer:
258
259   - **Text color** - allows selecting the text color;
260   - **Transparency** - allows selecting the text transparency.
261
262 .. _plot2d_preferences:
263
264 Plot 2D Viewer Preferences
265 ##########################
266
267
268 .. image:: ../images/pref_salome_plot2dviewer.png
269         :align: center
270
271 - **Background color** - this submenu allows to select the background color. Click on the colored line to access to the :ref:`select_color_and_font_page` dialog box.
272 - **Selection color** - this submenu allows to select the color of selected object in the viewer.
273 - **Viewer** - allows specifying the properties of the Plot 2D Viewer.
274
275   - **Curve Type** - this allows to set the representation of graphs in your presentations. You can see only **Points**, points connected with **Lines** or points connected with smooth **Splines**.
276   - **Marker Size** - this submenu allows you to set the size of markers in your graphs.
277   - **Horizontal** and **Vertical axis scale** - this submenus allow you to set the scale for vertical and horizontal axes. It can be either **Linear** or **Logarithmic**. Note that the **Logarithmic** scale can be used only if the minimum value of corresponding component (abscissa or ordinate) of all points displayed in the viewer is greater than zero. If this condition is not met, the scale is switched to **Linear** automatically, even if it is set to **Logarithmic**.
278   - **Deviation marker color** - this submenu allows to select the color of the deviation marker.
279   - **Deviation marker line width** allows to define line width of the deviation marker.
280   - **Deviation marker tick size** allows to define size of the upper and lower horizontal lines of the deviation marker.
281
282 - **Legend** - allows specifying the properties of the legend.
283
284   - **Show legend** - this options specifies if it's necessary to show legend by default.
285   - **Legend Position** - this submenu allows to set the default position of the legend, it can be located to the left, to the right, on top or on bottom of the graph.
286   - **Symbol type** you can select the type of legend item symbol from "Marker on line" or "Marker above line"
287   - **Legend font** - this allows to set type and face for the font of Legend item.
288   - **Legend font color** - this allows to select the color of the font of the legend item.
289   - **Highlighted legend font color** - this submenu allows to select the color of the font of the selected legend item.
290
291 .. _default_python_preferences:
292
293 Python Viewer Preferences
294 #########################
295
296 .. image:: ../images/pref_salome_pythonviewer.png
297         :align: center
298
299 .. note::
300         The following settings are default and will be applied only for newly created Python viewers. Customization of already opened viewers can be done using local :ref:`custom_python_preferences` called by clicking on the corresponding icon of :ref:`python_viewer_page`.
301
302 - **Font settings** allows setting font variant, size and style.
303 - **Display settings** specifies the script representation in the viewer:
304
305   - **Enable current line highlight** switches on background coloring of the current line.
306   - **Enable text wrapping** wraps lines at the view border of the editor.
307   - **Center cursor on scroll** scrolls the script vertically to make the cursor visible at the center of the viewer.
308   - **Display line numbers area** shows a panel with line numbers of the script at the left border of the editor.
309
310 - **Tab settings** allows displaying tab indentation as a certain number of white-spaces.
311 - **Vertical edge settings** manages drawing of a vertical line at the specified column of the viewer.
312
313 Directories Preferences
314 #######################
315
316 .. image:: ../images/pref_salome_directories.png
317         :align: center
318
319 - **Quick Directory List** - this section allows to create and manage a custom quick directory list. To add a directory in the list, press the "Add directory" button:
320
321 .. image:: ../images/image70.png
322         :align: center
323
324 then the **"..."** button and browse the data tree for the directory you need.
325 The "Up" and "Down" buttons(see the picture below) help you to sort the directories in the list:
326
327 .. image:: ../images/image73.png
328         :align: center
329
330 .. image:: ../images/image75.png
331         :align: center
332
333 To remove the selected directory from the list, press the "Delete"
334 button:
335
336 .. image:: ../images/image72.png
337         :align: center
338
339 Object Browser Preferences
340 ##########################
341
342 .. image:: ../images/pref_salome_objbrowser.png
343         :align: center
344
345 - **Search Tool** - specifies behavior of the :ref:`using_find_tool_page`.
346
347   - **Enable auto-hiding** checkbox - hides the search tool automatically after short perioud of time when it is not used.
348
349 - **Look and feel**
350
351   - **Auto size for "Name" column** - this checkbox enables automatic resizing for the "Name" column.
352   - **Auto size for other columns** - this checkbox enables automatic resizing for the other columns.
353   - **Resize columns on expand item** - this checkbox enables resizing columns on expanding an object browser item.
354   - **Browse to the published object** - this combobox allows to enable automatic browsing to the objects just published to the study (using GUI dialogs only). It means that the object browser will be scrolled to the published objects, make them visible if they are collapsed and select the first of them. Three modes are allowed for activating this feature:
355
356     - **Never** - automatic browsing is disabled.
357     - **After Apply & Close only** - browsing is activated when the dialog is accepted by **Apply & Close** or **Ok** buttons (or if the objects are published without using a dialog, for example, by clicking a context menu button) and not activated when the **Apply** button is pressed and therefore the dialog remains visible.
358     - **Always** - automatic browsing is always enabled.
359
360 - **Default columns** - these checkboxes allow to display or hide **Value**, **Entry**, **IOR** and **Reference entry** columns in the Object Browser.
361
362 Shortcut Preferences
363 #####################
364
365 .. image:: ../images/pref_salome_shortcuts.png
366         :align: center
367
368 - **Shortcut settings** widget allows to define custom shortcuts for various operations. To change keyboard sequence for a certain action - select the action and press the custom keys combination.
369
370
371 :ref:`select_color_and_font_page`: "Font and color preferences"
372 are most oftenly used types of user settings.
373
374 When you change settings (click **OK** or **Apply** button) each module
375 receives the notification about what preferences are changed. You can
376 also click **Defaults** button to restore default preferences or **Close**
377 button to quit the dialog box without any changes.
378
379 **Import** button allows loading specific user file containing
380 preferences from any location at the computer through a standard
381 Import dialog box.
382
383 .. image:: ../images/import.png
384         :align: center
385
386 The preferences files usually have \*.xml extension. Also,
387 preferences files automatically saved by the application (stored in the
388 ~/.config/salome directory) have no extension and by default start with
389 .SalomeApprc. followed by SALOME version number. Usually there is a
390 separate preferences file for each SALOME version in use. Preferences
391 are saved to the file in the end of the working session and restored
392 at the application start-up.
393
394 .. note::
395         The preferences you set will be default preferences for all **new** objects, but they are not retroactive and do not automatically apply to the existing objects.
396
397
398
399 .. toctree::
400         :maxdepth: 2
401
402         select_color_and_font.rst