Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/07/11 11:38:44 (13 years ago)
Author:
abeham
Message:

#1611

  • allow to specify font size of legend items
  • cleaned up code a little (dpi/dpcm, cm/inch)
  • added detection for region settings to select either cm or inch
  • improved preview view (now doesn't scale images beyond 100%)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Visualization.ChartControlsExtensions/3.3/ImageExportDialog.Designer.cs

    r6640 r6641  
    3636      this.label5 = new System.Windows.Forms.Label();
    3737      this.label6 = new System.Windows.Forms.Label();
    38       this.axisComboBox = new System.Windows.Forms.ComboBox();
    39       this.scalesComboBox = new System.Windows.Forms.ComboBox();
     38      this.axisFontSizeComboBox = new System.Windows.Forms.ComboBox();
     39      this.scalesFontSizeComboBox = new System.Windows.Forms.ComboBox();
    4040      this.cancelButton = new System.Windows.Forms.Button();
    4141      this.label9 = new System.Windows.Forms.Label();
     
    4848      this.label15 = new System.Windows.Forms.Label();
    4949      this.groupBox3 = new System.Windows.Forms.GroupBox();
     50      this.label18 = new System.Windows.Forms.Label();
    5051      this.label12 = new System.Windows.Forms.Label();
    5152      this.label11 = new System.Windows.Forms.Label();
    5253      this.label7 = new System.Windows.Forms.Label();
    53       this.titleComboBox = new System.Windows.Forms.ComboBox();
     54      this.legendFontSizeComboBox = new System.Windows.Forms.ComboBox();
     55      this.label17 = new System.Windows.Forms.Label();
     56      this.titleFontSizeComboBox = new System.Windows.Forms.ComboBox();
    5457      this.label16 = new System.Windows.Forms.Label();
    5558      this.heightNumericUD = new System.Windows.Forms.NumericUpDown();
     
    101104      this.okButton.Size = new System.Drawing.Size(75, 23);
    102105      this.okButton.TabIndex = 13;
    103       this.okButton.Text = "Ok";
     106      this.okButton.Text = "Save";
    104107      this.okButton.UseVisualStyleBackColor = true;
    105108      this.okButton.Click += new System.EventHandler(this.okButton_Click);
     
    170173      // widthNumericUD
    171174      //
    172       this.widthNumericUD.DecimalPlaces = 1;
     175      this.widthNumericUD.DecimalPlaces = 2;
     176      this.widthNumericUD.Increment = new decimal(new int[] {
     177            5,
     178            0,
     179            0,
     180            65536});
    173181      this.widthNumericUD.Location = new System.Drawing.Point(76, 410);
    174182      this.widthNumericUD.Maximum = new decimal(new int[] {
    175             42,
     183            1000,
    176184            0,
    177185            0,
     
    181189            0,
    182190            0,
    183             0});
     191            131072});
    184192      this.widthNumericUD.Name = "widthNumericUD";
    185193      this.widthNumericUD.Size = new System.Drawing.Size(75, 20);
     
    210218      this.label6.Text = "Width:";
    211219      //
    212       // axisComboBox
    213       //
    214       this.axisComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     220      // axisFontSizeComboBox
     221      //
     222      this.axisFontSizeComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    215223                  | System.Windows.Forms.AnchorStyles.Right)));
    216       this.axisComboBox.FormattingEnabled = true;
    217       this.axisComboBox.Items.AddRange(new object[] {
     224      this.axisFontSizeComboBox.FormattingEnabled = true;
     225      this.axisFontSizeComboBox.Items.AddRange(new object[] {
    218226            "6",
    219227            "8",
     
    227235            "36",
    228236            "72"});
    229       this.axisComboBox.Location = new System.Drawing.Point(54, 46);
    230       this.axisComboBox.Name = "axisComboBox";
    231       this.axisComboBox.Size = new System.Drawing.Size(84, 21);
    232       this.axisComboBox.TabIndex = 3;
    233       this.axisComboBox.TextChanged += new System.EventHandler(this.axisComboBox_TextChanged);
    234       this.axisComboBox.Validating += new System.ComponentModel.CancelEventHandler(this.axisComboBox_Validating);
    235       //
    236       // scalesComboBox
    237       //
    238       this.scalesComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     237      this.axisFontSizeComboBox.Location = new System.Drawing.Point(54, 46);
     238      this.axisFontSizeComboBox.Name = "axisFontSizeComboBox";
     239      this.axisFontSizeComboBox.Size = new System.Drawing.Size(84, 21);
     240      this.axisFontSizeComboBox.TabIndex = 3;
     241      this.axisFontSizeComboBox.TextChanged += new System.EventHandler(this.axisFontSizeComboBox_TextChanged);
     242      this.axisFontSizeComboBox.Validating += new System.ComponentModel.CancelEventHandler(this.numericComboBox_Validating);
     243      //
     244      // scalesFontSizeComboBox
     245      //
     246      this.scalesFontSizeComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    239247                  | System.Windows.Forms.AnchorStyles.Right)));
    240       this.scalesComboBox.FormattingEnabled = true;
    241       this.scalesComboBox.Items.AddRange(new object[] {
     248      this.scalesFontSizeComboBox.FormattingEnabled = true;
     249      this.scalesFontSizeComboBox.Items.AddRange(new object[] {
    242250            "4",
    243251            "5",
     
    255263            "36",
    256264            "72"});
    257       this.scalesComboBox.Location = new System.Drawing.Point(54, 73);
    258       this.scalesComboBox.Name = "scalesComboBox";
    259       this.scalesComboBox.Size = new System.Drawing.Size(84, 21);
    260       this.scalesComboBox.TabIndex = 5;
    261       this.scalesComboBox.TextChanged += new System.EventHandler(this.scalesComboBox_TextChanged);
    262       this.scalesComboBox.Validating += new System.ComponentModel.CancelEventHandler(this.scalesComboBox_Validating);
     265      this.scalesFontSizeComboBox.Location = new System.Drawing.Point(54, 73);
     266      this.scalesFontSizeComboBox.Name = "scalesFontSizeComboBox";
     267      this.scalesFontSizeComboBox.Size = new System.Drawing.Size(84, 21);
     268      this.scalesFontSizeComboBox.TabIndex = 5;
     269      this.scalesFontSizeComboBox.TextChanged += new System.EventHandler(this.scalesFontSizeComboBox_TextChanged);
     270      this.scalesFontSizeComboBox.Validating += new System.ComponentModel.CancelEventHandler(this.numericComboBox_Validating);
    263271      //
    264272      // cancelButton
     
    297305      this.groupBox1.Controls.Add(this.label4);
    298306      this.groupBox1.Controls.Add(this.label3);
    299       this.groupBox1.Location = new System.Drawing.Point(13, 166);
     307      this.groupBox1.Location = new System.Drawing.Point(12, 154);
    300308      this.groupBox1.Name = "groupBox1";
    301309      this.groupBox1.Size = new System.Drawing.Size(258, 82);
     
    310318      this.groupBox2.Controls.Add(this.label14);
    311319      this.groupBox2.Controls.Add(this.label15);
    312       this.groupBox2.Location = new System.Drawing.Point(13, 73);
     320      this.groupBox2.Location = new System.Drawing.Point(12, 64);
    313321      this.groupBox2.Name = "groupBox2";
    314322      this.groupBox2.Size = new System.Drawing.Size(258, 84);
     
    357365      // groupBox3
    358366      //
     367      this.groupBox3.Controls.Add(this.label18);
    359368      this.groupBox3.Controls.Add(this.label12);
    360369      this.groupBox3.Controls.Add(this.label11);
     
    362371      this.groupBox3.Controls.Add(this.label1);
    363372      this.groupBox3.Controls.Add(this.label9);
    364       this.groupBox3.Controls.Add(this.scalesComboBox);
     373      this.groupBox3.Controls.Add(this.legendFontSizeComboBox);
     374      this.groupBox3.Controls.Add(this.label17);
     375      this.groupBox3.Controls.Add(this.scalesFontSizeComboBox);
    365376      this.groupBox3.Controls.Add(this.label10);
    366       this.groupBox3.Controls.Add(this.axisComboBox);
    367       this.groupBox3.Controls.Add(this.titleComboBox);
    368       this.groupBox3.Location = new System.Drawing.Point(13, 259);
     377      this.groupBox3.Controls.Add(this.axisFontSizeComboBox);
     378      this.groupBox3.Controls.Add(this.titleFontSizeComboBox);
     379      this.groupBox3.Location = new System.Drawing.Point(12, 242);
    369380      this.groupBox3.Name = "groupBox3";
    370       this.groupBox3.Size = new System.Drawing.Size(258, 105);
     381      this.groupBox3.Size = new System.Drawing.Size(258, 131);
    371382      this.groupBox3.TabIndex = 4;
    372383      this.groupBox3.TabStop = false;
    373384      this.groupBox3.Text = "Font Size";
     385      //
     386      // label18
     387      //
     388      this.label18.AutoSize = true;
     389      this.label18.Location = new System.Drawing.Point(144, 105);
     390      this.label18.Name = "label18";
     391      this.label18.Size = new System.Drawing.Size(16, 13);
     392      this.label18.TabIndex = 0;
     393      this.label18.Text = "pt";
    374394      //
    375395      // label12
     
    400420      this.label7.Text = "pt";
    401421      //
    402       // titleComboBox
    403       //
    404       this.titleComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     422      // legendFontSizeComboBox
     423      //
     424      this.legendFontSizeComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    405425                  | System.Windows.Forms.AnchorStyles.Right)));
    406       this.titleComboBox.FormattingEnabled = true;
    407       this.titleComboBox.Items.AddRange(new object[] {
     426      this.legendFontSizeComboBox.FormattingEnabled = true;
     427      this.legendFontSizeComboBox.Items.AddRange(new object[] {
     428            "4",
     429            "5",
     430            "6",
     431            "7",
     432            "8",
     433            "9",
     434            "10",
     435            "11",
     436            "12",
     437            "14",
     438            "16",
     439            "18",
     440            "24",
     441            "36",
     442            "72"});
     443      this.legendFontSizeComboBox.Location = new System.Drawing.Point(54, 100);
     444      this.legendFontSizeComboBox.Name = "legendFontSizeComboBox";
     445      this.legendFontSizeComboBox.Size = new System.Drawing.Size(84, 21);
     446      this.legendFontSizeComboBox.TabIndex = 5;
     447      this.legendFontSizeComboBox.TextChanged += new System.EventHandler(this.legendFontSizeComboBox_TextChanged);
     448      this.legendFontSizeComboBox.Validating += new System.ComponentModel.CancelEventHandler(this.numericComboBox_Validating);
     449      //
     450      // label17
     451      //
     452      this.label17.AutoSize = true;
     453      this.label17.Location = new System.Drawing.Point(6, 105);
     454      this.label17.Name = "label17";
     455      this.label17.Size = new System.Drawing.Size(46, 13);
     456      this.label17.TabIndex = 4;
     457      this.label17.Text = "Legend:";
     458      //
     459      // titleFontSizeComboBox
     460      //
     461      this.titleFontSizeComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     462                  | System.Windows.Forms.AnchorStyles.Right)));
     463      this.titleFontSizeComboBox.FormattingEnabled = true;
     464      this.titleFontSizeComboBox.Items.AddRange(new object[] {
    408465            "6",
    409466            "8",
     
    417474            "36",
    418475            "72"});
    419       this.titleComboBox.Location = new System.Drawing.Point(54, 19);
    420       this.titleComboBox.Name = "titleComboBox";
    421       this.titleComboBox.Size = new System.Drawing.Size(84, 21);
    422       this.titleComboBox.TabIndex = 1;
    423       this.titleComboBox.TextChanged += new System.EventHandler(this.titleComboBox_TextChanged);
    424       this.titleComboBox.Validating += new System.ComponentModel.CancelEventHandler(this.titleComboBox_Validating);
     476      this.titleFontSizeComboBox.Location = new System.Drawing.Point(54, 19);
     477      this.titleFontSizeComboBox.Name = "titleFontSizeComboBox";
     478      this.titleFontSizeComboBox.Size = new System.Drawing.Size(84, 21);
     479      this.titleFontSizeComboBox.TabIndex = 1;
     480      this.titleFontSizeComboBox.TextChanged += new System.EventHandler(this.titleFontSizeComboBox_TextChanged);
     481      this.titleFontSizeComboBox.Validating += new System.ComponentModel.CancelEventHandler(this.numericComboBox_Validating);
    425482      //
    426483      // label16
     
    435492      // heightNumericUD
    436493      //
    437       this.heightNumericUD.DecimalPlaces = 1;
     494      this.heightNumericUD.DecimalPlaces = 2;
     495      this.heightNumericUD.Increment = new decimal(new int[] {
     496            5,
     497            0,
     498            0,
     499            65536});
    438500      this.heightNumericUD.Location = new System.Drawing.Point(76, 436);
    439501      this.heightNumericUD.Maximum = new decimal(new int[] {
    440             42,
     502            1000,
    441503            0,
    442504            0,
     
    446508            0,
    447509            0,
    448             0});
     510            131072});
    449511      this.heightNumericUD.Name = "heightNumericUD";
    450512      this.heightNumericUD.Size = new System.Drawing.Size(75, 20);
     
    497559      this.chartAreaComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
    498560      this.chartAreaComboBox.FormattingEnabled = true;
    499       this.chartAreaComboBox.Location = new System.Drawing.Point(76, 46);
     561      this.chartAreaComboBox.Location = new System.Drawing.Point(76, 37);
    500562      this.chartAreaComboBox.Name = "chartAreaComboBox";
    501563      this.chartAreaComboBox.Size = new System.Drawing.Size(189, 21);
     
    521583      this.lengthUnitComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
    522584      this.lengthUnitComboBox.FormattingEnabled = true;
    523       this.lengthUnitComboBox.Items.AddRange(new object[] {
    524             "inch",
    525             "cm"});
    526585      this.lengthUnitComboBox.Location = new System.Drawing.Point(157, 422);
    527586      this.lengthUnitComboBox.Name = "lengthUnitComboBox";
     
    534593      this.resolutionUnitComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
    535594      this.resolutionUnitComboBox.FormattingEnabled = true;
    536       this.resolutionUnitComboBox.Items.AddRange(new object[] {
    537             "dpi",
    538             "dpcm"});
    539595      this.resolutionUnitComboBox.Location = new System.Drawing.Point(157, 383);
    540596      this.resolutionUnitComboBox.Name = "resolutionUnitComboBox";
     
    546602      //
    547603      this.label8.AutoSize = true;
    548       this.label8.Location = new System.Drawing.Point(10, 49);
     604      this.label8.Location = new System.Drawing.Point(10, 40);
    549605      this.label8.Name = "label8";
    550606      this.label8.Size = new System.Drawing.Size(60, 13);
     
    634690    private System.Windows.Forms.Label label5;
    635691    private System.Windows.Forms.Label label6;
    636     private System.Windows.Forms.ComboBox axisComboBox;
    637     private System.Windows.Forms.ComboBox scalesComboBox;
     692    private System.Windows.Forms.ComboBox axisFontSizeComboBox;
     693    private System.Windows.Forms.ComboBox scalesFontSizeComboBox;
    638694    private System.Windows.Forms.Button cancelButton;
    639695    private System.Windows.Forms.Label label9;
     
    654710    private System.Windows.Forms.Label label11;
    655711    private System.Windows.Forms.Label label7;
    656     private System.Windows.Forms.ComboBox titleComboBox;
     712    private System.Windows.Forms.ComboBox titleFontSizeComboBox;
    657713    private System.Windows.Forms.ComboBox lengthUnitComboBox;
    658714    private System.Windows.Forms.ComboBox resolutionUnitComboBox;
     
    662718    private System.Windows.Forms.Label label13;
    663719    private System.Windows.Forms.Label previewZoomLabel;
     720    private System.Windows.Forms.Label label18;
     721    private System.Windows.Forms.ComboBox legendFontSizeComboBox;
     722    private System.Windows.Forms.Label label17;
    664723  }
    665724}
Note: See TracChangeset for help on using the changeset viewer.