Foodolini.Activities.Ingredients.IngredientsActivity Class Reference

Inherits Foodolini::Activities::IActivity.

Collaboration diagram for Foodolini.Activities.Ingredients.IngredientsActivity:
Collaboration graph

List of all members.

Public Member Functions

 IngredientsActivity ()
 IngredientsActivity (Ingredient defaultSelection)
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 OnSearchEntryChanged (object sender, System.EventArgs e)
virtual void OnIngredientsViewRowActivated (object o, Gtk.RowActivatedArgs args)
virtual void OnIngredientsViewButtonPressEvent (object o, Gtk.ButtonPressEventArgs args)
virtual void OnCreateIngredientButtonClicked (object sender, System.EventArgs e)
virtual void OnIngredientsViewCursorChanged (object sender, System.EventArgs e)
 Notify that the selected ingredient has changed.
virtual void OnEditIngredientButtonClicked (object sender, System.EventArgs e)

Properties

IngredientAdapter SelectedNode [get]
internal Ingredient SelectedIngredient [get]
Widget Widget [get]

Events

EventHandler OnIngredientSelectionChanged

Private Member Functions

void LoadData ()
void LoadIngredients ()
void OpenEditDialog (IngredientAdapter selectedNode)
internal void SelectIngredient (Ingredient savedIngredient)

Private Attributes

Gtk.VBox vbox2
Gtk.HBox hbox1
Gtk.Label label1
Gtk.Entry SearchEntry
Gtk.ComboBox CategoryCombobox
Gtk.ScrolledWindow GtkScrolledWindow
Gtk.NodeView ingredientsView
Gtk.HBox hbox2
Gtk.Button CreateIngredientButton
Gtk.Button EditIngredientButton
NodeStore ingredientStore = new NodeStore(typeof(IngredientAdapter))
ListStore categoryStore = new ListStore(typeof(string))

Detailed Description

Definition at line 14 of file Foodolini.Activities.Ingredients.IngredientsActivity.cs.


Constructor & Destructor Documentation

Foodolini.Activities.Ingredients.IngredientsActivity.IngredientsActivity (  ) 

Definition at line 16 of file IngredientsActivity.cs.

Foodolini.Activities.Ingredients.IngredientsActivity.IngredientsActivity ( Ingredient  defaultSelection  ) 

Definition at line 22 of file IngredientsActivity.cs.


Member Function Documentation

virtual void Foodolini.Activities.Ingredients.IngredientsActivity.Build (  )  [protected, virtual]
void Foodolini.Activities.Ingredients.IngredientsActivity.LoadData (  )  [private]

Definition at line 49 of file IngredientsActivity.cs.

void Foodolini.Activities.Ingredients.IngredientsActivity.LoadIngredients (  )  [private]

Definition at line 91 of file IngredientsActivity.cs.

virtual void Foodolini.Activities.Ingredients.IngredientsActivity.OnCreateIngredientButtonClicked ( object  sender,
System.EventArgs  e 
) [protected, virtual]

Definition at line 205 of file IngredientsActivity.cs.

virtual void Foodolini.Activities.Ingredients.IngredientsActivity.OnEditIngredientButtonClicked ( object  sender,
System.EventArgs  e 
) [protected, virtual]

Definition at line 236 of file IngredientsActivity.cs.

virtual void Foodolini.Activities.Ingredients.IngredientsActivity.OnIngredientsViewButtonPressEvent ( object  o,
Gtk.ButtonPressEventArgs  args 
) [protected, virtual]

Definition at line 158 of file IngredientsActivity.cs.

virtual void Foodolini.Activities.Ingredients.IngredientsActivity.OnIngredientsViewCursorChanged ( object  sender,
System.EventArgs  e 
) [protected, virtual]

Notify that the selected ingredient has changed.

Parameters:
sender A System.Object
e A System.EventArgs

Definition at line 227 of file IngredientsActivity.cs.

virtual void Foodolini.Activities.Ingredients.IngredientsActivity.OnIngredientsViewRowActivated ( object  o,
Gtk.RowActivatedArgs  args 
) [protected, virtual]

Definition at line 151 of file IngredientsActivity.cs.

virtual void Foodolini.Activities.Ingredients.IngredientsActivity.OnSearchEntryChanged ( object  sender,
System.EventArgs  e 
) [protected, virtual]

Definition at line 114 of file IngredientsActivity.cs.

void Foodolini.Activities.Ingredients.IngredientsActivity.OpenEditDialog ( IngredientAdapter  selectedNode  )  [private]

Definition at line 124 of file IngredientsActivity.cs.

void Foodolini.Activities.Ingredients.IngredientsActivity.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 44 of file IngredientsActivity.cs.

internal void Foodolini.Activities.Ingredients.IngredientsActivity.SelectIngredient ( Ingredient  savedIngredient  )  [private]

Definition at line 178 of file IngredientsActivity.cs.

void Foodolini.Activities.Ingredients.IngredientsActivity.Unregister (  ) 

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

Implements Foodolini.Activities.IActivity.

Definition at line 109 of file IngredientsActivity.cs.


Member Data Documentation

ListStore Foodolini.Activities.Ingredients.IngredientsActivity.categoryStore = new ListStore(typeof(string)) [private]

Definition at line 14 of file IngredientsActivity.cs.

Definition at line 13 of file IngredientsActivity.cs.


Property Documentation

internal Ingredient Foodolini.Activities.Ingredients.IngredientsActivity.SelectedIngredient [get, private]

Definition at line 34 of file IngredientsActivity.cs.

IngredientAdapter Foodolini.Activities.Ingredients.IngredientsActivity.SelectedNode [get, private]

Definition at line 27 of file IngredientsActivity.cs.

Widget Foodolini.Activities.Ingredients.IngredientsActivity.Widget [get]

Implements Foodolini.Activities.IActivity.

Definition at line 247 of file IngredientsActivity.cs.


Event Documentation

EventHandler Foodolini.Activities.Ingredients.IngredientsActivity.OnIngredientSelectionChanged

Definition at line 216 of file IngredientsActivity.cs.


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

Foodolini 1.0.0 Documentation, generated with DoxyGen.