Changeset 64


Ignore:
Timestamp:
Sep 9, 2005, 3:29:47 AM (19 years ago)
Author:
rryu
Message:

パターンウインドウ、ステータスウインドウの開閉状態を保存するようにした。

Location:
trunk/MacFaceFloat
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MacFaceFloat/Configuration.cs

    r54 r64  
    3434
    3535                [AutoConfigure("form.faceform.opacity")]
    36                 [Category("ŠçƒtƒH[ƒ€"), Description("“§–¾“x0-100‚Ì’†‚ÅŽw’肵‚Ü‚·B")]
     36                [Category("ƒpƒ^[ƒ“ƒEƒCƒ“ƒhƒE"), Description("“§–¾“x0-100‚Ì’†‚ÅŽw’肵‚Ü‚·B")]
    3737                public Int32 Opacity = 100;
    3838
    3939                [AutoConfigure("form.faceform.patternsize")]
    40                 [Category("ŠçƒtƒH[ƒ€"), Description("ƒpƒ^[ƒ“‚Ì‘å‚«‚³10-100‚Ì’†‚ÅŽw’肵‚Ü‚·B")]
     40                [Category("ƒpƒ^[ƒ“ƒEƒCƒ“ƒhƒE"), Description("ƒpƒ^[ƒ“‚Ì‘å‚«‚³10-100‚Ì’†‚ÅŽw’肵‚Ü‚·B")]
    4141                public Int32 PatternSize = 100;
    4242
     43                [AutoConfigure("form.faceform.transparentmousemessage")]
     44                [Category("ƒpƒ^[ƒ“ƒEƒCƒ“ƒhƒE"), Description("ƒ}ƒEƒXƒƒbƒZ[ƒW‚𓧉߂³‚¹‚é‚©‚Ç‚¤‚©‚ðŽw’肵‚Ü‚·B")]
     45                public bool TransparentMouseMessage;
     46
    4347                [AutoConfigure("form.faceform.point")]
    44                 [Category("ŠçƒtƒH[ƒ€"), Description("•\Ž¦ˆÊ’u")]
     48                [Category("ƒpƒ^[ƒ“ƒEƒCƒ“ƒhƒE"), Description("•\Ž¦ˆÊ’u")]
    4549                public Point Location;
    4650
    47                 [AutoConfigure("form.faceform.transparentmousemessage")]
    48                 [Category("ŠçƒtƒH[ƒ€"), Description("ƒ}ƒEƒXƒƒbƒZ[ƒW‚𓧉߂³‚¹‚é‚©‚Ç‚¤‚©‚ðŽw’肵‚Ü‚·B")]
    49                 public bool TransparentMouseMessage;
     51                [AutoConfigure("form.faceform.show")]
     52                [Category("ƒpƒ^[ƒ“ƒEƒCƒ“ƒhƒE"), Description("•\Ž¦ó‘Ô")]
     53                public bool ShowPatternWindow = true;
    5054
    5155                [AutoConfigure("form.status.point")]
    5256                [Category("ƒXƒe[ƒ^ƒXƒEƒCƒ“ƒhƒE"), Description("•\Ž¦ˆÊ’u")]
    5357                public Point StatusWindowLocation;
     58
     59                [AutoConfigure("form.status.show")]
     60                [Category("ƒXƒe[ƒ^ƒXƒEƒCƒ“ƒhƒE"), Description("•\Ž¦ó‘Ô")]
     61                public bool ShowStatusWindow = true;
     62
    5463
    5564                public static Configuration GetInstance()
  • trunk/MacFaceFloat/MacFaceApp.cs

    r63 r64  
    120120                        }
    121121
    122                         openPatternWindow();
    123                         openStatusWindow();
     122                        if (config.ShowPatternWindow)
     123                        {
     124                                openPatternWindow();
     125                        }
     126
     127                        if (config.ShowStatusWindow)
     128                        {
     129                                openStatusWindow();
     130                        }
     131
    124132                        updateTimer.Start();
    125133
     
    239247
    240248                        menuItemTogglePatternWindow.Text = MES_CLOSE_PATTERN_WINDOW;
     249                        config.ShowPatternWindow = true;
    241250                }
    242251
     
    254263
    255264                        menuItemToggleStatusWindow.Text = MES_CLOSE_STATUS_WINDOW;
     265                        config.ShowStatusWindow = true;
    256266                }
    257267
     
    264274                {
    265275                        updateTimer.Stop();
    266 
    267                         if (patternWindow != null)
    268                         {
    269                                 patternWindow.Close();
    270                         }
    271 
    272                         if (statusWindow != null)
    273                         {
    274                                 statusWindow.Close();
    275                         }
    276 
    277276                        ExitThread();
    278277                }
     
    311310                        patternWindow = null;
    312311                        menuItemTogglePatternWindow.Text = MES_OPEN_PATTERN_WINDOW;
     312                        config.ShowPatternWindow = false;
    313313                }
    314314
     
    318318                        statusWindow = null;
    319319                        menuItemToggleStatusWindow.Text = MES_OPEN_STATUS_WINDOW;
     320                        config.ShowStatusWindow = false;
    320321                }
    321322
Note: See TracChangeset for help on using the changeset viewer.