diff --git a/Terminal.Gui/Core.cs b/Terminal.Gui/Core.cs
index 2bf0d78f7..fa0b41354 100644
--- a/Terminal.Gui/Core.cs
+++ b/Terminal.Gui/Core.cs
@@ -27,13 +27,13 @@ namespace Terminal.Gui {
///
public class Responder {
///
- /// Gets or sets a value indicating whether this can focus.
+ /// Gets or sets a value indicating whether this can focus.
///
/// true if can focus; otherwise, false .
public virtual bool CanFocus { get; set; }
///
- /// Gets or sets a value indicating whether this has focus.
+ /// Gets or sets a value indicating whether this has focus.
///
/// true if has focus; otherwise, false .
public virtual bool HasFocus { get; internal set; }
@@ -226,10 +226,10 @@ namespace Terminal.Gui {
///
/// When you do not specify a Rect frame you can use the more flexible
/// Dim and Pos objects that can dynamically update the position of a view.
- /// The X and Y properties are of type
+ /// The X and Y properties are of type
/// and you can use either absolute positions, percentages or anchor
/// points. The Width and Height properties are of type
- /// and can use absolute position,
+ /// and can use absolute position,
/// percentages and anchors. These are useful as they will take
/// care of repositioning your views if your view's frames are resized
/// or if the terminal size changes.
@@ -351,13 +351,13 @@ namespace Terminal.Gui {
public ustring Id { get; set; } = "";
///
- /// Gets or sets a value indicating whether this want mouse position reports.
+ /// Gets or sets a value indicating whether this want mouse position reports.
///
/// true if want mouse position reports; otherwise, false .
public virtual bool WantMousePositionReports { get; set; } = false;
///
- /// Gets or sets a value indicating whether this want continuous button pressed event.
+ /// Gets or sets a value indicating whether this want continuous button pressed event.
///
public virtual bool WantContinuousButtonPressed { get; set; } = false;
///
@@ -481,7 +481,7 @@ namespace Terminal.Gui {
public View SuperView => container;
///
- /// Initializes a new instance of the class with the absolute
+ /// Initializes a new instance of the class with the absolute
/// dimensions specified in the frame. If you want to have Views that can be positioned with
/// Pos and Dim properties on X, Y, Width and Height, use the empty constructor.
///
@@ -494,7 +494,7 @@ namespace Terminal.Gui {
}
///
- /// Initializes a new instance of the class and sets the
+ /// Initializes a new instance of the class and sets the
/// view up for Computed layout, which will use the values in X, Y, Width and Height to
/// compute the View's Frame.
///
@@ -1484,20 +1484,20 @@ namespace Terminal.Gui {
///
public class Toplevel : View {
///
- /// Gets or sets whether the for this is running or not. Setting
+ /// Gets or sets whether the Mainloop for this is running or not. Setting
/// this property to false will cause the MainLoop to exit.
///
public bool Running { get; set; }
///
- /// Fired once the Toplevel's has started it's first iteration.
- /// Subscribe to this event to perform tasks when the has been laid out and focus has been set.
- /// changes. A Ready event handler is a good place to finalize initialization after calling ` (topLevel)`.
+ /// Fired once the Toplevel's MainLoop has started it's first iteration.
+ /// Subscribe to this event to perform tasks when the has been laid out and focus has been set.
+ /// changes. A Ready event handler is a good place to finalize initialization after calling ` (topLevel)`.
///
public event EventHandler Ready;
///
- /// Called from Application.RunLoop after the has entered it's first iteration of the loop.
+ /// Called from Application.RunLoop after the has entered it's first iteration of the loop.
///
internal virtual void OnReady ()
{
@@ -1505,7 +1505,7 @@ namespace Terminal.Gui {
}
///
- /// Initializes a new instance of the class with the specified absolute layout.
+ /// Initializes a new instance of the class with the specified absolute layout.
///
/// Frame.
public Toplevel (Rect frame) : base (frame)
@@ -1514,7 +1514,7 @@ namespace Terminal.Gui {
}
///
- /// Initializes a new instance of the class with Computed layout, defaulting to full screen.
+ /// Initializes a new instance of the class with Computed layout, defaulting to full screen.
///
public Toplevel () : base ()
{
@@ -1538,7 +1538,7 @@ namespace Terminal.Gui {
}
///
- /// Gets or sets a value indicating whether this can focus.
+ /// Gets or sets a value indicating whether this can focus.
///
/// true if can focus; otherwise, false .
public override bool CanFocus {
@@ -1734,7 +1734,7 @@ namespace Terminal.Gui {
}
///
- /// A toplevel view that draws a frame around its region and has a "ContentView" subview where the contents are added.
+ /// A that draws a frame around its region and has a "ContentView" subview where the contents are added.
///
public class Window : Toplevel, IEnumerable {
View contentView;
@@ -1772,7 +1772,7 @@ namespace Terminal.Gui {
}
///
- /// Initializes a new instance of the class with an optional title and a set frame.
+ /// Initializes a new instance of the class with an optional title and a set frame.
///
/// Frame.
/// Title.
@@ -1781,7 +1781,7 @@ namespace Terminal.Gui {
}
///
- /// Initializes a new instance of the class with an optional title.
+ /// Initializes a new instance of the class with an optional title.
///
/// Title.
public Window (ustring title = null) : this (title, padding: 0)
@@ -1790,7 +1790,7 @@ namespace Terminal.Gui {
int padding;
///
- /// Initializes a new instance of the with
+ /// Initializes a new instance of the with
/// the specified frame for its location, with the specified border
/// an optional title.
///
@@ -1808,7 +1808,7 @@ namespace Terminal.Gui {
}
///
- /// Initializes a new instance of the with
+ /// Initializes a new instance of the with
/// the specified frame for its location, with the specified border
/// an optional title.
///
@@ -1829,7 +1829,7 @@ namespace Terminal.Gui {
}
///
- /// Enumerates the various views in the ContentView.
+ /// Enumerates the various s in the embedded .
///
/// The enumerator.
public new IEnumerator GetEnumerator ()
@@ -1843,7 +1843,7 @@ namespace Terminal.Gui {
}
///
- /// Add the specified view to the ContentView.
+ /// Add the specified view to the .
///
/// View to add to the window.
public override void Add (View view)
@@ -1976,7 +1976,7 @@ namespace Terminal.Gui {
}
///
- /// The application driver for gui.cs
+ /// The application driver for Terminal.Gui.
///
///
///
@@ -1994,30 +1994,30 @@ namespace Terminal.Gui {
///
public static class Application {
///
- /// The current Console Driver in use.
+ /// The current in use.
///
public static ConsoleDriver Driver;
///
- /// The Toplevel object used for the application on startup.
+ /// The object used for the application on startup ( )
///
/// The top.
public static Toplevel Top { get; private set; }
///
- /// The current toplevel object. This is updated when Application.Run enters and leaves and points to the current toplevel.
+ /// The current object. This is updated when enters and leaves to point to the current .
///
/// The current.
public static Toplevel Current { get; private set; }
///
- /// TThe current view object being redrawn.
+ /// TThe current object being redrawn.
///
/// /// The current.
public static View CurrentView { get; set; }
///
- /// The mainloop driver for the applicaiton
+ /// The driver for the applicaiton
///
/// The main loop.
public static Mono.Terminal.MainLoop MainLoop { get; private set; }
@@ -2025,8 +2025,7 @@ namespace Terminal.Gui {
static Stack toplevels = new Stack ();
///
- /// This event is raised on each iteration of the
- /// main loop.
+ /// This event is raised on each iteration of the
///
///
/// See also
@@ -2044,7 +2043,7 @@ namespace Terminal.Gui {
}
//
- // provides the sync context set while executing code in gui.cs, to let
+ // provides the sync context set while executing code in Terminal.Gui, to let
// users use async/await on their code
//
class MainLoopSyncContext : SynchronizationContext {
@@ -2083,14 +2082,25 @@ namespace Terminal.Gui {
public static bool UseSystemConsole;
///
- /// Initializes the Application
+ /// Initializes a new instance of Application.
///
+ ///
+ ///
+ /// Call this method once per instance (or after has been called).
+ ///
+ ///
+ /// Loads the right for the platform.
+ ///
+ ///
+ /// Creates a and assigns it to and
+ ///
+ ///
public static void Init () => Init (() => Toplevel.Create ());
internal static bool _initialized = false;
///
- /// Initializes the Application
+ /// Initializes the Terminal.Gui application
///
static void Init (Func topLevelFactory)
{
@@ -2120,7 +2130,7 @@ namespace Terminal.Gui {
}
///
- /// Captures the execution state for the provided TopLevel view.
+ /// Captures the execution state for the provided view.
///
public class RunState : IDisposable {
internal RunState (Toplevel view)
@@ -2130,13 +2140,13 @@ namespace Terminal.Gui {
internal Toplevel Toplevel;
///
- /// Releases alTop = l resource used by the object.
+ /// Releases alTop = l resource used by the object.
///
- /// Call when you are finished using the . The
- /// method leaves the in an unusable state. After
+ /// Call when you are finished using the . The
+ /// method leaves the in an unusable state. After
/// calling , you must release all references to the
- /// so the garbage collector can reclaim the memory that the
- /// was occupying.
+ /// so the garbage collector can reclaim the memory that the
+ /// was occupying.
public void Dispose ()
{
Dispose (true);
@@ -2342,15 +2352,15 @@ namespace Terminal.Gui {
public static event EventHandler Loaded;
///
- /// Building block API: Prepares the provided toplevel for execution.
+ /// Building block API: Prepares the provided for execution.
///
- /// The runstate handle that needs to be passed to the End() method upon completion.
+ /// The runstate handle that needs to be passed to the method upon completion.
/// Toplevel to prepare execution for.
///
/// This method prepares the provided toplevel for running with the focus,
/// it adds this to the list of toplevels, sets up the mainloop to process the
/// event, lays out the subviews, focuses the first element, and draws the
- /// toplevel in the screen. This is usually followed by executing
+ /// toplevel in the screen. This is usually followed by executing
/// the method, and then the method upon termination which will
/// undo these changes.
///
@@ -2385,7 +2395,7 @@ namespace Terminal.Gui {
}
///
- /// Building block API: completes the execution of a Toplevel that was started with Begin.
+ /// Building block API: completes the execution of a that was started with .
///
/// The runstate returned by the method.
public static void End (RunState runState)
@@ -2397,7 +2407,7 @@ namespace Terminal.Gui {
}
///
- /// Finalize the driver.
+ /// Shutdown an application initalized with
///
public static void Shutdown ()
{
@@ -2500,7 +2510,7 @@ namespace Terminal.Gui {
}
///
- /// Runs the application with the built-in toplevel view
+ /// Runs the application by calling with the value of
///
public static void Run ()
{
@@ -2508,7 +2518,7 @@ namespace Terminal.Gui {
}
///
- /// Runs the application with a new instance of the specified toplevel view
+ /// Runs the application by calling with a new instance of the specified -derived class
///
public static void Run () where T : Toplevel, new()
{
@@ -2517,27 +2527,26 @@ namespace Terminal.Gui {
}
///
- /// Runs the main loop on the given container.
+ /// Runs the main loop on the given container.
///
///
///
/// This method is used to start processing events
/// for the main application, but it is also used to
- /// run modal dialog boxes.
+ /// run other modal s such as boxes.
///
///
- /// To make a toplevel stop execution, set the "Running"
- /// property to false.
+ /// To make a stop execution, call .
///
///
- /// This is equivalent to calling Begin on the toplevel view, followed by RunLoop with the
- /// returned value, and then calling end on the return value.
+ /// Calling is equivalent to calling , followed by ,
+ /// and then calling .
///
///
- /// Alternatively, if your program needs to control the main loop and needs to
- /// process events manually, you can invoke Begin to set things up manually and then
- /// repeatedly call RunLoop with the wait parameter set to false. By doing this
- /// the RunLoop method will only process any pending events, timers, idle handlers and
+ /// Alternatively, to have a program control the main loop and
+ /// process events manually, call to set things up manually and then
+ /// repeatedly call with the wait parameter set to false. By doing this
+ /// the method will only process any pending events, timers, idle handlers and
/// then return control immediately.
///
///
@@ -2549,15 +2558,23 @@ namespace Terminal.Gui {
}
///
- /// Stops running the most recent toplevel
+ /// Stops running the most recent .
///
+ ///
+ ///
+ /// This will cause to return.
+ ///
+ ///
+ /// Calling is equivalent to setting the property on the curently running to false.
+ ///
+ ///
public static void RequestStop ()
{
Current.Running = false;
}
///
- /// Event arguments for the event.
+ /// Event arguments for the event.
///
public class ResizedEventArgs : EventArgs {
///
diff --git a/Terminal.Gui/Dialogs/Dialog.cs b/Terminal.Gui/Dialogs/Dialog.cs
index 2aef337d5..82d696d73 100644
--- a/Terminal.Gui/Dialogs/Dialog.cs
+++ b/Terminal.Gui/Dialogs/Dialog.cs
@@ -11,21 +11,20 @@ using NStack;
namespace Terminal.Gui {
///
- /// The dialog box is a window that by default is centered and contains one
- /// or more buttons. It defaults to the Colors.Dialog color scheme and has a
- /// 1 cell padding around the edges.
+ /// The is a that by default is centered and contains one
+ /// or more . It defaults to the color scheme and has a 1 cell padding around the edges.
///
///
- /// To run the dialog modally, create the Dialog, and pass this to Application.Run which
- /// will execute the dialog until it terminates via the [ESC] key, or when one of the views
- /// or buttons added to the dialog set the Running property on the Dialog to false.
+ /// To run the modally, create the , and pass it to .
+ /// This will execute the dialog until it terminates via the [ESC] or [CTRL-Q] key, or when one of the views
+ /// or buttons added to the dialog calls .
///
public class Dialog : Window {
List buttons = new List ();
const int padding = 1;
///
- /// Initializes a new instance of the class with an optional set of buttons to display
+ /// Initializes a new instance of the class with an optional set of s to display
///
/// Title for the dialog.
/// Width for the dialog.
@@ -49,7 +48,7 @@ namespace Terminal.Gui {
}
///
- /// Adds a button to the dialog, its layout will be controled by the dialog
+ /// Adds a to the , its layout will be controled by the
///
/// Button to add.
public void AddButton (Button button)
@@ -61,9 +60,7 @@ namespace Terminal.Gui {
Add (button);
}
- ///
- /// Lays out the subviews for the Dialog.
- ///
+ ///
public override void LayoutSubviews ()
{
base.LayoutSubviews ();
diff --git a/Terminal.Gui/Dialogs/FileDialog.cs b/Terminal.Gui/Dialogs/FileDialog.cs
index 7c9b54374..89c02b8ee 100644
--- a/Terminal.Gui/Dialogs/FileDialog.cs
+++ b/Terminal.Gui/Dialogs/FileDialog.cs
@@ -417,7 +417,7 @@ namespace Terminal.Gui {
}
///
- /// Base class for the OpenDialog and the SaveDialog
+ /// Base class for the and the
///
public class FileDialog : Dialog {
Button prompt, cancel;
@@ -426,7 +426,7 @@ namespace Terminal.Gui {
internal DirListView dirListView;
///
- /// Constructor for the OpenDialog and the SaveDialog.
+ /// Initializes a new instance of
///
/// The title.
/// The prompt.
@@ -502,7 +502,7 @@ namespace Terminal.Gui {
}
///
- /// Gets or sets the prompt label for the button displayed to the user
+ /// Gets or sets the prompt label for the displayed to the user
///
/// The prompt.
public ustring Prompt {
@@ -535,13 +535,13 @@ namespace Terminal.Gui {
}
///
- /// Gets or sets a value indicating whether this can create directories.
+ /// Gets or sets a value indicating whether this can create directories.
///
/// true if can create directories; otherwise, false .
public bool CanCreateDirectories { get; set; }
///
- /// Gets or sets a value indicating whether this is extension hidden.
+ /// Gets or sets a value indicating whether this is extension hidden.
///
/// true if is extension hidden; otherwise, false .
public bool IsExtensionHidden { get; set; }
@@ -569,7 +569,7 @@ namespace Terminal.Gui {
///
- /// Gets or sets a value indicating whether this allows the file to be saved with a different extension
+ /// Gets or sets a value indicating whether this allows the file to be saved with a different extension
///
/// true if allows other file types; otherwise, false .
public bool AllowsOtherFileTypes { get; set; }
@@ -592,20 +592,20 @@ namespace Terminal.Gui {
}
///
- /// The save dialog provides an interactive dialog box for users to pick a file to
+ /// The provides an interactive dialog box for users to pick a file to
/// save.
///
///
///
- /// To use it, create an instance of the SaveDialog, and then
- /// call Application.Run on the resulting instance. This will run the dialog modally,
- /// and when this returns, the FileName property will contain the selected value or
+ /// To use, create an instance of , and pass it to
+ /// . This will run the dialog modally,
+ /// and when this returns, the property will contain the selected file name or
/// null if the user canceled.
///
///
public class SaveDialog : FileDialog {
///
- /// Constructor of the save dialog.
+ /// Initializes a new
///
/// The title.
/// The message.
@@ -615,7 +615,7 @@ namespace Terminal.Gui {
///
/// Gets the name of the file the user selected for saving, or null
- /// if the user canceled the dialog box.
+ /// if the user canceled the .
///
/// The name of the file.
public ustring FileName {
@@ -628,7 +628,7 @@ namespace Terminal.Gui {
}
///
- /// The Open Dialog provides an interactive dialog box for users to select files or directories.
+ /// The provides an interactive dialog box for users to select files or directories.
///
///
///
@@ -637,9 +637,9 @@ namespace Terminal.Gui {
/// you can control whether this should allow files or directories to be selected.
///
///
- /// To use it, create an instance of the OpenDialog, configure its properties, and then
- /// call Application.Run on the resulting instance. This will run the dialog modally,
- /// and when this returns, the list of filds will be available on the FilePaths property.
+ /// To use, create an instance of , and pass it to
+ /// . This will run the dialog modally,
+ /// and when this returns, the list of filds will be available on the property.
///
///
/// To select more than one file, users can use the spacebar, or control-t.
@@ -647,7 +647,7 @@ namespace Terminal.Gui {
///
public class OpenDialog : FileDialog {
///
- /// Constructor of the Open Dialog.
+ /// Initializes a new
///
///
///
@@ -656,7 +656,7 @@ namespace Terminal.Gui {
}
///
- /// Gets or sets a value indicating whether this can choose files.
+ /// Gets or sets a value indicating whether this can choose files.
///
/// true if can choose files; otherwise, false . Defaults to true
public bool CanChooseFiles {
@@ -668,7 +668,7 @@ namespace Terminal.Gui {
}
///
- /// Gets or sets a value indicating whether this can choose directories.
+ /// Gets or sets a value indicating whether this can choose directories.
///
/// true if can choose directories; otherwise, false defaults to false .
public bool CanChooseDirectories {
@@ -680,7 +680,7 @@ namespace Terminal.Gui {
}
///
- /// Gets or sets a value indicating whether this allows multiple selection.
+ /// Gets or sets a value indicating whether this allows multiple selection.
///
/// true if allows multiple selection; otherwise, false , defaults to false.
public bool AllowsMultipleSelection {
diff --git a/Terminal.Gui/Dialogs/MessageBox.cs b/Terminal.Gui/Dialogs/MessageBox.cs
index bbb53acf9..c351406f9 100644
--- a/Terminal.Gui/Dialogs/MessageBox.cs
+++ b/Terminal.Gui/Dialogs/MessageBox.cs
@@ -1,15 +1,14 @@
using System;
namespace Terminal.Gui {
-
///
- /// Message box displays a modal message to the user, with a title, a message and a series of options that the user can choose from.
+ /// MessageBox displays a modal message to the user, with a title, a message and a series of options that the user can choose from.
///
///
- /// The difference between the Query and ErrorQuery method is the default set of colors used for the message box.
+ /// The difference between the and method is the default set of colors used for the message box.
///
///
- /// The following example pops up a Message Box with 50 columns, and 7 lines, with the specified title and text, plus two buttons.
- /// The value -1 is returned when the user cancels the dialog by pressing the ESC key.
+ /// The following example pops up a with 50 columns, and 7 lines, with the specified title and text, plus two s.
+ /// The value -1 is returned when the user cancels the by pressing the ESC key.
///
///
///
@@ -18,12 +17,11 @@ namespace Terminal.Gui {
/// quit = true;
/// else
/// quit = false;
- ///
///
///
public static class MessageBox {
///
- /// Presents a message with the specified title and message and a list of buttons to show to the user.
+ /// Presents a normal with the specified title and message and a list of buttons to show to the user.
///
/// The index of the selected button, or -1 if the user pressed ESC to close the dialog.
/// Width for the window.
@@ -37,7 +35,7 @@ namespace Terminal.Gui {
}
///
- /// Presents an error message box with the specified title and message and a list of buttons to show to the user.
+ /// Presents an error with the specified title and message and a list of buttons to show to the user.
///
/// The index of the selected button, or -1 if the user pressed ESC to close the dialog.
/// Width for the window.
diff --git a/Terminal.Gui/Drivers/ConsoleDriver.cs b/Terminal.Gui/Drivers/ConsoleDriver.cs
index 32f488674..232be1c28 100644
--- a/Terminal.Gui/Drivers/ConsoleDriver.cs
+++ b/Terminal.Gui/Drivers/ConsoleDriver.cs
@@ -98,7 +98,7 @@ namespace Terminal.Gui {
internal Color background;
///
- /// Initializes a new instance of the struct.
+ /// Initializes a new instance of the struct.
///
/// Value.
/// Foreground
@@ -111,7 +111,7 @@ namespace Terminal.Gui {
}
///
- /// Initializes a new instance of the struct.
+ /// Initializes a new instance of the struct.
///
/// Foreground
/// Background
diff --git a/Terminal.Gui/Event.cs b/Terminal.Gui/Event.cs
index 169b60084..d06897675 100644
--- a/Terminal.Gui/Event.cs
+++ b/Terminal.Gui/Event.cs
@@ -9,7 +9,7 @@ using System;
namespace Terminal.Gui {
///
- /// The Key enumeration contains special encoding for some keys, but can also
+ /// The enumeration contains special encoding for some keys, but can also
/// encode all the unicode values that can be passed.
///
///
@@ -320,18 +320,23 @@ namespace Terminal.Gui {
//public bool IsCtrl => ((uint)Key >= 1) && ((uint)Key <= 26);
public bool IsCtrl => (Key & Key.CtrlMask) != 0;
+ ///
+ /// Constructs a new
+ ///
public KeyEvent ()
{
Key = Key.Unknown;
}
+
///
- /// Constructs a new KeyEvent from the provided Key value - can be a rune cast into a Key value
+ /// Constructs a new from the provided Key value - can be a rune cast into a Key value
///
public KeyEvent (Key k)
{
Key = k;
}
+ ///
public override string ToString ()
{
string msg = "";
@@ -508,9 +513,9 @@ namespace Terminal.Gui {
public View View;
///
- /// Returns a that represents the current .
+ /// Returns a that represents the current .
///
- /// A that represents the current .
+ /// A that represents the current .
public override string ToString ()
{
return $"({X},{Y}:{Flags}";
diff --git a/Terminal.Gui/Types/PosDim.cs b/Terminal.Gui/Types/PosDim.cs
index c45669674..e9c7efd8f 100644
--- a/Terminal.Gui/Types/PosDim.cs
+++ b/Terminal.Gui/Types/PosDim.cs
@@ -229,11 +229,11 @@ namespace Terminal.Gui {
static PosCombine posCombine;
///
- /// Adds a to a , yielding a new .
+ /// Adds a to a , yielding a new .
///
/// The first to add.
/// The second to add.
- /// The that is the sum of the values of left and right .
+ /// The that is the sum of the values of left and right .
public static Pos operator + (Pos left, Pos right)
{
PosCombine newPos = new PosCombine (true, left, right);
@@ -247,11 +247,11 @@ namespace Terminal.Gui {
}
///
- /// Subtracts a from a , yielding a new .
+ /// Subtracts a from a , yielding a new .
///
/// The to subtract from (the minuend).
/// The to subtract (the subtrahend).
- /// The that is the left minus right .
+ /// The that is the left minus right .
public static Pos operator - (Pos left, Pos right)
{
PosCombine newPos = new PosCombine (false, left, right);
@@ -390,7 +390,7 @@ namespace Terminal.Gui {
/// The percent object.
/// A value between 0 and 100 representing the percentage.
///
- /// This creates a that is centered horizontally, is 50% of the way down,
+ /// This initializes a that is centered horizontally, is 50% of the way down,
/// is 30% the height, and is 80% the width of the it added to.
///
/// var textView = new TextView () {
@@ -451,7 +451,7 @@ namespace Terminal.Gui {
static DimFill zeroMargin;
///
- /// Creates a object that fills the dimension, but leaves the specified number of colums for a margin.
+ /// Initializes a new instance of the class that fills the dimension, but leaves the specified number of colums for a margin.
///
/// The Fill dimension.
/// Margin to use.
@@ -507,22 +507,22 @@ namespace Terminal.Gui {
}
///
- /// Adds a to a , yielding a new .
+ /// Adds a to a , yielding a new .
///
/// The first to add.
/// The second to add.
- /// The that is the sum of the values of left and right .
+ /// The that is the sum of the values of left and right .
public static Dim operator + (Dim left, Dim right)
{
return new DimCombine (true, left, right);
}
///
- /// Subtracts a from a , yielding a new .
+ /// Subtracts a from a , yielding a new .
///
/// The to subtract from (the minuend).
/// The to subtract (the subtrahend).
- /// The that is the left minus right .
+ /// The that is the left minus right .
public static Dim operator - (Dim left, Dim right)
{
return new DimCombine (false, left, right);
diff --git a/Terminal.Gui/Views/Button.cs b/Terminal.Gui/Views/Button.cs
index 8fd4e2a2c..774050634 100644
--- a/Terminal.Gui/Views/Button.cs
+++ b/Terminal.Gui/Views/Button.cs
@@ -10,18 +10,18 @@ using NStack;
namespace Terminal.Gui {
///
- /// Button is a view that provides an item that invokes a callback when activated.
+ /// Button is a that provides an item that invokes an when activated by the user.
///
///
///
- /// Provides a button that can be clicked, or pressed with
- /// the enter key and processes hotkeys (the first uppercase
- /// letter in the button becomes the hotkey).
+ /// Provides a button showing text invokes an when clicked on with a mouse
+ /// or when the user presses SPACE, ENTER, or hotkey. The hotkey is specified by the first uppercase
+ /// letter in the button.
///
///
- /// If the button is configured as the default (IsDefault) the button
- /// will respond to the return key is no other view processes it, and
- /// turns this into a clicked event.
+ /// When the button is configured as the default ( ) and the user presses
+ /// the ENTER key, if no other processes the , the 's
+ /// will be invoked.
///
///
public class Button : View {
@@ -32,7 +32,7 @@ namespace Terminal.Gui {
bool is_default;
///
- /// Gets or sets a value indicating whether this is the default action to activate on return on a dialog.
+ /// Gets or sets whether the is the default action to activate in a dialog.
///
/// true if is default; otherwise, false .
public bool IsDefault {
@@ -44,7 +44,7 @@ namespace Terminal.Gui {
}
///
- /// Clicked event, raised when the button is clicked.
+ /// Clicked , raised when the button is clicked.
///
///
/// Client code can hook up to this event, it is
@@ -54,15 +54,14 @@ namespace Terminal.Gui {
public Action Clicked;
///
- /// Public constructor, creates a button based on
- /// the given text at position 0,0
+ /// Initializes a new instance of based on the given text at position 0,0
///
///
- /// The size of the button is computed based on the
- /// text length. This button is not a default button.
+ /// The size of the is computed based on the
+ /// text length.
///
/// The button's text
- /// If set, this makes the button the default button in the current view, which means that if the user presses return on a view that does not handle return, it will be treated as if he had clicked on the button
+ /// If set, this makes the button the default button in the current view.
public Button (ustring text, bool is_default = false) : base ()
{
CanFocus = true;
@@ -81,12 +80,11 @@ namespace Terminal.Gui {
}
///
- /// Public constructor, creates a button based on
- /// the given text at the given position.
+ /// Initializes a new instance of at the given coordinates, based on the given text
///
///
- /// The size of the button is computed based on the
- /// text length. This button is not a default button.
+ /// The size of the is computed based on the
+ /// text length.
///
/// X position where the button will be shown.
/// Y position where the button will be shown.
@@ -94,7 +92,7 @@ namespace Terminal.Gui {
public Button (int x, int y, ustring text) : this (x, y, text, false) { }
///
- /// The text displayed by this widget.
+ /// The text displayed by this .
///
public ustring Text {
get {
@@ -132,8 +130,7 @@ namespace Terminal.Gui {
}
///
- /// Public constructor, creates a button based on
- /// the given text at the given position.
+ /// Initializes a new instance of at the given coordinates, based on the given text, and with the specified value
///
///
/// If the value for is_default is true, a special
diff --git a/Terminal.Gui/Views/Checkbox.cs b/Terminal.Gui/Views/Checkbox.cs
index 06cb26ab3..056846b40 100644
--- a/Terminal.Gui/Views/Checkbox.cs
+++ b/Terminal.Gui/Views/Checkbox.cs
@@ -10,7 +10,7 @@ using NStack;
namespace Terminal.Gui {
///
- /// The Checkbox View shows an on/off toggle that the user can set
+ /// The shows an on/off toggle that the user can set
///
public class CheckBox : View {
ustring text;
@@ -18,17 +18,17 @@ namespace Terminal.Gui {
Rune hot_key;
///
- /// Toggled event, raised when the CheckButton is toggled.
+ /// Toggled event, raised when the is toggled.
///
///
/// Client code can hook up to this event, it is
- /// raised when the checkbutton is activated either with
+ /// raised when the is activated either with
/// the mouse or the keyboard.
///
public event EventHandler Toggled;
///
- /// Public constructor, creates a CheckButton based on the given text, uses Computed layout and sets the height and width.
+ /// Initializes a new instance of based on the given text, uses Computed layout and sets the height and width.
///
/// S.
/// If set to true is checked.
@@ -42,23 +42,21 @@ namespace Terminal.Gui {
}
///
- /// Public constructor, creates a CheckButton based on
- /// the given text at an absolute position.
+ /// Initializes a new instance of based on the given text at the given position and a state.
///
///
- /// The size of CheckButton is computed based on the
- /// text length. This CheckButton is not toggled.
+ /// The size of is computed based on the
+ /// text length. This is not toggled.
///
public CheckBox (int x, int y, ustring s) : this (x, y, s, false)
{
}
///
- /// Public constructor, creates a CheckButton based on
- /// the given text at the given position and a state.
+ /// Initializes a new instance of based on the given text at the given position and a state.
///
///
- /// The size of CheckButton is computed based on the
+ /// The size of is computed based on the
/// text length.
///
public CheckBox (int x, int y, ustring s, bool is_checked) : base (new Rect (x, y, s.Length + 4, 1))
@@ -70,12 +68,12 @@ namespace Terminal.Gui {
}
///
- /// The state of the checkbox.
+ /// The state of the
///
public bool Checked { get; set; }
///
- /// The text displayed by this widget.
+ /// The text displayed by this
///
public ustring Text {
get {
diff --git a/Terminal.Gui/Views/Clipboard.cs b/Terminal.Gui/Views/Clipboard.cs
index e0615da01..e24e79587 100644
--- a/Terminal.Gui/Views/Clipboard.cs
+++ b/Terminal.Gui/Views/Clipboard.cs
@@ -3,7 +3,8 @@ using NStack;
namespace Terminal.Gui {
///
- ///
+ /// Provides cut, copy, and paste support for the clipboard.
+ /// NOTE: Currently not implemented.
///
public static class Clipboard {
///
diff --git a/Terminal.Gui/Views/DateField.cs b/Terminal.Gui/Views/DateField.cs
index 0c82ea499..2215a56a2 100644
--- a/Terminal.Gui/Views/DateField.cs
+++ b/Terminal.Gui/Views/DateField.cs
@@ -11,12 +11,11 @@ using System.Linq;
using NStack;
namespace Terminal.Gui {
-
///
- /// Date edit widget
+ /// Date editing
///
///
- /// This widget provides date editing functionality, and mouse support.
+ /// The provides date editing functionality with mouse support.
///
public class DateField : TextField {
bool isShort;
@@ -31,13 +30,13 @@ namespace Terminal.Gui {
///
- /// Public constructor that creates a date edit field at an absolute position and fixed size.
+ /// Initializes a new instance of at an absolute position and fixed size.
///
/// The x coordinate.
/// The y coordinate.
/// Initial date contents.
/// If true, shows only two digits for the year.
- public DateField(int x, int y, DateTime date, bool isShort = false) : base(x, y, isShort ? 10 : 12, "")
+ public DateField (int x, int y, DateTime date, bool isShort = false) : base(x, y, isShort ? 10 : 12, "")
{
CultureInfo cultureInfo = CultureInfo.CurrentCulture;
sepChar = cultureInfo.DateTimeFormat.DateSeparator;
@@ -75,7 +74,7 @@ namespace Terminal.Gui {
}
///
- /// Gets or sets the date in the widget.
+ /// Gets or sets the date of the .
///
///
///
@@ -189,6 +188,7 @@ namespace Terminal.Gui {
CursorPosition++;
}
+ ///
public override bool ProcessKey(KeyEvent kb)
{
switch (kb.Key) {
@@ -235,6 +235,7 @@ namespace Terminal.Gui {
return true;
}
+ ///
public override bool MouseEvent(MouseEvent ev)
{
if (!ev.Flags.HasFlag(MouseFlags.Button1Clicked))
diff --git a/Terminal.Gui/Views/FrameView.cs b/Terminal.Gui/Views/FrameView.cs
index 4f3cbfc15..f5ea13bcf 100644
--- a/Terminal.Gui/Views/FrameView.cs
+++ b/Terminal.Gui/Views/FrameView.cs
@@ -11,14 +11,15 @@
namespace Terminal.Gui {
///
- /// The FrameView is a container frame that draws a frame around the contents
+ /// The FrameView is a container frame that draws a frame around the contents. It is similar to
+ /// a GroupBox in Windows.
///
public class FrameView : View {
View contentView;
ustring title;
///
- /// The title to be displayed for this window.
+ /// The title to be displayed for this .
///
/// The title.
public ustring Title {
@@ -35,7 +36,7 @@ namespace Terminal.Gui {
}
///
- /// Initializes a new instance of the class with
+ /// Initializes a new instance of the class with
/// an absolute position and a title.
///
/// Frame.
@@ -49,8 +50,8 @@ namespace Terminal.Gui {
}
///
- /// Initializes a new instance of the class with
- /// an absolute position, a title and views.
+ /// Initializes a new instance of the class with
+ /// an absolute position, a title and s.
///
/// Frame.
/// Title.
@@ -64,7 +65,7 @@ namespace Terminal.Gui {
}
///
- /// Initializes a new instance of the class with
+ /// Initializes a new instance of the class with
/// a title and the result is suitable to have its X, Y, Width and Height properties computed.
///
/// Title.
@@ -91,9 +92,9 @@ namespace Terminal.Gui {
}
///
- /// Add the specified view to the ContentView.
+ /// Add the specified to this container.
///
- /// View to add to the window.
+ /// to add to this container
public override void Add (View view)
{
contentView.Add (view);
@@ -103,7 +104,7 @@ namespace Terminal.Gui {
///
- /// Removes a widget from this container.
+ /// Removes a from this container.
///
///
///
@@ -121,7 +122,7 @@ namespace Terminal.Gui {
}
///
- /// Removes all widgets from this container.
+ /// Removes all s from this container.
///
///
///
@@ -130,6 +131,7 @@ namespace Terminal.Gui {
contentView.RemoveAll();
}
+ ///
public override void Redraw (Rect bounds)
{
if (!NeedDisplay.IsEmpty) {
diff --git a/Terminal.Gui/Views/HexView.cs b/Terminal.Gui/Views/HexView.cs
index 63aea9470..ada9544b1 100644
--- a/Terminal.Gui/Views/HexView.cs
+++ b/Terminal.Gui/Views/HexView.cs
@@ -11,27 +11,27 @@ using System.IO;
namespace Terminal.Gui {
///
- /// An Hex viewer an editor view over a System.IO.Stream
+ /// An hex viewer and editor over a
///
///
///
- /// This provides a hex editor on top of a seekable stream with the left side showing an hex
- /// dump of the values in the stream and the right side showing the contents (filterd to
- /// non-control sequence ascii characters).
+ /// provides a hex editor on top of a seekable with the left side showing an hex
+ /// dump of the values in the and the right side showing the contents (filterd to
+ /// non-control sequence ASCII characters).
///
///
/// Users can switch from one side to the other by using the tab key.
///
///
- /// If you want to enable editing, set the AllowsEdits property, once that is done, the user
- /// can make changes to the hexadecimal values of the stream. Any changes done are tracked
- /// in the Edits property which is a sorted dictionary indicating the position where the
- /// change was made and the new value. A convenience ApplyEdits method can be used to c
- /// apply the methods to the underlying stream.
+ /// To enable editing, set to true. When is true
+ /// the user can make changes to the hexadecimal values of the . Any changes are tracked
+ /// in the property (a ) indicating
+ /// the position where the changes were made and the new values. A convenience method,
+ /// will apply the edits to the .
///
///
- /// It is possible to control the first byte shown by setting the DisplayStart property
- /// to the offset that you want to start viewing.
+ /// Control the first byte shown by setting the property
+ /// to an offset in the stream.
///
///
public class HexView : View {
@@ -41,9 +41,9 @@ namespace Terminal.Gui {
bool firstNibble, leftSide;
///
- /// Creates and instance of the HexView that will render a seekable stream in hex on the allocated view region.
+ /// Initialzies a
///
- /// Source stream, this stream should support seeking, or this will raise an exceotion.
+ /// The to view and edit as hex, this must support seeking, or an exception will be thrown.
public HexView (Stream source) : base()
{
Source = source;
@@ -54,7 +54,7 @@ namespace Terminal.Gui {
}
///
- /// The source stream to display on the hex view, the stream should support seeking.
+ /// Sets or gets the the is operating on; the stream must support seeking ( == true).
///
/// The source.
public Stream Source {
@@ -82,7 +82,7 @@ namespace Terminal.Gui {
}
///
- /// Configures the initial offset to be displayed at the top
+ /// Sets or gets the offset into the that will displayed at the top of the
///
/// The display start.
public long DisplayStart {
@@ -212,9 +212,7 @@ namespace Terminal.Gui {
}
- ///
- /// Positions the cursor based for the hex view
- ///
+ ///
public override void PositionCursor ()
{
var delta = (int)(position - displayStart);
@@ -367,19 +365,22 @@ namespace Terminal.Gui {
}
///
- /// Gets or sets a value indicating whether this allow editing of the contents of the underlying stream.
+ /// Gets or sets whether this allow editing of the
+ /// of the underlying .
///
/// true if allow edits; otherwise, false .
public bool AllowEdits { get; set; }
///
- /// Gets a list of the edits done to the buffer which is a sorted dictionary with the positions where the edit took place and the value that was set.
+ /// Gets a describing the edits done to the .
+ /// Each Key indicates an offset where an edit was made and the Value is the changed byte.
///
/// The edits.
public IReadOnlyDictionary Edits => edits;
///
- /// This method applies the edits to the stream and resets the contents of the Edits property
+ /// This method applies andy edits made to the and resets the
+ /// contents of the property
///
public void ApplyEdits ()
{
diff --git a/Terminal.Gui/Views/Label.cs b/Terminal.Gui/Views/Label.cs
index 3f5fb448b..1e5d9ba21 100644
--- a/Terminal.Gui/Views/Label.cs
+++ b/Terminal.Gui/Views/Label.cs
@@ -28,13 +28,13 @@ namespace Terminal.Gui {
///
Centered,
///
- /// Shows the line as justified text in the line.
+ /// Shows the text as justified text in the frame.
///
Justified
}
///
- /// Label view, displays a string at a given position, can include multiple lines.
+ /// The Label displays a string at a given position and supports multiple lines separted by newline characters.
///
public class Label : View {
List lines = new List ();
@@ -64,7 +64,7 @@ namespace Terminal.Gui {
}
///
- /// Public constructor: creates a label at the given
+ /// Initializes a new instance of at the given
/// coordinate with the given string, computes the bounding box
/// based on the size of the string, assumes that the string contains
/// newlines for multiple lines, no special breaking rules are used.
@@ -74,7 +74,7 @@ namespace Terminal.Gui {
}
///
- /// Public constructor: creates a label at the given
+ /// Initializes a new instance of at the given
/// coordinate with the given string and uses the specified
/// frame for the string.
///
@@ -84,7 +84,7 @@ namespace Terminal.Gui {
}
///
- /// Public constructor: creates a label and configures the default Width and Height based on the text, the result is suitable for Computed layout.
+ /// Initializes a new instance of and configures the default Width and Height based on the text, the result is suitable for Computed layout.
///
/// Text.
public Label (ustring text) : base ()
@@ -200,7 +200,7 @@ namespace Terminal.Gui {
}
///
- /// Computes the number of lines needed to render the specified text by the Label control
+ /// Computes the number of lines needed to render the specified text by the view
///
/// Number of lines.
/// Text, may contain newlines.
@@ -226,7 +226,7 @@ namespace Terminal.Gui {
}
///
- /// The text displayed by this widget.
+ /// The text displayed by the .
///
public virtual ustring Text {
get => text;
@@ -238,7 +238,7 @@ namespace Terminal.Gui {
}
///
- /// Controls the text-alignemtn property of the label, changing it will redisplay the label.
+ /// Controls the text-alignemtn property of the label, changing it will redisplay the .
///
/// The text alignment.
public TextAlignment TextAlignment {
@@ -251,7 +251,7 @@ namespace Terminal.Gui {
Attribute textColor = -1;
///
- /// The color used for the label
+ /// The color used for the .
///
public Attribute TextColor {
get => textColor;
diff --git a/Terminal.Gui/Views/ListView.cs b/Terminal.Gui/Views/ListView.cs
index 7262fa478..e3c53557b 100644
--- a/Terminal.Gui/Views/ListView.cs
+++ b/Terminal.Gui/Views/ListView.cs
@@ -26,7 +26,7 @@ using NStack;
namespace Terminal.Gui {
///
- /// Implement this interface to provide your own custom rendering for a list.
+ /// Implement to provide custom rendering for a .
///
public interface IListDataSource {
///
@@ -72,33 +72,34 @@ namespace Terminal.Gui {
}
///
- /// ListView widget renders a list of data.
+ /// ListView renders a scrollable list of data where each item can be activated to perform an action.
///
///
///
- /// The ListView displays lists of data and allows the user to scroll through the data
- /// and optionally mark elements of the list (controlled by the AllowsMark property).
+ /// The displays lists of data and allows the user to scroll through the data.
+ /// Items in the can be activated firing an event (with the ENTER key or a mouse double-click).
+ /// If the property is true, elements of the list can be marked by the user.
///
///
- /// The ListView can either render an arbitrary IList object (for example, arrays, List<T>
- /// and other collections) which are drawn by drawing the string/ustring contents or the
- /// result of calling ToString(). Alternatively, you can provide you own IListDataSource
- /// object that gives you full control of what is rendered.
+ /// By default uses to render the items of any
+ /// object (e.g. arrays, ,
+ /// and other collections). Alternatively, an object that implements the
+ /// interface can be provided giving full control of what is rendered.
///
///
- /// The ListView can display any object that implements the System.Collection.IList interface,
- /// string values are converted into ustring values before rendering, and other values are
- /// converted into ustrings by calling ToString() and then converting to ustring.
+ /// can display any object that implements the interface.
+ /// values are converted into values before rendering, and other values are
+ /// converted into by calling and then converting to .
///
///
- /// If you must change the contents of the ListView, set the Source property (when you are
- /// providing your own rendering via the IListDataSource implementation) or call SetSource
- /// when you are providing an IList.
+ /// To change the contents of the ListView, set the property (when
+ /// providing custom rendering via ) or call
+ /// an is being used.
///
///
- /// When AllowsMark is set to true, then the rendering will prefix the list rendering with
- /// [x] or [ ] and bind the space character to toggle the selection. If you desire a different
- /// marking style do not set the property and provide your own custom rendering.
+ /// When is set to true the rendering will prefix the rendered items with
+ /// [x] or [ ] and bind the SPACE key to toggle the selection. To implement a different
+ /// marking style set to false and implement custom rendering.
///
///
public class ListView : View {
@@ -107,9 +108,12 @@ namespace Terminal.Gui {
IListDataSource source;
///
- /// Gets or sets the IListDataSource backing this view, use SetSource() if you want to set a new IList source.
+ /// Gets or sets the backing this , enabling custom rendering.
///
/// The source.
+ ///
+ /// Use to set a new source.
+ ///
public IListDataSource Source {
get => source;
set {
@@ -121,9 +125,12 @@ namespace Terminal.Gui {
}
///
- /// Sets the source to an IList value, if you want to set a full IListDataSource, use the Source property.
+ /// Sets the source of the to an .
///
- /// An item implementing the IList interface.
+ /// An object implementing the IList interface.
+ ///
+ /// Use the property to set a new source and use custome rendering.
+ ///
public void SetSource (IList source)
{
if (source == null)
@@ -134,9 +141,12 @@ namespace Terminal.Gui {
}
///
- /// Sets the source to an IList value asynchronously, if you want to set a full IListDataSource, use the Source property.
+ /// Sets the source to an value asynchronously.
///
/// An item implementing the IList interface.
+ ///
+ /// Use the property to set a new source and use custome rendering.
+ ///
public Task SetSourceAsync (IList source)
{
return Task.Factory.StartNew (() => {
@@ -150,14 +160,13 @@ namespace Terminal.Gui {
bool allowsMarking;
///
- /// Gets or sets a value indicating whether this allows items to be marked.
+ /// Gets or sets whether this allows items to be marked.
///
/// true if allows marking elements of the list; otherwise, false .
///
///
- /// If set to true, this will default to rendering the marked with "[x]", and unmarked valued with "[ ]"
- /// spaces. If you desire a different rendering, you need to implement your own renderer. This will
- /// also by default process the space character as a toggle for the selection.
+ /// If set to true, will render items marked items with "[x]", and unmarked items with "[ ]"
+ /// spaces. SPACE key will toggle marking.
///
public bool AllowsMarking {
get => allowsMarking;
@@ -173,7 +182,7 @@ namespace Terminal.Gui {
public bool AllowsMultipleSelection { get; set; } = true;
///
- /// Gets or sets the item that is displayed at the top of the listview
+ /// Gets or sets the item that is displayed at the top of the .
///
/// The top item.
public int TopItem {
@@ -190,7 +199,7 @@ namespace Terminal.Gui {
}
///
- /// Gets or sets the currently selected item.
+ /// Gets or sets the index of the currently selected item.
///
/// The selected item.
public int SelectedItem {
@@ -215,17 +224,20 @@ namespace Terminal.Gui {
}
///
- /// Initializes a new ListView that will display the contents of the object implementing the IList interface, with relative positioning
+ /// Initializes a new instance of that will display the contents of the object implementing the interface,
+ /// with relative positioning.
///
- /// An IList data source, if the elements of the IList are strings or ustrings, the string is rendered, otherwise the ToString() method is invoked on the result.
+ /// An data source, if the elements are strings or ustrings, the string is rendered, otherwise the ToString() method is invoked on the result.
public ListView (IList source) : this (MakeWrapper (source))
{
}
///
- /// Initializes a new ListView that will display the provided data source, uses relative positioning.
+ /// Initializes a new instance of that will display the provided data source, using relative positioning.
///
- /// IListDataSource object that provides a mechanism to render the data. The number of elements on the collection should not change, if you must change, set the "Source" property to reset the internal settings of the ListView.
+ /// object that provides a mechanism to render the data.
+ /// The number of elements on the collection should not change, if you must change, set
+ /// the "Source" property to reset the internal settings of the ListView.
public ListView (IListDataSource source) : base ()
{
Source = source;
@@ -233,14 +245,14 @@ namespace Terminal.Gui {
}
///
- /// Initializes a new instance of the class. You must set the Source property for this to show something.
+ /// Initializes a new instance of . Set the property to display something.
///
public ListView () : base ()
{
}
///
- /// Initializes a new ListView that will display the contents of the object implementing the IList interface with an absolute position.
+ /// Initializes a new instance of that will display the contents of the object implementing the interface with an absolute position.
///
/// Frame for the listview.
/// An IList data source, if the elements of the IList are strings or ustrings, the string is rendered, otherwise the ToString() method is invoked on the result.
@@ -249,7 +261,7 @@ namespace Terminal.Gui {
}
///
- /// Initializes a new ListView that will display the provided data source with an absolute position
+ /// Initializes a new instance of with the provided data source and an absolute position
///
/// Frame for the listview.
/// IListDataSource object that provides a mechanism to render the data. The number of elements on the collection should not change, if you must change, set the "Source" property to reset the internal settings of the ListView.
@@ -259,10 +271,7 @@ namespace Terminal.Gui {
CanFocus = true;
}
- ///
- /// Redraws the ListView
- ///
- /// Region.
+ ///
public override void Redraw (Rect region)
{
var current = ColorScheme.Focus;
@@ -296,20 +305,16 @@ namespace Terminal.Gui {
}
///
- /// This event is raised when the cursor selection has changed.
+ /// This event is raised when the selected item in the has changed.
///
public event EventHandler SelectedChanged;
///
- /// This event is raised on Enter key or Double Click to open the selected item.
+ /// This event is raised when the user Double Clicks on an item or presses ENTER to open the selected item.
///
public event EventHandler OpenSelectedItem;
- ///
- /// Handles cursor movement for this view, passes all other events.
- ///
- /// true , if key was processed, false otherwise.
- /// Keyboard event.
+ ///
public override bool ProcessKey (KeyEvent kb)
{
if (source == null)
@@ -380,7 +385,7 @@ namespace Terminal.Gui {
}
///
- /// Moves to the next page.
+ /// Moves the selected item index to the next page.
///
///
public virtual bool MovePageUp ()
@@ -399,7 +404,7 @@ namespace Terminal.Gui {
}
///
- /// Moves to the previous page.
+ /// Moves the selected item index to the previous page.
///
///
public virtual bool MovePageDown ()
@@ -421,7 +426,7 @@ namespace Terminal.Gui {
}
///
- /// Moves to the next row.
+ /// Moves the selected item index to the next row.
///
///
public virtual bool MoveDown ()
@@ -438,7 +443,7 @@ namespace Terminal.Gui {
}
///
- /// Moves to the previous row.
+ /// Moves the selected item index to the previous row.
///
///
public virtual bool MoveUp ()
@@ -484,9 +489,7 @@ namespace Terminal.Gui {
return true;
}
- ///
- /// Positions the cursor in this view
- ///
+ ///
public override void PositionCursor ()
{
if (allowsMarking)
@@ -534,16 +537,16 @@ namespace Terminal.Gui {
}
///
- /// This class is the built-in IListDataSource that renders arbitrary
- /// IList instances
+ /// Implements an that renders arbitrary instances for .
///
+ /// Implements support for rendering marked items.
public class ListWrapper : IListDataSource {
IList src;
BitArray marks;
int count;
///
- /// Constructor based on a source.
+ /// Initializes a new instance of given an
///
///
public ListWrapper (IList source)
@@ -554,7 +557,7 @@ namespace Terminal.Gui {
}
///
- /// Returns the amount of items in the source.
+ /// Gets the number of items in the .
///
public int Count => src.Count;
@@ -577,7 +580,7 @@ namespace Terminal.Gui {
}
///
- /// Method that render to the appropriate type based on the type of the item passed to it.
+ /// Renders a item to the appropriate type.
///
/// The ListView.
/// The driver used by the caller.
@@ -632,23 +635,23 @@ namespace Terminal.Gui {
}
///
- /// Gets the item and value to use in an event handler.
+ /// for events.
///
public class ListViewItemEventArgs : EventArgs {
///
- /// The item.
+ /// The index of the item.
///
public int Item { get; }
///
- /// The item value.
+ /// The the item.
///
public object Value { get; }
///
- /// Constructor to sets the item and value passed from.
+ /// Initializes a new instance of
///
- /// The item.
- /// The item value
+ /// The index of the the item.
+ /// The item
public ListViewItemEventArgs (int item, object value)
{
Item = item;
diff --git a/Terminal.Gui/Views/Menu.cs b/Terminal.Gui/Views/Menu.cs
index d6438a8a4..0a920a8ed 100644
--- a/Terminal.Gui/Views/Menu.cs
+++ b/Terminal.Gui/Views/Menu.cs
@@ -17,12 +17,12 @@ using System.Reflection;
namespace Terminal.Gui {
///
- /// A menu item has a title, an associated help text, and an action to execute on activation.
+ /// A has a title, an associated help text, and an action to execute on activation.
///
public class MenuItem {
///
- /// constructor
+ /// Initializes a new instance of
///
public MenuItem ()
{
@@ -31,7 +31,7 @@ namespace Terminal.Gui {
}
///
- /// Initializes a new .
+ /// Initializes a new instance of .
///
/// Title for the menu item.
/// Help text to display.
@@ -58,7 +58,7 @@ namespace Terminal.Gui {
}
///
- /// Initializes a new .
+ /// Initializes a new instance of
///
/// Title for the menu item.
/// The menu sub-menu.
@@ -68,11 +68,8 @@ namespace Terminal.Gui {
IsFromSubMenu = true;
}
- //
- //
-
///
- /// The hotkey is used when the menu is active, the shortcut can be triggered when the menu is not active.
+ /// The HotKey is used when the menu is active, the shortcut can be triggered when the menu is not active.
/// For example HotKey would be "N" when the File Menu is open (assuming there is a "_New" entry
/// if the ShortCut is set to "Control-N", this would be a global hotkey that would trigger as well
///
@@ -84,7 +81,7 @@ namespace Terminal.Gui {
public Key ShortCut;
///
- /// Gets or sets the title.
+ /// Gets or sets the title.
///
/// The title.
public ustring Title { get; set; }
@@ -118,7 +115,7 @@ namespace Terminal.Gui {
internal int Width => Title.Length + Help.Length + 1 + 2;
///
- /// Gets or sets the parent for this MenuBarItem
+ /// Gets or sets the parent for this
///
/// The parent.
internal MenuBarItem SubMenu { get; set; }
@@ -142,11 +139,11 @@ namespace Terminal.Gui {
}
///
- /// A menu bar item contains other menu items.
+ /// A contains s or s.
///
public class MenuBarItem : MenuItem {
///
- /// Initializes a new as a .
+ /// Initializes a new as a .
///
/// Title for the menu item.
/// Help text to display.
@@ -159,7 +156,7 @@ namespace Terminal.Gui {
}
///
- /// Initializes a new .
+ /// Initializes a new .
///
/// Title for the menu item.
/// The items in the current menu.
@@ -170,7 +167,7 @@ namespace Terminal.Gui {
}
///
- /// Initializes a new .
+ /// Initializes a new .
///
/// The items in the current menu.
public MenuBarItem (MenuItem [] children) : this (new string (' ', GetMaxTitleLength (children)), children)
@@ -217,7 +214,7 @@ namespace Terminal.Gui {
//public ustring Title { get; set; }
///
- /// Gets or sets the children for this MenuBarItem
+ /// Gets or sets an array of objects that are the children of this
///
/// The children.
public MenuItem [] Children { get; set; }
@@ -524,11 +521,19 @@ namespace Terminal.Gui {
///
- /// A menu bar for your application.
+ /// The MenuBar provides a menu for Terminal.Gui applications.
///
+ ///
+ ///
+ /// The appears on the first row of the terminal.
+ ///
+ ///
+ /// The provides global hotkeys for the application.
+ ///
+ ///
public class MenuBar : View {
///
- /// The menus that were defined when the menubar was created. This can be updated if the menu is not currently visible.
+ /// Gets or sets the array of s for the menu. Only set this when the is vislble.
///
/// The menu array.
public MenuBarItem [] Menus { get; set; }
@@ -543,9 +548,9 @@ namespace Terminal.Gui {
public bool UseKeysUpDownAsKeysLeftRight { get; set; } = true;
///
- /// Initializes a new instance of the class with the specified set of toplevel menu items.
+ /// Initializes a new instance of the class with the specified set of toplevel menu items.
///
- /// Individual menu items, if one of those contains a null, then a separator is drawn.
+ /// Individual menu items; a null item will result in a separator being drawn.
public MenuBar (MenuBarItem [] menus) : base ()
{
X = 0;
diff --git a/Terminal.Gui/Views/ProgressBar.cs b/Terminal.Gui/Views/ProgressBar.cs
index efe41d2ca..d0fb4feac 100644
--- a/Terminal.Gui/Views/ProgressBar.cs
+++ b/Terminal.Gui/Views/ProgressBar.cs
@@ -2,17 +2,16 @@
namespace Terminal.Gui {
///
- /// Progress bar can indicate progress of an activity visually.
+ /// A Progress Bar view that can indicate progress of an activity visually.
///
///
///
- /// The progressbar can operate in two modes, percentage mode, or
+ /// can operate in two modes, percentage mode, or
/// activity mode. The progress bar starts in percentage mode and
/// setting the Fraction property will reflect on the UI the progress
/// made so far. Activity mode is used when the application has no
- /// way of knowing how much time is left, and is started when you invoke
- /// the Pulse() method. You should call the Pulse method repeatedly as
- /// your application makes progress.
+ /// way of knowing how much time is left, and is started when the method is called.
+ /// Call repeatedly as progress is made.
///
///
public class ProgressBar : View {
@@ -20,7 +19,7 @@ namespace Terminal.Gui {
int activityPos, delta;
///
- /// Initializes a new instance of the class, starts in percentage mode with an absolute position and size.
+ /// Initializes a new instance of the class, starts in percentage mode with an absolute position and size.
///
/// Rect.
public ProgressBar (Rect rect) : base (rect)
@@ -30,7 +29,7 @@ namespace Terminal.Gui {
}
///
- /// Initializes a new instance of the class, starts in percentage mode and uses relative layout.
+ /// Initializes a new instance of the class, starts in percentage mode and uses relative layout.
///
public ProgressBar () : base ()
{
@@ -41,7 +40,7 @@ namespace Terminal.Gui {
float fraction;
///
- /// Gets or sets the progress indicator fraction to display, must be a value between 0 and 1.
+ /// Gets or sets the fraction to display, must be a value between 0 and 1.
///
/// The fraction representing the progress.
public float Fraction {
@@ -54,10 +53,10 @@ namespace Terminal.Gui {
}
///
- /// Notifies the progress bar that some progress has taken place.
+ /// Notifies the that some progress has taken place.
///
///
- /// If the ProgressBar is is percentage mode, it switches to activity
+ /// If the is is percentage mode, it switches to activity
/// mode. If is in activity mode, the marker is moved.
///
public void Pulse ()
@@ -80,6 +79,7 @@ namespace Terminal.Gui {
SetNeedsDisplay ();
}
+ ///
public override void Redraw(Rect region)
{
Driver.SetAttribute (ColorScheme.Normal);
diff --git a/Terminal.Gui/Views/RadioGroup.cs b/Terminal.Gui/Views/RadioGroup.cs
index f28496c92..431e11d3f 100644
--- a/Terminal.Gui/Views/RadioGroup.cs
+++ b/Terminal.Gui/Views/RadioGroup.cs
@@ -1,19 +1,19 @@
using System;
namespace Terminal.Gui {
///
- /// Radio group shows a group of labels, only one of those can be selected at a given time
+ /// shows a group of radio labels, only one of those can be selected at a given time
///
public class RadioGroup : View {
int selected, cursor;
///
- /// Initializes a new instance of the class
+ /// Initializes a new instance of the class
/// setting up the initial set of radio labels and the item that should be selected and uses
/// an absolute layout for the result.
///
/// Boundaries for the radio group.
- /// Radio labels, the strings can contain hotkeys using an undermine before the letter.
- /// The item to be selected, the value is clamped to the number of items.
+ /// The radio labels; an array of strings that can contain hotkeys using an underscore before the letter.
+ /// The index of item to be selected, the value is clamped to the number of items.
public RadioGroup (Rect rect, string [] radioLabels, int selected = 0) : base (rect)
{
this.selected = selected;
@@ -22,7 +22,7 @@ namespace Terminal.Gui {
}
///
- /// The location of the cursor in the radio group
+ /// The location of the cursor in the
///
public int Cursor {
get => cursor;
@@ -35,11 +35,11 @@ namespace Terminal.Gui {
}
///
- /// Initializes a new instance of the class
+ /// Initializes a new instance of the class
/// setting up the initial set of radio labels and the item that should be selected.
///
- /// Radio labels, the strings can contain hotkeys using an undermine before the letter.
- /// The item to be selected, the value is clamped to the number of items.
+ /// The radio labels; an array of strings that can contain hotkeys using an underscore before the letter.
+ /// The index of the item to be selected, the value is clamped to the number of items.
public RadioGroup (string [] radioLabels, int selected = 0) : base ()
{
SetWidthHeight(radioLabels);
@@ -64,14 +64,15 @@ namespace Terminal.Gui {
width = Math.Max (s.Length + 4, width);
return new Rect (x, y, width, radioLabels.Length);
}
+
///
- /// Initializes a new instance of the class
- /// setting up the initial set of radio labels and the item that should be selected,
- /// the view frame is computed from the provided radioLabels.
+ /// Initializes a new instance of the class
+ /// setting up the initial set of radio labels and the item that should be selected.
+ /// The frame is computed from the provided radio labels.
///
/// The x coordinate.
/// The y coordinate.
- /// Radio labels, the strings can contain hotkeys using an undermine before the letter.
+ /// The radio labels; an array of strings that can contain hotkeys using an underscore before the letter.
/// The item to be selected, the value is clamped to the number of items.
public RadioGroup (int x, int y, string [] radioLabels, int selected = 0) : this (MakeRect (x, y, radioLabels), radioLabels, selected)
{
@@ -106,6 +107,7 @@ namespace Terminal.Gui {
}
}
+ ///
public override void Redraw (Rect region)
{
base.Redraw (region);
@@ -117,11 +119,13 @@ namespace Terminal.Gui {
}
}
+ ///
public override void PositionCursor ()
{
Move (1, cursor);
}
+ ///
public Action SelectionChanged;
///
@@ -137,6 +141,7 @@ namespace Terminal.Gui {
}
}
+ ///
public override bool ProcessColdKey (KeyEvent kb)
{
var key = kb.KeyValue;
@@ -165,6 +170,7 @@ namespace Terminal.Gui {
return false;
}
+ ///
public override bool ProcessKey (KeyEvent kb)
{
switch (kb.Key) {
@@ -189,6 +195,7 @@ namespace Terminal.Gui {
return base.ProcessKey (kb);
}
+ ///
public override bool MouseEvent (MouseEvent me)
{
if (!me.Flags.HasFlag (MouseFlags.Button1Clicked))
diff --git a/Terminal.Gui/Views/ScrollView.cs b/Terminal.Gui/Views/ScrollView.cs
index e67f43eed..502bb0a9f 100644
--- a/Terminal.Gui/Views/ScrollView.cs
+++ b/Terminal.Gui/Views/ScrollView.cs
@@ -70,7 +70,7 @@ namespace Terminal.Gui {
}
///
- /// Initializes a new instance of the class.
+ /// Initializes a new instance of the class.
///
/// Frame for the scrollbar.
/// The size that this scrollbar represents.
@@ -518,6 +518,7 @@ namespace Terminal.Gui {
return false;
}
+ ///
public override bool MouseEvent (MouseEvent me)
{
if (me.Flags != MouseFlags.WheeledDown && me.Flags != MouseFlags.WheeledUp)
diff --git a/Terminal.Gui/Views/StatusBar.cs b/Terminal.Gui/Views/StatusBar.cs
index 789781815..05a1883a4 100644
--- a/Terminal.Gui/Views/StatusBar.cs
+++ b/Terminal.Gui/Views/StatusBar.cs
@@ -11,18 +11,21 @@ using NStack;
namespace Terminal.Gui {
///
- /// A statusbar item has a title, a shortcut aka hotkey, and an action to execute on activation.
- /// Such an item is ment to be as part of the global hotkeys of the application, which are available in the current context of the screen.
- /// The colour of the text will be changed after each ~. Having an statusbar item with a text of `~F1~ Help` will draw *F1* as shortcut and
- /// *Help* as standard text.
+ /// objects are contained by s.
+ /// Each has a title, a shortcut (hotkey), and an that will be invoked when the
+ /// is pressed.
+ /// The will be a global hotkey for the application in the current context of the screen.
+ /// The colour of the will be changed after each ~.
+ /// A set to `~F1~ Help` will render as *F1* using and
+ /// *Help* as .
///
public class StatusItem {
///
- /// Initializes a new .
+ /// Initializes a new .
///
- /// Shortcut to activate the item.
- /// Title for the statusbar item.
- /// Action to invoke when the staturbar item is activated.
+ /// Shortcut to activate the .
+ /// Title for the .
+ /// Action to invoke when the is activated.
public StatusItem (Key shortcut, ustring title, Action action)
{
Title = title ?? "";
@@ -31,7 +34,7 @@ namespace Terminal.Gui {
}
///
- /// This is the global setting that can be used as a global shortcut to invoke the action on the menu.
+ /// Gets the global shortcut to invoke the action on the menu.
///
public Key Shortcut { get; }
@@ -39,25 +42,30 @@ namespace Terminal.Gui {
/// Gets or sets the title.
///
/// The title.
+ ///
+ /// The colour of the will be changed after each ~.
+ /// A set to `~F1~ Help` will render as *F1* using and
+ /// *Help* as .
+ ///
public ustring Title { get; }
///
/// Gets or sets the action to be invoked when the statusbar item is triggered
///
- /// Method to invoke.
+ /// Action to invoke.
public Action Action { get; }
};
///
- /// A statusbar for your application.
- /// The statusbar should be context sensitive. This means, if the main menu and an open text editor are visible, the items probably shown will
+ /// A status bar is a that snaps to the bottom of a displaying set of s.
+ /// The should be context sensitive. This means, if the main menu and an open text editor are visible, the items probably shown will
/// be ~F1~ Help ~F2~ Save ~F3~ Load. While a dialog to ask a file to load is executed, the remaining commands will probably be ~F1~ Help.
/// So for each context must be a new instance of a statusbar.
///
public class StatusBar : View {
-// After attempting to implement this, I noticed that there are hard dependencies
-// on StatusBar and MenuBars within core. They will need to be refactored for having the
-// StatusBar work at the top
+ // After attempting to implement this, I noticed that there are hard dependencies
+ // on StatusBar and MenuBars within core. They will need to be refactored for having the
+ // StatusBar work at the top
#if SNAP_TO_TOP
///
/// The style supported by StatusBar
@@ -86,18 +94,18 @@ namespace Terminal.Gui {
public StatusBarStyle Style { get; set; } = StatusBarStyle.Default;
#endif
///
- /// The parent view of the StatusBar.
+ /// The parent view of the .
///
public View Parent { get; set; }
///
- /// The items that compose the StatusBar
+ /// The items that compose the
///
public StatusItem [] Items { get; set; }
///
- /// Initializes a new instance of the class with the specified set of statusbar items.
- /// It will be drawn in the lowest line of the terminal.
+ /// Initializes a new instance of the class with the specified set of s.
+ /// The will be drawn on the lowest line of the terminal or (if not null).
///
/// A list of statusbar items.
public StatusBar (StatusItem [] items) : base ()
diff --git a/Terminal.Gui/Views/TextField.cs b/Terminal.Gui/Views/TextField.cs
index 71a53ccd7..33adf50fc 100644
--- a/Terminal.Gui/Views/TextField.cs
+++ b/Terminal.Gui/Views/TextField.cs
@@ -12,11 +12,10 @@ using NStack;
namespace Terminal.Gui {
///
- /// Text data entry widget
+ /// Single-line text entry
///
///
- /// The Entry widget provides Emacs-like editing
- /// functionality, and mouse support.
+ /// The provides editing functionality and mouse support.
///
public class TextField : View {
List text;
@@ -85,6 +84,7 @@ namespace Terminal.Gui {
WantMousePositionReports = true;
}
+ ///
public override bool OnLeave ()
{
if (Application.mouseGrabView != null && Application.mouseGrabView == this)
@@ -95,6 +95,7 @@ namespace Terminal.Gui {
return base.OnLeave ();
}
+ ///
public override Rect Frame {
get => base.Frame;
set {
@@ -110,7 +111,7 @@ namespace Terminal.Gui {
bool isFromHistory;
///
- /// Sets or gets the text in the entry.
+ /// Sets or gets the text held by the view.
///
///
///
@@ -180,6 +181,7 @@ namespace Terminal.Gui {
Move (col, 0);
}
+ ///
public override void Redraw (Rect region)
{
ColorScheme color = Colors.Menu;
@@ -193,7 +195,7 @@ namespace Terminal.Gui {
int width = Frame.Width;
var tcount = text.Count;
var roc = new Attribute (Color.DarkGray, Color.Gray);
- for (int idx = 0; idx < tcount; idx++){
+ for (int idx = 0; idx < tcount; idx++) {
var rune = text [idx];
if (idx < p)
continue;
@@ -251,6 +253,7 @@ namespace Terminal.Gui {
SetText (newText.ToList ());
}
+ ///
public override bool CanFocus {
get => true;
set { base.CanFocus = value; }
@@ -262,6 +265,24 @@ namespace Terminal.Gui {
Clipboard.Contents = ustring.Make (text.ToList ());
}
+ ///
+ /// Processes key presses for the .
+ ///
+ ///
+ ///
+ ///
+ /// The control responds to the following keys:
+ ///
+ ///
+ /// Keys
+ /// Function
+ ///
+ /// -
+ ///
,
+ /// Deletes the character before cursor.
+ ///
+ ///
+ ///
public override bool ProcessKey (KeyEvent kb)
{
// remember current cursor position
@@ -532,10 +553,10 @@ namespace Terminal.Gui {
return -1;
int i = p;
- if (Rune.IsPunctuation (text [p]) || Rune.IsWhiteSpace(text [p])) {
+ if (Rune.IsPunctuation (text [p]) || Rune.IsWhiteSpace (text [p])) {
for (; i < text.Count; i++) {
var r = text [i];
- if (Rune.IsLetterOrDigit(r))
+ if (Rune.IsLetterOrDigit (r))
break;
}
for (; i < text.Count; i++) {
@@ -565,7 +586,7 @@ namespace Terminal.Gui {
return 0;
var ti = text [i];
- if (Rune.IsPunctuation (ti) || Rune.IsSymbol(ti) || Rune.IsWhiteSpace(ti)) {
+ if (Rune.IsPunctuation (ti) || Rune.IsSymbol (ti) || Rune.IsWhiteSpace (ti)) {
for (; i >= 0; i--) {
if (Rune.IsLetterOrDigit (text [i]))
break;
@@ -606,6 +627,7 @@ namespace Terminal.Gui {
int start, length;
bool isButtonReleased = true;
+ ///
public override bool MouseEvent (MouseEvent ev)
{
if (!ev.Flags.HasFlag (MouseFlags.Button1Pressed) && !ev.Flags.HasFlag (MouseFlags.ReportMousePosition) &&
diff --git a/Terminal.Gui/Views/TextView.cs b/Terminal.Gui/Views/TextView.cs
index 738a6f35f..6c5baedac 100644
--- a/Terminal.Gui/Views/TextView.cs
+++ b/Terminal.Gui/Views/TextView.cs
@@ -169,11 +169,11 @@ namespace Terminal.Gui {
}
///
- /// Multi-line text editing view
+ /// Multi-line text editing
///
///
///
- /// The text view provides a multi-line text view. Users interact
+ /// provides a multi-line text editor. Users interact
/// with it with the standard Emacs commands for movement or the arrow
/// keys.
///
@@ -283,7 +283,7 @@ namespace Terminal.Gui {
//bool used;
///
- /// Raised when the Text of the TextView changes.
+ /// Raised when the of the changes.
///
public event EventHandler TextChanged;
@@ -298,7 +298,7 @@ namespace Terminal.Gui {
public event EventHandler Changed;
#endif
///
- /// Public constructor, creates a view on the specified area, with absolute position and size.
+ /// Initalizes a on the specified area, with absolute position and size.
///
///
///
@@ -308,7 +308,8 @@ namespace Terminal.Gui {
}
///
- /// Public constructor, creates a view on the specified area, with dimensions controlled with the X, Y, Width and Height properties.
+ /// Initalizes a on the specified area,
+ /// with dimensions controlled with the X, Y, Width and Height properties.
///
public TextView () : base ()
{
@@ -321,7 +322,7 @@ namespace Terminal.Gui {
}
///
- /// Sets or gets the text in the entry.
+ /// Sets or gets the text in the .
///
///
///
@@ -339,7 +340,7 @@ namespace Terminal.Gui {
}
///
- /// Loads the contents of the file into the TextView.
+ /// Loads the contents of the file into the .
///
/// true , if file was loaded, false otherwise.
/// Path to the file to load.
@@ -354,7 +355,7 @@ namespace Terminal.Gui {
}
///
- /// Loads the contents of the stream into the TextView.
+ /// Loads the contents of the stream into the .
///
/// true , if stream was loaded, false otherwise.
/// Stream to load the contents from.
@@ -368,7 +369,7 @@ namespace Terminal.Gui {
}
///
- /// Closes the contents of the stream into the TextView.
+ /// Closes the contents of the stream into the .
///
/// true , if stream was closed, false otherwise.
public bool CloseFile()
@@ -380,7 +381,7 @@ namespace Terminal.Gui {
}
///
- /// The current cursor row.
+ /// Gets the current cursor row.
///
public int CurrentRow => currentRow;
@@ -429,7 +430,7 @@ namespace Terminal.Gui {
bool isReadOnly = false;
///
- /// Indicates readonly attribute of TextView
+ /// Gets or sets whether the is in read-only mode or not
///
/// Boolean value(Default false)
public bool ReadOnly {
@@ -523,10 +524,7 @@ namespace Terminal.Gui {
SetNeedsDisplay ();
}
- ///
- /// Redraw the text editor region
- ///
- /// The region to redraw.
+ ///
public override void Redraw (Rect region)
{
ColorNormal ();
@@ -701,7 +699,7 @@ namespace Terminal.Gui {
}
///
- /// Will scroll the view to display the specified row at the top
+ /// Will scroll the to display the specified row at the top
///
/// Row that should be displayed at the top, if the value is negative it will be reset to zero
public void ScrollTo (int row)
diff --git a/Terminal.Gui/Views/TimeField.cs b/Terminal.Gui/Views/TimeField.cs
index 0afc74826..3d59e68b8 100644
--- a/Terminal.Gui/Views/TimeField.cs
+++ b/Terminal.Gui/Views/TimeField.cs
@@ -1,23 +1,20 @@
- //
+//
// TimeField.cs: text entry for time
//
// Author: Jörg Preiß
//
// Licensed under the MIT license
-//
using System;
using System.Globalization;
-using System.Collections.Generic;
using System.Linq;
using NStack;
namespace Terminal.Gui {
-
///
- /// Time edit widget
+ /// Time editing
///
///
- /// This widget provides time editing functionality, and mouse support.
+ /// The provides time editing functionality with mouse support.
///
public class TimeField : TextField {
bool isShort;
@@ -32,7 +29,7 @@ namespace Terminal.Gui {
///
- /// Public constructor that creates a time edit field at an absolute position and fixed size.
+ /// Initializes a new instance of at an absolute position and fixed size.
///
/// The x coordinate.
/// The y coordinate.
@@ -57,7 +54,7 @@ namespace Terminal.Gui {
}
///
- /// Gets or sets the time in the widget.
+ /// Gets or sets the time of the .
///
///
///
@@ -119,7 +116,7 @@ namespace Terminal.Gui {
Text = time;
if (!DateTime.TryParseExact (text.ToString (), Format, CultureInfo.CurrentCulture, DateTimeStyles.None, out DateTime result) ||
- !isValidTime)
+ !isValidTime)
return false;
return true;
}
@@ -146,6 +143,7 @@ namespace Terminal.Gui {
CursorPosition++;
}
+ ///
public override bool ProcessKey (KeyEvent kb)
{
switch (kb.Key) {
@@ -192,6 +190,7 @@ namespace Terminal.Gui {
return true;
}
+ ///
public override bool MouseEvent (MouseEvent ev)
{
if (!ev.Flags.HasFlag (MouseFlags.Button1Clicked))