Foodolini.Activities.Cookbook.CookbookActivity Class Reference

Inherits Foodolini::Activities::IActivity.

Collaboration diagram for Foodolini.Activities.Cookbook.CookbookActivity:
Collaboration graph

List of all members.

Public Member Functions

 CookbookActivity ()
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 OnBtnSearchClicked (object sender, System.EventArgs e)
 Searches in the database for Recipes that fit the chosen criteria.
virtual void OnEntSearchRecipesActivated (object sender, System.EventArgs e)
 Searches in the database for Recipes that fit the chosen criteria.
virtual void SearchCriteriaChanged (object sender, System.EventArgs e)
 Sets the sensitivity on th scalebuttons i the advanced search criteria to true or false whether Expiration date and/or rating is selected as a search criteria.
virtual void ViewRecipe (object sender, System.EventArgs e)
 Views the selected Recipe in a RecipeViewer to the right. If one is already viewn this is destroyed.
virtual void OnCreateRecipeClick (object sender, System.EventArgs e)
 Opens the "Create recipe" activity where a new recipe can be created.
virtual void EditRecipe (object o, Gtk.RowActivatedArgs args)
 Opens the "Edit recipe" activity wher an existing recipe can be editted.
virtual void Build ()

Properties

Widget Widget [get]

Private Member Functions

void SearchRecipes ()
 Searches in the database for Recipes that fit the chosen criteria.
void HandleOnRecipeViewed (object sender, RecipeEventArgs e)
 Searches the cookbook again when a change has been made to a recipe.
void HandleOnRecipeCreated (object sender, RecipeEventArgs e)
 Adds a recipe to the search results when created a new one.

Private Attributes

IOwner owner
NodeStore recipeStorage = new NodeStore(typeof(RecipeAdapter))
RecipeViewer recipeViewer = null
Gtk.HBox bxCookbook
Gtk.VBox bxSearchRecipe
Gtk.HBox hbox3
Gtk.Table table2
Gtk.Entry entSearchRecipes
Gtk.Expander expAdvancedCriteria
Gtk.Table table1
Gtk.CheckButton cbExpirateDate
Gtk.CheckButton cbRating
Gtk.HScale scExpirationDate
Gtk.HScale scRating
Gtk.Label GtkLabel8
Gtk.HBox hbox2
Gtk.Label label3
Gtk.Button btnSearch
Gtk.HBox hbox4
Gtk.CheckButton cbBreakfast
Gtk.CheckButton cbLunch
Gtk.CheckButton cbDinner
Gtk.CheckButton cbOther
Gtk.HSeparator hseparator1
Gtk.Label label1
Gtk.Label label2
Gtk.Label label5
Gtk.ScrolledWindow GtkScrolledWindow
Gtk.NodeView nvRecipes
Gtk.HBox hbox5
Gtk.Button btnCreateRecipe
Gtk.Label label4

Detailed Description

Definition at line 13 of file CookbookActivity.cs.


Constructor & Destructor Documentation

Foodolini.Activities.Cookbook.CookbookActivity.CookbookActivity (  ) 

Definition at line 19 of file CookbookActivity.cs.


Member Function Documentation

virtual void Foodolini.Activities.Cookbook.CookbookActivity.Build (  )  [protected, virtual]
virtual void Foodolini.Activities.Cookbook.CookbookActivity.EditRecipe ( object  o,
Gtk.RowActivatedArgs  args 
) [protected, virtual]

Opens the "Edit recipe" activity wher an existing recipe can be editted.

Definition at line 190 of file CookbookActivity.cs.

void Foodolini.Activities.Cookbook.CookbookActivity.HandleOnRecipeCreated ( object  sender,
RecipeEventArgs  e 
) [private]

Adds a recipe to the search results when created a new one.

Definition at line 143 of file CookbookActivity.cs.

void Foodolini.Activities.Cookbook.CookbookActivity.HandleOnRecipeViewed ( object  sender,
RecipeEventArgs  e 
) [private]

Searches the cookbook again when a change has been made to a recipe.

Definition at line 135 of file CookbookActivity.cs.

virtual void Foodolini.Activities.Cookbook.CookbookActivity.OnBtnSearchClicked ( object  sender,
System.EventArgs  e 
) [protected, virtual]

Searches in the database for Recipes that fit the chosen criteria.

Definition at line 52 of file CookbookActivity.cs.

virtual void Foodolini.Activities.Cookbook.CookbookActivity.OnCreateRecipeClick ( object  sender,
System.EventArgs  e 
) [protected, virtual]

Opens the "Create recipe" activity where a new recipe can be created.

Definition at line 181 of file CookbookActivity.cs.

virtual void Foodolini.Activities.Cookbook.CookbookActivity.OnEntSearchRecipesActivated ( object  sender,
System.EventArgs  e 
) [protected, virtual]

Searches in the database for Recipes that fit the chosen criteria.

Definition at line 60 of file CookbookActivity.cs.

void Foodolini.Activities.Cookbook.CookbookActivity.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 201 of file CookbookActivity.cs.

virtual void Foodolini.Activities.Cookbook.CookbookActivity.SearchCriteriaChanged ( object  sender,
System.EventArgs  e 
) [protected, virtual]

Sets the sensitivity on th scalebuttons i the advanced search criteria to true or false whether Expiration date and/or rating is selected as a search criteria.

Definition at line 126 of file CookbookActivity.cs.

void Foodolini.Activities.Cookbook.CookbookActivity.SearchRecipes (  )  [private]

Searches in the database for Recipes that fit the chosen criteria.

Definition at line 68 of file CookbookActivity.cs.

void Foodolini.Activities.Cookbook.CookbookActivity.Unregister (  ) 

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

Implements Foodolini.Activities.IActivity.

Definition at line 205 of file CookbookActivity.cs.

virtual void Foodolini.Activities.Cookbook.CookbookActivity.ViewRecipe ( object  sender,
System.EventArgs  e 
) [protected, virtual]

Views the selected Recipe in a RecipeViewer to the right. If one is already viewn this is destroyed.

Definition at line 153 of file CookbookActivity.cs.


Member Data Documentation

Definition at line 15 of file CookbookActivity.cs.

Definition at line 16 of file CookbookActivity.cs.

Definition at line 17 of file CookbookActivity.cs.


Property Documentation

Widget Foodolini.Activities.Cookbook.CookbookActivity.Widget [get]

Implements Foodolini.Activities.IActivity.

Definition at line 210 of file CookbookActivity.cs.


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

Foodolini 1.0.0 Documentation, generated with DoxyGen.