Free cookie consent management tool by TermsFeed Policy Generator

Changeset 14437 for trunk/sources


Ignore:
Timestamp:
12/01/16 16:21:10 (8 years ago)
Author:
pfleck
Message:

#2713 Added a "isVisibleInLegendCheckBox" for data rows in DataTables.

Location:
trunk/sources/HeuristicLab.Analysis.Views/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Analysis.Views/3.3/DataRowVisualPropertiesControl.Designer.cs

    r14436 r14437  
    5454      this.label3 = new System.Windows.Forms.Label();
    5555      this.commonGroupBox = new System.Windows.Forms.GroupBox();
     56      this.isVisibleInLegendCheckBox = new System.Windows.Forms.CheckBox();
     57      this.label10 = new System.Windows.Forms.Label();
    5658      this.displayNameTextBox = new System.Windows.Forms.TextBox();
    5759      this.axisGroupBox = new System.Windows.Forms.GroupBox();
     
    9092      this.chartTypeComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
    9193      this.chartTypeComboBox.FormattingEnabled = true;
    92       this.chartTypeComboBox.Location = new System.Drawing.Point(57, 45);
     94      this.chartTypeComboBox.Location = new System.Drawing.Point(102, 45);
    9395      this.chartTypeComboBox.Name = "chartTypeComboBox";
    94       this.chartTypeComboBox.Size = new System.Drawing.Size(264, 21);
     96      this.chartTypeComboBox.Size = new System.Drawing.Size(219, 21);
    9597      this.chartTypeComboBox.TabIndex = 3;
    9698      this.chartTypeComboBox.SelectedValueChanged += new System.EventHandler(this.chartTypeComboBox_SelectedValueChanged);
     
    103105      //
    104106      this.colorButton.BackColor = System.Drawing.SystemColors.Control;
    105       this.colorButton.Location = new System.Drawing.Point(56, 72);
     107      this.colorButton.Location = new System.Drawing.Point(102, 72);
    106108      this.colorButton.Name = "colorButton";
    107109      this.colorButton.Size = new System.Drawing.Size(23, 23);
     
    172174      this.commonGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    173175            | System.Windows.Forms.AnchorStyles.Right)));
     176      this.commonGroupBox.Controls.Add(this.isVisibleInLegendCheckBox);
     177      this.commonGroupBox.Controls.Add(this.label10);
    174178      this.commonGroupBox.Controls.Add(this.displayNameTextBox);
    175179      this.commonGroupBox.Controls.Add(this.axisGroupBox);
     
    181185      this.commonGroupBox.Location = new System.Drawing.Point(0, 0);
    182186      this.commonGroupBox.Name = "commonGroupBox";
    183       this.commonGroupBox.Size = new System.Drawing.Size(327, 174);
     187      this.commonGroupBox.Size = new System.Drawing.Size(327, 199);
    184188      this.commonGroupBox.TabIndex = 0;
    185189      this.commonGroupBox.TabStop = false;
    186190      this.commonGroupBox.Text = "Common";
    187191      //
     192      // isVisibleInLegendCheckBox
     193      //
     194      this.isVisibleInLegendCheckBox.AutoSize = true;
     195      this.isVisibleInLegendCheckBox.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
     196      this.isVisibleInLegendCheckBox.Location = new System.Drawing.Point(102, 104);
     197      this.isVisibleInLegendCheckBox.Name = "isVisibleInLegendCheckBox";
     198      this.isVisibleInLegendCheckBox.Size = new System.Drawing.Size(15, 14);
     199      this.isVisibleInLegendCheckBox.TabIndex = 8;
     200      this.isVisibleInLegendCheckBox.UseVisualStyleBackColor = true;
     201      this.isVisibleInLegendCheckBox.CheckedChanged += new System.EventHandler(this.isVisibleInLegendCheckBox_CheckedChanged);
     202      //
     203      // label10
     204      //
     205      this.label10.AutoSize = true;
     206      this.label10.Location = new System.Drawing.Point(6, 104);
     207      this.label10.Name = "label10";
     208      this.label10.Size = new System.Drawing.Size(90, 13);
     209      this.label10.TabIndex = 7;
     210      this.label10.Text = "&Visible in Legend:";
     211      //
    188212      // displayNameTextBox
    189213      //
    190214      this.displayNameTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    191215            | System.Windows.Forms.AnchorStyles.Right)));
    192       this.displayNameTextBox.Location = new System.Drawing.Point(57, 19);
     216      this.displayNameTextBox.Location = new System.Drawing.Point(102, 19);
    193217      this.displayNameTextBox.Name = "displayNameTextBox";
    194       this.displayNameTextBox.Size = new System.Drawing.Size(264, 20);
     218      this.displayNameTextBox.Size = new System.Drawing.Size(219, 20);
    195219      this.displayNameTextBox.TabIndex = 1;
    196220      this.displayNameTextBox.Validated += new System.EventHandler(this.displayNameTextBox_Validated);
     
    205229      this.axisGroupBox.Controls.Add(this.label5);
    206230      this.axisGroupBox.Controls.Add(this.label6);
    207       this.axisGroupBox.Location = new System.Drawing.Point(6, 101);
     231      this.axisGroupBox.Location = new System.Drawing.Point(6, 126);
    208232      this.axisGroupBox.Name = "axisGroupBox";
    209233      this.axisGroupBox.Size = new System.Drawing.Size(315, 67);
     
    317341      this.histoGramGroupBox.Controls.Add(this.binsNumericUpDown);
    318342      this.histoGramGroupBox.Controls.Add(this.label3);
    319       this.histoGramGroupBox.Location = new System.Drawing.Point(0, 280);
     343      this.histoGramGroupBox.Location = new System.Drawing.Point(0, 305);
    320344      this.histoGramGroupBox.Name = "histoGramGroupBox";
    321345      this.histoGramGroupBox.Size = new System.Drawing.Size(327, 47);
     
    360384      this.lineChartGroupBox.Controls.Add(this.lineStyleComboBox);
    361385      this.lineChartGroupBox.Controls.Add(this.label8);
    362       this.lineChartGroupBox.Location = new System.Drawing.Point(0, 180);
     386      this.lineChartGroupBox.Location = new System.Drawing.Point(0, 205);
    363387      this.lineChartGroupBox.Name = "lineChartGroupBox";
    364388      this.lineChartGroupBox.Size = new System.Drawing.Size(327, 94);
     
    433457      this.Controls.Add(this.commonGroupBox);
    434458      this.Name = "DataRowVisualPropertiesControl";
    435       this.Size = new System.Drawing.Size(327, 331);
     459      this.Size = new System.Drawing.Size(327, 356);
    436460      ((System.ComponentModel.ISupportInitialize)(this.binsNumericUpDown)).EndInit();
    437461      this.commonGroupBox.ResumeLayout(false);
     
    483507    private System.Windows.Forms.Panel panel2;
    484508    private System.Windows.Forms.Panel panel1;
     509    private System.Windows.Forms.Label label10;
     510    private System.Windows.Forms.CheckBox isVisibleInLegendCheckBox;
    485511  }
    486512}
  • trunk/sources/HeuristicLab.Analysis.Views/3.3/DataRowVisualPropertiesControl.cs

    r14185 r14437  
    9494          binsExactRadioButton.Checked = Content.ExactBins;
    9595          displayNameTextBox.Text = Content.DisplayName;
     96          isVisibleInLegendCheckBox.Checked = Content.IsVisibleInLegend;
    9697        }
    9798      } finally { SuppressEvents = false; }
     
    103104      lineChartGroupBox.Enabled = Content != null && Content.ChartType == DataRowVisualProperties.DataRowChartType.Line;
    104105      histoGramGroupBox.Enabled = Content != null && Content.ChartType == DataRowVisualProperties.DataRowChartType.Histogram;
     106      isVisibleInLegendCheckBox.Enabled = Content != null;
    105107    }
    106108
     
    188190      }
    189191    }
     192
     193    private void isVisibleInLegendCheckBox_CheckedChanged(object sender, EventArgs e) {
     194      if (!SuppressEvents && Content != null) {
     195        Content.IsVisibleInLegend = isVisibleInLegendCheckBox.Checked;
     196      }
     197    }
    190198    #endregion
    191199  }
Note: See TracChangeset for help on using the changeset viewer.