Salome HOME
Correction of PyEditor preferences dialog box:
[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>Opaque resize</b> - force opaque resize mode for viewers area (tabbed workspace).
43   Clear this checkbox for less perfomant workstations.
44   - <b>Drop-down buttons in toolbars for action groups</b> - when
45   checked, the action groups are represented in the viewer toolbars as
46   a single drop-down button, switchable by the user. Otherwise, all
47   the buttons from the action groups are displayed in the toolbar. 
48 - <b>Study Properties</b>
49   - <b>Multi file save</b> - if checked in, your study will be saved in
50     several HDF files (one basic HDF file which will store the main
51     information about the saved study and several other files for the
52     data created by each component used during the study
53     session). Opening of this study requires that \b ALL saved files
54     should be stored in the \b SAME directory. If you would like to
55     copy your saved study in another directory or machine, you should
56     copy all stored files. Otherwise, if you try to open this study,
57     some data will be lost and it will lead to invalid functioning of
58     the SALOME platform. 
59   - <b>ASCII save</b> - if checked in, your study will be saved in
60     ASCII format file (or files).
61   - <b>Store positions of windows</b> -  if checked in, positions of windows
62     will be saved in a special file at the end of the current session and
63     then restored for a new session.
64   - <b>Store positions of toolbars</b> -  if checked in, positions of toolbars
65     will be saved in a special file at the end of the current session and
66     then restored for a new session.
67   - <b>Auto-save interval (min)</b> - allows to specify the time interval (in
68     minutes) for automatic study saving operation. If the time interval is
69     equal to 0 ("Disabled" value is shown) the automatic saving is not performed.
70   - <b>Store/restore last GUI state</b> - if checked in, all GUI settings are
71     saved with the rest of the data whenever you save the study. When the
72     study is reopened, the GUI state is restored.
73   - <b>Multi file python dump</b> - allows to generate multiple files
74     (separately for each component) for dumping of a study to a python script.
75     If the option is disabled, the study is dumped to a single python script.
76   - <b>Publish in study in python dump</b> - if this option is switched on,
77     the Python script resulting from Dump Python operation will
78     include commands related to the publication of the data in the
79     study (if this option is supported by specific module).
80   - <b>Save GUI state in python dump</b> - if this option is switched on,
81     the Python script resulting from Dump Python operation will
82     include commands related to the GUI state.
83 - <b>External browser</b> - allow to define what browser will 
84     be used to show SALOME reference manuals: internal (built-in
85     SALOME browser) or external (IE, Netscape, Mozilla, ...). In
86     addition, it is possible to specify 
87     - \b Application - this option allows you to set an external browser (IE,
88     Netscape) which will be used for viewing SALOME reference manuals. By
89     default, Mozilla is used.
90     - \b Parameters - additional parameters required for launching of
91     the external browser (if applicable).
92 - <b>Python console</b> - here you can quickly set the parameters
93   (style, size, face) of the \ref font_color_dlg "font" used in
94   embedded Python console. 
95 - <b>Show MRU items</b> - allows to define the maximum \b Number of
96 items in <b>Most Recently Used</b> list and the <b>Link type</b>: 
97   - \b Long - shows the full path to the file. 
98   - \b Short - shows the file name only.
99   - \b Auto - shows full paths to the files only if some files from
100 different locations have the same name.
101
102 <h2>3D Viewer Preferences</h2>
103
104 \image html pref_salome_3dviewer.png
105
106 - <b>Navigation style</b> - this option allows to choose one of the
107   modes of work with mouse in OCC and VTK 3D viewers.
108   - <b>Salome Standard Controls</b> - allows to manipulate objects in the
109   viewer with the mouse and locked Ctrl button: increase or decrease the
110   zoom ratio with the left mouse button, translate object in any
111   direction with the central mouse button or rotate it with the right
112   mouse button.
113   - <b>Keyboard Free</b> - allows to manipulate objects in the viewer
114   with the mouse without locking Ctrl button. In this case the
115   operations are assigned to the buttons differently: rotation is made
116   with the left button, translation with the right and zoom with both
117   pressed in the same time.
118 - <b>Zooming style</b> - this option allows to choose a zooming mode.
119   - <b>Relative to the view's center</b> - allows to zoom the view 
120   relatively to its center.
121   - <b>Relative to the cursor</b> - allows to zoom the view
122   relatively to the current cursor position.
123 - <b>Trihedron</b> - viewer trihedron settings:
124   - <b>Size</b> - size of the coordinate axes (global trihedron)
125     displayed in the viewer.
126   - <b>Relative size</b> - if this option is switched on, trihedron
127     axes scale to fit the size of the scene displayed in 3D viewer.
128   - <b>Show static trihedron</b> - allows to show/hide the static
129     mini-trihedron located in the bottom-left corner of the viewer.
130
131 \anchor occ_preferences
132 <h2>OCC 3D Viewer Preferences</h2>
133
134 \image html pref_salome_occviewer.png
135
136 - <b>Background</b> - specifies the default background for the viewers,
137   separately for (for more details, refer to the \ref viewer_background
138   "this page"):
139   - <b>3D View</b>
140   - <b>XZ View</b>
141   - <b>YZ View</b>
142   - <b>XY View</b>
143   
144 - <b>Clipping parameters</b> - specifies the default clipping plane parameters.
145   - <b>Color</b> - allows to change the color of the clipped region.
146   - <b>Use default texture</b> - if this option is switched on, the default texture
147     will be used for clipping texture, otherwise - the texture specified in "Texture" field.
148   - <b>Texture</b> - allows to change the texture of the clipped region 
149     (enable if "Use default texture" is switched off).
150   - <b>Modulate</b> - controls if "Texture" should be mixed with "Color" parameter or no.
151   - <b>Scale factor</b> - sets the scale factor for default and custom textures.
152
153 \anchor vtk_preferences
154 <h2>VTK 3D Viewer Preferences</h2>
155
156 \image html pref_salome_vtkviewer.png
157
158 - <b>Projection mode</b> - allows choosing between \b Orthogonal and
159 \b Perspective projection mode.
160 - <b>Background</b> - specifies the default background for the viewer;
161   for more details, refer to the \ref viewer_background "this page".
162 - <b>Speed Increment</b> - defines the number of units by
163   which the speed increases or respectively decreases after pressing [+]
164   or [-] keyboard buttons.
165 - <b>Modification Mode</b> - allows choosing between \b Arithmetic
166   and \b Geometrical progression used for zooming.
167 - <b>Dynamic pre-selection</b> - switches dynamic pre-selection on/off.
168 - <b>Spacemouse</b> - a mouse-like manipulator device specially designed
169   for working with 3D presentations, objects, etc. You can reassign the
170   actions listed below to any of its buttons.
171   - <b>Decrease Speed Increment</b> - decreases by 1 the speed
172   increment used for the keyboard (same as [-] key).
173   - <b>Increase Speed Increment</b> - increase by 1 the speed
174   increment used for the keyboard (same as [+] key).
175   - <b>Dominant / combined switch</b> - toggles button to switch to
176   dominant or combined movements. 
177 - <b>AVI Recording</b>
178   - <b>Mode</b> - allows to choose from two recording regimes:
179     - <b>Recording all displayed frames</b> - records exactly at the
180     FPS rate specified by the user. 
181     - <b>Recording at a given FPS</b> - records only when the contents
182     of the viewer change (some activity is performed).  In the AVI file
183     non-recorded images are substituted with the copies of the latest
184     recorded image, which produces files with lower quality but requires
185     less system resources.
186   - <b>FPS</b> - allows to define the FPS (frames per second) rate for
187   the clip. Set greater value for better quality.
188   - <b>Quality</b> - allows to set the quality of the clip in the
189   interval between 0 and 100.
190   - <b>Progressive</b> - allows to record a progressive API file.
191 - <b>Names of groups</b> - allows to specify parameters of the
192 titles displayed in the viewer:
193   - <b>Text color</b> - allows selecting the text color;
194   - <b>Transparency</b> - allows selecting the text transparency.
195
196 \anchor plot2d_preferences
197 <h2>Plot 2D Viewer Preferences</h2>
198
199 \image html pref_salome_plot2dviewer.png
200
201 - <b>Background color</b> - this submenu allows to select the background
202 color. Click on the colored line to access to the
203 \ref select_color_and_font_page "Select Color" dialog box.
204 - <b>Selection color</b> - this submenu allows to select the color of
205 selected object in the viewer. 
206 - <b>Viewer</b> - allows specifying the properties of the Plot 2D Viewer.
207   - <b>Curve Type</b> - this allows to set the representation of graphs in
208   your presentations. You can see only <b>Points</b>, points connected with
209   <b>Lines</b> or points connected with smooth <b>Splines</b>.
210   - <b>Marker Size</b> - this submenu allows you to set the size of
211   markers in your graphs.
212   - <b>Horizontal</b> and <b>Vertical axis scale</b> - this submenus allow you to set
213   the scale for vertical and horizontal axes. It can be either <b>Linear</b> or
214   <b>Logarithmic</b>. Note that the <b>Logarithmic</b> scale can be used only
215   if the minimum value of corresponding component (abscissa or ordinate)
216   of all points displayed in the viewer is greater than zero.
217   If this condition is not met, the scale is switched to <b>Linear</b>
218   automatically, even if it is set to <b>Logarithmic</b>.
219   - <b>Deviation marker color</b> - this submenu allows to select the
220   color of the deviation marker. 
221   - <b>Deviation marker line width</b> allows to define line width of
222   the deviation marker. 
223   - <b>Deviation marker tick size</b> allows to define size of the upper
224   and lower horizontal lines of the deviation marker. 
225 - <b>Legend</b> - allows specifying the properties of the legend.
226   - <b>Show legend</b> - this options specifies if it's necessary to
227   show legend by default.
228   - <b>Legend Position</b> - this submenu allows to set the default position
229   of the legend, it can be located to the left, to the right, on top or
230   on bottom of the graph.
231   - <b>Symbol type</b> you can select the type of legend item symbol from "Marker on line" 
232   or "Marker above line"
233   - <b>Legend font</b> - this allows to set type and face for the font of Legend item.
234   - <b>Legend font color</b> - this allows to select the color of the
235   font of the legend item. 
236   - <b>Highlighted legend font color</b> - this submenu allows to select
237   the color of the font of the selected legend item. 
238
239 \anchor default_python_preferences
240 <h2>Python Viewer Preferences</h2>
241
242 \image html pref_salome_pythonviewer.png
243
244 \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".
245
246 - <b>Font settings</b> allows setting font variant, size and style.
247   
248 - <b>Display settings</b> specifies the script representation in the viewer:
249
250   - <b>Enable current line highlight</b> switches on a background coloring of current line.
251   - <b>Enable text wrapping</b> allows lines wrapping at the view border of the editor.
252
253   - <b>Center cursor on scroll</b> scrolls the script vertically to make the cursor visible at the center of the viewer.
254
255   - <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.
256
257 - <b>Tab settings</b> allows to display tab indentation as a set of desirable number of white spaces.
258
259 - <b>Vertical edge settings</b> manages drawing of vertical line at the specified column of the viewer.
260
261 <h2>Directories Preferences</h2>
262
263 \image html pref_salome_directories.png
264
265 - <b>Quick Directory List</b> - this section allows to create and manage
266 a custom quick directory list. To add a directory in the list, press
267 the "Add directory" button:
268 \image html image70.png
269 then the &quot;<b>...</b>&quot; button and browse the data tree for the
270 directory you need.
271 The "Up" and "Down" buttons(see the picture below) help you to sort
272 the directories in the list:
273 \image html image73.png
274 \image html image75.png
275 To remove the selected directory from the list, press the "Delete"
276 button:
277 \image html image72.png
278
279 <br><h2>Object Browser Preferences</h2>
280
281 \image html pref_salome_objbrowser.png
282
283 - <b>Search Tool</b> - specifies behavior of the
284 \ref using_find_tool_page "Search tool".
285   - <b>Enable auto-hiding</b> checkbox - hides the search tool
286   automatically after short perioud of time when it is not used.
287 - <b>Look and feel</b>
288   - <b>Auto size for the first column</b> - this checkbox enables automatic
289   resizing for the first column.
290   - <b>Auto size for other columns</b> - this checkbox enables
291   automatic resizing for the other columns.
292   - <b>Resize columns after expanding an item</b> - this checkbox enables
293   resizing columns on expanding an object browser item.
294   - <b>Browse to the published object</b> - this combobox allows to enable
295   automatic browsing to the objects just published to the study (using GUI
296   dialogs only). It means that the object browser will be scrolled to the
297   published objects, make them visible if they are collapsed and select the
298   first of them. Three modes are allowed for activating this feature:
299     - <b>Never</b> - automatic browsing is disabled.
300     - <b>After Apply & Close only</b> - browsing is activated when the
301     dialog is accepted by <b>Apply & Close</b> or <b>Ok</b> buttons (or if
302     the objects are published without using a dialog, for example, by
303     clicking a context menu button) and not activated when the
304     <b>Apply</b> button is pressed and therefore the dialog remains visible.
305     - <b>Always</b> - automatic browsing is always enabled.
306 - <b>Default columns</b> - these checkboxes allow to display or hide <b>Value</b>,
307 <b>Entry</b>, <b>IOR</b> and <b>Reference entry</b> columns in the Object Browser.
308
309 <br><h2>Shortcuts Preferences</h2>
310
311 \image html pref_salome_shortcuts.png
312
313 - <b>Shortcuts settings</b> widget allows to define custom shortcuts for
314 various operations. To change keyboard sequence for a certain action - select the
315 action and press the custom keys combination.
316
317
318 \subpage select_color_and_font_page "Font and color preferences"
319 are most oftenly used types of user settings.
320
321 When you change settings (click \b OK or \b Apply button) each module
322 receives the notification about what preferences are changed. You can
323 also click \b Defaults button to restore default preferences or \b Close
324 button to quit the dialog box without any changes. 
325
326 \b Import button allows loading specific user file containing
327 preferences from any location at the computer through a standard
328 Import dialog box.
329
330 \image html import.png
331
332 The preferences files usually have *.xml extension. Also,
333 preferences files automatically saved by the application (stored in the
334 ~/.config/salome directory) have no extension and by default start with
335 .SalomeApprc. followed by SALOME version number. Usually there is a
336 separate preferences file for each SALOME version in use. Preferences
337 are saved to the file in the end of the working session and restored
338 at the application start-up.
339
340 \note The preferences you set will be default preferences for all \b new
341 objects, but they are not retroactive and do not automatically apply
342 to the existing objects.
343
344 */