Free cookie consent management tool by TermsFeed Policy Generator

Changeset 10633 for branches


Ignore:
Timestamp:
03/19/14 15:19:50 (11 years ago)
Author:
rstoll
Message:

show FindReplaceDialog when CTRL+F, CTRL+R respectively

Location:
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.3
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.3/DataGridContentView.cs

    r10629 r10633  
    149149        });
    150150      } else if (e.Control && e.KeyCode == Keys.F) {
    151 
    152       } else if (e.Control && e.KeyCode == Keys.H) {
    153 
     151        FindAndReplaceDialog findAndReplaceDialog = new FindAndReplaceDialog();
     152        findAndReplaceDialog.Show();
     153        findAndReplaceDialog.ActivateSearch();
     154
     155      } else if (e.Control && e.KeyCode == Keys.R) {
     156        FindAndReplaceDialog findAndReplaceDialog = new FindAndReplaceDialog();
     157        findAndReplaceDialog.Show();
     158        findAndReplaceDialog.ActivateReplace();
    154159      }
    155160    }
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.3/FindAndReplaceDialog.Designer.cs

    r10630 r10633  
    2424    /// </summary>
    2525    private void InitializeComponent() {
    26       this.tabControl1 = new System.Windows.Forms.TabControl();
    27       this.tabPage1 = new System.Windows.Forms.TabPage();
     26      this.tabSearchReplace = new System.Windows.Forms.TabControl();
     27      this.tabSearch = new System.Windows.Forms.TabPage();
    2828      this.txtSearchString = new System.Windows.Forms.TextBox();
    2929      this.lblSearch = new System.Windows.Forms.Label();
    3030      this.btnFindAll = new System.Windows.Forms.Button();
    3131      this.btnFindNext = new System.Windows.Forms.Button();
    32       this.tabPage2 = new System.Windows.Forms.TabPage();
    33       this.tabControl1.SuspendLayout();
    34       this.tabPage1.SuspendLayout();
     32      this.tabReplace = new System.Windows.Forms.TabPage();
     33      this.tabSearchReplace.SuspendLayout();
     34      this.tabSearch.SuspendLayout();
    3535      this.SuspendLayout();
    3636      //
    37       // tabControl1
     37      // tabSearchReplace
    3838      //
    39       this.tabControl1.Controls.Add(this.tabPage1);
    40       this.tabControl1.Controls.Add(this.tabPage2);
    41       this.tabControl1.Location = new System.Drawing.Point(12, 12);
    42       this.tabControl1.Name = "tabControl1";
    43       this.tabControl1.SelectedIndex = 0;
    44       this.tabControl1.Size = new System.Drawing.Size(511, 174);
    45       this.tabControl1.TabIndex = 0;
     39      this.tabSearchReplace.Controls.Add(this.tabSearch);
     40      this.tabSearchReplace.Controls.Add(this.tabReplace);
     41      this.tabSearchReplace.Location = new System.Drawing.Point(12, 12);
     42      this.tabSearchReplace.Name = "tabSearchReplace";
     43      this.tabSearchReplace.SelectedIndex = 0;
     44      this.tabSearchReplace.Size = new System.Drawing.Size(511, 174);
     45      this.tabSearchReplace.TabIndex = 0;
    4646      //
    47       // tabPage1
     47      // tabSearch
    4848      //
    49       this.tabPage1.Controls.Add(this.txtSearchString);
    50       this.tabPage1.Controls.Add(this.lblSearch);
    51       this.tabPage1.Controls.Add(this.btnFindAll);
    52       this.tabPage1.Controls.Add(this.btnFindNext);
    53       this.tabPage1.Location = new System.Drawing.Point(4, 22);
    54       this.tabPage1.Name = "tabPage1";
    55       this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
    56       this.tabPage1.Size = new System.Drawing.Size(503, 148);
    57       this.tabPage1.TabIndex = 0;
    58       this.tabPage1.Text = "Search";
    59       this.tabPage1.UseVisualStyleBackColor = true;
     49      this.tabSearch.Controls.Add(this.txtSearchString);
     50      this.tabSearch.Controls.Add(this.lblSearch);
     51      this.tabSearch.Controls.Add(this.btnFindAll);
     52      this.tabSearch.Controls.Add(this.btnFindNext);
     53      this.tabSearch.Location = new System.Drawing.Point(4, 22);
     54      this.tabSearch.Name = "tabSearch";
     55      this.tabSearch.Padding = new System.Windows.Forms.Padding(3);
     56      this.tabSearch.Size = new System.Drawing.Size(503, 148);
     57      this.tabSearch.TabIndex = 0;
     58      this.tabSearch.Text = "Search";
     59      this.tabSearch.UseVisualStyleBackColor = true;
    6060      //
    6161      // txtSearchString
     
    9393      this.btnFindNext.UseVisualStyleBackColor = true;
    9494      //
    95       // tabPage2
     95      // tabReplace
    9696      //
    97       this.tabPage2.Location = new System.Drawing.Point(4, 22);
    98       this.tabPage2.Name = "tabPage2";
    99       this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
    100       this.tabPage2.Size = new System.Drawing.Size(503, 148);
    101       this.tabPage2.TabIndex = 1;
    102       this.tabPage2.Text = "Replace";
    103       this.tabPage2.UseVisualStyleBackColor = true;
     97      this.tabReplace.Location = new System.Drawing.Point(4, 22);
     98      this.tabReplace.Name = "tabReplace";
     99      this.tabReplace.Padding = new System.Windows.Forms.Padding(3);
     100      this.tabReplace.Size = new System.Drawing.Size(503, 148);
     101      this.tabReplace.TabIndex = 1;
     102      this.tabReplace.Text = "Replace";
     103      this.tabReplace.UseVisualStyleBackColor = true;
    104104      //
    105105      // FindAndReplaceDialog
     
    108108      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
    109109      this.ClientSize = new System.Drawing.Size(532, 197);
    110       this.Controls.Add(this.tabControl1);
     110      this.Controls.Add(this.tabSearchReplace);
    111111      this.Name = "FindAndReplaceDialog";
    112112      this.Text = "FindAndReplaceDialog";
    113       this.tabControl1.ResumeLayout(false);
    114       this.tabPage1.ResumeLayout(false);
    115       this.tabPage1.PerformLayout();
     113      this.tabSearchReplace.ResumeLayout(false);
     114      this.tabSearch.ResumeLayout(false);
     115      this.tabSearch.PerformLayout();
    116116      this.ResumeLayout(false);
    117117
     
    120120    #endregion
    121121
    122     private System.Windows.Forms.TabControl tabControl1;
    123     private System.Windows.Forms.TabPage tabPage1;
    124     private System.Windows.Forms.TabPage tabPage2;
     122    private System.Windows.Forms.TabControl tabSearchReplace;
     123    private System.Windows.Forms.TabPage tabSearch;
     124    private System.Windows.Forms.TabPage tabReplace;
    125125    private System.Windows.Forms.Button btnFindAll;
    126126    private System.Windows.Forms.Button btnFindNext;
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.3/FindAndReplaceDialog.cs

    r10630 r10633  
    1 using System;
    2 using System.Collections.Generic;
    3 using System.ComponentModel;
    4 using System.Data;
    5 using System.Drawing;
    6 using System.Linq;
    7 using System.Text;
    8 using System.Windows.Forms;
     1using System.Windows.Forms;
    92
    103namespace HeuristicLab.DataPreprocessing.Views {
     
    125    public FindAndReplaceDialog() {
    136      InitializeComponent();
     7    }
     8
     9    public void ActivateSearch() {
     10      tabSearch.Focus();
     11    }
     12
     13    public void ActivateReplace() {
     14      tabReplace.Focus();
    1415    }
    1516
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.3/HeuristicLab.DataPreprocessing.Views-3.3.csproj

    r10632 r10633  
    103103    </Compile>
    104104    <Compile Include="Plugin.cs" />
    105     <Compile Include="PreprocessingCheckedItemListView.cs" />
     105    <Compile Include="PreprocessingCheckedItemListView.cs">
     106      <SubType>UserControl</SubType>
     107    </Compile>
    106108    <Compile Include="PreprocessingCheckedItemListView.Designer.cs">
    107109      <DependentUpon>PreprocessingCheckedItemListView.cs</DependentUpon>
Note: See TracChangeset for help on using the changeset viewer.