Commit Graph

1778 Commits

Author SHA1 Message Date
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
BDisp
19c684a3e1 Added a Unloaded event to the Toplevel class. 2020-11-15 22:38:01 +00:00
BDisp
7dc48cc34f LayoutSubviews before calculate the Height on the Progress scenario. 2020-11-15 21:53:06 +00:00
BDisp
fa0827a4af Fixes #1007. Added a Loaded event in the Toplevel class. 2020-11-15 20:57:08 +00:00
BDisp
a3ad62eef1 Delete and DeleteChar must have the same behavior. 2020-11-14 19:18:44 +00:00
BDisp
d71ca21897 Fixing "LabelsAsButtons.cs" layout as "Buttons.cs" scenario. 2020-11-13 17:45:22 +00:00
BDisp
3b182790c5 Fixes #999. Toplevel should only redraw the subviews if !NeedDisplay.IsEmpty or layoutNeeded. 2020-11-13 17:37:27 +00:00
Adeel
a387e745a0 Update to .NET 5 RTM 2020-11-11 06:56:36 +02:00
BDisp
3ab8dff1a7 Changed size and length to camel case. 2020-11-10 17:09:28 +00:00
BDisp
072de09dd5 Named items on DisplaySize method. 2020-11-10 15:36:18 +00:00
Charlie Kindel
4519c657ba Merge pull request #993 from BDisp/numbered-labels
Fixes #992. TextFormatter class now respect the view dimensions. Some typo fixing too.
2020-11-10 07:46:45 -07:00