Food Dialog
Use the food dialog to enter and maintain food definitions.

The food dialog can be shown in several ways:
- By pressing the
button on the toolbar.
- Using the menu option Options>New Food
- By pressing Ctrl E on a food line in the Food View.
- Right clicking on a food in either the food finder or the main Food View
and selecting 'Edit Food'
Each food must have a unique name and specify the quantity on which the nutritional
information is based.
Foods can be renamed by simply changing the value in the name field..
The quantity entered must have a 'unit' (g, oz, slice...) defined, select standard
weight/volume units from the dropdown list or enter a portion name. The nutritional
information you enter below should be based on this quantity.
Use the 'Copy' button to copy all details from an existing food.
Foods can be defined in two ways:
- By directly defining their nutrient values on the Nutrition tab
- By building a new food definition from a list of existing foods (a recipe)
on the Ingredients tab.
The food dialog has five tab pages:
Nutrition Page

Keys available while editing the nutrients in the table:
| Key Action |
Description |
| Arrow Keys |
Move around the spreadsheet |
| Enter |
Edit the currently selected cell |
| Esc |
Cancel editing and revert to previous value (only valid while editing
a cell) |
This tab page shows the nutrition values for the quantity entered above.
Portions Page

Use this page to enter a set of named portions and relate them to the quantity/unit
entered in the header section.
For example the label on a yogurt may say that 100g contain 70 calories and
that 1pot is 125g, to input this information enter the 100g in the header section,
the 70 calories on the nutrition tab and add a portion entry for 1 pot = 125
g. By doing this you will be able to enter yogurt quantities in either weight
(g, oz, lb) or pots on the main food view.
Insert and delete lines using the 'Insert' and 'delete' buttons..
You need only enter a single weight and volume 'portion' since by entering
one the program can calculate all the others, for example given that the nutritional
information is based on 100g there is no need to enter a portion (conversion)
of 1oz = 28g since the program can already calculate this.
Note the special case of using Calories in the 'ToUnit' field to define a portion,
this was included because some food labels show 100g nutrient values and then
state that 1 portion is n calories without stating the portion weight.
Ingredients Page

If you want to create a new food definition from a list of ingredients, enter
the ingredients on this page.
The spreadsheet entry acts in the same way as on the Food View (except that
you cannot undo/redo).
You can copy food lines from the main view to the ingredients list using standard
cut/copy/paste.
You can create a new food from ingredients directly from the main food view
by selecting the required ingredients (using multi-select), right clicking to
show the context menu and selecting 'Make food from selected'.
When you enter ingredients the nutritional information on Nutrition tab is
updated to equal the sum of the nutrients for the ingredients.
When ingredients have been entered the Nutrient values on the Nutrition tab
become read only.
The columns shown on the Ingredients tab are the same as those on the Food
View.
The quantity/unit in the header section should be set to the sum of the ingredients
(e.g. the total weight of the resulting dish, the total number of portions etc.).
Categories Page

Use the Categories page to select the food categories to which this food belongs.
You can use the right-click context menu on food categories in the lower section
to add/remove/rename categories.
Note: When you first use the program no user categories will have been setup
so only the 'Top' category will be shown.
The top section shows the categories that include this food, the bottom section
shows all food categories.
To remove this food from a category, select the category in the top section
then press the 'Remove Category' button.
To add this food to a category, locate the category in the lower pane then
press the 'Add Category' button.
Notes Page

This page is a free text area where you can keep notes about this food (e.g.
recipe instructions).
General Notes
The 'Delete...' button is enabled for user entered foods (you cannot delete
any foods from the shipped database).
Changing the nutrition/portion values for an existing food does not update all
existing log entries for that food.