- Timestamp:
- 02/03/16 12:03:11 (9 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis.Views/3.3
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis.Views/3.3/ClassificationImportTypeDialog.Designer.cs
r12012 r13584 87 87 this.ProblemDataSettingsGroupBox.Controls.Add(this.TargetVariableComboBox); 88 88 this.ProblemDataSettingsGroupBox.Controls.Add(this.UniformDistributionOfClassesCheckbox); 89 this.ProblemDataSettingsGroupBox.Size = new System.Drawing.Size(447, 312);89 this.ProblemDataSettingsGroupBox.Size = new System.Drawing.Size(447, 285); 90 90 this.ProblemDataSettingsGroupBox.Controls.SetChildIndex(this.UniformDistributionOfClassesCheckbox, 0); 91 91 this.ProblemDataSettingsGroupBox.Controls.SetChildIndex(this.TargetVariableComboBox, 0); … … 110 110 // 111 111 this.PreviewDatasetMatrix.Location = new System.Drawing.Point(6, 134); 112 this.PreviewDatasetMatrix.Size = new System.Drawing.Size(435, 1 72);112 this.PreviewDatasetMatrix.Size = new System.Drawing.Size(435, 145); 113 113 // 114 114 // PreviewLabel … … 118 118 // TargetVariableComboBox 119 119 // 120 this.TargetVariableComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 120 this.TargetVariableComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 121 121 | System.Windows.Forms.AnchorStyles.Right))); 122 122 this.TargetVariableComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; -
trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis.Views/3.3/DataAnalysisImportTypeDialog.Designer.cs
r12012 r13584 63 63 this.SeparatorComboBox = new System.Windows.Forms.ComboBox(); 64 64 this.CSVSettingsGroupBox = new System.Windows.Forms.GroupBox(); 65 this.EncodingInfoLabel = new System.Windows.Forms.Label(); 66 this.EncodingLabel = new System.Windows.Forms.Label(); 67 this.EncodingComboBox = new System.Windows.Forms.ComboBox(); 68 this.CheckboxColumnNames = new System.Windows.Forms.CheckBox(); 65 69 this.DateTimeFormatInfoLabel = new System.Windows.Forms.Label(); 66 70 this.DecimalSeparatorInfoLabel = new System.Windows.Forms.Label(); … … 72 76 this.PreviewDatasetMatrix = new HeuristicLab.Data.Views.StringConvertibleMatrixView(); 73 77 this.ToolTip = new System.Windows.Forms.ToolTip(this.components); 74 this.CheckboxColumnNames = new System.Windows.Forms.CheckBox();75 78 ((System.ComponentModel.ISupportInitialize)(this.TrainingTestTrackBar)).BeginInit(); 76 79 this.CSVSettingsGroupBox.SuspendLayout(); … … 249 252 this.CSVSettingsGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 250 253 | System.Windows.Forms.AnchorStyles.Right))); 254 this.CSVSettingsGroupBox.Controls.Add(this.EncodingInfoLabel); 255 this.CSVSettingsGroupBox.Controls.Add(this.EncodingLabel); 256 this.CSVSettingsGroupBox.Controls.Add(this.EncodingComboBox); 251 257 this.CSVSettingsGroupBox.Controls.Add(this.CheckboxColumnNames); 252 258 this.CSVSettingsGroupBox.Controls.Add(this.DateTimeFormatInfoLabel); … … 261 267 this.CSVSettingsGroupBox.Location = new System.Drawing.Point(12, 32); 262 268 this.CSVSettingsGroupBox.Name = "CSVSettingsGroupBox"; 263 this.CSVSettingsGroupBox.Size = new System.Drawing.Size(447, 1 26);269 this.CSVSettingsGroupBox.Size = new System.Drawing.Size(447, 153); 264 270 this.CSVSettingsGroupBox.TabIndex = 16; 265 271 this.CSVSettingsGroupBox.TabStop = false; 266 272 this.CSVSettingsGroupBox.Text = "CSV Settings"; 273 // 274 // EncodingInfoLabel 275 // 276 this.EncodingInfoLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 277 this.EncodingInfoLabel.Image = HeuristicLab.Common.Resources.VSImageLibrary.Information; 278 this.EncodingInfoLabel.Location = new System.Drawing.Point(421, 102); 279 this.EncodingInfoLabel.Name = "EncodingInfoLabel"; 280 this.EncodingInfoLabel.Size = new System.Drawing.Size(16, 16); 281 this.EncodingInfoLabel.TabIndex = 27; 282 this.EncodingInfoLabel.Tag = "Select the encoding the file was saved with."; 283 this.ToolTip.SetToolTip(this.EncodingInfoLabel, "Select the encoding the file was saved with."); 284 this.EncodingInfoLabel.DoubleClick += new System.EventHandler(this.ControlToolTip_DoubleClick); 285 // 286 // EncodingLabel 287 // 288 this.EncodingLabel.AutoSize = true; 289 this.EncodingLabel.Location = new System.Drawing.Point(6, 103); 290 this.EncodingLabel.Name = "EncodingLabel"; 291 this.EncodingLabel.Size = new System.Drawing.Size(52, 13); 292 this.EncodingLabel.TabIndex = 26; 293 this.EncodingLabel.Text = "Encoding"; 294 // 295 // EncodingComboBox 296 // 297 this.EncodingComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 298 | System.Windows.Forms.AnchorStyles.Right))); 299 this.EncodingComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 300 this.EncodingComboBox.Enabled = false; 301 this.EncodingComboBox.FormattingEnabled = true; 302 this.EncodingComboBox.Location = new System.Drawing.Point(111, 100); 303 this.EncodingComboBox.Name = "EncodingComboBox"; 304 this.EncodingComboBox.Size = new System.Drawing.Size(300, 21); 305 this.EncodingComboBox.TabIndex = 25; 306 this.EncodingComboBox.SelectionChangeCommitted += new System.EventHandler(this.CSVFormatComboBoxSelectionChangeCommitted); 307 // 308 // CheckboxColumnNames 309 // 310 this.CheckboxColumnNames.AutoSize = true; 311 this.CheckboxColumnNames.Location = new System.Drawing.Point(9, 127); 312 this.CheckboxColumnNames.Name = "CheckboxColumnNames"; 313 this.CheckboxColumnNames.Size = new System.Drawing.Size(144, 17); 314 this.CheckboxColumnNames.TabIndex = 24; 315 this.CheckboxColumnNames.Text = "Column names in first line"; 316 this.CheckboxColumnNames.UseVisualStyleBackColor = true; 317 this.CheckboxColumnNames.CheckedChanged += new System.EventHandler(this.CheckboxColumnNames_CheckedChanged); 267 318 // 268 319 // DateTimeFormatInfoLabel … … 315 366 this.ProblemDataSettingsGroupBox.Controls.Add(this.TrainingTestTrackBar); 316 367 this.ProblemDataSettingsGroupBox.Controls.Add(this.ShuffleDataCheckbox); 317 this.ProblemDataSettingsGroupBox.Location = new System.Drawing.Point(12, 1 64);368 this.ProblemDataSettingsGroupBox.Location = new System.Drawing.Point(12, 191); 318 369 this.ProblemDataSettingsGroupBox.Name = "ProblemDataSettingsGroupBox"; 319 this.ProblemDataSettingsGroupBox.Size = new System.Drawing.Size(447, 2 52);370 this.ProblemDataSettingsGroupBox.Size = new System.Drawing.Size(447, 225); 320 371 this.ProblemDataSettingsGroupBox.TabIndex = 17; 321 372 this.ProblemDataSettingsGroupBox.TabStop = false; … … 365 416 this.PreviewDatasetMatrix.ShowRowsAndColumnsTextBox = false; 366 417 this.PreviewDatasetMatrix.ShowStatisticalInformation = false; 367 this.PreviewDatasetMatrix.Size = new System.Drawing.Size(435, 1 38);418 this.PreviewDatasetMatrix.Size = new System.Drawing.Size(435, 111); 368 419 this.PreviewDatasetMatrix.TabIndex = 0; 369 //370 // CheckboxColumnNames371 //372 this.CheckboxColumnNames.AutoSize = true;373 this.CheckboxColumnNames.Location = new System.Drawing.Point(9, 103);374 this.CheckboxColumnNames.Name = "CheckboxColumnNames";375 this.CheckboxColumnNames.Size = new System.Drawing.Size(144, 17);376 this.CheckboxColumnNames.TabIndex = 24;377 this.CheckboxColumnNames.Text = "Column names in first line";378 this.CheckboxColumnNames.UseVisualStyleBackColor = true;379 this.CheckboxColumnNames.CheckedChanged += new System.EventHandler(this.CheckboxColumnNames_CheckedChanged);380 420 // 381 421 // DataAnalysisImportTypeDialog … … 437 477 protected System.Windows.Forms.ToolTip ToolTip; 438 478 private System.Windows.Forms.CheckBox CheckboxColumnNames; 479 protected System.Windows.Forms.Label EncodingInfoLabel; 480 protected System.Windows.Forms.Label EncodingLabel; 481 protected System.Windows.Forms.ComboBox EncodingComboBox; 439 482 } 440 483 } -
trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis.Views/3.3/DataAnalysisImportTypeDialog.cs
r13413 r13584 25 25 using System.IO; 26 26 using System.Linq; 27 using System.Text; 27 28 using System.Windows.Forms; 28 29 using HeuristicLab.Core.Views; … … 32 33 public partial class DataAnalysisImportTypeDialog : Form { 33 34 34 public static readonly List<KeyValuePair<DateTimeFormatInfo, string>> dateTimeFormats = new List<KeyValuePair<DateTimeFormatInfo, string>>{ 35 new KeyValuePair<DateTimeFormatInfo, string>(DateTimeFormatInfo.GetInstance(new CultureInfo("de-DE")), "dd/mm/yyyy hh:MM:ss" ), 36 new KeyValuePair<DateTimeFormatInfo, string>(DateTimeFormatInfo.InvariantInfo, "mm/dd/yyyy hh:MM:ss" ), 37 new KeyValuePair<DateTimeFormatInfo, string>(DateTimeFormatInfo.InvariantInfo, "yyyy/mm/dd hh:MM:ss" ), 38 new KeyValuePair<DateTimeFormatInfo, string>(DateTimeFormatInfo.InvariantInfo, "mm/yyyy/dd hh:MM:ss" ) 35 private static readonly List<KeyValuePair<DateTimeFormatInfo, string>> dateTimeFormats = 36 new List<KeyValuePair<DateTimeFormatInfo, string>>{ 37 new KeyValuePair<DateTimeFormatInfo, string>(DateTimeFormatInfo.GetInstance(new CultureInfo("de-DE")), "dd/mm/yyyy hh:MM:ss" ), 38 new KeyValuePair<DateTimeFormatInfo, string>(DateTimeFormatInfo.InvariantInfo, "mm/dd/yyyy hh:MM:ss" ), 39 new KeyValuePair<DateTimeFormatInfo, string>(DateTimeFormatInfo.InvariantInfo, "yyyy/mm/dd hh:MM:ss" ), 40 new KeyValuePair<DateTimeFormatInfo, string>(DateTimeFormatInfo.InvariantInfo, "mm/yyyy/dd hh:MM:ss" ) 39 41 }; 40 42 41 public static readonly List<KeyValuePair<char, string>> POSSIBLE_SEPARATORS = new List<KeyValuePair<char, string>>{ 42 new KeyValuePair<char, string>(';', "; (Semicolon)" ), 43 new KeyValuePair<char, string>(',', ", (Comma)" ), 44 new KeyValuePair<char, string>('\t', "\\t (Tab)"), 45 new KeyValuePair<char, string>((char)0, "all whitespaces (including tabs and spaces)") 43 private static readonly List<KeyValuePair<char, string>> POSSIBLE_SEPARATORS = 44 new List<KeyValuePair<char, string>>{ 45 new KeyValuePair<char, string>(';', "; (Semicolon)" ), 46 new KeyValuePair<char, string>(',', ", (Comma)" ), 47 new KeyValuePair<char, string>('\t', "\\t (Tab)"), 48 new KeyValuePair<char, string>((char)0, "all whitespaces (including tabs and spaces)") 46 49 }; 47 50 48 public static readonly List<KeyValuePair<NumberFormatInfo, string>> POSSIBLE_DECIMAL_SEPARATORS = new List<KeyValuePair<NumberFormatInfo, string>>{ 49 new KeyValuePair<NumberFormatInfo, string>(NumberFormatInfo.GetInstance(new CultureInfo("de-DE")), ", (Comma)"), 50 new KeyValuePair<NumberFormatInfo, string>(NumberFormatInfo.InvariantInfo, ". (Period)" ) 51 private static readonly List<KeyValuePair<NumberFormatInfo, string>> POSSIBLE_DECIMAL_SEPARATORS = 52 new List<KeyValuePair<NumberFormatInfo, string>>{ 53 new KeyValuePair<NumberFormatInfo, string>(NumberFormatInfo.GetInstance(new CultureInfo("de-DE")), ", (Comma)"), 54 new KeyValuePair<NumberFormatInfo, string>(NumberFormatInfo.InvariantInfo, ". (Period)" ) 51 55 }; 56 57 private static readonly List<KeyValuePair<Encoding, string>> POSSIBLE_ENCODINGS = 58 new List<KeyValuePair<Encoding, string>> { 59 new KeyValuePair<Encoding, string>(Encoding.Default, "Default"), 60 new KeyValuePair<Encoding, string>(Encoding.ASCII, "ASCII"), 61 new KeyValuePair<Encoding, string>(Encoding.Unicode, "Unicode"), 62 new KeyValuePair<Encoding, string>(Encoding.UTF8, "UTF8") 63 }; 52 64 53 65 public string Path { … … 87 99 DateTimeFormatComboBox.ValueMember = "Key"; 88 100 DateTimeFormatComboBox.DisplayMember = "Value"; 101 EncodingComboBox.DataSource = POSSIBLE_ENCODINGS; 102 EncodingComboBox.ValueMember = "Key"; 103 EncodingComboBox.DisplayMember = "Value"; 104 89 105 } 90 106 … … 100 116 DecimalSeparatorComboBox.Enabled = true; 101 117 DateTimeFormatComboBox.Enabled = true; 118 EncodingComboBox.Enabled = true; 102 119 ProblemTextBox.Text = openFileDialog.FileName; 103 120 TableFileParser csvParser = new TableFileParser(); … … 125 142 try { 126 143 TableFileParser csvParser = new TableFileParser(); 144 csvParser.Encoding = (Encoding)EncodingComboBox.SelectedValue; 127 145 csvParser.Parse(ProblemTextBox.Text, 128 146 (NumberFormatInfo)DecimalSeparatorComboBox.SelectedValue, -
trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis.Views/3.3/RegressionImportTypeDialog.Designer.cs
r12012 r13584 66 66 this.ProblemDataSettingsGroupBox.Controls.Add(this.TargetVariableLabel); 67 67 this.ProblemDataSettingsGroupBox.Controls.Add(this.TargetVariableComboBox); 68 this.ProblemDataSettingsGroupBox.Size = new System.Drawing.Size(447, 251);69 68 this.ProblemDataSettingsGroupBox.Controls.SetChildIndex(this.PreviewLabel, 0); 70 69 this.ProblemDataSettingsGroupBox.Controls.SetChildIndex(this.ShuffelInfoLabel, 0); -
trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis.Views/3.3/TimeSeriesPrognosisImportTypeDialog.Designer.cs
r12012 r13584 58 58 this.ShuffleDataCheckbox.Enabled = false; 59 59 this.ShuffleDataCheckbox.Visible = false; 60 // 61 // OkButton 62 // 63 this.OkButton.Location = new System.Drawing.Point(303, 407); 64 // 65 // CancelationButton 66 // 67 this.CancelationButton.Location = new System.Drawing.Point(384, 407); 60 68 61 // 69 62 // ProblemDataSettingsGroupBox … … 72 65 this.ProblemDataSettingsGroupBox.Controls.Add(this.TargetVariableComboBox); 73 66 this.ProblemDataSettingsGroupBox.Controls.Add(this.TargetVariableLabel); 74 this.ProblemDataSettingsGroupBox.Size = new System.Drawing.Size(447, 237);75 67 this.ProblemDataSettingsGroupBox.Controls.SetChildIndex(this.ShuffleDataCheckbox, 0); 76 68 this.ProblemDataSettingsGroupBox.Controls.SetChildIndex(this.TargetVariableLabel, 0); … … 89 81 this.ErrorTextBox.Location = new System.Drawing.Point(6, 19); 90 82 this.ErrorTextBox.Size = new System.Drawing.Size(435, 69); 91 //92 // PreviewDatasetMatrix93 //94 this.PreviewDatasetMatrix.Size = new System.Drawing.Size(435, 123);95 83 // 96 84 // SeparatorInfoLabel … … 114 102 // TargetVariableComboBox 115 103 // 116 this.TargetVariableComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 104 this.TargetVariableComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 117 105 | System.Windows.Forms.AnchorStyles.Right))); 118 106 this.TargetVariableComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; … … 148 136 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 149 137 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 150 this.ClientSize = new System.Drawing.Size(471, 4 42);138 this.ClientSize = new System.Drawing.Size(471, 457); 151 139 this.Name = "TimeSeriesPrognosisImportTypeDialog"; 152 140 this.Text = "TimeSeries Prognosis CSV Import";
Note: See TracChangeset
for help on using the changeset viewer.