- Timestamp:
- 09/08/11 13:41:25 (13 years ago)
- Location:
- branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.3
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.3/HiveJobs/HiveJobView.cs
r6419 r6721 47 47 Content.ItemJobChanged += new EventHandler(Content_JobItemChanged); 48 48 Content.JobChanged += new EventHandler(Content_JobChanged); 49 Content.JobStateChanged += new EventHandler(Content_ JobStateChanged);49 Content.JobStateChanged += new EventHandler(Content_TaskStateChanged); 50 50 Content.StateLogChanged += new EventHandler(Content_StateLogChanged); 51 51 } … … 54 54 Content.ItemJobChanged -= new EventHandler(Content_JobItemChanged); 55 55 Content.JobChanged -= new EventHandler(Content_JobChanged); 56 Content.JobStateChanged -= new EventHandler(Content_ JobStateChanged);56 Content.JobStateChanged -= new EventHandler(Content_TaskStateChanged); 57 57 Content.StateLogChanged -= new EventHandler(Content_StateLogChanged); 58 58 base.DeregisterContentEvents(); … … 68 68 Content_JobItemChanged(this, EventArgs.Empty); 69 69 Content_JobChanged(this, EventArgs.Empty); 70 Content_ JobStateChanged(this, EventArgs.Empty);70 Content_TaskStateChanged(this, EventArgs.Empty); 71 71 } 72 72 … … 119 119 } 120 120 121 protected virtual void Content_ JobStateChanged(object sender, EventArgs e) {121 protected virtual void Content_TaskStateChanged(object sender, EventArgs e) { 122 122 if (InvokeRequired) { 123 Invoke(new EventHandler(Content_ JobStateChanged), sender, e);123 Invoke(new EventHandler(Content_TaskStateChanged), sender, e); 124 124 } else { 125 125 if (Content != null && Content.Job != null) { … … 201 201 this.computeInParallelCheckBox.Enabled = !this.ReadOnly && this.Content != null && this.Content.ItemJob != null && this.Content.ItemJob.IsParallelizable; 202 202 203 this.modifyItemButton.Enabled = (Content != null && Content.ItemJob.Item != null && (Content.Job.State == JobState.Paused || Content.Job.State == JobState.Offline || Content.Job.State == JobState.Finished || Content.Job.State == JobState.Failed || Content.Job.State == JobState.Aborted));203 this.modifyItemButton.Enabled = (Content != null && Content.ItemJob.Item != null && (Content.Job.State == TaskState.Paused || Content.Job.State == TaskState.Offline || Content.Job.State == TaskState.Finished || Content.Job.State == TaskState.Failed || Content.Job.State == TaskState.Aborted)); 204 204 205 205 optimizerItemView.ReadOnly = true; -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.3/HiveJobs/HiveJobView.designer.cs
r6373 r6721 241 241 this.jobStatusGroupBox.TabIndex = 24; 242 242 this.jobStatusGroupBox.TabStop = false; 243 this.jobStatusGroupBox.Text = " JobStatus";243 this.jobStatusGroupBox.Text = "Task Status"; 244 244 // 245 245 // stateTextBox … … 416 416 this.jobIdLabel.Size = new System.Drawing.Size(36, 13); 417 417 this.jobIdLabel.TabIndex = 25; 418 this.jobIdLabel.Text = " JobId:";418 this.jobIdLabel.Text = "TaskId:"; 419 419 // 420 420 // jobIdTextBox -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.3/HiveJobs/OptimizerHiveJobView.cs
r6479 r6721 82 82 base.SetEnabledStateOfControls(); 83 83 84 this.restartButton.Enabled = Content != null && Content.IsControllable && !Content.Job.Command.HasValue && (Content.Job.State == JobState.Paused || Content.Job.State == JobState.Failed || Content.Job.State == JobState.Aborted);85 this.pauseButton.Enabled = Content != null && Content.IsControllable && !Content.Job.Command.HasValue && Content.Job.State == JobState.Calculating;86 this.stopButton.Enabled = Content != null && Content.IsControllable && !Content.Job.Command.HasValue && (Content.Job.State == JobState.Calculating || Content.Job.State == JobState.Waiting || Content.Job.State == JobState.Paused);84 this.restartButton.Enabled = Content != null && Content.IsControllable && !Content.Job.Command.HasValue && (Content.Job.State == TaskState.Paused || Content.Job.State == TaskState.Failed || Content.Job.State == TaskState.Aborted); 85 this.pauseButton.Enabled = Content != null && Content.IsControllable && !Content.Job.Command.HasValue && Content.Job.State == TaskState.Calculating; 86 this.stopButton.Enabled = Content != null && Content.IsControllable && !Content.Job.Command.HasValue && (Content.Job.State == TaskState.Calculating || Content.Job.State == TaskState.Waiting || Content.Job.State == TaskState.Paused); 87 87 } 88 88 } -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.3/StateLog/StateLogGanttChartListView.cs
r6373 r6721 65 65 DateTime maxValue = Content.Max(x => x.Count > 0 ? x.Max(y => y.DateTime) : DateTime.MinValue); 66 66 DateTime upperLimit; 67 if (Content.All(x => x.Count > 0 ? (x.Last().State == JobState.Finished || x.Last().State == JobState.Failed || x.Last().State == JobState.Aborted) : true)) {67 if (Content.All(x => x.Count > 0 ? (x.Last().State == TaskState.Finished || x.Last().State == TaskState.Failed || x.Last().State == TaskState.Aborted) : true)) { 68 68 upperLimit = DateTime.FromOADate(Math.Min(DateTime.Now.AddSeconds(10).ToOADate(), maxValue.AddSeconds(10).ToOADate())); 69 69 } else { … … 73 73 for (int i = 0; i < Content.Count; i++) { 74 74 for (int j = 0; j < Content[i].Count - 1; j++) { 75 if (Content[i][j].State != JobState.Offline)75 if (Content[i][j].State != TaskState.Offline) 76 76 AddData(ganttChart, i.ToString(), Content[i][j], Content[i][j + 1], upperLimit); 77 77 } … … 85 85 86 86 public static void SetupCategories(GanttChart ganttChart) { 87 ganttChart.AddCategory( JobState.Offline.ToString(), Color.Gainsboro);88 ganttChart.AddCategory( JobState.Waiting.ToString(), Color.NavajoWhite);89 ganttChart.AddCategory( JobState.Paused.ToString(), Color.PaleVioletRed);90 ganttChart.AddCategory( JobState.Transferring.ToString(), Color.CornflowerBlue);91 ganttChart.AddCategory( JobState.Calculating.ToString(), Color.DarkGreen);92 ganttChart.AddCategory( JobState.Finished.ToString(), Color.White);93 ganttChart.AddCategory( JobState.Aborted.ToString(), Color.Orange);94 ganttChart.AddCategory( JobState.Failed.ToString(), Color.Red);87 ganttChart.AddCategory(TaskState.Offline.ToString(), Color.Gainsboro); 88 ganttChart.AddCategory(TaskState.Waiting.ToString(), Color.NavajoWhite); 89 ganttChart.AddCategory(TaskState.Paused.ToString(), Color.PaleVioletRed); 90 ganttChart.AddCategory(TaskState.Transferring.ToString(), Color.CornflowerBlue); 91 ganttChart.AddCategory(TaskState.Calculating.ToString(), Color.DarkGreen); 92 ganttChart.AddCategory(TaskState.Finished.ToString(), Color.White); 93 ganttChart.AddCategory(TaskState.Aborted.ToString(), Color.Orange); 94 ganttChart.AddCategory(TaskState.Failed.ToString(), Color.Red); 95 95 } 96 96 -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.3/StateLog/StateLogGanttChartView.cs
r6373 r6721 63 63 if (Content.Count > 0) { 64 64 DateTime upperLimit; 65 if (Content.Last().State == JobState.Finished || Content.Last().State == JobState.Failed || Content.Last().State == JobState.Aborted) {65 if (Content.Last().State == TaskState.Finished || Content.Last().State == TaskState.Failed || Content.Last().State == TaskState.Aborted) { 66 66 upperLimit = DateTime.FromOADate(Math.Min(Content.Max(x => x.DateTime).ToOADate(), DateTime.Now.AddSeconds(10).ToOADate())); 67 67 } else { -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.3/TreeView/DeleteJobTreeNodeAction.cs
r6382 r6721 13 13 14 14 public string Name { 15 get { return "Delete Job"; }15 get { return "Delete Task"; } 16 16 } 17 17
Note: See TracChangeset
for help on using the changeset viewer.