diff --git a/AutoTypeSearch/AutoTypeSearch.csproj b/AutoTypeSearch/AutoTypeSearch.csproj index 6145b08..c201baf 100755 --- a/AutoTypeSearch/AutoTypeSearch.csproj +++ b/AutoTypeSearch/AutoTypeSearch.csproj @@ -1,4 +1,4 @@ - + diff --git a/AutoTypeSearch/AutoTypeSearch.csproj b/AutoTypeSearch/AutoTypeSearch.csproj index 6145b08..c201baf 100755 --- a/AutoTypeSearch/AutoTypeSearch.csproj +++ b/AutoTypeSearch/AutoTypeSearch.csproj @@ -1,4 +1,4 @@ - + diff --git a/AutoTypeSearch/Options.Designer.cs b/AutoTypeSearch/Options.Designer.cs index 4886b6d..95c6992 100755 --- a/AutoTypeSearch/Options.Designer.cs +++ b/AutoTypeSearch/Options.Designer.cs @@ -30,295 +30,387 @@ /// private void InitializeComponent() { - System.Windows.Forms.GroupBox searchOptionsGroup; - System.Windows.Forms.GroupBox searchInGroup; - System.Windows.Forms.GroupBox actionsGroup; - System.Windows.Forms.Label alternativeActionLabel; - System.Windows.Forms.Label defaultActionLabel; - this.mResolveReferences = new System.Windows.Forms.CheckBox(); - this.mExcludeExpired = new System.Windows.Forms.CheckBox(); - this.mCaseSensitive = new System.Windows.Forms.CheckBox(); - this.mSearchInTags = new System.Windows.Forms.CheckBox(); - this.mSearchInOtherFields = new System.Windows.Forms.CheckBox(); - this.mSearchInNotes = new System.Windows.Forms.CheckBox(); - this.mSearchInUrl = new System.Windows.Forms.CheckBox(); - this.mSearchInUserName = new System.Windows.Forms.CheckBox(); - this.mSearchInTitle = new System.Windows.Forms.CheckBox(); - this.mAlternativeAction = new System.Windows.Forms.ComboBox(); - this.mDefaultAction = new System.Windows.Forms.ComboBox(); - this.mShowHotKeyControl = new KeePass.UI.HotKeyControlEx(); - this.mShowSearchGroup = new System.Windows.Forms.GroupBox(); - this.mShowOnHotKey = new System.Windows.Forms.CheckBox(); - this.mShowOnIPC = new System.Windows.Forms.CheckBox(); - this.mShowOnFailedSearch = new System.Windows.Forms.CheckBox(); - searchOptionsGroup = new System.Windows.Forms.GroupBox(); - searchInGroup = new System.Windows.Forms.GroupBox(); - actionsGroup = new System.Windows.Forms.GroupBox(); - alternativeActionLabel = new System.Windows.Forms.Label(); - defaultActionLabel = new System.Windows.Forms.Label(); - searchOptionsGroup.SuspendLayout(); - searchInGroup.SuspendLayout(); - actionsGroup.SuspendLayout(); - this.mShowSearchGroup.SuspendLayout(); - this.SuspendLayout(); - // - // searchOptionsGroup - // - searchOptionsGroup.Controls.Add(this.mResolveReferences); - searchOptionsGroup.Controls.Add(this.mExcludeExpired); - searchOptionsGroup.Controls.Add(this.mCaseSensitive); - searchOptionsGroup.Location = new System.Drawing.Point(6, 189); - searchOptionsGroup.Name = "searchOptionsGroup"; - searchOptionsGroup.Size = new System.Drawing.Size(540, 45); - searchOptionsGroup.TabIndex = 2; - searchOptionsGroup.TabStop = false; - searchOptionsGroup.Text = "Search options"; - // - // mResolveReferences - // - this.mResolveReferences.AutoSize = true; - this.mResolveReferences.Location = new System.Drawing.Point(251, 20); - this.mResolveReferences.Name = "mResolveReferences"; - this.mResolveReferences.Size = new System.Drawing.Size(170, 17); - this.mResolveReferences.TabIndex = 2; - this.mResolveReferences.Text = "Resolve fiel&d references (slow)"; - this.mResolveReferences.UseVisualStyleBackColor = true; - // - // mExcludeExpired - // - this.mExcludeExpired.AutoSize = true; - this.mExcludeExpired.Location = new System.Drawing.Point(108, 20); - this.mExcludeExpired.Name = "mExcludeExpired"; - this.mExcludeExpired.Size = new System.Drawing.Size(135, 17); - this.mExcludeExpired.TabIndex = 1; - this.mExcludeExpired.Text = "Exclude &expired entries"; - this.mExcludeExpired.UseVisualStyleBackColor = true; - // - // mCaseSensitive - // - this.mCaseSensitive.AutoSize = true; - this.mCaseSensitive.Location = new System.Drawing.Point(10, 20); - this.mCaseSensitive.Name = "mCaseSensitive"; - this.mCaseSensitive.Size = new System.Drawing.Size(94, 17); - this.mCaseSensitive.TabIndex = 0; - this.mCaseSensitive.Text = "Case-sensiti&ve"; - this.mCaseSensitive.UseVisualStyleBackColor = true; - // - // searchInGroup - // - searchInGroup.Controls.Add(this.mSearchInTags); - searchInGroup.Controls.Add(this.mSearchInOtherFields); - searchInGroup.Controls.Add(this.mSearchInNotes); - searchInGroup.Controls.Add(this.mSearchInUrl); - searchInGroup.Controls.Add(this.mSearchInUserName); - searchInGroup.Controls.Add(this.mSearchInTitle); - searchInGroup.Location = new System.Drawing.Point(6, 136); - searchInGroup.Name = "searchInGroup"; - searchInGroup.Size = new System.Drawing.Size(540, 47); - searchInGroup.TabIndex = 1; - searchInGroup.TabStop = false; - searchInGroup.Text = "Search in"; - // - // mSearchInTags - // - this.mSearchInTags.AutoSize = true; - this.mSearchInTags.Location = new System.Drawing.Point(258, 19); - this.mSearchInTags.Name = "mSearchInTags"; - this.mSearchInTags.Size = new System.Drawing.Size(50, 17); - this.mSearchInTags.TabIndex = 4; - this.mSearchInTags.Text = "Ta&gs"; - this.mSearchInTags.UseVisualStyleBackColor = true; - // - // mSearchInOtherFields - // - this.mSearchInOtherFields.AutoSize = true; - this.mSearchInOtherFields.Location = new System.Drawing.Point(314, 19); - this.mSearchInOtherFields.Name = "mSearchInOtherFields"; - this.mSearchInOtherFields.Size = new System.Drawing.Size(139, 17); - this.mSearchInOtherFields.TabIndex = 5; - this.mSearchInOtherFields.Text = "&Other unprotected fields"; - this.mSearchInOtherFields.UseVisualStyleBackColor = true; - // - // mSearchInNotes - // - this.mSearchInNotes.AutoSize = true; - this.mSearchInNotes.Location = new System.Drawing.Point(198, 19); - this.mSearchInNotes.Name = "mSearchInNotes"; - this.mSearchInNotes.Size = new System.Drawing.Size(54, 17); - this.mSearchInNotes.TabIndex = 3; - this.mSearchInNotes.Text = "Note&s"; - this.mSearchInNotes.UseVisualStyleBackColor = true; - // - // mSearchInUrl - // - this.mSearchInUrl.AutoSize = true; - this.mSearchInUrl.Location = new System.Drawing.Point(144, 19); - this.mSearchInUrl.Name = "mSearchInUrl"; - this.mSearchInUrl.Size = new System.Drawing.Size(48, 17); - this.mSearchInUrl.TabIndex = 2; - this.mSearchInUrl.Text = "&URL"; - this.mSearchInUrl.UseVisualStyleBackColor = true; - // - // mSearchInUserName - // - this.mSearchInUserName.AutoSize = true; - this.mSearchInUserName.Location = new System.Drawing.Point(61, 19); - this.mSearchInUserName.Name = "mSearchInUserName"; - this.mSearchInUserName.Size = new System.Drawing.Size(77, 17); - this.mSearchInUserName.TabIndex = 1; - this.mSearchInUserName.Text = "User &name"; - this.mSearchInUserName.UseVisualStyleBackColor = true; - // - // mSearchInTitle - // - this.mSearchInTitle.AutoSize = true; - this.mSearchInTitle.Location = new System.Drawing.Point(9, 19); - this.mSearchInTitle.Name = "mSearchInTitle"; - this.mSearchInTitle.Size = new System.Drawing.Size(46, 17); - this.mSearchInTitle.TabIndex = 0; - this.mSearchInTitle.Text = "&Title"; - this.mSearchInTitle.UseVisualStyleBackColor = true; - // - // actionsGroup - // - actionsGroup.Controls.Add(this.mAlternativeAction); - actionsGroup.Controls.Add(this.mDefaultAction); - actionsGroup.Controls.Add(alternativeActionLabel); - actionsGroup.Controls.Add(defaultActionLabel); - actionsGroup.Location = new System.Drawing.Point(6, 241); - actionsGroup.Name = "actionsGroup"; - actionsGroup.Size = new System.Drawing.Size(540, 67); - actionsGroup.TabIndex = 3; - actionsGroup.TabStop = false; - actionsGroup.Text = "Actions"; - // - // mAlternativeAction - // - this.mAlternativeAction.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.mAlternativeAction.Location = new System.Drawing.Point(288, 37); - this.mAlternativeAction.Name = "mAlternativeAction"; - this.mAlternativeAction.Size = new System.Drawing.Size(240, 21); - this.mAlternativeAction.TabIndex = 3; - // - // mDefaultAction - // - this.mDefaultAction.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.mDefaultAction.Location = new System.Drawing.Point(11, 37); - this.mDefaultAction.Name = "mDefaultAction"; - this.mDefaultAction.Size = new System.Drawing.Size(240, 21); - this.mDefaultAction.TabIndex = 1; - // - // alternativeActionLabel - // - alternativeActionLabel.AutoSize = true; - alternativeActionLabel.Location = new System.Drawing.Point(285, 20); - alternativeActionLabel.Name = "alternativeActionLabel"; - alternativeActionLabel.Size = new System.Drawing.Size(159, 13); - alternativeActionLabel.TabIndex = 2; - alternativeActionLabel.Text = "A<ernative action (Shift + Enter):"; - // - // defaultActionLabel - // - defaultActionLabel.AutoSize = true; - defaultActionLabel.Location = new System.Drawing.Point(8, 20); - defaultActionLabel.Name = "defaultActionLabel"; - defaultActionLabel.Size = new System.Drawing.Size(110, 13); - defaultActionLabel.TabIndex = 0; - defaultActionLabel.Text = "De&fault action (Enter):"; - // - // mShowHotKeyControl - // - this.mShowHotKeyControl.Location = new System.Drawing.Point(30, 65); - this.mShowHotKeyControl.Name = "mShowHotKeyControl"; - this.mShowHotKeyControl.Size = new System.Drawing.Size(123, 20); - this.mShowHotKeyControl.TabIndex = 2; - // - // mShowSearchGroup - // - this.mShowSearchGroup.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + System.Windows.Forms.GroupBox searchInGroup; + System.Windows.Forms.GroupBox actionsGroup; + System.Windows.Forms.Label alternativeActionLabel; + System.Windows.Forms.Label defaultActionLabel; + System.Windows.Forms.GroupBox searchOptionsGroup; + this.mSearchInTags = new System.Windows.Forms.CheckBox(); + this.mSearchInOtherFields = new System.Windows.Forms.CheckBox(); + this.mSearchInNotes = new System.Windows.Forms.CheckBox(); + this.mSearchInUrl = new System.Windows.Forms.CheckBox(); + this.mSearchInUserName = new System.Windows.Forms.CheckBox(); + this.mSearchInTitle = new System.Windows.Forms.CheckBox(); + this.mAlternativeAction = new System.Windows.Forms.ComboBox(); + this.mDefaultAction = new System.Windows.Forms.ComboBox(); + this.mResolveReferences = new System.Windows.Forms.CheckBox(); + this.mExcludeExpired = new System.Windows.Forms.CheckBox(); + this.mCaseSensitive = new System.Windows.Forms.CheckBox(); + this.mPanel = new System.Windows.Forms.Panel(); + this.mShowSearchGroup = new System.Windows.Forms.GroupBox(); + this.mShowOnHotKey = new System.Windows.Forms.CheckBox(); + this.mShowHotKeyControl = new KeePass.UI.HotKeyControlEx(); + this.mShowOnIPC = new System.Windows.Forms.CheckBox(); + this.mShowOnFailedSearch = new System.Windows.Forms.CheckBox(); + this.mCustomSequences = new System.Windows.Forms.GroupBox(); + this.mAdditionalSequencesTitle = new System.Windows.Forms.Label(); + this.mAllowCustomSequences = new System.Windows.Forms.CheckBox(); + this.mAdditionalSequences = new System.Windows.Forms.ListBox(); + searchInGroup = new System.Windows.Forms.GroupBox(); + actionsGroup = new System.Windows.Forms.GroupBox(); + alternativeActionLabel = new System.Windows.Forms.Label(); + defaultActionLabel = new System.Windows.Forms.Label(); + searchOptionsGroup = new System.Windows.Forms.GroupBox(); + searchInGroup.SuspendLayout(); + actionsGroup.SuspendLayout(); + searchOptionsGroup.SuspendLayout(); + this.mPanel.SuspendLayout(); + this.mShowSearchGroup.SuspendLayout(); + this.mCustomSequences.SuspendLayout(); + this.SuspendLayout(); + // + // searchInGroup + // + searchInGroup.Controls.Add(this.mSearchInTags); + searchInGroup.Controls.Add(this.mSearchInOtherFields); + searchInGroup.Controls.Add(this.mSearchInNotes); + searchInGroup.Controls.Add(this.mSearchInUrl); + searchInGroup.Controls.Add(this.mSearchInUserName); + searchInGroup.Controls.Add(this.mSearchInTitle); + searchInGroup.Location = new System.Drawing.Point(4, 196); + searchInGroup.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + searchInGroup.Name = "searchInGroup"; + searchInGroup.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); + searchInGroup.Size = new System.Drawing.Size(764, 72); + searchInGroup.TabIndex = 1; + searchInGroup.TabStop = false; + searchInGroup.Text = "Search in"; + // + // mSearchInTags + // + this.mSearchInTags.AutoSize = true; + this.mSearchInTags.Location = new System.Drawing.Point(387, 29); + this.mSearchInTags.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInTags.Name = "mSearchInTags"; + this.mSearchInTags.Size = new System.Drawing.Size(70, 24); + this.mSearchInTags.TabIndex = 4; + this.mSearchInTags.Text = "Ta&gs"; + this.mSearchInTags.UseVisualStyleBackColor = true; + // + // mSearchInOtherFields + // + this.mSearchInOtherFields.AutoSize = true; + this.mSearchInOtherFields.Location = new System.Drawing.Point(471, 29); + this.mSearchInOtherFields.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInOtherFields.Name = "mSearchInOtherFields"; + this.mSearchInOtherFields.Size = new System.Drawing.Size(206, 24); + this.mSearchInOtherFields.TabIndex = 5; + this.mSearchInOtherFields.Text = "&Other unprotected fields"; + this.mSearchInOtherFields.UseVisualStyleBackColor = true; + // + // mSearchInNotes + // + this.mSearchInNotes.AutoSize = true; + this.mSearchInNotes.Location = new System.Drawing.Point(297, 29); + this.mSearchInNotes.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInNotes.Name = "mSearchInNotes"; + this.mSearchInNotes.Size = new System.Drawing.Size(77, 24); + this.mSearchInNotes.TabIndex = 3; + this.mSearchInNotes.Text = "Note&s"; + this.mSearchInNotes.UseVisualStyleBackColor = true; + // + // mSearchInUrl + // + this.mSearchInUrl.AutoSize = true; + this.mSearchInUrl.Location = new System.Drawing.Point(216, 29); + this.mSearchInUrl.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInUrl.Name = "mSearchInUrl"; + this.mSearchInUrl.Size = new System.Drawing.Size(68, 24); + this.mSearchInUrl.TabIndex = 2; + this.mSearchInUrl.Text = "&URL"; + this.mSearchInUrl.UseVisualStyleBackColor = true; + // + // mSearchInUserName + // + this.mSearchInUserName.AutoSize = true; + this.mSearchInUserName.Location = new System.Drawing.Point(92, 29); + this.mSearchInUserName.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInUserName.Name = "mSearchInUserName"; + this.mSearchInUserName.Size = new System.Drawing.Size(113, 24); + this.mSearchInUserName.TabIndex = 1; + this.mSearchInUserName.Text = "User &name"; + this.mSearchInUserName.UseVisualStyleBackColor = true; + // + // mSearchInTitle + // + this.mSearchInTitle.AutoSize = true; + this.mSearchInTitle.Location = new System.Drawing.Point(14, 29); + this.mSearchInTitle.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInTitle.Name = "mSearchInTitle"; + this.mSearchInTitle.Size = new System.Drawing.Size(64, 24); + this.mSearchInTitle.TabIndex = 0; + this.mSearchInTitle.Text = "&Title"; + this.mSearchInTitle.UseVisualStyleBackColor = true; + // + // actionsGroup + // + actionsGroup.Controls.Add(this.mAlternativeAction); + actionsGroup.Controls.Add(this.mDefaultAction); + actionsGroup.Controls.Add(alternativeActionLabel); + actionsGroup.Controls.Add(defaultActionLabel); + actionsGroup.Location = new System.Drawing.Point(4, 357); + actionsGroup.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + actionsGroup.Name = "actionsGroup"; + actionsGroup.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); + actionsGroup.Size = new System.Drawing.Size(764, 103); + actionsGroup.TabIndex = 3; + actionsGroup.TabStop = false; + actionsGroup.Text = "Actions"; + // + // mAlternativeAction + // + this.mAlternativeAction.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.mAlternativeAction.Location = new System.Drawing.Point(392, 57); + this.mAlternativeAction.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mAlternativeAction.Name = "mAlternativeAction"; + this.mAlternativeAction.Size = new System.Drawing.Size(358, 28); + this.mAlternativeAction.TabIndex = 3; + // + // mDefaultAction + // + this.mDefaultAction.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.mDefaultAction.Location = new System.Drawing.Point(16, 57); + this.mDefaultAction.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mDefaultAction.Name = "mDefaultAction"; + this.mDefaultAction.Size = new System.Drawing.Size(358, 28); + this.mDefaultAction.TabIndex = 1; + // + // alternativeActionLabel + // + alternativeActionLabel.AutoSize = true; + alternativeActionLabel.Location = new System.Drawing.Point(388, 31); + alternativeActionLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + alternativeActionLabel.Name = "alternativeActionLabel"; + alternativeActionLabel.Size = new System.Drawing.Size(238, 20); + alternativeActionLabel.TabIndex = 2; + alternativeActionLabel.Text = "A<ernative action (Shift + Enter):"; + // + // defaultActionLabel + // + defaultActionLabel.AutoSize = true; + defaultActionLabel.Location = new System.Drawing.Point(12, 31); + defaultActionLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + defaultActionLabel.Name = "defaultActionLabel"; + defaultActionLabel.Size = new System.Drawing.Size(165, 20); + defaultActionLabel.TabIndex = 0; + defaultActionLabel.Text = "De&fault action (Enter):"; + // + // searchOptionsGroup + // + searchOptionsGroup.Controls.Add(this.mResolveReferences); + searchOptionsGroup.Controls.Add(this.mExcludeExpired); + searchOptionsGroup.Controls.Add(this.mCaseSensitive); + searchOptionsGroup.Location = new System.Drawing.Point(4, 278); + searchOptionsGroup.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + searchOptionsGroup.Name = "searchOptionsGroup"; + searchOptionsGroup.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); + searchOptionsGroup.Size = new System.Drawing.Size(764, 69); + searchOptionsGroup.TabIndex = 2; + searchOptionsGroup.TabStop = false; + searchOptionsGroup.Text = "Search options"; + // + // mResolveReferences + // + this.mResolveReferences.AutoSize = true; + this.mResolveReferences.Location = new System.Drawing.Point(376, 31); + this.mResolveReferences.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mResolveReferences.Name = "mResolveReferences"; + this.mResolveReferences.Size = new System.Drawing.Size(250, 24); + this.mResolveReferences.TabIndex = 2; + this.mResolveReferences.Text = "Resolve fiel&d references (slow)"; + this.mResolveReferences.UseVisualStyleBackColor = true; + // + // mExcludeExpired + // + this.mExcludeExpired.AutoSize = true; + this.mExcludeExpired.Location = new System.Drawing.Point(162, 31); + this.mExcludeExpired.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mExcludeExpired.Name = "mExcludeExpired"; + this.mExcludeExpired.Size = new System.Drawing.Size(198, 24); + this.mExcludeExpired.TabIndex = 1; + this.mExcludeExpired.Text = "Exclude &expired entries"; + this.mExcludeExpired.UseVisualStyleBackColor = true; + // + // mCaseSensitive + // + this.mCaseSensitive.AutoSize = true; + this.mCaseSensitive.Location = new System.Drawing.Point(15, 31); + this.mCaseSensitive.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mCaseSensitive.Name = "mCaseSensitive"; + this.mCaseSensitive.Size = new System.Drawing.Size(138, 24); + this.mCaseSensitive.TabIndex = 0; + this.mCaseSensitive.Text = "Case-sensiti&ve"; + this.mCaseSensitive.UseVisualStyleBackColor = true; + // + // mPanel + // + this.mPanel.AutoScroll = true; + this.mPanel.Controls.Add(this.mShowSearchGroup); + this.mPanel.Controls.Add(this.mCustomSequences); + this.mPanel.Controls.Add(searchOptionsGroup); + this.mPanel.Controls.Add(actionsGroup); + this.mPanel.Controls.Add(searchInGroup); + this.mPanel.Location = new System.Drawing.Point(9, 18); + this.mPanel.Name = "mPanel"; + this.mPanel.Size = new System.Drawing.Size(808, 463); + this.mPanel.TabIndex = 5; + // + // mShowSearchGroup + // + this.mShowSearchGroup.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.mShowSearchGroup.Controls.Add(this.mShowOnHotKey); - this.mShowSearchGroup.Controls.Add(this.mShowHotKeyControl); - this.mShowSearchGroup.Controls.Add(this.mShowOnIPC); - this.mShowSearchGroup.Controls.Add(this.mShowOnFailedSearch); - this.mShowSearchGroup.Location = new System.Drawing.Point(6, 12); - this.mShowSearchGroup.Name = "mShowSearchGroup"; - this.mShowSearchGroup.Size = new System.Drawing.Size(540, 118); - this.mShowSearchGroup.TabIndex = 0; - this.mShowSearchGroup.TabStop = false; - this.mShowSearchGroup.Text = "Show search window"; - // - // mShowOnHotKey - // - this.mShowOnHotKey.AutoSize = true; - this.mShowOnHotKey.Location = new System.Drawing.Point(10, 44); - this.mShowOnHotKey.Name = "mShowOnHotKey"; - this.mShowOnHotKey.Size = new System.Drawing.Size(233, 17); - this.mShowOnHotKey.TabIndex = 1; - this.mShowOnHotKey.Text = "Show when system-wide &hot key is pressed:"; - this.mShowOnHotKey.UseVisualStyleBackColor = true; - this.mShowOnHotKey.CheckedChanged += new System.EventHandler(this.mShowOnHotKey_CheckedChanged); - // - // mShowOnIPC - // - this.mShowOnIPC.AutoSize = true; - this.mShowOnIPC.Location = new System.Drawing.Point(10, 93); - this.mShowOnIPC.Name = "mShowOnIPC"; - this.mShowOnIPC.Size = new System.Drawing.Size(386, 17); - this.mShowOnIPC.TabIndex = 3; - this.mShowOnIPC.Text = "Show when \"/e1:AutoTypeSearch\" is passed as a ¶meter to KeePass.exe"; - this.mShowOnIPC.UseVisualStyleBackColor = true; - // - // mShowOnFailedSearch - // - this.mShowOnFailedSearch.AutoSize = true; - this.mShowOnFailedSearch.Location = new System.Drawing.Point(10, 21); - this.mShowOnFailedSearch.Name = "mShowOnFailedSearch"; - this.mShowOnFailedSearch.Size = new System.Drawing.Size(275, 17); - this.mShowOnFailedSearch.TabIndex = 0; - this.mShowOnFailedSearch.Text = "Show &automatically if global auto-type finds no match"; - this.mShowOnFailedSearch.UseVisualStyleBackColor = true; - // - // Options - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(actionsGroup); - this.Controls.Add(searchInGroup); - this.Controls.Add(searchOptionsGroup); - this.Controls.Add(this.mShowSearchGroup); - this.Name = "Options"; - this.Size = new System.Drawing.Size(551, 311); - searchOptionsGroup.ResumeLayout(false); - searchOptionsGroup.PerformLayout(); - searchInGroup.ResumeLayout(false); - searchInGroup.PerformLayout(); - actionsGroup.ResumeLayout(false); - actionsGroup.PerformLayout(); - this.mShowSearchGroup.ResumeLayout(false); - this.mShowSearchGroup.PerformLayout(); - this.ResumeLayout(false); + this.mShowSearchGroup.Controls.Add(this.mShowOnHotKey); + this.mShowSearchGroup.Controls.Add(this.mShowHotKeyControl); + this.mShowSearchGroup.Controls.Add(this.mShowOnIPC); + this.mShowSearchGroup.Controls.Add(this.mShowOnFailedSearch); + this.mShowSearchGroup.Location = new System.Drawing.Point(4, 5); + this.mShowSearchGroup.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowSearchGroup.Name = "mShowSearchGroup"; + this.mShowSearchGroup.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowSearchGroup.Size = new System.Drawing.Size(549, 182); + this.mShowSearchGroup.TabIndex = 0; + this.mShowSearchGroup.TabStop = false; + this.mShowSearchGroup.Text = "Show search window"; + // + // mShowOnHotKey + // + this.mShowOnHotKey.AutoSize = true; + this.mShowOnHotKey.Location = new System.Drawing.Point(15, 68); + this.mShowOnHotKey.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowOnHotKey.Name = "mShowOnHotKey"; + this.mShowOnHotKey.Size = new System.Drawing.Size(343, 24); + this.mShowOnHotKey.TabIndex = 1; + this.mShowOnHotKey.Text = "Show when system-wide &hot key is pressed:"; + this.mShowOnHotKey.UseVisualStyleBackColor = true; + this.mShowOnHotKey.CheckedChanged += new System.EventHandler(this.mShowOnHotKey_CheckedChanged); + // + // mShowHotKeyControl + // + this.mShowHotKeyControl.Location = new System.Drawing.Point(45, 100); + this.mShowHotKeyControl.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowHotKeyControl.Name = "mShowHotKeyControl"; + this.mShowHotKeyControl.Size = new System.Drawing.Size(182, 26); + this.mShowHotKeyControl.TabIndex = 2; + // + // mShowOnIPC + // + this.mShowOnIPC.AutoSize = true; + this.mShowOnIPC.Location = new System.Drawing.Point(15, 143); + this.mShowOnIPC.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowOnIPC.Name = "mShowOnIPC"; + this.mShowOnIPC.Size = new System.Drawing.Size(574, 24); + this.mShowOnIPC.TabIndex = 3; + this.mShowOnIPC.Text = "Show when \"/e1:AutoTypeSearch\" is passed as a ¶meter to KeePass.exe"; + this.mShowOnIPC.UseVisualStyleBackColor = true; + // + // mShowOnFailedSearch + // + this.mShowOnFailedSearch.AutoSize = true; + this.mShowOnFailedSearch.Location = new System.Drawing.Point(15, 32); + this.mShowOnFailedSearch.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowOnFailedSearch.Name = "mShowOnFailedSearch"; + this.mShowOnFailedSearch.Size = new System.Drawing.Size(408, 24); + this.mShowOnFailedSearch.TabIndex = 0; + this.mShowOnFailedSearch.Text = "Show &automatically if global auto-type finds no match"; + this.mShowOnFailedSearch.UseVisualStyleBackColor = true; + // + // mCustomSequences + // + this.mCustomSequences.Controls.Add(this.mAdditionalSequences); + this.mCustomSequences.Controls.Add(this.mAdditionalSequencesTitle); + this.mCustomSequences.Controls.Add(this.mAllowCustomSequences); + this.mCustomSequences.Location = new System.Drawing.Point(4, 468); + this.mCustomSequences.Name = "mCustomSequences"; + this.mCustomSequences.Size = new System.Drawing.Size(764, 206); + this.mCustomSequences.TabIndex = 4; + this.mCustomSequences.TabStop = false; + this.mCustomSequences.Text = "Custom Sequences"; + // + // mAdditionalSequencesTitle + // + this.mAdditionalSequencesTitle.AutoSize = true; + this.mAdditionalSequencesTitle.Location = new System.Drawing.Point(6, 61); + this.mAdditionalSequencesTitle.Name = "mAdditionalSequencesTitle"; + this.mAdditionalSequencesTitle.Size = new System.Drawing.Size(221, 20); + this.mAdditionalSequencesTitle.TabIndex = 8; + this.mAdditionalSequencesTitle.Text = "Add&itional custom sequences:"; + // + // mAllowCustomSequences + // + this.mAllowCustomSequences.AutoSize = true; + this.mAllowCustomSequences.Location = new System.Drawing.Point(7, 27); + this.mAllowCustomSequences.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mAllowCustomSequences.Name = "mAllowCustomSequences"; + this.mAllowCustomSequences.Size = new System.Drawing.Size(281, 24); + this.mAllowCustomSequences.TabIndex = 6; + this.mAllowCustomSequences.Text = "Allow &custom auto-type sequences"; + this.mAllowCustomSequences.UseVisualStyleBackColor = true; + // + // mAdditionalSequences + // + this.mAdditionalSequences.FormattingEnabled = true; + this.mAdditionalSequences.ItemHeight = 20; + this.mAdditionalSequences.Location = new System.Drawing.Point(7, 85); + this.mAdditionalSequences.Name = "mAdditionalSequences"; + this.mAdditionalSequences.Size = new System.Drawing.Size(743, 104); + this.mAdditionalSequences.TabIndex = 9; + // + // Options + // + this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.mPanel); + this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.Name = "Options"; + this.Size = new System.Drawing.Size(834, 499); + this.Paint += new System.Windows.Forms.PaintEventHandler(this.Options_Paint); + searchInGroup.ResumeLayout(false); + searchInGroup.PerformLayout(); + actionsGroup.ResumeLayout(false); + actionsGroup.PerformLayout(); + searchOptionsGroup.ResumeLayout(false); + searchOptionsGroup.PerformLayout(); + this.mPanel.ResumeLayout(false); + this.mShowSearchGroup.ResumeLayout(false); + this.mShowSearchGroup.PerformLayout(); + this.mCustomSequences.ResumeLayout(false); + this.mCustomSequences.PerformLayout(); + this.ResumeLayout(false); } #endregion - private KeePass.UI.HotKeyControlEx mShowHotKeyControl; + private System.Windows.Forms.Panel mPanel; + private System.Windows.Forms.GroupBox mShowSearchGroup; private System.Windows.Forms.CheckBox mShowOnHotKey; + private HotKeyControlEx mShowHotKeyControl; private System.Windows.Forms.CheckBox mShowOnIPC; private System.Windows.Forms.CheckBox mShowOnFailedSearch; + private System.Windows.Forms.GroupBox mCustomSequences; + private System.Windows.Forms.Label mAdditionalSequencesTitle; + private System.Windows.Forms.CheckBox mAllowCustomSequences; + private System.Windows.Forms.CheckBox mResolveReferences; + private System.Windows.Forms.CheckBox mExcludeExpired; private System.Windows.Forms.CheckBox mCaseSensitive; + private System.Windows.Forms.ComboBox mAlternativeAction; + private System.Windows.Forms.ComboBox mDefaultAction; private System.Windows.Forms.CheckBox mSearchInTags; private System.Windows.Forms.CheckBox mSearchInOtherFields; private System.Windows.Forms.CheckBox mSearchInNotes; private System.Windows.Forms.CheckBox mSearchInUrl; private System.Windows.Forms.CheckBox mSearchInUserName; private System.Windows.Forms.CheckBox mSearchInTitle; - private System.Windows.Forms.CheckBox mResolveReferences; - private System.Windows.Forms.CheckBox mExcludeExpired; - private System.Windows.Forms.ComboBox mAlternativeAction; - private System.Windows.Forms.ComboBox mDefaultAction; - private System.Windows.Forms.GroupBox mShowSearchGroup; - + private System.Windows.Forms.ListBox mAdditionalSequences; } } diff --git a/AutoTypeSearch/AutoTypeSearch.csproj b/AutoTypeSearch/AutoTypeSearch.csproj index 6145b08..c201baf 100755 --- a/AutoTypeSearch/AutoTypeSearch.csproj +++ b/AutoTypeSearch/AutoTypeSearch.csproj @@ -1,4 +1,4 @@ - + diff --git a/AutoTypeSearch/Options.Designer.cs b/AutoTypeSearch/Options.Designer.cs index 4886b6d..95c6992 100755 --- a/AutoTypeSearch/Options.Designer.cs +++ b/AutoTypeSearch/Options.Designer.cs @@ -30,295 +30,387 @@ /// private void InitializeComponent() { - System.Windows.Forms.GroupBox searchOptionsGroup; - System.Windows.Forms.GroupBox searchInGroup; - System.Windows.Forms.GroupBox actionsGroup; - System.Windows.Forms.Label alternativeActionLabel; - System.Windows.Forms.Label defaultActionLabel; - this.mResolveReferences = new System.Windows.Forms.CheckBox(); - this.mExcludeExpired = new System.Windows.Forms.CheckBox(); - this.mCaseSensitive = new System.Windows.Forms.CheckBox(); - this.mSearchInTags = new System.Windows.Forms.CheckBox(); - this.mSearchInOtherFields = new System.Windows.Forms.CheckBox(); - this.mSearchInNotes = new System.Windows.Forms.CheckBox(); - this.mSearchInUrl = new System.Windows.Forms.CheckBox(); - this.mSearchInUserName = new System.Windows.Forms.CheckBox(); - this.mSearchInTitle = new System.Windows.Forms.CheckBox(); - this.mAlternativeAction = new System.Windows.Forms.ComboBox(); - this.mDefaultAction = new System.Windows.Forms.ComboBox(); - this.mShowHotKeyControl = new KeePass.UI.HotKeyControlEx(); - this.mShowSearchGroup = new System.Windows.Forms.GroupBox(); - this.mShowOnHotKey = new System.Windows.Forms.CheckBox(); - this.mShowOnIPC = new System.Windows.Forms.CheckBox(); - this.mShowOnFailedSearch = new System.Windows.Forms.CheckBox(); - searchOptionsGroup = new System.Windows.Forms.GroupBox(); - searchInGroup = new System.Windows.Forms.GroupBox(); - actionsGroup = new System.Windows.Forms.GroupBox(); - alternativeActionLabel = new System.Windows.Forms.Label(); - defaultActionLabel = new System.Windows.Forms.Label(); - searchOptionsGroup.SuspendLayout(); - searchInGroup.SuspendLayout(); - actionsGroup.SuspendLayout(); - this.mShowSearchGroup.SuspendLayout(); - this.SuspendLayout(); - // - // searchOptionsGroup - // - searchOptionsGroup.Controls.Add(this.mResolveReferences); - searchOptionsGroup.Controls.Add(this.mExcludeExpired); - searchOptionsGroup.Controls.Add(this.mCaseSensitive); - searchOptionsGroup.Location = new System.Drawing.Point(6, 189); - searchOptionsGroup.Name = "searchOptionsGroup"; - searchOptionsGroup.Size = new System.Drawing.Size(540, 45); - searchOptionsGroup.TabIndex = 2; - searchOptionsGroup.TabStop = false; - searchOptionsGroup.Text = "Search options"; - // - // mResolveReferences - // - this.mResolveReferences.AutoSize = true; - this.mResolveReferences.Location = new System.Drawing.Point(251, 20); - this.mResolveReferences.Name = "mResolveReferences"; - this.mResolveReferences.Size = new System.Drawing.Size(170, 17); - this.mResolveReferences.TabIndex = 2; - this.mResolveReferences.Text = "Resolve fiel&d references (slow)"; - this.mResolveReferences.UseVisualStyleBackColor = true; - // - // mExcludeExpired - // - this.mExcludeExpired.AutoSize = true; - this.mExcludeExpired.Location = new System.Drawing.Point(108, 20); - this.mExcludeExpired.Name = "mExcludeExpired"; - this.mExcludeExpired.Size = new System.Drawing.Size(135, 17); - this.mExcludeExpired.TabIndex = 1; - this.mExcludeExpired.Text = "Exclude &expired entries"; - this.mExcludeExpired.UseVisualStyleBackColor = true; - // - // mCaseSensitive - // - this.mCaseSensitive.AutoSize = true; - this.mCaseSensitive.Location = new System.Drawing.Point(10, 20); - this.mCaseSensitive.Name = "mCaseSensitive"; - this.mCaseSensitive.Size = new System.Drawing.Size(94, 17); - this.mCaseSensitive.TabIndex = 0; - this.mCaseSensitive.Text = "Case-sensiti&ve"; - this.mCaseSensitive.UseVisualStyleBackColor = true; - // - // searchInGroup - // - searchInGroup.Controls.Add(this.mSearchInTags); - searchInGroup.Controls.Add(this.mSearchInOtherFields); - searchInGroup.Controls.Add(this.mSearchInNotes); - searchInGroup.Controls.Add(this.mSearchInUrl); - searchInGroup.Controls.Add(this.mSearchInUserName); - searchInGroup.Controls.Add(this.mSearchInTitle); - searchInGroup.Location = new System.Drawing.Point(6, 136); - searchInGroup.Name = "searchInGroup"; - searchInGroup.Size = new System.Drawing.Size(540, 47); - searchInGroup.TabIndex = 1; - searchInGroup.TabStop = false; - searchInGroup.Text = "Search in"; - // - // mSearchInTags - // - this.mSearchInTags.AutoSize = true; - this.mSearchInTags.Location = new System.Drawing.Point(258, 19); - this.mSearchInTags.Name = "mSearchInTags"; - this.mSearchInTags.Size = new System.Drawing.Size(50, 17); - this.mSearchInTags.TabIndex = 4; - this.mSearchInTags.Text = "Ta&gs"; - this.mSearchInTags.UseVisualStyleBackColor = true; - // - // mSearchInOtherFields - // - this.mSearchInOtherFields.AutoSize = true; - this.mSearchInOtherFields.Location = new System.Drawing.Point(314, 19); - this.mSearchInOtherFields.Name = "mSearchInOtherFields"; - this.mSearchInOtherFields.Size = new System.Drawing.Size(139, 17); - this.mSearchInOtherFields.TabIndex = 5; - this.mSearchInOtherFields.Text = "&Other unprotected fields"; - this.mSearchInOtherFields.UseVisualStyleBackColor = true; - // - // mSearchInNotes - // - this.mSearchInNotes.AutoSize = true; - this.mSearchInNotes.Location = new System.Drawing.Point(198, 19); - this.mSearchInNotes.Name = "mSearchInNotes"; - this.mSearchInNotes.Size = new System.Drawing.Size(54, 17); - this.mSearchInNotes.TabIndex = 3; - this.mSearchInNotes.Text = "Note&s"; - this.mSearchInNotes.UseVisualStyleBackColor = true; - // - // mSearchInUrl - // - this.mSearchInUrl.AutoSize = true; - this.mSearchInUrl.Location = new System.Drawing.Point(144, 19); - this.mSearchInUrl.Name = "mSearchInUrl"; - this.mSearchInUrl.Size = new System.Drawing.Size(48, 17); - this.mSearchInUrl.TabIndex = 2; - this.mSearchInUrl.Text = "&URL"; - this.mSearchInUrl.UseVisualStyleBackColor = true; - // - // mSearchInUserName - // - this.mSearchInUserName.AutoSize = true; - this.mSearchInUserName.Location = new System.Drawing.Point(61, 19); - this.mSearchInUserName.Name = "mSearchInUserName"; - this.mSearchInUserName.Size = new System.Drawing.Size(77, 17); - this.mSearchInUserName.TabIndex = 1; - this.mSearchInUserName.Text = "User &name"; - this.mSearchInUserName.UseVisualStyleBackColor = true; - // - // mSearchInTitle - // - this.mSearchInTitle.AutoSize = true; - this.mSearchInTitle.Location = new System.Drawing.Point(9, 19); - this.mSearchInTitle.Name = "mSearchInTitle"; - this.mSearchInTitle.Size = new System.Drawing.Size(46, 17); - this.mSearchInTitle.TabIndex = 0; - this.mSearchInTitle.Text = "&Title"; - this.mSearchInTitle.UseVisualStyleBackColor = true; - // - // actionsGroup - // - actionsGroup.Controls.Add(this.mAlternativeAction); - actionsGroup.Controls.Add(this.mDefaultAction); - actionsGroup.Controls.Add(alternativeActionLabel); - actionsGroup.Controls.Add(defaultActionLabel); - actionsGroup.Location = new System.Drawing.Point(6, 241); - actionsGroup.Name = "actionsGroup"; - actionsGroup.Size = new System.Drawing.Size(540, 67); - actionsGroup.TabIndex = 3; - actionsGroup.TabStop = false; - actionsGroup.Text = "Actions"; - // - // mAlternativeAction - // - this.mAlternativeAction.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.mAlternativeAction.Location = new System.Drawing.Point(288, 37); - this.mAlternativeAction.Name = "mAlternativeAction"; - this.mAlternativeAction.Size = new System.Drawing.Size(240, 21); - this.mAlternativeAction.TabIndex = 3; - // - // mDefaultAction - // - this.mDefaultAction.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.mDefaultAction.Location = new System.Drawing.Point(11, 37); - this.mDefaultAction.Name = "mDefaultAction"; - this.mDefaultAction.Size = new System.Drawing.Size(240, 21); - this.mDefaultAction.TabIndex = 1; - // - // alternativeActionLabel - // - alternativeActionLabel.AutoSize = true; - alternativeActionLabel.Location = new System.Drawing.Point(285, 20); - alternativeActionLabel.Name = "alternativeActionLabel"; - alternativeActionLabel.Size = new System.Drawing.Size(159, 13); - alternativeActionLabel.TabIndex = 2; - alternativeActionLabel.Text = "A<ernative action (Shift + Enter):"; - // - // defaultActionLabel - // - defaultActionLabel.AutoSize = true; - defaultActionLabel.Location = new System.Drawing.Point(8, 20); - defaultActionLabel.Name = "defaultActionLabel"; - defaultActionLabel.Size = new System.Drawing.Size(110, 13); - defaultActionLabel.TabIndex = 0; - defaultActionLabel.Text = "De&fault action (Enter):"; - // - // mShowHotKeyControl - // - this.mShowHotKeyControl.Location = new System.Drawing.Point(30, 65); - this.mShowHotKeyControl.Name = "mShowHotKeyControl"; - this.mShowHotKeyControl.Size = new System.Drawing.Size(123, 20); - this.mShowHotKeyControl.TabIndex = 2; - // - // mShowSearchGroup - // - this.mShowSearchGroup.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + System.Windows.Forms.GroupBox searchInGroup; + System.Windows.Forms.GroupBox actionsGroup; + System.Windows.Forms.Label alternativeActionLabel; + System.Windows.Forms.Label defaultActionLabel; + System.Windows.Forms.GroupBox searchOptionsGroup; + this.mSearchInTags = new System.Windows.Forms.CheckBox(); + this.mSearchInOtherFields = new System.Windows.Forms.CheckBox(); + this.mSearchInNotes = new System.Windows.Forms.CheckBox(); + this.mSearchInUrl = new System.Windows.Forms.CheckBox(); + this.mSearchInUserName = new System.Windows.Forms.CheckBox(); + this.mSearchInTitle = new System.Windows.Forms.CheckBox(); + this.mAlternativeAction = new System.Windows.Forms.ComboBox(); + this.mDefaultAction = new System.Windows.Forms.ComboBox(); + this.mResolveReferences = new System.Windows.Forms.CheckBox(); + this.mExcludeExpired = new System.Windows.Forms.CheckBox(); + this.mCaseSensitive = new System.Windows.Forms.CheckBox(); + this.mPanel = new System.Windows.Forms.Panel(); + this.mShowSearchGroup = new System.Windows.Forms.GroupBox(); + this.mShowOnHotKey = new System.Windows.Forms.CheckBox(); + this.mShowHotKeyControl = new KeePass.UI.HotKeyControlEx(); + this.mShowOnIPC = new System.Windows.Forms.CheckBox(); + this.mShowOnFailedSearch = new System.Windows.Forms.CheckBox(); + this.mCustomSequences = new System.Windows.Forms.GroupBox(); + this.mAdditionalSequencesTitle = new System.Windows.Forms.Label(); + this.mAllowCustomSequences = new System.Windows.Forms.CheckBox(); + this.mAdditionalSequences = new System.Windows.Forms.ListBox(); + searchInGroup = new System.Windows.Forms.GroupBox(); + actionsGroup = new System.Windows.Forms.GroupBox(); + alternativeActionLabel = new System.Windows.Forms.Label(); + defaultActionLabel = new System.Windows.Forms.Label(); + searchOptionsGroup = new System.Windows.Forms.GroupBox(); + searchInGroup.SuspendLayout(); + actionsGroup.SuspendLayout(); + searchOptionsGroup.SuspendLayout(); + this.mPanel.SuspendLayout(); + this.mShowSearchGroup.SuspendLayout(); + this.mCustomSequences.SuspendLayout(); + this.SuspendLayout(); + // + // searchInGroup + // + searchInGroup.Controls.Add(this.mSearchInTags); + searchInGroup.Controls.Add(this.mSearchInOtherFields); + searchInGroup.Controls.Add(this.mSearchInNotes); + searchInGroup.Controls.Add(this.mSearchInUrl); + searchInGroup.Controls.Add(this.mSearchInUserName); + searchInGroup.Controls.Add(this.mSearchInTitle); + searchInGroup.Location = new System.Drawing.Point(4, 196); + searchInGroup.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + searchInGroup.Name = "searchInGroup"; + searchInGroup.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); + searchInGroup.Size = new System.Drawing.Size(764, 72); + searchInGroup.TabIndex = 1; + searchInGroup.TabStop = false; + searchInGroup.Text = "Search in"; + // + // mSearchInTags + // + this.mSearchInTags.AutoSize = true; + this.mSearchInTags.Location = new System.Drawing.Point(387, 29); + this.mSearchInTags.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInTags.Name = "mSearchInTags"; + this.mSearchInTags.Size = new System.Drawing.Size(70, 24); + this.mSearchInTags.TabIndex = 4; + this.mSearchInTags.Text = "Ta&gs"; + this.mSearchInTags.UseVisualStyleBackColor = true; + // + // mSearchInOtherFields + // + this.mSearchInOtherFields.AutoSize = true; + this.mSearchInOtherFields.Location = new System.Drawing.Point(471, 29); + this.mSearchInOtherFields.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInOtherFields.Name = "mSearchInOtherFields"; + this.mSearchInOtherFields.Size = new System.Drawing.Size(206, 24); + this.mSearchInOtherFields.TabIndex = 5; + this.mSearchInOtherFields.Text = "&Other unprotected fields"; + this.mSearchInOtherFields.UseVisualStyleBackColor = true; + // + // mSearchInNotes + // + this.mSearchInNotes.AutoSize = true; + this.mSearchInNotes.Location = new System.Drawing.Point(297, 29); + this.mSearchInNotes.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInNotes.Name = "mSearchInNotes"; + this.mSearchInNotes.Size = new System.Drawing.Size(77, 24); + this.mSearchInNotes.TabIndex = 3; + this.mSearchInNotes.Text = "Note&s"; + this.mSearchInNotes.UseVisualStyleBackColor = true; + // + // mSearchInUrl + // + this.mSearchInUrl.AutoSize = true; + this.mSearchInUrl.Location = new System.Drawing.Point(216, 29); + this.mSearchInUrl.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInUrl.Name = "mSearchInUrl"; + this.mSearchInUrl.Size = new System.Drawing.Size(68, 24); + this.mSearchInUrl.TabIndex = 2; + this.mSearchInUrl.Text = "&URL"; + this.mSearchInUrl.UseVisualStyleBackColor = true; + // + // mSearchInUserName + // + this.mSearchInUserName.AutoSize = true; + this.mSearchInUserName.Location = new System.Drawing.Point(92, 29); + this.mSearchInUserName.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInUserName.Name = "mSearchInUserName"; + this.mSearchInUserName.Size = new System.Drawing.Size(113, 24); + this.mSearchInUserName.TabIndex = 1; + this.mSearchInUserName.Text = "User &name"; + this.mSearchInUserName.UseVisualStyleBackColor = true; + // + // mSearchInTitle + // + this.mSearchInTitle.AutoSize = true; + this.mSearchInTitle.Location = new System.Drawing.Point(14, 29); + this.mSearchInTitle.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInTitle.Name = "mSearchInTitle"; + this.mSearchInTitle.Size = new System.Drawing.Size(64, 24); + this.mSearchInTitle.TabIndex = 0; + this.mSearchInTitle.Text = "&Title"; + this.mSearchInTitle.UseVisualStyleBackColor = true; + // + // actionsGroup + // + actionsGroup.Controls.Add(this.mAlternativeAction); + actionsGroup.Controls.Add(this.mDefaultAction); + actionsGroup.Controls.Add(alternativeActionLabel); + actionsGroup.Controls.Add(defaultActionLabel); + actionsGroup.Location = new System.Drawing.Point(4, 357); + actionsGroup.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + actionsGroup.Name = "actionsGroup"; + actionsGroup.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); + actionsGroup.Size = new System.Drawing.Size(764, 103); + actionsGroup.TabIndex = 3; + actionsGroup.TabStop = false; + actionsGroup.Text = "Actions"; + // + // mAlternativeAction + // + this.mAlternativeAction.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.mAlternativeAction.Location = new System.Drawing.Point(392, 57); + this.mAlternativeAction.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mAlternativeAction.Name = "mAlternativeAction"; + this.mAlternativeAction.Size = new System.Drawing.Size(358, 28); + this.mAlternativeAction.TabIndex = 3; + // + // mDefaultAction + // + this.mDefaultAction.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.mDefaultAction.Location = new System.Drawing.Point(16, 57); + this.mDefaultAction.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mDefaultAction.Name = "mDefaultAction"; + this.mDefaultAction.Size = new System.Drawing.Size(358, 28); + this.mDefaultAction.TabIndex = 1; + // + // alternativeActionLabel + // + alternativeActionLabel.AutoSize = true; + alternativeActionLabel.Location = new System.Drawing.Point(388, 31); + alternativeActionLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + alternativeActionLabel.Name = "alternativeActionLabel"; + alternativeActionLabel.Size = new System.Drawing.Size(238, 20); + alternativeActionLabel.TabIndex = 2; + alternativeActionLabel.Text = "A<ernative action (Shift + Enter):"; + // + // defaultActionLabel + // + defaultActionLabel.AutoSize = true; + defaultActionLabel.Location = new System.Drawing.Point(12, 31); + defaultActionLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + defaultActionLabel.Name = "defaultActionLabel"; + defaultActionLabel.Size = new System.Drawing.Size(165, 20); + defaultActionLabel.TabIndex = 0; + defaultActionLabel.Text = "De&fault action (Enter):"; + // + // searchOptionsGroup + // + searchOptionsGroup.Controls.Add(this.mResolveReferences); + searchOptionsGroup.Controls.Add(this.mExcludeExpired); + searchOptionsGroup.Controls.Add(this.mCaseSensitive); + searchOptionsGroup.Location = new System.Drawing.Point(4, 278); + searchOptionsGroup.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + searchOptionsGroup.Name = "searchOptionsGroup"; + searchOptionsGroup.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); + searchOptionsGroup.Size = new System.Drawing.Size(764, 69); + searchOptionsGroup.TabIndex = 2; + searchOptionsGroup.TabStop = false; + searchOptionsGroup.Text = "Search options"; + // + // mResolveReferences + // + this.mResolveReferences.AutoSize = true; + this.mResolveReferences.Location = new System.Drawing.Point(376, 31); + this.mResolveReferences.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mResolveReferences.Name = "mResolveReferences"; + this.mResolveReferences.Size = new System.Drawing.Size(250, 24); + this.mResolveReferences.TabIndex = 2; + this.mResolveReferences.Text = "Resolve fiel&d references (slow)"; + this.mResolveReferences.UseVisualStyleBackColor = true; + // + // mExcludeExpired + // + this.mExcludeExpired.AutoSize = true; + this.mExcludeExpired.Location = new System.Drawing.Point(162, 31); + this.mExcludeExpired.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mExcludeExpired.Name = "mExcludeExpired"; + this.mExcludeExpired.Size = new System.Drawing.Size(198, 24); + this.mExcludeExpired.TabIndex = 1; + this.mExcludeExpired.Text = "Exclude &expired entries"; + this.mExcludeExpired.UseVisualStyleBackColor = true; + // + // mCaseSensitive + // + this.mCaseSensitive.AutoSize = true; + this.mCaseSensitive.Location = new System.Drawing.Point(15, 31); + this.mCaseSensitive.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mCaseSensitive.Name = "mCaseSensitive"; + this.mCaseSensitive.Size = new System.Drawing.Size(138, 24); + this.mCaseSensitive.TabIndex = 0; + this.mCaseSensitive.Text = "Case-sensiti&ve"; + this.mCaseSensitive.UseVisualStyleBackColor = true; + // + // mPanel + // + this.mPanel.AutoScroll = true; + this.mPanel.Controls.Add(this.mShowSearchGroup); + this.mPanel.Controls.Add(this.mCustomSequences); + this.mPanel.Controls.Add(searchOptionsGroup); + this.mPanel.Controls.Add(actionsGroup); + this.mPanel.Controls.Add(searchInGroup); + this.mPanel.Location = new System.Drawing.Point(9, 18); + this.mPanel.Name = "mPanel"; + this.mPanel.Size = new System.Drawing.Size(808, 463); + this.mPanel.TabIndex = 5; + // + // mShowSearchGroup + // + this.mShowSearchGroup.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.mShowSearchGroup.Controls.Add(this.mShowOnHotKey); - this.mShowSearchGroup.Controls.Add(this.mShowHotKeyControl); - this.mShowSearchGroup.Controls.Add(this.mShowOnIPC); - this.mShowSearchGroup.Controls.Add(this.mShowOnFailedSearch); - this.mShowSearchGroup.Location = new System.Drawing.Point(6, 12); - this.mShowSearchGroup.Name = "mShowSearchGroup"; - this.mShowSearchGroup.Size = new System.Drawing.Size(540, 118); - this.mShowSearchGroup.TabIndex = 0; - this.mShowSearchGroup.TabStop = false; - this.mShowSearchGroup.Text = "Show search window"; - // - // mShowOnHotKey - // - this.mShowOnHotKey.AutoSize = true; - this.mShowOnHotKey.Location = new System.Drawing.Point(10, 44); - this.mShowOnHotKey.Name = "mShowOnHotKey"; - this.mShowOnHotKey.Size = new System.Drawing.Size(233, 17); - this.mShowOnHotKey.TabIndex = 1; - this.mShowOnHotKey.Text = "Show when system-wide &hot key is pressed:"; - this.mShowOnHotKey.UseVisualStyleBackColor = true; - this.mShowOnHotKey.CheckedChanged += new System.EventHandler(this.mShowOnHotKey_CheckedChanged); - // - // mShowOnIPC - // - this.mShowOnIPC.AutoSize = true; - this.mShowOnIPC.Location = new System.Drawing.Point(10, 93); - this.mShowOnIPC.Name = "mShowOnIPC"; - this.mShowOnIPC.Size = new System.Drawing.Size(386, 17); - this.mShowOnIPC.TabIndex = 3; - this.mShowOnIPC.Text = "Show when \"/e1:AutoTypeSearch\" is passed as a ¶meter to KeePass.exe"; - this.mShowOnIPC.UseVisualStyleBackColor = true; - // - // mShowOnFailedSearch - // - this.mShowOnFailedSearch.AutoSize = true; - this.mShowOnFailedSearch.Location = new System.Drawing.Point(10, 21); - this.mShowOnFailedSearch.Name = "mShowOnFailedSearch"; - this.mShowOnFailedSearch.Size = new System.Drawing.Size(275, 17); - this.mShowOnFailedSearch.TabIndex = 0; - this.mShowOnFailedSearch.Text = "Show &automatically if global auto-type finds no match"; - this.mShowOnFailedSearch.UseVisualStyleBackColor = true; - // - // Options - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(actionsGroup); - this.Controls.Add(searchInGroup); - this.Controls.Add(searchOptionsGroup); - this.Controls.Add(this.mShowSearchGroup); - this.Name = "Options"; - this.Size = new System.Drawing.Size(551, 311); - searchOptionsGroup.ResumeLayout(false); - searchOptionsGroup.PerformLayout(); - searchInGroup.ResumeLayout(false); - searchInGroup.PerformLayout(); - actionsGroup.ResumeLayout(false); - actionsGroup.PerformLayout(); - this.mShowSearchGroup.ResumeLayout(false); - this.mShowSearchGroup.PerformLayout(); - this.ResumeLayout(false); + this.mShowSearchGroup.Controls.Add(this.mShowOnHotKey); + this.mShowSearchGroup.Controls.Add(this.mShowHotKeyControl); + this.mShowSearchGroup.Controls.Add(this.mShowOnIPC); + this.mShowSearchGroup.Controls.Add(this.mShowOnFailedSearch); + this.mShowSearchGroup.Location = new System.Drawing.Point(4, 5); + this.mShowSearchGroup.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowSearchGroup.Name = "mShowSearchGroup"; + this.mShowSearchGroup.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowSearchGroup.Size = new System.Drawing.Size(549, 182); + this.mShowSearchGroup.TabIndex = 0; + this.mShowSearchGroup.TabStop = false; + this.mShowSearchGroup.Text = "Show search window"; + // + // mShowOnHotKey + // + this.mShowOnHotKey.AutoSize = true; + this.mShowOnHotKey.Location = new System.Drawing.Point(15, 68); + this.mShowOnHotKey.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowOnHotKey.Name = "mShowOnHotKey"; + this.mShowOnHotKey.Size = new System.Drawing.Size(343, 24); + this.mShowOnHotKey.TabIndex = 1; + this.mShowOnHotKey.Text = "Show when system-wide &hot key is pressed:"; + this.mShowOnHotKey.UseVisualStyleBackColor = true; + this.mShowOnHotKey.CheckedChanged += new System.EventHandler(this.mShowOnHotKey_CheckedChanged); + // + // mShowHotKeyControl + // + this.mShowHotKeyControl.Location = new System.Drawing.Point(45, 100); + this.mShowHotKeyControl.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowHotKeyControl.Name = "mShowHotKeyControl"; + this.mShowHotKeyControl.Size = new System.Drawing.Size(182, 26); + this.mShowHotKeyControl.TabIndex = 2; + // + // mShowOnIPC + // + this.mShowOnIPC.AutoSize = true; + this.mShowOnIPC.Location = new System.Drawing.Point(15, 143); + this.mShowOnIPC.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowOnIPC.Name = "mShowOnIPC"; + this.mShowOnIPC.Size = new System.Drawing.Size(574, 24); + this.mShowOnIPC.TabIndex = 3; + this.mShowOnIPC.Text = "Show when \"/e1:AutoTypeSearch\" is passed as a ¶meter to KeePass.exe"; + this.mShowOnIPC.UseVisualStyleBackColor = true; + // + // mShowOnFailedSearch + // + this.mShowOnFailedSearch.AutoSize = true; + this.mShowOnFailedSearch.Location = new System.Drawing.Point(15, 32); + this.mShowOnFailedSearch.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowOnFailedSearch.Name = "mShowOnFailedSearch"; + this.mShowOnFailedSearch.Size = new System.Drawing.Size(408, 24); + this.mShowOnFailedSearch.TabIndex = 0; + this.mShowOnFailedSearch.Text = "Show &automatically if global auto-type finds no match"; + this.mShowOnFailedSearch.UseVisualStyleBackColor = true; + // + // mCustomSequences + // + this.mCustomSequences.Controls.Add(this.mAdditionalSequences); + this.mCustomSequences.Controls.Add(this.mAdditionalSequencesTitle); + this.mCustomSequences.Controls.Add(this.mAllowCustomSequences); + this.mCustomSequences.Location = new System.Drawing.Point(4, 468); + this.mCustomSequences.Name = "mCustomSequences"; + this.mCustomSequences.Size = new System.Drawing.Size(764, 206); + this.mCustomSequences.TabIndex = 4; + this.mCustomSequences.TabStop = false; + this.mCustomSequences.Text = "Custom Sequences"; + // + // mAdditionalSequencesTitle + // + this.mAdditionalSequencesTitle.AutoSize = true; + this.mAdditionalSequencesTitle.Location = new System.Drawing.Point(6, 61); + this.mAdditionalSequencesTitle.Name = "mAdditionalSequencesTitle"; + this.mAdditionalSequencesTitle.Size = new System.Drawing.Size(221, 20); + this.mAdditionalSequencesTitle.TabIndex = 8; + this.mAdditionalSequencesTitle.Text = "Add&itional custom sequences:"; + // + // mAllowCustomSequences + // + this.mAllowCustomSequences.AutoSize = true; + this.mAllowCustomSequences.Location = new System.Drawing.Point(7, 27); + this.mAllowCustomSequences.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mAllowCustomSequences.Name = "mAllowCustomSequences"; + this.mAllowCustomSequences.Size = new System.Drawing.Size(281, 24); + this.mAllowCustomSequences.TabIndex = 6; + this.mAllowCustomSequences.Text = "Allow &custom auto-type sequences"; + this.mAllowCustomSequences.UseVisualStyleBackColor = true; + // + // mAdditionalSequences + // + this.mAdditionalSequences.FormattingEnabled = true; + this.mAdditionalSequences.ItemHeight = 20; + this.mAdditionalSequences.Location = new System.Drawing.Point(7, 85); + this.mAdditionalSequences.Name = "mAdditionalSequences"; + this.mAdditionalSequences.Size = new System.Drawing.Size(743, 104); + this.mAdditionalSequences.TabIndex = 9; + // + // Options + // + this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.mPanel); + this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.Name = "Options"; + this.Size = new System.Drawing.Size(834, 499); + this.Paint += new System.Windows.Forms.PaintEventHandler(this.Options_Paint); + searchInGroup.ResumeLayout(false); + searchInGroup.PerformLayout(); + actionsGroup.ResumeLayout(false); + actionsGroup.PerformLayout(); + searchOptionsGroup.ResumeLayout(false); + searchOptionsGroup.PerformLayout(); + this.mPanel.ResumeLayout(false); + this.mShowSearchGroup.ResumeLayout(false); + this.mShowSearchGroup.PerformLayout(); + this.mCustomSequences.ResumeLayout(false); + this.mCustomSequences.PerformLayout(); + this.ResumeLayout(false); } #endregion - private KeePass.UI.HotKeyControlEx mShowHotKeyControl; + private System.Windows.Forms.Panel mPanel; + private System.Windows.Forms.GroupBox mShowSearchGroup; private System.Windows.Forms.CheckBox mShowOnHotKey; + private HotKeyControlEx mShowHotKeyControl; private System.Windows.Forms.CheckBox mShowOnIPC; private System.Windows.Forms.CheckBox mShowOnFailedSearch; + private System.Windows.Forms.GroupBox mCustomSequences; + private System.Windows.Forms.Label mAdditionalSequencesTitle; + private System.Windows.Forms.CheckBox mAllowCustomSequences; + private System.Windows.Forms.CheckBox mResolveReferences; + private System.Windows.Forms.CheckBox mExcludeExpired; private System.Windows.Forms.CheckBox mCaseSensitive; + private System.Windows.Forms.ComboBox mAlternativeAction; + private System.Windows.Forms.ComboBox mDefaultAction; private System.Windows.Forms.CheckBox mSearchInTags; private System.Windows.Forms.CheckBox mSearchInOtherFields; private System.Windows.Forms.CheckBox mSearchInNotes; private System.Windows.Forms.CheckBox mSearchInUrl; private System.Windows.Forms.CheckBox mSearchInUserName; private System.Windows.Forms.CheckBox mSearchInTitle; - private System.Windows.Forms.CheckBox mResolveReferences; - private System.Windows.Forms.CheckBox mExcludeExpired; - private System.Windows.Forms.ComboBox mAlternativeAction; - private System.Windows.Forms.ComboBox mDefaultAction; - private System.Windows.Forms.GroupBox mShowSearchGroup; - + private System.Windows.Forms.ListBox mAdditionalSequences; } } diff --git a/AutoTypeSearch/Options.cs b/AutoTypeSearch/Options.cs index b99561c..e8e8583 100755 --- a/AutoTypeSearch/Options.cs +++ b/AutoTypeSearch/Options.cs @@ -1,7 +1,9 @@ using System; using System.Configuration; using System.Diagnostics; +using System.Drawing; using System.Linq; +using System.Net.NetworkInformation; using System.Windows.Forms; using AutoTypeSearch.Properties; using KeePass.Forms; @@ -58,6 +60,21 @@ mDefaultAction.SelectedIndex = (int)Settings.Default.DefaultAction; mAlternativeAction.SelectedIndex = (int)Settings.Default.AlternativeAction; + + mAdditionalSequences.BeginUpdate(); + mAdditionalSequences.Items.Clear(); + + if (Settings.Default.AdditionalCustomSequences != null) + { + foreach (string s in Settings.Default.AdditionalCustomSequences) + { + mAdditionalSequences.Items.Add(s); + } + } + + mAdditionalSequences.Items.Add("new sequence"); + + mAdditionalSequences.EndUpdate(); } private Keys ShowHotKey @@ -187,5 +204,16 @@ options.ApplySettings(); }; } + + private void Options_Paint(object sender, PaintEventArgs e) + { + Rectangle r = new Rectangle(mPanel.Location, mPanel.ClientSize); + //r.Offset(mPanel.Location); + r.X -= 1; + r.Y -= 1; + r.Width += 2 + SystemInformation.VerticalScrollBarWidth; + r.Height += 2; + ControlPaint.DrawBorder(e.Graphics, r, SystemColors.GrayText, ButtonBorderStyle.Solid); + } } } diff --git a/AutoTypeSearch/AutoTypeSearch.csproj b/AutoTypeSearch/AutoTypeSearch.csproj index 6145b08..c201baf 100755 --- a/AutoTypeSearch/AutoTypeSearch.csproj +++ b/AutoTypeSearch/AutoTypeSearch.csproj @@ -1,4 +1,4 @@ - + diff --git a/AutoTypeSearch/Options.Designer.cs b/AutoTypeSearch/Options.Designer.cs index 4886b6d..95c6992 100755 --- a/AutoTypeSearch/Options.Designer.cs +++ b/AutoTypeSearch/Options.Designer.cs @@ -30,295 +30,387 @@ /// private void InitializeComponent() { - System.Windows.Forms.GroupBox searchOptionsGroup; - System.Windows.Forms.GroupBox searchInGroup; - System.Windows.Forms.GroupBox actionsGroup; - System.Windows.Forms.Label alternativeActionLabel; - System.Windows.Forms.Label defaultActionLabel; - this.mResolveReferences = new System.Windows.Forms.CheckBox(); - this.mExcludeExpired = new System.Windows.Forms.CheckBox(); - this.mCaseSensitive = new System.Windows.Forms.CheckBox(); - this.mSearchInTags = new System.Windows.Forms.CheckBox(); - this.mSearchInOtherFields = new System.Windows.Forms.CheckBox(); - this.mSearchInNotes = new System.Windows.Forms.CheckBox(); - this.mSearchInUrl = new System.Windows.Forms.CheckBox(); - this.mSearchInUserName = new System.Windows.Forms.CheckBox(); - this.mSearchInTitle = new System.Windows.Forms.CheckBox(); - this.mAlternativeAction = new System.Windows.Forms.ComboBox(); - this.mDefaultAction = new System.Windows.Forms.ComboBox(); - this.mShowHotKeyControl = new KeePass.UI.HotKeyControlEx(); - this.mShowSearchGroup = new System.Windows.Forms.GroupBox(); - this.mShowOnHotKey = new System.Windows.Forms.CheckBox(); - this.mShowOnIPC = new System.Windows.Forms.CheckBox(); - this.mShowOnFailedSearch = new System.Windows.Forms.CheckBox(); - searchOptionsGroup = new System.Windows.Forms.GroupBox(); - searchInGroup = new System.Windows.Forms.GroupBox(); - actionsGroup = new System.Windows.Forms.GroupBox(); - alternativeActionLabel = new System.Windows.Forms.Label(); - defaultActionLabel = new System.Windows.Forms.Label(); - searchOptionsGroup.SuspendLayout(); - searchInGroup.SuspendLayout(); - actionsGroup.SuspendLayout(); - this.mShowSearchGroup.SuspendLayout(); - this.SuspendLayout(); - // - // searchOptionsGroup - // - searchOptionsGroup.Controls.Add(this.mResolveReferences); - searchOptionsGroup.Controls.Add(this.mExcludeExpired); - searchOptionsGroup.Controls.Add(this.mCaseSensitive); - searchOptionsGroup.Location = new System.Drawing.Point(6, 189); - searchOptionsGroup.Name = "searchOptionsGroup"; - searchOptionsGroup.Size = new System.Drawing.Size(540, 45); - searchOptionsGroup.TabIndex = 2; - searchOptionsGroup.TabStop = false; - searchOptionsGroup.Text = "Search options"; - // - // mResolveReferences - // - this.mResolveReferences.AutoSize = true; - this.mResolveReferences.Location = new System.Drawing.Point(251, 20); - this.mResolveReferences.Name = "mResolveReferences"; - this.mResolveReferences.Size = new System.Drawing.Size(170, 17); - this.mResolveReferences.TabIndex = 2; - this.mResolveReferences.Text = "Resolve fiel&d references (slow)"; - this.mResolveReferences.UseVisualStyleBackColor = true; - // - // mExcludeExpired - // - this.mExcludeExpired.AutoSize = true; - this.mExcludeExpired.Location = new System.Drawing.Point(108, 20); - this.mExcludeExpired.Name = "mExcludeExpired"; - this.mExcludeExpired.Size = new System.Drawing.Size(135, 17); - this.mExcludeExpired.TabIndex = 1; - this.mExcludeExpired.Text = "Exclude &expired entries"; - this.mExcludeExpired.UseVisualStyleBackColor = true; - // - // mCaseSensitive - // - this.mCaseSensitive.AutoSize = true; - this.mCaseSensitive.Location = new System.Drawing.Point(10, 20); - this.mCaseSensitive.Name = "mCaseSensitive"; - this.mCaseSensitive.Size = new System.Drawing.Size(94, 17); - this.mCaseSensitive.TabIndex = 0; - this.mCaseSensitive.Text = "Case-sensiti&ve"; - this.mCaseSensitive.UseVisualStyleBackColor = true; - // - // searchInGroup - // - searchInGroup.Controls.Add(this.mSearchInTags); - searchInGroup.Controls.Add(this.mSearchInOtherFields); - searchInGroup.Controls.Add(this.mSearchInNotes); - searchInGroup.Controls.Add(this.mSearchInUrl); - searchInGroup.Controls.Add(this.mSearchInUserName); - searchInGroup.Controls.Add(this.mSearchInTitle); - searchInGroup.Location = new System.Drawing.Point(6, 136); - searchInGroup.Name = "searchInGroup"; - searchInGroup.Size = new System.Drawing.Size(540, 47); - searchInGroup.TabIndex = 1; - searchInGroup.TabStop = false; - searchInGroup.Text = "Search in"; - // - // mSearchInTags - // - this.mSearchInTags.AutoSize = true; - this.mSearchInTags.Location = new System.Drawing.Point(258, 19); - this.mSearchInTags.Name = "mSearchInTags"; - this.mSearchInTags.Size = new System.Drawing.Size(50, 17); - this.mSearchInTags.TabIndex = 4; - this.mSearchInTags.Text = "Ta&gs"; - this.mSearchInTags.UseVisualStyleBackColor = true; - // - // mSearchInOtherFields - // - this.mSearchInOtherFields.AutoSize = true; - this.mSearchInOtherFields.Location = new System.Drawing.Point(314, 19); - this.mSearchInOtherFields.Name = "mSearchInOtherFields"; - this.mSearchInOtherFields.Size = new System.Drawing.Size(139, 17); - this.mSearchInOtherFields.TabIndex = 5; - this.mSearchInOtherFields.Text = "&Other unprotected fields"; - this.mSearchInOtherFields.UseVisualStyleBackColor = true; - // - // mSearchInNotes - // - this.mSearchInNotes.AutoSize = true; - this.mSearchInNotes.Location = new System.Drawing.Point(198, 19); - this.mSearchInNotes.Name = "mSearchInNotes"; - this.mSearchInNotes.Size = new System.Drawing.Size(54, 17); - this.mSearchInNotes.TabIndex = 3; - this.mSearchInNotes.Text = "Note&s"; - this.mSearchInNotes.UseVisualStyleBackColor = true; - // - // mSearchInUrl - // - this.mSearchInUrl.AutoSize = true; - this.mSearchInUrl.Location = new System.Drawing.Point(144, 19); - this.mSearchInUrl.Name = "mSearchInUrl"; - this.mSearchInUrl.Size = new System.Drawing.Size(48, 17); - this.mSearchInUrl.TabIndex = 2; - this.mSearchInUrl.Text = "&URL"; - this.mSearchInUrl.UseVisualStyleBackColor = true; - // - // mSearchInUserName - // - this.mSearchInUserName.AutoSize = true; - this.mSearchInUserName.Location = new System.Drawing.Point(61, 19); - this.mSearchInUserName.Name = "mSearchInUserName"; - this.mSearchInUserName.Size = new System.Drawing.Size(77, 17); - this.mSearchInUserName.TabIndex = 1; - this.mSearchInUserName.Text = "User &name"; - this.mSearchInUserName.UseVisualStyleBackColor = true; - // - // mSearchInTitle - // - this.mSearchInTitle.AutoSize = true; - this.mSearchInTitle.Location = new System.Drawing.Point(9, 19); - this.mSearchInTitle.Name = "mSearchInTitle"; - this.mSearchInTitle.Size = new System.Drawing.Size(46, 17); - this.mSearchInTitle.TabIndex = 0; - this.mSearchInTitle.Text = "&Title"; - this.mSearchInTitle.UseVisualStyleBackColor = true; - // - // actionsGroup - // - actionsGroup.Controls.Add(this.mAlternativeAction); - actionsGroup.Controls.Add(this.mDefaultAction); - actionsGroup.Controls.Add(alternativeActionLabel); - actionsGroup.Controls.Add(defaultActionLabel); - actionsGroup.Location = new System.Drawing.Point(6, 241); - actionsGroup.Name = "actionsGroup"; - actionsGroup.Size = new System.Drawing.Size(540, 67); - actionsGroup.TabIndex = 3; - actionsGroup.TabStop = false; - actionsGroup.Text = "Actions"; - // - // mAlternativeAction - // - this.mAlternativeAction.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.mAlternativeAction.Location = new System.Drawing.Point(288, 37); - this.mAlternativeAction.Name = "mAlternativeAction"; - this.mAlternativeAction.Size = new System.Drawing.Size(240, 21); - this.mAlternativeAction.TabIndex = 3; - // - // mDefaultAction - // - this.mDefaultAction.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.mDefaultAction.Location = new System.Drawing.Point(11, 37); - this.mDefaultAction.Name = "mDefaultAction"; - this.mDefaultAction.Size = new System.Drawing.Size(240, 21); - this.mDefaultAction.TabIndex = 1; - // - // alternativeActionLabel - // - alternativeActionLabel.AutoSize = true; - alternativeActionLabel.Location = new System.Drawing.Point(285, 20); - alternativeActionLabel.Name = "alternativeActionLabel"; - alternativeActionLabel.Size = new System.Drawing.Size(159, 13); - alternativeActionLabel.TabIndex = 2; - alternativeActionLabel.Text = "A<ernative action (Shift + Enter):"; - // - // defaultActionLabel - // - defaultActionLabel.AutoSize = true; - defaultActionLabel.Location = new System.Drawing.Point(8, 20); - defaultActionLabel.Name = "defaultActionLabel"; - defaultActionLabel.Size = new System.Drawing.Size(110, 13); - defaultActionLabel.TabIndex = 0; - defaultActionLabel.Text = "De&fault action (Enter):"; - // - // mShowHotKeyControl - // - this.mShowHotKeyControl.Location = new System.Drawing.Point(30, 65); - this.mShowHotKeyControl.Name = "mShowHotKeyControl"; - this.mShowHotKeyControl.Size = new System.Drawing.Size(123, 20); - this.mShowHotKeyControl.TabIndex = 2; - // - // mShowSearchGroup - // - this.mShowSearchGroup.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + System.Windows.Forms.GroupBox searchInGroup; + System.Windows.Forms.GroupBox actionsGroup; + System.Windows.Forms.Label alternativeActionLabel; + System.Windows.Forms.Label defaultActionLabel; + System.Windows.Forms.GroupBox searchOptionsGroup; + this.mSearchInTags = new System.Windows.Forms.CheckBox(); + this.mSearchInOtherFields = new System.Windows.Forms.CheckBox(); + this.mSearchInNotes = new System.Windows.Forms.CheckBox(); + this.mSearchInUrl = new System.Windows.Forms.CheckBox(); + this.mSearchInUserName = new System.Windows.Forms.CheckBox(); + this.mSearchInTitle = new System.Windows.Forms.CheckBox(); + this.mAlternativeAction = new System.Windows.Forms.ComboBox(); + this.mDefaultAction = new System.Windows.Forms.ComboBox(); + this.mResolveReferences = new System.Windows.Forms.CheckBox(); + this.mExcludeExpired = new System.Windows.Forms.CheckBox(); + this.mCaseSensitive = new System.Windows.Forms.CheckBox(); + this.mPanel = new System.Windows.Forms.Panel(); + this.mShowSearchGroup = new System.Windows.Forms.GroupBox(); + this.mShowOnHotKey = new System.Windows.Forms.CheckBox(); + this.mShowHotKeyControl = new KeePass.UI.HotKeyControlEx(); + this.mShowOnIPC = new System.Windows.Forms.CheckBox(); + this.mShowOnFailedSearch = new System.Windows.Forms.CheckBox(); + this.mCustomSequences = new System.Windows.Forms.GroupBox(); + this.mAdditionalSequencesTitle = new System.Windows.Forms.Label(); + this.mAllowCustomSequences = new System.Windows.Forms.CheckBox(); + this.mAdditionalSequences = new System.Windows.Forms.ListBox(); + searchInGroup = new System.Windows.Forms.GroupBox(); + actionsGroup = new System.Windows.Forms.GroupBox(); + alternativeActionLabel = new System.Windows.Forms.Label(); + defaultActionLabel = new System.Windows.Forms.Label(); + searchOptionsGroup = new System.Windows.Forms.GroupBox(); + searchInGroup.SuspendLayout(); + actionsGroup.SuspendLayout(); + searchOptionsGroup.SuspendLayout(); + this.mPanel.SuspendLayout(); + this.mShowSearchGroup.SuspendLayout(); + this.mCustomSequences.SuspendLayout(); + this.SuspendLayout(); + // + // searchInGroup + // + searchInGroup.Controls.Add(this.mSearchInTags); + searchInGroup.Controls.Add(this.mSearchInOtherFields); + searchInGroup.Controls.Add(this.mSearchInNotes); + searchInGroup.Controls.Add(this.mSearchInUrl); + searchInGroup.Controls.Add(this.mSearchInUserName); + searchInGroup.Controls.Add(this.mSearchInTitle); + searchInGroup.Location = new System.Drawing.Point(4, 196); + searchInGroup.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + searchInGroup.Name = "searchInGroup"; + searchInGroup.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); + searchInGroup.Size = new System.Drawing.Size(764, 72); + searchInGroup.TabIndex = 1; + searchInGroup.TabStop = false; + searchInGroup.Text = "Search in"; + // + // mSearchInTags + // + this.mSearchInTags.AutoSize = true; + this.mSearchInTags.Location = new System.Drawing.Point(387, 29); + this.mSearchInTags.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInTags.Name = "mSearchInTags"; + this.mSearchInTags.Size = new System.Drawing.Size(70, 24); + this.mSearchInTags.TabIndex = 4; + this.mSearchInTags.Text = "Ta&gs"; + this.mSearchInTags.UseVisualStyleBackColor = true; + // + // mSearchInOtherFields + // + this.mSearchInOtherFields.AutoSize = true; + this.mSearchInOtherFields.Location = new System.Drawing.Point(471, 29); + this.mSearchInOtherFields.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInOtherFields.Name = "mSearchInOtherFields"; + this.mSearchInOtherFields.Size = new System.Drawing.Size(206, 24); + this.mSearchInOtherFields.TabIndex = 5; + this.mSearchInOtherFields.Text = "&Other unprotected fields"; + this.mSearchInOtherFields.UseVisualStyleBackColor = true; + // + // mSearchInNotes + // + this.mSearchInNotes.AutoSize = true; + this.mSearchInNotes.Location = new System.Drawing.Point(297, 29); + this.mSearchInNotes.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInNotes.Name = "mSearchInNotes"; + this.mSearchInNotes.Size = new System.Drawing.Size(77, 24); + this.mSearchInNotes.TabIndex = 3; + this.mSearchInNotes.Text = "Note&s"; + this.mSearchInNotes.UseVisualStyleBackColor = true; + // + // mSearchInUrl + // + this.mSearchInUrl.AutoSize = true; + this.mSearchInUrl.Location = new System.Drawing.Point(216, 29); + this.mSearchInUrl.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInUrl.Name = "mSearchInUrl"; + this.mSearchInUrl.Size = new System.Drawing.Size(68, 24); + this.mSearchInUrl.TabIndex = 2; + this.mSearchInUrl.Text = "&URL"; + this.mSearchInUrl.UseVisualStyleBackColor = true; + // + // mSearchInUserName + // + this.mSearchInUserName.AutoSize = true; + this.mSearchInUserName.Location = new System.Drawing.Point(92, 29); + this.mSearchInUserName.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInUserName.Name = "mSearchInUserName"; + this.mSearchInUserName.Size = new System.Drawing.Size(113, 24); + this.mSearchInUserName.TabIndex = 1; + this.mSearchInUserName.Text = "User &name"; + this.mSearchInUserName.UseVisualStyleBackColor = true; + // + // mSearchInTitle + // + this.mSearchInTitle.AutoSize = true; + this.mSearchInTitle.Location = new System.Drawing.Point(14, 29); + this.mSearchInTitle.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInTitle.Name = "mSearchInTitle"; + this.mSearchInTitle.Size = new System.Drawing.Size(64, 24); + this.mSearchInTitle.TabIndex = 0; + this.mSearchInTitle.Text = "&Title"; + this.mSearchInTitle.UseVisualStyleBackColor = true; + // + // actionsGroup + // + actionsGroup.Controls.Add(this.mAlternativeAction); + actionsGroup.Controls.Add(this.mDefaultAction); + actionsGroup.Controls.Add(alternativeActionLabel); + actionsGroup.Controls.Add(defaultActionLabel); + actionsGroup.Location = new System.Drawing.Point(4, 357); + actionsGroup.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + actionsGroup.Name = "actionsGroup"; + actionsGroup.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); + actionsGroup.Size = new System.Drawing.Size(764, 103); + actionsGroup.TabIndex = 3; + actionsGroup.TabStop = false; + actionsGroup.Text = "Actions"; + // + // mAlternativeAction + // + this.mAlternativeAction.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.mAlternativeAction.Location = new System.Drawing.Point(392, 57); + this.mAlternativeAction.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mAlternativeAction.Name = "mAlternativeAction"; + this.mAlternativeAction.Size = new System.Drawing.Size(358, 28); + this.mAlternativeAction.TabIndex = 3; + // + // mDefaultAction + // + this.mDefaultAction.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.mDefaultAction.Location = new System.Drawing.Point(16, 57); + this.mDefaultAction.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mDefaultAction.Name = "mDefaultAction"; + this.mDefaultAction.Size = new System.Drawing.Size(358, 28); + this.mDefaultAction.TabIndex = 1; + // + // alternativeActionLabel + // + alternativeActionLabel.AutoSize = true; + alternativeActionLabel.Location = new System.Drawing.Point(388, 31); + alternativeActionLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + alternativeActionLabel.Name = "alternativeActionLabel"; + alternativeActionLabel.Size = new System.Drawing.Size(238, 20); + alternativeActionLabel.TabIndex = 2; + alternativeActionLabel.Text = "A<ernative action (Shift + Enter):"; + // + // defaultActionLabel + // + defaultActionLabel.AutoSize = true; + defaultActionLabel.Location = new System.Drawing.Point(12, 31); + defaultActionLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + defaultActionLabel.Name = "defaultActionLabel"; + defaultActionLabel.Size = new System.Drawing.Size(165, 20); + defaultActionLabel.TabIndex = 0; + defaultActionLabel.Text = "De&fault action (Enter):"; + // + // searchOptionsGroup + // + searchOptionsGroup.Controls.Add(this.mResolveReferences); + searchOptionsGroup.Controls.Add(this.mExcludeExpired); + searchOptionsGroup.Controls.Add(this.mCaseSensitive); + searchOptionsGroup.Location = new System.Drawing.Point(4, 278); + searchOptionsGroup.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + searchOptionsGroup.Name = "searchOptionsGroup"; + searchOptionsGroup.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); + searchOptionsGroup.Size = new System.Drawing.Size(764, 69); + searchOptionsGroup.TabIndex = 2; + searchOptionsGroup.TabStop = false; + searchOptionsGroup.Text = "Search options"; + // + // mResolveReferences + // + this.mResolveReferences.AutoSize = true; + this.mResolveReferences.Location = new System.Drawing.Point(376, 31); + this.mResolveReferences.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mResolveReferences.Name = "mResolveReferences"; + this.mResolveReferences.Size = new System.Drawing.Size(250, 24); + this.mResolveReferences.TabIndex = 2; + this.mResolveReferences.Text = "Resolve fiel&d references (slow)"; + this.mResolveReferences.UseVisualStyleBackColor = true; + // + // mExcludeExpired + // + this.mExcludeExpired.AutoSize = true; + this.mExcludeExpired.Location = new System.Drawing.Point(162, 31); + this.mExcludeExpired.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mExcludeExpired.Name = "mExcludeExpired"; + this.mExcludeExpired.Size = new System.Drawing.Size(198, 24); + this.mExcludeExpired.TabIndex = 1; + this.mExcludeExpired.Text = "Exclude &expired entries"; + this.mExcludeExpired.UseVisualStyleBackColor = true; + // + // mCaseSensitive + // + this.mCaseSensitive.AutoSize = true; + this.mCaseSensitive.Location = new System.Drawing.Point(15, 31); + this.mCaseSensitive.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mCaseSensitive.Name = "mCaseSensitive"; + this.mCaseSensitive.Size = new System.Drawing.Size(138, 24); + this.mCaseSensitive.TabIndex = 0; + this.mCaseSensitive.Text = "Case-sensiti&ve"; + this.mCaseSensitive.UseVisualStyleBackColor = true; + // + // mPanel + // + this.mPanel.AutoScroll = true; + this.mPanel.Controls.Add(this.mShowSearchGroup); + this.mPanel.Controls.Add(this.mCustomSequences); + this.mPanel.Controls.Add(searchOptionsGroup); + this.mPanel.Controls.Add(actionsGroup); + this.mPanel.Controls.Add(searchInGroup); + this.mPanel.Location = new System.Drawing.Point(9, 18); + this.mPanel.Name = "mPanel"; + this.mPanel.Size = new System.Drawing.Size(808, 463); + this.mPanel.TabIndex = 5; + // + // mShowSearchGroup + // + this.mShowSearchGroup.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.mShowSearchGroup.Controls.Add(this.mShowOnHotKey); - this.mShowSearchGroup.Controls.Add(this.mShowHotKeyControl); - this.mShowSearchGroup.Controls.Add(this.mShowOnIPC); - this.mShowSearchGroup.Controls.Add(this.mShowOnFailedSearch); - this.mShowSearchGroup.Location = new System.Drawing.Point(6, 12); - this.mShowSearchGroup.Name = "mShowSearchGroup"; - this.mShowSearchGroup.Size = new System.Drawing.Size(540, 118); - this.mShowSearchGroup.TabIndex = 0; - this.mShowSearchGroup.TabStop = false; - this.mShowSearchGroup.Text = "Show search window"; - // - // mShowOnHotKey - // - this.mShowOnHotKey.AutoSize = true; - this.mShowOnHotKey.Location = new System.Drawing.Point(10, 44); - this.mShowOnHotKey.Name = "mShowOnHotKey"; - this.mShowOnHotKey.Size = new System.Drawing.Size(233, 17); - this.mShowOnHotKey.TabIndex = 1; - this.mShowOnHotKey.Text = "Show when system-wide &hot key is pressed:"; - this.mShowOnHotKey.UseVisualStyleBackColor = true; - this.mShowOnHotKey.CheckedChanged += new System.EventHandler(this.mShowOnHotKey_CheckedChanged); - // - // mShowOnIPC - // - this.mShowOnIPC.AutoSize = true; - this.mShowOnIPC.Location = new System.Drawing.Point(10, 93); - this.mShowOnIPC.Name = "mShowOnIPC"; - this.mShowOnIPC.Size = new System.Drawing.Size(386, 17); - this.mShowOnIPC.TabIndex = 3; - this.mShowOnIPC.Text = "Show when \"/e1:AutoTypeSearch\" is passed as a ¶meter to KeePass.exe"; - this.mShowOnIPC.UseVisualStyleBackColor = true; - // - // mShowOnFailedSearch - // - this.mShowOnFailedSearch.AutoSize = true; - this.mShowOnFailedSearch.Location = new System.Drawing.Point(10, 21); - this.mShowOnFailedSearch.Name = "mShowOnFailedSearch"; - this.mShowOnFailedSearch.Size = new System.Drawing.Size(275, 17); - this.mShowOnFailedSearch.TabIndex = 0; - this.mShowOnFailedSearch.Text = "Show &automatically if global auto-type finds no match"; - this.mShowOnFailedSearch.UseVisualStyleBackColor = true; - // - // Options - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(actionsGroup); - this.Controls.Add(searchInGroup); - this.Controls.Add(searchOptionsGroup); - this.Controls.Add(this.mShowSearchGroup); - this.Name = "Options"; - this.Size = new System.Drawing.Size(551, 311); - searchOptionsGroup.ResumeLayout(false); - searchOptionsGroup.PerformLayout(); - searchInGroup.ResumeLayout(false); - searchInGroup.PerformLayout(); - actionsGroup.ResumeLayout(false); - actionsGroup.PerformLayout(); - this.mShowSearchGroup.ResumeLayout(false); - this.mShowSearchGroup.PerformLayout(); - this.ResumeLayout(false); + this.mShowSearchGroup.Controls.Add(this.mShowOnHotKey); + this.mShowSearchGroup.Controls.Add(this.mShowHotKeyControl); + this.mShowSearchGroup.Controls.Add(this.mShowOnIPC); + this.mShowSearchGroup.Controls.Add(this.mShowOnFailedSearch); + this.mShowSearchGroup.Location = new System.Drawing.Point(4, 5); + this.mShowSearchGroup.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowSearchGroup.Name = "mShowSearchGroup"; + this.mShowSearchGroup.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowSearchGroup.Size = new System.Drawing.Size(549, 182); + this.mShowSearchGroup.TabIndex = 0; + this.mShowSearchGroup.TabStop = false; + this.mShowSearchGroup.Text = "Show search window"; + // + // mShowOnHotKey + // + this.mShowOnHotKey.AutoSize = true; + this.mShowOnHotKey.Location = new System.Drawing.Point(15, 68); + this.mShowOnHotKey.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowOnHotKey.Name = "mShowOnHotKey"; + this.mShowOnHotKey.Size = new System.Drawing.Size(343, 24); + this.mShowOnHotKey.TabIndex = 1; + this.mShowOnHotKey.Text = "Show when system-wide &hot key is pressed:"; + this.mShowOnHotKey.UseVisualStyleBackColor = true; + this.mShowOnHotKey.CheckedChanged += new System.EventHandler(this.mShowOnHotKey_CheckedChanged); + // + // mShowHotKeyControl + // + this.mShowHotKeyControl.Location = new System.Drawing.Point(45, 100); + this.mShowHotKeyControl.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowHotKeyControl.Name = "mShowHotKeyControl"; + this.mShowHotKeyControl.Size = new System.Drawing.Size(182, 26); + this.mShowHotKeyControl.TabIndex = 2; + // + // mShowOnIPC + // + this.mShowOnIPC.AutoSize = true; + this.mShowOnIPC.Location = new System.Drawing.Point(15, 143); + this.mShowOnIPC.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowOnIPC.Name = "mShowOnIPC"; + this.mShowOnIPC.Size = new System.Drawing.Size(574, 24); + this.mShowOnIPC.TabIndex = 3; + this.mShowOnIPC.Text = "Show when \"/e1:AutoTypeSearch\" is passed as a ¶meter to KeePass.exe"; + this.mShowOnIPC.UseVisualStyleBackColor = true; + // + // mShowOnFailedSearch + // + this.mShowOnFailedSearch.AutoSize = true; + this.mShowOnFailedSearch.Location = new System.Drawing.Point(15, 32); + this.mShowOnFailedSearch.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowOnFailedSearch.Name = "mShowOnFailedSearch"; + this.mShowOnFailedSearch.Size = new System.Drawing.Size(408, 24); + this.mShowOnFailedSearch.TabIndex = 0; + this.mShowOnFailedSearch.Text = "Show &automatically if global auto-type finds no match"; + this.mShowOnFailedSearch.UseVisualStyleBackColor = true; + // + // mCustomSequences + // + this.mCustomSequences.Controls.Add(this.mAdditionalSequences); + this.mCustomSequences.Controls.Add(this.mAdditionalSequencesTitle); + this.mCustomSequences.Controls.Add(this.mAllowCustomSequences); + this.mCustomSequences.Location = new System.Drawing.Point(4, 468); + this.mCustomSequences.Name = "mCustomSequences"; + this.mCustomSequences.Size = new System.Drawing.Size(764, 206); + this.mCustomSequences.TabIndex = 4; + this.mCustomSequences.TabStop = false; + this.mCustomSequences.Text = "Custom Sequences"; + // + // mAdditionalSequencesTitle + // + this.mAdditionalSequencesTitle.AutoSize = true; + this.mAdditionalSequencesTitle.Location = new System.Drawing.Point(6, 61); + this.mAdditionalSequencesTitle.Name = "mAdditionalSequencesTitle"; + this.mAdditionalSequencesTitle.Size = new System.Drawing.Size(221, 20); + this.mAdditionalSequencesTitle.TabIndex = 8; + this.mAdditionalSequencesTitle.Text = "Add&itional custom sequences:"; + // + // mAllowCustomSequences + // + this.mAllowCustomSequences.AutoSize = true; + this.mAllowCustomSequences.Location = new System.Drawing.Point(7, 27); + this.mAllowCustomSequences.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mAllowCustomSequences.Name = "mAllowCustomSequences"; + this.mAllowCustomSequences.Size = new System.Drawing.Size(281, 24); + this.mAllowCustomSequences.TabIndex = 6; + this.mAllowCustomSequences.Text = "Allow &custom auto-type sequences"; + this.mAllowCustomSequences.UseVisualStyleBackColor = true; + // + // mAdditionalSequences + // + this.mAdditionalSequences.FormattingEnabled = true; + this.mAdditionalSequences.ItemHeight = 20; + this.mAdditionalSequences.Location = new System.Drawing.Point(7, 85); + this.mAdditionalSequences.Name = "mAdditionalSequences"; + this.mAdditionalSequences.Size = new System.Drawing.Size(743, 104); + this.mAdditionalSequences.TabIndex = 9; + // + // Options + // + this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.mPanel); + this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.Name = "Options"; + this.Size = new System.Drawing.Size(834, 499); + this.Paint += new System.Windows.Forms.PaintEventHandler(this.Options_Paint); + searchInGroup.ResumeLayout(false); + searchInGroup.PerformLayout(); + actionsGroup.ResumeLayout(false); + actionsGroup.PerformLayout(); + searchOptionsGroup.ResumeLayout(false); + searchOptionsGroup.PerformLayout(); + this.mPanel.ResumeLayout(false); + this.mShowSearchGroup.ResumeLayout(false); + this.mShowSearchGroup.PerformLayout(); + this.mCustomSequences.ResumeLayout(false); + this.mCustomSequences.PerformLayout(); + this.ResumeLayout(false); } #endregion - private KeePass.UI.HotKeyControlEx mShowHotKeyControl; + private System.Windows.Forms.Panel mPanel; + private System.Windows.Forms.GroupBox mShowSearchGroup; private System.Windows.Forms.CheckBox mShowOnHotKey; + private HotKeyControlEx mShowHotKeyControl; private System.Windows.Forms.CheckBox mShowOnIPC; private System.Windows.Forms.CheckBox mShowOnFailedSearch; + private System.Windows.Forms.GroupBox mCustomSequences; + private System.Windows.Forms.Label mAdditionalSequencesTitle; + private System.Windows.Forms.CheckBox mAllowCustomSequences; + private System.Windows.Forms.CheckBox mResolveReferences; + private System.Windows.Forms.CheckBox mExcludeExpired; private System.Windows.Forms.CheckBox mCaseSensitive; + private System.Windows.Forms.ComboBox mAlternativeAction; + private System.Windows.Forms.ComboBox mDefaultAction; private System.Windows.Forms.CheckBox mSearchInTags; private System.Windows.Forms.CheckBox mSearchInOtherFields; private System.Windows.Forms.CheckBox mSearchInNotes; private System.Windows.Forms.CheckBox mSearchInUrl; private System.Windows.Forms.CheckBox mSearchInUserName; private System.Windows.Forms.CheckBox mSearchInTitle; - private System.Windows.Forms.CheckBox mResolveReferences; - private System.Windows.Forms.CheckBox mExcludeExpired; - private System.Windows.Forms.ComboBox mAlternativeAction; - private System.Windows.Forms.ComboBox mDefaultAction; - private System.Windows.Forms.GroupBox mShowSearchGroup; - + private System.Windows.Forms.ListBox mAdditionalSequences; } } diff --git a/AutoTypeSearch/Options.cs b/AutoTypeSearch/Options.cs index b99561c..e8e8583 100755 --- a/AutoTypeSearch/Options.cs +++ b/AutoTypeSearch/Options.cs @@ -1,7 +1,9 @@ using System; using System.Configuration; using System.Diagnostics; +using System.Drawing; using System.Linq; +using System.Net.NetworkInformation; using System.Windows.Forms; using AutoTypeSearch.Properties; using KeePass.Forms; @@ -58,6 +60,21 @@ mDefaultAction.SelectedIndex = (int)Settings.Default.DefaultAction; mAlternativeAction.SelectedIndex = (int)Settings.Default.AlternativeAction; + + mAdditionalSequences.BeginUpdate(); + mAdditionalSequences.Items.Clear(); + + if (Settings.Default.AdditionalCustomSequences != null) + { + foreach (string s in Settings.Default.AdditionalCustomSequences) + { + mAdditionalSequences.Items.Add(s); + } + } + + mAdditionalSequences.Items.Add("new sequence"); + + mAdditionalSequences.EndUpdate(); } private Keys ShowHotKey @@ -187,5 +204,16 @@ options.ApplySettings(); }; } + + private void Options_Paint(object sender, PaintEventArgs e) + { + Rectangle r = new Rectangle(mPanel.Location, mPanel.ClientSize); + //r.Offset(mPanel.Location); + r.X -= 1; + r.Y -= 1; + r.Width += 2 + SystemInformation.VerticalScrollBarWidth; + r.Height += 2; + ControlPaint.DrawBorder(e.Graphics, r, SystemColors.GrayText, ButtonBorderStyle.Solid); + } } } diff --git a/AutoTypeSearch/Options.resx b/AutoTypeSearch/Options.resx index 4601c27..9ed14a5 100755 --- a/AutoTypeSearch/Options.resx +++ b/AutoTypeSearch/Options.resx @@ -117,9 +117,6 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - False - False @@ -132,4 +129,7 @@ False + + False + \ No newline at end of file diff --git a/AutoTypeSearch/AutoTypeSearch.csproj b/AutoTypeSearch/AutoTypeSearch.csproj index 6145b08..c201baf 100755 --- a/AutoTypeSearch/AutoTypeSearch.csproj +++ b/AutoTypeSearch/AutoTypeSearch.csproj @@ -1,4 +1,4 @@ - + diff --git a/AutoTypeSearch/Options.Designer.cs b/AutoTypeSearch/Options.Designer.cs index 4886b6d..95c6992 100755 --- a/AutoTypeSearch/Options.Designer.cs +++ b/AutoTypeSearch/Options.Designer.cs @@ -30,295 +30,387 @@ /// private void InitializeComponent() { - System.Windows.Forms.GroupBox searchOptionsGroup; - System.Windows.Forms.GroupBox searchInGroup; - System.Windows.Forms.GroupBox actionsGroup; - System.Windows.Forms.Label alternativeActionLabel; - System.Windows.Forms.Label defaultActionLabel; - this.mResolveReferences = new System.Windows.Forms.CheckBox(); - this.mExcludeExpired = new System.Windows.Forms.CheckBox(); - this.mCaseSensitive = new System.Windows.Forms.CheckBox(); - this.mSearchInTags = new System.Windows.Forms.CheckBox(); - this.mSearchInOtherFields = new System.Windows.Forms.CheckBox(); - this.mSearchInNotes = new System.Windows.Forms.CheckBox(); - this.mSearchInUrl = new System.Windows.Forms.CheckBox(); - this.mSearchInUserName = new System.Windows.Forms.CheckBox(); - this.mSearchInTitle = new System.Windows.Forms.CheckBox(); - this.mAlternativeAction = new System.Windows.Forms.ComboBox(); - this.mDefaultAction = new System.Windows.Forms.ComboBox(); - this.mShowHotKeyControl = new KeePass.UI.HotKeyControlEx(); - this.mShowSearchGroup = new System.Windows.Forms.GroupBox(); - this.mShowOnHotKey = new System.Windows.Forms.CheckBox(); - this.mShowOnIPC = new System.Windows.Forms.CheckBox(); - this.mShowOnFailedSearch = new System.Windows.Forms.CheckBox(); - searchOptionsGroup = new System.Windows.Forms.GroupBox(); - searchInGroup = new System.Windows.Forms.GroupBox(); - actionsGroup = new System.Windows.Forms.GroupBox(); - alternativeActionLabel = new System.Windows.Forms.Label(); - defaultActionLabel = new System.Windows.Forms.Label(); - searchOptionsGroup.SuspendLayout(); - searchInGroup.SuspendLayout(); - actionsGroup.SuspendLayout(); - this.mShowSearchGroup.SuspendLayout(); - this.SuspendLayout(); - // - // searchOptionsGroup - // - searchOptionsGroup.Controls.Add(this.mResolveReferences); - searchOptionsGroup.Controls.Add(this.mExcludeExpired); - searchOptionsGroup.Controls.Add(this.mCaseSensitive); - searchOptionsGroup.Location = new System.Drawing.Point(6, 189); - searchOptionsGroup.Name = "searchOptionsGroup"; - searchOptionsGroup.Size = new System.Drawing.Size(540, 45); - searchOptionsGroup.TabIndex = 2; - searchOptionsGroup.TabStop = false; - searchOptionsGroup.Text = "Search options"; - // - // mResolveReferences - // - this.mResolveReferences.AutoSize = true; - this.mResolveReferences.Location = new System.Drawing.Point(251, 20); - this.mResolveReferences.Name = "mResolveReferences"; - this.mResolveReferences.Size = new System.Drawing.Size(170, 17); - this.mResolveReferences.TabIndex = 2; - this.mResolveReferences.Text = "Resolve fiel&d references (slow)"; - this.mResolveReferences.UseVisualStyleBackColor = true; - // - // mExcludeExpired - // - this.mExcludeExpired.AutoSize = true; - this.mExcludeExpired.Location = new System.Drawing.Point(108, 20); - this.mExcludeExpired.Name = "mExcludeExpired"; - this.mExcludeExpired.Size = new System.Drawing.Size(135, 17); - this.mExcludeExpired.TabIndex = 1; - this.mExcludeExpired.Text = "Exclude &expired entries"; - this.mExcludeExpired.UseVisualStyleBackColor = true; - // - // mCaseSensitive - // - this.mCaseSensitive.AutoSize = true; - this.mCaseSensitive.Location = new System.Drawing.Point(10, 20); - this.mCaseSensitive.Name = "mCaseSensitive"; - this.mCaseSensitive.Size = new System.Drawing.Size(94, 17); - this.mCaseSensitive.TabIndex = 0; - this.mCaseSensitive.Text = "Case-sensiti&ve"; - this.mCaseSensitive.UseVisualStyleBackColor = true; - // - // searchInGroup - // - searchInGroup.Controls.Add(this.mSearchInTags); - searchInGroup.Controls.Add(this.mSearchInOtherFields); - searchInGroup.Controls.Add(this.mSearchInNotes); - searchInGroup.Controls.Add(this.mSearchInUrl); - searchInGroup.Controls.Add(this.mSearchInUserName); - searchInGroup.Controls.Add(this.mSearchInTitle); - searchInGroup.Location = new System.Drawing.Point(6, 136); - searchInGroup.Name = "searchInGroup"; - searchInGroup.Size = new System.Drawing.Size(540, 47); - searchInGroup.TabIndex = 1; - searchInGroup.TabStop = false; - searchInGroup.Text = "Search in"; - // - // mSearchInTags - // - this.mSearchInTags.AutoSize = true; - this.mSearchInTags.Location = new System.Drawing.Point(258, 19); - this.mSearchInTags.Name = "mSearchInTags"; - this.mSearchInTags.Size = new System.Drawing.Size(50, 17); - this.mSearchInTags.TabIndex = 4; - this.mSearchInTags.Text = "Ta&gs"; - this.mSearchInTags.UseVisualStyleBackColor = true; - // - // mSearchInOtherFields - // - this.mSearchInOtherFields.AutoSize = true; - this.mSearchInOtherFields.Location = new System.Drawing.Point(314, 19); - this.mSearchInOtherFields.Name = "mSearchInOtherFields"; - this.mSearchInOtherFields.Size = new System.Drawing.Size(139, 17); - this.mSearchInOtherFields.TabIndex = 5; - this.mSearchInOtherFields.Text = "&Other unprotected fields"; - this.mSearchInOtherFields.UseVisualStyleBackColor = true; - // - // mSearchInNotes - // - this.mSearchInNotes.AutoSize = true; - this.mSearchInNotes.Location = new System.Drawing.Point(198, 19); - this.mSearchInNotes.Name = "mSearchInNotes"; - this.mSearchInNotes.Size = new System.Drawing.Size(54, 17); - this.mSearchInNotes.TabIndex = 3; - this.mSearchInNotes.Text = "Note&s"; - this.mSearchInNotes.UseVisualStyleBackColor = true; - // - // mSearchInUrl - // - this.mSearchInUrl.AutoSize = true; - this.mSearchInUrl.Location = new System.Drawing.Point(144, 19); - this.mSearchInUrl.Name = "mSearchInUrl"; - this.mSearchInUrl.Size = new System.Drawing.Size(48, 17); - this.mSearchInUrl.TabIndex = 2; - this.mSearchInUrl.Text = "&URL"; - this.mSearchInUrl.UseVisualStyleBackColor = true; - // - // mSearchInUserName - // - this.mSearchInUserName.AutoSize = true; - this.mSearchInUserName.Location = new System.Drawing.Point(61, 19); - this.mSearchInUserName.Name = "mSearchInUserName"; - this.mSearchInUserName.Size = new System.Drawing.Size(77, 17); - this.mSearchInUserName.TabIndex = 1; - this.mSearchInUserName.Text = "User &name"; - this.mSearchInUserName.UseVisualStyleBackColor = true; - // - // mSearchInTitle - // - this.mSearchInTitle.AutoSize = true; - this.mSearchInTitle.Location = new System.Drawing.Point(9, 19); - this.mSearchInTitle.Name = "mSearchInTitle"; - this.mSearchInTitle.Size = new System.Drawing.Size(46, 17); - this.mSearchInTitle.TabIndex = 0; - this.mSearchInTitle.Text = "&Title"; - this.mSearchInTitle.UseVisualStyleBackColor = true; - // - // actionsGroup - // - actionsGroup.Controls.Add(this.mAlternativeAction); - actionsGroup.Controls.Add(this.mDefaultAction); - actionsGroup.Controls.Add(alternativeActionLabel); - actionsGroup.Controls.Add(defaultActionLabel); - actionsGroup.Location = new System.Drawing.Point(6, 241); - actionsGroup.Name = "actionsGroup"; - actionsGroup.Size = new System.Drawing.Size(540, 67); - actionsGroup.TabIndex = 3; - actionsGroup.TabStop = false; - actionsGroup.Text = "Actions"; - // - // mAlternativeAction - // - this.mAlternativeAction.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.mAlternativeAction.Location = new System.Drawing.Point(288, 37); - this.mAlternativeAction.Name = "mAlternativeAction"; - this.mAlternativeAction.Size = new System.Drawing.Size(240, 21); - this.mAlternativeAction.TabIndex = 3; - // - // mDefaultAction - // - this.mDefaultAction.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.mDefaultAction.Location = new System.Drawing.Point(11, 37); - this.mDefaultAction.Name = "mDefaultAction"; - this.mDefaultAction.Size = new System.Drawing.Size(240, 21); - this.mDefaultAction.TabIndex = 1; - // - // alternativeActionLabel - // - alternativeActionLabel.AutoSize = true; - alternativeActionLabel.Location = new System.Drawing.Point(285, 20); - alternativeActionLabel.Name = "alternativeActionLabel"; - alternativeActionLabel.Size = new System.Drawing.Size(159, 13); - alternativeActionLabel.TabIndex = 2; - alternativeActionLabel.Text = "A<ernative action (Shift + Enter):"; - // - // defaultActionLabel - // - defaultActionLabel.AutoSize = true; - defaultActionLabel.Location = new System.Drawing.Point(8, 20); - defaultActionLabel.Name = "defaultActionLabel"; - defaultActionLabel.Size = new System.Drawing.Size(110, 13); - defaultActionLabel.TabIndex = 0; - defaultActionLabel.Text = "De&fault action (Enter):"; - // - // mShowHotKeyControl - // - this.mShowHotKeyControl.Location = new System.Drawing.Point(30, 65); - this.mShowHotKeyControl.Name = "mShowHotKeyControl"; - this.mShowHotKeyControl.Size = new System.Drawing.Size(123, 20); - this.mShowHotKeyControl.TabIndex = 2; - // - // mShowSearchGroup - // - this.mShowSearchGroup.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + System.Windows.Forms.GroupBox searchInGroup; + System.Windows.Forms.GroupBox actionsGroup; + System.Windows.Forms.Label alternativeActionLabel; + System.Windows.Forms.Label defaultActionLabel; + System.Windows.Forms.GroupBox searchOptionsGroup; + this.mSearchInTags = new System.Windows.Forms.CheckBox(); + this.mSearchInOtherFields = new System.Windows.Forms.CheckBox(); + this.mSearchInNotes = new System.Windows.Forms.CheckBox(); + this.mSearchInUrl = new System.Windows.Forms.CheckBox(); + this.mSearchInUserName = new System.Windows.Forms.CheckBox(); + this.mSearchInTitle = new System.Windows.Forms.CheckBox(); + this.mAlternativeAction = new System.Windows.Forms.ComboBox(); + this.mDefaultAction = new System.Windows.Forms.ComboBox(); + this.mResolveReferences = new System.Windows.Forms.CheckBox(); + this.mExcludeExpired = new System.Windows.Forms.CheckBox(); + this.mCaseSensitive = new System.Windows.Forms.CheckBox(); + this.mPanel = new System.Windows.Forms.Panel(); + this.mShowSearchGroup = new System.Windows.Forms.GroupBox(); + this.mShowOnHotKey = new System.Windows.Forms.CheckBox(); + this.mShowHotKeyControl = new KeePass.UI.HotKeyControlEx(); + this.mShowOnIPC = new System.Windows.Forms.CheckBox(); + this.mShowOnFailedSearch = new System.Windows.Forms.CheckBox(); + this.mCustomSequences = new System.Windows.Forms.GroupBox(); + this.mAdditionalSequencesTitle = new System.Windows.Forms.Label(); + this.mAllowCustomSequences = new System.Windows.Forms.CheckBox(); + this.mAdditionalSequences = new System.Windows.Forms.ListBox(); + searchInGroup = new System.Windows.Forms.GroupBox(); + actionsGroup = new System.Windows.Forms.GroupBox(); + alternativeActionLabel = new System.Windows.Forms.Label(); + defaultActionLabel = new System.Windows.Forms.Label(); + searchOptionsGroup = new System.Windows.Forms.GroupBox(); + searchInGroup.SuspendLayout(); + actionsGroup.SuspendLayout(); + searchOptionsGroup.SuspendLayout(); + this.mPanel.SuspendLayout(); + this.mShowSearchGroup.SuspendLayout(); + this.mCustomSequences.SuspendLayout(); + this.SuspendLayout(); + // + // searchInGroup + // + searchInGroup.Controls.Add(this.mSearchInTags); + searchInGroup.Controls.Add(this.mSearchInOtherFields); + searchInGroup.Controls.Add(this.mSearchInNotes); + searchInGroup.Controls.Add(this.mSearchInUrl); + searchInGroup.Controls.Add(this.mSearchInUserName); + searchInGroup.Controls.Add(this.mSearchInTitle); + searchInGroup.Location = new System.Drawing.Point(4, 196); + searchInGroup.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + searchInGroup.Name = "searchInGroup"; + searchInGroup.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); + searchInGroup.Size = new System.Drawing.Size(764, 72); + searchInGroup.TabIndex = 1; + searchInGroup.TabStop = false; + searchInGroup.Text = "Search in"; + // + // mSearchInTags + // + this.mSearchInTags.AutoSize = true; + this.mSearchInTags.Location = new System.Drawing.Point(387, 29); + this.mSearchInTags.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInTags.Name = "mSearchInTags"; + this.mSearchInTags.Size = new System.Drawing.Size(70, 24); + this.mSearchInTags.TabIndex = 4; + this.mSearchInTags.Text = "Ta&gs"; + this.mSearchInTags.UseVisualStyleBackColor = true; + // + // mSearchInOtherFields + // + this.mSearchInOtherFields.AutoSize = true; + this.mSearchInOtherFields.Location = new System.Drawing.Point(471, 29); + this.mSearchInOtherFields.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInOtherFields.Name = "mSearchInOtherFields"; + this.mSearchInOtherFields.Size = new System.Drawing.Size(206, 24); + this.mSearchInOtherFields.TabIndex = 5; + this.mSearchInOtherFields.Text = "&Other unprotected fields"; + this.mSearchInOtherFields.UseVisualStyleBackColor = true; + // + // mSearchInNotes + // + this.mSearchInNotes.AutoSize = true; + this.mSearchInNotes.Location = new System.Drawing.Point(297, 29); + this.mSearchInNotes.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInNotes.Name = "mSearchInNotes"; + this.mSearchInNotes.Size = new System.Drawing.Size(77, 24); + this.mSearchInNotes.TabIndex = 3; + this.mSearchInNotes.Text = "Note&s"; + this.mSearchInNotes.UseVisualStyleBackColor = true; + // + // mSearchInUrl + // + this.mSearchInUrl.AutoSize = true; + this.mSearchInUrl.Location = new System.Drawing.Point(216, 29); + this.mSearchInUrl.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInUrl.Name = "mSearchInUrl"; + this.mSearchInUrl.Size = new System.Drawing.Size(68, 24); + this.mSearchInUrl.TabIndex = 2; + this.mSearchInUrl.Text = "&URL"; + this.mSearchInUrl.UseVisualStyleBackColor = true; + // + // mSearchInUserName + // + this.mSearchInUserName.AutoSize = true; + this.mSearchInUserName.Location = new System.Drawing.Point(92, 29); + this.mSearchInUserName.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInUserName.Name = "mSearchInUserName"; + this.mSearchInUserName.Size = new System.Drawing.Size(113, 24); + this.mSearchInUserName.TabIndex = 1; + this.mSearchInUserName.Text = "User &name"; + this.mSearchInUserName.UseVisualStyleBackColor = true; + // + // mSearchInTitle + // + this.mSearchInTitle.AutoSize = true; + this.mSearchInTitle.Location = new System.Drawing.Point(14, 29); + this.mSearchInTitle.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInTitle.Name = "mSearchInTitle"; + this.mSearchInTitle.Size = new System.Drawing.Size(64, 24); + this.mSearchInTitle.TabIndex = 0; + this.mSearchInTitle.Text = "&Title"; + this.mSearchInTitle.UseVisualStyleBackColor = true; + // + // actionsGroup + // + actionsGroup.Controls.Add(this.mAlternativeAction); + actionsGroup.Controls.Add(this.mDefaultAction); + actionsGroup.Controls.Add(alternativeActionLabel); + actionsGroup.Controls.Add(defaultActionLabel); + actionsGroup.Location = new System.Drawing.Point(4, 357); + actionsGroup.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + actionsGroup.Name = "actionsGroup"; + actionsGroup.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); + actionsGroup.Size = new System.Drawing.Size(764, 103); + actionsGroup.TabIndex = 3; + actionsGroup.TabStop = false; + actionsGroup.Text = "Actions"; + // + // mAlternativeAction + // + this.mAlternativeAction.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.mAlternativeAction.Location = new System.Drawing.Point(392, 57); + this.mAlternativeAction.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mAlternativeAction.Name = "mAlternativeAction"; + this.mAlternativeAction.Size = new System.Drawing.Size(358, 28); + this.mAlternativeAction.TabIndex = 3; + // + // mDefaultAction + // + this.mDefaultAction.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.mDefaultAction.Location = new System.Drawing.Point(16, 57); + this.mDefaultAction.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mDefaultAction.Name = "mDefaultAction"; + this.mDefaultAction.Size = new System.Drawing.Size(358, 28); + this.mDefaultAction.TabIndex = 1; + // + // alternativeActionLabel + // + alternativeActionLabel.AutoSize = true; + alternativeActionLabel.Location = new System.Drawing.Point(388, 31); + alternativeActionLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + alternativeActionLabel.Name = "alternativeActionLabel"; + alternativeActionLabel.Size = new System.Drawing.Size(238, 20); + alternativeActionLabel.TabIndex = 2; + alternativeActionLabel.Text = "A<ernative action (Shift + Enter):"; + // + // defaultActionLabel + // + defaultActionLabel.AutoSize = true; + defaultActionLabel.Location = new System.Drawing.Point(12, 31); + defaultActionLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + defaultActionLabel.Name = "defaultActionLabel"; + defaultActionLabel.Size = new System.Drawing.Size(165, 20); + defaultActionLabel.TabIndex = 0; + defaultActionLabel.Text = "De&fault action (Enter):"; + // + // searchOptionsGroup + // + searchOptionsGroup.Controls.Add(this.mResolveReferences); + searchOptionsGroup.Controls.Add(this.mExcludeExpired); + searchOptionsGroup.Controls.Add(this.mCaseSensitive); + searchOptionsGroup.Location = new System.Drawing.Point(4, 278); + searchOptionsGroup.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + searchOptionsGroup.Name = "searchOptionsGroup"; + searchOptionsGroup.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); + searchOptionsGroup.Size = new System.Drawing.Size(764, 69); + searchOptionsGroup.TabIndex = 2; + searchOptionsGroup.TabStop = false; + searchOptionsGroup.Text = "Search options"; + // + // mResolveReferences + // + this.mResolveReferences.AutoSize = true; + this.mResolveReferences.Location = new System.Drawing.Point(376, 31); + this.mResolveReferences.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mResolveReferences.Name = "mResolveReferences"; + this.mResolveReferences.Size = new System.Drawing.Size(250, 24); + this.mResolveReferences.TabIndex = 2; + this.mResolveReferences.Text = "Resolve fiel&d references (slow)"; + this.mResolveReferences.UseVisualStyleBackColor = true; + // + // mExcludeExpired + // + this.mExcludeExpired.AutoSize = true; + this.mExcludeExpired.Location = new System.Drawing.Point(162, 31); + this.mExcludeExpired.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mExcludeExpired.Name = "mExcludeExpired"; + this.mExcludeExpired.Size = new System.Drawing.Size(198, 24); + this.mExcludeExpired.TabIndex = 1; + this.mExcludeExpired.Text = "Exclude &expired entries"; + this.mExcludeExpired.UseVisualStyleBackColor = true; + // + // mCaseSensitive + // + this.mCaseSensitive.AutoSize = true; + this.mCaseSensitive.Location = new System.Drawing.Point(15, 31); + this.mCaseSensitive.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mCaseSensitive.Name = "mCaseSensitive"; + this.mCaseSensitive.Size = new System.Drawing.Size(138, 24); + this.mCaseSensitive.TabIndex = 0; + this.mCaseSensitive.Text = "Case-sensiti&ve"; + this.mCaseSensitive.UseVisualStyleBackColor = true; + // + // mPanel + // + this.mPanel.AutoScroll = true; + this.mPanel.Controls.Add(this.mShowSearchGroup); + this.mPanel.Controls.Add(this.mCustomSequences); + this.mPanel.Controls.Add(searchOptionsGroup); + this.mPanel.Controls.Add(actionsGroup); + this.mPanel.Controls.Add(searchInGroup); + this.mPanel.Location = new System.Drawing.Point(9, 18); + this.mPanel.Name = "mPanel"; + this.mPanel.Size = new System.Drawing.Size(808, 463); + this.mPanel.TabIndex = 5; + // + // mShowSearchGroup + // + this.mShowSearchGroup.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.mShowSearchGroup.Controls.Add(this.mShowOnHotKey); - this.mShowSearchGroup.Controls.Add(this.mShowHotKeyControl); - this.mShowSearchGroup.Controls.Add(this.mShowOnIPC); - this.mShowSearchGroup.Controls.Add(this.mShowOnFailedSearch); - this.mShowSearchGroup.Location = new System.Drawing.Point(6, 12); - this.mShowSearchGroup.Name = "mShowSearchGroup"; - this.mShowSearchGroup.Size = new System.Drawing.Size(540, 118); - this.mShowSearchGroup.TabIndex = 0; - this.mShowSearchGroup.TabStop = false; - this.mShowSearchGroup.Text = "Show search window"; - // - // mShowOnHotKey - // - this.mShowOnHotKey.AutoSize = true; - this.mShowOnHotKey.Location = new System.Drawing.Point(10, 44); - this.mShowOnHotKey.Name = "mShowOnHotKey"; - this.mShowOnHotKey.Size = new System.Drawing.Size(233, 17); - this.mShowOnHotKey.TabIndex = 1; - this.mShowOnHotKey.Text = "Show when system-wide &hot key is pressed:"; - this.mShowOnHotKey.UseVisualStyleBackColor = true; - this.mShowOnHotKey.CheckedChanged += new System.EventHandler(this.mShowOnHotKey_CheckedChanged); - // - // mShowOnIPC - // - this.mShowOnIPC.AutoSize = true; - this.mShowOnIPC.Location = new System.Drawing.Point(10, 93); - this.mShowOnIPC.Name = "mShowOnIPC"; - this.mShowOnIPC.Size = new System.Drawing.Size(386, 17); - this.mShowOnIPC.TabIndex = 3; - this.mShowOnIPC.Text = "Show when \"/e1:AutoTypeSearch\" is passed as a ¶meter to KeePass.exe"; - this.mShowOnIPC.UseVisualStyleBackColor = true; - // - // mShowOnFailedSearch - // - this.mShowOnFailedSearch.AutoSize = true; - this.mShowOnFailedSearch.Location = new System.Drawing.Point(10, 21); - this.mShowOnFailedSearch.Name = "mShowOnFailedSearch"; - this.mShowOnFailedSearch.Size = new System.Drawing.Size(275, 17); - this.mShowOnFailedSearch.TabIndex = 0; - this.mShowOnFailedSearch.Text = "Show &automatically if global auto-type finds no match"; - this.mShowOnFailedSearch.UseVisualStyleBackColor = true; - // - // Options - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(actionsGroup); - this.Controls.Add(searchInGroup); - this.Controls.Add(searchOptionsGroup); - this.Controls.Add(this.mShowSearchGroup); - this.Name = "Options"; - this.Size = new System.Drawing.Size(551, 311); - searchOptionsGroup.ResumeLayout(false); - searchOptionsGroup.PerformLayout(); - searchInGroup.ResumeLayout(false); - searchInGroup.PerformLayout(); - actionsGroup.ResumeLayout(false); - actionsGroup.PerformLayout(); - this.mShowSearchGroup.ResumeLayout(false); - this.mShowSearchGroup.PerformLayout(); - this.ResumeLayout(false); + this.mShowSearchGroup.Controls.Add(this.mShowOnHotKey); + this.mShowSearchGroup.Controls.Add(this.mShowHotKeyControl); + this.mShowSearchGroup.Controls.Add(this.mShowOnIPC); + this.mShowSearchGroup.Controls.Add(this.mShowOnFailedSearch); + this.mShowSearchGroup.Location = new System.Drawing.Point(4, 5); + this.mShowSearchGroup.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowSearchGroup.Name = "mShowSearchGroup"; + this.mShowSearchGroup.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowSearchGroup.Size = new System.Drawing.Size(549, 182); + this.mShowSearchGroup.TabIndex = 0; + this.mShowSearchGroup.TabStop = false; + this.mShowSearchGroup.Text = "Show search window"; + // + // mShowOnHotKey + // + this.mShowOnHotKey.AutoSize = true; + this.mShowOnHotKey.Location = new System.Drawing.Point(15, 68); + this.mShowOnHotKey.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowOnHotKey.Name = "mShowOnHotKey"; + this.mShowOnHotKey.Size = new System.Drawing.Size(343, 24); + this.mShowOnHotKey.TabIndex = 1; + this.mShowOnHotKey.Text = "Show when system-wide &hot key is pressed:"; + this.mShowOnHotKey.UseVisualStyleBackColor = true; + this.mShowOnHotKey.CheckedChanged += new System.EventHandler(this.mShowOnHotKey_CheckedChanged); + // + // mShowHotKeyControl + // + this.mShowHotKeyControl.Location = new System.Drawing.Point(45, 100); + this.mShowHotKeyControl.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowHotKeyControl.Name = "mShowHotKeyControl"; + this.mShowHotKeyControl.Size = new System.Drawing.Size(182, 26); + this.mShowHotKeyControl.TabIndex = 2; + // + // mShowOnIPC + // + this.mShowOnIPC.AutoSize = true; + this.mShowOnIPC.Location = new System.Drawing.Point(15, 143); + this.mShowOnIPC.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowOnIPC.Name = "mShowOnIPC"; + this.mShowOnIPC.Size = new System.Drawing.Size(574, 24); + this.mShowOnIPC.TabIndex = 3; + this.mShowOnIPC.Text = "Show when \"/e1:AutoTypeSearch\" is passed as a ¶meter to KeePass.exe"; + this.mShowOnIPC.UseVisualStyleBackColor = true; + // + // mShowOnFailedSearch + // + this.mShowOnFailedSearch.AutoSize = true; + this.mShowOnFailedSearch.Location = new System.Drawing.Point(15, 32); + this.mShowOnFailedSearch.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowOnFailedSearch.Name = "mShowOnFailedSearch"; + this.mShowOnFailedSearch.Size = new System.Drawing.Size(408, 24); + this.mShowOnFailedSearch.TabIndex = 0; + this.mShowOnFailedSearch.Text = "Show &automatically if global auto-type finds no match"; + this.mShowOnFailedSearch.UseVisualStyleBackColor = true; + // + // mCustomSequences + // + this.mCustomSequences.Controls.Add(this.mAdditionalSequences); + this.mCustomSequences.Controls.Add(this.mAdditionalSequencesTitle); + this.mCustomSequences.Controls.Add(this.mAllowCustomSequences); + this.mCustomSequences.Location = new System.Drawing.Point(4, 468); + this.mCustomSequences.Name = "mCustomSequences"; + this.mCustomSequences.Size = new System.Drawing.Size(764, 206); + this.mCustomSequences.TabIndex = 4; + this.mCustomSequences.TabStop = false; + this.mCustomSequences.Text = "Custom Sequences"; + // + // mAdditionalSequencesTitle + // + this.mAdditionalSequencesTitle.AutoSize = true; + this.mAdditionalSequencesTitle.Location = new System.Drawing.Point(6, 61); + this.mAdditionalSequencesTitle.Name = "mAdditionalSequencesTitle"; + this.mAdditionalSequencesTitle.Size = new System.Drawing.Size(221, 20); + this.mAdditionalSequencesTitle.TabIndex = 8; + this.mAdditionalSequencesTitle.Text = "Add&itional custom sequences:"; + // + // mAllowCustomSequences + // + this.mAllowCustomSequences.AutoSize = true; + this.mAllowCustomSequences.Location = new System.Drawing.Point(7, 27); + this.mAllowCustomSequences.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mAllowCustomSequences.Name = "mAllowCustomSequences"; + this.mAllowCustomSequences.Size = new System.Drawing.Size(281, 24); + this.mAllowCustomSequences.TabIndex = 6; + this.mAllowCustomSequences.Text = "Allow &custom auto-type sequences"; + this.mAllowCustomSequences.UseVisualStyleBackColor = true; + // + // mAdditionalSequences + // + this.mAdditionalSequences.FormattingEnabled = true; + this.mAdditionalSequences.ItemHeight = 20; + this.mAdditionalSequences.Location = new System.Drawing.Point(7, 85); + this.mAdditionalSequences.Name = "mAdditionalSequences"; + this.mAdditionalSequences.Size = new System.Drawing.Size(743, 104); + this.mAdditionalSequences.TabIndex = 9; + // + // Options + // + this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.mPanel); + this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.Name = "Options"; + this.Size = new System.Drawing.Size(834, 499); + this.Paint += new System.Windows.Forms.PaintEventHandler(this.Options_Paint); + searchInGroup.ResumeLayout(false); + searchInGroup.PerformLayout(); + actionsGroup.ResumeLayout(false); + actionsGroup.PerformLayout(); + searchOptionsGroup.ResumeLayout(false); + searchOptionsGroup.PerformLayout(); + this.mPanel.ResumeLayout(false); + this.mShowSearchGroup.ResumeLayout(false); + this.mShowSearchGroup.PerformLayout(); + this.mCustomSequences.ResumeLayout(false); + this.mCustomSequences.PerformLayout(); + this.ResumeLayout(false); } #endregion - private KeePass.UI.HotKeyControlEx mShowHotKeyControl; + private System.Windows.Forms.Panel mPanel; + private System.Windows.Forms.GroupBox mShowSearchGroup; private System.Windows.Forms.CheckBox mShowOnHotKey; + private HotKeyControlEx mShowHotKeyControl; private System.Windows.Forms.CheckBox mShowOnIPC; private System.Windows.Forms.CheckBox mShowOnFailedSearch; + private System.Windows.Forms.GroupBox mCustomSequences; + private System.Windows.Forms.Label mAdditionalSequencesTitle; + private System.Windows.Forms.CheckBox mAllowCustomSequences; + private System.Windows.Forms.CheckBox mResolveReferences; + private System.Windows.Forms.CheckBox mExcludeExpired; private System.Windows.Forms.CheckBox mCaseSensitive; + private System.Windows.Forms.ComboBox mAlternativeAction; + private System.Windows.Forms.ComboBox mDefaultAction; private System.Windows.Forms.CheckBox mSearchInTags; private System.Windows.Forms.CheckBox mSearchInOtherFields; private System.Windows.Forms.CheckBox mSearchInNotes; private System.Windows.Forms.CheckBox mSearchInUrl; private System.Windows.Forms.CheckBox mSearchInUserName; private System.Windows.Forms.CheckBox mSearchInTitle; - private System.Windows.Forms.CheckBox mResolveReferences; - private System.Windows.Forms.CheckBox mExcludeExpired; - private System.Windows.Forms.ComboBox mAlternativeAction; - private System.Windows.Forms.ComboBox mDefaultAction; - private System.Windows.Forms.GroupBox mShowSearchGroup; - + private System.Windows.Forms.ListBox mAdditionalSequences; } } diff --git a/AutoTypeSearch/Options.cs b/AutoTypeSearch/Options.cs index b99561c..e8e8583 100755 --- a/AutoTypeSearch/Options.cs +++ b/AutoTypeSearch/Options.cs @@ -1,7 +1,9 @@ using System; using System.Configuration; using System.Diagnostics; +using System.Drawing; using System.Linq; +using System.Net.NetworkInformation; using System.Windows.Forms; using AutoTypeSearch.Properties; using KeePass.Forms; @@ -58,6 +60,21 @@ mDefaultAction.SelectedIndex = (int)Settings.Default.DefaultAction; mAlternativeAction.SelectedIndex = (int)Settings.Default.AlternativeAction; + + mAdditionalSequences.BeginUpdate(); + mAdditionalSequences.Items.Clear(); + + if (Settings.Default.AdditionalCustomSequences != null) + { + foreach (string s in Settings.Default.AdditionalCustomSequences) + { + mAdditionalSequences.Items.Add(s); + } + } + + mAdditionalSequences.Items.Add("new sequence"); + + mAdditionalSequences.EndUpdate(); } private Keys ShowHotKey @@ -187,5 +204,16 @@ options.ApplySettings(); }; } + + private void Options_Paint(object sender, PaintEventArgs e) + { + Rectangle r = new Rectangle(mPanel.Location, mPanel.ClientSize); + //r.Offset(mPanel.Location); + r.X -= 1; + r.Y -= 1; + r.Width += 2 + SystemInformation.VerticalScrollBarWidth; + r.Height += 2; + ControlPaint.DrawBorder(e.Graphics, r, SystemColors.GrayText, ButtonBorderStyle.Solid); + } } } diff --git a/AutoTypeSearch/Options.resx b/AutoTypeSearch/Options.resx index 4601c27..9ed14a5 100755 --- a/AutoTypeSearch/Options.resx +++ b/AutoTypeSearch/Options.resx @@ -117,9 +117,6 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - False - False @@ -132,4 +129,7 @@ False + + False + \ No newline at end of file diff --git a/AutoTypeSearch/Properties/Settings.Designer.cs b/AutoTypeSearch/Properties/Settings.Designer.cs index 62e2cdb..c67dd88 100755 --- a/AutoTypeSearch/Properties/Settings.Designer.cs +++ b/AutoTypeSearch/Properties/Settings.Designer.cs @@ -12,7 +12,7 @@ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.7.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.5.0.0")] internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); @@ -214,5 +214,16 @@ this["ShowHotKey"] = value; } } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Collections.Specialized.StringCollection AdditionalCustomSequences { + get { + return ((global::System.Collections.Specialized.StringCollection)(this["AdditionalCustomSequences"])); + } + set { + this["AdditionalCustomSequences"] = value; + } + } } } diff --git a/AutoTypeSearch/AutoTypeSearch.csproj b/AutoTypeSearch/AutoTypeSearch.csproj index 6145b08..c201baf 100755 --- a/AutoTypeSearch/AutoTypeSearch.csproj +++ b/AutoTypeSearch/AutoTypeSearch.csproj @@ -1,4 +1,4 @@ - + diff --git a/AutoTypeSearch/Options.Designer.cs b/AutoTypeSearch/Options.Designer.cs index 4886b6d..95c6992 100755 --- a/AutoTypeSearch/Options.Designer.cs +++ b/AutoTypeSearch/Options.Designer.cs @@ -30,295 +30,387 @@ /// private void InitializeComponent() { - System.Windows.Forms.GroupBox searchOptionsGroup; - System.Windows.Forms.GroupBox searchInGroup; - System.Windows.Forms.GroupBox actionsGroup; - System.Windows.Forms.Label alternativeActionLabel; - System.Windows.Forms.Label defaultActionLabel; - this.mResolveReferences = new System.Windows.Forms.CheckBox(); - this.mExcludeExpired = new System.Windows.Forms.CheckBox(); - this.mCaseSensitive = new System.Windows.Forms.CheckBox(); - this.mSearchInTags = new System.Windows.Forms.CheckBox(); - this.mSearchInOtherFields = new System.Windows.Forms.CheckBox(); - this.mSearchInNotes = new System.Windows.Forms.CheckBox(); - this.mSearchInUrl = new System.Windows.Forms.CheckBox(); - this.mSearchInUserName = new System.Windows.Forms.CheckBox(); - this.mSearchInTitle = new System.Windows.Forms.CheckBox(); - this.mAlternativeAction = new System.Windows.Forms.ComboBox(); - this.mDefaultAction = new System.Windows.Forms.ComboBox(); - this.mShowHotKeyControl = new KeePass.UI.HotKeyControlEx(); - this.mShowSearchGroup = new System.Windows.Forms.GroupBox(); - this.mShowOnHotKey = new System.Windows.Forms.CheckBox(); - this.mShowOnIPC = new System.Windows.Forms.CheckBox(); - this.mShowOnFailedSearch = new System.Windows.Forms.CheckBox(); - searchOptionsGroup = new System.Windows.Forms.GroupBox(); - searchInGroup = new System.Windows.Forms.GroupBox(); - actionsGroup = new System.Windows.Forms.GroupBox(); - alternativeActionLabel = new System.Windows.Forms.Label(); - defaultActionLabel = new System.Windows.Forms.Label(); - searchOptionsGroup.SuspendLayout(); - searchInGroup.SuspendLayout(); - actionsGroup.SuspendLayout(); - this.mShowSearchGroup.SuspendLayout(); - this.SuspendLayout(); - // - // searchOptionsGroup - // - searchOptionsGroup.Controls.Add(this.mResolveReferences); - searchOptionsGroup.Controls.Add(this.mExcludeExpired); - searchOptionsGroup.Controls.Add(this.mCaseSensitive); - searchOptionsGroup.Location = new System.Drawing.Point(6, 189); - searchOptionsGroup.Name = "searchOptionsGroup"; - searchOptionsGroup.Size = new System.Drawing.Size(540, 45); - searchOptionsGroup.TabIndex = 2; - searchOptionsGroup.TabStop = false; - searchOptionsGroup.Text = "Search options"; - // - // mResolveReferences - // - this.mResolveReferences.AutoSize = true; - this.mResolveReferences.Location = new System.Drawing.Point(251, 20); - this.mResolveReferences.Name = "mResolveReferences"; - this.mResolveReferences.Size = new System.Drawing.Size(170, 17); - this.mResolveReferences.TabIndex = 2; - this.mResolveReferences.Text = "Resolve fiel&d references (slow)"; - this.mResolveReferences.UseVisualStyleBackColor = true; - // - // mExcludeExpired - // - this.mExcludeExpired.AutoSize = true; - this.mExcludeExpired.Location = new System.Drawing.Point(108, 20); - this.mExcludeExpired.Name = "mExcludeExpired"; - this.mExcludeExpired.Size = new System.Drawing.Size(135, 17); - this.mExcludeExpired.TabIndex = 1; - this.mExcludeExpired.Text = "Exclude &expired entries"; - this.mExcludeExpired.UseVisualStyleBackColor = true; - // - // mCaseSensitive - // - this.mCaseSensitive.AutoSize = true; - this.mCaseSensitive.Location = new System.Drawing.Point(10, 20); - this.mCaseSensitive.Name = "mCaseSensitive"; - this.mCaseSensitive.Size = new System.Drawing.Size(94, 17); - this.mCaseSensitive.TabIndex = 0; - this.mCaseSensitive.Text = "Case-sensiti&ve"; - this.mCaseSensitive.UseVisualStyleBackColor = true; - // - // searchInGroup - // - searchInGroup.Controls.Add(this.mSearchInTags); - searchInGroup.Controls.Add(this.mSearchInOtherFields); - searchInGroup.Controls.Add(this.mSearchInNotes); - searchInGroup.Controls.Add(this.mSearchInUrl); - searchInGroup.Controls.Add(this.mSearchInUserName); - searchInGroup.Controls.Add(this.mSearchInTitle); - searchInGroup.Location = new System.Drawing.Point(6, 136); - searchInGroup.Name = "searchInGroup"; - searchInGroup.Size = new System.Drawing.Size(540, 47); - searchInGroup.TabIndex = 1; - searchInGroup.TabStop = false; - searchInGroup.Text = "Search in"; - // - // mSearchInTags - // - this.mSearchInTags.AutoSize = true; - this.mSearchInTags.Location = new System.Drawing.Point(258, 19); - this.mSearchInTags.Name = "mSearchInTags"; - this.mSearchInTags.Size = new System.Drawing.Size(50, 17); - this.mSearchInTags.TabIndex = 4; - this.mSearchInTags.Text = "Ta&gs"; - this.mSearchInTags.UseVisualStyleBackColor = true; - // - // mSearchInOtherFields - // - this.mSearchInOtherFields.AutoSize = true; - this.mSearchInOtherFields.Location = new System.Drawing.Point(314, 19); - this.mSearchInOtherFields.Name = "mSearchInOtherFields"; - this.mSearchInOtherFields.Size = new System.Drawing.Size(139, 17); - this.mSearchInOtherFields.TabIndex = 5; - this.mSearchInOtherFields.Text = "&Other unprotected fields"; - this.mSearchInOtherFields.UseVisualStyleBackColor = true; - // - // mSearchInNotes - // - this.mSearchInNotes.AutoSize = true; - this.mSearchInNotes.Location = new System.Drawing.Point(198, 19); - this.mSearchInNotes.Name = "mSearchInNotes"; - this.mSearchInNotes.Size = new System.Drawing.Size(54, 17); - this.mSearchInNotes.TabIndex = 3; - this.mSearchInNotes.Text = "Note&s"; - this.mSearchInNotes.UseVisualStyleBackColor = true; - // - // mSearchInUrl - // - this.mSearchInUrl.AutoSize = true; - this.mSearchInUrl.Location = new System.Drawing.Point(144, 19); - this.mSearchInUrl.Name = "mSearchInUrl"; - this.mSearchInUrl.Size = new System.Drawing.Size(48, 17); - this.mSearchInUrl.TabIndex = 2; - this.mSearchInUrl.Text = "&URL"; - this.mSearchInUrl.UseVisualStyleBackColor = true; - // - // mSearchInUserName - // - this.mSearchInUserName.AutoSize = true; - this.mSearchInUserName.Location = new System.Drawing.Point(61, 19); - this.mSearchInUserName.Name = "mSearchInUserName"; - this.mSearchInUserName.Size = new System.Drawing.Size(77, 17); - this.mSearchInUserName.TabIndex = 1; - this.mSearchInUserName.Text = "User &name"; - this.mSearchInUserName.UseVisualStyleBackColor = true; - // - // mSearchInTitle - // - this.mSearchInTitle.AutoSize = true; - this.mSearchInTitle.Location = new System.Drawing.Point(9, 19); - this.mSearchInTitle.Name = "mSearchInTitle"; - this.mSearchInTitle.Size = new System.Drawing.Size(46, 17); - this.mSearchInTitle.TabIndex = 0; - this.mSearchInTitle.Text = "&Title"; - this.mSearchInTitle.UseVisualStyleBackColor = true; - // - // actionsGroup - // - actionsGroup.Controls.Add(this.mAlternativeAction); - actionsGroup.Controls.Add(this.mDefaultAction); - actionsGroup.Controls.Add(alternativeActionLabel); - actionsGroup.Controls.Add(defaultActionLabel); - actionsGroup.Location = new System.Drawing.Point(6, 241); - actionsGroup.Name = "actionsGroup"; - actionsGroup.Size = new System.Drawing.Size(540, 67); - actionsGroup.TabIndex = 3; - actionsGroup.TabStop = false; - actionsGroup.Text = "Actions"; - // - // mAlternativeAction - // - this.mAlternativeAction.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.mAlternativeAction.Location = new System.Drawing.Point(288, 37); - this.mAlternativeAction.Name = "mAlternativeAction"; - this.mAlternativeAction.Size = new System.Drawing.Size(240, 21); - this.mAlternativeAction.TabIndex = 3; - // - // mDefaultAction - // - this.mDefaultAction.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.mDefaultAction.Location = new System.Drawing.Point(11, 37); - this.mDefaultAction.Name = "mDefaultAction"; - this.mDefaultAction.Size = new System.Drawing.Size(240, 21); - this.mDefaultAction.TabIndex = 1; - // - // alternativeActionLabel - // - alternativeActionLabel.AutoSize = true; - alternativeActionLabel.Location = new System.Drawing.Point(285, 20); - alternativeActionLabel.Name = "alternativeActionLabel"; - alternativeActionLabel.Size = new System.Drawing.Size(159, 13); - alternativeActionLabel.TabIndex = 2; - alternativeActionLabel.Text = "A<ernative action (Shift + Enter):"; - // - // defaultActionLabel - // - defaultActionLabel.AutoSize = true; - defaultActionLabel.Location = new System.Drawing.Point(8, 20); - defaultActionLabel.Name = "defaultActionLabel"; - defaultActionLabel.Size = new System.Drawing.Size(110, 13); - defaultActionLabel.TabIndex = 0; - defaultActionLabel.Text = "De&fault action (Enter):"; - // - // mShowHotKeyControl - // - this.mShowHotKeyControl.Location = new System.Drawing.Point(30, 65); - this.mShowHotKeyControl.Name = "mShowHotKeyControl"; - this.mShowHotKeyControl.Size = new System.Drawing.Size(123, 20); - this.mShowHotKeyControl.TabIndex = 2; - // - // mShowSearchGroup - // - this.mShowSearchGroup.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + System.Windows.Forms.GroupBox searchInGroup; + System.Windows.Forms.GroupBox actionsGroup; + System.Windows.Forms.Label alternativeActionLabel; + System.Windows.Forms.Label defaultActionLabel; + System.Windows.Forms.GroupBox searchOptionsGroup; + this.mSearchInTags = new System.Windows.Forms.CheckBox(); + this.mSearchInOtherFields = new System.Windows.Forms.CheckBox(); + this.mSearchInNotes = new System.Windows.Forms.CheckBox(); + this.mSearchInUrl = new System.Windows.Forms.CheckBox(); + this.mSearchInUserName = new System.Windows.Forms.CheckBox(); + this.mSearchInTitle = new System.Windows.Forms.CheckBox(); + this.mAlternativeAction = new System.Windows.Forms.ComboBox(); + this.mDefaultAction = new System.Windows.Forms.ComboBox(); + this.mResolveReferences = new System.Windows.Forms.CheckBox(); + this.mExcludeExpired = new System.Windows.Forms.CheckBox(); + this.mCaseSensitive = new System.Windows.Forms.CheckBox(); + this.mPanel = new System.Windows.Forms.Panel(); + this.mShowSearchGroup = new System.Windows.Forms.GroupBox(); + this.mShowOnHotKey = new System.Windows.Forms.CheckBox(); + this.mShowHotKeyControl = new KeePass.UI.HotKeyControlEx(); + this.mShowOnIPC = new System.Windows.Forms.CheckBox(); + this.mShowOnFailedSearch = new System.Windows.Forms.CheckBox(); + this.mCustomSequences = new System.Windows.Forms.GroupBox(); + this.mAdditionalSequencesTitle = new System.Windows.Forms.Label(); + this.mAllowCustomSequences = new System.Windows.Forms.CheckBox(); + this.mAdditionalSequences = new System.Windows.Forms.ListBox(); + searchInGroup = new System.Windows.Forms.GroupBox(); + actionsGroup = new System.Windows.Forms.GroupBox(); + alternativeActionLabel = new System.Windows.Forms.Label(); + defaultActionLabel = new System.Windows.Forms.Label(); + searchOptionsGroup = new System.Windows.Forms.GroupBox(); + searchInGroup.SuspendLayout(); + actionsGroup.SuspendLayout(); + searchOptionsGroup.SuspendLayout(); + this.mPanel.SuspendLayout(); + this.mShowSearchGroup.SuspendLayout(); + this.mCustomSequences.SuspendLayout(); + this.SuspendLayout(); + // + // searchInGroup + // + searchInGroup.Controls.Add(this.mSearchInTags); + searchInGroup.Controls.Add(this.mSearchInOtherFields); + searchInGroup.Controls.Add(this.mSearchInNotes); + searchInGroup.Controls.Add(this.mSearchInUrl); + searchInGroup.Controls.Add(this.mSearchInUserName); + searchInGroup.Controls.Add(this.mSearchInTitle); + searchInGroup.Location = new System.Drawing.Point(4, 196); + searchInGroup.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + searchInGroup.Name = "searchInGroup"; + searchInGroup.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); + searchInGroup.Size = new System.Drawing.Size(764, 72); + searchInGroup.TabIndex = 1; + searchInGroup.TabStop = false; + searchInGroup.Text = "Search in"; + // + // mSearchInTags + // + this.mSearchInTags.AutoSize = true; + this.mSearchInTags.Location = new System.Drawing.Point(387, 29); + this.mSearchInTags.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInTags.Name = "mSearchInTags"; + this.mSearchInTags.Size = new System.Drawing.Size(70, 24); + this.mSearchInTags.TabIndex = 4; + this.mSearchInTags.Text = "Ta&gs"; + this.mSearchInTags.UseVisualStyleBackColor = true; + // + // mSearchInOtherFields + // + this.mSearchInOtherFields.AutoSize = true; + this.mSearchInOtherFields.Location = new System.Drawing.Point(471, 29); + this.mSearchInOtherFields.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInOtherFields.Name = "mSearchInOtherFields"; + this.mSearchInOtherFields.Size = new System.Drawing.Size(206, 24); + this.mSearchInOtherFields.TabIndex = 5; + this.mSearchInOtherFields.Text = "&Other unprotected fields"; + this.mSearchInOtherFields.UseVisualStyleBackColor = true; + // + // mSearchInNotes + // + this.mSearchInNotes.AutoSize = true; + this.mSearchInNotes.Location = new System.Drawing.Point(297, 29); + this.mSearchInNotes.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInNotes.Name = "mSearchInNotes"; + this.mSearchInNotes.Size = new System.Drawing.Size(77, 24); + this.mSearchInNotes.TabIndex = 3; + this.mSearchInNotes.Text = "Note&s"; + this.mSearchInNotes.UseVisualStyleBackColor = true; + // + // mSearchInUrl + // + this.mSearchInUrl.AutoSize = true; + this.mSearchInUrl.Location = new System.Drawing.Point(216, 29); + this.mSearchInUrl.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInUrl.Name = "mSearchInUrl"; + this.mSearchInUrl.Size = new System.Drawing.Size(68, 24); + this.mSearchInUrl.TabIndex = 2; + this.mSearchInUrl.Text = "&URL"; + this.mSearchInUrl.UseVisualStyleBackColor = true; + // + // mSearchInUserName + // + this.mSearchInUserName.AutoSize = true; + this.mSearchInUserName.Location = new System.Drawing.Point(92, 29); + this.mSearchInUserName.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInUserName.Name = "mSearchInUserName"; + this.mSearchInUserName.Size = new System.Drawing.Size(113, 24); + this.mSearchInUserName.TabIndex = 1; + this.mSearchInUserName.Text = "User &name"; + this.mSearchInUserName.UseVisualStyleBackColor = true; + // + // mSearchInTitle + // + this.mSearchInTitle.AutoSize = true; + this.mSearchInTitle.Location = new System.Drawing.Point(14, 29); + this.mSearchInTitle.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInTitle.Name = "mSearchInTitle"; + this.mSearchInTitle.Size = new System.Drawing.Size(64, 24); + this.mSearchInTitle.TabIndex = 0; + this.mSearchInTitle.Text = "&Title"; + this.mSearchInTitle.UseVisualStyleBackColor = true; + // + // actionsGroup + // + actionsGroup.Controls.Add(this.mAlternativeAction); + actionsGroup.Controls.Add(this.mDefaultAction); + actionsGroup.Controls.Add(alternativeActionLabel); + actionsGroup.Controls.Add(defaultActionLabel); + actionsGroup.Location = new System.Drawing.Point(4, 357); + actionsGroup.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + actionsGroup.Name = "actionsGroup"; + actionsGroup.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); + actionsGroup.Size = new System.Drawing.Size(764, 103); + actionsGroup.TabIndex = 3; + actionsGroup.TabStop = false; + actionsGroup.Text = "Actions"; + // + // mAlternativeAction + // + this.mAlternativeAction.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.mAlternativeAction.Location = new System.Drawing.Point(392, 57); + this.mAlternativeAction.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mAlternativeAction.Name = "mAlternativeAction"; + this.mAlternativeAction.Size = new System.Drawing.Size(358, 28); + this.mAlternativeAction.TabIndex = 3; + // + // mDefaultAction + // + this.mDefaultAction.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.mDefaultAction.Location = new System.Drawing.Point(16, 57); + this.mDefaultAction.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mDefaultAction.Name = "mDefaultAction"; + this.mDefaultAction.Size = new System.Drawing.Size(358, 28); + this.mDefaultAction.TabIndex = 1; + // + // alternativeActionLabel + // + alternativeActionLabel.AutoSize = true; + alternativeActionLabel.Location = new System.Drawing.Point(388, 31); + alternativeActionLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + alternativeActionLabel.Name = "alternativeActionLabel"; + alternativeActionLabel.Size = new System.Drawing.Size(238, 20); + alternativeActionLabel.TabIndex = 2; + alternativeActionLabel.Text = "A<ernative action (Shift + Enter):"; + // + // defaultActionLabel + // + defaultActionLabel.AutoSize = true; + defaultActionLabel.Location = new System.Drawing.Point(12, 31); + defaultActionLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + defaultActionLabel.Name = "defaultActionLabel"; + defaultActionLabel.Size = new System.Drawing.Size(165, 20); + defaultActionLabel.TabIndex = 0; + defaultActionLabel.Text = "De&fault action (Enter):"; + // + // searchOptionsGroup + // + searchOptionsGroup.Controls.Add(this.mResolveReferences); + searchOptionsGroup.Controls.Add(this.mExcludeExpired); + searchOptionsGroup.Controls.Add(this.mCaseSensitive); + searchOptionsGroup.Location = new System.Drawing.Point(4, 278); + searchOptionsGroup.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + searchOptionsGroup.Name = "searchOptionsGroup"; + searchOptionsGroup.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); + searchOptionsGroup.Size = new System.Drawing.Size(764, 69); + searchOptionsGroup.TabIndex = 2; + searchOptionsGroup.TabStop = false; + searchOptionsGroup.Text = "Search options"; + // + // mResolveReferences + // + this.mResolveReferences.AutoSize = true; + this.mResolveReferences.Location = new System.Drawing.Point(376, 31); + this.mResolveReferences.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mResolveReferences.Name = "mResolveReferences"; + this.mResolveReferences.Size = new System.Drawing.Size(250, 24); + this.mResolveReferences.TabIndex = 2; + this.mResolveReferences.Text = "Resolve fiel&d references (slow)"; + this.mResolveReferences.UseVisualStyleBackColor = true; + // + // mExcludeExpired + // + this.mExcludeExpired.AutoSize = true; + this.mExcludeExpired.Location = new System.Drawing.Point(162, 31); + this.mExcludeExpired.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mExcludeExpired.Name = "mExcludeExpired"; + this.mExcludeExpired.Size = new System.Drawing.Size(198, 24); + this.mExcludeExpired.TabIndex = 1; + this.mExcludeExpired.Text = "Exclude &expired entries"; + this.mExcludeExpired.UseVisualStyleBackColor = true; + // + // mCaseSensitive + // + this.mCaseSensitive.AutoSize = true; + this.mCaseSensitive.Location = new System.Drawing.Point(15, 31); + this.mCaseSensitive.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mCaseSensitive.Name = "mCaseSensitive"; + this.mCaseSensitive.Size = new System.Drawing.Size(138, 24); + this.mCaseSensitive.TabIndex = 0; + this.mCaseSensitive.Text = "Case-sensiti&ve"; + this.mCaseSensitive.UseVisualStyleBackColor = true; + // + // mPanel + // + this.mPanel.AutoScroll = true; + this.mPanel.Controls.Add(this.mShowSearchGroup); + this.mPanel.Controls.Add(this.mCustomSequences); + this.mPanel.Controls.Add(searchOptionsGroup); + this.mPanel.Controls.Add(actionsGroup); + this.mPanel.Controls.Add(searchInGroup); + this.mPanel.Location = new System.Drawing.Point(9, 18); + this.mPanel.Name = "mPanel"; + this.mPanel.Size = new System.Drawing.Size(808, 463); + this.mPanel.TabIndex = 5; + // + // mShowSearchGroup + // + this.mShowSearchGroup.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.mShowSearchGroup.Controls.Add(this.mShowOnHotKey); - this.mShowSearchGroup.Controls.Add(this.mShowHotKeyControl); - this.mShowSearchGroup.Controls.Add(this.mShowOnIPC); - this.mShowSearchGroup.Controls.Add(this.mShowOnFailedSearch); - this.mShowSearchGroup.Location = new System.Drawing.Point(6, 12); - this.mShowSearchGroup.Name = "mShowSearchGroup"; - this.mShowSearchGroup.Size = new System.Drawing.Size(540, 118); - this.mShowSearchGroup.TabIndex = 0; - this.mShowSearchGroup.TabStop = false; - this.mShowSearchGroup.Text = "Show search window"; - // - // mShowOnHotKey - // - this.mShowOnHotKey.AutoSize = true; - this.mShowOnHotKey.Location = new System.Drawing.Point(10, 44); - this.mShowOnHotKey.Name = "mShowOnHotKey"; - this.mShowOnHotKey.Size = new System.Drawing.Size(233, 17); - this.mShowOnHotKey.TabIndex = 1; - this.mShowOnHotKey.Text = "Show when system-wide &hot key is pressed:"; - this.mShowOnHotKey.UseVisualStyleBackColor = true; - this.mShowOnHotKey.CheckedChanged += new System.EventHandler(this.mShowOnHotKey_CheckedChanged); - // - // mShowOnIPC - // - this.mShowOnIPC.AutoSize = true; - this.mShowOnIPC.Location = new System.Drawing.Point(10, 93); - this.mShowOnIPC.Name = "mShowOnIPC"; - this.mShowOnIPC.Size = new System.Drawing.Size(386, 17); - this.mShowOnIPC.TabIndex = 3; - this.mShowOnIPC.Text = "Show when \"/e1:AutoTypeSearch\" is passed as a ¶meter to KeePass.exe"; - this.mShowOnIPC.UseVisualStyleBackColor = true; - // - // mShowOnFailedSearch - // - this.mShowOnFailedSearch.AutoSize = true; - this.mShowOnFailedSearch.Location = new System.Drawing.Point(10, 21); - this.mShowOnFailedSearch.Name = "mShowOnFailedSearch"; - this.mShowOnFailedSearch.Size = new System.Drawing.Size(275, 17); - this.mShowOnFailedSearch.TabIndex = 0; - this.mShowOnFailedSearch.Text = "Show &automatically if global auto-type finds no match"; - this.mShowOnFailedSearch.UseVisualStyleBackColor = true; - // - // Options - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(actionsGroup); - this.Controls.Add(searchInGroup); - this.Controls.Add(searchOptionsGroup); - this.Controls.Add(this.mShowSearchGroup); - this.Name = "Options"; - this.Size = new System.Drawing.Size(551, 311); - searchOptionsGroup.ResumeLayout(false); - searchOptionsGroup.PerformLayout(); - searchInGroup.ResumeLayout(false); - searchInGroup.PerformLayout(); - actionsGroup.ResumeLayout(false); - actionsGroup.PerformLayout(); - this.mShowSearchGroup.ResumeLayout(false); - this.mShowSearchGroup.PerformLayout(); - this.ResumeLayout(false); + this.mShowSearchGroup.Controls.Add(this.mShowOnHotKey); + this.mShowSearchGroup.Controls.Add(this.mShowHotKeyControl); + this.mShowSearchGroup.Controls.Add(this.mShowOnIPC); + this.mShowSearchGroup.Controls.Add(this.mShowOnFailedSearch); + this.mShowSearchGroup.Location = new System.Drawing.Point(4, 5); + this.mShowSearchGroup.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowSearchGroup.Name = "mShowSearchGroup"; + this.mShowSearchGroup.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowSearchGroup.Size = new System.Drawing.Size(549, 182); + this.mShowSearchGroup.TabIndex = 0; + this.mShowSearchGroup.TabStop = false; + this.mShowSearchGroup.Text = "Show search window"; + // + // mShowOnHotKey + // + this.mShowOnHotKey.AutoSize = true; + this.mShowOnHotKey.Location = new System.Drawing.Point(15, 68); + this.mShowOnHotKey.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowOnHotKey.Name = "mShowOnHotKey"; + this.mShowOnHotKey.Size = new System.Drawing.Size(343, 24); + this.mShowOnHotKey.TabIndex = 1; + this.mShowOnHotKey.Text = "Show when system-wide &hot key is pressed:"; + this.mShowOnHotKey.UseVisualStyleBackColor = true; + this.mShowOnHotKey.CheckedChanged += new System.EventHandler(this.mShowOnHotKey_CheckedChanged); + // + // mShowHotKeyControl + // + this.mShowHotKeyControl.Location = new System.Drawing.Point(45, 100); + this.mShowHotKeyControl.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowHotKeyControl.Name = "mShowHotKeyControl"; + this.mShowHotKeyControl.Size = new System.Drawing.Size(182, 26); + this.mShowHotKeyControl.TabIndex = 2; + // + // mShowOnIPC + // + this.mShowOnIPC.AutoSize = true; + this.mShowOnIPC.Location = new System.Drawing.Point(15, 143); + this.mShowOnIPC.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowOnIPC.Name = "mShowOnIPC"; + this.mShowOnIPC.Size = new System.Drawing.Size(574, 24); + this.mShowOnIPC.TabIndex = 3; + this.mShowOnIPC.Text = "Show when \"/e1:AutoTypeSearch\" is passed as a ¶meter to KeePass.exe"; + this.mShowOnIPC.UseVisualStyleBackColor = true; + // + // mShowOnFailedSearch + // + this.mShowOnFailedSearch.AutoSize = true; + this.mShowOnFailedSearch.Location = new System.Drawing.Point(15, 32); + this.mShowOnFailedSearch.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowOnFailedSearch.Name = "mShowOnFailedSearch"; + this.mShowOnFailedSearch.Size = new System.Drawing.Size(408, 24); + this.mShowOnFailedSearch.TabIndex = 0; + this.mShowOnFailedSearch.Text = "Show &automatically if global auto-type finds no match"; + this.mShowOnFailedSearch.UseVisualStyleBackColor = true; + // + // mCustomSequences + // + this.mCustomSequences.Controls.Add(this.mAdditionalSequences); + this.mCustomSequences.Controls.Add(this.mAdditionalSequencesTitle); + this.mCustomSequences.Controls.Add(this.mAllowCustomSequences); + this.mCustomSequences.Location = new System.Drawing.Point(4, 468); + this.mCustomSequences.Name = "mCustomSequences"; + this.mCustomSequences.Size = new System.Drawing.Size(764, 206); + this.mCustomSequences.TabIndex = 4; + this.mCustomSequences.TabStop = false; + this.mCustomSequences.Text = "Custom Sequences"; + // + // mAdditionalSequencesTitle + // + this.mAdditionalSequencesTitle.AutoSize = true; + this.mAdditionalSequencesTitle.Location = new System.Drawing.Point(6, 61); + this.mAdditionalSequencesTitle.Name = "mAdditionalSequencesTitle"; + this.mAdditionalSequencesTitle.Size = new System.Drawing.Size(221, 20); + this.mAdditionalSequencesTitle.TabIndex = 8; + this.mAdditionalSequencesTitle.Text = "Add&itional custom sequences:"; + // + // mAllowCustomSequences + // + this.mAllowCustomSequences.AutoSize = true; + this.mAllowCustomSequences.Location = new System.Drawing.Point(7, 27); + this.mAllowCustomSequences.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mAllowCustomSequences.Name = "mAllowCustomSequences"; + this.mAllowCustomSequences.Size = new System.Drawing.Size(281, 24); + this.mAllowCustomSequences.TabIndex = 6; + this.mAllowCustomSequences.Text = "Allow &custom auto-type sequences"; + this.mAllowCustomSequences.UseVisualStyleBackColor = true; + // + // mAdditionalSequences + // + this.mAdditionalSequences.FormattingEnabled = true; + this.mAdditionalSequences.ItemHeight = 20; + this.mAdditionalSequences.Location = new System.Drawing.Point(7, 85); + this.mAdditionalSequences.Name = "mAdditionalSequences"; + this.mAdditionalSequences.Size = new System.Drawing.Size(743, 104); + this.mAdditionalSequences.TabIndex = 9; + // + // Options + // + this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.mPanel); + this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.Name = "Options"; + this.Size = new System.Drawing.Size(834, 499); + this.Paint += new System.Windows.Forms.PaintEventHandler(this.Options_Paint); + searchInGroup.ResumeLayout(false); + searchInGroup.PerformLayout(); + actionsGroup.ResumeLayout(false); + actionsGroup.PerformLayout(); + searchOptionsGroup.ResumeLayout(false); + searchOptionsGroup.PerformLayout(); + this.mPanel.ResumeLayout(false); + this.mShowSearchGroup.ResumeLayout(false); + this.mShowSearchGroup.PerformLayout(); + this.mCustomSequences.ResumeLayout(false); + this.mCustomSequences.PerformLayout(); + this.ResumeLayout(false); } #endregion - private KeePass.UI.HotKeyControlEx mShowHotKeyControl; + private System.Windows.Forms.Panel mPanel; + private System.Windows.Forms.GroupBox mShowSearchGroup; private System.Windows.Forms.CheckBox mShowOnHotKey; + private HotKeyControlEx mShowHotKeyControl; private System.Windows.Forms.CheckBox mShowOnIPC; private System.Windows.Forms.CheckBox mShowOnFailedSearch; + private System.Windows.Forms.GroupBox mCustomSequences; + private System.Windows.Forms.Label mAdditionalSequencesTitle; + private System.Windows.Forms.CheckBox mAllowCustomSequences; + private System.Windows.Forms.CheckBox mResolveReferences; + private System.Windows.Forms.CheckBox mExcludeExpired; private System.Windows.Forms.CheckBox mCaseSensitive; + private System.Windows.Forms.ComboBox mAlternativeAction; + private System.Windows.Forms.ComboBox mDefaultAction; private System.Windows.Forms.CheckBox mSearchInTags; private System.Windows.Forms.CheckBox mSearchInOtherFields; private System.Windows.Forms.CheckBox mSearchInNotes; private System.Windows.Forms.CheckBox mSearchInUrl; private System.Windows.Forms.CheckBox mSearchInUserName; private System.Windows.Forms.CheckBox mSearchInTitle; - private System.Windows.Forms.CheckBox mResolveReferences; - private System.Windows.Forms.CheckBox mExcludeExpired; - private System.Windows.Forms.ComboBox mAlternativeAction; - private System.Windows.Forms.ComboBox mDefaultAction; - private System.Windows.Forms.GroupBox mShowSearchGroup; - + private System.Windows.Forms.ListBox mAdditionalSequences; } } diff --git a/AutoTypeSearch/Options.cs b/AutoTypeSearch/Options.cs index b99561c..e8e8583 100755 --- a/AutoTypeSearch/Options.cs +++ b/AutoTypeSearch/Options.cs @@ -1,7 +1,9 @@ using System; using System.Configuration; using System.Diagnostics; +using System.Drawing; using System.Linq; +using System.Net.NetworkInformation; using System.Windows.Forms; using AutoTypeSearch.Properties; using KeePass.Forms; @@ -58,6 +60,21 @@ mDefaultAction.SelectedIndex = (int)Settings.Default.DefaultAction; mAlternativeAction.SelectedIndex = (int)Settings.Default.AlternativeAction; + + mAdditionalSequences.BeginUpdate(); + mAdditionalSequences.Items.Clear(); + + if (Settings.Default.AdditionalCustomSequences != null) + { + foreach (string s in Settings.Default.AdditionalCustomSequences) + { + mAdditionalSequences.Items.Add(s); + } + } + + mAdditionalSequences.Items.Add("new sequence"); + + mAdditionalSequences.EndUpdate(); } private Keys ShowHotKey @@ -187,5 +204,16 @@ options.ApplySettings(); }; } + + private void Options_Paint(object sender, PaintEventArgs e) + { + Rectangle r = new Rectangle(mPanel.Location, mPanel.ClientSize); + //r.Offset(mPanel.Location); + r.X -= 1; + r.Y -= 1; + r.Width += 2 + SystemInformation.VerticalScrollBarWidth; + r.Height += 2; + ControlPaint.DrawBorder(e.Graphics, r, SystemColors.GrayText, ButtonBorderStyle.Solid); + } } } diff --git a/AutoTypeSearch/Options.resx b/AutoTypeSearch/Options.resx index 4601c27..9ed14a5 100755 --- a/AutoTypeSearch/Options.resx +++ b/AutoTypeSearch/Options.resx @@ -117,9 +117,6 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - False - False @@ -132,4 +129,7 @@ False + + False + \ No newline at end of file diff --git a/AutoTypeSearch/Properties/Settings.Designer.cs b/AutoTypeSearch/Properties/Settings.Designer.cs index 62e2cdb..c67dd88 100755 --- a/AutoTypeSearch/Properties/Settings.Designer.cs +++ b/AutoTypeSearch/Properties/Settings.Designer.cs @@ -12,7 +12,7 @@ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.7.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.5.0.0")] internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); @@ -214,5 +214,16 @@ this["ShowHotKey"] = value; } } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Collections.Specialized.StringCollection AdditionalCustomSequences { + get { + return ((global::System.Collections.Specialized.StringCollection)(this["AdditionalCustomSequences"])); + } + set { + this["AdditionalCustomSequences"] = value; + } + } } } diff --git a/AutoTypeSearch/Properties/Settings.settings b/AutoTypeSearch/Properties/Settings.settings index edcae1b..cc9af5a 100755 --- a/AutoTypeSearch/Properties/Settings.settings +++ b/AutoTypeSearch/Properties/Settings.settings @@ -50,5 +50,8 @@ None + + + \ No newline at end of file diff --git a/AutoTypeSearch/AutoTypeSearch.csproj b/AutoTypeSearch/AutoTypeSearch.csproj index 6145b08..c201baf 100755 --- a/AutoTypeSearch/AutoTypeSearch.csproj +++ b/AutoTypeSearch/AutoTypeSearch.csproj @@ -1,4 +1,4 @@ - + diff --git a/AutoTypeSearch/Options.Designer.cs b/AutoTypeSearch/Options.Designer.cs index 4886b6d..95c6992 100755 --- a/AutoTypeSearch/Options.Designer.cs +++ b/AutoTypeSearch/Options.Designer.cs @@ -30,295 +30,387 @@ /// private void InitializeComponent() { - System.Windows.Forms.GroupBox searchOptionsGroup; - System.Windows.Forms.GroupBox searchInGroup; - System.Windows.Forms.GroupBox actionsGroup; - System.Windows.Forms.Label alternativeActionLabel; - System.Windows.Forms.Label defaultActionLabel; - this.mResolveReferences = new System.Windows.Forms.CheckBox(); - this.mExcludeExpired = new System.Windows.Forms.CheckBox(); - this.mCaseSensitive = new System.Windows.Forms.CheckBox(); - this.mSearchInTags = new System.Windows.Forms.CheckBox(); - this.mSearchInOtherFields = new System.Windows.Forms.CheckBox(); - this.mSearchInNotes = new System.Windows.Forms.CheckBox(); - this.mSearchInUrl = new System.Windows.Forms.CheckBox(); - this.mSearchInUserName = new System.Windows.Forms.CheckBox(); - this.mSearchInTitle = new System.Windows.Forms.CheckBox(); - this.mAlternativeAction = new System.Windows.Forms.ComboBox(); - this.mDefaultAction = new System.Windows.Forms.ComboBox(); - this.mShowHotKeyControl = new KeePass.UI.HotKeyControlEx(); - this.mShowSearchGroup = new System.Windows.Forms.GroupBox(); - this.mShowOnHotKey = new System.Windows.Forms.CheckBox(); - this.mShowOnIPC = new System.Windows.Forms.CheckBox(); - this.mShowOnFailedSearch = new System.Windows.Forms.CheckBox(); - searchOptionsGroup = new System.Windows.Forms.GroupBox(); - searchInGroup = new System.Windows.Forms.GroupBox(); - actionsGroup = new System.Windows.Forms.GroupBox(); - alternativeActionLabel = new System.Windows.Forms.Label(); - defaultActionLabel = new System.Windows.Forms.Label(); - searchOptionsGroup.SuspendLayout(); - searchInGroup.SuspendLayout(); - actionsGroup.SuspendLayout(); - this.mShowSearchGroup.SuspendLayout(); - this.SuspendLayout(); - // - // searchOptionsGroup - // - searchOptionsGroup.Controls.Add(this.mResolveReferences); - searchOptionsGroup.Controls.Add(this.mExcludeExpired); - searchOptionsGroup.Controls.Add(this.mCaseSensitive); - searchOptionsGroup.Location = new System.Drawing.Point(6, 189); - searchOptionsGroup.Name = "searchOptionsGroup"; - searchOptionsGroup.Size = new System.Drawing.Size(540, 45); - searchOptionsGroup.TabIndex = 2; - searchOptionsGroup.TabStop = false; - searchOptionsGroup.Text = "Search options"; - // - // mResolveReferences - // - this.mResolveReferences.AutoSize = true; - this.mResolveReferences.Location = new System.Drawing.Point(251, 20); - this.mResolveReferences.Name = "mResolveReferences"; - this.mResolveReferences.Size = new System.Drawing.Size(170, 17); - this.mResolveReferences.TabIndex = 2; - this.mResolveReferences.Text = "Resolve fiel&d references (slow)"; - this.mResolveReferences.UseVisualStyleBackColor = true; - // - // mExcludeExpired - // - this.mExcludeExpired.AutoSize = true; - this.mExcludeExpired.Location = new System.Drawing.Point(108, 20); - this.mExcludeExpired.Name = "mExcludeExpired"; - this.mExcludeExpired.Size = new System.Drawing.Size(135, 17); - this.mExcludeExpired.TabIndex = 1; - this.mExcludeExpired.Text = "Exclude &expired entries"; - this.mExcludeExpired.UseVisualStyleBackColor = true; - // - // mCaseSensitive - // - this.mCaseSensitive.AutoSize = true; - this.mCaseSensitive.Location = new System.Drawing.Point(10, 20); - this.mCaseSensitive.Name = "mCaseSensitive"; - this.mCaseSensitive.Size = new System.Drawing.Size(94, 17); - this.mCaseSensitive.TabIndex = 0; - this.mCaseSensitive.Text = "Case-sensiti&ve"; - this.mCaseSensitive.UseVisualStyleBackColor = true; - // - // searchInGroup - // - searchInGroup.Controls.Add(this.mSearchInTags); - searchInGroup.Controls.Add(this.mSearchInOtherFields); - searchInGroup.Controls.Add(this.mSearchInNotes); - searchInGroup.Controls.Add(this.mSearchInUrl); - searchInGroup.Controls.Add(this.mSearchInUserName); - searchInGroup.Controls.Add(this.mSearchInTitle); - searchInGroup.Location = new System.Drawing.Point(6, 136); - searchInGroup.Name = "searchInGroup"; - searchInGroup.Size = new System.Drawing.Size(540, 47); - searchInGroup.TabIndex = 1; - searchInGroup.TabStop = false; - searchInGroup.Text = "Search in"; - // - // mSearchInTags - // - this.mSearchInTags.AutoSize = true; - this.mSearchInTags.Location = new System.Drawing.Point(258, 19); - this.mSearchInTags.Name = "mSearchInTags"; - this.mSearchInTags.Size = new System.Drawing.Size(50, 17); - this.mSearchInTags.TabIndex = 4; - this.mSearchInTags.Text = "Ta&gs"; - this.mSearchInTags.UseVisualStyleBackColor = true; - // - // mSearchInOtherFields - // - this.mSearchInOtherFields.AutoSize = true; - this.mSearchInOtherFields.Location = new System.Drawing.Point(314, 19); - this.mSearchInOtherFields.Name = "mSearchInOtherFields"; - this.mSearchInOtherFields.Size = new System.Drawing.Size(139, 17); - this.mSearchInOtherFields.TabIndex = 5; - this.mSearchInOtherFields.Text = "&Other unprotected fields"; - this.mSearchInOtherFields.UseVisualStyleBackColor = true; - // - // mSearchInNotes - // - this.mSearchInNotes.AutoSize = true; - this.mSearchInNotes.Location = new System.Drawing.Point(198, 19); - this.mSearchInNotes.Name = "mSearchInNotes"; - this.mSearchInNotes.Size = new System.Drawing.Size(54, 17); - this.mSearchInNotes.TabIndex = 3; - this.mSearchInNotes.Text = "Note&s"; - this.mSearchInNotes.UseVisualStyleBackColor = true; - // - // mSearchInUrl - // - this.mSearchInUrl.AutoSize = true; - this.mSearchInUrl.Location = new System.Drawing.Point(144, 19); - this.mSearchInUrl.Name = "mSearchInUrl"; - this.mSearchInUrl.Size = new System.Drawing.Size(48, 17); - this.mSearchInUrl.TabIndex = 2; - this.mSearchInUrl.Text = "&URL"; - this.mSearchInUrl.UseVisualStyleBackColor = true; - // - // mSearchInUserName - // - this.mSearchInUserName.AutoSize = true; - this.mSearchInUserName.Location = new System.Drawing.Point(61, 19); - this.mSearchInUserName.Name = "mSearchInUserName"; - this.mSearchInUserName.Size = new System.Drawing.Size(77, 17); - this.mSearchInUserName.TabIndex = 1; - this.mSearchInUserName.Text = "User &name"; - this.mSearchInUserName.UseVisualStyleBackColor = true; - // - // mSearchInTitle - // - this.mSearchInTitle.AutoSize = true; - this.mSearchInTitle.Location = new System.Drawing.Point(9, 19); - this.mSearchInTitle.Name = "mSearchInTitle"; - this.mSearchInTitle.Size = new System.Drawing.Size(46, 17); - this.mSearchInTitle.TabIndex = 0; - this.mSearchInTitle.Text = "&Title"; - this.mSearchInTitle.UseVisualStyleBackColor = true; - // - // actionsGroup - // - actionsGroup.Controls.Add(this.mAlternativeAction); - actionsGroup.Controls.Add(this.mDefaultAction); - actionsGroup.Controls.Add(alternativeActionLabel); - actionsGroup.Controls.Add(defaultActionLabel); - actionsGroup.Location = new System.Drawing.Point(6, 241); - actionsGroup.Name = "actionsGroup"; - actionsGroup.Size = new System.Drawing.Size(540, 67); - actionsGroup.TabIndex = 3; - actionsGroup.TabStop = false; - actionsGroup.Text = "Actions"; - // - // mAlternativeAction - // - this.mAlternativeAction.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.mAlternativeAction.Location = new System.Drawing.Point(288, 37); - this.mAlternativeAction.Name = "mAlternativeAction"; - this.mAlternativeAction.Size = new System.Drawing.Size(240, 21); - this.mAlternativeAction.TabIndex = 3; - // - // mDefaultAction - // - this.mDefaultAction.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.mDefaultAction.Location = new System.Drawing.Point(11, 37); - this.mDefaultAction.Name = "mDefaultAction"; - this.mDefaultAction.Size = new System.Drawing.Size(240, 21); - this.mDefaultAction.TabIndex = 1; - // - // alternativeActionLabel - // - alternativeActionLabel.AutoSize = true; - alternativeActionLabel.Location = new System.Drawing.Point(285, 20); - alternativeActionLabel.Name = "alternativeActionLabel"; - alternativeActionLabel.Size = new System.Drawing.Size(159, 13); - alternativeActionLabel.TabIndex = 2; - alternativeActionLabel.Text = "A<ernative action (Shift + Enter):"; - // - // defaultActionLabel - // - defaultActionLabel.AutoSize = true; - defaultActionLabel.Location = new System.Drawing.Point(8, 20); - defaultActionLabel.Name = "defaultActionLabel"; - defaultActionLabel.Size = new System.Drawing.Size(110, 13); - defaultActionLabel.TabIndex = 0; - defaultActionLabel.Text = "De&fault action (Enter):"; - // - // mShowHotKeyControl - // - this.mShowHotKeyControl.Location = new System.Drawing.Point(30, 65); - this.mShowHotKeyControl.Name = "mShowHotKeyControl"; - this.mShowHotKeyControl.Size = new System.Drawing.Size(123, 20); - this.mShowHotKeyControl.TabIndex = 2; - // - // mShowSearchGroup - // - this.mShowSearchGroup.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + System.Windows.Forms.GroupBox searchInGroup; + System.Windows.Forms.GroupBox actionsGroup; + System.Windows.Forms.Label alternativeActionLabel; + System.Windows.Forms.Label defaultActionLabel; + System.Windows.Forms.GroupBox searchOptionsGroup; + this.mSearchInTags = new System.Windows.Forms.CheckBox(); + this.mSearchInOtherFields = new System.Windows.Forms.CheckBox(); + this.mSearchInNotes = new System.Windows.Forms.CheckBox(); + this.mSearchInUrl = new System.Windows.Forms.CheckBox(); + this.mSearchInUserName = new System.Windows.Forms.CheckBox(); + this.mSearchInTitle = new System.Windows.Forms.CheckBox(); + this.mAlternativeAction = new System.Windows.Forms.ComboBox(); + this.mDefaultAction = new System.Windows.Forms.ComboBox(); + this.mResolveReferences = new System.Windows.Forms.CheckBox(); + this.mExcludeExpired = new System.Windows.Forms.CheckBox(); + this.mCaseSensitive = new System.Windows.Forms.CheckBox(); + this.mPanel = new System.Windows.Forms.Panel(); + this.mShowSearchGroup = new System.Windows.Forms.GroupBox(); + this.mShowOnHotKey = new System.Windows.Forms.CheckBox(); + this.mShowHotKeyControl = new KeePass.UI.HotKeyControlEx(); + this.mShowOnIPC = new System.Windows.Forms.CheckBox(); + this.mShowOnFailedSearch = new System.Windows.Forms.CheckBox(); + this.mCustomSequences = new System.Windows.Forms.GroupBox(); + this.mAdditionalSequencesTitle = new System.Windows.Forms.Label(); + this.mAllowCustomSequences = new System.Windows.Forms.CheckBox(); + this.mAdditionalSequences = new System.Windows.Forms.ListBox(); + searchInGroup = new System.Windows.Forms.GroupBox(); + actionsGroup = new System.Windows.Forms.GroupBox(); + alternativeActionLabel = new System.Windows.Forms.Label(); + defaultActionLabel = new System.Windows.Forms.Label(); + searchOptionsGroup = new System.Windows.Forms.GroupBox(); + searchInGroup.SuspendLayout(); + actionsGroup.SuspendLayout(); + searchOptionsGroup.SuspendLayout(); + this.mPanel.SuspendLayout(); + this.mShowSearchGroup.SuspendLayout(); + this.mCustomSequences.SuspendLayout(); + this.SuspendLayout(); + // + // searchInGroup + // + searchInGroup.Controls.Add(this.mSearchInTags); + searchInGroup.Controls.Add(this.mSearchInOtherFields); + searchInGroup.Controls.Add(this.mSearchInNotes); + searchInGroup.Controls.Add(this.mSearchInUrl); + searchInGroup.Controls.Add(this.mSearchInUserName); + searchInGroup.Controls.Add(this.mSearchInTitle); + searchInGroup.Location = new System.Drawing.Point(4, 196); + searchInGroup.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + searchInGroup.Name = "searchInGroup"; + searchInGroup.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); + searchInGroup.Size = new System.Drawing.Size(764, 72); + searchInGroup.TabIndex = 1; + searchInGroup.TabStop = false; + searchInGroup.Text = "Search in"; + // + // mSearchInTags + // + this.mSearchInTags.AutoSize = true; + this.mSearchInTags.Location = new System.Drawing.Point(387, 29); + this.mSearchInTags.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInTags.Name = "mSearchInTags"; + this.mSearchInTags.Size = new System.Drawing.Size(70, 24); + this.mSearchInTags.TabIndex = 4; + this.mSearchInTags.Text = "Ta&gs"; + this.mSearchInTags.UseVisualStyleBackColor = true; + // + // mSearchInOtherFields + // + this.mSearchInOtherFields.AutoSize = true; + this.mSearchInOtherFields.Location = new System.Drawing.Point(471, 29); + this.mSearchInOtherFields.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInOtherFields.Name = "mSearchInOtherFields"; + this.mSearchInOtherFields.Size = new System.Drawing.Size(206, 24); + this.mSearchInOtherFields.TabIndex = 5; + this.mSearchInOtherFields.Text = "&Other unprotected fields"; + this.mSearchInOtherFields.UseVisualStyleBackColor = true; + // + // mSearchInNotes + // + this.mSearchInNotes.AutoSize = true; + this.mSearchInNotes.Location = new System.Drawing.Point(297, 29); + this.mSearchInNotes.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInNotes.Name = "mSearchInNotes"; + this.mSearchInNotes.Size = new System.Drawing.Size(77, 24); + this.mSearchInNotes.TabIndex = 3; + this.mSearchInNotes.Text = "Note&s"; + this.mSearchInNotes.UseVisualStyleBackColor = true; + // + // mSearchInUrl + // + this.mSearchInUrl.AutoSize = true; + this.mSearchInUrl.Location = new System.Drawing.Point(216, 29); + this.mSearchInUrl.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInUrl.Name = "mSearchInUrl"; + this.mSearchInUrl.Size = new System.Drawing.Size(68, 24); + this.mSearchInUrl.TabIndex = 2; + this.mSearchInUrl.Text = "&URL"; + this.mSearchInUrl.UseVisualStyleBackColor = true; + // + // mSearchInUserName + // + this.mSearchInUserName.AutoSize = true; + this.mSearchInUserName.Location = new System.Drawing.Point(92, 29); + this.mSearchInUserName.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInUserName.Name = "mSearchInUserName"; + this.mSearchInUserName.Size = new System.Drawing.Size(113, 24); + this.mSearchInUserName.TabIndex = 1; + this.mSearchInUserName.Text = "User &name"; + this.mSearchInUserName.UseVisualStyleBackColor = true; + // + // mSearchInTitle + // + this.mSearchInTitle.AutoSize = true; + this.mSearchInTitle.Location = new System.Drawing.Point(14, 29); + this.mSearchInTitle.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInTitle.Name = "mSearchInTitle"; + this.mSearchInTitle.Size = new System.Drawing.Size(64, 24); + this.mSearchInTitle.TabIndex = 0; + this.mSearchInTitle.Text = "&Title"; + this.mSearchInTitle.UseVisualStyleBackColor = true; + // + // actionsGroup + // + actionsGroup.Controls.Add(this.mAlternativeAction); + actionsGroup.Controls.Add(this.mDefaultAction); + actionsGroup.Controls.Add(alternativeActionLabel); + actionsGroup.Controls.Add(defaultActionLabel); + actionsGroup.Location = new System.Drawing.Point(4, 357); + actionsGroup.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + actionsGroup.Name = "actionsGroup"; + actionsGroup.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); + actionsGroup.Size = new System.Drawing.Size(764, 103); + actionsGroup.TabIndex = 3; + actionsGroup.TabStop = false; + actionsGroup.Text = "Actions"; + // + // mAlternativeAction + // + this.mAlternativeAction.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.mAlternativeAction.Location = new System.Drawing.Point(392, 57); + this.mAlternativeAction.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mAlternativeAction.Name = "mAlternativeAction"; + this.mAlternativeAction.Size = new System.Drawing.Size(358, 28); + this.mAlternativeAction.TabIndex = 3; + // + // mDefaultAction + // + this.mDefaultAction.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.mDefaultAction.Location = new System.Drawing.Point(16, 57); + this.mDefaultAction.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mDefaultAction.Name = "mDefaultAction"; + this.mDefaultAction.Size = new System.Drawing.Size(358, 28); + this.mDefaultAction.TabIndex = 1; + // + // alternativeActionLabel + // + alternativeActionLabel.AutoSize = true; + alternativeActionLabel.Location = new System.Drawing.Point(388, 31); + alternativeActionLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + alternativeActionLabel.Name = "alternativeActionLabel"; + alternativeActionLabel.Size = new System.Drawing.Size(238, 20); + alternativeActionLabel.TabIndex = 2; + alternativeActionLabel.Text = "A<ernative action (Shift + Enter):"; + // + // defaultActionLabel + // + defaultActionLabel.AutoSize = true; + defaultActionLabel.Location = new System.Drawing.Point(12, 31); + defaultActionLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + defaultActionLabel.Name = "defaultActionLabel"; + defaultActionLabel.Size = new System.Drawing.Size(165, 20); + defaultActionLabel.TabIndex = 0; + defaultActionLabel.Text = "De&fault action (Enter):"; + // + // searchOptionsGroup + // + searchOptionsGroup.Controls.Add(this.mResolveReferences); + searchOptionsGroup.Controls.Add(this.mExcludeExpired); + searchOptionsGroup.Controls.Add(this.mCaseSensitive); + searchOptionsGroup.Location = new System.Drawing.Point(4, 278); + searchOptionsGroup.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + searchOptionsGroup.Name = "searchOptionsGroup"; + searchOptionsGroup.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); + searchOptionsGroup.Size = new System.Drawing.Size(764, 69); + searchOptionsGroup.TabIndex = 2; + searchOptionsGroup.TabStop = false; + searchOptionsGroup.Text = "Search options"; + // + // mResolveReferences + // + this.mResolveReferences.AutoSize = true; + this.mResolveReferences.Location = new System.Drawing.Point(376, 31); + this.mResolveReferences.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mResolveReferences.Name = "mResolveReferences"; + this.mResolveReferences.Size = new System.Drawing.Size(250, 24); + this.mResolveReferences.TabIndex = 2; + this.mResolveReferences.Text = "Resolve fiel&d references (slow)"; + this.mResolveReferences.UseVisualStyleBackColor = true; + // + // mExcludeExpired + // + this.mExcludeExpired.AutoSize = true; + this.mExcludeExpired.Location = new System.Drawing.Point(162, 31); + this.mExcludeExpired.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mExcludeExpired.Name = "mExcludeExpired"; + this.mExcludeExpired.Size = new System.Drawing.Size(198, 24); + this.mExcludeExpired.TabIndex = 1; + this.mExcludeExpired.Text = "Exclude &expired entries"; + this.mExcludeExpired.UseVisualStyleBackColor = true; + // + // mCaseSensitive + // + this.mCaseSensitive.AutoSize = true; + this.mCaseSensitive.Location = new System.Drawing.Point(15, 31); + this.mCaseSensitive.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mCaseSensitive.Name = "mCaseSensitive"; + this.mCaseSensitive.Size = new System.Drawing.Size(138, 24); + this.mCaseSensitive.TabIndex = 0; + this.mCaseSensitive.Text = "Case-sensiti&ve"; + this.mCaseSensitive.UseVisualStyleBackColor = true; + // + // mPanel + // + this.mPanel.AutoScroll = true; + this.mPanel.Controls.Add(this.mShowSearchGroup); + this.mPanel.Controls.Add(this.mCustomSequences); + this.mPanel.Controls.Add(searchOptionsGroup); + this.mPanel.Controls.Add(actionsGroup); + this.mPanel.Controls.Add(searchInGroup); + this.mPanel.Location = new System.Drawing.Point(9, 18); + this.mPanel.Name = "mPanel"; + this.mPanel.Size = new System.Drawing.Size(808, 463); + this.mPanel.TabIndex = 5; + // + // mShowSearchGroup + // + this.mShowSearchGroup.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.mShowSearchGroup.Controls.Add(this.mShowOnHotKey); - this.mShowSearchGroup.Controls.Add(this.mShowHotKeyControl); - this.mShowSearchGroup.Controls.Add(this.mShowOnIPC); - this.mShowSearchGroup.Controls.Add(this.mShowOnFailedSearch); - this.mShowSearchGroup.Location = new System.Drawing.Point(6, 12); - this.mShowSearchGroup.Name = "mShowSearchGroup"; - this.mShowSearchGroup.Size = new System.Drawing.Size(540, 118); - this.mShowSearchGroup.TabIndex = 0; - this.mShowSearchGroup.TabStop = false; - this.mShowSearchGroup.Text = "Show search window"; - // - // mShowOnHotKey - // - this.mShowOnHotKey.AutoSize = true; - this.mShowOnHotKey.Location = new System.Drawing.Point(10, 44); - this.mShowOnHotKey.Name = "mShowOnHotKey"; - this.mShowOnHotKey.Size = new System.Drawing.Size(233, 17); - this.mShowOnHotKey.TabIndex = 1; - this.mShowOnHotKey.Text = "Show when system-wide &hot key is pressed:"; - this.mShowOnHotKey.UseVisualStyleBackColor = true; - this.mShowOnHotKey.CheckedChanged += new System.EventHandler(this.mShowOnHotKey_CheckedChanged); - // - // mShowOnIPC - // - this.mShowOnIPC.AutoSize = true; - this.mShowOnIPC.Location = new System.Drawing.Point(10, 93); - this.mShowOnIPC.Name = "mShowOnIPC"; - this.mShowOnIPC.Size = new System.Drawing.Size(386, 17); - this.mShowOnIPC.TabIndex = 3; - this.mShowOnIPC.Text = "Show when \"/e1:AutoTypeSearch\" is passed as a ¶meter to KeePass.exe"; - this.mShowOnIPC.UseVisualStyleBackColor = true; - // - // mShowOnFailedSearch - // - this.mShowOnFailedSearch.AutoSize = true; - this.mShowOnFailedSearch.Location = new System.Drawing.Point(10, 21); - this.mShowOnFailedSearch.Name = "mShowOnFailedSearch"; - this.mShowOnFailedSearch.Size = new System.Drawing.Size(275, 17); - this.mShowOnFailedSearch.TabIndex = 0; - this.mShowOnFailedSearch.Text = "Show &automatically if global auto-type finds no match"; - this.mShowOnFailedSearch.UseVisualStyleBackColor = true; - // - // Options - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(actionsGroup); - this.Controls.Add(searchInGroup); - this.Controls.Add(searchOptionsGroup); - this.Controls.Add(this.mShowSearchGroup); - this.Name = "Options"; - this.Size = new System.Drawing.Size(551, 311); - searchOptionsGroup.ResumeLayout(false); - searchOptionsGroup.PerformLayout(); - searchInGroup.ResumeLayout(false); - searchInGroup.PerformLayout(); - actionsGroup.ResumeLayout(false); - actionsGroup.PerformLayout(); - this.mShowSearchGroup.ResumeLayout(false); - this.mShowSearchGroup.PerformLayout(); - this.ResumeLayout(false); + this.mShowSearchGroup.Controls.Add(this.mShowOnHotKey); + this.mShowSearchGroup.Controls.Add(this.mShowHotKeyControl); + this.mShowSearchGroup.Controls.Add(this.mShowOnIPC); + this.mShowSearchGroup.Controls.Add(this.mShowOnFailedSearch); + this.mShowSearchGroup.Location = new System.Drawing.Point(4, 5); + this.mShowSearchGroup.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowSearchGroup.Name = "mShowSearchGroup"; + this.mShowSearchGroup.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowSearchGroup.Size = new System.Drawing.Size(549, 182); + this.mShowSearchGroup.TabIndex = 0; + this.mShowSearchGroup.TabStop = false; + this.mShowSearchGroup.Text = "Show search window"; + // + // mShowOnHotKey + // + this.mShowOnHotKey.AutoSize = true; + this.mShowOnHotKey.Location = new System.Drawing.Point(15, 68); + this.mShowOnHotKey.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowOnHotKey.Name = "mShowOnHotKey"; + this.mShowOnHotKey.Size = new System.Drawing.Size(343, 24); + this.mShowOnHotKey.TabIndex = 1; + this.mShowOnHotKey.Text = "Show when system-wide &hot key is pressed:"; + this.mShowOnHotKey.UseVisualStyleBackColor = true; + this.mShowOnHotKey.CheckedChanged += new System.EventHandler(this.mShowOnHotKey_CheckedChanged); + // + // mShowHotKeyControl + // + this.mShowHotKeyControl.Location = new System.Drawing.Point(45, 100); + this.mShowHotKeyControl.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowHotKeyControl.Name = "mShowHotKeyControl"; + this.mShowHotKeyControl.Size = new System.Drawing.Size(182, 26); + this.mShowHotKeyControl.TabIndex = 2; + // + // mShowOnIPC + // + this.mShowOnIPC.AutoSize = true; + this.mShowOnIPC.Location = new System.Drawing.Point(15, 143); + this.mShowOnIPC.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowOnIPC.Name = "mShowOnIPC"; + this.mShowOnIPC.Size = new System.Drawing.Size(574, 24); + this.mShowOnIPC.TabIndex = 3; + this.mShowOnIPC.Text = "Show when \"/e1:AutoTypeSearch\" is passed as a ¶meter to KeePass.exe"; + this.mShowOnIPC.UseVisualStyleBackColor = true; + // + // mShowOnFailedSearch + // + this.mShowOnFailedSearch.AutoSize = true; + this.mShowOnFailedSearch.Location = new System.Drawing.Point(15, 32); + this.mShowOnFailedSearch.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowOnFailedSearch.Name = "mShowOnFailedSearch"; + this.mShowOnFailedSearch.Size = new System.Drawing.Size(408, 24); + this.mShowOnFailedSearch.TabIndex = 0; + this.mShowOnFailedSearch.Text = "Show &automatically if global auto-type finds no match"; + this.mShowOnFailedSearch.UseVisualStyleBackColor = true; + // + // mCustomSequences + // + this.mCustomSequences.Controls.Add(this.mAdditionalSequences); + this.mCustomSequences.Controls.Add(this.mAdditionalSequencesTitle); + this.mCustomSequences.Controls.Add(this.mAllowCustomSequences); + this.mCustomSequences.Location = new System.Drawing.Point(4, 468); + this.mCustomSequences.Name = "mCustomSequences"; + this.mCustomSequences.Size = new System.Drawing.Size(764, 206); + this.mCustomSequences.TabIndex = 4; + this.mCustomSequences.TabStop = false; + this.mCustomSequences.Text = "Custom Sequences"; + // + // mAdditionalSequencesTitle + // + this.mAdditionalSequencesTitle.AutoSize = true; + this.mAdditionalSequencesTitle.Location = new System.Drawing.Point(6, 61); + this.mAdditionalSequencesTitle.Name = "mAdditionalSequencesTitle"; + this.mAdditionalSequencesTitle.Size = new System.Drawing.Size(221, 20); + this.mAdditionalSequencesTitle.TabIndex = 8; + this.mAdditionalSequencesTitle.Text = "Add&itional custom sequences:"; + // + // mAllowCustomSequences + // + this.mAllowCustomSequences.AutoSize = true; + this.mAllowCustomSequences.Location = new System.Drawing.Point(7, 27); + this.mAllowCustomSequences.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mAllowCustomSequences.Name = "mAllowCustomSequences"; + this.mAllowCustomSequences.Size = new System.Drawing.Size(281, 24); + this.mAllowCustomSequences.TabIndex = 6; + this.mAllowCustomSequences.Text = "Allow &custom auto-type sequences"; + this.mAllowCustomSequences.UseVisualStyleBackColor = true; + // + // mAdditionalSequences + // + this.mAdditionalSequences.FormattingEnabled = true; + this.mAdditionalSequences.ItemHeight = 20; + this.mAdditionalSequences.Location = new System.Drawing.Point(7, 85); + this.mAdditionalSequences.Name = "mAdditionalSequences"; + this.mAdditionalSequences.Size = new System.Drawing.Size(743, 104); + this.mAdditionalSequences.TabIndex = 9; + // + // Options + // + this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.mPanel); + this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.Name = "Options"; + this.Size = new System.Drawing.Size(834, 499); + this.Paint += new System.Windows.Forms.PaintEventHandler(this.Options_Paint); + searchInGroup.ResumeLayout(false); + searchInGroup.PerformLayout(); + actionsGroup.ResumeLayout(false); + actionsGroup.PerformLayout(); + searchOptionsGroup.ResumeLayout(false); + searchOptionsGroup.PerformLayout(); + this.mPanel.ResumeLayout(false); + this.mShowSearchGroup.ResumeLayout(false); + this.mShowSearchGroup.PerformLayout(); + this.mCustomSequences.ResumeLayout(false); + this.mCustomSequences.PerformLayout(); + this.ResumeLayout(false); } #endregion - private KeePass.UI.HotKeyControlEx mShowHotKeyControl; + private System.Windows.Forms.Panel mPanel; + private System.Windows.Forms.GroupBox mShowSearchGroup; private System.Windows.Forms.CheckBox mShowOnHotKey; + private HotKeyControlEx mShowHotKeyControl; private System.Windows.Forms.CheckBox mShowOnIPC; private System.Windows.Forms.CheckBox mShowOnFailedSearch; + private System.Windows.Forms.GroupBox mCustomSequences; + private System.Windows.Forms.Label mAdditionalSequencesTitle; + private System.Windows.Forms.CheckBox mAllowCustomSequences; + private System.Windows.Forms.CheckBox mResolveReferences; + private System.Windows.Forms.CheckBox mExcludeExpired; private System.Windows.Forms.CheckBox mCaseSensitive; + private System.Windows.Forms.ComboBox mAlternativeAction; + private System.Windows.Forms.ComboBox mDefaultAction; private System.Windows.Forms.CheckBox mSearchInTags; private System.Windows.Forms.CheckBox mSearchInOtherFields; private System.Windows.Forms.CheckBox mSearchInNotes; private System.Windows.Forms.CheckBox mSearchInUrl; private System.Windows.Forms.CheckBox mSearchInUserName; private System.Windows.Forms.CheckBox mSearchInTitle; - private System.Windows.Forms.CheckBox mResolveReferences; - private System.Windows.Forms.CheckBox mExcludeExpired; - private System.Windows.Forms.ComboBox mAlternativeAction; - private System.Windows.Forms.ComboBox mDefaultAction; - private System.Windows.Forms.GroupBox mShowSearchGroup; - + private System.Windows.Forms.ListBox mAdditionalSequences; } } diff --git a/AutoTypeSearch/Options.cs b/AutoTypeSearch/Options.cs index b99561c..e8e8583 100755 --- a/AutoTypeSearch/Options.cs +++ b/AutoTypeSearch/Options.cs @@ -1,7 +1,9 @@ using System; using System.Configuration; using System.Diagnostics; +using System.Drawing; using System.Linq; +using System.Net.NetworkInformation; using System.Windows.Forms; using AutoTypeSearch.Properties; using KeePass.Forms; @@ -58,6 +60,21 @@ mDefaultAction.SelectedIndex = (int)Settings.Default.DefaultAction; mAlternativeAction.SelectedIndex = (int)Settings.Default.AlternativeAction; + + mAdditionalSequences.BeginUpdate(); + mAdditionalSequences.Items.Clear(); + + if (Settings.Default.AdditionalCustomSequences != null) + { + foreach (string s in Settings.Default.AdditionalCustomSequences) + { + mAdditionalSequences.Items.Add(s); + } + } + + mAdditionalSequences.Items.Add("new sequence"); + + mAdditionalSequences.EndUpdate(); } private Keys ShowHotKey @@ -187,5 +204,16 @@ options.ApplySettings(); }; } + + private void Options_Paint(object sender, PaintEventArgs e) + { + Rectangle r = new Rectangle(mPanel.Location, mPanel.ClientSize); + //r.Offset(mPanel.Location); + r.X -= 1; + r.Y -= 1; + r.Width += 2 + SystemInformation.VerticalScrollBarWidth; + r.Height += 2; + ControlPaint.DrawBorder(e.Graphics, r, SystemColors.GrayText, ButtonBorderStyle.Solid); + } } } diff --git a/AutoTypeSearch/Options.resx b/AutoTypeSearch/Options.resx index 4601c27..9ed14a5 100755 --- a/AutoTypeSearch/Options.resx +++ b/AutoTypeSearch/Options.resx @@ -117,9 +117,6 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - False - False @@ -132,4 +129,7 @@ False + + False + \ No newline at end of file diff --git a/AutoTypeSearch/Properties/Settings.Designer.cs b/AutoTypeSearch/Properties/Settings.Designer.cs index 62e2cdb..c67dd88 100755 --- a/AutoTypeSearch/Properties/Settings.Designer.cs +++ b/AutoTypeSearch/Properties/Settings.Designer.cs @@ -12,7 +12,7 @@ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.7.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.5.0.0")] internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); @@ -214,5 +214,16 @@ this["ShowHotKey"] = value; } } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Collections.Specialized.StringCollection AdditionalCustomSequences { + get { + return ((global::System.Collections.Specialized.StringCollection)(this["AdditionalCustomSequences"])); + } + set { + this["AdditionalCustomSequences"] = value; + } + } } } diff --git a/AutoTypeSearch/Properties/Settings.settings b/AutoTypeSearch/Properties/Settings.settings index edcae1b..cc9af5a 100755 --- a/AutoTypeSearch/Properties/Settings.settings +++ b/AutoTypeSearch/Properties/Settings.settings @@ -50,5 +50,8 @@ None + + + \ No newline at end of file diff --git a/AutoTypeSearch/SearchWindow.Designer.cs b/AutoTypeSearch/SearchWindow.Designer.cs index 8b28309..bca9b31 100755 --- a/AutoTypeSearch/SearchWindow.Designer.cs +++ b/AutoTypeSearch/SearchWindow.Designer.cs @@ -17,191 +17,193 @@ /// private void InitializeComponent() { - this.components = new System.ComponentModel.Container(); - this.mSearch = new System.Windows.Forms.TextBox(); - this.mResults = new System.Windows.Forms.ListBox(); - this.mLayout = new System.Windows.Forms.TableLayoutPanel(); - this.mBanner = new System.Windows.Forms.PictureBox(); - this.mInfoBanner = new System.Windows.Forms.Panel(); - this.mInfoLabel = new System.Windows.Forms.Label(); - this.mInfoBannerImage = new System.Windows.Forms.PictureBox(); - this.mThrobber = new System.Windows.Forms.PictureBox(); - this.mResultsUpdater = new System.Windows.Forms.Timer(this.components); - this.mNoResultsLabel = new System.Windows.Forms.Label(); - this.mSeq = new AutoTypeSearch.WatermarkTextBox(); - this.mLayout.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.mBanner)).BeginInit(); - this.mInfoBanner.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.mInfoBannerImage)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.mThrobber)).BeginInit(); - this.SuspendLayout(); - // - // mSearch - // - this.mSearch.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.mSearch.Location = new System.Drawing.Point(2, 121); - this.mSearch.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.mSearch.Name = "mSearch"; - this.mSearch.Size = new System.Drawing.Size(780, 26); - this.mSearch.TabIndex = 0; - this.mSearch.LocationChanged += new System.EventHandler(this.mSearch_LocationChanged); - this.mSearch.TextChanged += new System.EventHandler(this.mSearch_TextChanged); - // - // mResults - // - this.mResults.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.mResults.Dock = System.Windows.Forms.DockStyle.Fill; - this.mResults.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.mResults.FormattingEnabled = true; - this.mResults.IntegralHeight = false; - this.mResults.Location = new System.Drawing.Point(0, 173); - this.mResults.Margin = new System.Windows.Forms.Padding(0); - this.mResults.Name = "mResults"; - this.mResults.Size = new System.Drawing.Size(784, 249); - this.mResults.TabIndex = 1; - this.mResults.TabStop = false; - this.mResults.MouseClick += new System.Windows.Forms.MouseEventHandler(this.mResults_MouseClick); - this.mResults.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.mResults_DrawItem); - this.mResults.LocationChanged += new System.EventHandler(this.mResults_LocationChanged); - this.mResults.MouseEnter += new System.EventHandler(this.mResults_MouseEnter); - this.mResults.MouseMove += new System.Windows.Forms.MouseEventHandler(this.mResults_MouseMove); - // - // mLayout - // - this.mLayout.ColumnCount = 1; - this.mLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.mLayout.Controls.Add(this.mSearch, 0, 2); - this.mLayout.Controls.Add(this.mBanner, 0, 0); - this.mLayout.Controls.Add(this.mInfoBanner, 0, 1); - this.mLayout.Controls.Add(this.mResults, 0, 4); - this.mLayout.Controls.Add(this.mSeq, 0, 3); - this.mLayout.Dock = System.Windows.Forms.DockStyle.Fill; - this.mLayout.Location = new System.Drawing.Point(0, 0); - this.mLayout.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.mLayout.Name = "mLayout"; - this.mLayout.RowCount = 5; - this.mLayout.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.mLayout.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.mLayout.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.mLayout.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.mLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.mLayout.Size = new System.Drawing.Size(784, 422); - this.mLayout.TabIndex = 2; - // - // mBanner - // - this.mBanner.Dock = System.Windows.Forms.DockStyle.Top; - this.mBanner.Location = new System.Drawing.Point(0, 0); - this.mBanner.Margin = new System.Windows.Forms.Padding(0); - this.mBanner.Name = "mBanner"; - this.mBanner.Size = new System.Drawing.Size(784, 92); - this.mBanner.TabIndex = 3; - this.mBanner.TabStop = false; - this.mBanner.MouseDown += new System.Windows.Forms.MouseEventHandler(this.mBannerImage_MouseDown); - // - // mInfoBanner - // - this.mInfoBanner.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.mInfoBanner.BackColor = System.Drawing.SystemColors.Info; - this.mInfoBanner.Controls.Add(this.mInfoLabel); - this.mInfoBanner.Controls.Add(this.mInfoBannerImage); - this.mInfoBanner.Dock = System.Windows.Forms.DockStyle.Fill; - this.mInfoBanner.Location = new System.Drawing.Point(3, 94); - this.mInfoBanner.Margin = new System.Windows.Forms.Padding(3, 2, 2, 2); - this.mInfoBanner.Name = "mInfoBanner"; - this.mInfoBanner.Size = new System.Drawing.Size(779, 25); - this.mInfoBanner.TabIndex = 8; - // - // mInfoLabel - // - this.mInfoLabel.AutoEllipsis = true; - this.mInfoLabel.Dock = System.Windows.Forms.DockStyle.Fill; - this.mInfoLabel.ForeColor = System.Drawing.SystemColors.InfoText; - this.mInfoLabel.Location = new System.Drawing.Point(24, 0); - this.mInfoLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - this.mInfoLabel.Name = "mInfoLabel"; - this.mInfoLabel.Size = new System.Drawing.Size(755, 25); - this.mInfoLabel.TabIndex = 6; - this.mInfoLabel.Text = "AutoType failed to find"; - // - // mInfoBannerImage - // - this.mInfoBannerImage.Dock = System.Windows.Forms.DockStyle.Left; - this.mInfoBannerImage.Image = global::AutoTypeSearch.Properties.Resources.Info; - this.mInfoBannerImage.Location = new System.Drawing.Point(0, 0); - this.mInfoBannerImage.Margin = new System.Windows.Forms.Padding(0); - this.mInfoBannerImage.Name = "mInfoBannerImage"; - this.mInfoBannerImage.Size = new System.Drawing.Size(24, 25); - this.mInfoBannerImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; - this.mInfoBannerImage.TabIndex = 7; - this.mInfoBannerImage.TabStop = false; - // - // mThrobber - // - this.mThrobber.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.mThrobber.BackColor = System.Drawing.SystemColors.Window; - this.mThrobber.Location = new System.Drawing.Point(754, 125); - this.mThrobber.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.mThrobber.Name = "mThrobber"; - this.mThrobber.Size = new System.Drawing.Size(24, 25); - this.mThrobber.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; - this.mThrobber.TabIndex = 4; - this.mThrobber.TabStop = false; - this.mThrobber.Visible = false; - // - // mResultsUpdater - // - this.mResultsUpdater.Interval = 250; - this.mResultsUpdater.Tick += new System.EventHandler(this.mResultsUpdater_Tick); - // - // mNoResultsLabel - // - this.mNoResultsLabel.AutoSize = true; - this.mNoResultsLabel.Location = new System.Drawing.Point(8, 183); - this.mNoResultsLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - this.mNoResultsLabel.Name = "mNoResultsLabel"; - this.mNoResultsLabel.Size = new System.Drawing.Size(125, 20); - this.mNoResultsLabel.TabIndex = 5; - this.mNoResultsLabel.Text = "No results found"; - // - // mSeqBox - // - this.mSeq.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.mSeq.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F); - this.mSeq.Location = new System.Drawing.Point(2, 147); - this.mSeq.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.mSeq.Name = "mSeqBox"; - this.mSeq.Size = new System.Drawing.Size(780, 26); - this.mSeq.TabIndex = 9; - this.mSeq.WaterMarkColor = System.Drawing.Color.Gray; - this.mSeq.WaterMarkText = "Set Custom Sequence Here"; - // - // SearchWindow - // - this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.SystemColors.Window; - this.ClientSize = new System.Drawing.Size(784, 422); - this.ControlBox = false; - this.Controls.Add(this.mNoResultsLabel); - this.Controls.Add(this.mThrobber); - this.Controls.Add(this.mLayout); - this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.MinimumSize = new System.Drawing.Size(229, 136); - this.Name = "SearchWindow"; - this.ShowInTaskbar = false; - this.StartPosition = System.Windows.Forms.FormStartPosition.Manual; - this.TopMost = true; - this.mLayout.ResumeLayout(false); - this.mLayout.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.mBanner)).EndInit(); - this.mInfoBanner.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.mInfoBannerImage)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.mThrobber)).EndInit(); - this.ResumeLayout(false); - this.PerformLayout(); + this.components = new System.ComponentModel.Container(); + this.mSearch = new System.Windows.Forms.TextBox(); + this.mResults = new System.Windows.Forms.ListBox(); + this.mLayout = new System.Windows.Forms.TableLayoutPanel(); + this.mBanner = new System.Windows.Forms.PictureBox(); + this.mInfoBanner = new System.Windows.Forms.Panel(); + this.mInfoLabel = new System.Windows.Forms.Label(); + this.mInfoBannerImage = new System.Windows.Forms.PictureBox(); + this.mSeq = new AutoTypeSearch.WatermarkTextBox(); + this.mThrobber = new System.Windows.Forms.PictureBox(); + this.mResultsUpdater = new System.Windows.Forms.Timer(this.components); + this.mNoResultsLabel = new System.Windows.Forms.Label(); + this.mLayout.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.mBanner)).BeginInit(); + this.mInfoBanner.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.mInfoBannerImage)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.mThrobber)).BeginInit(); + this.SuspendLayout(); + // + // mSearch + // + this.mSearch.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.mSearch.Location = new System.Drawing.Point(2, 121); + this.mSearch.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.mSearch.Name = "mSearch"; + this.mSearch.Size = new System.Drawing.Size(780, 26); + this.mSearch.TabIndex = 0; + this.mSearch.LocationChanged += new System.EventHandler(this.mSearch_LocationChanged); + this.mSearch.TextChanged += new System.EventHandler(this.mSearch_TextChanged); + // + // mResults + // + this.mResults.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.mResults.Dock = System.Windows.Forms.DockStyle.Fill; + this.mResults.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.mResults.FormattingEnabled = true; + this.mResults.IntegralHeight = false; + this.mResults.Location = new System.Drawing.Point(0, 173); + this.mResults.Margin = new System.Windows.Forms.Padding(0); + this.mResults.Name = "mResults"; + this.mResults.Size = new System.Drawing.Size(784, 249); + this.mResults.TabIndex = 1; + this.mResults.TabStop = false; + this.mResults.MouseClick += new System.Windows.Forms.MouseEventHandler(this.mResults_MouseClick); + this.mResults.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.mResults_DrawItem); + this.mResults.LocationChanged += new System.EventHandler(this.mResults_LocationChanged); + this.mResults.MouseEnter += new System.EventHandler(this.mResults_MouseEnter); + this.mResults.MouseMove += new System.Windows.Forms.MouseEventHandler(this.mResults_MouseMove); + // + // mLayout + // + this.mLayout.ColumnCount = 1; + this.mLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.mLayout.Controls.Add(this.mSearch, 0, 2); + this.mLayout.Controls.Add(this.mBanner, 0, 0); + this.mLayout.Controls.Add(this.mInfoBanner, 0, 1); + this.mLayout.Controls.Add(this.mResults, 0, 4); + this.mLayout.Controls.Add(this.mSeq, 0, 3); + this.mLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.mLayout.Location = new System.Drawing.Point(0, 0); + this.mLayout.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mLayout.Name = "mLayout"; + this.mLayout.RowCount = 5; + this.mLayout.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.mLayout.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.mLayout.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.mLayout.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.mLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.mLayout.Size = new System.Drawing.Size(784, 422); + this.mLayout.TabIndex = 2; + // + // mBanner + // + this.mBanner.Dock = System.Windows.Forms.DockStyle.Top; + this.mBanner.Location = new System.Drawing.Point(0, 0); + this.mBanner.Margin = new System.Windows.Forms.Padding(0); + this.mBanner.Name = "mBanner"; + this.mBanner.Size = new System.Drawing.Size(784, 92); + this.mBanner.TabIndex = 3; + this.mBanner.TabStop = false; + this.mBanner.MouseDown += new System.Windows.Forms.MouseEventHandler(this.mBannerImage_MouseDown); + // + // mInfoBanner + // + this.mInfoBanner.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.mInfoBanner.BackColor = System.Drawing.SystemColors.Info; + this.mInfoBanner.Controls.Add(this.mInfoLabel); + this.mInfoBanner.Controls.Add(this.mInfoBannerImage); + this.mInfoBanner.Dock = System.Windows.Forms.DockStyle.Fill; + this.mInfoBanner.Location = new System.Drawing.Point(3, 94); + this.mInfoBanner.Margin = new System.Windows.Forms.Padding(3, 2, 2, 2); + this.mInfoBanner.Name = "mInfoBanner"; + this.mInfoBanner.Size = new System.Drawing.Size(779, 25); + this.mInfoBanner.TabIndex = 8; + // + // mInfoLabel + // + this.mInfoLabel.AutoEllipsis = true; + this.mInfoLabel.Dock = System.Windows.Forms.DockStyle.Fill; + this.mInfoLabel.ForeColor = System.Drawing.SystemColors.InfoText; + this.mInfoLabel.Location = new System.Drawing.Point(24, 0); + this.mInfoLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.mInfoLabel.Name = "mInfoLabel"; + this.mInfoLabel.Size = new System.Drawing.Size(755, 25); + this.mInfoLabel.TabIndex = 6; + this.mInfoLabel.Text = "AutoType failed to find"; + // + // mInfoBannerImage + // + this.mInfoBannerImage.Dock = System.Windows.Forms.DockStyle.Left; + this.mInfoBannerImage.Image = global::AutoTypeSearch.Properties.Resources.Info; + this.mInfoBannerImage.Location = new System.Drawing.Point(0, 0); + this.mInfoBannerImage.Margin = new System.Windows.Forms.Padding(0); + this.mInfoBannerImage.Name = "mInfoBannerImage"; + this.mInfoBannerImage.Size = new System.Drawing.Size(24, 25); + this.mInfoBannerImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.mInfoBannerImage.TabIndex = 7; + this.mInfoBannerImage.TabStop = false; + // + // mSeq + // + this.mSeq.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.mSeq.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; + this.mSeq.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource; + this.mSeq.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F); + this.mSeq.Location = new System.Drawing.Point(2, 147); + this.mSeq.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.mSeq.Name = "mSeq"; + this.mSeq.Size = new System.Drawing.Size(780, 26); + this.mSeq.TabIndex = 9; + this.mSeq.WaterMarkColor = System.Drawing.Color.Gray; + this.mSeq.WaterMarkText = "Set Custom Sequence Here"; + // + // mThrobber + // + this.mThrobber.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.mThrobber.BackColor = System.Drawing.SystemColors.Window; + this.mThrobber.Location = new System.Drawing.Point(754, 125); + this.mThrobber.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mThrobber.Name = "mThrobber"; + this.mThrobber.Size = new System.Drawing.Size(24, 25); + this.mThrobber.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.mThrobber.TabIndex = 4; + this.mThrobber.TabStop = false; + this.mThrobber.Visible = false; + // + // mResultsUpdater + // + this.mResultsUpdater.Interval = 250; + this.mResultsUpdater.Tick += new System.EventHandler(this.mResultsUpdater_Tick); + // + // mNoResultsLabel + // + this.mNoResultsLabel.AutoSize = true; + this.mNoResultsLabel.Location = new System.Drawing.Point(8, 183); + this.mNoResultsLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.mNoResultsLabel.Name = "mNoResultsLabel"; + this.mNoResultsLabel.Size = new System.Drawing.Size(125, 20); + this.mNoResultsLabel.TabIndex = 5; + this.mNoResultsLabel.Text = "No results found"; + // + // SearchWindow + // + this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.SystemColors.Window; + this.ClientSize = new System.Drawing.Size(784, 422); + this.ControlBox = false; + this.Controls.Add(this.mNoResultsLabel); + this.Controls.Add(this.mThrobber); + this.Controls.Add(this.mLayout); + this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.MinimumSize = new System.Drawing.Size(229, 136); + this.Name = "SearchWindow"; + this.ShowInTaskbar = false; + this.StartPosition = System.Windows.Forms.FormStartPosition.Manual; + this.TopMost = true; + this.mLayout.ResumeLayout(false); + this.mLayout.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.mBanner)).EndInit(); + this.mInfoBanner.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.mInfoBannerImage)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.mThrobber)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); } diff --git a/AutoTypeSearch/AutoTypeSearch.csproj b/AutoTypeSearch/AutoTypeSearch.csproj index 6145b08..c201baf 100755 --- a/AutoTypeSearch/AutoTypeSearch.csproj +++ b/AutoTypeSearch/AutoTypeSearch.csproj @@ -1,4 +1,4 @@ - + diff --git a/AutoTypeSearch/Options.Designer.cs b/AutoTypeSearch/Options.Designer.cs index 4886b6d..95c6992 100755 --- a/AutoTypeSearch/Options.Designer.cs +++ b/AutoTypeSearch/Options.Designer.cs @@ -30,295 +30,387 @@ /// private void InitializeComponent() { - System.Windows.Forms.GroupBox searchOptionsGroup; - System.Windows.Forms.GroupBox searchInGroup; - System.Windows.Forms.GroupBox actionsGroup; - System.Windows.Forms.Label alternativeActionLabel; - System.Windows.Forms.Label defaultActionLabel; - this.mResolveReferences = new System.Windows.Forms.CheckBox(); - this.mExcludeExpired = new System.Windows.Forms.CheckBox(); - this.mCaseSensitive = new System.Windows.Forms.CheckBox(); - this.mSearchInTags = new System.Windows.Forms.CheckBox(); - this.mSearchInOtherFields = new System.Windows.Forms.CheckBox(); - this.mSearchInNotes = new System.Windows.Forms.CheckBox(); - this.mSearchInUrl = new System.Windows.Forms.CheckBox(); - this.mSearchInUserName = new System.Windows.Forms.CheckBox(); - this.mSearchInTitle = new System.Windows.Forms.CheckBox(); - this.mAlternativeAction = new System.Windows.Forms.ComboBox(); - this.mDefaultAction = new System.Windows.Forms.ComboBox(); - this.mShowHotKeyControl = new KeePass.UI.HotKeyControlEx(); - this.mShowSearchGroup = new System.Windows.Forms.GroupBox(); - this.mShowOnHotKey = new System.Windows.Forms.CheckBox(); - this.mShowOnIPC = new System.Windows.Forms.CheckBox(); - this.mShowOnFailedSearch = new System.Windows.Forms.CheckBox(); - searchOptionsGroup = new System.Windows.Forms.GroupBox(); - searchInGroup = new System.Windows.Forms.GroupBox(); - actionsGroup = new System.Windows.Forms.GroupBox(); - alternativeActionLabel = new System.Windows.Forms.Label(); - defaultActionLabel = new System.Windows.Forms.Label(); - searchOptionsGroup.SuspendLayout(); - searchInGroup.SuspendLayout(); - actionsGroup.SuspendLayout(); - this.mShowSearchGroup.SuspendLayout(); - this.SuspendLayout(); - // - // searchOptionsGroup - // - searchOptionsGroup.Controls.Add(this.mResolveReferences); - searchOptionsGroup.Controls.Add(this.mExcludeExpired); - searchOptionsGroup.Controls.Add(this.mCaseSensitive); - searchOptionsGroup.Location = new System.Drawing.Point(6, 189); - searchOptionsGroup.Name = "searchOptionsGroup"; - searchOptionsGroup.Size = new System.Drawing.Size(540, 45); - searchOptionsGroup.TabIndex = 2; - searchOptionsGroup.TabStop = false; - searchOptionsGroup.Text = "Search options"; - // - // mResolveReferences - // - this.mResolveReferences.AutoSize = true; - this.mResolveReferences.Location = new System.Drawing.Point(251, 20); - this.mResolveReferences.Name = "mResolveReferences"; - this.mResolveReferences.Size = new System.Drawing.Size(170, 17); - this.mResolveReferences.TabIndex = 2; - this.mResolveReferences.Text = "Resolve fiel&d references (slow)"; - this.mResolveReferences.UseVisualStyleBackColor = true; - // - // mExcludeExpired - // - this.mExcludeExpired.AutoSize = true; - this.mExcludeExpired.Location = new System.Drawing.Point(108, 20); - this.mExcludeExpired.Name = "mExcludeExpired"; - this.mExcludeExpired.Size = new System.Drawing.Size(135, 17); - this.mExcludeExpired.TabIndex = 1; - this.mExcludeExpired.Text = "Exclude &expired entries"; - this.mExcludeExpired.UseVisualStyleBackColor = true; - // - // mCaseSensitive - // - this.mCaseSensitive.AutoSize = true; - this.mCaseSensitive.Location = new System.Drawing.Point(10, 20); - this.mCaseSensitive.Name = "mCaseSensitive"; - this.mCaseSensitive.Size = new System.Drawing.Size(94, 17); - this.mCaseSensitive.TabIndex = 0; - this.mCaseSensitive.Text = "Case-sensiti&ve"; - this.mCaseSensitive.UseVisualStyleBackColor = true; - // - // searchInGroup - // - searchInGroup.Controls.Add(this.mSearchInTags); - searchInGroup.Controls.Add(this.mSearchInOtherFields); - searchInGroup.Controls.Add(this.mSearchInNotes); - searchInGroup.Controls.Add(this.mSearchInUrl); - searchInGroup.Controls.Add(this.mSearchInUserName); - searchInGroup.Controls.Add(this.mSearchInTitle); - searchInGroup.Location = new System.Drawing.Point(6, 136); - searchInGroup.Name = "searchInGroup"; - searchInGroup.Size = new System.Drawing.Size(540, 47); - searchInGroup.TabIndex = 1; - searchInGroup.TabStop = false; - searchInGroup.Text = "Search in"; - // - // mSearchInTags - // - this.mSearchInTags.AutoSize = true; - this.mSearchInTags.Location = new System.Drawing.Point(258, 19); - this.mSearchInTags.Name = "mSearchInTags"; - this.mSearchInTags.Size = new System.Drawing.Size(50, 17); - this.mSearchInTags.TabIndex = 4; - this.mSearchInTags.Text = "Ta&gs"; - this.mSearchInTags.UseVisualStyleBackColor = true; - // - // mSearchInOtherFields - // - this.mSearchInOtherFields.AutoSize = true; - this.mSearchInOtherFields.Location = new System.Drawing.Point(314, 19); - this.mSearchInOtherFields.Name = "mSearchInOtherFields"; - this.mSearchInOtherFields.Size = new System.Drawing.Size(139, 17); - this.mSearchInOtherFields.TabIndex = 5; - this.mSearchInOtherFields.Text = "&Other unprotected fields"; - this.mSearchInOtherFields.UseVisualStyleBackColor = true; - // - // mSearchInNotes - // - this.mSearchInNotes.AutoSize = true; - this.mSearchInNotes.Location = new System.Drawing.Point(198, 19); - this.mSearchInNotes.Name = "mSearchInNotes"; - this.mSearchInNotes.Size = new System.Drawing.Size(54, 17); - this.mSearchInNotes.TabIndex = 3; - this.mSearchInNotes.Text = "Note&s"; - this.mSearchInNotes.UseVisualStyleBackColor = true; - // - // mSearchInUrl - // - this.mSearchInUrl.AutoSize = true; - this.mSearchInUrl.Location = new System.Drawing.Point(144, 19); - this.mSearchInUrl.Name = "mSearchInUrl"; - this.mSearchInUrl.Size = new System.Drawing.Size(48, 17); - this.mSearchInUrl.TabIndex = 2; - this.mSearchInUrl.Text = "&URL"; - this.mSearchInUrl.UseVisualStyleBackColor = true; - // - // mSearchInUserName - // - this.mSearchInUserName.AutoSize = true; - this.mSearchInUserName.Location = new System.Drawing.Point(61, 19); - this.mSearchInUserName.Name = "mSearchInUserName"; - this.mSearchInUserName.Size = new System.Drawing.Size(77, 17); - this.mSearchInUserName.TabIndex = 1; - this.mSearchInUserName.Text = "User &name"; - this.mSearchInUserName.UseVisualStyleBackColor = true; - // - // mSearchInTitle - // - this.mSearchInTitle.AutoSize = true; - this.mSearchInTitle.Location = new System.Drawing.Point(9, 19); - this.mSearchInTitle.Name = "mSearchInTitle"; - this.mSearchInTitle.Size = new System.Drawing.Size(46, 17); - this.mSearchInTitle.TabIndex = 0; - this.mSearchInTitle.Text = "&Title"; - this.mSearchInTitle.UseVisualStyleBackColor = true; - // - // actionsGroup - // - actionsGroup.Controls.Add(this.mAlternativeAction); - actionsGroup.Controls.Add(this.mDefaultAction); - actionsGroup.Controls.Add(alternativeActionLabel); - actionsGroup.Controls.Add(defaultActionLabel); - actionsGroup.Location = new System.Drawing.Point(6, 241); - actionsGroup.Name = "actionsGroup"; - actionsGroup.Size = new System.Drawing.Size(540, 67); - actionsGroup.TabIndex = 3; - actionsGroup.TabStop = false; - actionsGroup.Text = "Actions"; - // - // mAlternativeAction - // - this.mAlternativeAction.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.mAlternativeAction.Location = new System.Drawing.Point(288, 37); - this.mAlternativeAction.Name = "mAlternativeAction"; - this.mAlternativeAction.Size = new System.Drawing.Size(240, 21); - this.mAlternativeAction.TabIndex = 3; - // - // mDefaultAction - // - this.mDefaultAction.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.mDefaultAction.Location = new System.Drawing.Point(11, 37); - this.mDefaultAction.Name = "mDefaultAction"; - this.mDefaultAction.Size = new System.Drawing.Size(240, 21); - this.mDefaultAction.TabIndex = 1; - // - // alternativeActionLabel - // - alternativeActionLabel.AutoSize = true; - alternativeActionLabel.Location = new System.Drawing.Point(285, 20); - alternativeActionLabel.Name = "alternativeActionLabel"; - alternativeActionLabel.Size = new System.Drawing.Size(159, 13); - alternativeActionLabel.TabIndex = 2; - alternativeActionLabel.Text = "A<ernative action (Shift + Enter):"; - // - // defaultActionLabel - // - defaultActionLabel.AutoSize = true; - defaultActionLabel.Location = new System.Drawing.Point(8, 20); - defaultActionLabel.Name = "defaultActionLabel"; - defaultActionLabel.Size = new System.Drawing.Size(110, 13); - defaultActionLabel.TabIndex = 0; - defaultActionLabel.Text = "De&fault action (Enter):"; - // - // mShowHotKeyControl - // - this.mShowHotKeyControl.Location = new System.Drawing.Point(30, 65); - this.mShowHotKeyControl.Name = "mShowHotKeyControl"; - this.mShowHotKeyControl.Size = new System.Drawing.Size(123, 20); - this.mShowHotKeyControl.TabIndex = 2; - // - // mShowSearchGroup - // - this.mShowSearchGroup.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + System.Windows.Forms.GroupBox searchInGroup; + System.Windows.Forms.GroupBox actionsGroup; + System.Windows.Forms.Label alternativeActionLabel; + System.Windows.Forms.Label defaultActionLabel; + System.Windows.Forms.GroupBox searchOptionsGroup; + this.mSearchInTags = new System.Windows.Forms.CheckBox(); + this.mSearchInOtherFields = new System.Windows.Forms.CheckBox(); + this.mSearchInNotes = new System.Windows.Forms.CheckBox(); + this.mSearchInUrl = new System.Windows.Forms.CheckBox(); + this.mSearchInUserName = new System.Windows.Forms.CheckBox(); + this.mSearchInTitle = new System.Windows.Forms.CheckBox(); + this.mAlternativeAction = new System.Windows.Forms.ComboBox(); + this.mDefaultAction = new System.Windows.Forms.ComboBox(); + this.mResolveReferences = new System.Windows.Forms.CheckBox(); + this.mExcludeExpired = new System.Windows.Forms.CheckBox(); + this.mCaseSensitive = new System.Windows.Forms.CheckBox(); + this.mPanel = new System.Windows.Forms.Panel(); + this.mShowSearchGroup = new System.Windows.Forms.GroupBox(); + this.mShowOnHotKey = new System.Windows.Forms.CheckBox(); + this.mShowHotKeyControl = new KeePass.UI.HotKeyControlEx(); + this.mShowOnIPC = new System.Windows.Forms.CheckBox(); + this.mShowOnFailedSearch = new System.Windows.Forms.CheckBox(); + this.mCustomSequences = new System.Windows.Forms.GroupBox(); + this.mAdditionalSequencesTitle = new System.Windows.Forms.Label(); + this.mAllowCustomSequences = new System.Windows.Forms.CheckBox(); + this.mAdditionalSequences = new System.Windows.Forms.ListBox(); + searchInGroup = new System.Windows.Forms.GroupBox(); + actionsGroup = new System.Windows.Forms.GroupBox(); + alternativeActionLabel = new System.Windows.Forms.Label(); + defaultActionLabel = new System.Windows.Forms.Label(); + searchOptionsGroup = new System.Windows.Forms.GroupBox(); + searchInGroup.SuspendLayout(); + actionsGroup.SuspendLayout(); + searchOptionsGroup.SuspendLayout(); + this.mPanel.SuspendLayout(); + this.mShowSearchGroup.SuspendLayout(); + this.mCustomSequences.SuspendLayout(); + this.SuspendLayout(); + // + // searchInGroup + // + searchInGroup.Controls.Add(this.mSearchInTags); + searchInGroup.Controls.Add(this.mSearchInOtherFields); + searchInGroup.Controls.Add(this.mSearchInNotes); + searchInGroup.Controls.Add(this.mSearchInUrl); + searchInGroup.Controls.Add(this.mSearchInUserName); + searchInGroup.Controls.Add(this.mSearchInTitle); + searchInGroup.Location = new System.Drawing.Point(4, 196); + searchInGroup.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + searchInGroup.Name = "searchInGroup"; + searchInGroup.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); + searchInGroup.Size = new System.Drawing.Size(764, 72); + searchInGroup.TabIndex = 1; + searchInGroup.TabStop = false; + searchInGroup.Text = "Search in"; + // + // mSearchInTags + // + this.mSearchInTags.AutoSize = true; + this.mSearchInTags.Location = new System.Drawing.Point(387, 29); + this.mSearchInTags.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInTags.Name = "mSearchInTags"; + this.mSearchInTags.Size = new System.Drawing.Size(70, 24); + this.mSearchInTags.TabIndex = 4; + this.mSearchInTags.Text = "Ta&gs"; + this.mSearchInTags.UseVisualStyleBackColor = true; + // + // mSearchInOtherFields + // + this.mSearchInOtherFields.AutoSize = true; + this.mSearchInOtherFields.Location = new System.Drawing.Point(471, 29); + this.mSearchInOtherFields.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInOtherFields.Name = "mSearchInOtherFields"; + this.mSearchInOtherFields.Size = new System.Drawing.Size(206, 24); + this.mSearchInOtherFields.TabIndex = 5; + this.mSearchInOtherFields.Text = "&Other unprotected fields"; + this.mSearchInOtherFields.UseVisualStyleBackColor = true; + // + // mSearchInNotes + // + this.mSearchInNotes.AutoSize = true; + this.mSearchInNotes.Location = new System.Drawing.Point(297, 29); + this.mSearchInNotes.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInNotes.Name = "mSearchInNotes"; + this.mSearchInNotes.Size = new System.Drawing.Size(77, 24); + this.mSearchInNotes.TabIndex = 3; + this.mSearchInNotes.Text = "Note&s"; + this.mSearchInNotes.UseVisualStyleBackColor = true; + // + // mSearchInUrl + // + this.mSearchInUrl.AutoSize = true; + this.mSearchInUrl.Location = new System.Drawing.Point(216, 29); + this.mSearchInUrl.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInUrl.Name = "mSearchInUrl"; + this.mSearchInUrl.Size = new System.Drawing.Size(68, 24); + this.mSearchInUrl.TabIndex = 2; + this.mSearchInUrl.Text = "&URL"; + this.mSearchInUrl.UseVisualStyleBackColor = true; + // + // mSearchInUserName + // + this.mSearchInUserName.AutoSize = true; + this.mSearchInUserName.Location = new System.Drawing.Point(92, 29); + this.mSearchInUserName.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInUserName.Name = "mSearchInUserName"; + this.mSearchInUserName.Size = new System.Drawing.Size(113, 24); + this.mSearchInUserName.TabIndex = 1; + this.mSearchInUserName.Text = "User &name"; + this.mSearchInUserName.UseVisualStyleBackColor = true; + // + // mSearchInTitle + // + this.mSearchInTitle.AutoSize = true; + this.mSearchInTitle.Location = new System.Drawing.Point(14, 29); + this.mSearchInTitle.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mSearchInTitle.Name = "mSearchInTitle"; + this.mSearchInTitle.Size = new System.Drawing.Size(64, 24); + this.mSearchInTitle.TabIndex = 0; + this.mSearchInTitle.Text = "&Title"; + this.mSearchInTitle.UseVisualStyleBackColor = true; + // + // actionsGroup + // + actionsGroup.Controls.Add(this.mAlternativeAction); + actionsGroup.Controls.Add(this.mDefaultAction); + actionsGroup.Controls.Add(alternativeActionLabel); + actionsGroup.Controls.Add(defaultActionLabel); + actionsGroup.Location = new System.Drawing.Point(4, 357); + actionsGroup.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + actionsGroup.Name = "actionsGroup"; + actionsGroup.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); + actionsGroup.Size = new System.Drawing.Size(764, 103); + actionsGroup.TabIndex = 3; + actionsGroup.TabStop = false; + actionsGroup.Text = "Actions"; + // + // mAlternativeAction + // + this.mAlternativeAction.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.mAlternativeAction.Location = new System.Drawing.Point(392, 57); + this.mAlternativeAction.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mAlternativeAction.Name = "mAlternativeAction"; + this.mAlternativeAction.Size = new System.Drawing.Size(358, 28); + this.mAlternativeAction.TabIndex = 3; + // + // mDefaultAction + // + this.mDefaultAction.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.mDefaultAction.Location = new System.Drawing.Point(16, 57); + this.mDefaultAction.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mDefaultAction.Name = "mDefaultAction"; + this.mDefaultAction.Size = new System.Drawing.Size(358, 28); + this.mDefaultAction.TabIndex = 1; + // + // alternativeActionLabel + // + alternativeActionLabel.AutoSize = true; + alternativeActionLabel.Location = new System.Drawing.Point(388, 31); + alternativeActionLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + alternativeActionLabel.Name = "alternativeActionLabel"; + alternativeActionLabel.Size = new System.Drawing.Size(238, 20); + alternativeActionLabel.TabIndex = 2; + alternativeActionLabel.Text = "A<ernative action (Shift + Enter):"; + // + // defaultActionLabel + // + defaultActionLabel.AutoSize = true; + defaultActionLabel.Location = new System.Drawing.Point(12, 31); + defaultActionLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + defaultActionLabel.Name = "defaultActionLabel"; + defaultActionLabel.Size = new System.Drawing.Size(165, 20); + defaultActionLabel.TabIndex = 0; + defaultActionLabel.Text = "De&fault action (Enter):"; + // + // searchOptionsGroup + // + searchOptionsGroup.Controls.Add(this.mResolveReferences); + searchOptionsGroup.Controls.Add(this.mExcludeExpired); + searchOptionsGroup.Controls.Add(this.mCaseSensitive); + searchOptionsGroup.Location = new System.Drawing.Point(4, 278); + searchOptionsGroup.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + searchOptionsGroup.Name = "searchOptionsGroup"; + searchOptionsGroup.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); + searchOptionsGroup.Size = new System.Drawing.Size(764, 69); + searchOptionsGroup.TabIndex = 2; + searchOptionsGroup.TabStop = false; + searchOptionsGroup.Text = "Search options"; + // + // mResolveReferences + // + this.mResolveReferences.AutoSize = true; + this.mResolveReferences.Location = new System.Drawing.Point(376, 31); + this.mResolveReferences.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mResolveReferences.Name = "mResolveReferences"; + this.mResolveReferences.Size = new System.Drawing.Size(250, 24); + this.mResolveReferences.TabIndex = 2; + this.mResolveReferences.Text = "Resolve fiel&d references (slow)"; + this.mResolveReferences.UseVisualStyleBackColor = true; + // + // mExcludeExpired + // + this.mExcludeExpired.AutoSize = true; + this.mExcludeExpired.Location = new System.Drawing.Point(162, 31); + this.mExcludeExpired.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mExcludeExpired.Name = "mExcludeExpired"; + this.mExcludeExpired.Size = new System.Drawing.Size(198, 24); + this.mExcludeExpired.TabIndex = 1; + this.mExcludeExpired.Text = "Exclude &expired entries"; + this.mExcludeExpired.UseVisualStyleBackColor = true; + // + // mCaseSensitive + // + this.mCaseSensitive.AutoSize = true; + this.mCaseSensitive.Location = new System.Drawing.Point(15, 31); + this.mCaseSensitive.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mCaseSensitive.Name = "mCaseSensitive"; + this.mCaseSensitive.Size = new System.Drawing.Size(138, 24); + this.mCaseSensitive.TabIndex = 0; + this.mCaseSensitive.Text = "Case-sensiti&ve"; + this.mCaseSensitive.UseVisualStyleBackColor = true; + // + // mPanel + // + this.mPanel.AutoScroll = true; + this.mPanel.Controls.Add(this.mShowSearchGroup); + this.mPanel.Controls.Add(this.mCustomSequences); + this.mPanel.Controls.Add(searchOptionsGroup); + this.mPanel.Controls.Add(actionsGroup); + this.mPanel.Controls.Add(searchInGroup); + this.mPanel.Location = new System.Drawing.Point(9, 18); + this.mPanel.Name = "mPanel"; + this.mPanel.Size = new System.Drawing.Size(808, 463); + this.mPanel.TabIndex = 5; + // + // mShowSearchGroup + // + this.mShowSearchGroup.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.mShowSearchGroup.Controls.Add(this.mShowOnHotKey); - this.mShowSearchGroup.Controls.Add(this.mShowHotKeyControl); - this.mShowSearchGroup.Controls.Add(this.mShowOnIPC); - this.mShowSearchGroup.Controls.Add(this.mShowOnFailedSearch); - this.mShowSearchGroup.Location = new System.Drawing.Point(6, 12); - this.mShowSearchGroup.Name = "mShowSearchGroup"; - this.mShowSearchGroup.Size = new System.Drawing.Size(540, 118); - this.mShowSearchGroup.TabIndex = 0; - this.mShowSearchGroup.TabStop = false; - this.mShowSearchGroup.Text = "Show search window"; - // - // mShowOnHotKey - // - this.mShowOnHotKey.AutoSize = true; - this.mShowOnHotKey.Location = new System.Drawing.Point(10, 44); - this.mShowOnHotKey.Name = "mShowOnHotKey"; - this.mShowOnHotKey.Size = new System.Drawing.Size(233, 17); - this.mShowOnHotKey.TabIndex = 1; - this.mShowOnHotKey.Text = "Show when system-wide &hot key is pressed:"; - this.mShowOnHotKey.UseVisualStyleBackColor = true; - this.mShowOnHotKey.CheckedChanged += new System.EventHandler(this.mShowOnHotKey_CheckedChanged); - // - // mShowOnIPC - // - this.mShowOnIPC.AutoSize = true; - this.mShowOnIPC.Location = new System.Drawing.Point(10, 93); - this.mShowOnIPC.Name = "mShowOnIPC"; - this.mShowOnIPC.Size = new System.Drawing.Size(386, 17); - this.mShowOnIPC.TabIndex = 3; - this.mShowOnIPC.Text = "Show when \"/e1:AutoTypeSearch\" is passed as a ¶meter to KeePass.exe"; - this.mShowOnIPC.UseVisualStyleBackColor = true; - // - // mShowOnFailedSearch - // - this.mShowOnFailedSearch.AutoSize = true; - this.mShowOnFailedSearch.Location = new System.Drawing.Point(10, 21); - this.mShowOnFailedSearch.Name = "mShowOnFailedSearch"; - this.mShowOnFailedSearch.Size = new System.Drawing.Size(275, 17); - this.mShowOnFailedSearch.TabIndex = 0; - this.mShowOnFailedSearch.Text = "Show &automatically if global auto-type finds no match"; - this.mShowOnFailedSearch.UseVisualStyleBackColor = true; - // - // Options - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(actionsGroup); - this.Controls.Add(searchInGroup); - this.Controls.Add(searchOptionsGroup); - this.Controls.Add(this.mShowSearchGroup); - this.Name = "Options"; - this.Size = new System.Drawing.Size(551, 311); - searchOptionsGroup.ResumeLayout(false); - searchOptionsGroup.PerformLayout(); - searchInGroup.ResumeLayout(false); - searchInGroup.PerformLayout(); - actionsGroup.ResumeLayout(false); - actionsGroup.PerformLayout(); - this.mShowSearchGroup.ResumeLayout(false); - this.mShowSearchGroup.PerformLayout(); - this.ResumeLayout(false); + this.mShowSearchGroup.Controls.Add(this.mShowOnHotKey); + this.mShowSearchGroup.Controls.Add(this.mShowHotKeyControl); + this.mShowSearchGroup.Controls.Add(this.mShowOnIPC); + this.mShowSearchGroup.Controls.Add(this.mShowOnFailedSearch); + this.mShowSearchGroup.Location = new System.Drawing.Point(4, 5); + this.mShowSearchGroup.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowSearchGroup.Name = "mShowSearchGroup"; + this.mShowSearchGroup.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowSearchGroup.Size = new System.Drawing.Size(549, 182); + this.mShowSearchGroup.TabIndex = 0; + this.mShowSearchGroup.TabStop = false; + this.mShowSearchGroup.Text = "Show search window"; + // + // mShowOnHotKey + // + this.mShowOnHotKey.AutoSize = true; + this.mShowOnHotKey.Location = new System.Drawing.Point(15, 68); + this.mShowOnHotKey.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowOnHotKey.Name = "mShowOnHotKey"; + this.mShowOnHotKey.Size = new System.Drawing.Size(343, 24); + this.mShowOnHotKey.TabIndex = 1; + this.mShowOnHotKey.Text = "Show when system-wide &hot key is pressed:"; + this.mShowOnHotKey.UseVisualStyleBackColor = true; + this.mShowOnHotKey.CheckedChanged += new System.EventHandler(this.mShowOnHotKey_CheckedChanged); + // + // mShowHotKeyControl + // + this.mShowHotKeyControl.Location = new System.Drawing.Point(45, 100); + this.mShowHotKeyControl.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowHotKeyControl.Name = "mShowHotKeyControl"; + this.mShowHotKeyControl.Size = new System.Drawing.Size(182, 26); + this.mShowHotKeyControl.TabIndex = 2; + // + // mShowOnIPC + // + this.mShowOnIPC.AutoSize = true; + this.mShowOnIPC.Location = new System.Drawing.Point(15, 143); + this.mShowOnIPC.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowOnIPC.Name = "mShowOnIPC"; + this.mShowOnIPC.Size = new System.Drawing.Size(574, 24); + this.mShowOnIPC.TabIndex = 3; + this.mShowOnIPC.Text = "Show when \"/e1:AutoTypeSearch\" is passed as a ¶meter to KeePass.exe"; + this.mShowOnIPC.UseVisualStyleBackColor = true; + // + // mShowOnFailedSearch + // + this.mShowOnFailedSearch.AutoSize = true; + this.mShowOnFailedSearch.Location = new System.Drawing.Point(15, 32); + this.mShowOnFailedSearch.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mShowOnFailedSearch.Name = "mShowOnFailedSearch"; + this.mShowOnFailedSearch.Size = new System.Drawing.Size(408, 24); + this.mShowOnFailedSearch.TabIndex = 0; + this.mShowOnFailedSearch.Text = "Show &automatically if global auto-type finds no match"; + this.mShowOnFailedSearch.UseVisualStyleBackColor = true; + // + // mCustomSequences + // + this.mCustomSequences.Controls.Add(this.mAdditionalSequences); + this.mCustomSequences.Controls.Add(this.mAdditionalSequencesTitle); + this.mCustomSequences.Controls.Add(this.mAllowCustomSequences); + this.mCustomSequences.Location = new System.Drawing.Point(4, 468); + this.mCustomSequences.Name = "mCustomSequences"; + this.mCustomSequences.Size = new System.Drawing.Size(764, 206); + this.mCustomSequences.TabIndex = 4; + this.mCustomSequences.TabStop = false; + this.mCustomSequences.Text = "Custom Sequences"; + // + // mAdditionalSequencesTitle + // + this.mAdditionalSequencesTitle.AutoSize = true; + this.mAdditionalSequencesTitle.Location = new System.Drawing.Point(6, 61); + this.mAdditionalSequencesTitle.Name = "mAdditionalSequencesTitle"; + this.mAdditionalSequencesTitle.Size = new System.Drawing.Size(221, 20); + this.mAdditionalSequencesTitle.TabIndex = 8; + this.mAdditionalSequencesTitle.Text = "Add&itional custom sequences:"; + // + // mAllowCustomSequences + // + this.mAllowCustomSequences.AutoSize = true; + this.mAllowCustomSequences.Location = new System.Drawing.Point(7, 27); + this.mAllowCustomSequences.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mAllowCustomSequences.Name = "mAllowCustomSequences"; + this.mAllowCustomSequences.Size = new System.Drawing.Size(281, 24); + this.mAllowCustomSequences.TabIndex = 6; + this.mAllowCustomSequences.Text = "Allow &custom auto-type sequences"; + this.mAllowCustomSequences.UseVisualStyleBackColor = true; + // + // mAdditionalSequences + // + this.mAdditionalSequences.FormattingEnabled = true; + this.mAdditionalSequences.ItemHeight = 20; + this.mAdditionalSequences.Location = new System.Drawing.Point(7, 85); + this.mAdditionalSequences.Name = "mAdditionalSequences"; + this.mAdditionalSequences.Size = new System.Drawing.Size(743, 104); + this.mAdditionalSequences.TabIndex = 9; + // + // Options + // + this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.mPanel); + this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.Name = "Options"; + this.Size = new System.Drawing.Size(834, 499); + this.Paint += new System.Windows.Forms.PaintEventHandler(this.Options_Paint); + searchInGroup.ResumeLayout(false); + searchInGroup.PerformLayout(); + actionsGroup.ResumeLayout(false); + actionsGroup.PerformLayout(); + searchOptionsGroup.ResumeLayout(false); + searchOptionsGroup.PerformLayout(); + this.mPanel.ResumeLayout(false); + this.mShowSearchGroup.ResumeLayout(false); + this.mShowSearchGroup.PerformLayout(); + this.mCustomSequences.ResumeLayout(false); + this.mCustomSequences.PerformLayout(); + this.ResumeLayout(false); } #endregion - private KeePass.UI.HotKeyControlEx mShowHotKeyControl; + private System.Windows.Forms.Panel mPanel; + private System.Windows.Forms.GroupBox mShowSearchGroup; private System.Windows.Forms.CheckBox mShowOnHotKey; + private HotKeyControlEx mShowHotKeyControl; private System.Windows.Forms.CheckBox mShowOnIPC; private System.Windows.Forms.CheckBox mShowOnFailedSearch; + private System.Windows.Forms.GroupBox mCustomSequences; + private System.Windows.Forms.Label mAdditionalSequencesTitle; + private System.Windows.Forms.CheckBox mAllowCustomSequences; + private System.Windows.Forms.CheckBox mResolveReferences; + private System.Windows.Forms.CheckBox mExcludeExpired; private System.Windows.Forms.CheckBox mCaseSensitive; + private System.Windows.Forms.ComboBox mAlternativeAction; + private System.Windows.Forms.ComboBox mDefaultAction; private System.Windows.Forms.CheckBox mSearchInTags; private System.Windows.Forms.CheckBox mSearchInOtherFields; private System.Windows.Forms.CheckBox mSearchInNotes; private System.Windows.Forms.CheckBox mSearchInUrl; private System.Windows.Forms.CheckBox mSearchInUserName; private System.Windows.Forms.CheckBox mSearchInTitle; - private System.Windows.Forms.CheckBox mResolveReferences; - private System.Windows.Forms.CheckBox mExcludeExpired; - private System.Windows.Forms.ComboBox mAlternativeAction; - private System.Windows.Forms.ComboBox mDefaultAction; - private System.Windows.Forms.GroupBox mShowSearchGroup; - + private System.Windows.Forms.ListBox mAdditionalSequences; } } diff --git a/AutoTypeSearch/Options.cs b/AutoTypeSearch/Options.cs index b99561c..e8e8583 100755 --- a/AutoTypeSearch/Options.cs +++ b/AutoTypeSearch/Options.cs @@ -1,7 +1,9 @@ using System; using System.Configuration; using System.Diagnostics; +using System.Drawing; using System.Linq; +using System.Net.NetworkInformation; using System.Windows.Forms; using AutoTypeSearch.Properties; using KeePass.Forms; @@ -58,6 +60,21 @@ mDefaultAction.SelectedIndex = (int)Settings.Default.DefaultAction; mAlternativeAction.SelectedIndex = (int)Settings.Default.AlternativeAction; + + mAdditionalSequences.BeginUpdate(); + mAdditionalSequences.Items.Clear(); + + if (Settings.Default.AdditionalCustomSequences != null) + { + foreach (string s in Settings.Default.AdditionalCustomSequences) + { + mAdditionalSequences.Items.Add(s); + } + } + + mAdditionalSequences.Items.Add("new sequence"); + + mAdditionalSequences.EndUpdate(); } private Keys ShowHotKey @@ -187,5 +204,16 @@ options.ApplySettings(); }; } + + private void Options_Paint(object sender, PaintEventArgs e) + { + Rectangle r = new Rectangle(mPanel.Location, mPanel.ClientSize); + //r.Offset(mPanel.Location); + r.X -= 1; + r.Y -= 1; + r.Width += 2 + SystemInformation.VerticalScrollBarWidth; + r.Height += 2; + ControlPaint.DrawBorder(e.Graphics, r, SystemColors.GrayText, ButtonBorderStyle.Solid); + } } } diff --git a/AutoTypeSearch/Options.resx b/AutoTypeSearch/Options.resx index 4601c27..9ed14a5 100755 --- a/AutoTypeSearch/Options.resx +++ b/AutoTypeSearch/Options.resx @@ -117,9 +117,6 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - False - False @@ -132,4 +129,7 @@ False + + False + \ No newline at end of file diff --git a/AutoTypeSearch/Properties/Settings.Designer.cs b/AutoTypeSearch/Properties/Settings.Designer.cs index 62e2cdb..c67dd88 100755 --- a/AutoTypeSearch/Properties/Settings.Designer.cs +++ b/AutoTypeSearch/Properties/Settings.Designer.cs @@ -12,7 +12,7 @@ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.7.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.5.0.0")] internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); @@ -214,5 +214,16 @@ this["ShowHotKey"] = value; } } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Collections.Specialized.StringCollection AdditionalCustomSequences { + get { + return ((global::System.Collections.Specialized.StringCollection)(this["AdditionalCustomSequences"])); + } + set { + this["AdditionalCustomSequences"] = value; + } + } } } diff --git a/AutoTypeSearch/Properties/Settings.settings b/AutoTypeSearch/Properties/Settings.settings index edcae1b..cc9af5a 100755 --- a/AutoTypeSearch/Properties/Settings.settings +++ b/AutoTypeSearch/Properties/Settings.settings @@ -50,5 +50,8 @@ None + + + \ No newline at end of file diff --git a/AutoTypeSearch/SearchWindow.Designer.cs b/AutoTypeSearch/SearchWindow.Designer.cs index 8b28309..bca9b31 100755 --- a/AutoTypeSearch/SearchWindow.Designer.cs +++ b/AutoTypeSearch/SearchWindow.Designer.cs @@ -17,191 +17,193 @@ /// private void InitializeComponent() { - this.components = new System.ComponentModel.Container(); - this.mSearch = new System.Windows.Forms.TextBox(); - this.mResults = new System.Windows.Forms.ListBox(); - this.mLayout = new System.Windows.Forms.TableLayoutPanel(); - this.mBanner = new System.Windows.Forms.PictureBox(); - this.mInfoBanner = new System.Windows.Forms.Panel(); - this.mInfoLabel = new System.Windows.Forms.Label(); - this.mInfoBannerImage = new System.Windows.Forms.PictureBox(); - this.mThrobber = new System.Windows.Forms.PictureBox(); - this.mResultsUpdater = new System.Windows.Forms.Timer(this.components); - this.mNoResultsLabel = new System.Windows.Forms.Label(); - this.mSeq = new AutoTypeSearch.WatermarkTextBox(); - this.mLayout.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.mBanner)).BeginInit(); - this.mInfoBanner.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.mInfoBannerImage)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.mThrobber)).BeginInit(); - this.SuspendLayout(); - // - // mSearch - // - this.mSearch.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.mSearch.Location = new System.Drawing.Point(2, 121); - this.mSearch.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.mSearch.Name = "mSearch"; - this.mSearch.Size = new System.Drawing.Size(780, 26); - this.mSearch.TabIndex = 0; - this.mSearch.LocationChanged += new System.EventHandler(this.mSearch_LocationChanged); - this.mSearch.TextChanged += new System.EventHandler(this.mSearch_TextChanged); - // - // mResults - // - this.mResults.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.mResults.Dock = System.Windows.Forms.DockStyle.Fill; - this.mResults.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.mResults.FormattingEnabled = true; - this.mResults.IntegralHeight = false; - this.mResults.Location = new System.Drawing.Point(0, 173); - this.mResults.Margin = new System.Windows.Forms.Padding(0); - this.mResults.Name = "mResults"; - this.mResults.Size = new System.Drawing.Size(784, 249); - this.mResults.TabIndex = 1; - this.mResults.TabStop = false; - this.mResults.MouseClick += new System.Windows.Forms.MouseEventHandler(this.mResults_MouseClick); - this.mResults.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.mResults_DrawItem); - this.mResults.LocationChanged += new System.EventHandler(this.mResults_LocationChanged); - this.mResults.MouseEnter += new System.EventHandler(this.mResults_MouseEnter); - this.mResults.MouseMove += new System.Windows.Forms.MouseEventHandler(this.mResults_MouseMove); - // - // mLayout - // - this.mLayout.ColumnCount = 1; - this.mLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.mLayout.Controls.Add(this.mSearch, 0, 2); - this.mLayout.Controls.Add(this.mBanner, 0, 0); - this.mLayout.Controls.Add(this.mInfoBanner, 0, 1); - this.mLayout.Controls.Add(this.mResults, 0, 4); - this.mLayout.Controls.Add(this.mSeq, 0, 3); - this.mLayout.Dock = System.Windows.Forms.DockStyle.Fill; - this.mLayout.Location = new System.Drawing.Point(0, 0); - this.mLayout.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.mLayout.Name = "mLayout"; - this.mLayout.RowCount = 5; - this.mLayout.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.mLayout.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.mLayout.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.mLayout.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.mLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.mLayout.Size = new System.Drawing.Size(784, 422); - this.mLayout.TabIndex = 2; - // - // mBanner - // - this.mBanner.Dock = System.Windows.Forms.DockStyle.Top; - this.mBanner.Location = new System.Drawing.Point(0, 0); - this.mBanner.Margin = new System.Windows.Forms.Padding(0); - this.mBanner.Name = "mBanner"; - this.mBanner.Size = new System.Drawing.Size(784, 92); - this.mBanner.TabIndex = 3; - this.mBanner.TabStop = false; - this.mBanner.MouseDown += new System.Windows.Forms.MouseEventHandler(this.mBannerImage_MouseDown); - // - // mInfoBanner - // - this.mInfoBanner.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.mInfoBanner.BackColor = System.Drawing.SystemColors.Info; - this.mInfoBanner.Controls.Add(this.mInfoLabel); - this.mInfoBanner.Controls.Add(this.mInfoBannerImage); - this.mInfoBanner.Dock = System.Windows.Forms.DockStyle.Fill; - this.mInfoBanner.Location = new System.Drawing.Point(3, 94); - this.mInfoBanner.Margin = new System.Windows.Forms.Padding(3, 2, 2, 2); - this.mInfoBanner.Name = "mInfoBanner"; - this.mInfoBanner.Size = new System.Drawing.Size(779, 25); - this.mInfoBanner.TabIndex = 8; - // - // mInfoLabel - // - this.mInfoLabel.AutoEllipsis = true; - this.mInfoLabel.Dock = System.Windows.Forms.DockStyle.Fill; - this.mInfoLabel.ForeColor = System.Drawing.SystemColors.InfoText; - this.mInfoLabel.Location = new System.Drawing.Point(24, 0); - this.mInfoLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - this.mInfoLabel.Name = "mInfoLabel"; - this.mInfoLabel.Size = new System.Drawing.Size(755, 25); - this.mInfoLabel.TabIndex = 6; - this.mInfoLabel.Text = "AutoType failed to find"; - // - // mInfoBannerImage - // - this.mInfoBannerImage.Dock = System.Windows.Forms.DockStyle.Left; - this.mInfoBannerImage.Image = global::AutoTypeSearch.Properties.Resources.Info; - this.mInfoBannerImage.Location = new System.Drawing.Point(0, 0); - this.mInfoBannerImage.Margin = new System.Windows.Forms.Padding(0); - this.mInfoBannerImage.Name = "mInfoBannerImage"; - this.mInfoBannerImage.Size = new System.Drawing.Size(24, 25); - this.mInfoBannerImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; - this.mInfoBannerImage.TabIndex = 7; - this.mInfoBannerImage.TabStop = false; - // - // mThrobber - // - this.mThrobber.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.mThrobber.BackColor = System.Drawing.SystemColors.Window; - this.mThrobber.Location = new System.Drawing.Point(754, 125); - this.mThrobber.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.mThrobber.Name = "mThrobber"; - this.mThrobber.Size = new System.Drawing.Size(24, 25); - this.mThrobber.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; - this.mThrobber.TabIndex = 4; - this.mThrobber.TabStop = false; - this.mThrobber.Visible = false; - // - // mResultsUpdater - // - this.mResultsUpdater.Interval = 250; - this.mResultsUpdater.Tick += new System.EventHandler(this.mResultsUpdater_Tick); - // - // mNoResultsLabel - // - this.mNoResultsLabel.AutoSize = true; - this.mNoResultsLabel.Location = new System.Drawing.Point(8, 183); - this.mNoResultsLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - this.mNoResultsLabel.Name = "mNoResultsLabel"; - this.mNoResultsLabel.Size = new System.Drawing.Size(125, 20); - this.mNoResultsLabel.TabIndex = 5; - this.mNoResultsLabel.Text = "No results found"; - // - // mSeqBox - // - this.mSeq.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.mSeq.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F); - this.mSeq.Location = new System.Drawing.Point(2, 147); - this.mSeq.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.mSeq.Name = "mSeqBox"; - this.mSeq.Size = new System.Drawing.Size(780, 26); - this.mSeq.TabIndex = 9; - this.mSeq.WaterMarkColor = System.Drawing.Color.Gray; - this.mSeq.WaterMarkText = "Set Custom Sequence Here"; - // - // SearchWindow - // - this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.SystemColors.Window; - this.ClientSize = new System.Drawing.Size(784, 422); - this.ControlBox = false; - this.Controls.Add(this.mNoResultsLabel); - this.Controls.Add(this.mThrobber); - this.Controls.Add(this.mLayout); - this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.MinimumSize = new System.Drawing.Size(229, 136); - this.Name = "SearchWindow"; - this.ShowInTaskbar = false; - this.StartPosition = System.Windows.Forms.FormStartPosition.Manual; - this.TopMost = true; - this.mLayout.ResumeLayout(false); - this.mLayout.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.mBanner)).EndInit(); - this.mInfoBanner.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.mInfoBannerImage)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.mThrobber)).EndInit(); - this.ResumeLayout(false); - this.PerformLayout(); + this.components = new System.ComponentModel.Container(); + this.mSearch = new System.Windows.Forms.TextBox(); + this.mResults = new System.Windows.Forms.ListBox(); + this.mLayout = new System.Windows.Forms.TableLayoutPanel(); + this.mBanner = new System.Windows.Forms.PictureBox(); + this.mInfoBanner = new System.Windows.Forms.Panel(); + this.mInfoLabel = new System.Windows.Forms.Label(); + this.mInfoBannerImage = new System.Windows.Forms.PictureBox(); + this.mSeq = new AutoTypeSearch.WatermarkTextBox(); + this.mThrobber = new System.Windows.Forms.PictureBox(); + this.mResultsUpdater = new System.Windows.Forms.Timer(this.components); + this.mNoResultsLabel = new System.Windows.Forms.Label(); + this.mLayout.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.mBanner)).BeginInit(); + this.mInfoBanner.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.mInfoBannerImage)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.mThrobber)).BeginInit(); + this.SuspendLayout(); + // + // mSearch + // + this.mSearch.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.mSearch.Location = new System.Drawing.Point(2, 121); + this.mSearch.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.mSearch.Name = "mSearch"; + this.mSearch.Size = new System.Drawing.Size(780, 26); + this.mSearch.TabIndex = 0; + this.mSearch.LocationChanged += new System.EventHandler(this.mSearch_LocationChanged); + this.mSearch.TextChanged += new System.EventHandler(this.mSearch_TextChanged); + // + // mResults + // + this.mResults.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.mResults.Dock = System.Windows.Forms.DockStyle.Fill; + this.mResults.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; + this.mResults.FormattingEnabled = true; + this.mResults.IntegralHeight = false; + this.mResults.Location = new System.Drawing.Point(0, 173); + this.mResults.Margin = new System.Windows.Forms.Padding(0); + this.mResults.Name = "mResults"; + this.mResults.Size = new System.Drawing.Size(784, 249); + this.mResults.TabIndex = 1; + this.mResults.TabStop = false; + this.mResults.MouseClick += new System.Windows.Forms.MouseEventHandler(this.mResults_MouseClick); + this.mResults.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.mResults_DrawItem); + this.mResults.LocationChanged += new System.EventHandler(this.mResults_LocationChanged); + this.mResults.MouseEnter += new System.EventHandler(this.mResults_MouseEnter); + this.mResults.MouseMove += new System.Windows.Forms.MouseEventHandler(this.mResults_MouseMove); + // + // mLayout + // + this.mLayout.ColumnCount = 1; + this.mLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.mLayout.Controls.Add(this.mSearch, 0, 2); + this.mLayout.Controls.Add(this.mBanner, 0, 0); + this.mLayout.Controls.Add(this.mInfoBanner, 0, 1); + this.mLayout.Controls.Add(this.mResults, 0, 4); + this.mLayout.Controls.Add(this.mSeq, 0, 3); + this.mLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.mLayout.Location = new System.Drawing.Point(0, 0); + this.mLayout.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mLayout.Name = "mLayout"; + this.mLayout.RowCount = 5; + this.mLayout.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.mLayout.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.mLayout.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.mLayout.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.mLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.mLayout.Size = new System.Drawing.Size(784, 422); + this.mLayout.TabIndex = 2; + // + // mBanner + // + this.mBanner.Dock = System.Windows.Forms.DockStyle.Top; + this.mBanner.Location = new System.Drawing.Point(0, 0); + this.mBanner.Margin = new System.Windows.Forms.Padding(0); + this.mBanner.Name = "mBanner"; + this.mBanner.Size = new System.Drawing.Size(784, 92); + this.mBanner.TabIndex = 3; + this.mBanner.TabStop = false; + this.mBanner.MouseDown += new System.Windows.Forms.MouseEventHandler(this.mBannerImage_MouseDown); + // + // mInfoBanner + // + this.mInfoBanner.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.mInfoBanner.BackColor = System.Drawing.SystemColors.Info; + this.mInfoBanner.Controls.Add(this.mInfoLabel); + this.mInfoBanner.Controls.Add(this.mInfoBannerImage); + this.mInfoBanner.Dock = System.Windows.Forms.DockStyle.Fill; + this.mInfoBanner.Location = new System.Drawing.Point(3, 94); + this.mInfoBanner.Margin = new System.Windows.Forms.Padding(3, 2, 2, 2); + this.mInfoBanner.Name = "mInfoBanner"; + this.mInfoBanner.Size = new System.Drawing.Size(779, 25); + this.mInfoBanner.TabIndex = 8; + // + // mInfoLabel + // + this.mInfoLabel.AutoEllipsis = true; + this.mInfoLabel.Dock = System.Windows.Forms.DockStyle.Fill; + this.mInfoLabel.ForeColor = System.Drawing.SystemColors.InfoText; + this.mInfoLabel.Location = new System.Drawing.Point(24, 0); + this.mInfoLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.mInfoLabel.Name = "mInfoLabel"; + this.mInfoLabel.Size = new System.Drawing.Size(755, 25); + this.mInfoLabel.TabIndex = 6; + this.mInfoLabel.Text = "AutoType failed to find"; + // + // mInfoBannerImage + // + this.mInfoBannerImage.Dock = System.Windows.Forms.DockStyle.Left; + this.mInfoBannerImage.Image = global::AutoTypeSearch.Properties.Resources.Info; + this.mInfoBannerImage.Location = new System.Drawing.Point(0, 0); + this.mInfoBannerImage.Margin = new System.Windows.Forms.Padding(0); + this.mInfoBannerImage.Name = "mInfoBannerImage"; + this.mInfoBannerImage.Size = new System.Drawing.Size(24, 25); + this.mInfoBannerImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.mInfoBannerImage.TabIndex = 7; + this.mInfoBannerImage.TabStop = false; + // + // mSeq + // + this.mSeq.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.mSeq.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; + this.mSeq.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource; + this.mSeq.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F); + this.mSeq.Location = new System.Drawing.Point(2, 147); + this.mSeq.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.mSeq.Name = "mSeq"; + this.mSeq.Size = new System.Drawing.Size(780, 26); + this.mSeq.TabIndex = 9; + this.mSeq.WaterMarkColor = System.Drawing.Color.Gray; + this.mSeq.WaterMarkText = "Set Custom Sequence Here"; + // + // mThrobber + // + this.mThrobber.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.mThrobber.BackColor = System.Drawing.SystemColors.Window; + this.mThrobber.Location = new System.Drawing.Point(754, 125); + this.mThrobber.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.mThrobber.Name = "mThrobber"; + this.mThrobber.Size = new System.Drawing.Size(24, 25); + this.mThrobber.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.mThrobber.TabIndex = 4; + this.mThrobber.TabStop = false; + this.mThrobber.Visible = false; + // + // mResultsUpdater + // + this.mResultsUpdater.Interval = 250; + this.mResultsUpdater.Tick += new System.EventHandler(this.mResultsUpdater_Tick); + // + // mNoResultsLabel + // + this.mNoResultsLabel.AutoSize = true; + this.mNoResultsLabel.Location = new System.Drawing.Point(8, 183); + this.mNoResultsLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.mNoResultsLabel.Name = "mNoResultsLabel"; + this.mNoResultsLabel.Size = new System.Drawing.Size(125, 20); + this.mNoResultsLabel.TabIndex = 5; + this.mNoResultsLabel.Text = "No results found"; + // + // SearchWindow + // + this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.SystemColors.Window; + this.ClientSize = new System.Drawing.Size(784, 422); + this.ControlBox = false; + this.Controls.Add(this.mNoResultsLabel); + this.Controls.Add(this.mThrobber); + this.Controls.Add(this.mLayout); + this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.MinimumSize = new System.Drawing.Size(229, 136); + this.Name = "SearchWindow"; + this.ShowInTaskbar = false; + this.StartPosition = System.Windows.Forms.FormStartPosition.Manual; + this.TopMost = true; + this.mLayout.ResumeLayout(false); + this.mLayout.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.mBanner)).EndInit(); + this.mInfoBanner.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.mInfoBannerImage)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.mThrobber)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); } diff --git a/AutoTypeSearch/SearchWindow.cs b/AutoTypeSearch/SearchWindow.cs index d7f53bd..87c38a2 100755 --- a/AutoTypeSearch/SearchWindow.cs +++ b/AutoTypeSearch/SearchWindow.cs @@ -125,6 +125,13 @@ } mMaximumExpandHeight = Math.Max(windowRect.Height, MinimumSize.Height + mResults.ItemHeight); + + AutoCompleteStringCollection sequences = new AutoCompleteStringCollection(); + foreach (string s in Settings.Default.AdditionalCustomSequences) + { + sequences.Add(s); + } + mSeq.AutoCompleteCustomSource = sequences; }