<refentry id="amitk-AmitkPreferences">
<refmeta>
<refentrytitle role="top_of_page">AmitkPreferences</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>AMITK Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>AmitkPreferences</refname>
<refpurpose></refpurpose>
<!--[<xref linkend="desc" endterm="desc.title"/>]-->
</refnamediv>

<refsynopsisdiv role="synopsis">
<title role="synopsis.title">Synopsis</title>

<synopsis>



#define             <link linkend="AMITK-PREFERENCES-WARNINGS-TO-CONSOLE:CAPS">AMITK_PREFERENCES_WARNINGS_TO_CONSOLE</link>(object)
#define             <link linkend="AMITK-PREFERENCES-PROMPT-FOR-SAVE-ON-EXIT:CAPS">AMITK_PREFERENCES_PROMPT_FOR_SAVE_ON_EXIT</link>(object)
#define             <link linkend="AMITK-PREFERENCES-SAVE-XIF-AS-DIRECTORY:CAPS">AMITK_PREFERENCES_SAVE_XIF_AS_DIRECTORY</link>(object)
#define             <link linkend="AMITK-PREFERENCES-DEFAULT-DIRECTORY:CAPS">AMITK_PREFERENCES_DEFAULT_DIRECTORY</link> (object)
#define             <link linkend="AMITK-PREFERENCES-CANVAS-ROI-WIDTH:CAPS">AMITK_PREFERENCES_CANVAS_ROI_WIDTH</link>  (pref)
#define             <link linkend="AMITK-PREFERENCES-CANVAS-LINE-STYLE:CAPS">AMITK_PREFERENCES_CANVAS_LINE_STYLE</link> (pref)
#define             <link linkend="AMITK-PREFERENCES-CANVAS-FILL-ROI:CAPS">AMITK_PREFERENCES_CANVAS_FILL_ROI</link>   (pref)
#define             <link linkend="AMITK-PREFERENCES-CANVAS-LAYOUT:CAPS">AMITK_PREFERENCES_CANVAS_LAYOUT</link>     (pref)
#define             <link linkend="AMITK-PREFERENCES-CANVAS-MAINTAIN-SIZE:CAPS">AMITK_PREFERENCES_CANVAS_MAINTAIN_SIZE</link>(pref)
#define             <link linkend="AMITK-PREFERENCES-CANVAS-TARGET-EMPTY-AREA:CAPS">AMITK_PREFERENCES_CANVAS_TARGET_EMPTY_AREA</link>(pref)
#define             <link linkend="AMITK-PREFERENCES-PANEL-LAYOUT:CAPS">AMITK_PREFERENCES_PANEL_LAYOUT</link>      (pref)
#define             <link linkend="AMITK-PREFERENCES-COLOR-TABLE:CAPS">AMITK_PREFERENCES_COLOR_TABLE</link>       (pref, modality)
#define             <link linkend="AMITK-PREFERENCES-WINDOW:CAPS">AMITK_PREFERENCES_WINDOW</link>            (pref, which_window, limit)
#define             <link linkend="AMITK-PREFERENCES-THRESHOLD-STYLE:CAPS">AMITK_PREFERENCES_THRESHOLD_STYLE</link>   (pref)
#define             <link linkend="AMITK-PREFERENCES-DIALOG:CAPS">AMITK_PREFERENCES_DIALOG</link>            (pref)
#define             <link linkend="AMITK-PREFERENCES-DEFAULT-CANVAS-ROI-WIDTH:CAPS">AMITK_PREFERENCES_DEFAULT_CANVAS_ROI_WIDTH</link>
#define             <link linkend="AMITK-PREFERENCES-DEFAULT-CANVAS-LINE-STYLE:CAPS">AMITK_PREFERENCES_DEFAULT_CANVAS_LINE_STYLE</link>
#define             <link linkend="AMITK-PREFERENCES-DEFAULT-CANVAS-FILL-ROI:CAPS">AMITK_PREFERENCES_DEFAULT_CANVAS_FILL_ROI</link>
#define             <link linkend="AMITK-PREFERENCES-DEFAULT-CANVAS-LAYOUT:CAPS">AMITK_PREFERENCES_DEFAULT_CANVAS_LAYOUT</link>
#define             <link linkend="AMITK-PREFERENCES-DEFAULT-CANVAS-MAINTAIN-SIZE:CAPS">AMITK_PREFERENCES_DEFAULT_CANVAS_MAINTAIN_SIZE</link>
#define             <link linkend="AMITK-PREFERENCES-DEFAULT-CANVAS-TARGET-EMPTY-AREA:CAPS">AMITK_PREFERENCES_DEFAULT_CANVAS_TARGET_EMPTY_AREA</link>
#define             <link linkend="AMITK-PREFERENCES-DEFAULT-PANEL-LAYOUT:CAPS">AMITK_PREFERENCES_DEFAULT_PANEL_LAYOUT</link>
#define             <link linkend="AMITK-PREFERENCES-DEFAULT-WARNINGS-TO-CONSOLE:CAPS">AMITK_PREFERENCES_DEFAULT_WARNINGS_TO_CONSOLE</link>
#define             <link linkend="AMITK-PREFERENCES-DEFAULT-PROMPT-FOR-SAVE-ON-EXIT:CAPS">AMITK_PREFERENCES_DEFAULT_PROMPT_FOR_SAVE_ON_EXIT</link>
#define             <link linkend="AMITK-PREFERENCES-DEFAULT-SAVE-XIF-AS-DIRECTORY:CAPS">AMITK_PREFERENCES_DEFAULT_SAVE_XIF_AS_DIRECTORY</link>
#define             <link linkend="AMITK-PREFERENCES-DEFAULT-DEFAULT-DIRECTORY:CAPS">AMITK_PREFERENCES_DEFAULT_DEFAULT_DIRECTORY</link>
#define             <link linkend="AMITK-PREFERENCES-DEFAULT-THRESHOLD-STYLE:CAPS">AMITK_PREFERENCES_DEFAULT_THRESHOLD_STYLE</link>
#define             <link linkend="AMITK-PREFERENCES-MIN-ROI-WIDTH:CAPS">AMITK_PREFERENCES_MIN_ROI_WIDTH</link>
#define             <link linkend="AMITK-PREFERENCES-MAX-ROI-WIDTH:CAPS">AMITK_PREFERENCES_MAX_ROI_WIDTH</link>
#define             <link linkend="AMITK-PREFERENCES-MIN-TARGET-EMPTY-AREA:CAPS">AMITK_PREFERENCES_MIN_TARGET_EMPTY_AREA</link>
#define             <link linkend="AMITK-PREFERENCES-MAX-TARGET-EMPTY-AREA:CAPS">AMITK_PREFERENCES_MAX_TARGET_EMPTY_AREA</link>
                    <link linkend="AmitkPreferences">AmitkPreferences</link>;
<link linkend="AmitkPreferences">AmitkPreferences</link>*   <link linkend="amitk-preferences-new">amitk_preferences_new</link>               (void);
<link linkend="void">void</link>                <link linkend="amitk-preferences-set-canvas-roi-width">amitk_preferences_set_canvas_roi_width</link>
                                                        (<link linkend="AmitkPreferences">AmitkPreferences</link> *preferences,
                                                         <link linkend="gint">gint</link> roi_width);
<link linkend="void">void</link>                <link linkend="amitk-preferences-set-canvas-line-style">amitk_preferences_set_canvas_line_style</link>
                                                        (<link linkend="AmitkPreferences">AmitkPreferences</link> *preferences,
                                                         <link linkend="GdkLineStyle">GdkLineStyle</link> line_style);
<link linkend="void">void</link>                <link linkend="amitk-preferences-set-canvas-fill-roi">amitk_preferences_set_canvas_fill_roi</link>
                                                        (<link linkend="AmitkPreferences">AmitkPreferences</link> *preferences,
                                                         <link linkend="gboolean">gboolean</link> fill_roi);
<link linkend="void">void</link>                <link linkend="amitk-preferences-set-canvas-layout">amitk_preferences_set_canvas_layout</link> (<link linkend="AmitkPreferences">AmitkPreferences</link> *preferences,
                                                         <link linkend="AmitkLayout">AmitkLayout</link> layout);
<link linkend="void">void</link>                <link linkend="amitk-preferences-set-canvas-maintain-size">amitk_preferences_set_canvas_maintain_size</link>
                                                        (<link linkend="AmitkPreferences">AmitkPreferences</link> *preferences,
                                                         <link linkend="gboolean">gboolean</link> maintain_size);
<link linkend="void">void</link>                <link linkend="amitk-preferences-set-canvas-target-empty-area">amitk_preferences_set_canvas_target_empty_area</link>
                                                        (<link linkend="AmitkPreferences">AmitkPreferences</link> *preferences,
                                                         <link linkend="gint">gint</link> target_empty_area);
<link linkend="void">void</link>                <link linkend="amitk-preferences-set-panel-layout">amitk_preferences_set_panel_layout</link>  (<link linkend="AmitkPreferences">AmitkPreferences</link> *preferences,
                                                         <link linkend="AmitkPanelLayout">AmitkPanelLayout</link> panel_layout);
<link linkend="void">void</link>                <link linkend="amitk-preferences-set-warnings-to-console">amitk_preferences_set_warnings_to_console</link>
                                                        (<link linkend="AmitkPreferences">AmitkPreferences</link> *preferences,
                                                         <link linkend="gboolean">gboolean</link> new_value);
<link linkend="void">void</link>                <link linkend="amitk-preferences-set-prompt-for-save-on-exit">amitk_preferences_set_prompt_for_save_on_exit</link>
                                                        (<link linkend="AmitkPreferences">AmitkPreferences</link> *preferences,
                                                         <link linkend="gboolean">gboolean</link> new_value);
<link linkend="void">void</link>                <link linkend="amitk-preferences-set-xif-as-directory">amitk_preferences_set_xif_as_directory</link>
                                                        (<link linkend="AmitkPreferences">AmitkPreferences</link> *preferences,
                                                         <link linkend="gboolean">gboolean</link> new_value);
<link linkend="void">void</link>                <link linkend="amitk-preferences-set-default-directory">amitk_preferences_set_default_directory</link>
                                                        (<link linkend="AmitkPreferences">AmitkPreferences</link> *preferences,
                                                         const <link linkend="gchar">gchar</link> *directory);
<link linkend="void">void</link>                <link linkend="amitk-preferences-set-color-table">amitk_preferences_set_color_table</link>   (<link linkend="AmitkPreferences">AmitkPreferences</link> *preferences,
                                                         <link linkend="AmitkModality">AmitkModality</link> modality,
                                                         <link linkend="AmitkColorTable">AmitkColorTable</link> color_table);
<link linkend="void">void</link>                <link linkend="amitk-preferences-set-default-window">amitk_preferences_set_default_window</link>
                                                        (<link linkend="AmitkPreferences">AmitkPreferences</link> *preferences,
                                                         const <link linkend="AmitkWindow">AmitkWindow</link> window,
                                                         const <link linkend="AmitkLimit">AmitkLimit</link> limit,
                                                         const <link linkend="amide-data-t">amide_data_t</link> value);
<link linkend="void">void</link>                <link linkend="amitk-preferences-set-threshold-style">amitk_preferences_set_threshold_style</link>
                                                        (<link linkend="AmitkPreferences">AmitkPreferences</link> *preferences,
                                                         const <link linkend="AmitkThresholdStyle">AmitkThresholdStyle</link> threshold_style);
<link linkend="void">void</link>                <link linkend="amitk-preferences-set-dialog">amitk_preferences_set_dialog</link>        (<link linkend="AmitkPreferences">AmitkPreferences</link> *preferences,
                                                         <link linkend="GtkWidget">GtkWidget</link> *dialog);

</synopsis>
</refsynopsisdiv>









<refsect1 role="desc">
<title role="desc.title">Description</title>
<para>

</para>
</refsect1>

<refsect1 role="details">
<title role="details.title">Details</title>
<refsect2>
<title><anchor id="AMITK-PREFERENCES-WARNINGS-TO-CONSOLE:CAPS" role="macro"/>AMITK_PREFERENCES_WARNINGS_TO_CONSOLE()</title>
<indexterm><primary>AMITK_PREFERENCES_WARNINGS_TO_CONSOLE</primary></indexterm><programlisting>#define AMITK_PREFERENCES_WARNINGS_TO_CONSOLE(object)     (AMITK_PREFERENCES(object)-&gt;warnings_to_console)
</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>object</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="AMITK-PREFERENCES-PROMPT-FOR-SAVE-ON-EXIT:CAPS" role="macro"/>AMITK_PREFERENCES_PROMPT_FOR_SAVE_ON_EXIT()</title>
<indexterm><primary>AMITK_PREFERENCES_PROMPT_FOR_SAVE_ON_EXIT</primary></indexterm><programlisting>#define AMITK_PREFERENCES_PROMPT_FOR_SAVE_ON_EXIT(object) (AMITK_PREFERENCES(object)-&gt;prompt_for_save_on_exit)
</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>object</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="AMITK-PREFERENCES-SAVE-XIF-AS-DIRECTORY:CAPS" role="macro"/>AMITK_PREFERENCES_SAVE_XIF_AS_DIRECTORY()</title>
<indexterm><primary>AMITK_PREFERENCES_SAVE_XIF_AS_DIRECTORY</primary></indexterm><programlisting>#define AMITK_PREFERENCES_SAVE_XIF_AS_DIRECTORY(object)   (AMITK_PREFERENCES(object)-&gt;save_xif_as_directory)
</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>object</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="AMITK-PREFERENCES-DEFAULT-DIRECTORY:CAPS" role="macro"/>AMITK_PREFERENCES_DEFAULT_DIRECTORY()</title>
<indexterm><primary>AMITK_PREFERENCES_DEFAULT_DIRECTORY</primary></indexterm><programlisting>#define AMITK_PREFERENCES_DEFAULT_DIRECTORY(object)       (AMITK_PREFERENCES(object)-&gt;default_directory)
</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>object</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="AMITK-PREFERENCES-CANVAS-ROI-WIDTH:CAPS" role="macro"/>AMITK_PREFERENCES_CANVAS_ROI_WIDTH()</title>
<indexterm><primary>AMITK_PREFERENCES_CANVAS_ROI_WIDTH</primary></indexterm><programlisting>#define AMITK_PREFERENCES_CANVAS_ROI_WIDTH(pref)                (AMITK_PREFERENCES(pref)-&gt;canvas_roi_width)
</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>pref</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="AMITK-PREFERENCES-CANVAS-LINE-STYLE:CAPS" role="macro"/>AMITK_PREFERENCES_CANVAS_LINE_STYLE()</title>
<indexterm><primary>AMITK_PREFERENCES_CANVAS_LINE_STYLE</primary></indexterm><programlisting>#define AMITK_PREFERENCES_CANVAS_LINE_STYLE(pref)               (AMITK_PREFERENCES(pref)-&gt;canvas_line_style)
</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>pref</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="AMITK-PREFERENCES-CANVAS-FILL-ROI:CAPS" role="macro"/>AMITK_PREFERENCES_CANVAS_FILL_ROI()</title>
<indexterm><primary>AMITK_PREFERENCES_CANVAS_FILL_ROI</primary></indexterm><programlisting>#define AMITK_PREFERENCES_CANVAS_FILL_ROI(pref)                 (AMITK_PREFERENCES(pref)-&gt;canvas_fill_roi)
</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>pref</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="AMITK-PREFERENCES-CANVAS-LAYOUT:CAPS" role="macro"/>AMITK_PREFERENCES_CANVAS_LAYOUT()</title>
<indexterm><primary>AMITK_PREFERENCES_CANVAS_LAYOUT</primary></indexterm><programlisting>#define AMITK_PREFERENCES_CANVAS_LAYOUT(pref)                   (AMITK_PREFERENCES(pref)-&gt;canvas_layout)
</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>pref</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="AMITK-PREFERENCES-CANVAS-MAINTAIN-SIZE:CAPS" role="macro"/>AMITK_PREFERENCES_CANVAS_MAINTAIN_SIZE()</title>
<indexterm><primary>AMITK_PREFERENCES_CANVAS_MAINTAIN_SIZE</primary></indexterm><programlisting>#define AMITK_PREFERENCES_CANVAS_MAINTAIN_SIZE(pref)            (AMITK_PREFERENCES(pref)-&gt;canvas_maintain_size)
</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>pref</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="AMITK-PREFERENCES-CANVAS-TARGET-EMPTY-AREA:CAPS" role="macro"/>AMITK_PREFERENCES_CANVAS_TARGET_EMPTY_AREA()</title>
<indexterm><primary>AMITK_PREFERENCES_CANVAS_TARGET_EMPTY_AREA</primary></indexterm><programlisting>#define AMITK_PREFERENCES_CANVAS_TARGET_EMPTY_AREA(pref)        (AMITK_PREFERENCES(pref)-&gt;canvas_target_empty_area)
</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>pref</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="AMITK-PREFERENCES-PANEL-LAYOUT:CAPS" role="macro"/>AMITK_PREFERENCES_PANEL_LAYOUT()</title>
<indexterm><primary>AMITK_PREFERENCES_PANEL_LAYOUT</primary></indexterm><programlisting>#define AMITK_PREFERENCES_PANEL_LAYOUT(pref)                    (AMITK_PREFERENCES(pref)-&gt;panel_layout)
</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>pref</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="AMITK-PREFERENCES-COLOR-TABLE:CAPS" role="macro"/>AMITK_PREFERENCES_COLOR_TABLE()</title>
<indexterm><primary>AMITK_PREFERENCES_COLOR_TABLE</primary></indexterm><programlisting>#define AMITK_PREFERENCES_COLOR_TABLE(pref, modality)           (AMITK_PREFERENCES(pref)-&gt;color_table[modality])
</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>pref</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>modality</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="AMITK-PREFERENCES-WINDOW:CAPS" role="macro"/>AMITK_PREFERENCES_WINDOW()</title>
<indexterm><primary>AMITK_PREFERENCES_WINDOW</primary></indexterm><programlisting>#define AMITK_PREFERENCES_WINDOW(pref, which_window, limit)     (AMITK_PREFERENCES(pref)-&gt;window[which_window][limit])
</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>pref</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>which_window</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>limit</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="AMITK-PREFERENCES-THRESHOLD-STYLE:CAPS" role="macro"/>AMITK_PREFERENCES_THRESHOLD_STYLE()</title>
<indexterm><primary>AMITK_PREFERENCES_THRESHOLD_STYLE</primary></indexterm><programlisting>#define AMITK_PREFERENCES_THRESHOLD_STYLE(pref)                 (AMITK_PREFERENCES(pref)-&gt;threshold_style)
</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>pref</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="AMITK-PREFERENCES-DIALOG:CAPS" role="macro"/>AMITK_PREFERENCES_DIALOG()</title>
<indexterm><primary>AMITK_PREFERENCES_DIALOG</primary></indexterm><programlisting>#define AMITK_PREFERENCES_DIALOG(pref)                          (AMITK_PREFERENCES(pref)-&gt;dialog)
</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>pref</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="AMITK-PREFERENCES-DEFAULT-CANVAS-ROI-WIDTH:CAPS" role="macro"/>AMITK_PREFERENCES_DEFAULT_CANVAS_ROI_WIDTH</title>
<indexterm><primary>AMITK_PREFERENCES_DEFAULT_CANVAS_ROI_WIDTH</primary></indexterm><programlisting>#define AMITK_PREFERENCES_DEFAULT_CANVAS_ROI_WIDTH 2
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="AMITK-PREFERENCES-DEFAULT-CANVAS-LINE-STYLE:CAPS" role="macro"/>AMITK_PREFERENCES_DEFAULT_CANVAS_LINE_STYLE</title>
<indexterm><primary>AMITK_PREFERENCES_DEFAULT_CANVAS_LINE_STYLE</primary></indexterm><programlisting>#define AMITK_PREFERENCES_DEFAULT_CANVAS_LINE_STYLE GDK_LINE_SOLID
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="AMITK-PREFERENCES-DEFAULT-CANVAS-FILL-ROI:CAPS" role="macro"/>AMITK_PREFERENCES_DEFAULT_CANVAS_FILL_ROI</title>
<indexterm><primary>AMITK_PREFERENCES_DEFAULT_CANVAS_FILL_ROI</primary></indexterm><programlisting>#define AMITK_PREFERENCES_DEFAULT_CANVAS_FILL_ROI TRUE
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="AMITK-PREFERENCES-DEFAULT-CANVAS-LAYOUT:CAPS" role="macro"/>AMITK_PREFERENCES_DEFAULT_CANVAS_LAYOUT</title>
<indexterm><primary>AMITK_PREFERENCES_DEFAULT_CANVAS_LAYOUT</primary></indexterm><programlisting>#define AMITK_PREFERENCES_DEFAULT_CANVAS_LAYOUT AMITK_LAYOUT_LINEAR
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="AMITK-PREFERENCES-DEFAULT-CANVAS-MAINTAIN-SIZE:CAPS" role="macro"/>AMITK_PREFERENCES_DEFAULT_CANVAS_MAINTAIN_SIZE</title>
<indexterm><primary>AMITK_PREFERENCES_DEFAULT_CANVAS_MAINTAIN_SIZE</primary></indexterm><programlisting>#define AMITK_PREFERENCES_DEFAULT_CANVAS_MAINTAIN_SIZE TRUE
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="AMITK-PREFERENCES-DEFAULT-CANVAS-TARGET-EMPTY-AREA:CAPS" role="macro"/>AMITK_PREFERENCES_DEFAULT_CANVAS_TARGET_EMPTY_AREA</title>
<indexterm><primary>AMITK_PREFERENCES_DEFAULT_CANVAS_TARGET_EMPTY_AREA</primary></indexterm><programlisting>#define AMITK_PREFERENCES_DEFAULT_CANVAS_TARGET_EMPTY_AREA 5
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="AMITK-PREFERENCES-DEFAULT-PANEL-LAYOUT:CAPS" role="macro"/>AMITK_PREFERENCES_DEFAULT_PANEL_LAYOUT</title>
<indexterm><primary>AMITK_PREFERENCES_DEFAULT_PANEL_LAYOUT</primary></indexterm><programlisting>#define AMITK_PREFERENCES_DEFAULT_PANEL_LAYOUT AMITK_PANEL_LAYOUT_MIXED
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="AMITK-PREFERENCES-DEFAULT-WARNINGS-TO-CONSOLE:CAPS" role="macro"/>AMITK_PREFERENCES_DEFAULT_WARNINGS_TO_CONSOLE</title>
<indexterm><primary>AMITK_PREFERENCES_DEFAULT_WARNINGS_TO_CONSOLE</primary></indexterm><programlisting>#define AMITK_PREFERENCES_DEFAULT_WARNINGS_TO_CONSOLE FALSE
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="AMITK-PREFERENCES-DEFAULT-PROMPT-FOR-SAVE-ON-EXIT:CAPS" role="macro"/>AMITK_PREFERENCES_DEFAULT_PROMPT_FOR_SAVE_ON_EXIT</title>
<indexterm><primary>AMITK_PREFERENCES_DEFAULT_PROMPT_FOR_SAVE_ON_EXIT</primary></indexterm><programlisting>#define AMITK_PREFERENCES_DEFAULT_PROMPT_FOR_SAVE_ON_EXIT TRUE
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="AMITK-PREFERENCES-DEFAULT-SAVE-XIF-AS-DIRECTORY:CAPS" role="macro"/>AMITK_PREFERENCES_DEFAULT_SAVE_XIF_AS_DIRECTORY</title>
<indexterm><primary>AMITK_PREFERENCES_DEFAULT_SAVE_XIF_AS_DIRECTORY</primary></indexterm><programlisting>#define AMITK_PREFERENCES_DEFAULT_SAVE_XIF_AS_DIRECTORY FALSE
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="AMITK-PREFERENCES-DEFAULT-DEFAULT-DIRECTORY:CAPS" role="macro"/>AMITK_PREFERENCES_DEFAULT_DEFAULT_DIRECTORY</title>
<indexterm><primary>AMITK_PREFERENCES_DEFAULT_DEFAULT_DIRECTORY</primary></indexterm><programlisting>#define AMITK_PREFERENCES_DEFAULT_DEFAULT_DIRECTORY NULL
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="AMITK-PREFERENCES-DEFAULT-THRESHOLD-STYLE:CAPS" role="macro"/>AMITK_PREFERENCES_DEFAULT_THRESHOLD_STYLE</title>
<indexterm><primary>AMITK_PREFERENCES_DEFAULT_THRESHOLD_STYLE</primary></indexterm><programlisting>#define AMITK_PREFERENCES_DEFAULT_THRESHOLD_STYLE AMITK_THRESHOLD_STYLE_MIN_MAX
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="AMITK-PREFERENCES-MIN-ROI-WIDTH:CAPS" role="macro"/>AMITK_PREFERENCES_MIN_ROI_WIDTH</title>
<indexterm><primary>AMITK_PREFERENCES_MIN_ROI_WIDTH</primary></indexterm><programlisting>#define AMITK_PREFERENCES_MIN_ROI_WIDTH 1
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="AMITK-PREFERENCES-MAX-ROI-WIDTH:CAPS" role="macro"/>AMITK_PREFERENCES_MAX_ROI_WIDTH</title>
<indexterm><primary>AMITK_PREFERENCES_MAX_ROI_WIDTH</primary></indexterm><programlisting>#define AMITK_PREFERENCES_MAX_ROI_WIDTH 5
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="AMITK-PREFERENCES-MIN-TARGET-EMPTY-AREA:CAPS" role="macro"/>AMITK_PREFERENCES_MIN_TARGET_EMPTY_AREA</title>
<indexterm><primary>AMITK_PREFERENCES_MIN_TARGET_EMPTY_AREA</primary></indexterm><programlisting>#define AMITK_PREFERENCES_MIN_TARGET_EMPTY_AREA 0
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="AMITK-PREFERENCES-MAX-TARGET-EMPTY-AREA:CAPS" role="macro"/>AMITK_PREFERENCES_MAX_TARGET_EMPTY_AREA</title>
<indexterm><primary>AMITK_PREFERENCES_MAX_TARGET_EMPTY_AREA</primary></indexterm><programlisting>#define AMITK_PREFERENCES_MAX_TARGET_EMPTY_AREA 25
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="AmitkPreferences" role="struct"/>AmitkPreferences</title>
<indexterm><primary>AmitkPreferences</primary></indexterm><programlisting>typedef struct {
  GObject parent;

  /* debug preferences */
  gboolean warnings_to_console;

  /* file saving preferences */
  gboolean prompt_for_save_on_exit;
  gboolean save_xif_as_directory;
  gchar * default_directory;

  /* canvas preferences -&gt; study preferences */
  gint canvas_roi_width;
  GdkLineStyle canvas_line_style;
  gboolean canvas_fill_roi;
  AmitkLayout canvas_layout;
  gboolean canvas_maintain_size;
  gint canvas_target_empty_area; /* in pixels */
  AmitkPanelLayout panel_layout;

  /* data set preferences */
  AmitkColorTable color_table[AMITK_MODALITY_NUM];
  amide_data_t window[AMITK_WINDOW_NUM][AMITK_LIMIT_NUM];
  AmitkThresholdStyle threshold_style;

  /* misc pointers */
  GtkWidget * dialog;
} AmitkPreferences;
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="amitk-preferences-new" role="function"/>amitk_preferences_new ()</title>
<indexterm><primary>amitk_preferences_new</primary></indexterm><programlisting><link linkend="AmitkPreferences">AmitkPreferences</link>*   amitk_preferences_new               (void);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="amitk-preferences-set-canvas-roi-width" role="function"/>amitk_preferences_set_canvas_roi_width ()</title>
<indexterm><primary>amitk_preferences_set_canvas_roi_width</primary></indexterm><programlisting><link linkend="void">void</link>                amitk_preferences_set_canvas_roi_width
                                                        (<link linkend="AmitkPreferences">AmitkPreferences</link> *preferences,
                                                         <link linkend="gint">gint</link> roi_width);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>preferences</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>roi_width</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="amitk-preferences-set-canvas-line-style" role="function"/>amitk_preferences_set_canvas_line_style ()</title>
<indexterm><primary>amitk_preferences_set_canvas_line_style</primary></indexterm><programlisting><link linkend="void">void</link>                amitk_preferences_set_canvas_line_style
                                                        (<link linkend="AmitkPreferences">AmitkPreferences</link> *preferences,
                                                         <link linkend="GdkLineStyle">GdkLineStyle</link> line_style);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>preferences</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>line_style</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="amitk-preferences-set-canvas-fill-roi" role="function"/>amitk_preferences_set_canvas_fill_roi ()</title>
<indexterm><primary>amitk_preferences_set_canvas_fill_roi</primary></indexterm><programlisting><link linkend="void">void</link>                amitk_preferences_set_canvas_fill_roi
                                                        (<link linkend="AmitkPreferences">AmitkPreferences</link> *preferences,
                                                         <link linkend="gboolean">gboolean</link> fill_roi);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>preferences</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>fill_roi</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="amitk-preferences-set-canvas-layout" role="function"/>amitk_preferences_set_canvas_layout ()</title>
<indexterm><primary>amitk_preferences_set_canvas_layout</primary></indexterm><programlisting><link linkend="void">void</link>                amitk_preferences_set_canvas_layout (<link linkend="AmitkPreferences">AmitkPreferences</link> *preferences,
                                                         <link linkend="AmitkLayout">AmitkLayout</link> layout);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>preferences</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>layout</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="amitk-preferences-set-canvas-maintain-size" role="function"/>amitk_preferences_set_canvas_maintain_size ()</title>
<indexterm><primary>amitk_preferences_set_canvas_maintain_size</primary></indexterm><programlisting><link linkend="void">void</link>                amitk_preferences_set_canvas_maintain_size
                                                        (<link linkend="AmitkPreferences">AmitkPreferences</link> *preferences,
                                                         <link linkend="gboolean">gboolean</link> maintain_size);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>preferences</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>maintain_size</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="amitk-preferences-set-canvas-target-empty-area" role="function"/>amitk_preferences_set_canvas_target_empty_area ()</title>
<indexterm><primary>amitk_preferences_set_canvas_target_empty_area</primary></indexterm><programlisting><link linkend="void">void</link>                amitk_preferences_set_canvas_target_empty_area
                                                        (<link linkend="AmitkPreferences">AmitkPreferences</link> *preferences,
                                                         <link linkend="gint">gint</link> target_empty_area);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>preferences</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>target_empty_area</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="amitk-preferences-set-panel-layout" role="function"/>amitk_preferences_set_panel_layout ()</title>
<indexterm><primary>amitk_preferences_set_panel_layout</primary></indexterm><programlisting><link linkend="void">void</link>                amitk_preferences_set_panel_layout  (<link linkend="AmitkPreferences">AmitkPreferences</link> *preferences,
                                                         <link linkend="AmitkPanelLayout">AmitkPanelLayout</link> panel_layout);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>preferences</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>panel_layout</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="amitk-preferences-set-warnings-to-console" role="function"/>amitk_preferences_set_warnings_to_console ()</title>
<indexterm><primary>amitk_preferences_set_warnings_to_console</primary></indexterm><programlisting><link linkend="void">void</link>                amitk_preferences_set_warnings_to_console
                                                        (<link linkend="AmitkPreferences">AmitkPreferences</link> *preferences,
                                                         <link linkend="gboolean">gboolean</link> new_value);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>preferences</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>new_value</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="amitk-preferences-set-prompt-for-save-on-exit" role="function"/>amitk_preferences_set_prompt_for_save_on_exit ()</title>
<indexterm><primary>amitk_preferences_set_prompt_for_save_on_exit</primary></indexterm><programlisting><link linkend="void">void</link>                amitk_preferences_set_prompt_for_save_on_exit
                                                        (<link linkend="AmitkPreferences">AmitkPreferences</link> *preferences,
                                                         <link linkend="gboolean">gboolean</link> new_value);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>preferences</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>new_value</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="amitk-preferences-set-xif-as-directory" role="function"/>amitk_preferences_set_xif_as_directory ()</title>
<indexterm><primary>amitk_preferences_set_xif_as_directory</primary></indexterm><programlisting><link linkend="void">void</link>                amitk_preferences_set_xif_as_directory
                                                        (<link linkend="AmitkPreferences">AmitkPreferences</link> *preferences,
                                                         <link linkend="gboolean">gboolean</link> new_value);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>preferences</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>new_value</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="amitk-preferences-set-default-directory" role="function"/>amitk_preferences_set_default_directory ()</title>
<indexterm><primary>amitk_preferences_set_default_directory</primary></indexterm><programlisting><link linkend="void">void</link>                amitk_preferences_set_default_directory
                                                        (<link linkend="AmitkPreferences">AmitkPreferences</link> *preferences,
                                                         const <link linkend="gchar">gchar</link> *directory);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>preferences</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>directory</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="amitk-preferences-set-color-table" role="function"/>amitk_preferences_set_color_table ()</title>
<indexterm><primary>amitk_preferences_set_color_table</primary></indexterm><programlisting><link linkend="void">void</link>                amitk_preferences_set_color_table   (<link linkend="AmitkPreferences">AmitkPreferences</link> *preferences,
                                                         <link linkend="AmitkModality">AmitkModality</link> modality,
                                                         <link linkend="AmitkColorTable">AmitkColorTable</link> color_table);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>preferences</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>modality</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>color_table</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="amitk-preferences-set-default-window" role="function"/>amitk_preferences_set_default_window ()</title>
<indexterm><primary>amitk_preferences_set_default_window</primary></indexterm><programlisting><link linkend="void">void</link>                amitk_preferences_set_default_window
                                                        (<link linkend="AmitkPreferences">AmitkPreferences</link> *preferences,
                                                         const <link linkend="AmitkWindow">AmitkWindow</link> window,
                                                         const <link linkend="AmitkLimit">AmitkLimit</link> limit,
                                                         const <link linkend="amide-data-t">amide_data_t</link> value);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>preferences</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>window</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>limit</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>value</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="amitk-preferences-set-threshold-style" role="function"/>amitk_preferences_set_threshold_style ()</title>
<indexterm><primary>amitk_preferences_set_threshold_style</primary></indexterm><programlisting><link linkend="void">void</link>                amitk_preferences_set_threshold_style
                                                        (<link linkend="AmitkPreferences">AmitkPreferences</link> *preferences,
                                                         const <link linkend="AmitkThresholdStyle">AmitkThresholdStyle</link> threshold_style);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>preferences</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>threshold_style</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="amitk-preferences-set-dialog" role="function"/>amitk_preferences_set_dialog ()</title>
<indexterm><primary>amitk_preferences_set_dialog</primary></indexterm><programlisting><link linkend="void">void</link>                amitk_preferences_set_dialog        (<link linkend="AmitkPreferences">AmitkPreferences</link> *preferences,
                                                         <link linkend="GtkWidget">GtkWidget</link> *dialog);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>preferences</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>dialog</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>




</refentry>
