Changeset 111


Ignore:
Timestamp:
Sep 2, 2008, 11:31:17 PM (16 years ago)
Author:
rryu
Message:

更新速度を1秒から0.1秒までの範囲で設定できるようにした。

Location:
trunk/MacFaceFloat
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MacFaceFloat/AssemblyInfo.cs

    r107 r111  
    2727// ビルドおよびリビジョン番号を既定値にすることができます。
    2828
    29 [assembly: MacFace.FloatApp.ApplicationVersionString("2008-08-15 (アルファ版)")]
     29[assembly: MacFace.FloatApp.ApplicationVersionString("2008-09-02 (アルファ版)")]
    3030//[assembly: AssemblyInformationalVersion("1.0.0.0")]
    3131[assembly: AssemblyVersion("1.0.*")]
  • trunk/MacFaceFloat/Configuration.cs

    r64 r111  
    3737                public Int32 Opacity = 100;
    3838
    39                 [AutoConfigure("form.faceform.patternsize")]
    40                 [Category("ƒpƒ^[ƒ“ƒEƒCƒ“ƒhƒE"), Description("ƒpƒ^[ƒ“‚Ì‘å‚«‚³10-100‚Ì’†‚ÅŽw’肵‚Ü‚·B")]
    41                 public Int32 PatternSize = 100;
     39        [AutoConfigure("form.faceform.patternsize")]
     40        [Category("ƒpƒ^[ƒ“ƒEƒCƒ“ƒhƒE"), Description("ƒpƒ^[ƒ“‚Ì‘å‚«‚³10-100‚Ì’†‚ÅŽw’肵‚Ü‚·B")]
     41        public Int32 PatternSize = 100;
    4242
    43                 [AutoConfigure("form.faceform.transparentmousemessage")]
     43        [AutoConfigure("form.faceform.updatespeed")]
     44        [Category("ƒpƒ^[ƒ“ƒEƒCƒ“ƒhƒE"), Description("XV‘¬“x1-10‚Ì’†‚ÅŽw’肵‚Ü‚·B")]
     45        public Int32 UpdateSpeed = 1;
     46
     47        [AutoConfigure("form.faceform.transparentmousemessage")]
    4448                [Category("ƒpƒ^[ƒ“ƒEƒCƒ“ƒhƒE"), Description("ƒ}ƒEƒXƒƒbƒZ[ƒW‚𓧉߂³‚¹‚é‚©‚Ç‚¤‚©‚ðŽw’肵‚Ü‚·B")]
    4549                public bool TransparentMouseMessage;
  • trunk/MacFaceFloat/ConfigurationForm.cs

    r110 r111  
    4343        private Label label9;
    4444        private Label lblTitle;
     45        private GroupBox groupBox3;
     46        private Label label11;
     47        private Label label10;
     48        private TrackBar trackBarUpdateSpeed;
     49        private Label label12;
    4550                private System.ComponentModel.IContainer components;
    4651
     
    103108            this.label9 = new System.Windows.Forms.Label();
    104109            this.lblTitle = new System.Windows.Forms.Label();
     110            this.groupBox3 = new System.Windows.Forms.GroupBox();
     111            this.label11 = new System.Windows.Forms.Label();
     112            this.label10 = new System.Windows.Forms.Label();
     113            this.trackBarUpdateSpeed = new System.Windows.Forms.TrackBar();
     114            this.label12 = new System.Windows.Forms.Label();
    105115            this.groupBox1.SuspendLayout();
    106116            ((System.ComponentModel.ISupportInitialize)(this.trackBarOpacity)).BeginInit();
    107117            this.groupBox2.SuspendLayout();
    108118            ((System.ComponentModel.ISupportInitialize)(this.trackBarPatternSize)).BeginInit();
     119            this.groupBox3.SuspendLayout();
     120            ((System.ComponentModel.ISupportInitialize)(this.trackBarUpdateSpeed)).BeginInit();
    109121            this.SuspendLayout();
    110122            //
     
    128140                        | System.Windows.Forms.AnchorStyles.Right)));
    129141            this.checkMouseMessage.FlatStyle = System.Windows.Forms.FlatStyle.System;
    130             this.checkMouseMessage.Location = new System.Drawing.Point(216, 255);
     142            this.checkMouseMessage.Location = new System.Drawing.Point(218, 321);
    131143            this.checkMouseMessage.Name = "checkMouseMessage";
    132144            this.checkMouseMessage.Size = new System.Drawing.Size(266, 16);
    133             this.checkMouseMessage.TabIndex = 6;
     145            this.checkMouseMessage.TabIndex = 12;
    134146            this.checkMouseMessage.Text = "ƒ}ƒEƒX‚Ì“®ì‚ð”w–ʂ̃EƒBƒ“ƒhƒE‚Ö“`‚¦‚é(&T)";
    135147            this.checkMouseMessage.Click += new System.EventHandler(this.checkMouseMessage_Click);
     
    155167            this.listViewFaces.Name = "listViewFaces";
    156168            this.listViewFaces.Size = new System.Drawing.Size(198, 325);
    157             this.listViewFaces.TabIndex = 12;
     169            this.listViewFaces.TabIndex = 0;
    158170            this.listViewFaces.UseCompatibleStateImageBehavior = false;
    159171            this.listViewFaces.SelectedIndexChanged += new System.EventHandler(this.listViewFaces_SelectedIndexChanged);
     
    168180            this.groupBox1.Controls.Add(this.trackBarOpacity);
    169181            this.groupBox1.FlatStyle = System.Windows.Forms.FlatStyle.System;
    170             this.groupBox1.Location = new System.Drawing.Point(216, 123);
     182            this.groupBox1.Location = new System.Drawing.Point(216, 97);
    171183            this.groupBox1.Name = "groupBox1";
    172             this.groupBox1.Size = new System.Drawing.Size(266, 60);
    173             this.groupBox1.TabIndex = 19;
     184            this.groupBox1.Size = new System.Drawing.Size(268, 60);
     185            this.groupBox1.TabIndex = 9;
    174186            this.groupBox1.TabStop = false;
    175187            this.groupBox1.Text = "“§–¾“x";
     
    178190            //
    179191            this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
    180             this.label5.Location = new System.Drawing.Point(210, 24);
     192            this.label5.Location = new System.Drawing.Point(212, 24);
    181193            this.label5.Name = "label5";
    182194            this.label5.Size = new System.Drawing.Size(48, 11);
    183             this.label5.TabIndex = 12;
     195            this.label5.TabIndex = 2;
    184196            this.label5.Text = "•s“§–¾";
    185197            this.label5.TextAlign = System.Drawing.ContentAlignment.TopRight;
     
    190202            this.label2.Name = "label2";
    191203            this.label2.Size = new System.Drawing.Size(40, 11);
    192             this.label2.TabIndex = 11;
     204            this.label2.TabIndex = 0;
    193205            this.label2.Text = "“§–¾";
    194206            //
     
    202214            this.trackBarOpacity.Minimum = 5;
    203215            this.trackBarOpacity.Name = "trackBarOpacity";
    204             this.trackBarOpacity.Size = new System.Drawing.Size(158, 45);
    205             this.trackBarOpacity.TabIndex = 9;
     216            this.trackBarOpacity.Size = new System.Drawing.Size(160, 45);
     217            this.trackBarOpacity.TabIndex = 1;
    206218            this.trackBarOpacity.TickFrequency = 10;
    207219            this.trackBarOpacity.Value = 100;
     
    216228            this.groupBox2.Controls.Add(this.trackBarPatternSize);
    217229            this.groupBox2.FlatStyle = System.Windows.Forms.FlatStyle.System;
    218             this.groupBox2.Location = new System.Drawing.Point(216, 189);
     230            this.groupBox2.Location = new System.Drawing.Point(216, 163);
    219231            this.groupBox2.Name = "groupBox2";
    220             this.groupBox2.Size = new System.Drawing.Size(266, 60);
    221             this.groupBox2.TabIndex = 20;
     232            this.groupBox2.Size = new System.Drawing.Size(268, 60);
     233            this.groupBox2.TabIndex = 10;
    222234            this.groupBox2.TabStop = false;
    223235            this.groupBox2.Text = "ƒpƒ^[ƒ“‚Ì‘å‚«‚³";
     
    226238            //
    227239            this.label7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
    228             this.label7.Location = new System.Drawing.Point(218, 24);
     240            this.label7.Location = new System.Drawing.Point(220, 24);
    229241            this.label7.Name = "label7";
    230242            this.label7.Size = new System.Drawing.Size(40, 11);
    231             this.label7.TabIndex = 21;
     243            this.label7.TabIndex = 2;
    232244            this.label7.Text = "Å‘å";
    233245            this.label7.TextAlign = System.Drawing.ContentAlignment.TopRight;
     
    238250            this.label8.Name = "label8";
    239251            this.label8.Size = new System.Drawing.Size(40, 11);
    240             this.label8.TabIndex = 20;
     252            this.label8.TabIndex = 0;
    241253            this.label8.Text = "Å¬";
    242254            //
     
    250262            this.trackBarPatternSize.Minimum = 10;
    251263            this.trackBarPatternSize.Name = "trackBarPatternSize";
    252             this.trackBarPatternSize.Size = new System.Drawing.Size(158, 45);
    253             this.trackBarPatternSize.TabIndex = 19;
     264            this.trackBarPatternSize.Size = new System.Drawing.Size(160, 45);
     265            this.trackBarPatternSize.TabIndex = 1;
    254266            this.trackBarPatternSize.TickFrequency = 10;
    255267            this.trackBarPatternSize.Value = 100;
     
    263275            this.linkWebSite.Name = "linkWebSite";
    264276            this.linkWebSite.Size = new System.Drawing.Size(199, 12);
    265             this.linkWebSite.TabIndex = 14;
     277            this.linkWebSite.TabIndex = 8;
    266278            this.linkWebSite.TabStop = true;
    267279            this.linkWebSite.Text = "--";
     
    273285            this.label1.Name = "label1";
    274286            this.label1.Size = new System.Drawing.Size(61, 17);
    275             this.label1.TabIndex = 15;
     287            this.label1.TabIndex = 7;
    276288            this.label1.Text = "ƒEƒFƒuƒTƒCƒg:";
    277289            //
     
    281293            this.label3.Name = "label3";
    282294            this.label3.Size = new System.Drawing.Size(61, 17);
    283             this.label3.TabIndex = 22;
     295            this.label3.TabIndex = 3;
    284296            this.label3.Text = "»ìŽÒ:";
    285297            //
     
    289301            this.label4.Name = "label4";
    290302            this.label4.Size = new System.Drawing.Size(61, 17);
    291             this.label4.TabIndex = 22;
     303            this.label4.TabIndex = 5;
    292304            this.label4.Text = "ƒo[ƒWƒ‡ƒ“:";
    293305            //
     
    298310            this.lblAuthor.Name = "lblAuthor";
    299311            this.lblAuthor.Size = new System.Drawing.Size(199, 12);
    300             this.lblAuthor.TabIndex = 23;
     312            this.lblAuthor.TabIndex = 4;
    301313            this.lblAuthor.Text = "--";
    302314            //
     
    307319            this.lblVersion.Name = "lblVersion";
    308320            this.lblVersion.Size = new System.Drawing.Size(199, 12);
    309             this.lblVersion.TabIndex = 24;
     321            this.lblVersion.TabIndex = 6;
    310322            this.lblVersion.Text = "--";
    311323            //
     
    315327            this.label9.Name = "label9";
    316328            this.label9.Size = new System.Drawing.Size(61, 17);
    317             this.label9.TabIndex = 22;
     329            this.label9.TabIndex = 1;
    318330            this.label9.Text = "–¼Ì:";
    319331            //
     
    324336            this.lblTitle.Name = "lblTitle";
    325337            this.lblTitle.Size = new System.Drawing.Size(199, 12);
    326             this.lblTitle.TabIndex = 23;
     338            this.lblTitle.TabIndex = 2;
    327339            this.lblTitle.Text = "--";
     340            //
     341            // groupBox3
     342            //
     343            this.groupBox3.Controls.Add(this.label12);
     344            this.groupBox3.Controls.Add(this.label11);
     345            this.groupBox3.Controls.Add(this.label10);
     346            this.groupBox3.Controls.Add(this.trackBarUpdateSpeed);
     347            this.groupBox3.Location = new System.Drawing.Point(216, 226);
     348            this.groupBox3.Name = "groupBox3";
     349            this.groupBox3.Size = new System.Drawing.Size(268, 72);
     350            this.groupBox3.TabIndex = 11;
     351            this.groupBox3.TabStop = false;
     352            this.groupBox3.Text = "XVŠÔŠu";
     353            //
     354            // label11
     355            //
     356            this.label11.Location = new System.Drawing.Point(6, 49);
     357            this.label11.Name = "label11";
     358            this.label11.Size = new System.Drawing.Size(38, 11);
     359            this.label11.TabIndex = 2;
     360            this.label11.Text = "0.1•b";
     361            this.label11.TextAlign = System.Drawing.ContentAlignment.TopCenter;
     362            //
     363            // label10
     364            //
     365            this.label10.Location = new System.Drawing.Point(232, 49);
     366            this.label10.Name = "label10";
     367            this.label10.Size = new System.Drawing.Size(29, 11);
     368            this.label10.TabIndex = 1;
     369            this.label10.Text = "1•b";
     370            this.label10.TextAlign = System.Drawing.ContentAlignment.TopCenter;
     371            //
     372            // trackBarUpdateSpeed
     373            //
     374            this.trackBarUpdateSpeed.LargeChange = 1;
     375            this.trackBarUpdateSpeed.Location = new System.Drawing.Point(10, 14);
     376            this.trackBarUpdateSpeed.Minimum = 1;
     377            this.trackBarUpdateSpeed.Name = "trackBarUpdateSpeed";
     378            this.trackBarUpdateSpeed.Size = new System.Drawing.Size(250, 45);
     379            this.trackBarUpdateSpeed.TabIndex = 0;
     380            this.trackBarUpdateSpeed.Value = 10;
     381            this.trackBarUpdateSpeed.ValueChanged += new System.EventHandler(this.trackBarUpdateSpeed_ValueChanged);
     382            //
     383            // label12
     384            //
     385            this.label12.Location = new System.Drawing.Point(129, 49);
     386            this.label12.Name = "label12";
     387            this.label12.Size = new System.Drawing.Size(38, 11);
     388            this.label12.TabIndex = 2;
     389            this.label12.Text = "0.5•b";
     390            this.label12.TextAlign = System.Drawing.ContentAlignment.TopCenter;
    328391            //
    329392            // ConfigurationForm
     
    331394            this.AutoScaleBaseSize = new System.Drawing.Size(5, 12);
    332395            this.ClientSize = new System.Drawing.Size(494, 349);
     396            this.Controls.Add(this.groupBox3);
    333397            this.Controls.Add(this.lblVersion);
     398            this.Controls.Add(this.checkMouseMessage);
    334399            this.Controls.Add(this.lblTitle);
    335400            this.Controls.Add(this.lblAuthor);
     
    343408            this.Controls.Add(this.buttonBrowse);
    344409            this.Controls.Add(this.listViewFaces);
    345             this.Controls.Add(this.checkMouseMessage);
    346410            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
    347411            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     
    358422            this.groupBox2.PerformLayout();
    359423            ((System.ComponentModel.ISupportInitialize)(this.trackBarPatternSize)).EndInit();
     424            this.groupBox3.ResumeLayout(false);
     425            this.groupBox3.PerformLayout();
     426            ((System.ComponentModel.ISupportInitialize)(this.trackBarUpdateSpeed)).EndInit();
    360427            this.ResumeLayout(false);
    361428
     
    367434                        // ‰Šú’l‚̃Zƒbƒg
    368435                        trackBarOpacity.Value = _config.Opacity;
    369                         trackBarPatternSize.Value = _config.PatternSize;
    370                         checkMouseMessage.Checked = _config.TransparentMouseMessage;
     436            trackBarPatternSize.Value = _config.PatternSize;
     437            trackBarUpdateSpeed.Value = _config.UpdateSpeed;
     438            checkMouseMessage.Checked = _config.TransparentMouseMessage;
    371439
    372440                        // Šçƒpƒ^[ƒ“ƒŠƒXƒg‚ðì‚éB
     
    498566                }
    499567
    500                 private void checkMouseMessage_Click(object sender, System.EventArgs e)
     568        private void trackBarUpdateSpeed_ValueChanged(object sender, EventArgs e)
     569        {
     570            _config.UpdateSpeed = trackBarUpdateSpeed.Value;
     571            ConfigChanged();
     572        }
     573
     574        private void checkMouseMessage_Click(object sender, System.EventArgs e)
    501575                {
    502576                        _config.TransparentMouseMessage = checkMouseMessage.Checked;
     
    508582                        if (linkWebSite.Text != "") {
    509583                                Process.Start(linkWebSite.Text);
    510                         } 
    511                 }
     584                        }
     585        }
    512586
    513587        }
  • trunk/MacFaceFloat/MacFaceApp.cs

    r104 r111  
    221221                        }
    222222
    223                         updateTimer.Start();
     223            updateTimer.Interval = 100 * config.UpdateSpeed;
     224            updateTimer.Start();
    224225
    225226                        Microsoft.Win32.SystemEvents.SessionEnding += new Microsoft.Win32.SessionEndingEventHandler(SystemEvents_SessionEnding);
     
    430431                                patternWindow.Refresh();
    431432                        }
    432                 }
     433
     434            updateTimer.Interval = 100 * config.UpdateSpeed;
     435        }
    433436
    434437                private void patternWindow_Closed(object sender, EventArgs e)
Note: See TracChangeset for help on using the changeset viewer.