Changeset 9496
- Timestamp:
- 05/16/13 09:11:15 (12 years ago)
- Location:
- trunk/sources/HeuristicLab.Visualization.ChartControlsExtensions/3.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization.ChartControlsExtensions/3.3/HeuristicLab.Visualization.ChartControlsExtensions-3.3.csproj
r8600 r9496 156 156 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 157 157 <PropertyGroup> 158 <PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">set Path=%25Path%25;$(ProjectDir);$(SolutionDir)158 <PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">set Path=%25Path%25;$(ProjectDir);$(SolutionDir) 159 159 set ProjectDir=$(ProjectDir) 160 160 set SolutionDir=$(SolutionDir) … … 163 163 call PreBuildEvent.cmd 164 164 </PreBuildEvent> 165 <PreBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">165 <PreBuildEvent Condition=" '$(OS)' != 'Windows_NT' "> 166 166 export ProjectDir=$(ProjectDir) 167 167 export SolutionDir=$(SolutionDir) -
trunk/sources/HeuristicLab.Visualization.ChartControlsExtensions/3.3/ImageExportDialog.Designer.cs
r9456 r9496 45 45 /// </summary> 46 46 private void InitializeComponent() { 47 this.components = new System.ComponentModel.Container(); 47 48 this.titleTextBox = new System.Windows.Forms.TextBox(); 48 49 this.label1 = new System.Windows.Forms.Label(); … … 63 64 this.label10 = new System.Windows.Forms.Label(); 64 65 this.groupBox1 = new System.Windows.Forms.GroupBox(); 66 this.showSecondaryYAxisCheckBox = new System.Windows.Forms.CheckBox(); 67 this.showSecondaryXAxisCheckBox = new System.Windows.Forms.CheckBox(); 65 68 this.groupBox2 = new System.Windows.Forms.GroupBox(); 69 this.showPrimaryYAxisCheckBox = new System.Windows.Forms.CheckBox(); 70 this.showPrimaryXAxisCheckBox = new System.Windows.Forms.CheckBox(); 66 71 this.primaryXTextBox = new System.Windows.Forms.TextBox(); 67 72 this.primaryYTextBox = new System.Windows.Forms.TextBox(); … … 85 90 this.label8 = new System.Windows.Forms.Label(); 86 91 this.previewPictureBox = new System.Windows.Forms.PictureBox(); 92 this.label19 = new System.Windows.Forms.Label(); 87 93 this.label13 = new System.Windows.Forms.Label(); 94 this.rawImageSizeLabel = new System.Windows.Forms.Label(); 88 95 this.previewZoomLabel = new System.Windows.Forms.Label(); 89 96 this.saveFileDialog = new System.Windows.Forms.SaveFileDialog(); 90 this.label19 = new System.Windows.Forms.Label(); 91 this.rawImageSizeLabel = new System.Windows.Forms.Label(); 97 this.toolTip = new System.Windows.Forms.ToolTip(this.components); 92 98 ((System.ComponentModel.ISupportInitialize)(this.widthNumericUD)).BeginInit(); 93 99 this.groupBox1.SuspendLayout(); … … 104 110 // titleTextBox 105 111 // 106 this.titleTextBox.Location = new System.Drawing.Point( 62, 11);112 this.titleTextBox.Location = new System.Drawing.Point(84, 11); 107 113 this.titleTextBox.Name = "titleTextBox"; 108 this.titleTextBox.Size = new System.Drawing.Size( 203, 20);114 this.titleTextBox.Size = new System.Drawing.Size(159, 20); 109 115 this.titleTextBox.TabIndex = 1; 116 this.toolTip.SetToolTip(this.titleTextBox, "The title of the chart, will be removed if set to empty."); 110 117 this.titleTextBox.TextChanged += new System.EventHandler(this.titleTextBox_TextChanged); 111 118 // … … 126 133 this.okButton.Name = "okButton"; 127 134 this.okButton.Size = new System.Drawing.Size(75, 23); 128 this.okButton.TabIndex = 13;135 this.okButton.TabIndex = 2; 129 136 this.okButton.Text = "Save"; 130 137 this.okButton.UseVisualStyleBackColor = true; … … 134 141 // 135 142 this.label2.AutoSize = true; 136 this.label2.Location = new System.Drawing.Point(1 0, 14);143 this.label2.Location = new System.Drawing.Point(18, 14); 137 144 this.label2.Name = "label2"; 138 this.label2.Size = new System.Drawing.Size( 30, 13);145 this.label2.Size = new System.Drawing.Size(54, 13); 139 146 this.label2.TabIndex = 0; 140 this.label2.Text = "Title :";147 this.label2.Text = "Title Text:"; 141 148 // 142 149 // secondaryXTextBox 143 150 // 144 this.secondaryXTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 145 146 this.secondaryXTextBox.Location = new System.Drawing.Point( 49, 27);151 this.secondaryXTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 152 | System.Windows.Forms.AnchorStyles.Right))); 153 this.secondaryXTextBox.Location = new System.Drawing.Point(72, 27); 147 154 this.secondaryXTextBox.Name = "secondaryXTextBox"; 148 this.secondaryXTextBox.Size = new System.Drawing.Size( 203, 20);155 this.secondaryXTextBox.Size = new System.Drawing.Size(159, 20); 149 156 this.secondaryXTextBox.TabIndex = 1; 157 this.toolTip.SetToolTip(this.secondaryXTextBox, "Label of the secondary x-axis"); 150 158 this.secondaryXTextBox.TextChanged += new System.EventHandler(this.secondaryXTextBox_TextChanged); 151 159 // … … 155 163 this.label3.Location = new System.Drawing.Point(6, 30); 156 164 this.label3.Name = "label3"; 157 this.label3.Size = new System.Drawing.Size( 23, 13);165 this.label3.Size = new System.Drawing.Size(46, 13); 158 166 this.label3.TabIndex = 0; 159 this.label3.Text = "X 2:";167 this.label3.Text = "X Label:"; 160 168 // 161 169 // secondaryYTextBox 162 170 // 163 this.secondaryYTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 164 165 this.secondaryYTextBox.Location = new System.Drawing.Point( 49, 53);171 this.secondaryYTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 172 | System.Windows.Forms.AnchorStyles.Right))); 173 this.secondaryYTextBox.Location = new System.Drawing.Point(72, 53); 166 174 this.secondaryYTextBox.Name = "secondaryYTextBox"; 167 this.secondaryYTextBox.Size = new System.Drawing.Size(203, 20); 168 this.secondaryYTextBox.TabIndex = 3; 175 this.secondaryYTextBox.Size = new System.Drawing.Size(159, 20); 176 this.secondaryYTextBox.TabIndex = 4; 177 this.toolTip.SetToolTip(this.secondaryYTextBox, "Label of the secondary y-axis"); 169 178 this.secondaryYTextBox.TextChanged += new System.EventHandler(this.secondaryYTextBox_TextChanged); 170 179 // … … 174 183 this.label4.Location = new System.Drawing.Point(6, 56); 175 184 this.label4.Name = "label4"; 176 this.label4.Size = new System.Drawing.Size( 23, 13);177 this.label4.TabIndex = 2;178 this.label4.Text = "Y 2:";185 this.label4.Size = new System.Drawing.Size(46, 13); 186 this.label4.TabIndex = 3; 187 this.label4.Text = "Y Label:"; 179 188 // 180 189 // resolutionComboBox … … 185 194 "96", 186 195 "150", 187 "300"}); 188 this.resolutionComboBox.Location = new System.Drawing.Point(76, 383); 196 "300", 197 "600", 198 "800", 199 "1200"}); 200 this.resolutionComboBox.Location = new System.Drawing.Point(84, 383); 189 201 this.resolutionComboBox.Name = "resolutionComboBox"; 190 this.resolutionComboBox.Size = new System.Drawing.Size(75, 21); 191 this.resolutionComboBox.TabIndex = 6; 202 this.resolutionComboBox.Size = new System.Drawing.Size(83, 21); 203 this.resolutionComboBox.TabIndex = 8; 204 this.toolTip.SetToolTip(this.resolutionComboBox, "Specify the resolution of the output image, use a minimum of 300dpi if the image " + 205 "should appear in a publication."); 192 206 this.resolutionComboBox.TextChanged += new System.EventHandler(this.resolutionComboBox_TextChanged); 193 207 this.resolutionComboBox.Validating += new System.ComponentModel.CancelEventHandler(this.resolutionComboBox_Validating); … … 201 215 0, 202 216 65536}); 203 this.widthNumericUD.Location = new System.Drawing.Point( 76, 410);217 this.widthNumericUD.Location = new System.Drawing.Point(84, 410); 204 218 this.widthNumericUD.Minimum = new decimal(new int[] { 205 219 1, … … 208 222 65536}); 209 223 this.widthNumericUD.Name = "widthNumericUD"; 210 this.widthNumericUD.Size = new System.Drawing.Size( 75, 20);211 this.widthNumericUD.TabIndex = 8;224 this.widthNumericUD.Size = new System.Drawing.Size(83, 20); 225 this.widthNumericUD.TabIndex = 11; 212 226 this.widthNumericUD.Value = new decimal(new int[] { 213 227 8, … … 220 234 // 221 235 this.label5.AutoSize = true; 222 this.label5.Location = new System.Drawing.Point(1 0, 386);236 this.label5.Location = new System.Drawing.Point(18, 386); 223 237 this.label5.Name = "label5"; 224 238 this.label5.Size = new System.Drawing.Size(60, 13); 225 this.label5.TabIndex = 5;239 this.label5.TabIndex = 7; 226 240 this.label5.Text = "Resolution:"; 227 241 // … … 229 243 // 230 244 this.label6.AutoSize = true; 231 this.label6.Location = new System.Drawing.Point(1 0, 412);245 this.label6.Location = new System.Drawing.Point(18, 412); 232 246 this.label6.Name = "label6"; 233 247 this.label6.Size = new System.Drawing.Size(38, 13); 234 this.label6.TabIndex = 7;248 this.label6.TabIndex = 10; 235 249 this.label6.Text = "Width:"; 236 250 // 237 251 // axisFontSizeComboBox 238 252 // 239 this.axisFontSizeComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 240 253 this.axisFontSizeComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 254 | System.Windows.Forms.AnchorStyles.Right))); 241 255 this.axisFontSizeComboBox.FormattingEnabled = true; 242 256 this.axisFontSizeComboBox.Items.AddRange(new object[] { … … 252 266 "36", 253 267 "72"}); 254 this.axisFontSizeComboBox.Location = new System.Drawing.Point( 54, 46);268 this.axisFontSizeComboBox.Location = new System.Drawing.Point(72, 46); 255 269 this.axisFontSizeComboBox.Name = "axisFontSizeComboBox"; 256 this.axisFontSizeComboBox.Size = new System.Drawing.Size(84, 21); 257 this.axisFontSizeComboBox.TabIndex = 3; 270 this.axisFontSizeComboBox.Size = new System.Drawing.Size(159, 21); 271 this.axisFontSizeComboBox.TabIndex = 4; 272 this.toolTip.SetToolTip(this.axisFontSizeComboBox, "The font size of the axis labels"); 258 273 this.axisFontSizeComboBox.TextChanged += new System.EventHandler(this.axisFontSizeComboBox_TextChanged); 259 274 this.axisFontSizeComboBox.Validating += new System.ComponentModel.CancelEventHandler(this.numericComboBox_Validating); … … 261 276 // scalesFontSizeComboBox 262 277 // 263 this.scalesFontSizeComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 264 278 this.scalesFontSizeComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 279 | System.Windows.Forms.AnchorStyles.Right))); 265 280 this.scalesFontSizeComboBox.FormattingEnabled = true; 266 281 this.scalesFontSizeComboBox.Items.AddRange(new object[] { … … 280 295 "36", 281 296 "72"}); 282 this.scalesFontSizeComboBox.Location = new System.Drawing.Point( 54, 73);297 this.scalesFontSizeComboBox.Location = new System.Drawing.Point(72, 73); 283 298 this.scalesFontSizeComboBox.Name = "scalesFontSizeComboBox"; 284 this.scalesFontSizeComboBox.Size = new System.Drawing.Size(84, 21); 285 this.scalesFontSizeComboBox.TabIndex = 5; 299 this.scalesFontSizeComboBox.Size = new System.Drawing.Size(159, 21); 300 this.scalesFontSizeComboBox.TabIndex = 7; 301 this.toolTip.SetToolTip(this.scalesFontSizeComboBox, "The font size of the scales"); 286 302 this.scalesFontSizeComboBox.TextChanged += new System.EventHandler(this.scalesFontSizeComboBox_TextChanged); 287 303 this.scalesFontSizeComboBox.Validating += new System.ComponentModel.CancelEventHandler(this.numericComboBox_Validating); … … 293 309 this.cancelButton.Name = "cancelButton"; 294 310 this.cancelButton.Size = new System.Drawing.Size(75, 23); 295 this.cancelButton.TabIndex = 14;311 this.cancelButton.TabIndex = 0; 296 312 this.cancelButton.Text = "Cancel"; 297 313 this.cancelButton.UseVisualStyleBackColor = true; … … 301 317 // 302 318 this.label9.AutoSize = true; 303 this.label9.Location = new System.Drawing.Point(6, 51);319 this.label9.Location = new System.Drawing.Point(6, 49); 304 320 this.label9.Name = "label9"; 305 321 this.label9.Size = new System.Drawing.Size(29, 13); 306 this.label9.TabIndex = 2;322 this.label9.TabIndex = 3; 307 323 this.label9.Text = "Axis:"; 308 324 // … … 313 329 this.label10.Name = "label10"; 314 330 this.label10.Size = new System.Drawing.Size(42, 13); 315 this.label10.TabIndex = 4;331 this.label10.TabIndex = 6; 316 332 this.label10.Text = "Scales:"; 317 333 // 318 334 // groupBox1 319 335 // 336 this.groupBox1.Controls.Add(this.showSecondaryYAxisCheckBox); 337 this.groupBox1.Controls.Add(this.showSecondaryXAxisCheckBox); 320 338 this.groupBox1.Controls.Add(this.secondaryXTextBox); 321 339 this.groupBox1.Controls.Add(this.secondaryYTextBox); … … 325 343 this.groupBox1.Name = "groupBox1"; 326 344 this.groupBox1.Size = new System.Drawing.Size(258, 82); 327 this.groupBox1.TabIndex = 3;345 this.groupBox1.TabIndex = 5; 328 346 this.groupBox1.TabStop = false; 329 347 this.groupBox1.Text = "Secondary Axis"; 330 348 // 349 // showSecondaryYAxisCheckBox 350 // 351 this.showSecondaryYAxisCheckBox.AutoSize = true; 352 this.showSecondaryYAxisCheckBox.Location = new System.Drawing.Point(237, 56); 353 this.showSecondaryYAxisCheckBox.Name = "showSecondaryYAxisCheckBox"; 354 this.showSecondaryYAxisCheckBox.Size = new System.Drawing.Size(15, 14); 355 this.showSecondaryYAxisCheckBox.TabIndex = 5; 356 this.toolTip.SetToolTip(this.showSecondaryYAxisCheckBox, "Display"); 357 this.showSecondaryYAxisCheckBox.UseVisualStyleBackColor = true; 358 this.showSecondaryYAxisCheckBox.CheckedChanged += new System.EventHandler(this.showSecondaryYAxisCheckBox_CheckedChanged); 359 // 360 // showSecondaryXAxisCheckBox 361 // 362 this.showSecondaryXAxisCheckBox.AutoSize = true; 363 this.showSecondaryXAxisCheckBox.Location = new System.Drawing.Point(237, 30); 364 this.showSecondaryXAxisCheckBox.Name = "showSecondaryXAxisCheckBox"; 365 this.showSecondaryXAxisCheckBox.Size = new System.Drawing.Size(15, 14); 366 this.showSecondaryXAxisCheckBox.TabIndex = 2; 367 this.toolTip.SetToolTip(this.showSecondaryXAxisCheckBox, "Display"); 368 this.showSecondaryXAxisCheckBox.UseVisualStyleBackColor = true; 369 this.showSecondaryXAxisCheckBox.CheckedChanged += new System.EventHandler(this.showSecondaryXAxisCheckBox_CheckedChanged); 370 // 331 371 // groupBox2 332 372 // 373 this.groupBox2.Controls.Add(this.showPrimaryYAxisCheckBox); 374 this.groupBox2.Controls.Add(this.showPrimaryXAxisCheckBox); 333 375 this.groupBox2.Controls.Add(this.primaryXTextBox); 334 376 this.groupBox2.Controls.Add(this.primaryYTextBox); … … 338 380 this.groupBox2.Name = "groupBox2"; 339 381 this.groupBox2.Size = new System.Drawing.Size(258, 84); 340 this.groupBox2.TabIndex = 2;382 this.groupBox2.TabIndex = 4; 341 383 this.groupBox2.TabStop = false; 342 384 this.groupBox2.Text = "Primary Axis"; 343 385 // 386 // showPrimaryYAxisCheckBox 387 // 388 this.showPrimaryYAxisCheckBox.AutoSize = true; 389 this.showPrimaryYAxisCheckBox.Location = new System.Drawing.Point(237, 56); 390 this.showPrimaryYAxisCheckBox.Name = "showPrimaryYAxisCheckBox"; 391 this.showPrimaryYAxisCheckBox.Size = new System.Drawing.Size(15, 14); 392 this.showPrimaryYAxisCheckBox.TabIndex = 5; 393 this.toolTip.SetToolTip(this.showPrimaryYAxisCheckBox, "Display"); 394 this.showPrimaryYAxisCheckBox.UseVisualStyleBackColor = true; 395 this.showPrimaryYAxisCheckBox.CheckedChanged += new System.EventHandler(this.showPrimaryYAxisCheckBox_CheckedChanged); 396 // 397 // showPrimaryXAxisCheckBox 398 // 399 this.showPrimaryXAxisCheckBox.AutoSize = true; 400 this.showPrimaryXAxisCheckBox.Location = new System.Drawing.Point(237, 30); 401 this.showPrimaryXAxisCheckBox.Name = "showPrimaryXAxisCheckBox"; 402 this.showPrimaryXAxisCheckBox.Size = new System.Drawing.Size(15, 14); 403 this.showPrimaryXAxisCheckBox.TabIndex = 2; 404 this.toolTip.SetToolTip(this.showPrimaryXAxisCheckBox, "Display"); 405 this.showPrimaryXAxisCheckBox.UseVisualStyleBackColor = true; 406 this.showPrimaryXAxisCheckBox.CheckedChanged += new System.EventHandler(this.showPrimaryXAxisCheckBox_CheckedChanged); 407 // 344 408 // primaryXTextBox 345 409 // 346 this.primaryXTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 347 348 this.primaryXTextBox.Location = new System.Drawing.Point( 49, 27);410 this.primaryXTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 411 | System.Windows.Forms.AnchorStyles.Right))); 412 this.primaryXTextBox.Location = new System.Drawing.Point(72, 27); 349 413 this.primaryXTextBox.Name = "primaryXTextBox"; 350 this.primaryXTextBox.Size = new System.Drawing.Size( 203, 20);414 this.primaryXTextBox.Size = new System.Drawing.Size(159, 20); 351 415 this.primaryXTextBox.TabIndex = 1; 416 this.toolTip.SetToolTip(this.primaryXTextBox, "Label of the primary x-axis"); 352 417 this.primaryXTextBox.TextChanged += new System.EventHandler(this.primaryXTextBox_TextChanged); 353 418 // 354 419 // primaryYTextBox 355 420 // 356 this.primaryYTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 357 358 this.primaryYTextBox.Location = new System.Drawing.Point( 49, 53);421 this.primaryYTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 422 | System.Windows.Forms.AnchorStyles.Right))); 423 this.primaryYTextBox.Location = new System.Drawing.Point(72, 53); 359 424 this.primaryYTextBox.Name = "primaryYTextBox"; 360 this.primaryYTextBox.Size = new System.Drawing.Size(203, 20); 361 this.primaryYTextBox.TabIndex = 3; 425 this.primaryYTextBox.Size = new System.Drawing.Size(159, 20); 426 this.primaryYTextBox.TabIndex = 4; 427 this.toolTip.SetToolTip(this.primaryYTextBox, "Label of the primary y-axis"); 362 428 this.primaryYTextBox.TextChanged += new System.EventHandler(this.primaryYTextBox_TextChanged); 363 429 // … … 367 433 this.label14.Location = new System.Drawing.Point(6, 56); 368 434 this.label14.Name = "label14"; 369 this.label14.Size = new System.Drawing.Size( 17, 13);370 this.label14.TabIndex = 2;371 this.label14.Text = "Y :";435 this.label14.Size = new System.Drawing.Size(46, 13); 436 this.label14.TabIndex = 3; 437 this.label14.Text = "Y Label:"; 372 438 // 373 439 // label15 … … 376 442 this.label15.Location = new System.Drawing.Point(6, 30); 377 443 this.label15.Name = "label15"; 378 this.label15.Size = new System.Drawing.Size( 17, 13);444 this.label15.Size = new System.Drawing.Size(46, 13); 379 445 this.label15.TabIndex = 0; 380 this.label15.Text = "X :";446 this.label15.Text = "X Label:"; 381 447 // 382 448 // groupBox3 … … 397 463 this.groupBox3.Name = "groupBox3"; 398 464 this.groupBox3.Size = new System.Drawing.Size(258, 131); 399 this.groupBox3.TabIndex = 4;465 this.groupBox3.TabIndex = 6; 400 466 this.groupBox3.TabStop = false; 401 467 this.groupBox3.Text = "Font Size"; … … 404 470 // 405 471 this.label18.AutoSize = true; 406 this.label18.Location = new System.Drawing.Point( 144, 105);472 this.label18.Location = new System.Drawing.Point(234, 105); 407 473 this.label18.Name = "label18"; 408 474 this.label18.Size = new System.Drawing.Size(16, 13); 409 this.label18.TabIndex = 0;475 this.label18.TabIndex = 11; 410 476 this.label18.Text = "pt"; 411 477 // … … 413 479 // 414 480 this.label12.AutoSize = true; 415 this.label12.Location = new System.Drawing.Point( 144, 78);481 this.label12.Location = new System.Drawing.Point(234, 78); 416 482 this.label12.Name = "label12"; 417 483 this.label12.Size = new System.Drawing.Size(16, 13); 418 this.label12.TabIndex = 0;484 this.label12.TabIndex = 8; 419 485 this.label12.Text = "pt"; 420 486 // … … 422 488 // 423 489 this.label11.AutoSize = true; 424 this.label11.Location = new System.Drawing.Point( 144, 51);490 this.label11.Location = new System.Drawing.Point(234, 49); 425 491 this.label11.Name = "label11"; 426 492 this.label11.Size = new System.Drawing.Size(16, 13); 427 this.label11.TabIndex = 0;493 this.label11.TabIndex = 5; 428 494 this.label11.Text = "pt"; 429 495 // … … 431 497 // 432 498 this.label7.AutoSize = true; 433 this.label7.Location = new System.Drawing.Point( 144, 22);499 this.label7.Location = new System.Drawing.Point(234, 22); 434 500 this.label7.Name = "label7"; 435 501 this.label7.Size = new System.Drawing.Size(16, 13); 436 this.label7.TabIndex = 0;502 this.label7.TabIndex = 2; 437 503 this.label7.Text = "pt"; 438 504 // 439 505 // legendFontSizeComboBox 440 506 // 441 this.legendFontSizeComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 442 507 this.legendFontSizeComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 508 | System.Windows.Forms.AnchorStyles.Right))); 443 509 this.legendFontSizeComboBox.FormattingEnabled = true; 444 510 this.legendFontSizeComboBox.Items.AddRange(new object[] { … … 458 524 "36", 459 525 "72"}); 460 this.legendFontSizeComboBox.Location = new System.Drawing.Point( 54, 100);526 this.legendFontSizeComboBox.Location = new System.Drawing.Point(72, 100); 461 527 this.legendFontSizeComboBox.Name = "legendFontSizeComboBox"; 462 this.legendFontSizeComboBox.Size = new System.Drawing.Size(84, 21); 463 this.legendFontSizeComboBox.TabIndex = 5; 528 this.legendFontSizeComboBox.Size = new System.Drawing.Size(159, 21); 529 this.legendFontSizeComboBox.TabIndex = 10; 530 this.toolTip.SetToolTip(this.legendFontSizeComboBox, "The font size of the legend text"); 464 531 this.legendFontSizeComboBox.TextChanged += new System.EventHandler(this.legendFontSizeComboBox_TextChanged); 465 532 this.legendFontSizeComboBox.Validating += new System.ComponentModel.CancelEventHandler(this.numericComboBox_Validating); … … 471 538 this.label17.Name = "label17"; 472 539 this.label17.Size = new System.Drawing.Size(46, 13); 473 this.label17.TabIndex = 4;540 this.label17.TabIndex = 9; 474 541 this.label17.Text = "Legend:"; 475 542 // 476 543 // titleFontSizeComboBox 477 544 // 478 this.titleFontSizeComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 479 545 this.titleFontSizeComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 546 | System.Windows.Forms.AnchorStyles.Right))); 480 547 this.titleFontSizeComboBox.FormattingEnabled = true; 481 548 this.titleFontSizeComboBox.Items.AddRange(new object[] { … … 491 558 "36", 492 559 "72"}); 493 this.titleFontSizeComboBox.Location = new System.Drawing.Point( 54, 19);560 this.titleFontSizeComboBox.Location = new System.Drawing.Point(72, 19); 494 561 this.titleFontSizeComboBox.Name = "titleFontSizeComboBox"; 495 this.titleFontSizeComboBox.Size = new System.Drawing.Size( 84, 21);562 this.titleFontSizeComboBox.Size = new System.Drawing.Size(159, 21); 496 563 this.titleFontSizeComboBox.TabIndex = 1; 564 this.toolTip.SetToolTip(this.titleFontSizeComboBox, "The font size of the title text"); 497 565 this.titleFontSizeComboBox.TextChanged += new System.EventHandler(this.titleFontSizeComboBox_TextChanged); 498 566 this.titleFontSizeComboBox.Validating += new System.ComponentModel.CancelEventHandler(this.numericComboBox_Validating); … … 501 569 // 502 570 this.label16.AutoSize = true; 503 this.label16.Location = new System.Drawing.Point(1 0, 438);571 this.label16.Location = new System.Drawing.Point(18, 438); 504 572 this.label16.Name = "label16"; 505 573 this.label16.Size = new System.Drawing.Size(41, 13); 506 this.label16.TabIndex = 1 0;574 this.label16.TabIndex = 12; 507 575 this.label16.Text = "Height:"; 508 576 // … … 515 583 0, 516 584 65536}); 517 this.heightNumericUD.Location = new System.Drawing.Point( 76, 436);585 this.heightNumericUD.Location = new System.Drawing.Point(84, 436); 518 586 this.heightNumericUD.Minimum = new decimal(new int[] { 519 587 1, … … 522 590 65536}); 523 591 this.heightNumericUD.Name = "heightNumericUD"; 524 this.heightNumericUD.Size = new System.Drawing.Size( 75, 20);525 this.heightNumericUD.TabIndex = 1 1;592 this.heightNumericUD.Size = new System.Drawing.Size(83, 20); 593 this.heightNumericUD.TabIndex = 13; 526 594 this.heightNumericUD.Value = new decimal(new int[] { 527 8,595 6, 528 596 0, 529 597 0, … … 567 635 this.splitContainer.SplitterDistance = 300; 568 636 this.splitContainer.SplitterWidth = 1; 569 this.splitContainer.TabIndex = 1 5;637 this.splitContainer.TabIndex = 1; 570 638 // 571 639 // chartAreaComboBox … … 573 641 this.chartAreaComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 574 642 this.chartAreaComboBox.FormattingEnabled = true; 575 this.chartAreaComboBox.Location = new System.Drawing.Point( 76, 37);643 this.chartAreaComboBox.Location = new System.Drawing.Point(84, 37); 576 644 this.chartAreaComboBox.Name = "chartAreaComboBox"; 577 this.chartAreaComboBox.Size = new System.Drawing.Size(189, 21); 578 this.chartAreaComboBox.TabIndex = 17; 645 this.chartAreaComboBox.Size = new System.Drawing.Size(159, 21); 646 this.chartAreaComboBox.TabIndex = 3; 647 this.toolTip.SetToolTip(this.chartAreaComboBox, "Select the chart area in case there are multiple."); 579 648 this.chartAreaComboBox.SelectedIndexChanged += new System.EventHandler(this.chartAreaComboBox_SelectedIndexChanged); 580 649 // 581 650 // togglePreviewCheckBox 582 651 // 583 this.togglePreviewCheckBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 584 652 this.togglePreviewCheckBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 653 | System.Windows.Forms.AnchorStyles.Left))); 585 654 this.togglePreviewCheckBox.Appearance = System.Windows.Forms.Appearance.Button; 586 655 this.togglePreviewCheckBox.FlatStyle = System.Windows.Forms.FlatStyle.Flat; … … 590 659 this.togglePreviewCheckBox.TabIndex = 16; 591 660 this.togglePreviewCheckBox.Text = ">"; 661 this.toolTip.SetToolTip(this.togglePreviewCheckBox, "Show or hide the preview pane"); 592 662 this.togglePreviewCheckBox.UseVisualStyleBackColor = true; 593 663 this.togglePreviewCheckBox.CheckedChanged += new System.EventHandler(this.togglePreviewCheckBox_CheckedChanged); … … 597 667 this.lengthUnitComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 598 668 this.lengthUnitComboBox.FormattingEnabled = true; 599 this.lengthUnitComboBox.Location = new System.Drawing.Point(1 57, 422);669 this.lengthUnitComboBox.Location = new System.Drawing.Point(173, 422); 600 670 this.lengthUnitComboBox.Name = "lengthUnitComboBox"; 601 this.lengthUnitComboBox.Size = new System.Drawing.Size( 108, 21);602 this.lengthUnitComboBox.TabIndex = 6;671 this.lengthUnitComboBox.Size = new System.Drawing.Size(70, 21); 672 this.lengthUnitComboBox.TabIndex = 14; 603 673 this.lengthUnitComboBox.SelectedIndexChanged += new System.EventHandler(this.lengthUnitComboBox_SelectedIndexChanged); 604 674 // … … 607 677 this.resolutionUnitComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 608 678 this.resolutionUnitComboBox.FormattingEnabled = true; 609 this.resolutionUnitComboBox.Location = new System.Drawing.Point(1 57, 383);679 this.resolutionUnitComboBox.Location = new System.Drawing.Point(173, 383); 610 680 this.resolutionUnitComboBox.Name = "resolutionUnitComboBox"; 611 this.resolutionUnitComboBox.Size = new System.Drawing.Size( 108, 21);612 this.resolutionUnitComboBox.TabIndex = 6;681 this.resolutionUnitComboBox.Size = new System.Drawing.Size(70, 21); 682 this.resolutionUnitComboBox.TabIndex = 9; 613 683 this.resolutionUnitComboBox.SelectedIndexChanged += new System.EventHandler(this.resolutionUnitComboBox_SelectedIndexChanged); 614 684 // … … 616 686 // 617 687 this.label8.AutoSize = true; 618 this.label8.Location = new System.Drawing.Point(1 0, 40);688 this.label8.Location = new System.Drawing.Point(18, 40); 619 689 this.label8.Name = "label8"; 620 this.label8.Size = new System.Drawing.Size( 60, 13);621 this.label8.TabIndex = 0;622 this.label8.Text = " ChartArea:";690 this.label8.Size = new System.Drawing.Size(32, 13); 691 this.label8.TabIndex = 2; 692 this.label8.Text = "Area:"; 623 693 // 624 694 // previewPictureBox … … 631 701 this.previewPictureBox.TabStop = false; 632 702 // 703 // label19 704 // 705 this.label19.AutoSize = true; 706 this.label19.Location = new System.Drawing.Point(85, 459); 707 this.label19.Name = "label19"; 708 this.label19.Size = new System.Drawing.Size(84, 13); 709 this.label19.TabIndex = 10; 710 this.label19.Text = "Raw image size:"; 711 // 633 712 // label13 634 713 // … … 640 719 this.label13.Text = "Zoom:"; 641 720 // 721 // rawImageSizeLabel 722 // 723 this.rawImageSizeLabel.AutoSize = true; 724 this.rawImageSizeLabel.Location = new System.Drawing.Point(175, 459); 725 this.rawImageSizeLabel.Name = "rawImageSizeLabel"; 726 this.rawImageSizeLabel.Size = new System.Drawing.Size(37, 13); 727 this.rawImageSizeLabel.TabIndex = 10; 728 this.rawImageSizeLabel.Text = "0.00M"; 729 // 642 730 // previewZoomLabel 643 731 // … … 652 740 // 653 741 this.saveFileDialog.Filter = "Bitmap (*.bmp)|*.bmp|JPEG (*.jpg)|*.jpg|EMF (*.emf)|*.emf|PNG (*.png)|*.png|GIF (" + 654 742 "*.gif)|*.gif|TIFF (*.tif)|*.tif\""; 655 743 this.saveFileDialog.FilterIndex = 2; 656 744 // 657 // label19658 //659 this.label19.AutoSize = true;660 this.label19.Location = new System.Drawing.Point(85, 459);661 this.label19.Name = "label19";662 this.label19.Size = new System.Drawing.Size(84, 13);663 this.label19.TabIndex = 10;664 this.label19.Text = "Raw image size:";665 //666 // rawImageSizeLabel667 //668 this.rawImageSizeLabel.AutoSize = true;669 this.rawImageSizeLabel.Location = new System.Drawing.Point(175, 459);670 this.rawImageSizeLabel.Name = "rawImageSizeLabel";671 this.rawImageSizeLabel.Size = new System.Drawing.Size(37, 13);672 this.rawImageSizeLabel.TabIndex = 10;673 this.rawImageSizeLabel.Text = "0.00M";674 //675 745 // ImageExportDialog 676 746 // 677 747 this.AcceptButton = this.okButton; 678 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);679 748 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 680 749 this.CancelButton = this.cancelButton; … … 755 824 private System.Windows.Forms.Label label19; 756 825 private System.Windows.Forms.Label rawImageSizeLabel; 826 private System.Windows.Forms.CheckBox showSecondaryYAxisCheckBox; 827 private System.Windows.Forms.CheckBox showSecondaryXAxisCheckBox; 828 private System.Windows.Forms.CheckBox showPrimaryYAxisCheckBox; 829 private System.Windows.Forms.CheckBox showPrimaryXAxisCheckBox; 830 private System.Windows.Forms.ToolTip toolTip; 757 831 } 758 832 } -
trunk/sources/HeuristicLab.Visualization.ChartControlsExtensions/3.3/ImageExportDialog.cs
r9456 r9496 25 25 using System.Drawing.Imaging; 26 26 using System.IO; 27 using System.Linq; 27 28 using System.Windows.Forms; 28 29 using System.Windows.Forms.DataVisualization.Charting; … … 58 59 else lengthUnitComboBox.SelectedIndex = 0; 59 60 60 titleFontSizeComboBox.Text = "1 2";61 titleFontSizeComboBox.Text = "10"; 61 62 axisFontSizeComboBox.Text = "8"; 62 63 scalesFontSizeComboBox.Text = "6"; 63 64 legendFontSizeComboBox.Text = "6"; 64 resolutionComboBox.Text = " 300";65 resolutionComboBox.Text = "150"; 65 66 SuppressEvents = false; 66 67 splitContainer.Panel2Collapsed = true; 67 68 Width = 305; 68 Height = 5 50;69 Height = 560; 69 70 } finally { SuppressEvents = false; } 70 71 #endregion … … 72 73 73 74 private void UpdateFields() { 74 ChartAreaarea = GetCurrentChartArea();75 var area = GetCurrentChartArea(); 75 76 76 77 try { 77 78 SuppressEvents = true; 78 79 79 if (workingChart.Titles.Count == 0) titleFontSizeComboBox.Text = "1 2";80 if (workingChart.Titles.Count == 0) titleFontSizeComboBox.Text = "10"; 80 81 else { 81 82 titleTextBox.Text = workingChart.Titles[0].Text; … … 90 91 axisFontSizeComboBox.Text = area.AxisX.TitleFont.SizeInPoints.ToString(); 91 92 scalesFontSizeComboBox.Text = area.AxisX.LabelStyle.Font.SizeInPoints.ToString(); 92 if (workingChart.Legends.Count == 0) legendFontSizeComboBox.Text = " 8";93 if (workingChart.Legends.Count == 0) legendFontSizeComboBox.Text = "6"; 93 94 else legendFontSizeComboBox.Text = workingChart.Legends[0].Font.SizeInPoints.ToString(); 94 95 } finally { … … 121 122 } 122 123 123 floatscaleFactor = (float)Math.Min(previewWidth / width, previewHeight / height);124 var scaleFactor = (float)Math.Min(previewWidth / width, previewHeight / height); 124 125 if (scaleFactor >= 1) { 125 126 previewZoomLabel.Text = "100%"; … … 129 130 rawImageSizeLabel.Text = GetRawImageSizeInMegabytes(width, height).ToString("0.00") + "M " + "(" + Math.Round(width).ToString("0") + " x " + Math.Round(height).ToString("0") + ") pixels"; 130 131 131 Bitmapimage = new Bitmap(previewWidth, previewHeight);132 var image = new Bitmap(previewWidth, previewHeight); 132 133 image.SetResolution(dpi, dpi); 133 134 using (Graphics graphics = Graphics.FromImage(image)) { … … 155 156 originalChart.Serializer.Content = SerializationContents.Default; 156 157 originalChart.Serializer.Format = SerializationFormat.Binary; 157 MemoryStreamms = new MemoryStream();158 var ms = new MemoryStream(); 158 159 originalChart.Serializer.Save(ms); 159 160 … … 169 170 170 171 chartAreaComboBox.Items.Clear(); 171 foreach ( ChartAreaarea in originalChart.ChartAreas) {172 foreach (var area in originalChart.ChartAreas) { 172 173 chartAreaComboBox.Items.Add(area.Name); 173 174 } 174 175 chartAreaComboBox.SelectedIndex = 0; 176 SuppressEvents = true; 177 try { 178 showPrimaryXAxisCheckBox.Checked = originalChart.Series.Any(x => x.XAxisType == AxisType.Primary); 179 showPrimaryYAxisCheckBox.Checked = originalChart.Series.Any(x => x.YAxisType == AxisType.Primary); 180 showSecondaryXAxisCheckBox.Checked = originalChart.Series.Any(x => x.XAxisType == AxisType.Secondary); 181 showSecondaryYAxisCheckBox.Checked = originalChart.Series.Any(x => x.YAxisType == AxisType.Secondary); 182 } finally { SuppressEvents = false; } 175 183 base.OnShown(e); 176 184 … … 195 203 private void titleTextBox_TextChanged(object sender, EventArgs e) { 196 204 if (!SuppressEvents) { 197 if (workingChart.Titles.Count > 0) { 198 workingChart.Titles[0].Text = titleTextBox.Text; 199 } else { 200 Title t = new Title(titleTextBox.Text); 201 t.Font = ChangeFontSizePt(t.Font, float.Parse(titleFontSizeComboBox.Text)); 202 workingChart.Titles.Add(t); 205 if (string.IsNullOrEmpty(titleTextBox.Text)) 206 workingChart.Titles.Clear(); 207 else { 208 if (workingChart.Titles.Count > 0) { 209 workingChart.Titles[0].Text = titleTextBox.Text; 210 } else { 211 var t = new Title(titleTextBox.Text); 212 t.Font = ChangeFontSizePt(t.Font, float.Parse(titleFontSizeComboBox.Text)); 213 workingChart.Titles.Add(t); 214 } 203 215 } 204 216 if (togglePreviewCheckBox.Checked) UpdatePreview(); … … 208 220 private void primaryXTextBox_TextChanged(object sender, EventArgs e) { 209 221 if (!SuppressEvents) { 210 ChartAreaarea = GetCurrentChartArea();222 var area = GetCurrentChartArea(); 211 223 area.AxisX.Title = primaryXTextBox.Text; 212 224 if (togglePreviewCheckBox.Checked) UpdatePreview(); … … 216 228 private void primaryYTextBox_TextChanged(object sender, EventArgs e) { 217 229 if (!SuppressEvents) { 218 ChartAreaarea = GetCurrentChartArea();230 var area = GetCurrentChartArea(); 219 231 area.AxisY.Title = primaryYTextBox.Text; 220 232 if (togglePreviewCheckBox.Checked) UpdatePreview(); … … 224 236 private void secondaryXTextBox_TextChanged(object sender, EventArgs e) { 225 237 if (!SuppressEvents) { 226 ChartAreaarea = GetCurrentChartArea();238 var area = GetCurrentChartArea(); 227 239 area.AxisX2.Title = secondaryXTextBox.Text; 228 240 if (togglePreviewCheckBox.Checked) UpdatePreview(); … … 232 244 private void secondaryYTextBox_TextChanged(object sender, EventArgs e) { 233 245 if (!SuppressEvents) { 234 ChartAreaarea = GetCurrentChartArea();246 var area = GetCurrentChartArea(); 235 247 area.AxisY2.Title = secondaryYTextBox.Text; 248 if (togglePreviewCheckBox.Checked) UpdatePreview(); 249 } 250 } 251 252 private void showPrimaryXAxisCheckBox_CheckedChanged(object sender, EventArgs e) { 253 if (!SuppressEvents) { 254 var area = GetCurrentChartArea(); 255 var isChecked = ((CheckBox)sender).Checked; 256 area.AxisX.Enabled = isChecked ? AxisEnabled.True : AxisEnabled.False; 257 if (togglePreviewCheckBox.Checked) UpdatePreview(); 258 } 259 } 260 261 private void showPrimaryYAxisCheckBox_CheckedChanged(object sender, EventArgs e) { 262 if (!SuppressEvents) { 263 var area = GetCurrentChartArea(); 264 var isChecked = ((CheckBox)sender).Checked; 265 area.AxisY.Enabled = isChecked ? AxisEnabled.True : AxisEnabled.False; 266 if (togglePreviewCheckBox.Checked) UpdatePreview(); 267 } 268 } 269 270 private void showSecondaryXAxisCheckBox_CheckedChanged(object sender, EventArgs e) { 271 if (!SuppressEvents) { 272 var area = GetCurrentChartArea(); 273 var isChecked = ((CheckBox)sender).Checked; 274 area.AxisX2.Enabled = isChecked ? AxisEnabled.True : AxisEnabled.False; 275 if (togglePreviewCheckBox.Checked) UpdatePreview(); 276 } 277 } 278 279 private void showSecondaryYAxisCheckBox_CheckedChanged(object sender, EventArgs e) { 280 if (!SuppressEvents) { 281 var area = GetCurrentChartArea(); 282 var isChecked = ((CheckBox)sender).Checked; 283 area.AxisY2.Enabled = isChecked ? AxisEnabled.True : AxisEnabled.False; 236 284 if (togglePreviewCheckBox.Checked) UpdatePreview(); 237 285 } … … 270 318 float fontSize; 271 319 if (float.TryParse(axisFontSizeComboBox.Text, out fontSize)) { 272 ChartAreaarea = GetCurrentChartArea();273 foreach (Axis a in area.Axes) {320 var area = GetCurrentChartArea(); 321 foreach (Axis a in area.Axes) 274 322 a.TitleFont = ChangeFontSizePt(a.TitleFont, fontSize); 275 }276 323 } 277 324 if (togglePreviewCheckBox.Checked) UpdatePreview(); … … 283 330 float fontSize; 284 331 if (float.TryParse(scalesFontSizeComboBox.Text, out fontSize)) { 285 ChartAreaarea = GetCurrentChartArea();286 foreach ( Axis a in area.Axes) {332 var area = GetCurrentChartArea(); 333 foreach (var a in area.Axes) 287 334 a.LabelStyle.Font = ChangeFontSizePt(a.LabelStyle.Font, fontSize); 288 }289 335 } 290 336 if (togglePreviewCheckBox.Checked) UpdatePreview(); … … 296 342 float fontSize; 297 343 if (float.TryParse(legendFontSizeComboBox.Text, out fontSize)) { 298 foreach ( Legend l in workingChart.Legends) {344 foreach (var l in workingChart.Legends) 299 345 l.Font = ChangeFontSizePt(l.Font, fontSize); 300 }301 346 } 302 347 if (togglePreviewCheckBox.Checked) UpdatePreview(); … … 336 381 GetImageParameters(out dpi, out width, out height); 337 382 338 Bitmapimage = new Bitmap((int)Math.Round(width), (int)Math.Round(height));383 var image = new Bitmap((int)Math.Round(width), (int)Math.Round(height)); 339 384 image.SetResolution(dpi, dpi); 340 using ( Graphicsgraphics = Graphics.FromImage(image)) {385 using (var graphics = Graphics.FromImage(image)) { 341 386 workingChart.Printing.PrintPaint(graphics, new Rectangle(0, 0, image.Width, image.Height)); 342 387 } … … 344 389 if (titleTextBox.Text.Trim() != String.Empty) saveFileDialog.FileName = titleTextBox.Text.Trim(); 345 390 if (saveFileDialog.ShowDialog() == DialogResult.OK) { 346 ImageFormatformat = ImageFormat.Bmp;347 stringfilename = saveFileDialog.FileName.ToLower();391 var format = ImageFormat.Bmp; 392 var filename = saveFileDialog.FileName.ToLower(); 348 393 if (filename.EndsWith("jpg")) { 349 394 format = ImageFormat.Jpeg;
Note: See TracChangeset
for help on using the changeset viewer.