@@ -19,6 +19,8 @@ public class AllViewsTester : Scenario
19
19
private ListView ? _classListView ;
20
20
private AdornmentsEditor ? _adornmentsEditor ;
21
21
22
+ private ArrangementEditor ? _arrangementEditor ;
23
+
22
24
private LayoutEditor ? _layoutEditor ;
23
25
private FrameView ? _settingsPane ;
24
26
private RadioGroup ? _orientation ;
@@ -88,23 +90,31 @@ public override void Main ()
88
90
X = Pos . Right ( _classListView ) ,
89
91
Y = 0 ,
90
92
Width = Dim . Auto ( ) ,
91
- Height = Dim . Fill ( ) ,
93
+ Height = Dim . Auto ( ) ,
92
94
ColorScheme = Colors . ColorSchemes [ "TopLevel" ] ,
93
- BorderStyle = LineStyle . Single ,
95
+ BorderStyle = LineStyle . Rounded ,
94
96
AutoSelectViewToEdit = false ,
95
97
AutoSelectAdornments = false
96
98
} ;
99
+ _adornmentsEditor . ExpanderButton . Orientation = Orientation . Vertical ;
97
100
98
- var expandButton = new ExpanderButton
101
+ _arrangementEditor = new ( )
99
102
{
100
- CanFocus = false ,
101
- Orientation = Orientation . Horizontal
103
+ Title = "Arrangement [_3]" ,
104
+ X = Pos . Right ( _classListView ) ,
105
+ Y = Pos . Bottom ( _adornmentsEditor ) ,
106
+ Width = Dim . Width ( _adornmentsEditor ) ,
107
+ Height = Dim . Fill ( ) ,
108
+ ColorScheme = Colors . ColorSchemes [ "TopLevel" ] ,
109
+ BorderStyle = LineStyle . Rounded ,
110
+ AutoSelectViewToEdit = false ,
111
+ AutoSelectAdornments = false
102
112
} ;
103
- _adornmentsEditor . Border . Add ( expandButton ) ;
113
+ _arrangementEditor . ExpanderButton . Orientation = Orientation . Vertical ;
104
114
105
115
_layoutEditor = new ( )
106
116
{
107
- Title = "Layout [_3 ]" ,
117
+ Title = "Layout [_4 ]" ,
108
118
X = Pos . Right ( _adornmentsEditor ) ,
109
119
Y = 0 ,
110
120
@@ -119,7 +129,7 @@ public override void Main ()
119
129
120
130
_settingsPane = new ( )
121
131
{
122
- Title = "Settings [_4 ]" ,
132
+ Title = "Settings [_5 ]" ,
123
133
X = Pos . Right ( _adornmentsEditor ) ,
124
134
Y = Pos . Bottom ( _layoutEditor ) ,
125
135
Width = Dim . Width ( _layoutEditor ) ,
@@ -211,12 +221,12 @@ public override void Main ()
211
221
Arrangement = ViewArrangement . Resizable ,
212
222
BorderStyle = LineStyle . RoundedDotted
213
223
} ;
214
- _hostPane . Border . ColorScheme = app . ColorScheme ;
215
- _hostPane . Padding . Thickness = new ( 1 ) ;
224
+ _hostPane . Border ! . ColorScheme = app . ColorScheme ;
225
+ _hostPane . Padding ! . Thickness = new ( 1 ) ;
216
226
_hostPane . Padding . Diagnostics = ViewDiagnosticFlags . Ruler ;
217
227
_hostPane . Padding . ColorScheme = app . ColorScheme ;
218
228
219
- app . Add ( _classListView , _adornmentsEditor , _layoutEditor , _settingsPane , _eventLog , _hostPane ) ;
229
+ app . Add ( _classListView , _adornmentsEditor , _arrangementEditor , _layoutEditor , _settingsPane , _eventLog , _hostPane ) ;
220
230
221
231
app . Initialized += App_Initialized ;
222
232
@@ -284,6 +294,7 @@ private void CreateCurrentView (Type type)
284
294
285
295
_hostPane ! . Add ( _curView ) ;
286
296
_layoutEditor ! . ViewToEdit = _curView ;
297
+ _arrangementEditor ! . ViewToEdit = _curView ;
287
298
_curView . SetNeedsLayout ( ) ;
288
299
}
289
300
@@ -295,6 +306,7 @@ private void DisposeCurrentView ()
295
306
_curView . SubviewsLaidOut -= CurrentView_LayoutComplete ;
296
307
_hostPane ! . Remove ( _curView ) ;
297
308
_layoutEditor ! . ViewToEdit = null ;
309
+ _arrangementEditor ! . ViewToEdit = null ;
298
310
299
311
_curView . Dispose ( ) ;
300
312
_curView = null ;
0 commit comments