.. index:: Preferences

.. _Preferences:

Preferences
===========

The preferences dialog box is opened from the :ref:`Options Menu<options_menu>`. It allows the user to customize the HUGIN user interface. Figure 1 and Figure 2 shows the preferences dialog box with each of the two tabs chosen. 

.. figure:: images/preferences.png

	Figure 1: The preferences dialog box with the General Options tab chosen.

In the General Options tab (Figure 1) you can specify 

* Choose a language. Currently supporting English and Japanese.
* how many files you want to be shown in the :ref:`recently used file<recently_used_files>` list of the :ref:`File Menu<file_menu>`,
* if and how often you want to auto-save (auto-save file is named <netname>_AUTOSAVED.net),
* if you want a sound indication when an error occurs,
* if you want error messages to appear in popup dialog boxes or just in the status bar of the :ref:`Main Window<main_window>`
* the number of most recent error messages to be kept in a history list of errors (accessible through the Show Last Error item of the :ref:`View Menu<view_menu>`)
* if you want warnings to appear when performing operations on OOBNs that may lead to a situation of inconsistency (making it impossible to load the OOBN later on) - such operations can be performed when only sub-networks of an :ref:`OOBN<Introduction_To_Object_Oriented_Networks>` have been loaded (useful when several people work on the same overall project), and could, for example, be operations like renaming a class, an :ref:`input node<input_node>`, or an :ref:`output node<output_node>`, changing the :ref:`node category<node_category>` or kind of an input node, changing the number of states of an output node, or delete an input node or an output node,
* if you want HUGIN to use fixed font size (it may be a good idea to disable this property, if you are running HUGIN on a small screen with a high resolution). 
* if you want HUGIN to give a compilation warning when the compilation process may require a large amount of memory or involve a large number of computations when generating tables from expressions,
* if you want the :ref:`Node List Pane<Node_List_pane>` to be displayed in :ref:`Run Mode<Run_mode>`,
* if you want :ref:`network windows<network_window>` to be repainted while dragging for resizing,
* if you want HUGIN to check for updates on the internet each time it starts up,
* if you want to use an image file as wallpaper on the background of the :ref:`Main Window<main_window>`,
* if you want to connect to a database using a JDBC driver (in :ref:`Analysis Wizard<analysis_wizard>`, Learning Wizard etc.)select the folder that includes the database JDBC drivers.
* the theme you want to use - currently there are six themes, 'dark', 'white', 'classy', 'aluOxide', 'green', and 'blue'.
* if you want a your default browser or an in-GUI view when browsing help from the GUI

.. figure:: images/preferences1.png

	Figure 2: The preferences dialog box with the Display Options tab chosen.

In the Display Options tab (Figure 1) you can specify:
* the way in which :ref:`tables<node_table>` are displayed
* how to get a nodes table shown in the table pane
* which :ref:`graph layout algorithm<Layout_Network_Nodes>` to use 

.. figure:: images/preferences2.png

	Figure 3: The preferences dialog box with the Belief Bar Colors tab chosen

In the Belief Bar Colors tab (Figure 3) you can change the default colors for the bars showing beliefs, findings, inconsistencies, likelihoods, and locked findings used in the :ref:`Node List Pane<Node_List_pane>` and the :ref:`monitor windows<monitor_windows>`. 

Figure 4 shows the color select dialog window which appears when you click any of the buttons in the Belief Bar Colors tab. 

.. figure:: images/preferences3.png

	Figure 4: The color selection dialog box