mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Remove TileView; use View.Arrangement instead (#4271)
* Initial plan * Remove TileView and refactor to use View.Arrangement Co-authored-by: tig <585482+tig@users.noreply.github.com> * Fix FileDialog container focus behavior - all tests passing Co-authored-by: tig <585482+tig@users.noreply.github.com> * Remove obsolete TileView comment from View.Hierarchy.cs Co-authored-by: tig <585482+tig@users.noreply.github.com> * Add resizable splitter example to View.Arrangement docs Co-authored-by: tig <585482+tig@users.noreply.github.com> * Refactored `TreeView` and `TableView` containersto use View.Arrangment. Removed unused `_btnToggleSplitterCollapse` and related logic due to the new splitter design. Simplified collection initialization and feedback/state handling. Improved code readability by replacing magic strings and redundant null checks. Refactor FileDialog for null safety and UI improvements Enabled nullable reference types to improve null safety across the codebase. Refactored constants to follow uppercase naming conventions. Introduced nullable annotations for fields and method parameters. Updated test cases to reflect the removal of deprecated features. Skipped tests related to the removed splitter button. Made miscellaneous improvements, including adding comments and suppressing warnings. * Add "_Find:" label to FileDialog search field Co-authored-by: tig <585482+tig@users.noreply.github.com> * Fixes Parallel unit test intermittent failure case. Removed the initialization of the `Navigation` object in the `ResetState` method of the `Application` class, indicating a potential shift in its lifecycle management. Enhanced comments to clarify the role of `Shutdown` as a counterpart to `Init`, emphasizing resource cleanup and defensive coding for multithreaded scenarios. Referenced Issue #537 for additional context. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: tig <585482+tig@users.noreply.github.com> Co-authored-by: Tig <tig@users.noreply.github.com>
This commit is contained in:
@@ -159,7 +159,7 @@ public class FileDialogFluentTests
|
||||
"/";
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[Theory (Skip = "New splitter design removes expand button.")]
|
||||
[ClassData (typeof (TestDrivers))]
|
||||
public void SaveFileDialog_PressingPopTree_ShouldNotChangeCancel (TestDriver d)
|
||||
{
|
||||
@@ -177,7 +177,7 @@ public class FileDialogFluentTests
|
||||
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[Theory (Skip = "New splitter design removes expand button.")]
|
||||
[ClassData (typeof (TestDrivers))]
|
||||
public void SaveFileDialog_PopTree_AndNavigate (TestDriver d)
|
||||
{
|
||||
@@ -224,8 +224,8 @@ public class FileDialogFluentTests
|
||||
.WaitIteration ()
|
||||
.ScreenShot ("After typing filename 'hello'", _out)
|
||||
.AssertEndsWith ("hello", sd.Path)
|
||||
.LeftClick<Button> (b => b.Text == "►►")
|
||||
.ScreenShot ("After pop tree", _out)
|
||||
//.LeftClick<Button> (b => b.Text == "►►")
|
||||
//.ScreenShot ("After pop tree", _out)
|
||||
.Focus<TreeView<IFileSystemInfo>> (_ => true)
|
||||
.Right ()
|
||||
.ScreenShot ("After expand tree", _out)
|
||||
@@ -267,8 +267,8 @@ public class FileDialogFluentTests
|
||||
.WaitIteration ()
|
||||
.ScreenShot ("After typing filename 'hello'", _out)
|
||||
.AssertEndsWith ("hello", sd.Path)
|
||||
.LeftClick<Button> (b => b.Text == "►►")
|
||||
.ScreenShot ("After pop tree", _out)
|
||||
//.LeftClick<Button> (b => b.Text == "►►")
|
||||
//.ScreenShot ("After pop tree", _out)
|
||||
.Focus<TreeView<IFileSystemInfo>> (_ => true)
|
||||
.Right ()
|
||||
.ScreenShot ("After expand tree", _out)
|
||||
|
||||
Reference in New Issue
Block a user