Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MacFaceFloat/ConfigurationForm.cs

    r30 r19  
    3636                private System.Windows.Forms.Label label4;
    3737                private System.Windows.Forms.CheckBox checkMouseMessage;
    38                 private System.Windows.Forms.ImageList imageListConfigTreeIcon;
    39                 private System.Windows.Forms.Label label5;
    40                 private TrackBar trackBarPatternSize;
    41                 private Label label6;
    4238                private System.ComponentModel.IContainer components;
    4339
     
    7773                {
    7874                        this.components = new System.ComponentModel.Container();
    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));
    8275                        this.treeCategory = new System.Windows.Forms.TreeView();
    83                         this.imageListConfigTreeIcon = new System.Windows.Forms.ImageList(this.components);
    8476                        this.buttonCancel = new System.Windows.Forms.Button();
    8577                        this.buttonApply = new System.Windows.Forms.Button();
     
    8779                        this.labelTitle = new System.Windows.Forms.Label();
    8880                        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();
    9681                        this.panelFacePatternList = new System.Windows.Forms.Panel();
    9782                        this.label4 = new System.Windows.Forms.Label();
     
    10085                        this.listViewFaces = new System.Windows.Forms.ListView();
    10186                        this.imageListFacePreviews = new System.Windows.Forms.ImageList(this.components);
     87                        this.panelAppearance = new System.Windows.Forms.Panel();
     88                        this.checkMouseMessage = new System.Windows.Forms.CheckBox();
     89                        this.label3 = new System.Windows.Forms.Label();
     90                        this.label2 = new System.Windows.Forms.Label();
     91                        this.label1 = new System.Windows.Forms.Label();
     92                        this.trackBarOpacity = new System.Windows.Forms.TrackBar();
    10293                        this.toolTipPreviewDetail = new System.Windows.Forms.ToolTip(this.components);
    103                         this.trackBarPatternSize = new System.Windows.Forms.TrackBar();
    104                         this.label6 = new System.Windows.Forms.Label();
    10594                        this.panelContainer.SuspendLayout();
     95                        this.panelFacePatternList.SuspendLayout();
    10696                        this.panelAppearance.SuspendLayout();
    10797                        ((System.ComponentModel.ISupportInitialize)(this.trackBarOpacity)).BeginInit();
    108                         this.panelFacePatternList.SuspendLayout();
    109                         ((System.ComponentModel.ISupportInitialize)(this.trackBarPatternSize)).BeginInit();
    11098                        this.SuspendLayout();
    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)));
    116                         this.treeCategory.FullRowSelect = true;
    117                         this.treeCategory.HideSelection = false;
    118                         this.treeCategory.HotTracking = true;
    119                         this.treeCategory.ImageList = this.imageListConfigTreeIcon;
     99                        //
     100                        // treeCategory
     101                        //
     102                        this.treeCategory.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     103                                | System.Windows.Forms.AnchorStyles.Left)));
     104                        this.treeCategory.ImageIndex = -1;
    120105                        this.treeCategory.Location = new System.Drawing.Point(0, 0);
    121106                        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ƒ^[ƒ“";
    128107                        this.treeCategory.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
    129             treeNode3,
    130             treeNode4});
    131                         this.treeCategory.ShowLines = false;
    132                         this.treeCategory.ShowPlusMinus = false;
    133                         this.treeCategory.ShowRootLines = false;
    134                         this.treeCategory.Size = new System.Drawing.Size(101, 296);
     108                                                                                                                                                                         new System.Windows.Forms.TreeNode("‘S”Ê"),
     109                                                                                                                                                                         new System.Windows.Forms.TreeNode("Šçƒpƒ^[ƒ“")});
     110                        this.treeCategory.SelectedImageIndex = -1;
     111                        this.treeCategory.Size = new System.Drawing.Size(193, 449);
    135112                        this.treeCategory.TabIndex = 0;
    136113                        this.treeCategory.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeCategory_AfterSelect);
    137 //
    138 // imageListConfigTreeIcon
    139 //
    140                         this.imageListConfigTreeIcon.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit;
    141                         this.imageListConfigTreeIcon.ImageSize = new System.Drawing.Size(32, 32);
    142                         this.imageListConfigTreeIcon.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageListConfigTreeIcon.ImageStream")));
    143                         this.imageListConfigTreeIcon.TransparentColor = System.Drawing.Color.Transparent;
    144                         this.imageListConfigTreeIcon.Images.SetKeyName(0, "");
    145                         this.imageListConfigTreeIcon.Images.SetKeyName(1, "");
    146 //
    147 // buttonCancel
    148 //
     114                        //
     115                        // buttonCancel
     116                        //
    149117                        this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
    150118                        this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
    151                         this.buttonCancel.Location = new System.Drawing.Point(303, 267);
     119                        this.buttonCancel.Location = new System.Drawing.Point(427, 420);
    152120                        this.buttonCancel.Name = "buttonCancel";
    153121                        this.buttonCancel.Size = new System.Drawing.Size(87, 21);
    154122                        this.buttonCancel.TabIndex = 1;
    155123                        this.buttonCancel.Text = "ƒLƒƒƒ“ƒZƒ‹";
    156 //
    157 // buttonApply
    158 //
     124                        //
     125                        // buttonApply
     126                        //
    159127                        this.buttonApply.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
    160128                        this.buttonApply.Enabled = false;
    161                         this.buttonApply.Location = new System.Drawing.Point(397, 267);
     129                        this.buttonApply.Location = new System.Drawing.Point(521, 420);
    162130                        this.buttonApply.Name = "buttonApply";
    163131                        this.buttonApply.Size = new System.Drawing.Size(87, 21);
    164132                        this.buttonApply.TabIndex = 2;
    165133                        this.buttonApply.Text = "“K—p(&A)";
    166 //
    167 // buttonOK
    168 //
     134                        //
     135                        // buttonOK
     136                        //
    169137                        this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
    170138                        this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK;
    171                         this.buttonOK.Location = new System.Drawing.Point(208, 267);
     139                        this.buttonOK.Location = new System.Drawing.Point(332, 420);
    172140                        this.buttonOK.Name = "buttonOK";
    173141                        this.buttonOK.Size = new System.Drawing.Size(87, 21);
     
    175143                        this.buttonOK.Text = "OK";
    176144                        this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click);
    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)));
     145                        //
     146                        // labelTitle
     147                        //
     148                        this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
     149                                | System.Windows.Forms.AnchorStyles.Right)));
    182150                        this.labelTitle.BackColor = System.Drawing.SystemColors.ActiveCaption;
    183                         this.labelTitle.Font = new System.Drawing.Font("MS UI Gothic", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
     151                        this.labelTitle.Font = new System.Drawing.Font("MS UI Gothic", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(128)));
    184152                        this.labelTitle.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
    185                         this.labelTitle.Location = new System.Drawing.Point(107, 5);
     153                        this.labelTitle.Location = new System.Drawing.Point(199, 5);
    186154                        this.labelTitle.Name = "labelTitle";
    187                         this.labelTitle.Size = new System.Drawing.Size(380, 27);
     155                        this.labelTitle.Size = new System.Drawing.Size(412, 27);
    188156                        this.labelTitle.TabIndex = 4;
    189157                        this.labelTitle.Text = "‘S”Ê";
    190158                        this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
    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)));
     159                        //
     160                        // panelContainer
     161                        //
     162                        this.panelContainer.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     163                                | System.Windows.Forms.AnchorStyles.Left)
     164                                | System.Windows.Forms.AnchorStyles.Right)));
     165                        this.panelContainer.Controls.Add(this.panelFacePatternList);
    197166                        this.panelContainer.Controls.Add(this.panelAppearance);
    198                         this.panelContainer.Controls.Add(this.panelFacePatternList);
    199                         this.panelContainer.Location = new System.Drawing.Point(106, 38);
     167                        this.panelContainer.Location = new System.Drawing.Point(198, 38);
    200168                        this.panelContainer.Name = "panelContainer";
    201                         this.panelContainer.Size = new System.Drawing.Size(380, 218);
     169                        this.panelContainer.Size = new System.Drawing.Size(411, 371);
    202170                        this.panelContainer.TabIndex = 5;
    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);
     171                        //
     172                        // panelFacePatternList
     173                        //
     174                        this.panelFacePatternList.Controls.Add(this.label4);
     175                        this.panelFacePatternList.Controls.Add(this.linkWebSite);
     176                        this.panelFacePatternList.Controls.Add(this.buttonBrowse);
     177                        this.panelFacePatternList.Controls.Add(this.listViewFaces);
     178                        this.panelFacePatternList.Dock = System.Windows.Forms.DockStyle.Fill;
     179                        this.panelFacePatternList.Location = new System.Drawing.Point(0, 0);
     180                        this.panelFacePatternList.Name = "panelFacePatternList";
     181                        this.panelFacePatternList.Size = new System.Drawing.Size(411, 371);
     182                        this.panelFacePatternList.TabIndex = 7;
     183                        //
     184                        // label4
     185                        //
     186                        this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     187                        this.label4.Location = new System.Drawing.Point(4, 350);
     188                        this.label4.Name = "label4";
     189                        this.label4.Size = new System.Drawing.Size(63, 17);
     190                        this.label4.TabIndex = 3;
     191                        this.label4.Text = "ƒEƒFƒuƒTƒCƒg:";
     192                        //
     193                        // linkWebSite
     194                        //
     195                        this.linkWebSite.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
     196                                | System.Windows.Forms.AnchorStyles.Right)));
     197                        this.linkWebSite.Location = new System.Drawing.Point(67, 350);
     198                        this.linkWebSite.Name = "linkWebSite";
     199                        this.linkWebSite.Size = new System.Drawing.Size(338, 16);
     200                        this.linkWebSite.TabIndex = 2;
     201                        this.linkWebSite.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkWebSite_LinkClicked);
     202                        //
     203                        // buttonBrowse
     204                        //
     205                        this.buttonBrowse.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     206                        this.buttonBrowse.Location = new System.Drawing.Point(322, 323);
     207                        this.buttonBrowse.Name = "buttonBrowse";
     208                        this.buttonBrowse.Size = new System.Drawing.Size(87, 21);
     209                        this.buttonBrowse.TabIndex = 1;
     210                        this.buttonBrowse.Text = "ŽQÆ(&B)...";
     211                        this.buttonBrowse.Click += new System.EventHandler(this.buttonBrowse_Click);
     212                        //
     213                        // listViewFaces
     214                        //
     215                        this.listViewFaces.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     216                                | System.Windows.Forms.AnchorStyles.Left)
     217                                | System.Windows.Forms.AnchorStyles.Right)));
     218                        this.listViewFaces.LargeImageList = this.imageListFacePreviews;
     219                        this.listViewFaces.Location = new System.Drawing.Point(0, 0);
     220                        this.listViewFaces.Name = "listViewFaces";
     221                        this.listViewFaces.Size = new System.Drawing.Size(410, 318);
     222                        this.listViewFaces.TabIndex = 0;
     223                        this.listViewFaces.DoubleClick += new System.EventHandler(this.listViewFaces_DoubleClick);
     224                        this.listViewFaces.MouseMove += new System.Windows.Forms.MouseEventHandler(this.listViewFaces_MouseMove);
     225                        this.listViewFaces.SelectedIndexChanged += new System.EventHandler(this.listViewFaces_SelectedIndexChanged);
     226                        //
     227                        // imageListFacePreviews
     228                        //
     229                        this.imageListFacePreviews.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit;
     230                        this.imageListFacePreviews.ImageSize = new System.Drawing.Size(128, 128);
     231                        this.imageListFacePreviews.TransparentColor = System.Drawing.Color.Transparent;
     232                        //
     233                        // panelAppearance
     234                        //
    209235                        this.panelAppearance.Controls.Add(this.checkMouseMessage);
    210236                        this.panelAppearance.Controls.Add(this.label3);
     
    212238                        this.panelAppearance.Controls.Add(this.label1);
    213239                        this.panelAppearance.Controls.Add(this.trackBarOpacity);
    214                         this.panelAppearance.Location = new System.Drawing.Point(4, 3);
     240                        this.panelAppearance.Dock = System.Windows.Forms.DockStyle.Fill;
     241                        this.panelAppearance.Location = new System.Drawing.Point(0, 0);
    215242                        this.panelAppearance.Name = "panelAppearance";
    216                         this.panelAppearance.Size = new System.Drawing.Size(366, 208);
     243                        this.panelAppearance.Size = new System.Drawing.Size(411, 371);
    217244                        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);
     245                        //
     246                        // checkMouseMessage
     247                        //
     248                        this.checkMouseMessage.Enabled = false;
     249                        this.checkMouseMessage.Location = new System.Drawing.Point(5, 115);
    233250                        this.checkMouseMessage.Name = "checkMouseMessage";
    234                         this.checkMouseMessage.Size = new System.Drawing.Size(355, 11);
     251                        this.checkMouseMessage.Size = new System.Drawing.Size(400, 16);
    235252                        this.checkMouseMessage.TabIndex = 4;
    236253                        this.checkMouseMessage.Text = "ƒ}ƒEƒX‚Ì“®ì‚ð”w–ʂ̃EƒBƒ“ƒhƒE‚Ö“`‚¦‚é(&T)";
    237 //
    238 // label3
    239 //
     254                        //
     255                        // label3
     256                        //
    240257                        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);
     258                        this.label3.Location = new System.Drawing.Point(364, 73);
    242259                        this.label3.Name = "label3";
    243260                        this.label3.Size = new System.Drawing.Size(45, 11);
    244261                        this.label3.TabIndex = 3;
    245262                        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);
     263                        //
     264                        // label2
     265                        //
     266                        this.label2.Location = new System.Drawing.Point(4, 73);
    253267                        this.label2.Name = "label2";
    254268                        this.label2.Size = new System.Drawing.Size(31, 11);
    255269                        this.label2.TabIndex = 2;
    256270                        this.label2.Text = "“§–¾";
    257 //
    258 // label1
    259 //
     271                        //
     272                        // label1
     273                        //
    260274                        this.label1.Location = new System.Drawing.Point(2, 5);
    261                         this.label1.Margin = new System.Windows.Forms.Padding(3, 3, 3, 0);
    262275                        this.label1.Name = "label1";
    263276                        this.label1.Size = new System.Drawing.Size(196, 18);
    264277                        this.label1.TabIndex = 1;
    265278                        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)));
     279                        //
     280                        // trackBarOpacity
     281                        //
     282                        this.trackBarOpacity.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
     283                                | System.Windows.Forms.AnchorStyles.Right)));
    271284                        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);
     285                        this.trackBarOpacity.Location = new System.Drawing.Point(8, 26);
    274286                        this.trackBarOpacity.Maximum = 100;
    275287                        this.trackBarOpacity.Name = "trackBarOpacity";
    276                         this.trackBarOpacity.Size = new System.Drawing.Size(338, 42);
     288                        this.trackBarOpacity.Size = new System.Drawing.Size(400, 42);
    277289                        this.trackBarOpacity.TabIndex = 0;
    278290                        this.trackBarOpacity.TickFrequency = 10;
    279 //
    280 // panelFacePatternList
    281 //
    282                         this.panelFacePatternList.Controls.Add(this.label4);
    283                         this.panelFacePatternList.Controls.Add(this.linkWebSite);
    284                         this.panelFacePatternList.Controls.Add(this.buttonBrowse);
    285                         this.panelFacePatternList.Controls.Add(this.listViewFaces);
    286                         this.panelFacePatternList.Location = new System.Drawing.Point(2, 1);
    287                         this.panelFacePatternList.Name = "panelFacePatternList";
    288                         this.panelFacePatternList.Size = new System.Drawing.Size(367, 213);
    289                         this.panelFacePatternList.TabIndex = 7;
    290 //
    291 // label4
    292 //
    293                         this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
    294                         this.label4.Location = new System.Drawing.Point(4, 165);
    295                         this.label4.Name = "label4";
    296                         this.label4.Size = new System.Drawing.Size(63, 17);
    297                         this.label4.TabIndex = 3;
    298                         this.label4.Text = "ƒEƒFƒuƒTƒCƒg:";
    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));
    305                         this.linkWebSite.Location = new System.Drawing.Point(67, 165);
    306                         this.linkWebSite.Name = "linkWebSite";
    307                         this.linkWebSite.Size = new System.Drawing.Size(388, 16);
    308                         this.linkWebSite.TabIndex = 2;
    309                         this.linkWebSite.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkWebSite_LinkClicked);
    310 //
    311 // buttonBrowse
    312 //
    313                         this.buttonBrowse.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
    314                         this.buttonBrowse.Location = new System.Drawing.Point(267, 187);
    315                         this.buttonBrowse.Name = "buttonBrowse";
    316                         this.buttonBrowse.Size = new System.Drawing.Size(95, 24);
    317                         this.buttonBrowse.TabIndex = 1;
    318                         this.buttonBrowse.Text = "ŽQÆ(&B)...";
    319                         this.buttonBrowse.Click += new System.EventHandler(this.buttonBrowse_Click);
    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)));
    326                         this.listViewFaces.LargeImageList = this.imageListFacePreviews;
    327                         this.listViewFaces.Location = new System.Drawing.Point(0, 0);
    328                         this.listViewFaces.Name = "listViewFaces";
    329                         this.listViewFaces.Size = new System.Drawing.Size(367, 161);
    330                         this.listViewFaces.TabIndex = 0;
    331                         this.listViewFaces.SelectedIndexChanged += new System.EventHandler(this.listViewFaces_SelectedIndexChanged);
    332                         this.listViewFaces.DoubleClick += new System.EventHandler(this.listViewFaces_DoubleClick);
    333                         this.listViewFaces.MouseMove += new System.Windows.Forms.MouseEventHandler(this.listViewFaces_MouseMove);
    334 //
    335 // imageListFacePreviews
    336 //
    337                         this.imageListFacePreviews.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit;
    338                         this.imageListFacePreviews.ImageSize = new System.Drawing.Size(128, 128);
    339                         this.imageListFacePreviews.TransparentColor = System.Drawing.Color.Transparent;
    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 //
     291                        //
     292                        // ConfigurationForm
     293                        //
    367294                        this.AutoScaleBaseSize = new System.Drawing.Size(5, 12);
    368                         this.ClientSize = new System.Drawing.Size(492, 297);
     295                        this.ClientSize = new System.Drawing.Size(616, 450);
    369296                        this.Controls.Add(this.panelContainer);
    370297                        this.Controls.Add(this.labelTitle);
     
    378305                        this.Load += new System.EventHandler(this.ConfigurationForm_Load);
    379306                        this.panelContainer.ResumeLayout(false);
     307                        this.panelFacePatternList.ResumeLayout(false);
    380308                        this.panelAppearance.ResumeLayout(false);
    381                         this.panelAppearance.PerformLayout();
    382309                        ((System.ComponentModel.ISupportInitialize)(this.trackBarOpacity)).EndInit();
    383                         this.panelFacePatternList.ResumeLayout(false);
    384                         ((System.ComponentModel.ISupportInitialize)(this.trackBarPatternSize)).EndInit();
    385310                        this.ResumeLayout(false);
    386311
     
    391316                {
    392317                        // ‘S”Ê‚ð•\Ž¦B
    393                         foreach (Panel pane in panelContainer.Controls)
    394                         {
     318                        foreach (Panel pane in panelContainer.Controls)
    395319                                pane.Visible = false;
    396                                 pane.Dock = DockStyle.Fill;
    397                         }
    398320
    399321                        panelAppearance.Show();
     
    401323                        // ‰Šú’l‚ðƒZƒbƒgB
    402324                        trackBarOpacity.Value = (int) (_mainForm.Opacity * 100);
    403                         trackBarPatternSize.Value = (int)(_mainForm.PatternSize * 100);
    404325                        checkMouseMessage.Checked = Configuration.GetInstance().TransparentMouseMessage;
    405326                }
     
    409330                        Configuration config = Configuration.GetInstance();
    410331                        config.Opacity = trackBarOpacity.Value;
    411                         config.PatternSize = trackBarPatternSize.Value;
    412332                        config.TransparentMouseMessage = checkMouseMessage.Checked;
    413333
     
    417337                private void treeCategory_AfterSelect(object sender, System.Windows.Forms.TreeViewEventArgs e)
    418338                {
     339                        Panel container;
     340
    419341                        // ‚Ä‚«‚Æ‚¤
    420342                        if (e.Node.Text == labelTitle.Text) return;
     
    429351                                        listViewFaces.Items.Clear();
    430352                                        imageListFacePreviews.Images.Clear();
    431                                         panelFacePatternList.Show();
     353                                        int i = 0;
    432354
    433355                                        using (Bitmap tmpImage = new Bitmap(128, 128))
     
    450372                                                }
    451373                                        }
     374
     375                                        panelFacePatternList.Show();
    452376                                        break;
    453377                        }
     
    462386                        {
    463387                                FaceDef faceDef = new FaceDef(path);
    464                                 // •\Ž¦/‘I‘ð‚µ‚½Û‚ɉ˜‚­‚È‚ç‚È‚¢‚悤‚É‚ ‚ç‚©‚¶‚ß”’“h‚肵‚Ä•`‰æ‚µ‚½‰æ‘œ‚ð—pˆÓ‚·‚éB
    465                                 using (Image titleImage = faceDef.TitleImage)
    466                                 {
    467                                         using (Bitmap titlePreviewImage = new Bitmap(titleImage.Width, titleImage.Height))
    468                                         {
    469                                                 using (Graphics g = Graphics.FromImage(titlePreviewImage))
    470                                                 {
    471                                                         g.Clear(Color.White);
    472                                                         g.DrawRectangle(new Pen(Color.LightGray), 0, 0, 127, 127);
    473                                                         g.DrawImage(titleImage, 0, 0);
    474                                                 }
    475                                                 imageListFacePreviews.Images.Add(titlePreviewImage);
    476                                         }
    477                                 }
    478 
     388                                imageListFacePreviews.Images.Add(faceDef.TitleImage());
    479389
    480390                                ListViewItem item = listViewFaces.Items.Add(faceDef.Title, imageListFacePreviews.Images.Count-1);
     
    556466                        catch (Win32Exception) {}
    557467                }
    558 
    559                 private void label6_Click(object sender, EventArgs e)
    560                 {
    561                
    562                 }
    563468        }
    564469}
Note: See TracChangeset for help on using the changeset viewer.