5 // Sebastien Pouliot <sebastien@ximian.com>
7 // Copyright (C) 2006 Novell, Inc (http://www.novell.com)
9 // Permission is hereby granted, free of charge, to any person obtaining
10 // a copy of this software and associated documentation files (the
11 // "Software"), to deal in the Software without restriction, including
12 // without limitation the rights to use, copy, modify, merge, publish,
13 // distribute, sublicense, and/or sell copies of the Software, and to
14 // permit persons to whom the Software is furnished to do so, subject to
15 // the following conditions:
17 // The above copyright notice and this permission notice shall be
18 // included in all copies or substantial portions of the Software.
20 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30 public partial class flatten {
32 /// Required designer variable.
34 private System.ComponentModel.IContainer components = null;
37 /// Clean up any resources being used.
39 /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
40 protected override void Dispose (bool disposing)
42 if (disposing && (components != null)) {
43 components.Dispose ();
45 base.Dispose (disposing);
48 #region Windows Form Designer generated code
51 /// Required method for Designer support - do not modify
52 /// the contents of this method with the code editor.
54 private void InitializeComponent ()
56 this.redrawButton = new System.Windows.Forms.Button ();
57 this.translateXtextBox = new System.Windows.Forms.TextBox ();
58 this.translateYtextBox = new System.Windows.Forms.TextBox ();
59 this.flattenTextBox = new System.Windows.Forms.TextBox ();
60 this.label1 = new System.Windows.Forms.Label ();
61 this.label2 = new System.Windows.Forms.Label ();
62 this.infoLabel = new System.Windows.Forms.Label ();
63 this.shapeComboBox = new System.Windows.Forms.ComboBox ();
64 this.label3 = new System.Windows.Forms.Label ();
65 this.SuspendLayout ();
69 this.redrawButton.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
70 this.redrawButton.Location = new System.Drawing.Point (205, 295);
71 this.redrawButton.Name = "redrawButton";
72 this.redrawButton.Size = new System.Drawing.Size (75, 23);
73 this.redrawButton.TabIndex = 0;
74 this.redrawButton.Text = "&Redraw";
75 this.redrawButton.Click += new System.EventHandler (this.redrawButton_Click);
79 this.translateXtextBox.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
80 this.translateXtextBox.Location = new System.Drawing.Point (12, 295);
81 this.translateXtextBox.Name = "translateXtextBox";
82 this.translateXtextBox.Size = new System.Drawing.Size (50, 20);
83 this.translateXtextBox.TabIndex = 1;
84 this.translateXtextBox.Text = "0";
85 this.translateXtextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
89 this.translateYtextBox.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
90 this.translateYtextBox.Location = new System.Drawing.Point (68, 295);
91 this.translateYtextBox.Name = "translateYtextBox";
92 this.translateYtextBox.Size = new System.Drawing.Size (50, 20);
93 this.translateYtextBox.TabIndex = 2;
94 this.translateYtextBox.Text = "10";
95 this.translateYtextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
99 this.flattenTextBox.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
100 this.flattenTextBox.Location = new System.Drawing.Point (124, 295);
101 this.flattenTextBox.Name = "flattenTextBox";
102 this.flattenTextBox.Size = new System.Drawing.Size (75, 20);
103 this.flattenTextBox.TabIndex = 3;
104 this.flattenTextBox.Text = "10";
105 this.flattenTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
109 this.label1.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
110 this.label1.Location = new System.Drawing.Point (9, 279);
111 this.label1.Name = "label1";
112 this.label1.Size = new System.Drawing.Size (106, 13);
113 this.label1.TabIndex = 4;
114 this.label1.Text = "Translate X, Y";
118 this.label2.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
119 this.label2.Location = new System.Drawing.Point (121, 279);
120 this.label2.Name = "label2";
121 this.label2.Size = new System.Drawing.Size (78, 13);
122 this.label2.TabIndex = 5;
123 this.label2.Text = "Flatten";
127 this.infoLabel.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
128 | System.Windows.Forms.AnchorStyles.Right)));
129 this.infoLabel.Location = new System.Drawing.Point (12, 325);
130 this.infoLabel.Name = "infoLabel";
131 this.infoLabel.Size = new System.Drawing.Size (268, 23);
132 this.infoLabel.TabIndex = 6;
133 this.infoLabel.Text = "-";
137 this.shapeComboBox.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
138 | System.Windows.Forms.AnchorStyles.Right)));
139 this.shapeComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
140 this.shapeComboBox.Location = new System.Drawing.Point (12, 255);
141 this.shapeComboBox.Name = "shapeComboBox";
142 this.shapeComboBox.Size = new System.Drawing.Size (268, 21);
143 this.shapeComboBox.TabIndex = 7;
144 this.shapeComboBox.SelectedIndexChanged += new System.EventHandler (this.redrawButton_Click);
148 this.label3.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
149 this.label3.Location = new System.Drawing.Point (9, 239);
150 this.label3.Name = "label3";
151 this.label3.Size = new System.Drawing.Size (271, 13);
152 this.label3.TabIndex = 8;
153 this.label3.Text = "Shape";
157 this.ClientSize = new System.Drawing.Size (292, 347);
158 this.Controls.Add (this.label3);
159 this.Controls.Add (this.shapeComboBox);
160 this.Controls.Add (this.infoLabel);
161 this.Controls.Add (this.label2);
162 this.Controls.Add (this.label1);
163 this.Controls.Add (this.flattenTextBox);
164 this.Controls.Add (this.translateYtextBox);
165 this.Controls.Add (this.translateXtextBox);
166 this.Controls.Add (this.redrawButton);
167 this.Name = "Flattener";
168 this.Text = "GDI+ Flatten Tester";
169 this.Paint += new System.Windows.Forms.PaintEventHandler (this.Flattener_Paint);
170 this.ResumeLayout (false);
171 this.PerformLayout ();
177 private System.Windows.Forms.Button redrawButton;
178 private System.Windows.Forms.TextBox translateXtextBox;
179 private System.Windows.Forms.TextBox translateYtextBox;
180 private System.Windows.Forms.TextBox flattenTextBox;
181 private System.Windows.Forms.Label label1;
182 private System.Windows.Forms.Label label2;
183 private System.Windows.Forms.Label infoLabel;
184 private System.Windows.Forms.ComboBox shapeComboBox;
185 private System.Windows.Forms.Label label3;