Free cookie consent management tool by TermsFeed Policy Generator

Changeset 5525


Ignore:
Timestamp:
02/21/11 16:59:05 (13 years ago)
Author:
ascheibe
Message:

#1233 worked on administration gui

Location:
branches/HeuristicLab.Hive-3.4/sources
Files:
10 added
5 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/Administration/HiveAdministrationView.Designer.cs

    r5512 r5525  
    2222namespace HeuristicLab.Clients.Hive.Views.Administration {
    2323  partial class HiveAdministrationView {
    24     /// <summary>
    25     /// Required designer variable.
    26     /// </summary>
    27     private System.ComponentModel.IContainer components = null;
    28 
    29     /// <summary>
    30     /// Clean up any resources being used.
    31     /// </summary>
    32     /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
    33     protected override void Dispose(bool disposing) {
    34       if (disposing && (components != null)) {
    35         components.Dispose();
    36       }
    37       base.Dispose(disposing);
    38     }
     24    private System.Windows.Forms.TabControl tabAdmin;
     25    private System.Windows.Forms.TabPage tabSlaves;
     26    private System.Windows.Forms.SplitContainer splitSlaves;
     27    private System.Windows.Forms.TreeView treeSlaveGroup;
     28    private System.Windows.Forms.TabControl tabSlaveGroup;
     29    private System.Windows.Forms.TabPage tabDetails;
     30    private System.Windows.Forms.TabPage tabSchedule;
     31    private System.Windows.Forms.TabPage tabJobs;
     32    private System.Windows.Forms.TabPage tabUsers;
    3933
    4034    #region Component Designer generated code
    41 
    42     /// <summary>
    43     /// Required method for Designer support - do not modify
    44     /// the contents of this method with the code editor.
    45     /// </summary>
    4635    private void InitializeComponent() {
     36      this.components = new System.ComponentModel.Container();
    4737      System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(HiveAdministrationView));
    4838      this.tabAdmin = new System.Windows.Forms.TabControl();
     
    5242      this.btnAddGroup = new System.Windows.Forms.Button();
    5343      this.treeSlaveGroup = new System.Windows.Forms.TreeView();
     44      this.imageListSlaveGroups = new System.Windows.Forms.ImageList(this.components);
    5445      this.tabSlaveGroup = new System.Windows.Forms.TabControl();
    5546      this.tabDetails = new System.Windows.Forms.TabPage();
     47      this.txtSlaveState = new System.Windows.Forms.TextBox();
     48      this.txtOS = new System.Windows.Forms.TextBox();
     49      this.label15 = new System.Windows.Forms.Label();
     50      this.label14 = new System.Windows.Forms.Label();
     51      this.txtDetailsDescription = new System.Windows.Forms.TextBox();
     52      this.label13 = new System.Windows.Forms.Label();
    5653      this.txtName = new System.Windows.Forms.TextBox();
    5754      this.txtCPU = new System.Windows.Forms.TextBox();
     
    6360      this.label9 = new System.Windows.Forms.Label();
    6461      this.tabSchedule = new System.Windows.Forms.TabPage();
    65       this.scheduleControl1 = new HeuristicLab.Clients.Hive.Views.Administration.ScheduleControl();
    6662      this.tabJobs = new System.Windows.Forms.TabPage();
    67       this.hiveJobListViewSlaves = new HeuristicLab.Clients.Hive.Views.HiveJobListView();
    6863      this.tabUsers = new System.Windows.Forms.TabPage();
    6964      this.splitUsers = new System.Windows.Forms.SplitContainer();
    7065      this.lstUsers = new System.Windows.Forms.ListView();
     66      this.imageListUsers = new System.Windows.Forms.ImageList(this.components);
    7167      this.tabUserDetails = new System.Windows.Forms.TabControl();
    7268      this.tabUserInformation = new System.Windows.Forms.TabPage();
     
    8884      this.tabStatistics = new System.Windows.Forms.TabPage();
    8985      this.label5 = new System.Windows.Forms.Label();
     86      this.updateSlaveGroups = new HeuristicLab.Clients.Hive.Views.Common.UpdateControl();
     87      this.scheduleControl1 = new HeuristicLab.Clients.Hive.Views.Administration.ScheduleControl();
     88      this.hiveJobListViewSlaves = new HeuristicLab.Clients.Hive.Views.HiveJobListView();
    9089      this.hiveExperimentManagerView = new HeuristicLab.Clients.Hive.Views.HiveExperimentManagerView();
     90      this.updateControl1 = new HeuristicLab.Clients.Hive.Views.Common.UpdateControl();
     91      this.updateControl2 = new HeuristicLab.Clients.Hive.Views.Common.UpdateControl();
    9192      this.tabAdmin.SuspendLayout();
    9293      this.tabSlaves.SuspendLayout();
     
    145146      // splitSlaves.Panel1
    146147      //
     148      this.splitSlaves.Panel1.Controls.Add(this.updateSlaveGroups);
    147149      this.splitSlaves.Panel1.Controls.Add(this.btnRemoveGroup);
    148150      this.splitSlaves.Panel1.Controls.Add(this.btnAddGroup);
     
    179181                  | System.Windows.Forms.AnchorStyles.Left)
    180182                  | System.Windows.Forms.AnchorStyles.Right)));
     183      this.treeSlaveGroup.ImageIndex = 0;
     184      this.treeSlaveGroup.ImageList = this.imageListSlaveGroups;
    181185      this.treeSlaveGroup.Location = new System.Drawing.Point(3, 33);
    182186      this.treeSlaveGroup.Name = "treeSlaveGroup";
     187      this.treeSlaveGroup.SelectedImageIndex = 0;
    183188      this.treeSlaveGroup.Size = new System.Drawing.Size(209, 472);
    184189      this.treeSlaveGroup.TabIndex = 0;
    185190      this.treeSlaveGroup.Click += new System.EventHandler(this.treeSlaveGroup_Click);
     191      this.treeSlaveGroup.MouseClick += new System.Windows.Forms.MouseEventHandler(this.treeSlaveGroup_MouseClick);
     192      //
     193      // imageListSlaveGroups
     194      //
     195      this.imageListSlaveGroups.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit;
     196      this.imageListSlaveGroups.ImageSize = new System.Drawing.Size(16, 16);
     197      this.imageListSlaveGroups.TransparentColor = System.Drawing.Color.Transparent;
    186198      //
    187199      // tabSlaveGroup
     
    201213      // tabDetails
    202214      //
     215      this.tabDetails.Controls.Add(this.txtSlaveState);
     216      this.tabDetails.Controls.Add(this.txtOS);
     217      this.tabDetails.Controls.Add(this.label15);
     218      this.tabDetails.Controls.Add(this.label14);
     219      this.tabDetails.Controls.Add(this.txtDetailsDescription);
     220      this.tabDetails.Controls.Add(this.label13);
    203221      this.tabDetails.Controls.Add(this.txtName);
    204222      this.tabDetails.Controls.Add(this.txtCPU);
     
    217235      this.tabDetails.UseVisualStyleBackColor = true;
    218236      //
     237      // txtSlaveState
     238      //
     239      this.txtSlaveState.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     240                  | System.Windows.Forms.AnchorStyles.Right)));
     241      this.txtSlaveState.Location = new System.Drawing.Point(134, 145);
     242      this.txtSlaveState.Name = "txtSlaveState";
     243      this.txtSlaveState.Size = new System.Drawing.Size(352, 20);
     244      this.txtSlaveState.TabIndex = 13;
     245      this.txtSlaveState.Text = "Offline";
     246      //
     247      // txtOS
     248      //
     249      this.txtOS.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     250                  | System.Windows.Forms.AnchorStyles.Right)));
     251      this.txtOS.Location = new System.Drawing.Point(134, 119);
     252      this.txtOS.Name = "txtOS";
     253      this.txtOS.Size = new System.Drawing.Size(352, 20);
     254      this.txtOS.TabIndex = 12;
     255      this.txtOS.Text = "Windows 7";
     256      //
     257      // label15
     258      //
     259      this.label15.AutoSize = true;
     260      this.label15.Location = new System.Drawing.Point(16, 152);
     261      this.label15.Name = "label15";
     262      this.label15.Size = new System.Drawing.Size(32, 13);
     263      this.label15.TabIndex = 11;
     264      this.label15.Text = "State";
     265      //
     266      // label14
     267      //
     268      this.label14.AutoSize = true;
     269      this.label14.Location = new System.Drawing.Point(14, 126);
     270      this.label14.Name = "label14";
     271      this.label14.Size = new System.Drawing.Size(90, 13);
     272      this.label14.TabIndex = 10;
     273      this.label14.Text = "Operating System";
     274      //
     275      // txtDetailsDescription
     276      //
     277      this.txtDetailsDescription.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     278                  | System.Windows.Forms.AnchorStyles.Right)));
     279      this.txtDetailsDescription.Location = new System.Drawing.Point(133, 41);
     280      this.txtDetailsDescription.Name = "txtDetailsDescription";
     281      this.txtDetailsDescription.Size = new System.Drawing.Size(353, 20);
     282      this.txtDetailsDescription.TabIndex = 9;
     283      this.txtDetailsDescription.Text = "ascheibepc Description";
     284      //
     285      // label13
     286      //
     287      this.label13.AutoSize = true;
     288      this.label13.Location = new System.Drawing.Point(17, 48);
     289      this.label13.Name = "label13";
     290      this.label13.Size = new System.Drawing.Size(60, 13);
     291      this.label13.TabIndex = 8;
     292      this.label13.Text = "Description";
     293      //
    219294      // txtName
    220295      //
    221296      this.txtName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    222297                  | System.Windows.Forms.AnchorStyles.Right)));
    223       this.txtName.Location = new System.Drawing.Point(123, 30);
     298      this.txtName.Location = new System.Drawing.Point(133, 15);
    224299      this.txtName.Name = "txtName";
    225       this.txtName.Size = new System.Drawing.Size(100, 20);
     300      this.txtName.Size = new System.Drawing.Size(353, 20);
    226301      this.txtName.TabIndex = 7;
    227302      this.txtName.Text = "ascheibepc";
     
    231306      this.txtCPU.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    232307                  | System.Windows.Forms.AnchorStyles.Right)));
    233       this.txtCPU.Location = new System.Drawing.Point(123, 56);
     308      this.txtCPU.Location = new System.Drawing.Point(133, 67);
    234309      this.txtCPU.Name = "txtCPU";
    235       this.txtCPU.Size = new System.Drawing.Size(100, 20);
     310      this.txtCPU.Size = new System.Drawing.Size(353, 20);
    236311      this.txtCPU.TabIndex = 6;
    237312      this.txtCPU.Text = "Intel Core 2 Duo @ 2.4 Ghz";
     
    241316      this.txtMemory.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    242317                  | System.Windows.Forms.AnchorStyles.Right)));
    243       this.txtMemory.Location = new System.Drawing.Point(123, 82);
     318      this.txtMemory.Location = new System.Drawing.Point(133, 93);
    244319      this.txtMemory.Name = "txtMemory";
    245       this.txtMemory.Size = new System.Drawing.Size(100, 20);
     320      this.txtMemory.Size = new System.Drawing.Size(353, 20);
    246321      this.txtMemory.TabIndex = 5;
    247322      this.txtMemory.Text = "2048 MB";
     
    251326      this.txtDetailsCalculatedJobs.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    252327                  | System.Windows.Forms.AnchorStyles.Right)));
    253       this.txtDetailsCalculatedJobs.Location = new System.Drawing.Point(123, 108);
     328      this.txtDetailsCalculatedJobs.Location = new System.Drawing.Point(134, 171);
    254329      this.txtDetailsCalculatedJobs.Name = "txtDetailsCalculatedJobs";
    255       this.txtDetailsCalculatedJobs.Size = new System.Drawing.Size(100, 20);
     330      this.txtDetailsCalculatedJobs.Size = new System.Drawing.Size(352, 20);
    256331      this.txtDetailsCalculatedJobs.TabIndex = 4;
    257332      this.txtDetailsCalculatedJobs.Text = "33";
     
    260335      //
    261336      this.label12.AutoSize = true;
    262       this.label12.Location = new System.Drawing.Point(6, 115);
     337      this.label12.Location = new System.Drawing.Point(17, 178);
    263338      this.label12.Name = "label12";
    264339      this.label12.Size = new System.Drawing.Size(82, 13);
     
    269344      //
    270345      this.label11.AutoSize = true;
    271       this.label11.Location = new System.Drawing.Point(7, 89);
     346      this.label11.Location = new System.Drawing.Point(17, 100);
    272347      this.label11.Name = "label11";
    273348      this.label11.Size = new System.Drawing.Size(44, 13);
     
    278353      //
    279354      this.label10.AutoSize = true;
    280       this.label10.Location = new System.Drawing.Point(7, 63);
     355      this.label10.Location = new System.Drawing.Point(17, 74);
    281356      this.label10.Name = "label10";
    282357      this.label10.Size = new System.Drawing.Size(29, 13);
     
    287362      //
    288363      this.label9.AutoSize = true;
    289       this.label9.Location = new System.Drawing.Point(7, 38);
     364      this.label9.Location = new System.Drawing.Point(16, 22);
    290365      this.label9.Name = "label9";
    291366      this.label9.Size = new System.Drawing.Size(35, 13);
     
    304379      this.tabSchedule.UseVisualStyleBackColor = true;
    305380      //
    306       // scheduleControl1
    307       //
    308       this.scheduleControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
    309                   | System.Windows.Forms.AnchorStyles.Left)
    310                   | System.Windows.Forms.AnchorStyles.Right)));
    311       this.scheduleControl1.Location = new System.Drawing.Point(7, 7);
    312       this.scheduleControl1.Name = "scheduleControl1";
    313       this.scheduleControl1.Size = new System.Drawing.Size(862, 562);
    314       this.scheduleControl1.TabIndex = 0;
    315       //
    316381      // tabJobs
    317382      //
     383      this.tabJobs.Controls.Add(this.updateControl1);
    318384      this.tabJobs.Controls.Add(this.hiveJobListViewSlaves);
    319385      this.tabJobs.Location = new System.Drawing.Point(4, 22);
     
    325391      this.tabJobs.UseVisualStyleBackColor = true;
    326392      //
    327       // hiveJobListViewSlaves
    328       //
    329       this.hiveJobListViewSlaves.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
    330                   | System.Windows.Forms.AnchorStyles.Left)
    331                   | System.Windows.Forms.AnchorStyles.Right)));
    332       this.hiveJobListViewSlaves.Caption = "JobItemList View";
    333       this.hiveJobListViewSlaves.Content = null;
    334       this.hiveJobListViewSlaves.Location = new System.Drawing.Point(7, 7);
    335       this.hiveJobListViewSlaves.Name = "hiveJobListViewSlaves";
    336       this.hiveJobListViewSlaves.ReadOnly = false;
    337       this.hiveJobListViewSlaves.Size = new System.Drawing.Size(499, 463);
    338       this.hiveJobListViewSlaves.TabIndex = 0;
    339       //
    340393      // tabUsers
    341394      //
     
    354407                  | System.Windows.Forms.AnchorStyles.Left)
    355408                  | System.Windows.Forms.AnchorStyles.Right)));
    356       this.splitUsers.Location = new System.Drawing.Point(6, 6);
     409      this.splitUsers.Location = new System.Drawing.Point(3, 6);
    357410      this.splitUsers.Name = "splitUsers";
    358411      //
     
    365418      this.splitUsers.Panel2.Controls.Add(this.tabUserDetails);
    366419      this.splitUsers.Size = new System.Drawing.Size(722, 508);
    367       this.splitUsers.SplitterDistance = 240;
     420      this.splitUsers.SplitterDistance = 215;
    368421      this.splitUsers.TabIndex = 0;
    369422      //
     
    373426                  | System.Windows.Forms.AnchorStyles.Left)
    374427                  | System.Windows.Forms.AnchorStyles.Right)));
    375       this.lstUsers.Location = new System.Drawing.Point(3, 3);
     428      this.lstUsers.Location = new System.Drawing.Point(3, 4);
    376429      this.lstUsers.Name = "lstUsers";
    377       this.lstUsers.Size = new System.Drawing.Size(234, 502);
     430      this.lstUsers.Size = new System.Drawing.Size(209, 501);
     431      this.lstUsers.SmallImageList = this.imageListUsers;
    378432      this.lstUsers.TabIndex = 0;
    379433      this.lstUsers.UseCompatibleStateImageBehavior = false;
     434      this.lstUsers.View = System.Windows.Forms.View.List;
     435      //
     436      // imageListUsers
     437      //
     438      this.imageListUsers.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit;
     439      this.imageListUsers.ImageSize = new System.Drawing.Size(16, 16);
     440      this.imageListUsers.TransparentColor = System.Drawing.Color.Transparent;
    380441      //
    381442      // tabUserDetails
     
    386447      this.tabUserDetails.Controls.Add(this.tabUserInformation);
    387448      this.tabUserDetails.Controls.Add(this.tabUserJobs);
    388       this.tabUserDetails.Location = new System.Drawing.Point(4, 4);
     449      this.tabUserDetails.Location = new System.Drawing.Point(3, 3);
    389450      this.tabUserDetails.Name = "tabUserDetails";
    390451      this.tabUserDetails.SelectedIndex = 0;
    391       this.tabUserDetails.Size = new System.Drawing.Size(471, 501);
     452      this.tabUserDetails.Size = new System.Drawing.Size(496, 501);
    392453      this.tabUserDetails.TabIndex = 1;
    393454      //
     
    411472      this.tabUserInformation.Name = "tabUserInformation";
    412473      this.tabUserInformation.Padding = new System.Windows.Forms.Padding(3);
    413       this.tabUserInformation.Size = new System.Drawing.Size(463, 475);
     474      this.tabUserInformation.Size = new System.Drawing.Size(488, 475);
    414475      this.tabUserInformation.TabIndex = 0;
    415476      this.tabUserInformation.Text = "User Information";
     
    420481      this.txtUserName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    421482                  | System.Windows.Forms.AnchorStyles.Right)));
    422       this.txtUserName.Location = new System.Drawing.Point(161, 6);
     483      this.txtUserName.Location = new System.Drawing.Point(163, 14);
    423484      this.txtUserName.Name = "txtUserName";
    424       this.txtUserName.Size = new System.Drawing.Size(100, 20);
     485      this.txtUserName.Size = new System.Drawing.Size(319, 20);
    425486      this.txtUserName.TabIndex = 17;
    426487      this.txtUserName.Text = "ascheibe";
     
    430491      this.txtUserLastActivity.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    431492                  | System.Windows.Forms.AnchorStyles.Right)));
    432       this.txtUserLastActivity.Location = new System.Drawing.Point(161, 41);
     493      this.txtUserLastActivity.Location = new System.Drawing.Point(163, 40);
    433494      this.txtUserLastActivity.Name = "txtUserLastActivity";
    434       this.txtUserLastActivity.Size = new System.Drawing.Size(100, 20);
     495      this.txtUserLastActivity.Size = new System.Drawing.Size(319, 20);
    435496      this.txtUserLastActivity.TabIndex = 16;
    436497      this.txtUserLastActivity.Text = "11.1.2010";
     
    440501      this.txtUserRole.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    441502                  | System.Windows.Forms.AnchorStyles.Right)));
    442       this.txtUserRole.Location = new System.Drawing.Point(162, 72);
     503      this.txtUserRole.Location = new System.Drawing.Point(163, 66);
    443504      this.txtUserRole.Name = "txtUserRole";
    444       this.txtUserRole.Size = new System.Drawing.Size(100, 20);
     505      this.txtUserRole.Size = new System.Drawing.Size(319, 20);
    445506      this.txtUserRole.TabIndex = 15;
    446507      this.txtUserRole.Text = "Hive Slave";
     
    449510      //
    450511      this.label1.AutoSize = true;
    451       this.label1.Location = new System.Drawing.Point(13, 14);
     512      this.label1.Location = new System.Drawing.Point(15, 21);
    452513      this.label1.Name = "label1";
    453514      this.label1.Size = new System.Drawing.Size(58, 13);
     
    459520      this.txtUserEmail.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    460521                  | System.Windows.Forms.AnchorStyles.Right)));
    461       this.txtUserEmail.Location = new System.Drawing.Point(162, 103);
     522      this.txtUserEmail.Location = new System.Drawing.Point(163, 92);
    462523      this.txtUserEmail.Name = "txtUserEmail";
    463       this.txtUserEmail.Size = new System.Drawing.Size(100, 20);
     524      this.txtUserEmail.Size = new System.Drawing.Size(319, 20);
    464525      this.txtUserEmail.TabIndex = 14;
    465526      this.txtUserEmail.Text = "ascheibe@mail.com";
     
    468529      //
    469530      this.label2.AutoSize = true;
    470       this.label2.Location = new System.Drawing.Point(12, 50);
     531      this.label2.Location = new System.Drawing.Point(15, 47);
    471532      this.label2.Name = "label2";
    472533      this.label2.Size = new System.Drawing.Size(64, 13);
     
    478539      this.txtUserPriority.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    479540                  | System.Windows.Forms.AnchorStyles.Right)));
    480       this.txtUserPriority.Location = new System.Drawing.Point(163, 136);
     541      this.txtUserPriority.Location = new System.Drawing.Point(163, 118);
    481542      this.txtUserPriority.Name = "txtUserPriority";
    482       this.txtUserPriority.Size = new System.Drawing.Size(100, 20);
     543      this.txtUserPriority.Size = new System.Drawing.Size(319, 20);
    483544      this.txtUserPriority.TabIndex = 13;
    484545      this.txtUserPriority.Text = "10";
     
    487548      //
    488549      this.label3.AutoSize = true;
    489       this.label3.Location = new System.Drawing.Point(13, 79);
     550      this.label3.Location = new System.Drawing.Point(15, 73);
    490551      this.label3.Name = "label3";
    491552      this.label3.Size = new System.Drawing.Size(29, 13);
     
    497558      this.txtUserCalculatedJobs.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    498559                  | System.Windows.Forms.AnchorStyles.Right)));
    499       this.txtUserCalculatedJobs.Location = new System.Drawing.Point(163, 170);
     560      this.txtUserCalculatedJobs.Location = new System.Drawing.Point(163, 144);
    500561      this.txtUserCalculatedJobs.Name = "txtUserCalculatedJobs";
    501       this.txtUserCalculatedJobs.Size = new System.Drawing.Size(100, 20);
     562      this.txtUserCalculatedJobs.Size = new System.Drawing.Size(319, 20);
    502563      this.txtUserCalculatedJobs.TabIndex = 12;
    503564      this.txtUserCalculatedJobs.Text = "125";
     
    506567      //
    507568      this.label4.AutoSize = true;
    508       this.label4.Location = new System.Drawing.Point(13, 111);
     569      this.label4.Location = new System.Drawing.Point(15, 99);
    509570      this.label4.Name = "label4";
    510571      this.label4.Size = new System.Drawing.Size(32, 13);
     
    516577      this.txtUserExecutionTime.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    517578                  | System.Windows.Forms.AnchorStyles.Right)));
    518       this.txtUserExecutionTime.Location = new System.Drawing.Point(163, 202);
     579      this.txtUserExecutionTime.Location = new System.Drawing.Point(163, 170);
    519580      this.txtUserExecutionTime.Name = "txtUserExecutionTime";
    520       this.txtUserExecutionTime.Size = new System.Drawing.Size(100, 20);
     581      this.txtUserExecutionTime.Size = new System.Drawing.Size(319, 20);
    521582      this.txtUserExecutionTime.TabIndex = 11;
    522583      this.txtUserExecutionTime.Text = "15d 3h 5m";
     
    525586      //
    526587      this.label6.AutoSize = true;
    527       this.label6.Location = new System.Drawing.Point(13, 136);
     588      this.label6.Location = new System.Drawing.Point(15, 125);
    528589      this.label6.Name = "label6";
    529590      this.label6.Size = new System.Drawing.Size(63, 13);
     
    534595      //
    535596      this.label8.AutoSize = true;
    536       this.label8.Location = new System.Drawing.Point(13, 202);
     597      this.label8.Location = new System.Drawing.Point(15, 177);
    537598      this.label8.Name = "label8";
    538599      this.label8.Size = new System.Drawing.Size(116, 13);
     
    543604      //
    544605      this.label7.AutoSize = true;
    545       this.label7.Location = new System.Drawing.Point(12, 170);
     606      this.label7.Location = new System.Drawing.Point(15, 151);
    546607      this.label7.Name = "label7";
    547608      this.label7.Size = new System.Drawing.Size(82, 13);
     
    551612      // tabUserJobs
    552613      //
     614      this.tabUserJobs.Controls.Add(this.updateControl2);
    553615      this.tabUserJobs.Controls.Add(this.hiveExperimentManagerView);
    554616      this.tabUserJobs.Location = new System.Drawing.Point(4, 22);
    555617      this.tabUserJobs.Name = "tabUserJobs";
    556618      this.tabUserJobs.Padding = new System.Windows.Forms.Padding(3);
    557       this.tabUserJobs.Size = new System.Drawing.Size(463, 475);
     619      this.tabUserJobs.Size = new System.Drawing.Size(488, 475);
    558620      this.tabUserJobs.TabIndex = 1;
    559621      this.tabUserJobs.Text = "Experiments";
     
    581643          "....";
    582644      //
     645      // updateSlaveGroups
     646      //
     647      this.updateSlaveGroups.Location = new System.Drawing.Point(63, 3);
     648      this.updateSlaveGroups.Name = "updateSlaveGroups";
     649      this.updateSlaveGroups.Size = new System.Drawing.Size(75, 24);
     650      this.updateSlaveGroups.TabIndex = 4;
     651      this.updateSlaveGroups.UpdateAction = null;
     652      //
     653      // scheduleControl1
     654      //
     655      this.scheduleControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     656                  | System.Windows.Forms.AnchorStyles.Left)
     657                  | System.Windows.Forms.AnchorStyles.Right)));
     658      this.scheduleControl1.Location = new System.Drawing.Point(7, 7);
     659      this.scheduleControl1.Name = "scheduleControl1";
     660      this.scheduleControl1.Size = new System.Drawing.Size(862, 562);
     661      this.scheduleControl1.TabIndex = 0;
     662      //
     663      // hiveJobListViewSlaves
     664      //
     665      this.hiveJobListViewSlaves.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     666                  | System.Windows.Forms.AnchorStyles.Left)
     667                  | System.Windows.Forms.AnchorStyles.Right)));
     668      this.hiveJobListViewSlaves.Caption = "JobItemList View";
     669      this.hiveJobListViewSlaves.Content = null;
     670      this.hiveJobListViewSlaves.Location = new System.Drawing.Point(7, 26);
     671      this.hiveJobListViewSlaves.Name = "hiveJobListViewSlaves";
     672      this.hiveJobListViewSlaves.ReadOnly = false;
     673      this.hiveJobListViewSlaves.Size = new System.Drawing.Size(485, 450);
     674      this.hiveJobListViewSlaves.TabIndex = 0;
     675      //
    583676      // hiveExperimentManagerView
    584677      //
     
    588681      this.hiveExperimentManagerView.Caption = "HiveExperimentManagerBaseView";
    589682      this.hiveExperimentManagerView.Content = null;
    590       this.hiveExperimentManagerView.Location = new System.Drawing.Point(4, 4);
     683      this.hiveExperimentManagerView.Location = new System.Drawing.Point(4, 26);
    591684      this.hiveExperimentManagerView.Name = "hiveExperimentManagerView";
    592685      this.hiveExperimentManagerView.ReadOnly = false;
    593       this.hiveExperimentManagerView.Size = new System.Drawing.Size(735, 524);
     686      this.hiveExperimentManagerView.Size = new System.Drawing.Size(484, 449);
    594687      this.hiveExperimentManagerView.TabIndex = 0;
     688      //
     689      // updateControl1
     690      //
     691      this.updateControl1.Location = new System.Drawing.Point(7, 3);
     692      this.updateControl1.Name = "updateControl1";
     693      this.updateControl1.Size = new System.Drawing.Size(75, 24);
     694      this.updateControl1.TabIndex = 1;
     695      this.updateControl1.UpdateAction = null;
     696      //
     697      // updateControl2
     698      //
     699      this.updateControl2.Location = new System.Drawing.Point(7, 4);
     700      this.updateControl2.Name = "updateControl2";
     701      this.updateControl2.Size = new System.Drawing.Size(75, 24);
     702      this.updateControl2.TabIndex = 1;
     703      this.updateControl2.UpdateAction = null;
    595704      //
    596705      // HiveAdministrationView
     
    630739    #endregion
    631740
    632     private System.Windows.Forms.TabControl tabAdmin;
    633     private System.Windows.Forms.TabPage tabSlaves;
    634     private System.Windows.Forms.TabPage tabUsers;
    635     private System.Windows.Forms.TreeView treeSlaveGroup;
    636     private System.Windows.Forms.TabControl tabSlaveGroup;
    637     private System.Windows.Forms.TabPage tabDetails;
    638     private System.Windows.Forms.TabPage tabSchedule;
    639     private System.Windows.Forms.TabPage tabJobs;
    640     private System.Windows.Forms.SplitContainer splitSlaves;
    641741    private ScheduleControl scheduleControl1;
    642742    private System.Windows.Forms.SplitContainer splitUsers;
     
    673773    private System.Windows.Forms.Button btnRemoveGroup;
    674774    private HiveExperimentManagerView hiveExperimentManagerView;
     775    private System.Windows.Forms.TextBox txtDetailsDescription;
     776    private System.Windows.Forms.Label label13;
     777    private System.Windows.Forms.TextBox txtOS;
     778    private System.Windows.Forms.Label label15;
     779    private System.Windows.Forms.Label label14;
     780    private System.Windows.Forms.TextBox txtSlaveState;
     781    private System.Windows.Forms.ImageList imageListSlaveGroups;
     782    private System.ComponentModel.IContainer components;
     783    private System.Windows.Forms.ImageList imageListUsers;
     784    private Common.UpdateControl updateSlaveGroups;
     785    private Common.UpdateControl updateControl1;
     786    private Common.UpdateControl updateControl2;
    675787  }
    676788}
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/Administration/HiveAdministrationView.cs

    r5472 r5525  
    2020#endregion
    2121
    22 using System.Collections.Generic;
     22using System;
    2323using System.Windows.Forms;
    2424using HeuristicLab.Clients.Hive.Administration;
    2525using HeuristicLab.Core.Views;
    2626using HeuristicLab.MainForm;
    27 //using HeuristicLab.Services.Hive.Common.DataTransfer;
     27using HeuristicLab.Services.Hive.Common.DataTransfer;
    2828
    2929namespace HeuristicLab.Clients.Hive.Views.Administration {
     
    5151    #endregion
    5252
     53
    5354    protected override void OnContentChanged() {
    5455      base.OnContentChanged();
     
    5657        // TODO: Put code here when content is null
    5758      } else {
    58         // TODO: Put code here when content has been changed and is not null
     59        updateSlaveGroups.UpdateAction = new Action(Content.UpdateSlaveGroups);
     60        treeSlaveGroup.ImageList.Images.Add(HiveImageLibrary.Slave);
     61        treeSlaveGroup.ImageList.Images.Add(HiveImageLibrary.SlaveGroup);
     62
     63        foreach (SlaveGroup g in Content.SlaveGroups) {
     64          TreeNode tn = new TreeNode();
     65          tn.ImageIndex = treeSlaveGroup.ImageList.Images.Count - 1;
     66          tn.SelectedImageIndex = tn.ImageIndex;
     67
     68          tn.Tag = g;
     69          tn.Text = g.Name;
     70          foreach (Slave s in Content.Slaves.FindAll(s => s.ParentResourceId != null && s.ParentResourceId == g.Id)) {
     71            var stn = new TreeNode(s.Name);
     72            stn.ImageIndex = 0;
     73            stn.SelectedImageIndex = stn.ImageIndex;
     74            stn.Tag = s;
     75            tn.Nodes.Add(stn);
     76          }
     77          treeSlaveGroup.Nodes.Add(tn);
     78        }
     79
     80        TreeNode ungrp = new TreeNode("UNGROUPED");
     81        ungrp.ImageIndex = treeSlaveGroup.ImageList.Images.Count - 1;
     82        ungrp.SelectedImageIndex = ungrp.ImageIndex;
     83        var newGroup = new SlaveGroup();
     84        newGroup.Name = "UNGROUPED";
     85        newGroup.Id = Guid.NewGuid();
     86        newGroup.Description = "Contains slaves which are in no group";
     87        ungrp.Tag = newGroup;
     88
     89        foreach (Slave s in Content.Slaves.FindAll(s => s.ParentResourceId == null)) {
     90          var stn = new TreeNode(s.Name);
     91          stn.ImageIndex = 0;
     92          stn.SelectedImageIndex = stn.ImageIndex;
     93          stn.Tag = s;
     94          ungrp.Nodes.Add(stn);
     95        }
     96        treeSlaveGroup.Nodes.Add(ungrp);
     97
     98        ShowUsers();
     99      }
     100    }
     101
     102    private void ShowUsers() {
     103      lstUsers.SmallImageList.Images.Add(HeuristicLab.Common.Resources.VSImageLibrary.User);
     104
     105      foreach (string user in Content.Users) {
     106        ListViewItem lvi = new ListViewItem();
     107        lvi.Tag = user;
     108        lvi.Text = user;
     109        lvi.ImageIndex = 0;
     110        lstUsers.Items.Add(lvi);
    59111      }
    60112    }
     
    65117    }
    66118
    67     /*List<SlaveGroup> slaveGroups;
    68     List<Slave> slaves;*/
     119    private void HiveAdministrationView_Load(object sender, System.EventArgs e) {
     120      if (Content != null) {
    69121
    70     private void HiveAdministrationView_Load(object sender, System.EventArgs e) {
    71 
    72       /* using (HeuristicLab.Clients.Common.Disposable<IHiveService> service = ServiceLocator.Instance.GetService()) {
    73          slaveGroups = new List<SlaveGroup>(service.Obj.GetSlaveGroups());
    74          slaves = new List<Slave>(service.Obj.GetSlaves());
    75 
    76          foreach (SlaveGroup g in slaveGroups) {
    77            TreeNode tn = new TreeNode();
    78            tn.Text = "Group " + g.Name;
    79            foreach (Slave s in slaves.FindAll(s => s.ParentResourceId != null && s.ParentResourceId == g.Id)) {
    80              tn.Nodes.Add(new TreeNode(s.Name));
    81            }
    82            treeSlaveGroup.Nodes.Add(tn);
    83          }
    84 
    85          TreeNode ungrp = new TreeNode("UNGROUPED");
    86          foreach (Slave s in slaves.FindAll(s => s.ParentResourceId == null)) {
    87            ungrp.Nodes.Add(new TreeNode(s.Name));
    88          }
    89          treeSlaveGroup.Nodes.Add(ungrp);
    90 
    91        }*/
     122      }
    92123    }
    93124
    94125    private void treeSlaveGroup_Click(object sender, System.EventArgs e) {
    95       string text = treeSlaveGroup.SelectedNode.Text;
    96 
    97       /*Slave slave = slaves.Find(s => s.Name == text);
    98       if (slave != null) {
    99        
    100       } */
    101126
    102127    }
     128
     129    private void treeSlaveGroup_MouseClick(object sender, MouseEventArgs e) {
     130      if (treeSlaveGroup.SelectedNode != null &&
     131      treeSlaveGroup.SelectedNode.Tag != null) {
     132        if (treeSlaveGroup.SelectedNode.Tag.GetType() == typeof(Slave)) {
     133          Slave s = treeSlaveGroup.SelectedNode.Tag as Slave;
     134          txtName.Text = s.Name;
     135          txtDetailsDescription.Text = s.Description;
     136          txtCPU.Text = s.CpuArchitecture + ", " + s.Cores + " Cores @ " + s.CpuSpeed.ToString();
     137          txtMemory.Text = s.Memory.ToString();
     138          txtDetailsCalculatedJobs.Clear();
     139          txtOS.Text = s.OperatingSystem;
     140          txtSlaveState.Text = s.SlaveState.ToString();
     141        } else if (treeSlaveGroup.SelectedNode.Tag.GetType() == typeof(SlaveGroup)) {
     142          SlaveGroup s = treeSlaveGroup.SelectedNode.Tag as SlaveGroup;
     143          txtName.Text = s.Name;
     144          txtDetailsDescription.Text = s.Description;
     145          txtCPU.Clear();
     146          txtMemory.Clear();
     147          txtDetailsCalculatedJobs.Clear();
     148          txtOS.Clear();
     149          txtSlaveState.Clear();
     150        }
     151      }
     152    }
     153
     154
    103155
    104156    #region Event Handlers
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/Administration/HiveAdministrationView.resx

    r5512 r5525  
    118118    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
    119119  </resheader>
     120  <metadata name="imageListUsers.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     121    <value>120, 17</value>
     122  </metadata>
    120123  <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    121124  <data name="btnRemoveGroup.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
     
    166169        fNTws+7PbaOWo6fHXMf6Hwc/vj/OGn/2S8Yv7ycKnpCfVEyqTDZPmU2dmnafvvF05dOJZ+nPFmYKf5X+
    167170        tfa5zvMffnP8rX82YnbiBf/Fp99LXsq/PPRq2aueuYC5R69TXy/MF72Rf3P4LeNt37vwd5MLWe+x7ys/
    168         6H7o/ujz8cGn1E+f/gUDmPP8usTo0wAAAAlwSFlzAAALDQAACw0B7QfALAAAAbVJREFUOE+lk7lLA0EU
     171        6H7o/ujz8cGn1E+f/gUDmPP8usTo0wAAAAlwSFlzAAALDAAACwwBP0AiyAAAAbVJREFUOE+lk7lLA0EU
    169172        xuMRcdeYyIBRQcmxURTiEXE8ECQqpAkpJJVNihSKjVjbW1lJChuxtBGUNGKRwj9AvA9QEMRGS01M4YYZ
    170173        v9nN5twgavGDt/tmvn3HtxbOueU/6JcpGQEpMAfqfyMoLjeAZbYU5iw2ryJe0N6ZVUZJI3JesGrkhYB4
     
    224227        fNTws+7PbaOWo6fHXMf6Hwc/vj/OGn/2S8Yv7ycKnpCfVEyqTDZPmU2dmnafvvF05dOJZ+nPFmYKf5X+
    225228        tfa5zvMffnP8rX82YnbiBf/Fp99LXsq/PPRq2aueuYC5R69TXy/MF72Rf3P4LeNt37vwd5MLWe+x7ys/
    226         6H7o/ujz8cGn1E+f/gUDmPP8usTo0wAAAAlwSFlzAAALDQAACw0B7QfALAAAAX5JREFUOE9j+P//PwMl
     229        6H7o/ujz8cGn1E+f/gUDmPP8usTo0wAAAAlwSFlzAAALDAAACwwBP0AiyAAAAX5JREFUOE9j+P//PwMl
    227230        mCLNIItxGcBzdwH7mVvzOM9cncN15uIM3gO4XInLAObrc7j+/3nU+P/Pw4b/JycL/CHVAIbz03nhBhzs
    228231        EQHqxx5WOMPg+CTBD38e1v3/86Dq/452cZAB/NgMgRtwaSbPgbNT+c6cnCR45ki/0Jl93SJ//jwo///3
     
    234237</value>
    235238  </data>
     239  <metadata name="imageListSlaveGroups.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     240    <value>17, 17</value>
     241  </metadata>
    236242</root>
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/HeuristicLab.Clients.Hive.Views-3.4.csproj

    r5512 r5525  
    117117  </ItemGroup>
    118118  <ItemGroup>
     119    <Compile Include="Common\UpdateControl.cs">
     120      <SubType>UserControl</SubType>
     121    </Compile>
     122    <Compile Include="Common\UpdateControl.Designer.cs">
     123      <DependentUpon>UpdateControl.cs</DependentUpon>
     124    </Compile>
    119125    <Compile Include="ExperimentManager\UpdateableHiveExperimentManagerView.cs">
    120126      <SubType>UserControl</SubType>
     
    128134    <Compile Include="ExperimentManager\HiveExperimentManagerView.Designer.cs">
    129135      <DependentUpon>HiveExperimentManagerView.cs</DependentUpon>
     136    </Compile>
     137    <Compile Include="HiveImageLibrary.Designer.cs">
     138      <AutoGen>True</AutoGen>
     139      <DesignTime>True</DesignTime>
     140      <DependentUpon>HiveImageLibrary.resx</DependentUpon>
    130141    </Compile>
    131142    <Compile Include="Properties\Resources.Designer.cs">
     
    193204      <DependentUpon>ScheduleControl.cs</DependentUpon>
    194205    </EmbeddedResource>
     206    <EmbeddedResource Include="Common\UpdateControl.resx">
     207      <DependentUpon>UpdateControl.cs</DependentUpon>
     208    </EmbeddedResource>
    195209    <EmbeddedResource Include="ExperimentManager\HiveExperimentManagerView.resx">
    196210      <DependentUpon>HiveExperimentManagerView.cs</DependentUpon>
     
    206220      <DependentUpon>HiveJobView.cs</DependentUpon>
    207221    </EmbeddedResource>
     222    <EmbeddedResource Include="HiveImageLibrary.resx">
     223      <Generator>PublicResXFileCodeGenerator</Generator>
     224      <LastGenOutput>HiveImageLibrary.Designer.cs</LastGenOutput>
     225    </EmbeddedResource>
    208226    <EmbeddedResource Include="Progress\ProgressView.resx">
    209227      <DependentUpon>ProgressView.cs</DependentUpon>
     
    231249      <Name>HeuristicLab.Services.Hive.Common-3.4</Name>
    232250    </ProjectReference>
     251  </ItemGroup>
     252  <ItemGroup>
     253    <None Include="Images\Monitor.ico" />
     254  </ItemGroup>
     255  <ItemGroup>
     256    <None Include="Images\network_center.ico" />
     257  </ItemGroup>
     258  <ItemGroup>
     259    <None Include="Images\status_anim.gif" />
    233260  </ItemGroup>
    234261  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/Administration/HiveAdministrationClient.cs

    r5457 r5525  
    2121
    2222
     23using System.Collections.Generic;
    2324using HeuristicLab.Common;
    2425using HeuristicLab.Core;
     26using HeuristicLab.Services.Hive.Common.DataTransfer;
     27using HeuristicLab.Services.Hive.Common.ServiceContracts;
     28
    2529namespace HeuristicLab.Clients.Hive.Administration {
    2630  [Item("Hive Administration", "Hive Administration")]
    2731  public class HiveAdministrationClient : Item {
     32    public List<SlaveGroup> SlaveGroups;
     33    public List<Slave> Slaves;
     34    public List<string> Users;
    2835
    29     public HiveAdministrationClient() { }
    30 
     36    public HiveAdministrationClient() {
     37      UpdateSlaveGroups();
     38      Users = new List<string>();
     39      Users.Add("Mr. White");
     40      Users.Add("Mr. Pink");
     41      Users.Add("Mr. Blue");
     42    }
    3143
    3244    protected HiveAdministrationClient(HiveAdministrationClient original, Cloner cloner)
     
    3850    }
    3951
     52    public void UpdateSlaveGroups() {
     53      using (HeuristicLab.Clients.Common.Disposable<IHiveService> service = ServiceLocator.Instance.GetService()) {
    4054
     55        /*SlaveGroup sg = new SlaveGroup();
     56        sg.Name = "Test" + Guid.NewGuid();
     57        sg.Description = "TestGroupdesc";
     58        sg.Id = Guid.NewGuid();
     59        service.Obj.AddSlaveGroup(sg);*/
     60
     61        SlaveGroups = new List<SlaveGroup>(service.Obj.GetSlaveGroups());
     62        Slaves = new List<Slave>(service.Obj.GetSlaves());
     63        OnItemImageChanged();
     64      }
     65    }
    4166  }
    4267}
Note: See TracChangeset for help on using the changeset viewer.