Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/23/09 08:28:50 (15 years ago)
Author:
mstoeger
Message:

x-axis grid can be enabled/disabled #629

Location:
trunk/sources/HeuristicLab.Visualization/3.2/Options
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Visualization/3.2/Options/Options.Designer.cs

    r1839 r1876  
    5353      this.flpShowYAxis = new System.Windows.Forms.FlowLayoutPanel();
    5454      this.fdFont = new System.Windows.Forms.FontDialog();
     55      this.chkShowXAxisGrid = new System.Windows.Forms.CheckBox();
    5556      this.Optionstabs.SuspendLayout();
    5657      this.tabPage1.SuspendLayout();
     
    286287      // tpXAxis
    287288      //
     289      this.tpXAxis.Controls.Add(this.chkShowXAxisGrid);
    288290      this.tpXAxis.Controls.Add(this.btnChangeXAxisFont);
    289291      this.tpXAxis.Location = new System.Drawing.Point(4, 22);
     
    357359      this.flpShowYAxis.Size = new System.Drawing.Size(275, 57);
    358360      this.flpShowYAxis.TabIndex = 0;
     361      //
     362      // chkShowXAxisGrid
     363      //
     364      this.chkShowXAxisGrid.AutoSize = true;
     365      this.chkShowXAxisGrid.Location = new System.Drawing.Point(3, 32);
     366      this.chkShowXAxisGrid.Name = "chkShowXAxisGrid";
     367      this.chkShowXAxisGrid.Size = new System.Drawing.Size(107, 17);
     368      this.chkShowXAxisGrid.TabIndex = 3;
     369      this.chkShowXAxisGrid.Text = "Show X-Axis Grid";
     370      this.chkShowXAxisGrid.UseVisualStyleBackColor = true;
     371      this.chkShowXAxisGrid.CheckedChanged += new System.EventHandler(this.chkShowXAxisGrid_CheckedChanged);
    359372      //
    360373      // Options
     
    376389      this.tpTitle.PerformLayout();
    377390      this.tpXAxis.ResumeLayout(false);
     391      this.tpXAxis.PerformLayout();
    378392      this.tpYAxes.ResumeLayout(false);
    379393      this.tpYAxes.PerformLayout();
     
    415429    private System.Windows.Forms.FlowLayoutPanel flpShowYAxis;
    416430    private System.Windows.Forms.FontDialog fdFont;
     431    private System.Windows.Forms.CheckBox chkShowXAxisGrid;
    417432    private System.Windows.Forms.TextBox tbxTitle;
    418433    private System.Windows.Forms.Label label5;
  • trunk/sources/HeuristicLab.Visualization/3.2/Options/Options.cs

    r1839 r1876  
    1313    private string oldTitle;
    1414    private Dictionary<CheckBox, bool> ShowYAxisBoxes;
     15    private bool oldShowXAxisGrid;
    1516    private Dictionary<CheckBox, bool> yAxisClipChangeableBoxes;
    1617
     
    6566
    6667    public void ResetSettings() {
     68      model.ShowXAxisGrid = oldShowXAxisGrid;
     69
    6770      foreach (var param in oldLineParams) {
    6871        param.applySettings();
     
    150153
    151154    private void Options_Load(object sender, EventArgs e) {
     155      oldShowXAxisGrid = model.ShowXAxisGrid;
     156      chkShowXAxisGrid.Checked = model.ShowXAxisGrid;
     157
    152158      InitTabPageLines();
    153159      InitTabPageYAxes();
     
    238244    }
    239245
     246    private void chkShowXAxisGrid_CheckedChanged(object sender, EventArgs e) {
     247      model.ShowXAxisGrid = chkShowXAxisGrid.Checked;
     248    }
     249
    240250    private void tbxTitle_TextChanged(object sender, EventArgs e) {
    241251      model.Title = tbxTitle.Text;
Note: See TracChangeset for help on using the changeset viewer.