Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/08/11 13:41:25 (13 years ago)
Author:
ascheibe
Message:

#1233 Review comments: renamed Job to Task

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  
    4747      Content.ItemJobChanged += new EventHandler(Content_JobItemChanged);
    4848      Content.JobChanged += new EventHandler(Content_JobChanged);
    49       Content.JobStateChanged += new EventHandler(Content_JobStateChanged);
     49      Content.JobStateChanged += new EventHandler(Content_TaskStateChanged);
    5050      Content.StateLogChanged += new EventHandler(Content_StateLogChanged);
    5151    }
     
    5454      Content.ItemJobChanged -= new EventHandler(Content_JobItemChanged);
    5555      Content.JobChanged -= new EventHandler(Content_JobChanged);
    56       Content.JobStateChanged -= new EventHandler(Content_JobStateChanged);
     56      Content.JobStateChanged -= new EventHandler(Content_TaskStateChanged);
    5757      Content.StateLogChanged -= new EventHandler(Content_StateLogChanged);
    5858      base.DeregisterContentEvents();
     
    6868      Content_JobItemChanged(this, EventArgs.Empty);
    6969      Content_JobChanged(this, EventArgs.Empty);
    70       Content_JobStateChanged(this, EventArgs.Empty);
     70      Content_TaskStateChanged(this, EventArgs.Empty);
    7171    }
    7272
     
    119119    }
    120120
    121     protected virtual void Content_JobStateChanged(object sender, EventArgs e) {
     121    protected virtual void Content_TaskStateChanged(object sender, EventArgs e) {
    122122      if (InvokeRequired) {
    123         Invoke(new EventHandler(Content_JobStateChanged), sender, e);
     123        Invoke(new EventHandler(Content_TaskStateChanged), sender, e);
    124124      } else {
    125125        if (Content != null && Content.Job != null) {
     
    201201      this.computeInParallelCheckBox.Enabled = !this.ReadOnly && this.Content != null && this.Content.ItemJob != null && this.Content.ItemJob.IsParallelizable;
    202202
    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));
    204204
    205205      optimizerItemView.ReadOnly = true;
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.3/HiveJobs/HiveJobView.designer.cs

    r6373 r6721  
    241241      this.jobStatusGroupBox.TabIndex = 24;
    242242      this.jobStatusGroupBox.TabStop = false;
    243       this.jobStatusGroupBox.Text = "Job Status";
     243      this.jobStatusGroupBox.Text = "Task Status";
    244244      //
    245245      // stateTextBox
     
    416416      this.jobIdLabel.Size = new System.Drawing.Size(36, 13);
    417417      this.jobIdLabel.TabIndex = 25;
    418       this.jobIdLabel.Text = "JobId:";
     418      this.jobIdLabel.Text = "TaskId:";
    419419      //
    420420      // jobIdTextBox
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.3/HiveJobs/OptimizerHiveJobView.cs

    r6479 r6721  
    8282      base.SetEnabledStateOfControls();
    8383
    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);
    8787    }
    8888  }
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.3/StateLog/StateLogGanttChartListView.cs

    r6373 r6721  
    6565          DateTime maxValue = Content.Max(x => x.Count > 0 ? x.Max(y => y.DateTime) : DateTime.MinValue);
    6666          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)) {
    6868            upperLimit = DateTime.FromOADate(Math.Min(DateTime.Now.AddSeconds(10).ToOADate(), maxValue.AddSeconds(10).ToOADate()));
    6969          } else {
     
    7373          for (int i = 0; i < Content.Count; i++) {
    7474            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)
    7676                AddData(ganttChart, i.ToString(), Content[i][j], Content[i][j + 1], upperLimit);
    7777            }
     
    8585
    8686    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);
    9595    }
    9696
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.3/StateLog/StateLogGanttChartView.cs

    r6373 r6721  
    6363        if (Content.Count > 0) {
    6464          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) {
    6666            upperLimit = DateTime.FromOADate(Math.Min(Content.Max(x => x.DateTime).ToOADate(), DateTime.Now.AddSeconds(10).ToOADate()));
    6767          } else {
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.3/TreeView/DeleteJobTreeNodeAction.cs

    r6382 r6721  
    1313
    1414    public string Name {
    15       get { return "Delete Job"; }
     15      get { return "Delete Task"; }
    1616    }
    1717
Note: See TracChangeset for help on using the changeset viewer.