Commit Graph

1788 Commits

Author SHA1 Message Date
tznind
899ef1ffea Fixed mixing public fields and properties 2020-12-16 14:21:28 +00:00
tznind
33cf23c0d7 Moved styling logic into new class TreeStyle 2020-12-16 13:48:07 +00:00
tznind
3d1b40cd08 Updated scenario to show both trees at once 2020-12-16 12:53:32 +00:00
tznind
dc184ba469 Changed from object to generic <T> for TreeView 2020-12-16 12:04:46 +00:00
tznind
5014d8ce61 Merge branch 'tree-view' of https://github.com/tznind/gui.cs into tree-view 2020-12-15 11:06:31 +00:00
tznind
5c5d0eee0a Added ShowExpandableSymbol option to toggle displaying '+' symbol 2020-12-15 11:05:27 +00:00
tznind
a95ab9e1ba Spaced out branch lines and fixed bug when ShowBranchLines is off 2020-12-15 10:18:55 +00:00
tznind
a1904950fa Removed minus symbol for collapsing nodes 2020-12-15 10:04:33 +00:00
tznind
dc0a378729 Changed selection rendering to cover whole row 2020-12-15 09:59:54 +00:00
tznind
8fe8128b0b Replaced delegates with new interface ITreeBuilder 2020-12-15 09:37:59 +00:00
tznind
e7dcd49506 Changed GetLinePrefix to use Runes directly (instead of strings)
This fixes printing in some consoles
2020-12-14 09:25:02 +00:00
tznind
5dad1d2221 Added test for TreeNode usage 2020-12-14 07:30:13 +00:00
tznind
d68dbca108 fixed root node indentation 2020-12-14 07:21:15 +00:00
tznind
6af7cd85d1 added ShowLines and TreeNode support 2020-12-13 23:07:18 +00:00
tznind
7394b5013e clarified consent to use under MIT 2020-12-13 18:33:26 +00:00
tznind
7af2763f43 Added method RebuildTree
Similar to RefreshObject but for all visible branches.  Call this method when making large scale changes behind the scenes to objects including hierarchy changes.
2020-12-09 13:24:30 +00:00
tznind
8ce042eb52 Fixed RefreshObject when Equality method is overridden in model objects
Now when you call RefreshObject the Branch.Model is always updated to the latest reference even when Equals indicates we already have it in children
2020-12-08 14:13:27 +00:00
tznind
2bd3f76553 Added GetChildren and GetParent 2020-12-08 14:11:55 +00:00
tznind
b75b79b068 Added RefreshObject and IsExpanded
RefreshObject notifies tree of changes to a model (e.g. it's children) and clears cached knowledge but persists the branch expansion state
2020-12-02 15:10:54 +00:00
tznind
f5875034f7 xmldocs for SelectionChangedEventArgs constructor 2020-12-02 14:02:17 +00:00
tznind
148b4d2784 Made ScrollOffset setter public and added helper method and tests 2020-12-02 13:28:46 +00:00
tznind
dcacf8eb6f Added SelectionChanged event 2020-12-01 13:41:27 +00:00
tznind
e833adf94d Fixed always returning true in ProcessKey even when not consuming keystroke 2020-12-01 13:40:19 +00:00
tznind
8c0c975aea Changed example to show folders first then files (and ensure alphabetical order) 2020-11-25 07:16:33 +00:00
tznind
c147f79e28 Added CanExpandGetter logic (optional) 2020-11-23 11:57:12 +00:00
tznind
4047154eec Fixed returning subdirectory duplicates in example 2020-11-23 11:35:24 +00:00
tznind
de06dd1de3 Tidy up and comments 2020-11-23 11:31:07 +00:00
tznind
8f4087a64b Initial tree view control 2020-11-23 10:27:23 +00:00
Charlie Kindel
5ac64a4b92 Merge pull request #1012 from BDisp/layoutneeded-property
Fixes #1011. LayoutNeeded must be a property with a private set, because it's used outside the View class.
2020-11-18 14:27:02 -07:00
Charlie Kindel
8905dd996c Merge pull request #1014 from BDisp/net-driver-improvements
Trying fixing #518. Almost functions work on both Windows and Unix with the NetDriver.
2020-11-18 14:26:49 -07:00
BDisp
991f479cb8 Changed the menu Diagnostics and added code for passing an argument -usc for UseSystemConsole. 2020-11-18 19:52:02 +00:00
Charlie Kindel
47a87f0d61 Merge pull request #1013 from tig/1_00_pre-6
1.0 pre-release 6 - 1.00.pre-6
v1.0.0-pre.6
2020-11-17 16:39:56 -07:00
BDisp
854bca5846 Ammend AutoSize. 2020-11-17 22:03:32 +00:00
BDisp
bcc31e0da0 Trying fixing #518. Almost functions work on both Windows and Unix with the NetDriver. 2020-11-17 21:57:45 +00:00
Charlie Kindel
adb812d25c Pre release 6 - 1.00.pre-6 2020-11-17 12:30:13 -07:00
Charlie Kindel
9791ab2f8d Merge pull request #1005 from BDisp/textchanging-event
Fixes #998. Added a cancelable TextChanging event to prevent the TextChanged event being called if the changing is canceled.
2020-11-17 12:17:14 -07:00
BDisp
71f1b6b002 Fixes #1011. LayoutNeeded must be a property with a private set, because it's used outside the View class. 2020-11-17 18:03:30 +00:00
BDisp
2ea03e6b24 Fixes #998. Added a cancelable TextChanging event to prevent the TextChanged event being called if the changing is canceled. 2020-11-17 17:17:32 +00:00
BDisp
945a456ec0 Fixes #998. Added a cancelable TextChanging event to prevent the TextChanged event being called if the changing is canceled. 2020-11-17 16:53:42 +00:00
Charlie Kindel
204be65f2a Merge pull request #1004 from BDisp/view-auto-size
Fixes #1002. Added a AutoSize property to the View class.
2020-11-17 09:31:22 -07:00
BDisp
b460ee712d Added more documentation to the AutoSize property. 2020-11-17 16:20:39 +00:00
BDisp
84d06a638b Fixes #1002. Added a AutoSize property to the View class. 2020-11-17 16:20:26 +00:00
Charlie Kindel
81ae970c5f Merge pull request #1001 from BDisp/UI-label-as-buttons
Fixing "LabelsAsButtons.cs" layout as "Buttons.cs" scenario.
2020-11-17 09:01:18 -07:00
Charlie Kindel
0d48c32460 Merge pull request #1010 from BDisp/auto-hide-scrollbars
Fixes #1009. AutoHideScrollBars is causing ScrollView always redrawing.
2020-11-17 09:00:20 -07:00
Charlie Kindel
79b15fee1c Merge pull request #997 from am11/feature/rev-dotnet-version
Update to .NET 5 RTM
2020-11-17 08:49:57 -07:00
Charlie Kindel
834d209350 Merge pull request #996 from BDisp/textfield-unicode
Fixes #995. Improving TextField to work properly with Unicode characters.
2020-11-17 08:45:24 -07:00
Charlie Kindel
a82cb75641 Merge pull request #1000 from BDisp/toplevel-redraw
Fixes #999. Toplevel should only redraw the subviews if !NeedDisplay.IsEmpty or layoutNeeded.
2020-11-17 08:45:05 -07:00
BDisp
fc4796cc61 Preventing the Progress Bar view to continuous pulsing after quit the Scrolling scenario. 2020-11-17 15:42:32 +00:00
BDisp
06a001d5ea horizontalRuler.Text and verticalRuler.Text of the Scrolling scenario only need setted once, avoiding continuous redrawing. 2020-11-17 14:49:42 +00:00
BDisp
9f388e8704 Fixes #1009. AutoHideScrollBars is causing ScrollView always redrawing. 2020-11-17 14:07:57 +00:00