Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/07/18 15:19:53 (6 years ago)
Author:
jzenisek
Message:

#2839: Several changes and fixes:

  • added button tooltips
  • changed position of buttons
  • added refresh functionality to view of lightweight users ...
Location:
branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.Administrator/3.3/Views
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ProjectPermissionsView.Designer.cs

    r15922 r15953  
    3232      this.permissionsGroupBox = new System.Windows.Forms.GroupBox();
    3333      this.treeView = new Hive.Views.TreeView.NoDoubleClickTreeView();
     34      this.toolTip = new System.Windows.Forms.ToolTip(this.components);
    3435      this.detailsGroupBox = new System.Windows.Forms.GroupBox();
    3536      this.detailsViewHost = new HeuristicLab.MainForm.WindowsForms.ViewHost();
     
    4849      this.refreshButton.Name = "refreshButton";
    4950      this.refreshButton.Size = new System.Drawing.Size(24, 24);
    50       this.refreshButton.TabIndex = 0;
     51      this.refreshButton.TabIndex = 1;
     52      this.toolTip.SetToolTip(this.refreshButton, "Refresh data");
    5153      this.refreshButton.UseVisualStyleBackColor = true;
    5254      this.refreshButton.Click += new System.EventHandler(this.refreshButton_Click);
     
    5860      this.inheritButton.Name = "inheritButton";
    5961      this.inheritButton.Size = new System.Drawing.Size(24, 24);
    60       this.inheritButton.TabIndex = 3;
     62      this.inheritButton.TabIndex = 2;
     63      this.toolTip.SetToolTip(this.inheritButton, "Save and hand down permission settings to all descendant projects");
    6164      this.inheritButton.UseVisualStyleBackColor = true;
    6265      this.inheritButton.Click += new System.EventHandler(this.inheritButton_Click);
     
    6871      this.saveButton.Name = "saveButton";
    6972      this.saveButton.Size = new System.Drawing.Size(24, 24);
    70       this.saveButton.TabIndex = 4;
     73      this.saveButton.TabIndex = 3;
     74      this.toolTip.SetToolTip(this.saveButton, "Save permission settings");
    7175      this.saveButton.UseVisualStyleBackColor = true;
    7276      this.saveButton.Click += new System.EventHandler(this.saveButton_Click);
     
    106110      this.permissionsGroupBox.Name = "permissionsGroupBox";
    107111      this.permissionsGroupBox.Size = new System.Drawing.Size(268, 452);
    108       this.permissionsGroupBox.TabIndex = 0;
     112      this.permissionsGroupBox.TabIndex = 4;
    109113      this.permissionsGroupBox.TabStop = false;
    110114      this.permissionsGroupBox.Text = "Permissions (Assigned + Included)";
     
    122126      this.treeView.SelectedImageIndex = 0;
    123127      this.treeView.Size = new System.Drawing.Size(256, 427);
    124       this.treeView.TabIndex = 0;
     128      this.treeView.TabIndex = 5;
    125129      this.treeView.BeforeCheck += new System.Windows.Forms.TreeViewCancelEventHandler(this.treeView_BeforeCheck);
    126130      this.treeView.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.treeView_AfterCheck);
     
    136140      this.detailsGroupBox.Name = "detailsGroupBox";
    137141      this.detailsGroupBox.Size = new System.Drawing.Size(540, 452);
    138       this.detailsGroupBox.TabIndex = 0;
     142      this.detailsGroupBox.TabIndex = 6;
    139143      this.detailsGroupBox.TabStop = false;
    140144      this.detailsGroupBox.Text = "Details";
     
    152156      this.detailsViewHost.ReadOnly = true;
    153157      this.detailsViewHost.Size = new System.Drawing.Size(528, 427);
    154       this.detailsViewHost.TabIndex = 0;
     158      this.detailsViewHost.TabIndex = 7;
    155159      this.detailsViewHost.ViewsLabelVisible = true;
    156160      this.detailsViewHost.ViewType = null;
     
    185189    private System.Windows.Forms.GroupBox permissionsGroupBox;
    186190    private HeuristicLab.Clients.Hive.Views.TreeView.NoDoubleClickTreeView treeView;
     191    private System.Windows.Forms.ToolTip toolTip;
    187192    private System.Windows.Forms.GroupBox detailsGroupBox;
    188193    private MainForm.WindowsForms.ViewHost detailsViewHost;
  • branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ProjectPermissionsView.cs

    r15813 r15953  
    5353    private readonly Color addedIncludeColor = Color.FromArgb(25, 169, 221, 221); // #a9dddd
    5454    private readonly Color removedIncludeColor = Color.FromArgb(25, 249, 210, 145); // #f9d291
     55    private readonly Color projectOwnerColor = Color.DarkRed;
    5556
    5657    public new Project Content {
     
    116117      var selectedPermission = (UserGroupBase)e.Node.Tag;
    117118      detailsViewHost.Content = selectedPermission;
     119      if (selectedPermission is LightweightUser)
     120        detailsViewHost.ViewType = typeof(Access.Views.RefreshableLightweightUserInformationView);
    118121    }
    119122
     
    309312      }
    310313
     314      if(Content != null && ug != null && ug.Id != Guid.Empty
     315        && Content.OwnerUserId == ug.Id) {
     316        node.ForeColor = projectOwnerColor;
     317      }
     318
    311319    }
    312320
  • branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ProjectResourcesView.Designer.cs

    r15922 r15953  
    3232      this.treeView = new Hive.Views.TreeView.NoDoubleClickTreeView();
    3333      this.imageList = new System.Windows.Forms.ImageList(this.components);
     34      this.toolTip = new System.Windows.Forms.ToolTip(this.components);
    3435      this.detailsGroupBox = new System.Windows.Forms.GroupBox();
    3536      this.detailsViewHost = new HeuristicLab.MainForm.WindowsForms.ViewHost();
     
    4849      this.refreshButton.Name = "refreshButton";
    4950      this.refreshButton.Size = new System.Drawing.Size(24, 24);
    50       this.refreshButton.TabIndex = 2;
     51      this.refreshButton.TabIndex = 1;
     52      this.toolTip.SetToolTip(this.refreshButton, "Refresh data");
    5153      this.refreshButton.UseVisualStyleBackColor = true;
    5254      this.refreshButton.Click += new System.EventHandler(this.refreshButton_Click);
     
    5860      this.inheritButton.Name = "inheritButton";
    5961      this.inheritButton.Size = new System.Drawing.Size(24, 24);
    60       this.inheritButton.TabIndex = 3;
     62      this.inheritButton.TabIndex = 2;
     63      this.toolTip.SetToolTip(this.inheritButton, "Save and hand down resource assignments to all descendant projects");
    6164      this.inheritButton.UseVisualStyleBackColor = true;
    6265      this.inheritButton.Click += new System.EventHandler(this.inheritButton_Click);
     
    6871      this.saveButton.Name = "saveButton";
    6972      this.saveButton.Size = new System.Drawing.Size(24, 24);
    70       this.saveButton.TabIndex = 4;
     73      this.saveButton.TabIndex = 3;
     74      this.toolTip.SetToolTip(this.saveButton, "Save resource assignments");
    7175      this.saveButton.UseVisualStyleBackColor = true;
    7276      this.saveButton.Click += new System.EventHandler(this.saveButton_Click);
     
    186190    private System.Windows.Forms.GroupBox detailsGroupBox;
    187191    private HeuristicLab.Clients.Hive.Views.TreeView.NoDoubleClickTreeView treeView;
     192    private System.Windows.Forms.ToolTip toolTip;
    188193    private System.Windows.Forms.ImageList imageList;
    189194    private MainForm.WindowsForms.ViewHost detailsViewHost;
  • branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ProjectView.Designer.cs

    r15908 r15953  
    2424    /// </summary>
    2525    private void InitializeComponent() {
     26      this.components = new System.ComponentModel.Container();
    2627      this.idLabel = new System.Windows.Forms.Label();
    2728      this.idTextBox = new System.Windows.Forms.TextBox();
     
    4041      this.createdTextBox = new System.Windows.Forms.TextBox();
    4142      this.refreshButton = new System.Windows.Forms.Button();
     43      this.toolTip = new System.Windows.Forms.ToolTip(this.components);
    4244      this.SuspendLayout();
    4345      //
     
    6769      this.nameLabel.Name = "nameLabel";
    6870      this.nameLabel.Size = new System.Drawing.Size(38, 13);
    69       this.nameLabel.TabIndex = 2;
     71      this.nameLabel.TabIndex = 0;
    7072      this.nameLabel.Text = "Name:";
    7173      //
     
    7779      this.nameTextBox.Name = "nameTextBox";
    7880      this.nameTextBox.Size = new System.Drawing.Size(464, 20);
    79       this.nameTextBox.TabIndex = 3;
     81      this.nameTextBox.TabIndex = 2;
    8082      this.nameTextBox.TextChanged += new System.EventHandler(this.nameTextBox_TextChanged);
    8183      this.nameTextBox.Validating += new System.ComponentModel.CancelEventHandler(this.nameTextBox_Validating);
     
    8789      this.descriptionLabel.Name = "descriptionLabel";
    8890      this.descriptionLabel.Size = new System.Drawing.Size(63, 13);
    89       this.descriptionLabel.TabIndex = 4;
     91      this.descriptionLabel.TabIndex = 0;
    9092      this.descriptionLabel.Text = "Description:";
    9193      //
     
    98100      this.descriptionTextBox.Name = "descriptionTextBox";
    99101      this.descriptionTextBox.Size = new System.Drawing.Size(464, 98);
    100       this.descriptionTextBox.TabIndex = 5;
     102      this.descriptionTextBox.TabIndex = 3;
    101103      this.descriptionTextBox.TextChanged += new System.EventHandler(this.descriptionTextBox_TextChanged);
    102       //
    103       // ownerComboBox
    104       //
    105       this.ownerComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    106             | System.Windows.Forms.AnchorStyles.Right)));
    107       this.ownerComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
    108       this.ownerComboBox.FormattingEnabled = true;
    109       this.ownerComboBox.Location = new System.Drawing.Point(102, 164);
    110       this.ownerComboBox.Name = "ownerComboBox";
    111       this.ownerComboBox.Size = new System.Drawing.Size(434, 21);
    112       this.ownerComboBox.TabIndex = 6;
    113       this.ownerComboBox.SelectedIndexChanged += new System.EventHandler(this.ownerComboBox_SelectedIndexChanged);
    114104      //
    115105      // ownerLabel
     
    119109      this.ownerLabel.Name = "ownerLabel";
    120110      this.ownerLabel.Size = new System.Drawing.Size(41, 13);
    121       this.ownerLabel.TabIndex = 7;
     111      this.ownerLabel.TabIndex = 0;
    122112      this.ownerLabel.Text = "Owner:";
     113      //
     114      // ownerComboBox
     115      //
     116      //this.ownerComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     117      //      | System.Windows.Forms.AnchorStyles.Right)));
     118      this.ownerComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     119      this.ownerComboBox.FormattingEnabled = true;
     120      this.ownerComboBox.Location = new System.Drawing.Point(72, 164);
     121      this.ownerComboBox.Name = "ownerComboBox";
     122      this.ownerComboBox.Size = new System.Drawing.Size(200, 21);
     123      this.ownerComboBox.TabIndex = 4;
     124      this.ownerComboBox.SelectedIndexChanged += new System.EventHandler(this.ownerComboBox_SelectedIndexChanged);
     125      //
     126      // refreshButton
     127      //
     128      this.refreshButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.Refresh;
     129      this.refreshButton.Location = new System.Drawing.Point(278, 162);
     130      this.refreshButton.Name = "refreshButton";
     131      this.refreshButton.Size = new System.Drawing.Size(24, 24);
     132      this.refreshButton.TabIndex = 5;
     133      this.toolTip.SetToolTip(this.refreshButton, "Refresh data");
     134      this.refreshButton.UseVisualStyleBackColor = true;
     135      this.refreshButton.Click += new System.EventHandler(this.refreshButton_Click);
    123136      //
    124137      // createdLabel
     
    189202      this.createdTextBox.Size = new System.Drawing.Size(200, 20);
    190203      this.createdTextBox.TabIndex = 14;
    191       //
    192       // refreshButton
    193       //
    194       this.refreshButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.Refresh;
    195       this.refreshButton.Location = new System.Drawing.Point(72, 162);
    196       this.refreshButton.Name = "refreshButton";
    197       this.refreshButton.Size = new System.Drawing.Size(24, 24);
    198       this.refreshButton.TabIndex = 15;
    199       this.refreshButton.UseVisualStyleBackColor = true;
    200       this.refreshButton.Click += new System.EventHandler(this.refreshButton_Click);
    201204      //
    202205      // ProjectView
     
    246249    private System.Windows.Forms.TextBox createdTextBox;
    247250    private System.Windows.Forms.Button refreshButton;
     251    private System.Windows.Forms.ToolTip toolTip;
    248252  }
    249253}
  • branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ProjectsView.Designer.cs

    r15777 r15953  
    3939      this.resourcesTabPage = new System.Windows.Forms.TabPage();
    4040      this.projectResourcesView = new HeuristicLab.Clients.Hive.Administrator.Views.ProjectResourcesView();
     41      this.toolTip = new System.Windows.Forms.ToolTip(this.components);
    4142      ((System.ComponentModel.ISupportInitialize)(this.splitContainer)).BeginInit();
    4243      this.splitContainer.Panel1.SuspendLayout();
     
    7980      this.refreshButton.Size = new System.Drawing.Size(24, 24);
    8081      this.refreshButton.TabIndex = 14;
     82      this.toolTip.SetToolTip(this.refreshButton, "Fetch list from server");
    8183      this.refreshButton.UseVisualStyleBackColor = true;
    8284      this.refreshButton.Click += new System.EventHandler(this.refreshButton_Click);
     
    8991      this.saveProjectButton.Size = new System.Drawing.Size(24, 24);
    9092      this.saveProjectButton.TabIndex = 12;
     93      this.toolTip.SetToolTip(this.saveProjectButton, "Store project on the server");
    9194      this.saveProjectButton.UseVisualStyleBackColor = true;
    9295      this.saveProjectButton.Click += new System.EventHandler(this.saveProjectButton_Click);
     
    99102      this.removeButton.Size = new System.Drawing.Size(24, 24);
    100103      this.removeButton.TabIndex = 11;
     104      this.toolTip.SetToolTip(this.removeButton, "Remove a project");
    101105      this.removeButton.UseVisualStyleBackColor = true;
    102106      this.removeButton.Click += new System.EventHandler(this.removeButton_Click);
     
    109113      this.addButton.Size = new System.Drawing.Size(24, 24);
    110114      this.addButton.TabIndex = 10;
     115      this.toolTip.SetToolTip(this.addButton, "Add a new project");
    111116      this.addButton.UseVisualStyleBackColor = true;
    112117      this.addButton.Click += new System.EventHandler(this.addButton_Click);
     
    257262    private ProjectResourcesView projectResourcesView;
    258263    private ProjectPermissionsView projectPermissionsView;
     264    private System.Windows.Forms.ToolTip toolTip;
    259265  }
    260266}
  • branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ProjectsView.cs

    r15813 r15953  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2017 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    4141    private const int redFlagImageIndex = 1;
    4242    private const string SELECTED_TAG = ""; // " [selected]";
    43     private const string NOT_STORED_TAG = "**"; // " [not stored]";
     43    private const string NOT_STORED_TAG = "*"; // " [not stored]";
    4444    private const string CHANGES_NOT_STORED_TAG = "*"; // " [changes not stored]";
    4545
  • branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ResourcesView.Designer.cs

    r15922 r15953  
    128128      this.btnRemoveGroup.Size = new System.Drawing.Size(24, 24);
    129129      this.btnRemoveGroup.TabIndex = 2;
    130       this.toolTip.SetToolTip(this.btnRemoveGroup, "Delete a slave or a group");
     130      this.toolTip.SetToolTip(this.btnRemoveGroup, "Remove a slave or a group");
    131131      this.btnRemoveGroup.UseVisualStyleBackColor = true;
    132132      this.btnRemoveGroup.Click += new System.EventHandler(this.btnRemoveGroup_Click);
  • branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ResourcesView.cs

    r15922 r15953  
    4343    public const string UNGROUPED_GROUP_DESCRIPTION = "Contains slaves that are not assigned to any group.";
    4444    private const string SELECTED_TAG = ""; // " [selected]";
    45     private const string NOT_STORED_TAG = "**"; // " [not stored]";
     45    private const string NOT_STORED_TAG = "*"; // " [not stored]";
    4646    private const string CHANGES_NOT_STORED_TAG = "*"; // " [changes not stored]";
    4747
Note: See TracChangeset for help on using the changeset viewer.