Foodolini.Activities.ShoppingListActivity Class Reference

Inherits Foodolini::Activities::IActivity.

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

List of all members.

Public Member Functions

 ShoppingListActivity ()
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.
void AddRecipe (Recipe recipe, double servings)
 Add all ingredients needed for the recipe to the shoppinglist.

Protected Member Functions

virtual void Build ()
virtual void OnBtnClearActivated (object sender, System.EventArgs e)
virtual void OnBtnAddIngredientClicked (object sender, System.EventArgs e)
virtual void OnBtnPrintClicked (object sender, System.EventArgs e)
 Prints the shopping shoppingList.
virtual void OnBtnCookbookClicked (object sender, System.EventArgs e)
 Goes to the cookbook activity.
virtual void OnBtnDeleteClicked (object sender, System.EventArgs e)
 Deletes an item from the shopping shoppingList.
virtual void OnShoppingListViewerCursorChanged (object sender, System.EventArgs e)
virtual void OnShoppingListViewerRowActivated (object o, Gtk.RowActivatedArgs args)
 Changes the ingredient in shoppinglist item.

Properties

Widget Widget [get]

Detailed Description

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


Constructor & Destructor Documentation

Foodolini.Activities.ShoppingListActivity.ShoppingListActivity (  ) 

Definition at line 19 of file ShoppingListActivity.cs.


Member Function Documentation

void Foodolini.Activities.ShoppingListActivity.AddRecipe ( Recipe  recipe,
double  servings 
)

Add all ingredients needed for the recipe to the shoppinglist.

This is all ingredients, and does not depend on what is on storage. If the nature of the shoppinglist is changed in the future, this may change.

Definition at line 121 of file ShoppingListActivity.cs.

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

Definition at line 34 of file Foodolini.Activities.ShoppingListActivity.cs.

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

Definition at line 100 of file ShoppingListActivity.cs.

Here is the call graph for this function:

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

Definition at line 94 of file ShoppingListActivity.cs.

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

Goes to the cookbook activity.

Parameters:
sender 
e 

Definition at line 290 of file ShoppingListActivity.cs.

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

Deletes an item from the shopping shoppingList.

Parameters:
sender 
e 

Definition at line 300 of file ShoppingListActivity.cs.

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

Prints the shopping shoppingList.

Parameters:
sender 
e 

Definition at line 134 of file ShoppingListActivity.cs.

Here is the call graph for this function:

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

Definition at line 316 of file ShoppingListActivity.cs.

virtual void Foodolini.Activities.ShoppingListActivity.OnShoppingListViewerRowActivated ( object  o,
Gtk.RowActivatedArgs  args 
) [protected, virtual]

Changes the ingredient in shoppinglist item.

Parameters:
o A System.Object
args A Gtk.RowActivatedArgs

Definition at line 330 of file ShoppingListActivity.cs.

void Foodolini.Activities.ShoppingListActivity.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 31 of file ShoppingListActivity.cs.

void Foodolini.Activities.ShoppingListActivity.Unregister (  ) 

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

Implements Foodolini.Activities.IActivity.

Definition at line 88 of file ShoppingListActivity.cs.


Property Documentation

Widget Foodolini.Activities.ShoppingListActivity.Widget [get]

Implements Foodolini.Activities.IActivity.

Definition at line 25 of file ShoppingListActivity.cs.


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

Generated on Thu Dec 10 14:04:17 2009 for Foodolini by  doxygen 1.6.1