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