Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MacFaceFloat/ConfigurationForm.cs

    r19 r30  
    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;
    3842                private System.ComponentModel.IContainer components;
    3943
     
    7377                {
    7478                        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));
    7582                        this.treeCategory = new System.Windows.Forms.TreeView();
     83                        this.imageListConfigTreeIcon = new System.Windows.Forms.ImageList(this.components);
    7684                        this.buttonCancel = new System.Windows.Forms.Button();
    7785                        this.buttonApply = new System.Windows.Forms.Button();
     
    7987                        this.labelTitle = new System.Windows.Forms.Label();
    8088                        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();
    8196                        this.panelFacePatternList = new System.Windows.Forms.Panel();
    8297                        this.label4 = new System.Windows.Forms.Label();
     
    85100                        this.listViewFaces = new System.Windows.Forms.ListView();
    86101                        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();
    93102                        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();
    94105                        this.panelContainer.SuspendLayout();
    95                         this.panelFacePatternList.SuspendLayout();
    96106                        this.panelAppearance.SuspendLayout();
    97107                        ((System.ComponentModel.ISupportInitialize)(this.trackBarOpacity)).BeginInit();
     108                        this.panelFacePatternList.SuspendLayout();
     109                        ((System.ComponentModel.ISupportInitialize)(this.trackBarPatternSize)).BeginInit();
    98110                        this.SuspendLayout();
    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;
     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;
    105120                        this.treeCategory.Location = new System.Drawing.Point(0, 0);
    106121                        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ƒ^[ƒ“";
    107128                        this.treeCategory.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
    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);
     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);
    112135                        this.treeCategory.TabIndex = 0;
    113136                        this.treeCategory.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeCategory_AfterSelect);
    114                         //
    115                         // buttonCancel
    116                         //
     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//
    117149                        this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
    118150                        this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
    119                         this.buttonCancel.Location = new System.Drawing.Point(427, 420);
     151                        this.buttonCancel.Location = new System.Drawing.Point(303, 267);
    120152                        this.buttonCancel.Name = "buttonCancel";
    121153                        this.buttonCancel.Size = new System.Drawing.Size(87, 21);
    122154                        this.buttonCancel.TabIndex = 1;
    123155                        this.buttonCancel.Text = "ƒLƒƒƒ“ƒZƒ‹";
    124                         //
    125                         // buttonApply
    126                         //
     156//
     157// buttonApply
     158//
    127159                        this.buttonApply.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
    128160                        this.buttonApply.Enabled = false;
    129                         this.buttonApply.Location = new System.Drawing.Point(521, 420);
     161                        this.buttonApply.Location = new System.Drawing.Point(397, 267);
    130162                        this.buttonApply.Name = "buttonApply";
    131163                        this.buttonApply.Size = new System.Drawing.Size(87, 21);
    132164                        this.buttonApply.TabIndex = 2;
    133165                        this.buttonApply.Text = "“K—p(&A)";
    134                         //
    135                         // buttonOK
    136                         //
     166//
     167// buttonOK
     168//
    137169                        this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
    138170                        this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK;
    139                         this.buttonOK.Location = new System.Drawing.Point(332, 420);
     171                        this.buttonOK.Location = new System.Drawing.Point(208, 267);
    140172                        this.buttonOK.Name = "buttonOK";
    141173                        this.buttonOK.Size = new System.Drawing.Size(87, 21);
     
    143175                        this.buttonOK.Text = "OK";
    144176                        this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click);
    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)));
     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)));
    150182                        this.labelTitle.BackColor = System.Drawing.SystemColors.ActiveCaption;
    151                         this.labelTitle.Font = new System.Drawing.Font("MS UI Gothic", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(128)));
     183                        this.labelTitle.Font = new System.Drawing.Font("MS UI Gothic", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
    152184                        this.labelTitle.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
    153                         this.labelTitle.Location = new System.Drawing.Point(199, 5);
     185                        this.labelTitle.Location = new System.Drawing.Point(107, 5);
    154186                        this.labelTitle.Name = "labelTitle";
    155                         this.labelTitle.Size = new System.Drawing.Size(412, 27);
     187                        this.labelTitle.Size = new System.Drawing.Size(380, 27);
    156188                        this.labelTitle.TabIndex = 4;
    157189                        this.labelTitle.Text = "‘S”Ê";
    158190                        this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
    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)));
     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)));
     197                        this.panelContainer.Controls.Add(this.panelAppearance);
    165198                        this.panelContainer.Controls.Add(this.panelFacePatternList);
    166                         this.panelContainer.Controls.Add(this.panelAppearance);
    167                         this.panelContainer.Location = new System.Drawing.Point(198, 38);
     199                        this.panelContainer.Location = new System.Drawing.Point(106, 38);
    168200                        this.panelContainer.Name = "panelContainer";
    169                         this.panelContainer.Size = new System.Drawing.Size(411, 371);
     201                        this.panelContainer.Size = new System.Drawing.Size(380, 218);
    170202                        this.panelContainer.TabIndex = 5;
    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                         //
     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);
    235209                        this.panelAppearance.Controls.Add(this.checkMouseMessage);
    236210                        this.panelAppearance.Controls.Add(this.label3);
     
    238212                        this.panelAppearance.Controls.Add(this.label1);
    239213                        this.panelAppearance.Controls.Add(this.trackBarOpacity);
    240                         this.panelAppearance.Dock = System.Windows.Forms.DockStyle.Fill;
    241                         this.panelAppearance.Location = new System.Drawing.Point(0, 0);
     214                        this.panelAppearance.Location = new System.Drawing.Point(4, 3);
    242215                        this.panelAppearance.Name = "panelAppearance";
    243                         this.panelAppearance.Size = new System.Drawing.Size(411, 371);
     216                        this.panelAppearance.Size = new System.Drawing.Size(366, 208);
    244217                        this.panelAppearance.TabIndex = 0;
    245                         //
    246                         // checkMouseMessage
    247                         //
    248                         this.checkMouseMessage.Enabled = false;
    249                         this.checkMouseMessage.Location = new System.Drawing.Point(5, 115);
     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);
    250233                        this.checkMouseMessage.Name = "checkMouseMessage";
    251                         this.checkMouseMessage.Size = new System.Drawing.Size(400, 16);
     234                        this.checkMouseMessage.Size = new System.Drawing.Size(355, 11);
    252235                        this.checkMouseMessage.TabIndex = 4;
    253236                        this.checkMouseMessage.Text = "ƒ}ƒEƒX‚Ì“®ì‚ð”w–ʂ̃EƒBƒ“ƒhƒE‚Ö“`‚¦‚é(&T)";
    254                         //
    255                         // label3
    256                         //
     237//
     238// label3
     239//
    257240                        this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
    258                         this.label3.Location = new System.Drawing.Point(364, 73);
     241                        this.label3.Location = new System.Drawing.Point(524, 73);
    259242                        this.label3.Name = "label3";
    260243                        this.label3.Size = new System.Drawing.Size(45, 11);
    261244                        this.label3.TabIndex = 3;
    262245                        this.label3.Text = "•s“§–¾";
    263                         //
    264                         // label2
    265                         //
    266                         this.label2.Location = new System.Drawing.Point(4, 73);
     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);
    267253                        this.label2.Name = "label2";
    268254                        this.label2.Size = new System.Drawing.Size(31, 11);
    269255                        this.label2.TabIndex = 2;
    270256                        this.label2.Text = "“§–¾";
    271                         //
    272                         // label1
    273                         //
     257//
     258// label1
     259//
    274260                        this.label1.Location = new System.Drawing.Point(2, 5);
     261                        this.label1.Margin = new System.Windows.Forms.Padding(3, 3, 3, 0);
    275262                        this.label1.Name = "label1";
    276263                        this.label1.Size = new System.Drawing.Size(196, 18);
    277264                        this.label1.TabIndex = 1;
    278265                        this.label1.Text = "“§–¾“x:";
    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)));
     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)));
    284271                        this.trackBarOpacity.LargeChange = 10;
    285                         this.trackBarOpacity.Location = new System.Drawing.Point(8, 26);
     272                        this.trackBarOpacity.Location = new System.Drawing.Point(15, 24);
     273                        this.trackBarOpacity.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
    286274                        this.trackBarOpacity.Maximum = 100;
    287275                        this.trackBarOpacity.Name = "trackBarOpacity";
    288                         this.trackBarOpacity.Size = new System.Drawing.Size(400, 42);
     276                        this.trackBarOpacity.Size = new System.Drawing.Size(338, 42);
    289277                        this.trackBarOpacity.TabIndex = 0;
    290278                        this.trackBarOpacity.TickFrequency = 10;
    291                         //
    292                         // ConfigurationForm
    293                         //
     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//
    294367                        this.AutoScaleBaseSize = new System.Drawing.Size(5, 12);
    295                         this.ClientSize = new System.Drawing.Size(616, 450);
     368                        this.ClientSize = new System.Drawing.Size(492, 297);
    296369                        this.Controls.Add(this.panelContainer);
    297370                        this.Controls.Add(this.labelTitle);
     
    305378                        this.Load += new System.EventHandler(this.ConfigurationForm_Load);
    306379                        this.panelContainer.ResumeLayout(false);
     380                        this.panelAppearance.ResumeLayout(false);
     381                        this.panelAppearance.PerformLayout();
     382                        ((System.ComponentModel.ISupportInitialize)(this.trackBarOpacity)).EndInit();
    307383                        this.panelFacePatternList.ResumeLayout(false);
    308                         this.panelAppearance.ResumeLayout(false);
    309                         ((System.ComponentModel.ISupportInitialize)(this.trackBarOpacity)).EndInit();
     384                        ((System.ComponentModel.ISupportInitialize)(this.trackBarPatternSize)).EndInit();
    310385                        this.ResumeLayout(false);
    311386
     
    316391                {
    317392                        // ‘S”Ê‚ð•\Ž¦B
    318                         foreach (Panel pane in panelContainer.Controls)
     393                        foreach (Panel pane in panelContainer.Controls)
     394                        {
    319395                                pane.Visible = false;
     396                                pane.Dock = DockStyle.Fill;
     397                        }
    320398
    321399                        panelAppearance.Show();
     
    323401                        // ‰Šú’l‚ðƒZƒbƒgB
    324402                        trackBarOpacity.Value = (int) (_mainForm.Opacity * 100);
     403                        trackBarPatternSize.Value = (int)(_mainForm.PatternSize * 100);
    325404                        checkMouseMessage.Checked = Configuration.GetInstance().TransparentMouseMessage;
    326405                }
     
    330409                        Configuration config = Configuration.GetInstance();
    331410                        config.Opacity = trackBarOpacity.Value;
     411                        config.PatternSize = trackBarPatternSize.Value;
    332412                        config.TransparentMouseMessage = checkMouseMessage.Checked;
    333413
     
    337417                private void treeCategory_AfterSelect(object sender, System.Windows.Forms.TreeViewEventArgs e)
    338418                {
    339                         Panel container;
    340 
    341419                        // ‚Ä‚«‚Æ‚¤
    342420                        if (e.Node.Text == labelTitle.Text) return;
     
    351429                                        listViewFaces.Items.Clear();
    352430                                        imageListFacePreviews.Images.Clear();
    353                                         int i = 0;
     431                                        panelFacePatternList.Show();
    354432
    355433                                        using (Bitmap tmpImage = new Bitmap(128, 128))
     
    372450                                                }
    373451                                        }
    374 
    375                                         panelFacePatternList.Show();
    376452                                        break;
    377453                        }
     
    386462                        {
    387463                                FaceDef faceDef = new FaceDef(path);
    388                                 imageListFacePreviews.Images.Add(faceDef.TitleImage());
     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
    389479
    390480                                ListViewItem item = listViewFaces.Items.Add(faceDef.Title, imageListFacePreviews.Images.Count-1);
     
    466556                        catch (Win32Exception) {}
    467557                }
     558
     559                private void label6_Click(object sender, EventArgs e)
     560                {
     561               
     562                }
    468563        }
    469564}
Note: See TracChangeset for help on using the changeset viewer.