[Main]
Name=MO_digestOptions
Type=Function
Subtype=ROM Call
Header Files=events.h
Definition=void MO_digestOptions (short Folder);

[ROM Call]
Index=$DB

[Description]
Updates system mode settings from options structure.

[Explanation]
MO_digestOptions "digests" options from the <A HREF="$$LINK(events.h/ModeSettings)">ModeSettings</A>
structure (in other words, the <A HREF="$$LINK(events.h/MO_option)">MO_option</A> array)
into the various TIOS system variables. It should be called after each change of the options
structure to notify the calculator about changes. This routine may change the status line
indicators. It also notifies all applications about eventual changes, if there was any
essential changes (using <A HREF="$$LINK(events.h/MO_notifyModeChange)">MO_notifyModeChange</A>). If new
mode settings need a change of current application or side, it may also quit an application
(see <A HREF="$$LINK(events.h/MO_sendQuit)">MO_sendQuit</A>), switch sides, start a new applications/tasks
etc. which in fact means sending a sequence of messages to applications (see
<A HREF="$$LINK(events.h/EV_startApp)">EV_startApp</A> etc.).
<BR><BR>
Parameter <I>Folder</I> is the index (ordinal number) of the current folder in the folder
list. Under normal conditions, you should always pass zero to this parameter. The mode dialog
box calls MO_digestOptions with non-zero argument to indicate which folder name is highlighted
in the "Current Folder" popup menu.

[References]
In=events.h/EV_defaultHandler, events.h/MO_defaults, events.h/MO_modeDialog, basfunc.h/push_setmode, graphing.h/gdb_recall, link.h/OSLinkCmd, unknown.h/EV_quit
Out=events.h/EV_notifySwitchGraph, events.h/EV_sendEventSide, events.h/EV_startSide, events.h/EV_startTask, events.h/MO_isMultigraphTask, events.h/MO_notifyModeChange, events.h/MO_option, events.h/MO_sendQuit, estack.h/next_expression_index, menus.h/PopupText, statline.h/ST_angle, statline.h/ST_folder, statline.h/ST_precision, string.h/cmpstri, string.h/strcmp, system.h/XR_stringPtr, system.h/CTypeTable, unknown.h/EV_appA, unknown.h/EV_appB, unknown.h/EV_appSide, unknown.h/EV_currentApp, unknown.h/init_unit_system, unknown.h/OO_firstACB, unknown.h/OO_GetAppAttr, unknown.h/OO_NextACB, vat.h/FolderCur, vat.h/StrToTokN, unknown.h/_ROM_CALL_41C, unknown.h/_ROM_CALL_41D, unknown.h/_ROM_CALL_41E, unknown.h/_ROM_CALL_471
Out_EV_eventLoop=1
