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