Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/20/10 16:16:02 (15 years ago)
Author:
epitzer
Message:

New ProgrammableOperator with syntax highlighting, code completion, configurable assemblies and namespaces (#842)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Operators.Programmable/3.2/ProgrammableOperatorView.Designer.cs

    r1530 r2660  
    4545    /// </summary>
    4646    private void InitializeComponent() {
    47       System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ProgrammableOperatorView));
     47      System.Windows.Forms.SplitContainer splitContainer1;
     48      System.Windows.Forms.SplitContainer splitContainer2;
     49      System.Windows.Forms.GroupBox groupBox1;
     50      System.Windows.Forms.GroupBox groupBox2;
     51      this.assembliesListBox = new System.Windows.Forms.CheckedListBox();
     52      this.namespacesListBox = new System.Windows.Forms.CheckedListBox();
     53      this.groupBox3 = new System.Windows.Forms.GroupBox();
     54      this.showCodeButton = new System.Windows.Forms.Button();
     55      this.compileButton = new System.Windows.Forms.Button();
    4856      this.tabControl = new System.Windows.Forms.TabControl();
    4957      this.codeTabPage = new System.Windows.Forms.TabPage();
    50       this.infoTextBox = new System.Windows.Forms.TextBox();
    51       this.compileButton = new System.Windows.Forms.Button();
    52       this.codeTextBox = new System.Windows.Forms.TextBox();
    5358      this.variableInfosTabPage = new System.Windows.Forms.TabPage();
    5459      this.removeVariableInfoButton = new System.Windows.Forms.Button();
     
    6166      this.descriptionTabPage = new System.Windows.Forms.TabPage();
    6267      this.descriptionTextBox = new System.Windows.Forms.TextBox();
     68      this.codeEditor = new HeuristicLab.CodeEditor.CodeEditor();
     69      splitContainer1 = new System.Windows.Forms.SplitContainer();
     70      splitContainer2 = new System.Windows.Forms.SplitContainer();
     71      groupBox1 = new System.Windows.Forms.GroupBox();
     72      groupBox2 = new System.Windows.Forms.GroupBox();
     73      splitContainer1.Panel1.SuspendLayout();
     74      splitContainer1.Panel2.SuspendLayout();
     75      splitContainer1.SuspendLayout();
     76      splitContainer2.Panel1.SuspendLayout();
     77      splitContainer2.Panel2.SuspendLayout();
     78      splitContainer2.SuspendLayout();
     79      groupBox1.SuspendLayout();
     80      groupBox2.SuspendLayout();
     81      this.groupBox3.SuspendLayout();
    6382      this.tabControl.SuspendLayout();
    6483      this.codeTabPage.SuspendLayout();
     
    6887      this.descriptionTabPage.SuspendLayout();
    6988      this.SuspendLayout();
     89      //
     90      // splitContainer1
     91      //
     92      splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
     93      splitContainer1.Location = new System.Drawing.Point(3, 3);
     94      splitContainer1.Name = "splitContainer1";
     95      splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
     96      //
     97      // splitContainer1.Panel1
     98      //
     99      splitContainer1.Panel1.Controls.Add(splitContainer2);
     100      //
     101      // splitContainer1.Panel2
     102      //
     103      splitContainer1.Panel2.Controls.Add(this.groupBox3);
     104      splitContainer1.Size = new System.Drawing.Size(693, 457);
     105      splitContainer1.SplitterDistance = 85;
     106      splitContainer1.TabIndex = 6;
     107      //
     108      // splitContainer2
     109      //
     110      splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
     111      splitContainer2.Location = new System.Drawing.Point(0, 0);
     112      splitContainer2.Name = "splitContainer2";
     113      //
     114      // splitContainer2.Panel1
     115      //
     116      splitContainer2.Panel1.Controls.Add(groupBox1);
     117      //
     118      // splitContainer2.Panel2
     119      //
     120      splitContainer2.Panel2.Controls.Add(groupBox2);
     121      splitContainer2.Size = new System.Drawing.Size(693, 85);
     122      splitContainer2.SplitterDistance = 340;
     123      splitContainer2.TabIndex = 2;
     124      //
     125      // groupBox1
     126      //
     127      groupBox1.Controls.Add(this.assembliesListBox);
     128      groupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
     129      groupBox1.Location = new System.Drawing.Point(0, 0);
     130      groupBox1.Name = "groupBox1";
     131      groupBox1.Size = new System.Drawing.Size(340, 85);
     132      groupBox1.TabIndex = 0;
     133      groupBox1.TabStop = false;
     134      groupBox1.Text = "Assemblies";
     135      //
     136      // assembliesListBox
     137      //
     138      this.assembliesListBox.CheckOnClick = true;
     139      this.assembliesListBox.Dock = System.Windows.Forms.DockStyle.Fill;
     140      this.assembliesListBox.FormattingEnabled = true;
     141      this.assembliesListBox.Location = new System.Drawing.Point(3, 16);
     142      this.assembliesListBox.Name = "assembliesListBox";
     143      this.assembliesListBox.Size = new System.Drawing.Size(334, 64);
     144      this.assembliesListBox.Sorted = true;
     145      this.assembliesListBox.TabIndex = 0;
     146      this.assembliesListBox.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.assembliesListBox_ItemCheck);
     147      //
     148      // groupBox2
     149      //
     150      groupBox2.Controls.Add(this.namespacesListBox);
     151      groupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
     152      groupBox2.Location = new System.Drawing.Point(0, 0);
     153      groupBox2.Name = "groupBox2";
     154      groupBox2.Size = new System.Drawing.Size(349, 85);
     155      groupBox2.TabIndex = 0;
     156      groupBox2.TabStop = false;
     157      groupBox2.Text = "Namespaces";
     158      //
     159      // namespacesListBox
     160      //
     161      this.namespacesListBox.CheckOnClick = true;
     162      this.namespacesListBox.Dock = System.Windows.Forms.DockStyle.Fill;
     163      this.namespacesListBox.FormattingEnabled = true;
     164      this.namespacesListBox.Location = new System.Drawing.Point(3, 16);
     165      this.namespacesListBox.Name = "namespacesListBox";
     166      this.namespacesListBox.Size = new System.Drawing.Size(343, 64);
     167      this.namespacesListBox.Sorted = true;
     168      this.namespacesListBox.TabIndex = 1;
     169      this.namespacesListBox.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.namespacesListBox_ItemCheck);
     170      //
     171      // groupBox3
     172      //
     173      this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     174                  | System.Windows.Forms.AnchorStyles.Left)
     175                  | System.Windows.Forms.AnchorStyles.Right)));
     176      this.groupBox3.Controls.Add(this.showCodeButton);
     177      this.groupBox3.Controls.Add(this.codeEditor);
     178      this.groupBox3.Controls.Add(this.compileButton);
     179      this.groupBox3.Location = new System.Drawing.Point(3, 2);
     180      this.groupBox3.Name = "groupBox3";
     181      this.groupBox3.Size = new System.Drawing.Size(687, 363);
     182      this.groupBox3.TabIndex = 7;
     183      this.groupBox3.TabStop = false;
     184      this.groupBox3.Text = "Code";
     185      //
     186      // showCodeButton
     187      //
     188      this.showCodeButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     189      this.showCodeButton.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     190      this.showCodeButton.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.ControlDark;
     191      this.showCodeButton.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.GradientActiveCaption;
     192      this.showCodeButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     193      this.showCodeButton.Location = new System.Drawing.Point(467, 333);
     194      this.showCodeButton.Name = "showCodeButton";
     195      this.showCodeButton.Size = new System.Drawing.Size(133, 23);
     196      this.showCodeButton.TabIndex = 7;
     197      this.showCodeButton.Text = "Show Generated Code";
     198      this.showCodeButton.UseVisualStyleBackColor = true;
     199      this.showCodeButton.Click += new System.EventHandler(this.showCodeButton_Click);
     200      //
     201      // compileButton
     202      //
     203      this.compileButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     204      this.compileButton.Location = new System.Drawing.Point(606, 334);
     205      this.compileButton.Name = "compileButton";
     206      this.compileButton.Size = new System.Drawing.Size(75, 23);
     207      this.compileButton.TabIndex = 3;
     208      this.compileButton.Text = "&Compile";
     209      this.compileButton.UseVisualStyleBackColor = true;
     210      this.compileButton.Click += new System.EventHandler(this.compileButton_Click);
    70211      //
    71212      // tabControl
     
    80221      this.tabControl.Name = "tabControl";
    81222      this.tabControl.SelectedIndex = 0;
    82       this.tabControl.Size = new System.Drawing.Size(435, 351);
     223      this.tabControl.Size = new System.Drawing.Size(707, 489);
    83224      this.tabControl.TabIndex = 0;
    84225      //
    85226      // codeTabPage
    86227      //
    87       this.codeTabPage.Controls.Add(this.infoTextBox);
    88       this.codeTabPage.Controls.Add(this.compileButton);
    89       this.codeTabPage.Controls.Add(this.codeTextBox);
     228      this.codeTabPage.Controls.Add(splitContainer1);
    90229      this.codeTabPage.Location = new System.Drawing.Point(4, 22);
    91230      this.codeTabPage.Name = "codeTabPage";
    92231      this.codeTabPage.Padding = new System.Windows.Forms.Padding(3);
    93       this.codeTabPage.Size = new System.Drawing.Size(427, 325);
     232      this.codeTabPage.Size = new System.Drawing.Size(699, 463);
    94233      this.codeTabPage.TabIndex = 5;
    95234      this.codeTabPage.Text = "Code";
    96235      this.codeTabPage.UseVisualStyleBackColor = true;
    97       //
    98       // infoTextBox
    99       //
    100       this.infoTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
    101                   | System.Windows.Forms.AnchorStyles.Right)));
    102       this.infoTextBox.BackColor = System.Drawing.SystemColors.ControlLight;
    103       this.infoTextBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
    104       this.infoTextBox.Location = new System.Drawing.Point(6, 253);
    105       this.infoTextBox.Multiline = true;
    106       this.infoTextBox.Name = "infoTextBox";
    107       this.infoTextBox.ReadOnly = true;
    108       this.infoTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
    109       this.infoTextBox.Size = new System.Drawing.Size(334, 66);
    110       this.infoTextBox.TabIndex = 2;
    111       this.infoTextBox.Text = resources.GetString("infoTextBox.Text");
    112       //
    113       // compileButton
    114       //
    115       this.compileButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
    116       this.compileButton.Location = new System.Drawing.Point(346, 296);
    117       this.compileButton.Name = "compileButton";
    118       this.compileButton.Size = new System.Drawing.Size(75, 23);
    119       this.compileButton.TabIndex = 1;
    120       this.compileButton.Text = "&Compile";
    121       this.compileButton.UseVisualStyleBackColor = true;
    122       this.compileButton.Click += new System.EventHandler(this.compileButton_Click);
    123       //
    124       // codeTextBox
    125       //
    126       this.codeTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
    127                   | System.Windows.Forms.AnchorStyles.Left)
    128                   | System.Windows.Forms.AnchorStyles.Right)));
    129       this.codeTextBox.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
    130       this.codeTextBox.Location = new System.Drawing.Point(3, 3);
    131       this.codeTextBox.Multiline = true;
    132       this.codeTextBox.Name = "codeTextBox";
    133       this.codeTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
    134       this.codeTextBox.Size = new System.Drawing.Size(421, 244);
    135       this.codeTextBox.TabIndex = 0;
    136       this.codeTextBox.Validated += new System.EventHandler(this.codeTextBox_Validated);
    137236      //
    138237      // variableInfosTabPage
     
    144243      this.variableInfosTabPage.Name = "variableInfosTabPage";
    145244      this.variableInfosTabPage.Padding = new System.Windows.Forms.Padding(3);
    146       this.variableInfosTabPage.Size = new System.Drawing.Size(427, 325);
     245      this.variableInfosTabPage.Size = new System.Drawing.Size(699, 463);
    147246      this.variableInfosTabPage.TabIndex = 1;
    148247      this.variableInfosTabPage.Text = "Variable Infos";
     
    153252      this.removeVariableInfoButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
    154253      this.removeVariableInfoButton.Enabled = false;
    155       this.removeVariableInfoButton.Location = new System.Drawing.Point(84, 299);
     254      this.removeVariableInfoButton.Location = new System.Drawing.Point(87, 434);
    156255      this.removeVariableInfoButton.Name = "removeVariableInfoButton";
    157256      this.removeVariableInfoButton.Size = new System.Drawing.Size(75, 23);
     
    164263      //
    165264      this.addVariableInfoButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
    166       this.addVariableInfoButton.Location = new System.Drawing.Point(3, 299);
     265      this.addVariableInfoButton.Location = new System.Drawing.Point(6, 434);
    167266      this.addVariableInfoButton.Name = "addVariableInfoButton";
    168267      this.addVariableInfoButton.Size = new System.Drawing.Size(75, 23);
     
    181280      this.operatorBaseVariableInfosView.Name = "operatorBaseVariableInfosView";
    182281      this.operatorBaseVariableInfosView.Operator = null;
    183       this.operatorBaseVariableInfosView.Size = new System.Drawing.Size(421, 290);
     282      this.operatorBaseVariableInfosView.Size = new System.Drawing.Size(690, 425);
    184283      this.operatorBaseVariableInfosView.TabIndex = 0;
    185284      this.operatorBaseVariableInfosView.SelectedVariableInfosChanged += new System.EventHandler(this.operatorBaseVariableInfosView_SelectedVariableInfosChanged);
     
    191290      this.variablesTabPage.Name = "variablesTabPage";
    192291      this.variablesTabPage.Padding = new System.Windows.Forms.Padding(3);
    193       this.variablesTabPage.Size = new System.Drawing.Size(427, 325);
     292      this.variablesTabPage.Size = new System.Drawing.Size(699, 463);
    194293      this.variablesTabPage.TabIndex = 2;
    195294      this.variablesTabPage.Text = "Local Variables";
     
    203302      this.operatorBaseVariablesView.Name = "operatorBaseVariablesView";
    204303      this.operatorBaseVariablesView.Operator = null;
    205       this.operatorBaseVariablesView.Size = new System.Drawing.Size(421, 319);
     304      this.operatorBaseVariablesView.Size = new System.Drawing.Size(693, 457);
    206305      this.operatorBaseVariablesView.TabIndex = 0;
    207306      //
     
    212311      this.constraintsTabPage.Name = "constraintsTabPage";
    213312      this.constraintsTabPage.Padding = new System.Windows.Forms.Padding(3);
    214       this.constraintsTabPage.Size = new System.Drawing.Size(427, 325);
     313      this.constraintsTabPage.Size = new System.Drawing.Size(699, 463);
    215314      this.constraintsTabPage.TabIndex = 3;
    216315      this.constraintsTabPage.Text = "Constraints";
     
    224323      this.constrainedItemBaseView.Location = new System.Drawing.Point(3, 3);
    225324      this.constrainedItemBaseView.Name = "constrainedItemBaseView";
    226       this.constrainedItemBaseView.Size = new System.Drawing.Size(421, 319);
     325      this.constrainedItemBaseView.Size = new System.Drawing.Size(693, 457);
    227326      this.constrainedItemBaseView.TabIndex = 0;
    228327      //
     
    233332      this.descriptionTabPage.Name = "descriptionTabPage";
    234333      this.descriptionTabPage.Padding = new System.Windows.Forms.Padding(3);
    235       this.descriptionTabPage.Size = new System.Drawing.Size(427, 325);
     334      this.descriptionTabPage.Size = new System.Drawing.Size(699, 463);
    236335      this.descriptionTabPage.TabIndex = 4;
    237336      this.descriptionTabPage.Text = "Description";
     
    246345      this.descriptionTextBox.Name = "descriptionTextBox";
    247346      this.descriptionTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
    248       this.descriptionTextBox.Size = new System.Drawing.Size(421, 319);
     347      this.descriptionTextBox.Size = new System.Drawing.Size(693, 457);
    249348      this.descriptionTextBox.TabIndex = 0;
    250349      this.descriptionTextBox.Validated += new System.EventHandler(this.descriptionTextBox_Validated);
     350      //
     351      // codeEditor
     352      //
     353      this.codeEditor.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     354                  | System.Windows.Forms.AnchorStyles.Left)
     355                  | System.Windows.Forms.AnchorStyles.Right)));
     356      this.codeEditor.Location = new System.Drawing.Point(6, 19);
     357      this.codeEditor.Name = "codeEditor";
     358      this.codeEditor.Prefix = "using System;\r\nusing HeuristicLab.Common.Resources;\r\n\r\npublic class Operator {\r\n " +
     359          " public static void Apply(int arg) {";
     360      this.codeEditor.Size = new System.Drawing.Size(675, 309);
     361      this.codeEditor.Suffix = "\n    return null;\n  }\n}";
     362      this.codeEditor.TabIndex = 6;
     363      this.codeEditor.UserCode = "\n\n\n";
     364      this.codeEditor.TextEditorValidated += new System.EventHandler(this.codeEditor_Validated);
    251365      //
    252366      // ProgrammableOperatorView
     
    256370      this.Controls.Add(this.tabControl);
    257371      this.Name = "ProgrammableOperatorView";
    258       this.Size = new System.Drawing.Size(435, 351);
     372      this.Size = new System.Drawing.Size(707, 489);
     373      splitContainer1.Panel1.ResumeLayout(false);
     374      splitContainer1.Panel2.ResumeLayout(false);
     375      splitContainer1.ResumeLayout(false);
     376      splitContainer2.Panel1.ResumeLayout(false);
     377      splitContainer2.Panel2.ResumeLayout(false);
     378      splitContainer2.ResumeLayout(false);
     379      groupBox1.ResumeLayout(false);
     380      groupBox2.ResumeLayout(false);
     381      this.groupBox3.ResumeLayout(false);
    259382      this.tabControl.ResumeLayout(false);
    260383      this.codeTabPage.ResumeLayout(false);
    261       this.codeTabPage.PerformLayout();
    262384      this.variableInfosTabPage.ResumeLayout(false);
    263385      this.variablesTabPage.ResumeLayout(false);
     
    273395    private System.Windows.Forms.TabControl tabControl;
    274396    private System.Windows.Forms.TabPage codeTabPage;
    275     private System.Windows.Forms.TextBox codeTextBox;
    276397    private System.Windows.Forms.TabPage variableInfosTabPage;
    277398    private HeuristicLab.Core.OperatorBaseVariableInfosView operatorBaseVariableInfosView;
     
    282403    private System.Windows.Forms.TabPage descriptionTabPage;
    283404    private System.Windows.Forms.TextBox descriptionTextBox;
    284     private System.Windows.Forms.Button compileButton;
    285405    private System.Windows.Forms.Button removeVariableInfoButton;
    286406    private System.Windows.Forms.Button addVariableInfoButton;
    287     private System.Windows.Forms.TextBox infoTextBox;
     407    private System.Windows.Forms.CheckedListBox assembliesListBox;
     408    private System.Windows.Forms.CheckedListBox namespacesListBox;
     409    private System.Windows.Forms.GroupBox groupBox3;
     410    private HeuristicLab.CodeEditor.CodeEditor codeEditor;
     411    private System.Windows.Forms.Button compileButton;
     412    private System.Windows.Forms.Button showCodeButton;
    288413
    289414  }
Note: See TracChangeset for help on using the changeset viewer.