Inheritance: Component
 public string GetToolTip(TreeNodeAdv node, NodeControl nodeControl)
 {
     var item = node.Tag as BaseItem;
     if (item != null)
         return item.Description;
     return null;
 }
 public string GetToolTip(TreeNodeAdv node, NodeControl nodeControl)
 {
     if (node.Tag is RootItem)
         return null;
     else
         return "Second click to rename node";
 }
 public string GetToolTip(TreeNodeAdv node, NodeControl nodeControl)
 {
     var item = node.Tag as FieldItem;
     if (item == null) return null;
     var interp = item.Interpretation();
     if (interp == item.Description) return null;
     return interp;
 }
 public string GetToolTip(TreeNodeAdv node, NodeControl nodeControl)
 {
     GrtTreeNode grtNode = node.Tag as GrtTreeNode;
       if (null != grtNode)
       {
     string tooltip;
     Model.get_field(grtNode.NodeId, TooltipColumn, out tooltip);
     return tooltip;
       }
       return "";
 }
		public DrawIconEventArgs(TreeNodeAdv node, NodeControl control, DrawContext context) : base(node, control, context) {}
		public DrawEventArgs(TreeNodeAdv node, NodeControl control, DrawContext context) : base(node)
		{
			_control = control;
			_context = context;
		}
		string IToolTipProvider.GetToolTip(TreeNodeAdv node, NodeControl nodeControl)
		{
			PackageItem item = node.Tag as PackageItem;
			if (item == null) return null;

			if (item.IsInstalled)
			{
				if (item.IsUpdatable)
				{
					switch (item.Compatibility)
					{
						case PackageCompatibility.Definite:
							return Properties.PackageManagerFrontendRes.TooltipUpdateDefiniteCompatibility;
						case PackageCompatibility.Likely:
							return Properties.PackageManagerFrontendRes.TooltipUpdateLikelyCompatibility;
						case PackageCompatibility.Unlikely:
							return Properties.PackageManagerFrontendRes.TooltipUpdateUnlikelyCompatibility;
						case PackageCompatibility.None:
							return Properties.PackageManagerFrontendRes.TooltipUpdateNoCompatibility;
					}
				}
				else
				{
					return Properties.PackageManagerFrontendRes.TooltipUpdateUpToDate;
				}
			}
			else
			{
				switch (item.Compatibility)
				{
					case PackageCompatibility.Unlikely:
						return Properties.PackageManagerFrontendRes.TooltipInstallUnlikelyCompatibility;
					case PackageCompatibility.None:
						return Properties.PackageManagerFrontendRes.TooltipInstallNoCompatibility;
				}
			}

			return null;
		}
 public string GetToolTip(TreeNodeAdv node, NodeControl nodeControl)
 {
     DataNode dataNode = node.Tag as DataNode;
     // use IsEditing to get unfiltered value
     bool e = dataNode.IsEditing;
     dataNode.IsEditing = true;
     string r = dataNode.Value;
     dataNode.IsEditing = e;
     if (r.Length > 300) r = r.Substring(0, 300) + "[...]";
     return r;
 }
		public NodeControlInfo(NodeControl control, Rectangle bounds, TreeNodeAdv node)
		{
			_control = control;
			_bounds = bounds;
			_node = node;
		}
		public DrawTextEventArgs(TreeNodeAdv node, NodeControl control, DrawContext context, string text)
			: base(node, control, context)
		{
			_text = text;
		}
        public string GetToolTip(TreeNodeAdv node, NodeControl nodeControl)
        {
            if (node != null && node.Tag != null)
              {
            GrtListNode lnode = node.Tag as GrtListNode;
            int c= 0;

            foreach (ColumnContent column in columns)
            {
              if (column.control == nodeControl)
              {
            c= column.index;
            break;
              }
            }

            return grtList.get_field_description(lnode.NodeId, c);
              }
              return "";
        }
Example #12
0
 public string GetToolTip(TreeNodeAdv node, NodeControl nodeControl)
 {
     // TODO
     return string.Empty;
 }
Example #13
0
        public string GetToolTip(TreeNodeAdv node, NodeControl nodeControl)
        {
            var ent = node.Tag as Entry;
            if (ent != null)
            {
                switch (nodeControl.ParentColumn.Header)
                {
                    case "Name":
                        return "Internal Name: \"" + ent.InternalName + "\"";
                }
            }

            return null;
        }
Example #14
0
 public DrawEventArgs(TreeNodeAdv node, NodeControl control, DrawContext context) : base(node)
 {
     _control = control;
     _context = context;
 }
Example #15
0
 public NodeControlInfo(NodeControl control, Rectangle bounds)
 {
     _control = control;
     _bounds = bounds;
 }
Example #16
0
 public DrawTextEventArgs(TreeNodeAdv node, NodeControl control, DrawContext context, string text)
     : base(node, control, context)
 {
     _text = text;
 }
        public int AddColumn(NodeControl treeControl, int grtIndex, bool editable)
        {
            ColumnContent column= new ColumnContent();
              column.editable = editable;
              column.index = grtIndex;
              column.control = treeControl;

              if (treeControl is BindableControl)
              {
            BindableControl control = treeControl as BindableControl;
            control.VirtualMode = true;
            control.ValueNeeded += new EventHandler<NodeControlValueEventArgs>(ValueNeeded);
            if (editable)
            {
              if (control is NodeTextBox)
            (control as NodeTextBox).EditEnabled = true;
              control.ValuePushed += new EventHandler<NodeControlValueEventArgs>(ValuePushed);
              if (control is AdvNodeTextBox)
            ((AdvNodeTextBox) control).EditorInitialize += new EditorInitializeEventHandler(EditorInitialize);
            }
            else
              if (control is NodeTextBox)
            (control as NodeTextBox).EditEnabled = false;
              }

              columns.Add(column);

              return column.index;
        }
Example #18
0
 public string GetToolTip(TreeNodeAdv node, NodeControl nodeControl)
 {
     return ((node.Tag as Node).Tag as NavDetails).ContentSrc;
 }
 /// <summary>
 /// Returns the grt index of the column to which the control is bound.
 /// </summary>
 /// <param name="control">The control for which to return the column index.</param>
 /// <returns>The index of the column for the given control if found or 0 (to emulate the way GrtTreeModel does this
 /// for icons).</returns>
 public int GetColumnIndex(NodeControl control)
 {
     foreach (ColumnContent column in columns)
     if (control == column.control)
     {
       return column.index;
     }
       return 0;
 }
 public DrawIconEventArgs(TreeNodeAdv node, NodeControl control, DrawContext context) : base(node, control, context)
 {
 }
        public string GetToolTip(TreeNodeAdv node, NodeControl nodeControl)
        {
            if (node != null && node.Tag != null)
              {
            GrtTreeNode lnode = node.Tag as GrtTreeNode;
            int index = GetColumnIndex(nodeControl);
            if (index < 0)
              index= 0;

            return model.get_field_description(lnode.NodeId, index);
              }
              return "";
        }
Example #22
0
			public string GetToolTip(TreeNodeAdv node, NodeControl nodeControl)
			{
				if (node.Tag is ElasticNode)
				{
					var tempNode = (ElasticNode)node.Tag;
					if (tempNode.IndexStatus != null)
					{
						return tempNode.IndexStatus.ToString();
					}

				}
				return string.Empty;
			}
 public virtual void EndSearch()
 {
     _currentControl = null;
     _currentNode = null;
     if (IsActive)
     {
         _searchString = "";
         IsActive = false;
         Tree.UpdateView();
     }
 }
        private void UpdateToolTip(MouseEventArgs e)
        {
            if (ShowNodeToolTips)
            {
                TreeNodeAdvMouseEventArgs args = CreateMouseArgs(e);
                if (args.Node != null)
                {
                    if (args.Node != _hoverNode || args.Control != _hoverControl)
                    {
                        string msg = GetNodeToolTip(args);
                        if (!String.IsNullOrEmpty(msg))
                        {
                            _toolTip.SetToolTip(this, msg);
                            _toolTip.Active = true;
                        }
                        else
                            _toolTip.SetToolTip(this, null);
                    }
                }
                else
                    _toolTip.SetToolTip(this, null);

                _hoverControl = args.Control;
                _hoverNode = args.Node;
            }
            else
                _toolTip.SetToolTip(this, null);
        }
        private bool DoContinuousSearch()
        {
            bool found = false;
            if (!String.IsNullOrEmpty(_searchString))
            {
                TreeNodeAdv node = null;
                if (Tree.SelectedNode != null)
                    node = Tree.SelectedNode;
                if (node == null)
                    node = Tree.Root.NextVisibleNode;

                if (!String.IsNullOrEmpty(_searchString))
                {
                    foreach (string label in IterateNodeLabels(node))
                    {
                        if (label.StartsWith(_searchString))
                        {
                            found = true;
                            _selectedControl = CurrentControl;
                            Tree.SelectedNode = CurrentNode;
                            break;
                        }
                    }
                }
            }
            return found;
        }
Example #26
0
 public string GetToolTip(TreeNodeAdv node, NodeControl nodeControl)
 {
     return "Drag&Drop nodes to move them";
 }
 private IEnumerable<string> GetNodeLabels(TreeNodeAdv node)
 {
     foreach (NodeControl nc in Tree.NodeControls)
     {
         _currentControl = nc;
         BindableControl bc = nc as BindableControl;
         if (bc != null && bc.IncrementalSearchEnabled)
         {
             object obj = bc.GetValue(node);
             if (obj != null)
                 yield return obj.ToString().ToLowerInvariant();
         }
     }
 }
Example #28
0
        private void DisplayNodesTooltip(MouseEventArgs e)
        {
            if (ShowNodeToolTips)
            {
                TreeNodeAdvMouseEventArgs args = CreateMouseArgs(e);
                if (args.Node != null && args.Control != null)
                {
                    if (args.Node != _hotNode || args.Control != _hotControl)
                        SetTooltip(GetNodeToolTip(args));
                }
                else
                    _toolTip.SetToolTip(this, null);

                _hotControl = args.Control;
                _hotNode = args.Node;
            }
            else
                _toolTip.SetToolTip(this, null);
        }
	    public NodeControlInfo(NodeControl control, Rectangle bounds, TreeNodeAdv node) : this()
		{
			this.Control = control;
			this.Bounds = bounds;
			this.Node = node;
		}