3 \page setting_preferences_page Setting Preferences
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.
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.
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.
21 More detailed information about preferences for certain modules can be found in the User's guide of the corresponding module.
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.
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.
31 <h2>General Preferences</h2>
33 \image html pref_salome_general.png
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 to show or not 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
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 set 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 in the 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.
108 <h2>3D Viewer Preferences</h2>
110 \image html pref_salome_3dviewer.png
112 - <b>Navigation style</b> - this option allows to choose one of the
113 modes of work with mouse in OCC and VTK 3D viewers.
114 - <b>Salome Standard Controls</b> - allows to manipulate objects in the
115 viewer with the mouse and locked Ctrl button: increase or decrease the
116 zoom ratio with the left mouse button, translate object in any
117 direction with the central mouse button or rotate it with the right
119 - <b>Keyboard Free</b> - allows to manipulate objects in the viewer
120 with the mouse without locking Ctrl button. In this case the
121 operations are assigned to the buttons differently: rotation is made
122 with the left button, translation with the right and zoom with both
123 pressed in the same time.
124 - <b>Zooming style</b> - this option allows to choose a zooming mode.
125 - <b>Relative to the view's center</b> - allows to zoom the view
126 relatively to its center.
127 - <b>Relative to the cursor</b> - allows to zoom the view
128 relatively to the current cursor position.
129 - <b>Trihedron</b> - viewer trihedron settings:
130 - <b>Size</b> - size of the coordinate axes (global trihedron)
131 displayed in the viewer.
132 - <b>Relative</b> - if this option is switched on, trihedron
133 axes scale to fit the size of the scene displayed in 3D viewer.
134 - <b>Show static trihedron</b> - allows to show/hide the static
135 mini-trihedron located in the bottom-left corner of the viewer.
137 \anchor occ_preferences
138 <h2>OCC 3D Viewer Preferences</h2>
140 \image html pref_salome_occviewer.png
142 - <b>Background</b> - specifies the default background for the viewers,
143 separately for (for more details, refer to the \ref viewer_background
150 - <b>Enable preselection</b> - switches preselection on/off.
151 - <b>Enable selection</b> - switches selection on/off.
152 - <b>Clipping parameters</b> - specifies the default clipping plane parameters.
153 - <b>Color</b> - allows to change the color of the clipped region.
154 - <b>Use default texture</b> - if this option is switched on, the default texture
155 will be used for clipping texture, otherwise - the texture specified in "Texture" field.
156 - <b>Texture</b> - allows to change the texture of the clipped region
157 (enable if "Use default texture" is switched off).
158 - <b>Modulate</b> - controls if "Texture" should be mixed with "Color" parameter or no.
159 - <b>Scale factor</b> - sets the scale factor for default and custom textures.
161 \anchor vtk_preferences
162 <h2>VTK 3D Viewer Preferences</h2>
164 \image html pref_salome_vtkviewer.png
166 - <b>Projection mode</b> - allows choosing between \b Orthogonal and
167 \b Perspective projection mode.
168 - <b>Background</b> - specifies the default background for the viewer;
169 for more details, refer to the \ref viewer_background "this page".
170 - <b>Speed Increment</b> - defines the number of units by
171 which the speed increases or respectively decreases after pressing [+]
172 or [-] keyboard buttons.
173 - <b>Modification Mode</b> - allows choosing between \b Arithmetic
174 and \b Geometrical progression used for zooming.
176 - <b>Preselection</b> - allows to choose preselection mode from three regimes:
177 - <b>Standard</b> - this preselection mode works quickly, by checking only
178 bounding boxes of objects, not dealing with the order of the actors in the view
179 and not dealing with their data (points/ cells).
180 - <b>Dynamic</b> - works directly with cells of actors that allows to have the
181 exact area of preselection. But this mode is much more slower.
182 - <b>Disabled</b> - allows to switch off the preselection.
183 - <b>Enable selection</b> - switches selection on/off.
184 - <b>Spacemouse</b> - a mouse-like manipulator device specially designed
185 for working with 3D presentations, objects, etc. You can reassign the
186 actions listed below to any of its buttons.
187 - <b>Decrease Speed Increment</b> - decreases by 1 the speed
188 increment used for the keyboard (same as [-] key).
189 - <b>Increase Speed Increment</b> - increase by 1 the speed
190 increment used for the keyboard (same as [+] key).
191 - <b>Dominant / combined switch</b> - toggles button to switch to
192 dominant or combined movements.
193 - <b>AVI Recording</b>
194 - <b>Mode</b> - allows to choose from two recording regimes:
195 - <b>Recording all displayed frames</b> - records exactly at the
196 FPS rate specified by the user.
197 - <b>Recording at a given FPS</b> - records only when the contents
198 of the viewer change (some activity is performed). In the AVI file
199 non-recorded images are substituted with the copies of the latest
200 recorded image, which produces files with lower quality but requires
201 less system resources.
202 - <b>FPS</b> - allows to define the FPS (frames per second) rate for
203 the clip. Set greater value for better quality.
204 - <b>Quality</b> - allows to set the quality of the clip in the
205 interval between 0 and 100.
206 - <b>Progressive</b> - allows to record a progressive API file.
207 - <b>Names of groups</b> - allows to specify parameters of the
208 titles displayed in the viewer:
209 - <b>Text color</b> - allows selecting the text color;
210 - <b>Transparency</b> - allows selecting the text transparency.
212 \anchor plot2d_preferences
213 <h2>Plot 2D Viewer Preferences</h2>
215 \image html pref_salome_plot2dviewer.png
217 - <b>Background color</b> - this submenu allows to select the background
218 color. Click on the colored line to access to the
219 \ref select_color_and_font_page "Select Color" dialog box.
220 - <b>Selection color</b> - this submenu allows to select the color of
221 selected object in the viewer.
222 - <b>Viewer</b> - allows specifying the properties of the Plot 2D Viewer.
223 - <b>Curve Type</b> - this allows to set the representation of graphs in
224 your presentations. You can see only <b>Points</b>, points connected with
225 <b>Lines</b> or points connected with smooth <b>Splines</b>.
226 - <b>Marker Size</b> - this submenu allows you to set the size of
227 markers in your graphs.
228 - <b>Horizontal</b> and <b>Vertical axis scale</b> - this submenus allow you to set
229 the scale for vertical and horizontal axes. It can be either <b>Linear</b> or
230 <b>Logarithmic</b>. Note that the <b>Logarithmic</b> scale can be used only
231 if the minimum value of corresponding component (abscissa or ordinate)
232 of all points displayed in the viewer is greater than zero.
233 If this condition is not met, the scale is switched to <b>Linear</b>
234 automatically, even if it is set to <b>Logarithmic</b>.
235 - <b>Deviation marker color</b> - this submenu allows to select the
236 color of the deviation marker.
237 - <b>Deviation marker line width</b> allows to define line width of
238 the deviation marker.
239 - <b>Deviation marker tick size</b> allows to define size of the upper
240 and lower horizontal lines of the deviation marker.
241 - <b>Legend</b> - allows specifying the properties of the legend.
242 - <b>Show legend</b> - this options specifies if it's necessary to
243 show legend by default.
244 - <b>Legend Position</b> - this submenu allows to set the default position
245 of the legend, it can be located to the left, to the right, on top or
246 on bottom of the graph.
247 - <b>Symbol type</b> you can select the type of legend item symbol from "Marker on line"
248 or "Marker above line"
249 - <b>Legend font</b> - this allows to set type and face for the font of Legend item.
250 - <b>Legend font color</b> - this allows to select the color of the
251 font of the legend item.
252 - <b>Highlighted legend font color</b> - this submenu allows to select
253 the color of the font of the selected legend item.
255 \anchor default_python_preferences
256 <h2>Python Viewer Preferences</h2>
258 \image html pref_salome_pythonviewer.png
260 \note The following settings are default and will be applied for a new created Python viewers only. Customization of already opened viewers can be done using local \ref custom_python_preferences "Preferences dialog box" that is called by click on corresponding icon of \ref python_viewer_page "Python viewer toolbar".
262 - <b>Font settings</b> allows setting font variant, size and style.
264 - <b>Display settings</b> specifies the script representation in the viewer:
266 - <b>Enable current line highlight</b> switches on a background coloring of current line.
267 - <b>Enable text wrapping</b> allows lines wrapping at the view border of the editor.
269 - <b>Center cursor on scroll</b> scrolls the script vertically to make the cursor visible at the center of the viewer.
271 - <b>Display line numbers area</b> will make a panel displaying the line numbers of the script visible in the left border of the editor.
273 - <b>Tab settings</b> allows to display tab indentation as a set of desirable number of white spaces.
275 - <b>Vertical edge settings</b> manages drawing of vertical line at the specified column of the viewer.
277 <h2>Directories Preferences</h2>
279 \image html pref_salome_directories.png
281 - <b>Quick Directory List</b> - this section allows to create and manage
282 a custom quick directory list. To add a directory in the list, press
283 the "Add directory" button:
284 \image html image70.png
285 then the "<b>...</b>" button and browse the data tree for the
287 The "Up" and "Down" buttons(see the picture below) help you to sort
288 the directories in the list:
289 \image html image73.png
290 \image html image75.png
291 To remove the selected directory from the list, press the "Delete"
293 \image html image72.png
295 <br><h2>Object Browser Preferences</h2>
297 \image html pref_salome_objbrowser.png
299 - <b>Search Tool</b> - specifies behavior of the
300 \ref using_find_tool_page "Search tool".
301 - <b>Enable auto-hiding</b> checkbox - hides the search tool
302 automatically after short perioud of time when it is not used.
303 - <b>Look and feel</b>
304 - <b>Auto size for “Name” column</b> - this checkbox enables automatic
305 resizing for the “Name” column.
306 - <b>Auto size for other columns</b> - this checkbox enables
307 automatic resizing for the other columns.
308 - <b>Resize columns on expand item</b> - this checkbox enables
309 resizing columns on expanding an object browser item.
310 - <b>Browse to the published object</b> - this combobox allows to enable
311 automatic browsing to the objects just published to the study (using GUI
312 dialogs only). It means that the object browser will be scrolled to the
313 published objects, make them visible if they are collapsed and select the
314 first of them. Three modes are allowed for activating this feature:
315 - <b>Never</b> - automatic browsing is disabled.
316 - <b>After Apply & Close only</b> - browsing is activated when the
317 dialog is accepted by <b>Apply & Close</b> or <b>Ok</b> buttons (or if
318 the objects are published without using a dialog, for example, by
319 clicking a context menu button) and not activated when the
320 <b>Apply</b> button is pressed and therefore the dialog remains visible.
321 - <b>Always</b> - automatic browsing is always enabled.
322 - <b>Default columns</b> - these checkboxes allow to display or hide <b>Value</b>,
323 <b>Entry</b>, <b>IOR</b> and <b>Reference entry</b> columns in the Object Browser.
325 <br><h2>Shortcuts Preferences</h2>
327 \image html pref_salome_shortcuts.png
329 - <b>Shortcuts settings</b> widget allows to define custom shortcuts for
330 various operations. To change keyboard sequence for a certain action - select the
331 action and press the custom keys combination.
334 \subpage select_color_and_font_page "Font and color preferences"
335 are most oftenly used types of user settings.
337 When you change settings (click \b OK or \b Apply button) each module
338 receives the notification about what preferences are changed. You can
339 also click \b Defaults button to restore default preferences or \b Close
340 button to quit the dialog box without any changes.
342 \b Import button allows loading specific user file containing
343 preferences from any location at the computer through a standard
346 \image html import.png
348 The preferences files usually have *.xml extension. Also,
349 preferences files automatically saved by the application (stored in the
350 ~/.config/salome directory) have no extension and by default start with
351 .SalomeApprc. followed by SALOME version number. Usually there is a
352 separate preferences file for each SALOME version in use. Preferences
353 are saved to the file in the end of the working session and restored
354 at the application start-up.
356 \note The preferences you set will be default preferences for all \b new
357 objects, but they are not retroactive and do not automatically apply
358 to the existing objects.