Changeset 30 for trunk/MacFaceFloat/ConfigurationForm.cs
- Timestamp:
- Feb 16, 2005, 3:51:26 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MacFaceFloat/ConfigurationForm.cs
r29 r30 38 38 private System.Windows.Forms.ImageList imageListConfigTreeIcon; 39 39 private System.Windows.Forms.Label label5; 40 private TrackBar trackBarPatternSize; 41 private Label label6; 40 42 private System.ComponentModel.IContainer components; 41 43 … … 75 77 { 76 78 this.components = new System.ComponentModel.Container(); 77 System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ConfigurationForm)); 79 System.Windows.Forms.TreeNode treeNode3 = new System.Windows.Forms.TreeNode("SÊ", 1, 1); 80 System.Windows.Forms.TreeNode treeNode4 = new System.Windows.Forms.TreeNode("çp^["); 81 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ConfigurationForm)); 78 82 this.treeCategory = new System.Windows.Forms.TreeView(); 79 83 this.imageListConfigTreeIcon = new System.Windows.Forms.ImageList(this.components); … … 83 87 this.labelTitle = new System.Windows.Forms.Label(); 84 88 this.panelContainer = new System.Windows.Forms.Panel(); 89 this.panelAppearance = new System.Windows.Forms.Panel(); 90 this.label5 = new System.Windows.Forms.Label(); 91 this.checkMouseMessage = new System.Windows.Forms.CheckBox(); 92 this.label3 = new System.Windows.Forms.Label(); 93 this.label2 = new System.Windows.Forms.Label(); 94 this.label1 = new System.Windows.Forms.Label(); 95 this.trackBarOpacity = new System.Windows.Forms.TrackBar(); 85 96 this.panelFacePatternList = new System.Windows.Forms.Panel(); 86 97 this.label4 = new System.Windows.Forms.Label(); … … 89 100 this.listViewFaces = new System.Windows.Forms.ListView(); 90 101 this.imageListFacePreviews = new System.Windows.Forms.ImageList(this.components); 91 this.panelAppearance = new System.Windows.Forms.Panel();92 this.checkMouseMessage = new System.Windows.Forms.CheckBox();93 this.label3 = new System.Windows.Forms.Label();94 this.label2 = new System.Windows.Forms.Label();95 this.label1 = new System.Windows.Forms.Label();96 this.trackBarOpacity = new System.Windows.Forms.TrackBar();97 102 this.toolTipPreviewDetail = new System.Windows.Forms.ToolTip(this.components); 98 this.label5 = new System.Windows.Forms.Label(); 103 this.trackBarPatternSize = new System.Windows.Forms.TrackBar(); 104 this.label6 = new System.Windows.Forms.Label(); 99 105 this.panelContainer.SuspendLayout(); 100 this.panelFacePatternList.SuspendLayout();101 106 this.panelAppearance.SuspendLayout(); 102 107 ((System.ComponentModel.ISupportInitialize)(this.trackBarOpacity)).BeginInit(); 108 this.panelFacePatternList.SuspendLayout(); 109 ((System.ComponentModel.ISupportInitialize)(this.trackBarPatternSize)).BeginInit(); 103 110 this.SuspendLayout(); 104 105 106 107 this.treeCategory.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 108 | System.Windows.Forms.AnchorStyles.Left)));111 // 112 // treeCategory 113 // 114 this.treeCategory.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 115 | System.Windows.Forms.AnchorStyles.Left))); 109 116 this.treeCategory.FullRowSelect = true; 110 117 this.treeCategory.HideSelection = false; … … 113 120 this.treeCategory.Location = new System.Drawing.Point(0, 0); 114 121 this.treeCategory.Name = "treeCategory"; 122 treeNode3.ImageIndex = 1; 123 treeNode3.Name = ""; 124 treeNode3.SelectedImageIndex = 1; 125 treeNode3.Text = "SÊ"; 126 treeNode4.Name = ""; 127 treeNode4.Text = "çp^["; 115 128 this.treeCategory.Nodes.AddRange(new System.Windows.Forms.TreeNode[] { 116 new System.Windows.Forms.TreeNode("SÊ", 1, 1),117 new System.Windows.Forms.TreeNode("çp^[")});129 treeNode3, 130 treeNode4}); 118 131 this.treeCategory.ShowLines = false; 119 132 this.treeCategory.ShowPlusMinus = false; … … 122 135 this.treeCategory.TabIndex = 0; 123 136 this.treeCategory.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeCategory_AfterSelect); 124 125 126 137 // 138 // imageListConfigTreeIcon 139 // 127 140 this.imageListConfigTreeIcon.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit; 128 141 this.imageListConfigTreeIcon.ImageSize = new System.Drawing.Size(32, 32); 129 142 this.imageListConfigTreeIcon.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageListConfigTreeIcon.ImageStream"))); 130 143 this.imageListConfigTreeIcon.TransparentColor = System.Drawing.Color.Transparent; 131 // 132 // buttonCancel 133 // 144 this.imageListConfigTreeIcon.Images.SetKeyName(0, ""); 145 this.imageListConfigTreeIcon.Images.SetKeyName(1, ""); 146 // 147 // buttonCancel 148 // 134 149 this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 135 150 this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; … … 139 154 this.buttonCancel.TabIndex = 1; 140 155 this.buttonCancel.Text = "LZ"; 141 142 143 156 // 157 // buttonApply 158 // 144 159 this.buttonApply.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 145 160 this.buttonApply.Enabled = false; … … 149 164 this.buttonApply.TabIndex = 2; 150 165 this.buttonApply.Text = "Kp(&A)"; 151 152 153 166 // 167 // buttonOK 168 // 154 169 this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 155 170 this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK; … … 160 175 this.buttonOK.Text = "OK"; 161 176 this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click); 162 163 164 165 this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 166 | System.Windows.Forms.AnchorStyles.Right)));177 // 178 // labelTitle 179 // 180 this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 181 | System.Windows.Forms.AnchorStyles.Right))); 167 182 this.labelTitle.BackColor = System.Drawing.SystemColors.ActiveCaption; 168 this.labelTitle.Font = new System.Drawing.Font("MS UI Gothic", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, (( System.Byte)(128)));183 this.labelTitle.Font = new System.Drawing.Font("MS UI Gothic", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); 169 184 this.labelTitle.ForeColor = System.Drawing.SystemColors.ActiveCaptionText; 170 185 this.labelTitle.Location = new System.Drawing.Point(107, 5); … … 174 189 this.labelTitle.Text = "SÊ"; 175 190 this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; 176 177 178 179 this.panelContainer.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 180 | System.Windows.Forms.AnchorStyles.Left)181 | System.Windows.Forms.AnchorStyles.Right)));191 // 192 // panelContainer 193 // 194 this.panelContainer.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 195 | System.Windows.Forms.AnchorStyles.Left) 196 | System.Windows.Forms.AnchorStyles.Right))); 182 197 this.panelContainer.Controls.Add(this.panelAppearance); 183 198 this.panelContainer.Controls.Add(this.panelFacePatternList); … … 186 201 this.panelContainer.Size = new System.Drawing.Size(380, 218); 187 202 this.panelContainer.TabIndex = 5; 188 // 189 // panelFacePatternList 190 // 203 // 204 // panelAppearance 205 // 206 this.panelAppearance.Controls.Add(this.label6); 207 this.panelAppearance.Controls.Add(this.trackBarPatternSize); 208 this.panelAppearance.Controls.Add(this.label5); 209 this.panelAppearance.Controls.Add(this.checkMouseMessage); 210 this.panelAppearance.Controls.Add(this.label3); 211 this.panelAppearance.Controls.Add(this.label2); 212 this.panelAppearance.Controls.Add(this.label1); 213 this.panelAppearance.Controls.Add(this.trackBarOpacity); 214 this.panelAppearance.Location = new System.Drawing.Point(4, 3); 215 this.panelAppearance.Name = "panelAppearance"; 216 this.panelAppearance.Size = new System.Drawing.Size(366, 208); 217 this.panelAppearance.TabIndex = 0; 218 // 219 // label5 220 // 221 this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 222 | System.Windows.Forms.AnchorStyles.Right))); 223 this.label5.Location = new System.Drawing.Point(311, 55); 224 this.label5.Margin = new System.Windows.Forms.Padding(3, 0, 3, 3); 225 this.label5.Name = "label5"; 226 this.label5.Size = new System.Drawing.Size(42, 11); 227 this.label5.TabIndex = 5; 228 this.label5.Text = "s§¾"; 229 // 230 // checkMouseMessage 231 // 232 this.checkMouseMessage.Location = new System.Drawing.Point(5, 188); 233 this.checkMouseMessage.Name = "checkMouseMessage"; 234 this.checkMouseMessage.Size = new System.Drawing.Size(355, 11); 235 this.checkMouseMessage.TabIndex = 4; 236 this.checkMouseMessage.Text = "}EXÌ®ìðwÊÌEBhEÖ`¦é(&T)"; 237 // 238 // label3 239 // 240 this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 241 this.label3.Location = new System.Drawing.Point(524, 73); 242 this.label3.Name = "label3"; 243 this.label3.Size = new System.Drawing.Size(45, 11); 244 this.label3.TabIndex = 3; 245 this.label3.Text = "s§¾"; 246 // 247 // label2 248 // 249 this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 250 | System.Windows.Forms.AnchorStyles.Right))); 251 this.label2.Location = new System.Drawing.Point(15, 55); 252 this.label2.Margin = new System.Windows.Forms.Padding(3, 0, 3, 3); 253 this.label2.Name = "label2"; 254 this.label2.Size = new System.Drawing.Size(31, 11); 255 this.label2.TabIndex = 2; 256 this.label2.Text = "§¾"; 257 // 258 // label1 259 // 260 this.label1.Location = new System.Drawing.Point(2, 5); 261 this.label1.Margin = new System.Windows.Forms.Padding(3, 3, 3, 0); 262 this.label1.Name = "label1"; 263 this.label1.Size = new System.Drawing.Size(196, 18); 264 this.label1.TabIndex = 1; 265 this.label1.Text = "§¾x:"; 266 // 267 // trackBarOpacity 268 // 269 this.trackBarOpacity.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 270 | System.Windows.Forms.AnchorStyles.Right))); 271 this.trackBarOpacity.LargeChange = 10; 272 this.trackBarOpacity.Location = new System.Drawing.Point(15, 24); 273 this.trackBarOpacity.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1); 274 this.trackBarOpacity.Maximum = 100; 275 this.trackBarOpacity.Name = "trackBarOpacity"; 276 this.trackBarOpacity.Size = new System.Drawing.Size(338, 42); 277 this.trackBarOpacity.TabIndex = 0; 278 this.trackBarOpacity.TickFrequency = 10; 279 // 280 // panelFacePatternList 281 // 191 282 this.panelFacePatternList.Controls.Add(this.label4); 192 283 this.panelFacePatternList.Controls.Add(this.linkWebSite); … … 197 288 this.panelFacePatternList.Size = new System.Drawing.Size(367, 213); 198 289 this.panelFacePatternList.TabIndex = 7; 199 200 201 290 // 291 // label4 292 // 202 293 this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 203 294 this.label4.Location = new System.Drawing.Point(4, 165); … … 206 297 this.label4.TabIndex = 3; 207 298 this.label4.Text = "EFuTCg:"; 208 // 209 // linkWebSite 210 // 211 this.linkWebSite.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) 212 | System.Windows.Forms.AnchorStyles.Right))); 299 // 300 // linkWebSite 301 // 302 this.linkWebSite.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) 303 | System.Windows.Forms.AnchorStyles.Right))); 304 this.linkWebSite.Links.Add(new System.Windows.Forms.LinkLabel.Link(0, 0)); 213 305 this.linkWebSite.Location = new System.Drawing.Point(67, 165); 214 306 this.linkWebSite.Name = "linkWebSite"; … … 216 308 this.linkWebSite.TabIndex = 2; 217 309 this.linkWebSite.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkWebSite_LinkClicked); 218 219 220 310 // 311 // buttonBrowse 312 // 221 313 this.buttonBrowse.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 222 314 this.buttonBrowse.Location = new System.Drawing.Point(267, 187); … … 226 318 this.buttonBrowse.Text = "QÆ(&B)..."; 227 319 this.buttonBrowse.Click += new System.EventHandler(this.buttonBrowse_Click); 228 229 230 231 this.listViewFaces.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 232 | System.Windows.Forms.AnchorStyles.Left)233 | System.Windows.Forms.AnchorStyles.Right)));320 // 321 // listViewFaces 322 // 323 this.listViewFaces.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 324 | System.Windows.Forms.AnchorStyles.Left) 325 | System.Windows.Forms.AnchorStyles.Right))); 234 326 this.listViewFaces.LargeImageList = this.imageListFacePreviews; 235 327 this.listViewFaces.Location = new System.Drawing.Point(0, 0); … … 237 329 this.listViewFaces.Size = new System.Drawing.Size(367, 161); 238 330 this.listViewFaces.TabIndex = 0; 331 this.listViewFaces.SelectedIndexChanged += new System.EventHandler(this.listViewFaces_SelectedIndexChanged); 239 332 this.listViewFaces.DoubleClick += new System.EventHandler(this.listViewFaces_DoubleClick); 240 333 this.listViewFaces.MouseMove += new System.Windows.Forms.MouseEventHandler(this.listViewFaces_MouseMove); 241 this.listViewFaces.SelectedIndexChanged += new System.EventHandler(this.listViewFaces_SelectedIndexChanged); 242 // 243 // imageListFacePreviews 244 // 334 // 335 // imageListFacePreviews 336 // 245 337 this.imageListFacePreviews.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit; 246 338 this.imageListFacePreviews.ImageSize = new System.Drawing.Size(128, 128); 247 339 this.imageListFacePreviews.TransparentColor = System.Drawing.Color.Transparent; 248 // 249 // panelAppearance 250 // 251 this.panelAppearance.Controls.Add(this.label5); 252 this.panelAppearance.Controls.Add(this.checkMouseMessage); 253 this.panelAppearance.Controls.Add(this.label3); 254 this.panelAppearance.Controls.Add(this.label2); 255 this.panelAppearance.Controls.Add(this.label1); 256 this.panelAppearance.Controls.Add(this.trackBarOpacity); 257 this.panelAppearance.Location = new System.Drawing.Point(4, 3); 258 this.panelAppearance.Name = "panelAppearance"; 259 this.panelAppearance.Size = new System.Drawing.Size(366, 194); 260 this.panelAppearance.TabIndex = 0; 261 // 262 // checkMouseMessage 263 // 264 this.checkMouseMessage.Location = new System.Drawing.Point(5, 115); 265 this.checkMouseMessage.Name = "checkMouseMessage"; 266 this.checkMouseMessage.Size = new System.Drawing.Size(400, 16); 267 this.checkMouseMessage.TabIndex = 4; 268 this.checkMouseMessage.Text = "}EXÌ®ìðwÊÌEBhEÖ`¦é(&T)"; 269 // 270 // label3 271 // 272 this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 273 this.label3.Location = new System.Drawing.Point(524, 73); 274 this.label3.Name = "label3"; 275 this.label3.Size = new System.Drawing.Size(45, 11); 276 this.label3.TabIndex = 3; 277 this.label3.Text = "s§¾"; 278 // 279 // label2 280 // 281 this.label2.Location = new System.Drawing.Point(19, 67); 282 this.label2.Name = "label2"; 283 this.label2.Size = new System.Drawing.Size(31, 11); 284 this.label2.TabIndex = 2; 285 this.label2.Text = "§¾"; 286 // 287 // label1 288 // 289 this.label1.Location = new System.Drawing.Point(2, 5); 290 this.label1.Name = "label1"; 291 this.label1.Size = new System.Drawing.Size(196, 18); 292 this.label1.TabIndex = 1; 293 this.label1.Text = "§¾x:"; 294 // 295 // trackBarOpacity 296 // 297 this.trackBarOpacity.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 298 | System.Windows.Forms.AnchorStyles.Right))); 299 this.trackBarOpacity.LargeChange = 10; 300 this.trackBarOpacity.Location = new System.Drawing.Point(15, 24); 301 this.trackBarOpacity.Maximum = 100; 302 this.trackBarOpacity.Name = "trackBarOpacity"; 303 this.trackBarOpacity.Size = new System.Drawing.Size(338, 37); 304 this.trackBarOpacity.TabIndex = 0; 305 this.trackBarOpacity.TickFrequency = 10; 306 // 307 // label5 308 // 309 this.label5.Location = new System.Drawing.Point(309, 67); 310 this.label5.Name = "label5"; 311 this.label5.Size = new System.Drawing.Size(42, 11); 312 this.label5.TabIndex = 5; 313 this.label5.Text = "s§¾"; 314 // 315 // ConfigurationForm 316 // 340 // 341 // trackBarPatternSize 342 // 343 this.trackBarPatternSize.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 344 | System.Windows.Forms.AnchorStyles.Right))); 345 this.trackBarPatternSize.LargeChange = 10; 346 this.trackBarPatternSize.Location = new System.Drawing.Point(15, 114); 347 this.trackBarPatternSize.Margin = new System.Windows.Forms.Padding(3, 2, 3, 3); 348 this.trackBarPatternSize.Maximum = 100; 349 this.trackBarPatternSize.Minimum = 10; 350 this.trackBarPatternSize.Name = "trackBarPatternSize"; 351 this.trackBarPatternSize.Size = new System.Drawing.Size(338, 42); 352 this.trackBarPatternSize.TabIndex = 6; 353 this.trackBarPatternSize.TickFrequency = 10; 354 this.trackBarPatternSize.Value = 100; 355 // 356 // label6 357 // 358 this.label6.Location = new System.Drawing.Point(5, 93); 359 this.label6.Margin = new System.Windows.Forms.Padding(3, 3, 3, 0); 360 this.label6.Name = "label6"; 361 this.label6.Size = new System.Drawing.Size(196, 18); 362 this.label6.TabIndex = 7; 363 this.label6.Text = "嫳:"; 364 // 365 // ConfigurationForm 366 // 317 367 this.AutoScaleBaseSize = new System.Drawing.Size(5, 12); 318 368 this.ClientSize = new System.Drawing.Size(492, 297); … … 328 378 this.Load += new System.EventHandler(this.ConfigurationForm_Load); 329 379 this.panelContainer.ResumeLayout(false); 380 this.panelAppearance.ResumeLayout(false); 381 this.panelAppearance.PerformLayout(); 382 ((System.ComponentModel.ISupportInitialize)(this.trackBarOpacity)).EndInit(); 330 383 this.panelFacePatternList.ResumeLayout(false); 331 this.panelAppearance.ResumeLayout(false); 332 ((System.ComponentModel.ISupportInitialize)(this.trackBarOpacity)).EndInit(); 384 ((System.ComponentModel.ISupportInitialize)(this.trackBarPatternSize)).EndInit(); 333 385 this.ResumeLayout(false); 334 386 … … 349 401 // úlðZbgB 350 402 trackBarOpacity.Value = (int) (_mainForm.Opacity * 100); 403 trackBarPatternSize.Value = (int)(_mainForm.PatternSize * 100); 351 404 checkMouseMessage.Checked = Configuration.GetInstance().TransparentMouseMessage; 352 405 } … … 356 409 Configuration config = Configuration.GetInstance(); 357 410 config.Opacity = trackBarOpacity.Value; 411 config.PatternSize = trackBarPatternSize.Value; 358 412 config.TransparentMouseMessage = checkMouseMessage.Checked; 359 413 … … 502 556 catch (Win32Exception) {} 503 557 } 558 559 private void label6_Click(object sender, EventArgs e) 560 { 561 562 } 504 563 } 505 564 }
Note: See TracChangeset
for help on using the changeset viewer.