Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/28/13 15:38:12 (11 years ago)
Author:
mkommend
Message:

#2020: Integrated changes developed in the CMA-ES branch by abeham in the trunk.

File:
1 edited

Legend:

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

    r8280 r9258  
    2020#endregion
    2121
     22using HeuristicLab.MainForm;
     23using HeuristicLab.MainForm.WindowsForms;
    2224using System.Drawing;
    2325using System.Windows.Forms;
    24 using HeuristicLab.MainForm;
    25 using HeuristicLab.MainForm.WindowsForms;
    2626
    2727namespace HeuristicLab.Analysis.Views {
     
    7575          xAxisPrimaryMaximumFixedRadioButton.Checked = false;
    7676          xAxisPrimaryMaximumFixedTextBox.Text = string.Empty;
     77          xAxisPrimaryLogScaleCheckBox.Checked = false;
    7778          xAxisSecondaryTitleTextBox.Text = string.Empty;
    7879          xAxisSecondaryMinimumAutoRadioButton.Checked = false;
     
    8283          xAxisSecondaryMaximumFixedRadioButton.Checked = false;
    8384          xAxisSecondaryMaximumFixedTextBox.Text = string.Empty;
     85          xAxisSecondaryLogScaleCheckBox.Checked = false;
    8486
    8587          yAxisPrimaryTitleTextBox.Text = string.Empty;
     
    9092          yAxisPrimaryMaximumFixedRadioButton.Checked = false;
    9193          yAxisPrimaryMaximumFixedTextBox.Text = string.Empty;
     94          yAxisPrimaryLogScaleCheckBox.Checked = false;
    9295          yAxisSecondaryTitleTextBox.Text = string.Empty;
    9396          yAxisSecondaryMinimumAutoRadioButton.Checked = false;
     
    97100          yAxisSecondaryMaximumFixedRadioButton.Checked = false;
    98101          yAxisSecondaryMaximumFixedTextBox.Text = string.Empty;
     102          yAxisSecondaryLogScaleCheckBox.Checked = false;
    99103        } else {
    100104          titleFontLabel.Text = "( " + FormatFont(Content.TitleFont) + " )";
     
    109113          xAxisPrimaryMaximumFixedRadioButton.Checked = !Content.XAxisMaximumAuto;
    110114          xAxisPrimaryMaximumFixedTextBox.Text = Content.XAxisMaximumFixedValue.ToString();
     115          xAxisPrimaryLogScaleCheckBox.Checked = Content.XAxisLogScale;
    111116          xAxisSecondaryTitleTextBox.Text = Content.SecondXAxisTitle;
    112117          xAxisSecondaryMinimumAutoRadioButton.Checked = Content.SecondXAxisMinimumAuto;
     
    116121          xAxisSecondaryMaximumFixedRadioButton.Checked = !Content.SecondXAxisMaximumAuto;
    117122          xAxisSecondaryMaximumFixedTextBox.Text = Content.SecondXAxisMaximumFixedValue.ToString();
     123          xAxisSecondaryLogScaleCheckBox.Checked = Content.SecondXAxisLogScale;
    118124
    119125          yAxisPrimaryTitleTextBox.Text = Content.YAxisTitle;
     
    124130          yAxisPrimaryMaximumFixedRadioButton.Checked = !Content.YAxisMaximumAuto;
    125131          yAxisPrimaryMaximumFixedTextBox.Text = Content.YAxisMaximumFixedValue.ToString();
     132          yAxisPrimaryLogScaleCheckBox.Checked = Content.YAxisLogScale;
    126133          yAxisSecondaryTitleTextBox.Text = Content.SecondYAxisTitle;
    127134          yAxisSecondaryMinimumAutoRadioButton.Checked = Content.SecondYAxisMinimumAuto;
     
    131138          yAxisSecondaryMaximumFixedRadioButton.Checked = !Content.SecondYAxisMaximumAuto;
    132139          yAxisSecondaryMaximumFixedTextBox.Text = Content.SecondYAxisMaximumFixedValue.ToString();
    133         }
    134       }
    135       finally { SuppressEvents = false; }
     140          yAxisSecondaryLogScaleCheckBox.Checked = Content.SecondYAxisLogScale;
     141        }
     142      } finally { SuppressEvents = false; }
    136143      SetEnabledStateOfControls();
    137144    }
     
    333340          Content.XAxisMinimumAuto = xAxisPrimaryMinimumAutoRadioButton.Checked;
    334341          if (Content.XAxisMinimumAuto) xAxisPrimaryMinimumFixedTextBox.Text = double.NaN.ToString();
    335         }
    336         finally { SuppressEvents = false; }
     342        } finally { SuppressEvents = false; }
    337343        SetEnabledStateOfControls();
    338344      }
     
    345351          Content.XAxisMaximumAuto = xAxisPrimaryMaximumAutoRadioButton.Checked;
    346352          if (Content.XAxisMaximumAuto) xAxisPrimaryMaximumFixedTextBox.Text = double.NaN.ToString();
    347         }
    348         finally { SuppressEvents = false; }
     353        } finally { SuppressEvents = false; }
    349354        SetEnabledStateOfControls();
    350355      }
     
    357362          Content.SecondXAxisMinimumAuto = xAxisSecondaryMinimumAutoRadioButton.Checked;
    358363          if (Content.SecondXAxisMinimumAuto) xAxisSecondaryMinimumFixedTextBox.Text = double.NaN.ToString();
    359         }
    360         finally { SuppressEvents = false; }
     364        } finally { SuppressEvents = false; }
    361365        SetEnabledStateOfControls();
    362366      }
     
    369373          Content.SecondXAxisMaximumAuto = xAxisSecondaryMaximumAutoRadioButton.Checked;
    370374          if (Content.SecondXAxisMaximumAuto) xAxisSecondaryMaximumFixedTextBox.Text = double.NaN.ToString();
    371         }
    372         finally { SuppressEvents = false; }
     375        } finally { SuppressEvents = false; }
    373376        SetEnabledStateOfControls();
    374377      }
     
    381384          Content.YAxisMinimumAuto = yAxisPrimaryMinimumAutoRadioButton.Checked;
    382385          if (Content.YAxisMinimumAuto) yAxisPrimaryMinimumFixedTextBox.Text = double.NaN.ToString();
    383         }
    384         finally { SuppressEvents = false; }
     386        } finally { SuppressEvents = false; }
    385387        SetEnabledStateOfControls();
    386388      }
     
    393395          Content.YAxisMaximumAuto = yAxisPrimaryMaximumAutoRadioButton.Checked;
    394396          if (Content.YAxisMaximumAuto) yAxisPrimaryMaximumFixedTextBox.Text = double.NaN.ToString();
    395         }
    396         finally { SuppressEvents = false; }
     397        } finally { SuppressEvents = false; }
    397398        SetEnabledStateOfControls();
    398399      }
     
    405406          Content.SecondYAxisMinimumAuto = yAxisSecondaryMinimumAutoRadioButton.Checked;
    406407          if (Content.SecondYAxisMinimumAuto) yAxisSecondaryMinimumFixedTextBox.Text = double.NaN.ToString();
    407         }
    408         finally { SuppressEvents = false; }
     408        } finally { SuppressEvents = false; }
    409409        SetEnabledStateOfControls();
    410410      }
     
    417417          Content.SecondYAxisMaximumAuto = yAxisSecondaryMaximumAutoRadioButton.Checked;
    418418          if (Content.SecondYAxisMaximumAuto) yAxisSecondaryMaximumFixedTextBox.Text = double.NaN.ToString();
    419         }
    420         finally { SuppressEvents = false; }
    421         SetEnabledStateOfControls();
     419        } finally { SuppressEvents = false; }
     420        SetEnabledStateOfControls();
     421      }
     422    }
     423
     424    private void xAxisPrimaryLogScaleCheckBox_CheckedChanged(object sender, System.EventArgs e) {
     425      if (!SuppressEvents && Content != null) {
     426        SuppressEvents = true;
     427        try {
     428          Content.XAxisLogScale = xAxisPrimaryLogScaleCheckBox.Checked;
     429        } finally { SuppressEvents = false; }
     430      }
     431    }
     432
     433    private void xAxisSecondaryLogScaleCheckBox_CheckedChanged(object sender, System.EventArgs e) {
     434      if (!SuppressEvents && Content != null) {
     435        SuppressEvents = true;
     436        try {
     437          Content.SecondXAxisLogScale = xAxisSecondaryLogScaleCheckBox.Checked;
     438        } finally { SuppressEvents = false; }
     439      }
     440    }
     441
     442    private void yAxisPrimaryLogScaleCheckBox_CheckedChanged(object sender, System.EventArgs e) {
     443      if (!SuppressEvents && Content != null) {
     444        SuppressEvents = true;
     445        try {
     446          Content.YAxisLogScale = yAxisPrimaryLogScaleCheckBox.Checked;
     447        } finally { SuppressEvents = false; }
     448      }
     449    }
     450
     451    private void yAxisSecondaryLogScaleCheckBox_CheckedChanged(object sender, System.EventArgs e) {
     452      if (!SuppressEvents && Content != null) {
     453        SuppressEvents = true;
     454        try {
     455          Content.SecondYAxisLogScale = yAxisSecondaryLogScaleCheckBox.Checked;
     456        } finally { SuppressEvents = false; }
    422457      }
    423458    }
Note: See TracChangeset for help on using the changeset viewer.