Changeset 40

Show
Ignore:
Timestamp:
02/26/05 03:56:19 (4 years ago)
Author:
altba\rryu
Message:

謎の切り替えパネル形式をやめて、普通の設定ウインドウに変更した。

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/MacFaceFloat/ConfigurationForm.cs

    r39 r40  
    1717                private MacFaceApp _app; 
    1818                private Configuration _config; 
    19  
    20                 private System.Windows.Forms.TreeView treeCategory; 
    2119                private System.Windows.Forms.Button buttonCancel; 
    2220                private System.Windows.Forms.Button buttonApply; 
    2321                private System.Windows.Forms.Button buttonOK; 
    24                 private System.Windows.Forms.Label labelTitle; 
    25                 private System.Windows.Forms.Panel panelContainer; 
    26                 private System.Windows.Forms.Panel panelAppearance; 
    27                 private System.Windows.Forms.TrackBar trackBarOpacity; 
    28                 private System.Windows.Forms.Label label1; 
    29                 private System.Windows.Forms.Label label2; 
    30                 private System.Windows.Forms.Label label3; 
    31                 private System.Windows.Forms.Button buttonBrowse; 
    32                 private System.Windows.Forms.Panel panelFacePatternList; 
    33                 private System.Windows.Forms.ListView listViewFaces; 
    3422                private System.Windows.Forms.ImageList imageListFacePreviews; 
    3523                private System.Windows.Forms.ToolTip toolTipPreviewDetail; 
     24                private System.Windows.Forms.ImageList imageListConfigTreeIcon; 
     25                private Label label6; 
     26                private System.Windows.Forms.CheckBox checkMouseMessage; 
     27                private System.Windows.Forms.Label label4; 
    3628                private System.Windows.Forms.LinkLabel linkWebSite; 
    37                 private System.Windows.Forms.Label label4; 
    38                 private System.Windows.Forms.CheckBox checkMouseMessage; 
    39                 private System.Windows.Forms.ImageList imageListConfigTreeIcon; 
     29                private System.Windows.Forms.Button buttonBrowse; 
     30                private System.Windows.Forms.ListView listViewFaces; 
     31                private System.Windows.Forms.GroupBox groupBox1; 
     32                private System.Windows.Forms.TrackBar trackBarOpacity; 
     33                private System.Windows.Forms.Label label2; 
    4034                private System.Windows.Forms.Label label5; 
    41                 private TrackBar trackBarPatternSize; 
    42                 private Label label6; 
     35                private System.Windows.Forms.GroupBox groupBox2; 
     36                private System.Windows.Forms.Label label7; 
     37                private System.Windows.Forms.Label label8; 
     38                private System.Windows.Forms.TrackBar trackBarPatternSize; 
    4339                private System.ComponentModel.IContainer components; 
    4440 
     
    7773                        this.components = new System.ComponentModel.Container(); 
    7874                        System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ConfigurationForm)); 
    79                         this.treeCategory = new System.Windows.Forms.TreeView(); 
    8075                        this.imageListConfigTreeIcon = new System.Windows.Forms.ImageList(this.components); 
    8176                        this.buttonCancel = new System.Windows.Forms.Button(); 
    8277                        this.buttonApply = new System.Windows.Forms.Button(); 
    8378                        this.buttonOK = new System.Windows.Forms.Button(); 
    84                         this.labelTitle = new System.Windows.Forms.Label(); 
    85                         this.panelContainer = new System.Windows.Forms.Panel(); 
    86                         this.panelAppearance = new System.Windows.Forms.Panel(); 
     79                        this.imageListFacePreviews = new System.Windows.Forms.ImageList(this.components); 
    8780                        this.label6 = new System.Windows.Forms.Label(); 
    88                         this.trackBarPatternSize = new System.Windows.Forms.TrackBar(); 
    89                         this.label5 = new System.Windows.Forms.Label(); 
     81                        this.toolTipPreviewDetail = new System.Windows.Forms.ToolTip(this.components); 
    9082                        this.checkMouseMessage = new System.Windows.Forms.CheckBox(); 
    91                         this.label3 = new System.Windows.Forms.Label(); 
    92                         this.label2 = new System.Windows.Forms.Label(); 
    93                         this.label1 = new System.Windows.Forms.Label(); 
    94                         this.trackBarOpacity = new System.Windows.Forms.TrackBar(); 
    95                         this.panelFacePatternList = new System.Windows.Forms.Panel(); 
    9683                        this.label4 = new System.Windows.Forms.Label(); 
    9784                        this.linkWebSite = new System.Windows.Forms.LinkLabel(); 
    9885                        this.buttonBrowse = new System.Windows.Forms.Button(); 
    9986                        this.listViewFaces = new System.Windows.Forms.ListView(); 
    100                         this.imageListFacePreviews = new System.Windows.Forms.ImageList(this.components); 
    101                         this.toolTipPreviewDetail = new System.Windows.Forms.ToolTip(this.components); 
    102                         this.panelContainer.SuspendLayout(); 
    103                         this.panelAppearance.SuspendLayout(); 
     87                        this.groupBox1 = new System.Windows.Forms.GroupBox(); 
     88                        this.trackBarOpacity = new System.Windows.Forms.TrackBar(); 
     89                        this.label2 = new System.Windows.Forms.Label(); 
     90                        this.label5 = new System.Windows.Forms.Label(); 
     91                        this.groupBox2 = new System.Windows.Forms.GroupBox(); 
     92                        this.label7 = new System.Windows.Forms.Label(); 
     93                        this.label8 = new System.Windows.Forms.Label(); 
     94                        this.trackBarPatternSize = new System.Windows.Forms.TrackBar(); 
     95                        this.groupBox1.SuspendLayout(); 
     96                        ((System.ComponentModel.ISupportInitialize)(this.trackBarOpacity)).BeginInit(); 
     97                        this.groupBox2.SuspendLayout(); 
    10498                        ((System.ComponentModel.ISupportInitialize)(this.trackBarPatternSize)).BeginInit(); 
    105                         ((System.ComponentModel.ISupportInitialize)(this.trackBarOpacity)).BeginInit(); 
    106                         this.panelFacePatternList.SuspendLayout(); 
    10799                        this.SuspendLayout(); 
    108                         //  
    109                         // treeCategory 
    110                         //  
    111                         this.treeCategory.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)  
    112                                 | System.Windows.Forms.AnchorStyles.Left))); 
    113                         this.treeCategory.FullRowSelect = true; 
    114                         this.treeCategory.HideSelection = false; 
    115                         this.treeCategory.HotTracking = true; 
    116                         this.treeCategory.ImageList = this.imageListConfigTreeIcon; 
    117                         this.treeCategory.Location = new System.Drawing.Point(0, 0); 
    118                         this.treeCategory.Name = "treeCategory"; 
    119                         this.treeCategory.Nodes.AddRange(new System.Windows.Forms.TreeNode[] { 
    120                                                                                                                                                                          new System.Windows.Forms.TreeNode("�S��, 1, 1), 
    121                                                                                                                                                                          new System.Windows.Forms.TreeNode("���^�[��")}); 
    122                         this.treeCategory.ShowLines = false; 
    123                         this.treeCategory.ShowPlusMinus = false; 
    124                         this.treeCategory.ShowRootLines = false; 
    125                         this.treeCategory.Size = new System.Drawing.Size(101, 296); 
    126                         this.treeCategory.TabIndex = 0; 
    127                         this.treeCategory.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeCategory_AfterSelect); 
    128100                        //  
    129101                        // imageListConfigTreeIcon 
     
    138110                        this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 
    139111                        this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; 
    140                         this.buttonCancel.Location = new System.Drawing.Point(303, 267); 
     112                        this.buttonCancel.Location = new System.Drawing.Point(186, 386); 
    141113                        this.buttonCancel.Name = "buttonCancel"; 
    142114                        this.buttonCancel.Size = new System.Drawing.Size(87, 21); 
     
    148120                        this.buttonApply.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 
    149121                        this.buttonApply.Enabled = false; 
    150                         this.buttonApply.Location = new System.Drawing.Point(397, 267); 
     122                        this.buttonApply.Location = new System.Drawing.Point(282, 386); 
    151123                        this.buttonApply.Name = "buttonApply"; 
    152124                        this.buttonApply.Size = new System.Drawing.Size(87, 21); 
     
    158130                        this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 
    159131                        this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK; 
    160                         this.buttonOK.Location = new System.Drawing.Point(208, 267); 
     132                        this.buttonOK.Location = new System.Drawing.Point(90, 386); 
    161133                        this.buttonOK.Name = "buttonOK"; 
    162134                        this.buttonOK.Size = new System.Drawing.Size(87, 21); 
     
    165137                        this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click); 
    166138                        //  
    167                         // labelTitle 
    168                         //  
    169                         this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)  
    170                                 | System.Windows.Forms.AnchorStyles.Right))); 
    171                         this.labelTitle.BackColor = System.Drawing.SystemColors.ActiveCaption; 
    172                         this.labelTitle.Font = new System.Drawing.Font("MS UI Gothic", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(128))); 
    173                         this.labelTitle.ForeColor = System.Drawing.SystemColors.ActiveCaptionText; 
    174                         this.labelTitle.Location = new System.Drawing.Point(107, 5); 
    175                         this.labelTitle.Name = "labelTitle"; 
    176                         this.labelTitle.Size = new System.Drawing.Size(380, 27); 
    177                         this.labelTitle.TabIndex = 4; 
    178                         this.labelTitle.Text = "�S��; 
    179                         this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; 
    180                         //  
    181                         // panelContainer 
    182                         //  
    183                         this.panelContainer.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)  
    184                                 | System.Windows.Forms.AnchorStyles.Left)  
    185                                 | System.Windows.Forms.AnchorStyles.Right))); 
    186                         this.panelContainer.Controls.Add(this.panelAppearance); 
    187                         this.panelContainer.Controls.Add(this.panelFacePatternList); 
    188                         this.panelContainer.Location = new System.Drawing.Point(106, 38); 
    189                         this.panelContainer.Name = "panelContainer"; 
    190                         this.panelContainer.Size = new System.Drawing.Size(380, 218); 
    191                         this.panelContainer.TabIndex = 5; 
    192                         //  
    193                         // panelAppearance 
    194                         //  
    195                         this.panelAppearance.Controls.Add(this.trackBarPatternSize); 
    196                         this.panelAppearance.Controls.Add(this.label5); 
    197                         this.panelAppearance.Controls.Add(this.checkMouseMessage); 
    198                         this.panelAppearance.Controls.Add(this.label3); 
    199                         this.panelAppearance.Controls.Add(this.label2); 
    200                         this.panelAppearance.Controls.Add(this.label1); 
    201                         this.panelAppearance.Controls.Add(this.trackBarOpacity); 
    202                         this.panelAppearance.Location = new System.Drawing.Point(4, 3); 
    203                         this.panelAppearance.Name = "panelAppearance"; 
    204                         this.panelAppearance.Size = new System.Drawing.Size(366, 208); 
    205                         this.panelAppearance.TabIndex = 0; 
     139                        // imageListFacePreviews 
     140                        //  
     141                        this.imageListFacePreviews.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit; 
     142                        this.imageListFacePreviews.ImageSize = new System.Drawing.Size(128, 128); 
     143                        this.imageListFacePreviews.TransparentColor = System.Drawing.Color.Transparent; 
    206144                        //  
    207145                        // label6 
     
    213151                        this.label6.Text = "�傫��:"; 
    214152                        //  
     153                        // checkMouseMessage 
     154                        //  
     155                        this.checkMouseMessage.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 
     156                        this.checkMouseMessage.Location = new System.Drawing.Point(8, 354); 
     157                        this.checkMouseMessage.Name = "checkMouseMessage"; 
     158                        this.checkMouseMessage.Size = new System.Drawing.Size(339, 16); 
     159                        this.checkMouseMessage.TabIndex = 6; 
     160                        this.checkMouseMessage.Text = "�}�E�X�̓����w�ʂ̃E�B���h�E�֓`����T)"; 
     161                        //  
     162                        // label4 
     163                        //  
     164                        this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 
     165                        this.label4.Location = new System.Drawing.Point(8, 176); 
     166                        this.label4.Name = "label4"; 
     167                        this.label4.Size = new System.Drawing.Size(63, 17); 
     168                        this.label4.TabIndex = 15; 
     169                        this.label4.Text = "�E�F�u�T�C�g:"; 
     170                        //  
     171                        // linkWebSite 
     172                        //  
     173                        this.linkWebSite.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)  
     174                                | System.Windows.Forms.AnchorStyles.Right))); 
     175                        this.linkWebSite.Location = new System.Drawing.Point(72, 176); 
     176                        this.linkWebSite.Name = "linkWebSite"; 
     177                        this.linkWebSite.Size = new System.Drawing.Size(322, 16); 
     178                        this.linkWebSite.TabIndex = 14; 
     179                        this.linkWebSite.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkWebSite_LinkClicked); 
     180                        //  
     181                        // buttonBrowse 
     182                        //  
     183                        this.buttonBrowse.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 
     184                        this.buttonBrowse.Location = new System.Drawing.Point(272, 192); 
     185                        this.buttonBrowse.Name = "buttonBrowse"; 
     186                        this.buttonBrowse.Size = new System.Drawing.Size(95, 24); 
     187                        this.buttonBrowse.TabIndex = 13; 
     188                        this.buttonBrowse.Text = "�Q��&B)..."; 
     189                        this.buttonBrowse.Click += new System.EventHandler(this.buttonBrowse_Click); 
     190                        //  
     191                        // listViewFaces 
     192                        //  
     193                        this.listViewFaces.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)  
     194                                | System.Windows.Forms.AnchorStyles.Left)  
     195                                | System.Windows.Forms.AnchorStyles.Right))); 
     196                        this.listViewFaces.LargeImageList = this.imageListFacePreviews; 
     197                        this.listViewFaces.Location = new System.Drawing.Point(8, 8); 
     198                        this.listViewFaces.Name = "listViewFaces"; 
     199                        this.listViewFaces.Size = new System.Drawing.Size(362, 160); 
     200                        this.listViewFaces.TabIndex = 12; 
     201                        this.listViewFaces.DoubleClick += new System.EventHandler(this.listViewFaces_DoubleClick); 
     202                        this.listViewFaces.MouseMove += new System.Windows.Forms.MouseEventHandler(this.listViewFaces_MouseMove); 
     203                        this.listViewFaces.SelectedIndexChanged += new System.EventHandler(this.listViewFaces_SelectedIndexChanged); 
     204                        //  
     205                        // groupBox1 
     206                        //  
     207                        this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)  
     208                                | System.Windows.Forms.AnchorStyles.Right))); 
     209                        this.groupBox1.Controls.Add(this.label5); 
     210                        this.groupBox1.Controls.Add(this.label2); 
     211                        this.groupBox1.Controls.Add(this.trackBarOpacity); 
     212                        this.groupBox1.Location = new System.Drawing.Point(10, 224); 
     213                        this.groupBox1.Name = "groupBox1"; 
     214                        this.groupBox1.Size = new System.Drawing.Size(360, 56); 
     215                        this.groupBox1.TabIndex = 19; 
     216                        this.groupBox1.TabStop = false; 
     217                        this.groupBox1.Text = "�����x"; 
     218                        //  
     219                        // trackBarOpacity 
     220                        //  
     221                        this.trackBarOpacity.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)  
     222                                | System.Windows.Forms.AnchorStyles.Right))); 
     223                        this.trackBarOpacity.LargeChange = 10; 
     224                        this.trackBarOpacity.Location = new System.Drawing.Point(64, 16); 
     225                        this.trackBarOpacity.Maximum = 100; 
     226                        this.trackBarOpacity.Name = "trackBarOpacity"; 
     227                        this.trackBarOpacity.Size = new System.Drawing.Size(232, 37); 
     228                        this.trackBarOpacity.TabIndex = 9; 
     229                        this.trackBarOpacity.TickFrequency = 10; 
     230                        this.trackBarOpacity.Value = 100; 
     231                        //  
     232                        // label2 
     233                        //  
     234                        this.label2.Location = new System.Drawing.Point(8, 24); 
     235                        this.label2.Name = "label2"; 
     236                        this.label2.Size = new System.Drawing.Size(40, 11); 
     237                        this.label2.TabIndex = 11; 
     238                        this.label2.Text = "����"; 
     239                        //  
     240                        // label5 
     241                        //  
     242                        this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 
     243                        this.label5.Location = new System.Drawing.Point(304, 24); 
     244                        this.label5.Name = "label5"; 
     245                        this.label5.Size = new System.Drawing.Size(48, 11); 
     246                        this.label5.TabIndex = 12; 
     247                        this.label5.Text = "�s����"; 
     248                        this.label5.TextAlign = System.Drawing.ContentAlignment.TopRight; 
     249                        //  
     250                        // groupBox2 
     251                        //  
     252                        this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)  
     253                                | System.Windows.Forms.AnchorStyles.Right))); 
     254                        this.groupBox2.Controls.Add(this.label7); 
     255                        this.groupBox2.Controls.Add(this.label8); 
     256                        this.groupBox2.Controls.Add(this.trackBarPatternSize); 
     257                        this.groupBox2.Location = new System.Drawing.Point(10, 288); 
     258                        this.groupBox2.Name = "groupBox2"; 
     259                        this.groupBox2.Size = new System.Drawing.Size(360, 56); 
     260                        this.groupBox2.TabIndex = 20; 
     261                        this.groupBox2.TabStop = false; 
     262                        this.groupBox2.Text = "�p�^�[���̑傫��"; 
     263                        //  
     264                        // label7 
     265                        //  
     266                        this.label7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 
     267                        this.label7.Location = new System.Drawing.Point(312, 24); 
     268                        this.label7.Name = "label7"; 
     269                        this.label7.Size = new System.Drawing.Size(40, 11); 
     270                        this.label7.TabIndex = 21; 
     271                        this.label7.Text = "�ő� 
     272                        this.label7.TextAlign = System.Drawing.ContentAlignment.TopRight; 
     273                        //  
     274                        // label8 
     275                        //  
     276                        this.label8.Location = new System.Drawing.Point(8, 24); 
     277                        this.label8.Name = "label8"; 
     278                        this.label8.Size = new System.Drawing.Size(40, 11); 
     279                        this.label8.TabIndex = 20; 
     280                        this.label8.Text = "�ŏ�"; 
     281                        //  
    215282                        // trackBarPatternSize 
    216283                        //  
     
    218285                                | System.Windows.Forms.AnchorStyles.Right))); 
    219286                        this.trackBarPatternSize.LargeChange = 10; 
    220                         this.trackBarPatternSize.Location = new System.Drawing.Point(15, 114); 
     287                        this.trackBarPatternSize.Location = new System.Drawing.Point(64, 15); 
    221288                        this.trackBarPatternSize.Maximum = 100; 
    222289                        this.trackBarPatternSize.Minimum = 10; 
    223290                        this.trackBarPatternSize.Name = "trackBarPatternSize"; 
    224                         this.trackBarPatternSize.Size = new System.Drawing.Size(338, 37); 
    225                         this.trackBarPatternSize.TabIndex = 6
     291                        this.trackBarPatternSize.Size = new System.Drawing.Size(232, 37); 
     292                        this.trackBarPatternSize.TabIndex = 19
    226293                        this.trackBarPatternSize.TickFrequency = 10; 
    227294                        this.trackBarPatternSize.Value = 100; 
    228295                        //  
    229                         // label5 
    230                         //  
    231                         this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)  
    232                                 | System.Windows.Forms.AnchorStyles.Right))); 
    233                         this.label5.Location = new System.Drawing.Point(311, 55); 
    234                         this.label5.Name = "label5"; 
    235                         this.label5.Size = new System.Drawing.Size(42, 11); 
    236                         this.label5.TabIndex = 5; 
    237                         this.label5.Text = "�s����"; 
    238                         //  
    239                         // checkMouseMessage 
    240                         //  
    241                         this.checkMouseMessage.Location = new System.Drawing.Point(5, 176); 
    242                         this.checkMouseMessage.Name = "checkMouseMessage"; 
    243                         this.checkMouseMessage.Size = new System.Drawing.Size(355, 16); 
    244                         this.checkMouseMessage.TabIndex = 4; 
    245                         this.checkMouseMessage.Text = "�}�E�X�̓����w�ʂ̃E�B���h�E�֓`����T)"; 
    246                         //  
    247                         // label3 
    248                         //  
    249                         this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 
    250                         this.label3.Location = new System.Drawing.Point(524, 73); 
    251                         this.label3.Name = "label3"; 
    252                         this.label3.Size = new System.Drawing.Size(45, 11); 
    253                         this.label3.TabIndex = 3; 
    254                         this.label3.Text = "�s����"; 
    255                         //  
    256                         // label2 
    257                         //  
    258                         this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)  
    259                                 | System.Windows.Forms.AnchorStyles.Right))); 
    260                         this.label2.Location = new System.Drawing.Point(15, 55); 
    261                         this.label2.Name = "label2"; 
    262                         this.label2.Size = new System.Drawing.Size(31, 11); 
    263                         this.label2.TabIndex = 2; 
    264                         this.label2.Text = "����"; 
    265                         //  
    266                         // label1 
    267                         //  
    268                         this.label1.Location = new System.Drawing.Point(2, 5); 
    269                         this.label1.Name = "label1"; 
    270                         this.label1.Size = new System.Drawing.Size(196, 18); 
    271                         this.label1.TabIndex = 1; 
    272                         this.label1.Text = "�����x:"; 
    273                         //  
    274                         // trackBarOpacity 
    275                         //  
    276                         this.trackBarOpacity.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)  
    277                                 | System.Windows.Forms.AnchorStyles.Right))); 
    278                         this.trackBarOpacity.LargeChange = 10; 
    279                         this.trackBarOpacity.Location = new System.Drawing.Point(15, 24); 
    280                         this.trackBarOpacity.Maximum = 100; 
    281                         this.trackBarOpacity.Name = "trackBarOpacity"; 
    282                         this.trackBarOpacity.Size = new System.Drawing.Size(338, 37); 
    283                         this.trackBarOpacity.TabIndex = 0; 
    284                         this.trackBarOpacity.TickFrequency = 10; 
    285                         //  
    286                         // panelFacePatternList 
    287                         //  
    288                         this.panelFacePatternList.Controls.Add(this.label4); 
    289                         this.panelFacePatternList.Controls.Add(this.linkWebSite); 
    290                         this.panelFacePatternList.Controls.Add(this.buttonBrowse); 
    291                         this.panelFacePatternList.Controls.Add(this.listViewFaces); 
    292                         this.panelFacePatternList.Location = new System.Drawing.Point(2, 1); 
    293                         this.panelFacePatternList.Name = "panelFacePatternList"; 
    294                         this.panelFacePatternList.Size = new System.Drawing.Size(367, 213); 
    295                         this.panelFacePatternList.TabIndex = 7; 
    296                         //  
    297                         // label4 
    298                         //  
    299                         this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 
    300                         this.label4.Location = new System.Drawing.Point(4, 165); 
    301                         this.label4.Name = "label4"; 
    302                         this.label4.Size = new System.Drawing.Size(63, 17); 
    303                         this.label4.TabIndex = 3; 
    304                         this.label4.Text = "�E�F�u�T�C�g:"; 
    305                         //  
    306                         // linkWebSite 
    307                         //  
    308                         this.linkWebSite.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)  
    309                                 | System.Windows.Forms.AnchorStyles.Right))); 
    310                         this.linkWebSite.Location = new System.Drawing.Point(67, 165); 
    311                         this.linkWebSite.Name = "linkWebSite"; 
    312                         this.linkWebSite.Size = new System.Drawing.Size(388, 16); 
    313                         this.linkWebSite.TabIndex = 2; 
    314                         this.linkWebSite.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkWebSite_LinkClicked); 
    315                         //  
    316                         // buttonBrowse 
    317                         //  
    318                         this.buttonBrowse.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 
    319                         this.buttonBrowse.Location = new System.Drawing.Point(267, 187); 
    320                         this.buttonBrowse.Name = "buttonBrowse"; 
    321                         this.buttonBrowse.Size = new System.Drawing.Size(95, 24); 
    322                         this.buttonBrowse.TabIndex = 1; 
    323                         this.buttonBrowse.Text = "�Q��&B)..."; 
    324                         this.buttonBrowse.Click += new System.EventHandler(this.buttonBrowse_Click); 
    325                         //  
    326                         // listViewFaces 
    327                         //  
    328                         this.listViewFaces.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)  
    329                                 | System.Windows.Forms.AnchorStyles.Left)  
    330                                 | System.Windows.Forms.AnchorStyles.Right))); 
    331                         this.listViewFaces.LargeImageList = this.imageListFacePreviews; 
    332                         this.listViewFaces.Location = new System.Drawing.Point(0, 0); 
    333                         this.listViewFaces.Name = "listViewFaces"; 
    334                         this.listViewFaces.Size = new System.Drawing.Size(367, 161); 
    335                         this.listViewFaces.TabIndex = 0; 
    336                         this.listViewFaces.DoubleClick += new System.EventHandler(this.listViewFaces_DoubleClick); 
    337                         this.listViewFaces.MouseMove += new System.Windows.Forms.MouseEventHandler(this.listViewFaces_MouseMove); 
    338                         this.listViewFaces.SelectedIndexChanged += new System.EventHandler(this.listViewFaces_SelectedIndexChanged); 
    339                         //  
    340                         // imageListFacePreviews 
    341                         //  
    342                         this.imageListFacePreviews.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit; 
    343                         this.imageListFacePreviews.ImageSize = new System.Drawing.Size(128, 128); 
    344                         this.imageListFacePreviews.TransparentColor = System.Drawing.Color.Transparent; 
    345                         //  
    346296                        // ConfigurationForm 
    347297                        //  
    348298                        this.AutoScaleBaseSize = new System.Drawing.Size(5, 12); 
    349                         this.ClientSize = new System.Drawing.Size(492, 297); 
    350                         this.Controls.Add(this.panelContainer); 
    351                         this.Controls.Add(this.labelTitle); 
     299                        this.ClientSize = new System.Drawing.Size(378, 413); 
     300                        this.Controls.Add(this.groupBox2); 
     301                        this.Controls.Add(this.groupBox1); 
     302                        this.Controls.Add(this.label4); 
     303                        this.Controls.Add(this.linkWebSite); 
     304                        this.Controls.Add(this.buttonBrowse); 
     305                        this.Controls.Add(this.listViewFaces); 
     306                        this.Controls.Add(this.checkMouseMessage); 
    352307                        this.Controls.Add(this.buttonOK); 
    353308                        this.Controls.Add(this.buttonApply); 
    354309                        this.Controls.Add(this.buttonCancel); 
    355                         this.Controls.Add(this.treeCategory); 
    356                         this.MinimumSize = new System.Drawing.Size(500, 140); 
     310                        this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; 
     311                        this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); 
     312                        this.MaximizeBox = false; 
     313                        this.MinimizeBox = false; 
     314                        this.MinimumSize = new System.Drawing.Size(384, 440); 
    357315                        this.Name = "ConfigurationForm"; 
    358316                        this.Text = "MacFace �̐ݒ� 
    359317                        this.Load += new System.EventHandler(this.ConfigurationForm_Load); 
    360                         this.panelContainer.ResumeLayout(false); 
    361                         this.panelAppearance.ResumeLayout(false); 
     318                        this.groupBox1.ResumeLayout(false); 
     319                        ((System.ComponentModel.ISupportInitialize)(this.trackBarOpacity)).EndInit(); 
     320                        this.groupBox2.ResumeLayout(false); 
    362321                        ((System.ComponentModel.ISupportInitialize)(this.trackBarPatternSize)).EndInit(); 
    363                         ((System.ComponentModel.ISupportInitialize)(this.trackBarOpacity)).EndInit(); 
    364                         this.panelFacePatternList.ResumeLayout(false); 
    365322                        this.ResumeLayout(false); 
    366323 
     
    375332                        checkMouseMessage.Checked = _config.TransparentMouseMessage; 
    376333 
    377                         // �����ׂẴp�l����\���ɂ���                      foreach (Panel pane in panelContainer.Controls)  
    378                         { 
    379                                 pane.Visible = false; 
    380                                 pane.Dock = DockStyle.Fill; 
    381                         } 
    382  
    383                         // �S�ʂ݂̂���ɂ���                        panelAppearance.Show(); 
     334                        // ���^�[�����X�g��� 
     335                        // TODO: ���̂܂܂��ƒx���̂ŋ߂������ɔ񓯊��悤�B 
     336                        using (Bitmap tmpImage = new Bitmap(128, 128))  
     337                        { 
     338                                // �A�v���P�[�V�����f�B���N�g���̉���� 
     339                                foreach (DirectoryInfo dir in (new DirectoryInfo(Application.StartupPath)).GetDirectories("*.mcface")) 
     340                                { 
     341                                        AddPreviewListItem(dir.FullName); 
     342                                } 
     343                                // %USERPROFILE%\Application Data\MacFace\Faces �̉���� 
     344                                string userFaceDefPath = Path.Combine(Configuration.ConfigurationPath, "Faces"); 
     345                                if (Directory.Exists(userFaceDefPath))  
     346                                { 
     347                                        foreach (DirectoryInfo dir in (new DirectoryInfo(userFaceDefPath).GetDirectories("*.mcface"))) 
     348                                        { 
     349                                                AddPreviewListItem(dir.FullName); 
     350                                        } 
     351                                } 
     352                        } 
    384353                } 
    385354 
     
    392361                        this.Close(); 
    393362                } 
    394  
    395                 private void treeCategory_AfterSelect(object sender, System.Windows.Forms.TreeViewEventArgs e) 
    396                 { 
    397                         // �Ă��Ƃ� 
    398                         if (e.Node.Text == labelTitle.Text) return; 
    399                         foreach (Panel pane in panelContainer.Controls) 
    400                                 pane.Visible = false; 
    401                         switch (e.Node.Text)  
    402                         { 
    403                                 case "�S��: 
    404                                         panelAppearance.Show(); 
    405                                         break; 
    406                                 case "���^�[��": 
    407                                         listViewFaces.Items.Clear(); 
    408                                         imageListFacePreviews.Images.Clear(); 
    409                                         panelFacePatternList.Show(); 
    410  
    411                                         using (Bitmap tmpImage = new Bitmap(128, 128))  
    412                                         { 
    413                                                 // ���^�[�����X�g��� 
    414                                                 // TODO: ���̂܂܂��ƒx���̂ŋ߂������ɔ񓯊��悤�B 
    415                                                 // �A�v���P�[�V�����f�B���N�g���̉��B 
    416                                                 foreach (DirectoryInfo dir in (new DirectoryInfo(Application.StartupPath)).GetDirectories("*.mcface")) 
    417                                                 { 
    418                                                         AddPreviewListItem(dir.FullName); 
    419                                                 } 
    420                                                 // %USERPROFILE%\Application Data\MacFace\Faces ���B 
    421                                                 string userFaceDefPath = Path.Combine(Configuration.ConfigurationPath, "Faces"); 
    422                                                 if (Directory.Exists(userFaceDefPath))  
    423                                                 { 
    424                                                         foreach (DirectoryInfo dir in (new DirectoryInfo(userFaceDefPath).GetDirectories("*.mcface"))) 
    425                                                         { 
    426                                                                 AddPreviewListItem(dir.FullName); 
    427                                                         } 
    428                                                 } 
    429                                         } 
    430                                         break; 
    431                         } 
    432  
    433                         labelTitle.Text = e.Node.Text; 
    434                 } 
    435  
    436363 
    437364                private void AddPreviewListItem(string path) 
     
    529456                private void linkWebSite_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e) 
    530457                { 
    531                         try  
    532                         { 
     458                        if (linkWebSite.Text != "") { 
    533459                                Process.Start(linkWebSite.Text); 
    534460                        }  
    535                         catch (Win32Exception) {} 
    536                 } 
    537  
    538                 private void label6_Click(object sender, EventArgs e) 
    539                 { 
    540                  
    541461                } 
    542462        } 
  • trunk/MacFaceFloat/ConfigurationForm.resx

    r32 r40  
    9898    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> 
    9999  </resheader> 
    100   <data name="treeCategory.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    101     <value>Private</value> 
    102   </data> 
    103   <data name="treeCategory.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    104     <value>Private</value> 
    105   </data> 
    106   <data name="treeCategory.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    107     <value>False</value> 
    108   </data> 
    109100  <data name="imageListConfigTreeIcon.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    110101    <value>Private</value> 
     
    259250    <value>Private</value> 
    260251  </data> 
     252  <data name="buttonApply.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
     253    <value>Private</value> 
     254  </data> 
    261255  <data name="buttonApply.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    262256    <value>False</value> 
     
    265259    <value>Private</value> 
    266260  </data> 
    267   <data name="buttonApply.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    268     <value>Private</value> 
    269   </data> 
    270261  <data name="buttonOK.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    271262    <value>False</value> 
     
    275266  </data> 
    276267  <data name="buttonOK.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    277     <value>Private</value> 
    278   </data> 
    279   <data name="labelTitle.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    280     <value>False</value> 
    281   </data> 
    282   <data name="labelTitle.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    283     <value>Private</value> 
    284   </data> 
    285   <data name="labelTitle.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    286     <value>Private</value> 
    287   </data> 
    288   <data name="panelContainer.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    289     <value>False</value> 
    290   </data> 
    291   <data name="panelContaine