Inherits Foodolini::Activities::IActivity.
Public Member Functions | |
PersonViewer () | |
void | HandleShown (object sender, EventArgs e) |
void | Register (IOwner owner) |
Makes some buttons and the Exercise-browser usable when the user logs in. | |
void | Unregister () |
Unsubscribe to the events exposed by owner, and loose any references to owner. | |
Protected Member Functions | |
virtual void | Build () |
virtual void | btEditUserProfileOnClick (object sender, System.EventArgs e) |
Edits user profile. | |
virtual void | CancelOnClick (object sender, System.EventArgs e) |
virtual void | RegExOnClicked (object sender, System.EventArgs e) |
Opens up RegisterExerciseDialog for the user to add new exercise. | |
virtual void | EditExOnClicked (object sender, System.EventArgs e) |
Edits an exercise chosen in the nodeview. | |
virtual void | OnBtDeleteExClicked (object sender, System.EventArgs e) |
Deletes the exercise marked in the nodeview. | |
virtual void | OnExerciseViewCursorChanged (object sender, System.EventArgs e) |
Checks if an exercise is marked in the nodeview. If it is not, the buttons "Edit" and "Delete" cannot be used. | |
Properties | |
Widget | Widget [get] |
Private Member Functions | |
void | UpDateUser () |
void | HandleUserChanged (object sender, PersonEventArgs e) |
void | PopulateExerciseList () |
Updates the list of exercises performed by the logged-in user. | |
Private Attributes | |
Gtk.HBox | hbox2 |
Gtk.VBox | vbox2 |
Gtk.Table | table2PersonViewer |
Gtk.HBox | hbox3 |
Gtk.Label | lbDiet |
Gtk.Label | label2 |
Gtk.Label | label3 |
Gtk.Label | label4 |
Gtk.Label | label5 |
Gtk.Label | label7 |
Gtk.Label | lbDateBirth |
Gtk.Label | lbFullName |
Gtk.Label | lbHeight |
Gtk.Label | lbUserName |
Gtk.Label | lbWeight |
Gtk.VBox | vbox3 |
Gtk.HButtonBox | hbuttonbox6 |
Gtk.Button | btChangeDiet |
Gtk.HButtonBox | hbuttonbox2 |
Gtk.Button | button314UserProf |
Gtk.VBox | vbox4 |
Gtk.VBox | vbox5ViewExercises |
Gtk.Label | lbExercises |
Gtk.HBox | hbox1 |
Gtk.VBox | vbox6 |
Gtk.ScrolledWindow | GtkScrolledWindow |
Gtk.NodeView | ExerciseView |
Gtk.HButtonBox | hbuttonbox3 |
Gtk.Button | btDeleteEx |
Gtk.Button | btEditEx |
Gtk.Button | btRegisterEx |
IOwner | owner |
Foodolini.BusinessLogic.Person | currentUser |
NodeStore | exerciseList = new NodeStore(typeof(ExerciseAdapter)) |
Definition at line 14 of file Foodolini.Activities.Person.PersonViewer.cs.
Foodolini.Activities.Person.PersonViewer.PersonViewer | ( | ) |
Definition at line 20 of file PersonViewer.cs.
virtual void Foodolini.Activities.Person.PersonViewer.btEditUserProfileOnClick | ( | object | sender, | |
System.EventArgs | e | |||
) | [protected, virtual] |
Edits user profile.
Definition at line 113 of file PersonViewer.cs.
virtual void Foodolini.Activities.Person.PersonViewer.Build | ( | ) | [protected, virtual] |
Definition at line 78 of file Foodolini.Activities.Person.PersonViewer.cs.
virtual void Foodolini.Activities.Person.PersonViewer.CancelOnClick | ( | object | sender, | |
System.EventArgs | e | |||
) | [protected, virtual] |
Definition at line 128 of file PersonViewer.cs.
virtual void Foodolini.Activities.Person.PersonViewer.EditExOnClicked | ( | object | sender, | |
System.EventArgs | e | |||
) | [protected, virtual] |
Edits an exercise chosen in the nodeview.
sender | A System.Object | |
e | A System.EventArgs |
Definition at line 163 of file PersonViewer.cs.
void Foodolini.Activities.Person.PersonViewer.HandleShown | ( | object | sender, | |
EventArgs | e | |||
) |
Definition at line 44 of file PersonViewer.cs.
void Foodolini.Activities.Person.PersonViewer.HandleUserChanged | ( | object | sender, | |
PersonEventArgs | e | |||
) | [private] |
Definition at line 89 of file PersonViewer.cs.
virtual void Foodolini.Activities.Person.PersonViewer.OnBtDeleteExClicked | ( | object | sender, | |
System.EventArgs | e | |||
) | [protected, virtual] |
Deletes the exercise marked in the nodeview.
sender | A System.Object | |
e | A System.EventArgs |
Definition at line 187 of file PersonViewer.cs.
virtual void Foodolini.Activities.Person.PersonViewer.OnExerciseViewCursorChanged | ( | object | sender, | |
System.EventArgs | e | |||
) | [protected, virtual] |
Checks if an exercise is marked in the nodeview. If it is not, the buttons "Edit" and "Delete" cannot be used.
sender | A System.Object | |
e | A System.EventArgs |
Definition at line 223 of file PersonViewer.cs.
void Foodolini.Activities.Person.PersonViewer.PopulateExerciseList | ( | ) | [private] |
Updates the list of exercises performed by the logged-in user.
Definition at line 206 of file PersonViewer.cs.
virtual void Foodolini.Activities.Person.PersonViewer.RegExOnClicked | ( | object | sender, | |
System.EventArgs | e | |||
) | [protected, virtual] |
Opens up RegisterExerciseDialog for the user to add new exercise.
sender | A System.Object | |
e | A System.EventArgs |
Definition at line 142 of file PersonViewer.cs.
void Foodolini.Activities.Person.PersonViewer.Register | ( | IOwner | owner | ) |
Makes some buttons and the Exercise-browser usable when the user logs in.
Implements Foodolini.Activities.IActivity.
Definition at line 98 of file PersonViewer.cs.
void Foodolini.Activities.Person.PersonViewer.Unregister | ( | ) |
Unsubscribe to the events exposed by owner, and loose any references to owner.
Implements Foodolini.Activities.IActivity.
Definition at line 103 of file PersonViewer.cs.
void Foodolini.Activities.Person.PersonViewer.UpDateUser | ( | ) | [private] |
Definition at line 50 of file PersonViewer.cs.
Gtk.Button Foodolini.Activities.Person.PersonViewer.btChangeDiet [private] |
Definition at line 50 of file Foodolini.Activities.Person.PersonViewer.cs.
Gtk.Button Foodolini.Activities.Person.PersonViewer.btDeleteEx [private] |
Definition at line 72 of file Foodolini.Activities.Person.PersonViewer.cs.
Gtk.Button Foodolini.Activities.Person.PersonViewer.btEditEx [private] |
Definition at line 74 of file Foodolini.Activities.Person.PersonViewer.cs.
Gtk.Button Foodolini.Activities.Person.PersonViewer.btRegisterEx [private] |
Definition at line 76 of file Foodolini.Activities.Person.PersonViewer.cs.
Gtk.Button Foodolini.Activities.Person.PersonViewer.button314UserProf [private] |
Definition at line 54 of file Foodolini.Activities.Person.PersonViewer.cs.
Definition at line 16 of file PersonViewer.cs.
NodeStore Foodolini.Activities.Person.PersonViewer.exerciseList = new NodeStore(typeof(ExerciseAdapter)) [private] |
Definition at line 17 of file PersonViewer.cs.
Gtk.NodeView Foodolini.Activities.Person.PersonViewer.ExerciseView [private] |
Definition at line 68 of file Foodolini.Activities.Person.PersonViewer.cs.
Gtk.ScrolledWindow Foodolini.Activities.Person.PersonViewer.GtkScrolledWindow [private] |
Definition at line 66 of file Foodolini.Activities.Person.PersonViewer.cs.
Gtk.HBox Foodolini.Activities.Person.PersonViewer.hbox1 [private] |
Definition at line 62 of file Foodolini.Activities.Person.PersonViewer.cs.
Gtk.HBox Foodolini.Activities.Person.PersonViewer.hbox2 [private] |
Definition at line 16 of file Foodolini.Activities.Person.PersonViewer.cs.
Gtk.HBox Foodolini.Activities.Person.PersonViewer.hbox3 [private] |
Definition at line 22 of file Foodolini.Activities.Person.PersonViewer.cs.
Gtk.HButtonBox Foodolini.Activities.Person.PersonViewer.hbuttonbox2 [private] |
Definition at line 52 of file Foodolini.Activities.Person.PersonViewer.cs.
Gtk.HButtonBox Foodolini.Activities.Person.PersonViewer.hbuttonbox3 [private] |
Definition at line 70 of file Foodolini.Activities.Person.PersonViewer.cs.
Gtk.HButtonBox Foodolini.Activities.Person.PersonViewer.hbuttonbox6 [private] |
Definition at line 48 of file Foodolini.Activities.Person.PersonViewer.cs.
Gtk.Label Foodolini.Activities.Person.PersonViewer.label2 [private] |
Definition at line 26 of file Foodolini.Activities.Person.PersonViewer.cs.
Gtk.Label Foodolini.Activities.Person.PersonViewer.label3 [private] |
Definition at line 28 of file Foodolini.Activities.Person.PersonViewer.cs.
Gtk.Label Foodolini.Activities.Person.PersonViewer.label4 [private] |
Definition at line 30 of file Foodolini.Activities.Person.PersonViewer.cs.
Gtk.Label Foodolini.Activities.Person.PersonViewer.label5 [private] |
Definition at line 32 of file Foodolini.Activities.Person.PersonViewer.cs.
Gtk.Label Foodolini.Activities.Person.PersonViewer.label7 [private] |
Definition at line 34 of file Foodolini.Activities.Person.PersonViewer.cs.
Gtk.Label Foodolini.Activities.Person.PersonViewer.lbDateBirth [private] |
Definition at line 36 of file Foodolini.Activities.Person.PersonViewer.cs.
Gtk.Label Foodolini.Activities.Person.PersonViewer.lbDiet [private] |
Definition at line 24 of file Foodolini.Activities.Person.PersonViewer.cs.
Gtk.Label Foodolini.Activities.Person.PersonViewer.lbExercises [private] |
Definition at line 60 of file Foodolini.Activities.Person.PersonViewer.cs.
Gtk.Label Foodolini.Activities.Person.PersonViewer.lbFullName [private] |
Definition at line 38 of file Foodolini.Activities.Person.PersonViewer.cs.
Gtk.Label Foodolini.Activities.Person.PersonViewer.lbHeight [private] |
Definition at line 40 of file Foodolini.Activities.Person.PersonViewer.cs.
Gtk.Label Foodolini.Activities.Person.PersonViewer.lbUserName [private] |
Definition at line 42 of file Foodolini.Activities.Person.PersonViewer.cs.
Gtk.Label Foodolini.Activities.Person.PersonViewer.lbWeight [private] |
Definition at line 44 of file Foodolini.Activities.Person.PersonViewer.cs.
Definition at line 15 of file PersonViewer.cs.
Gtk.Table Foodolini.Activities.Person.PersonViewer.table2PersonViewer [private] |
Definition at line 20 of file Foodolini.Activities.Person.PersonViewer.cs.
Gtk.VBox Foodolini.Activities.Person.PersonViewer.vbox2 [private] |
Definition at line 18 of file Foodolini.Activities.Person.PersonViewer.cs.
Gtk.VBox Foodolini.Activities.Person.PersonViewer.vbox3 [private] |
Definition at line 46 of file Foodolini.Activities.Person.PersonViewer.cs.
Gtk.VBox Foodolini.Activities.Person.PersonViewer.vbox4 [private] |
Definition at line 56 of file Foodolini.Activities.Person.PersonViewer.cs.
Gtk.VBox Foodolini.Activities.Person.PersonViewer.vbox5ViewExercises [private] |
Definition at line 58 of file Foodolini.Activities.Person.PersonViewer.cs.
Gtk.VBox Foodolini.Activities.Person.PersonViewer.vbox6 [private] |
Definition at line 64 of file Foodolini.Activities.Person.PersonViewer.cs.
Widget Foodolini.Activities.Person.PersonViewer.Widget [get] |
Returns the widget that represents the Person viewer.
Implements Foodolini.Activities.IActivity.
Definition at line 242 of file PersonViewer.cs.