Foodolini.Activities.RecipeViewer Class Reference

An activity that show a selected recipe. More...

Inherits Foodolini::Activities::IActivity.

Collaboration diagram for Foodolini.Activities.RecipeViewer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 RecipeViewer ()
 Constructer that sets the images for rating and sets up the nodeview.
void SetParamenters (Recipe recipe)
 Method used to set the recipe to be viewed. Also views the detials of the recipe.
void Register (IOwner owner)
 Subscribe to the events exposed by owner, and store a reference to owner.
void Unregister ()
 Unsubscribe to the events exposed by owner, and loose any references to owner.

Protected Member Functions

virtual void Build ()
virtual void OnDeleteRecipeClick (object sender, System.EventArgs e)
 Deletes the current recipe.
virtual void OnSbMultiplierChanged (object sender, System.EventArgs e)
 Changes the amounts on the ingredients according to the number of servings chosen.
virtual void RateRecipe (object sender, System.EventArgs e)
 Saves the selected rating on the Recipe. Buttons are changed according to rating. Rate on Recipe not implemented.
virtual void ShowBigVersion (object sender, System.EventArgs e)
 Opens a big version of the image in a new window.
virtual void OnConsumeClick (object sender, System.EventArgs e)
 Opens a dialog where the people who attended the meal can be selected, and saves this on the selected people. Any leftovers are stored.
virtual void EditRecipe (object sender, System.EventArgs e)
 Opens a RecipeEditor where the current recipe can be edited.
virtual void OnStoreClick (object sender, System.EventArgs e)
 Converts the recipe to a food item, and stores it Not Implemented.
virtual void OnBtnRecipe2ShoppingListClicked (object sender, System.EventArgs e)
virtual void OnBtnCloseViewClicked (object sender, System.EventArgs e)

Properties

Widget Widget [get]

Events

EventHandler< RecipeEventArgsOnRecipeViewed
EventHandler< RecipeEventArgsOnRecipeEdited
EventHandler< RecipeEventArgsOnRecipeDeleted

Detailed Description

An activity that show a selected recipe.

Definition at line 14 of file Foodolini.Activities.RecipeViewer.cs.


Constructor & Destructor Documentation

Foodolini.Activities.RecipeViewer.RecipeViewer (  ) 

Constructer that sets the images for rating and sets up the nodeview.

Definition at line 37 of file RecipeViewer.cs.


Member Function Documentation

virtual void Foodolini.Activities.RecipeViewer.Build (  )  [protected, virtual]

Definition at line 84 of file Foodolini.Activities.RecipeViewer.cs.

virtual void Foodolini.Activities.RecipeViewer.EditRecipe ( object  sender,
System.EventArgs  e 
) [protected, virtual]

Opens a RecipeEditor where the current recipe can be edited.

Definition at line 414 of file RecipeViewer.cs.

Here is the call graph for this function:

virtual void Foodolini.Activities.RecipeViewer.OnBtnCloseViewClicked ( object  sender,
System.EventArgs  e 
) [protected, virtual]

Definition at line 479 of file RecipeViewer.cs.

virtual void Foodolini.Activities.RecipeViewer.OnBtnRecipe2ShoppingListClicked ( object  sender,
System.EventArgs  e 
) [protected, virtual]

Definition at line 473 of file RecipeViewer.cs.

virtual void Foodolini.Activities.RecipeViewer.OnConsumeClick ( object  sender,
System.EventArgs  e 
) [protected, virtual]

Opens a dialog where the people who attended the meal can be selected, and saves this on the selected people. Any leftovers are stored.

Definition at line 381 of file RecipeViewer.cs.

Here is the call graph for this function:

virtual void Foodolini.Activities.RecipeViewer.OnDeleteRecipeClick ( object  sender,
System.EventArgs  e 
) [protected, virtual]

Deletes the current recipe.

Definition at line 148 of file RecipeViewer.cs.

virtual void Foodolini.Activities.RecipeViewer.OnSbMultiplierChanged ( object  sender,
System.EventArgs  e 
) [protected, virtual]

Changes the amounts on the ingredients according to the number of servings chosen.

Definition at line 165 of file RecipeViewer.cs.

virtual void Foodolini.Activities.RecipeViewer.OnStoreClick ( object  sender,
System.EventArgs  e 
) [protected, virtual]

Converts the recipe to a food item, and stores it Not Implemented.

Definition at line 440 of file RecipeViewer.cs.

virtual void Foodolini.Activities.RecipeViewer.RateRecipe ( object  sender,
System.EventArgs  e 
) [protected, virtual]

Saves the selected rating on the Recipe. Buttons are changed according to rating. Rate on Recipe not implemented.

Definition at line 174 of file RecipeViewer.cs.

void Foodolini.Activities.RecipeViewer.Register ( IOwner  owner  ) 

Subscribe to the events exposed by owner, and store a reference to owner.

Parameters:
owner Instance of an implementation of IOwner

Implements Foodolini.Activities.IActivity.

Definition at line 456 of file RecipeViewer.cs.

void Foodolini.Activities.RecipeViewer.SetParamenters ( Recipe  recipe  ) 

Method used to set the recipe to be viewed. Also views the detials of the recipe.

Parameters:
recipe A Recipe

Definition at line 215 of file RecipeViewer.cs.

virtual void Foodolini.Activities.RecipeViewer.ShowBigVersion ( object  sender,
System.EventArgs  e 
) [protected, virtual]

Opens a big version of the image in a new window.

Definition at line 366 of file RecipeViewer.cs.

void Foodolini.Activities.RecipeViewer.Unregister (  ) 

Unsubscribe to the events exposed by owner, and loose any references to owner.

Implements Foodolini.Activities.IActivity.

Definition at line 461 of file RecipeViewer.cs.


Property Documentation

Widget Foodolini.Activities.RecipeViewer.Widget [get]

Implements Foodolini.Activities.IActivity.

Definition at line 466 of file RecipeViewer.cs.


Event Documentation

EventHandler<RecipeEventArgs> Foodolini.Activities.RecipeViewer.OnRecipeDeleted

Definition at line 90 of file RecipeViewer.cs.

EventHandler<RecipeEventArgs> Foodolini.Activities.RecipeViewer.OnRecipeEdited

Definition at line 89 of file RecipeViewer.cs.

EventHandler<RecipeEventArgs> Foodolini.Activities.RecipeViewer.OnRecipeViewed

Definition at line 88 of file RecipeViewer.cs.


The documentation for this class was generated from the following files:

Generated on Thu Dec 10 14:03:59 2009 for Foodolini by  doxygen 1.6.1