the scroll position.
- ExpandAll needs to compute the scrollbars so it knows which
position to set the bar too.
* TreeNode.cs:
* TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
svn path=/trunk/mcs/; revision=76152
eliminates issues where you need to click on the tree before
scrolling it to get the top node computed correctly.
* TreeNodeCollection.cs: We don't need to mess with the top node
anymore.
svn path=/trunk/mcs/; revision=73333
* TreeNodeCollection.cs: New Add() methods, ContainsKey and
IndexOfKey() for 2.0
Tests:
* BindingTest.cs (BindingContextChangedTest2): Added 2.0-specific check,
was failing under ms.net.
* ComboBoxText.cs (FindStringExactMatchException): Add check for exception
only for 1.1 - was failing under ms.net
* ControlTest.cs:
- AnchorDockTest: Fix incorrect assertion #5 - was failing
under ms.net
- TestForm: Fix incorrect assertion #4 - was failing
under ms.net
* TreeNodeCollectionTest.cs: Add new tests for 2.0
2007-01-23 Andreia Gaita <[email protected]>
svn path=/trunk/mcs/; revision=71515
NullReferenceException when attempting to remove node that is not in
collection. Throw NullReferenceException when null is passed to
Remove. Allow first element of the collection to be removed. Fixes
bug #79831. In GetEnumerator ().Current return null if positioned
before the first element of the collection. In GetEnumerator ().Reset,
position before first element of the collection.
* TreeNodeCollectionTest.cs: Added tests for TreeNodeCollection.
* System.Windows.Forms_test.dll.sources: Added TreeNodeCollectionTest.cs.
svn path=/trunk/mcs/; revision=67376
* TreeNodeCollection.cs: Only need to update scrollbars if being
added to an expanded visible node or the root node.
svn path=/trunk/mcs/; revision=66493
here, since it will get called for every node collection in the
tree. This is now done in the treeview once the sorting is
finished.
* TreeView.cs: Recalculate the visible order, and update the
scrollbars after sorting, set the top nope to the root so that
the
recalc actually works.
svn path=/trunk/mcs/; revision=66091
collection can change it without firing the whole event chain.
* TreeNodeCollection.cs: When clearing all the child nodes make
sure to recalc the visible order.
- Improve algo for remove the top node
svn path=/trunk/mcs/; revision=61387
SVN.
* TreeNode.cs: We get the indent level dynamically right now, so
don't track it as a member.
* TreeNodeCollection.cs: Make sure all nodes added to the list
have parents, treeviews/topnodes setup properly.
- Don't attempt to track indent level.
svn path=/trunk/mcs/; revision=61349
inserted nodes that aren't visible. This changes the
max_visible_order which confuses scrollbar settings.
- Use the enumerator to get the prev node instead of duplicating
code.
* TreeView.cs: Use new method for setting scrollbar values
- Don't set the bounds every time the scrollbar is updated
- When updating below the root node use an invalidate instead of
a
refresh to prevent the child controls (scrollbars) from being
refreshed. (UpdateBelow still needs to be reworked anyways).
svn path=/trunk/mcs/; revision=61085
* allows
treenode calculations to be independant of the painting code. To
do this nodes track a visible order which is calculated by the
treeview.
- Call new methods for expanding/collapsing nodes. These
methods
use scrollwindow so we don't have to update everything below the
node.
* TreeView.cs: Refactored drawing and scrolling code. We don't
need to update nodes when drawing anymore or calculate scrollbar
stuff.
- Added new methods for expanding/collapsing nodes. These
methods
use ScrollWindow so as to not have to redraw all the nodes
below.
* TreeNodeCollection.cs: Recalc visible order and scrollbars
* when
we add/remove nodes or sort.
- Handle removing the selected and the top node properly.
svn path=/trunk/mcs/; revision=61021
strings to the data object.
* TreeNodeCollection.cs: When adding to a sorted tree we need to
do some redrawing too. Also change the UpdateNode to an
UpdateBelow so the newly added node gets painted.
svn path=/trunk/mcs/; revision=55410
can play with it.
* TreeNodeCollection.cs: If we remove the topnode we need to
update topnode to the next node in line.
- When clearing nodes go through the same process as removing
them, so they get depareneted and checked if they are top
node.
svn path=/trunk/mcs/; revision=53829
selectable as well as the text.
- If there are no selected nodes select the first one.
* TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
so don't do it more then we need to.
svn path=/trunk/mcs/; revision=53827
that nodes can be moved from tree to tree easily this just causes
all sorts of problems.
* TreeNodeCollection: Don't need to give treenodes an index and
treeview anymore when they are added, these are computed on the
fly. Also make sure to remove a node before its added.
svn path=/trunk/mcs/; revision=52522
are reduced when adding nodes.
* TreeNode.cs:
* TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
tree.
svn path=/trunk/mcs/; revision=51959
* TreeNode.cs: The root node should be expanded by default. Also
added a utility prop to tell if we are the root node.
* TreeNodeCollection.cs: Only refresh if the node we are being
added to is expanded. Also added a comment on a potential
optimization.
svn path=/trunk/mcs/; revision=51231
draw the connecting node lines (when ShowLines is true).
* TreeNode.cs: The nodes index can now be updated. This is used
when a node collection is sorted.
* TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
insert or an existing unsorted node collection can be sorted.
svn path=/trunk/mcs/; revision=38837
I am removing these files as they conflict with already completed
work. While it is fantastic to get contributions to MWF, I
respectfully ask that everyone please coordinate their contributions
through mono-winforms-list or #mono-winforms at this time. We're
explicitly avoiding stubbing and don't want controls that don't have
their basic functionality implemented in svn. Please also see
http://www.mono-project.com/contributing/winforms.html
svn path=/trunk/mcs/; revision=36822