diff options
author | Lluis Sanchez <lluis@xamarin.com> | 2014-01-20 19:32:53 +0400 |
---|---|---|
committer | Lluis Sanchez Gual <lluis@xamarin.com> | 2014-10-21 18:39:14 +0400 |
commit | f73b2a9990495587d514aa1856919c21170a3940 (patch) | |
tree | 9842411ee8644ead5915a715ee7e53984a601df4 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/UserTasksView.cs | |
parent | a2046b6331a271e8203df7d3d0f14500d33d60fa (diff) |
Initial drop of the new project model
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/UserTasksView.cs')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/UserTasksView.cs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/UserTasksView.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/UserTasksView.cs index f0a97916a8..8757665453 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/UserTasksView.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/UserTasksView.cs @@ -72,7 +72,7 @@ namespace MonoDevelop.Ide.Tasks typeof (string), // priority typeof (bool), // completed typeof (string), // desc - typeof (Task), // user task + typeof (UserTask), // user task typeof (Gdk.Color), // foreground color typeof (int)); // font style @@ -157,7 +157,7 @@ namespace MonoDevelop.Ide.Tasks view.ScrollToPoint (0, 0); store.Clear (); - foreach (Task task in TaskService.UserTasks) { + foreach (UserTask task in TaskService.UserTasks) { store.AppendValues (GettextCatalog.GetString (Enum.GetName (typeof (TaskPriority), task.Priority)), task.Completed, task.Description, task, GetColorByPriority (task.Priority), task.Completed ? (int)Pango.Weight.Light : (int)Pango.Weight.Bold); } ValidateButtons (); @@ -188,7 +188,7 @@ namespace MonoDevelop.Ide.Tasks { do { - Task task = (Task) store.GetValue (iter, (int)Columns.UserTask); + UserTask task = (UserTask) store.GetValue (iter, (int)Columns.UserTask); store.SetValue (iter, (int)Columns.Foreground, GetColorByPriority (task.Priority)); } while (store.IterNext (ref iter)); } @@ -208,7 +208,7 @@ namespace MonoDevelop.Ide.Tasks void NewUserTaskClicked (object obj, EventArgs e) { - Task task = new Task (); + UserTask task = new UserTask (); task.WorkspaceObject = IdeApp.ProjectOperations.CurrentSelectedWorkspaceItem; updating = true; TaskService.UserTasks.Add (task); @@ -228,7 +228,7 @@ namespace MonoDevelop.Ide.Tasks TreeIter iter; if (store.GetIter (out iter, view.Selection.GetSelectedRows ()[0])) { - Task task = (Task) store.GetValue (iter, (int)Columns.UserTask); + UserTask task = (UserTask) store.GetValue (iter, (int)Columns.UserTask); updating = true; TaskService.UserTasks.Remove (task); updating = false; @@ -242,7 +242,7 @@ namespace MonoDevelop.Ide.Tasks { Gtk.TreeIter iter; if (store.GetIterFromString (out iter, args.Path)) { - Task task = (Task) store.GetValue (iter, (int)Columns.UserTask); + UserTask task = (UserTask) store.GetValue (iter, (int)Columns.UserTask); if (args.Active == 0) { task.Priority = TaskPriority.High; @@ -286,7 +286,7 @@ namespace MonoDevelop.Ide.Tasks Gtk.TreeIter iter; if (store.GetIterFromString (out iter, args.Path)) { bool val = (bool)store.GetValue (iter, (int)Columns.Completed); - Task task = (Task) store.GetValue (iter, (int)Columns.UserTask); + UserTask task = (UserTask) store.GetValue (iter, (int)Columns.UserTask); task.Completed = !val; store.SetValue (iter, (int)Columns.Completed, !val); store.SetValue (iter, (int)Columns.Bold, task.Completed ? (int)Pango.Weight.Light : (int)Pango.Weight.Bold); @@ -310,7 +310,7 @@ namespace MonoDevelop.Ide.Tasks { Gtk.TreeIter iter; if (store.GetIterFromString (out iter, args.Path)) { - Task task = (Task) store.GetValue (iter, (int)Columns.UserTask); + UserTask task = (UserTask) store.GetValue (iter, (int)Columns.UserTask); task.Description = args.NewText; store.SetValue (iter, (int)Columns.Description, args.NewText); TaskService.SaveUserTasks (task.WorkspaceObject); @@ -355,13 +355,13 @@ namespace MonoDevelop.Ide.Tasks void OnUserTaskCopied (object o, EventArgs args) { - Task task; + UserTask task; TreeModel model; TreeIter iter; if (view.Selection.GetSelected (out model, out iter)) { - task = (Task) model.GetValue (iter, (int)Columns.UserTask); + task = (UserTask) model.GetValue (iter, (int)Columns.UserTask); } else return; // no one selected |