Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/11/11 05:13:55 (14 years ago)
Author:
swagner
Message:

Worked on OKB (#1174)

Location:
branches/OKB/HeuristicLab.Clients.OKB-3.3/Views
Files:
24 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/Views/QueryView.Designer.cs

    r5073 r5269  
    4646    private void InitializeComponent() {
    4747      this.components = new System.ComponentModel.Container();
    48       System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(QueryView));
    4948      this.refreshButton = new System.Windows.Forms.Button();
    5049      this.toolTip = new System.Windows.Forms.ToolTip(this.components);
     50      this.showRunsButton = new System.Windows.Forms.Button();
    5151      this.runCollectionView = new HeuristicLab.Clients.OKB.RunCollectionView();
    52       this.showRunsButton = new System.Windows.Forms.Button();
    53       this.queryTextBox = new System.Windows.Forms.TextBox();
     52      this.splitContainer = new System.Windows.Forms.SplitContainer();
     53      this.filtersView = new HeuristicLab.Clients.OKB.FiltersView();
     54      this.filtersGroupBox = new System.Windows.Forms.GroupBox();
     55      this.resultsGroupBox = new System.Windows.Forms.GroupBox();
     56      ((System.ComponentModel.ISupportInitialize)(this.splitContainer)).BeginInit();
     57      this.splitContainer.Panel1.SuspendLayout();
     58      this.splitContainer.Panel2.SuspendLayout();
     59      this.splitContainer.SuspendLayout();
     60      this.filtersGroupBox.SuspendLayout();
     61      this.resultsGroupBox.SuspendLayout();
    5462      this.SuspendLayout();
    5563      //
     
    5765      //
    5866      this.refreshButton.Image = HeuristicLab.Common.Resources.VS2008ImageLibrary.Refresh;
    59       this.refreshButton.Location = new System.Drawing.Point(0, 0);
     67      this.refreshButton.Location = new System.Drawing.Point(6, 19);
    6068      this.refreshButton.Name = "refreshButton";
    6169      this.refreshButton.Size = new System.Drawing.Size(24, 24);
     
    6472      this.refreshButton.UseVisualStyleBackColor = true;
    6573      this.refreshButton.Click += new System.EventHandler(this.refreshButton_Click);
     74      //
     75      // showRunsButton
     76      //
     77      this.showRunsButton.Location = new System.Drawing.Point(36, 19);
     78      this.showRunsButton.Name = "showRunsButton";
     79      this.showRunsButton.Size = new System.Drawing.Size(75, 24);
     80      this.showRunsButton.TabIndex = 1;
     81      this.showRunsButton.Text = "&Show Runs";
     82      this.showRunsButton.UseVisualStyleBackColor = true;
     83      this.showRunsButton.Click += new System.EventHandler(this.showRunsButton_Click);
    6684      //
    6785      // runCollectionView
     
    7290      this.runCollectionView.Caption = "RunCollection View";
    7391      this.runCollectionView.Content = null;
    74       this.runCollectionView.Location = new System.Drawing.Point(0, 30);
     92      this.runCollectionView.Location = new System.Drawing.Point(6, 49);
    7593      this.runCollectionView.Name = "runCollectionView";
    7694      this.runCollectionView.ReadOnly = false;
    77       this.runCollectionView.Size = new System.Drawing.Size(727, 405);
    78       this.runCollectionView.TabIndex = 3;
     95      this.runCollectionView.Size = new System.Drawing.Size(722, 156);
     96      this.runCollectionView.TabIndex = 2;
    7997      //
    80       // showRunsButton
     98      // splitContainer
    8199      //
    82       this.showRunsButton.Location = new System.Drawing.Point(30, 0);
    83       this.showRunsButton.Name = "showRunsButton";
    84       this.showRunsButton.Size = new System.Drawing.Size(75, 24);
    85       this.showRunsButton.TabIndex = 1;
    86       this.showRunsButton.Text = "&Show Runs";
    87       this.showRunsButton.UseVisualStyleBackColor = true;
    88       this.showRunsButton.Click += new System.EventHandler(this.showRunsButton_Click);
     100      this.splitContainer.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     101                  | System.Windows.Forms.AnchorStyles.Left)
     102                  | System.Windows.Forms.AnchorStyles.Right)));
     103      this.splitContainer.Location = new System.Drawing.Point(0, 0);
     104      this.splitContainer.Name = "splitContainer";
     105      this.splitContainer.Orientation = System.Windows.Forms.Orientation.Horizontal;
    89106      //
    90       // queryTextBox
     107      // splitContainer.Panel1
    91108      //
    92       this.queryTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     109      this.splitContainer.Panel1.Controls.Add(this.filtersGroupBox);
     110      //
     111      // splitContainer.Panel2
     112      //
     113      this.splitContainer.Panel2.Controls.Add(this.resultsGroupBox);
     114      this.splitContainer.Size = new System.Drawing.Size(734, 435);
     115      this.splitContainer.SplitterDistance = 217;
     116      this.splitContainer.TabIndex = 0;
     117      //
     118      // filtersView
     119      //
     120      this.filtersView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     121                  | System.Windows.Forms.AnchorStyles.Left)
    93122                  | System.Windows.Forms.AnchorStyles.Right)));
    94       this.queryTextBox.Location = new System.Drawing.Point(111, 3);
    95       this.queryTextBox.Name = "queryTextBox";
    96       this.queryTextBox.Size = new System.Drawing.Size(616, 20);
    97       this.queryTextBox.TabIndex = 2;
     123      this.filtersView.Caption = "Filters View";
     124      this.filtersView.Location = new System.Drawing.Point(6, 19);
     125      this.filtersView.Name = "filtersView";
     126      this.filtersView.ReadOnly = false;
     127      this.filtersView.Size = new System.Drawing.Size(722, 189);
     128      this.filtersView.TabIndex = 0;
     129      //
     130      // filtersGroupBox
     131      //
     132      this.filtersGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     133                  | System.Windows.Forms.AnchorStyles.Left)
     134                  | System.Windows.Forms.AnchorStyles.Right)));
     135      this.filtersGroupBox.Controls.Add(this.filtersView);
     136      this.filtersGroupBox.Location = new System.Drawing.Point(0, 0);
     137      this.filtersGroupBox.Name = "filtersGroupBox";
     138      this.filtersGroupBox.Size = new System.Drawing.Size(734, 214);
     139      this.filtersGroupBox.TabIndex = 0;
     140      this.filtersGroupBox.TabStop = false;
     141      this.filtersGroupBox.Text = "Filters";
     142      //
     143      // resultsGroupBox
     144      //
     145      this.resultsGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     146                  | System.Windows.Forms.AnchorStyles.Left)
     147                  | System.Windows.Forms.AnchorStyles.Right)));
     148      this.resultsGroupBox.Controls.Add(this.refreshButton);
     149      this.resultsGroupBox.Controls.Add(this.runCollectionView);
     150      this.resultsGroupBox.Controls.Add(this.showRunsButton);
     151      this.resultsGroupBox.Location = new System.Drawing.Point(0, 3);
     152      this.resultsGroupBox.Name = "resultsGroupBox";
     153      this.resultsGroupBox.Size = new System.Drawing.Size(734, 211);
     154      this.resultsGroupBox.TabIndex = 0;
     155      this.resultsGroupBox.TabStop = false;
     156      this.resultsGroupBox.Text = "Results";
    98157      //
    99158      // QueryView
     
    101160      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
    102161      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
    103       this.Controls.Add(this.queryTextBox);
    104       this.Controls.Add(this.showRunsButton);
    105       this.Controls.Add(this.runCollectionView);
    106       this.Controls.Add(this.refreshButton);
     162      this.Controls.Add(this.splitContainer);
    107163      this.Name = "QueryView";
    108       this.Size = new System.Drawing.Size(727, 435);
     164      this.Size = new System.Drawing.Size(734, 435);
     165      this.splitContainer.Panel1.ResumeLayout(false);
     166      this.splitContainer.Panel2.ResumeLayout(false);
     167      ((System.ComponentModel.ISupportInitialize)(this.splitContainer)).EndInit();
     168      this.splitContainer.ResumeLayout(false);
     169      this.filtersGroupBox.ResumeLayout(false);
     170      this.resultsGroupBox.ResumeLayout(false);
    109171      this.ResumeLayout(false);
    110       this.PerformLayout();
    111172
    112173    }
     
    118179    private RunCollectionView runCollectionView;
    119180    private System.Windows.Forms.Button showRunsButton;
    120     private System.Windows.Forms.TextBox queryTextBox;
     181    private System.Windows.Forms.SplitContainer splitContainer;
     182    private FiltersView filtersView;
     183    private System.Windows.Forms.GroupBox filtersGroupBox;
     184    private System.Windows.Forms.GroupBox resultsGroupBox;
    121185
    122186  }
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/Views/QueryView.cs

    r5073 r5269  
    6060    protected override void SetEnabledStateOfControls() {
    6161      base.SetEnabledStateOfControls();
     62      filtersView.Enabled = Content != null;
    6263      refreshButton.Enabled = Content != null;
     64      showRunsButton.Enabled = Content != null;
    6365      runCollectionView.Enabled = Content != null;
    6466    }
    6567
    6668    private void refreshButton_Click(object sender, EventArgs e) {
    67       runCollectionView.Content = Content.QueryRuns(queryTextBox.Text);
     69      runCollectionView.Content = Content.QueryRuns(filtersView.Filters);
    6870    }
    6971
Note: See TracChangeset for help on using the changeset viewer.