Commit Graph

409 Commits

Author SHA1 Message Date
Charlie Kindel
999bcb82a6 minor typo 2020-05-21 22:32:01 +01:00
Charlie Kindel
72006582f9 updated README 2020-05-21 22:32:01 +01:00
Charlie Kindel
6f9569c9db updated README 2020-05-21 22:32:00 +01:00
BDisp
b72974dea2 Updating Scenarios to the changed ListView features. 2020-05-21 15:03:37 +01:00
BDisp
61e393d4af Added ListViewItemEventArgs, OnSelectedChanged, OnOpenSelectedItem and XML comments. 2020-05-21 15:03:37 +01:00
Charlie Kindel
2e247c78b0 UI catalog (#387)
* key down/up support

* line endings?

* line endings

* KeyDown/Up support

* line endings

* line endings

* Revert "Drop NuGet restore"

This reverts commit 5c7a0d05f0.

* Revert "Revert "Drop NuGet restore""

This reverts commit 2dc5fce865.

* updated demo

* defined styles

* Smarter StatusBar bottom tracking.

* Prepping for https://github.com/migueldeicaza/gui.cs/issues/376

* Oops.

* Fixed StatusBar 'snap to bottom'

* line endings

* Revert "Fixed StatusBar 'snap to bottom'"

This reverts commit 9a91c957e2.

* started UICatalog project

* Initial working POC.

* Fix newlines

* merge

* textalignment demo tweaks

* textalignment demo tweaks

* Unicode Menu Scenario

* not sure why this keeps changing

* re-added project to .sln file

* re-enabled status bar

* moved scenarios to dir

* building a dim and pos demo

* terminal.sln

* progress...barely

* fixed exit

* progress with some underlying fixes to Label

* added readme

* fixes build issue

* launch

* made default colors readable on Windows

* major UI Catalog upgrade

* added more demos and updated readme

* refactored and added more tests

* added ref to Issue #437

* added OnKeyUp support to Curses and Net drivers

* more tweaks - grab PR #438 first

* Added a OpenSelectedItem event to the ListView #429

* updates

* moved KeyUpHandler out of special ESC stuff

* more tweaks & improvements

* testing top window bug

* supported OpenSelectedItem

* lots of updates

* fixed regression, fixed #444

* better button scenario

* tweaks

* add Ready event to Toplevel

* dotfx .gitignroe

* ready for ready

* updated colors based on feedback; consolodated config code

* tweaked readme

* readme

* Added Editor demonstrating TextView

* Added Editor demonstrating TextView

* added hexeditor scenario

Co-authored-by: Miguel de Icaza <miguel@gnome.org>
Co-authored-by: BDisp <bd.bdisp@gmail.com>
2020-05-21 15:03:36 +01:00
BDisp
aa73368c85 Added wheeling feature to the ListView. 2020-05-21 15:00:53 +01:00
BDisp
7cf5ba062b Only invoke SelectionChanged if the selected item is different than the last selected item. 2020-05-21 15:00:53 +01:00
BDisp
d54f620ba6 Added ListViewItemEventArgs, OnSelectedChanged, OnOpenSelectedItem and XML comments. 2020-05-21 15:00:52 +01:00
BDisp
267c2d1090 Added ToList method to the interface IListDataSource to return the source as IList. 2020-05-21 14:58:40 +01:00
Charlie Kindel
3fdd914a6b Merge pull request #477 from tig/remove_githubaction
Disable github dotnetcore action
2020-05-20 21:21:49 -06:00
Charlie Kindel
af6273a8cb commented yml until we resolve netstandard2.1 build debate 2020-05-20 21:19:08 -06:00
Charlie Kindel
d02880c615 Shows of ProgressBar 2020-05-20 21:16:03 -06:00
Charlie Kindel
348aa08c06 Shows of ProgressBar 2020-05-20 21:14:23 -06:00
Charlie Kindel
267ba58f91 Linked to Issue #246 2020-05-20 20:51:40 -06:00
Charlie Kindel
fd9c793165 Demos TimeField - and proves it's not ready for use 2020-05-20 20:51:40 -06:00
Charlie Kindel
f29b98e9ba Merge pull request #466 from tig/fix_ui_catalog
Fix ui catalog to not launch hexeditor
2020-05-20 16:35:55 -06:00
Charlie Kindel
79293ff90a fix launch settings to not launch a scenario 2020-05-20 16:24:35 -06:00
Charlie Kindel
faaf89e20f Merge branch 'master' of tig:migueldeicaza/gui.cs 2020-05-20 12:16:44 -06:00
Charlie Kindel
b3b82dc79c Make Windows default colors readable - Fixes #427 (#428)
* made default colors readable on Windows

* updated colors based on feedback; consolodated config code
2020-05-20 13:39:50 -04:00
Charlie Kindel
5b845307a2 UI catalog (#387)
* key down/up support

* line endings?

* line endings

* KeyDown/Up support

* line endings

* line endings

* Revert "Drop NuGet restore"

This reverts commit 5c7a0d05f0.

* Revert "Revert "Drop NuGet restore""

This reverts commit 2dc5fce865.

* updated demo

* defined styles

* Smarter StatusBar bottom tracking.

* Prepping for https://github.com/migueldeicaza/gui.cs/issues/376

* Oops.

* Fixed StatusBar 'snap to bottom'

* line endings

* Revert "Fixed StatusBar 'snap to bottom'"

This reverts commit 9a91c957e2.

* started UICatalog project

* Initial working POC.

* Fix newlines

* merge

* textalignment demo tweaks

* textalignment demo tweaks

* Unicode Menu Scenario

* not sure why this keeps changing

* re-added project to .sln file

* re-enabled status bar

* moved scenarios to dir

* building a dim and pos demo

* terminal.sln

* progress...barely

* fixed exit

* progress with some underlying fixes to Label

* added readme

* fixes build issue

* launch

* made default colors readable on Windows

* major UI Catalog upgrade

* added more demos and updated readme

* refactored and added more tests

* added ref to Issue #437

* added OnKeyUp support to Curses and Net drivers

* more tweaks - grab PR #438 first

* Added a OpenSelectedItem event to the ListView #429

* updates

* moved KeyUpHandler out of special ESC stuff

* more tweaks & improvements

* testing top window bug

* supported OpenSelectedItem

* lots of updates

* fixed regression, fixed #444

* better button scenario

* tweaks

* add Ready event to Toplevel

* dotfx .gitignroe

* ready for ready

* updated colors based on feedback; consolodated config code

* tweaked readme

* readme

* Added Editor demonstrating TextView

* Added Editor demonstrating TextView

* added hexeditor scenario

Co-authored-by: Miguel de Icaza <miguel@gnome.org>
Co-authored-by: BDisp <bd.bdisp@gmail.com>
2020-05-20 13:37:12 -04:00
BDisp
658e023904 Forces conversion to long date format even if CultureInfo.CurrentCulture doesn't have it. (#431) 2020-05-20 13:36:41 -04:00
BDisp
88d6047c74 Prevents mouse all events, which perform any of the mouse events, to be invoked if mouseEvent.ButtonState == 0 && mouseEvent.EventFlags == 0. (#453)
* Prevents mouse all events, which perform any of the mouse events, to be invoked if mouseEvent.ButtonState == 0 && mouseEvent.EventFlags == 0.

* Prevents another View under the menu from being triggered after the button is pressed in the menu.
2020-05-20 13:36:27 -04:00
BDisp
e3acbf2d90 Updates screen on Unix window resizing. (#419)
* Updates screen on Unix window resizing.
2020-05-20 13:32:18 -04:00
Charlie Kindel
921a6a6170 Add Toplevel.Ready event (#446)
* add Ready event to Toplevel
2020-05-20 13:27:48 -04:00
Charlie Kindel
a5a1ecbd8e Fixes All Warnings (#450)
* Revert "Drop NuGet restore"

This reverts commit 5c7a0d05f0.

* Revert "Revert "Drop NuGet restore""

This reverts commit 2dc5fce865.

* terminal.sln

* there. That wasn't so hard

* fixed some cases where <inheritdoc/> should have been used

* fixed some cases where <inheritdoc/> should have been used
2020-05-20 13:26:56 -04:00
Charlie Kindel
97c6181567 Seeing how github actions will work 2020-05-19 20:08:01 -06:00
Charlie Kindel
dccad92f0b Merge branch 'master' of tig:migueldeicaza/gui.cs 2020-05-15 21:56:01 -06:00
BDisp
e6c5b2599a Improved a better clipped screen. Fixes some bugs with ScrollView, Menu. Added some virtual methods. (#410)
* Improved a better clipped screen. Fixes some bugs with ScrollView, Menu. Added some virtual methods.

* Added some more key features, like shift. Cleaning and updating some stuffs .Added more features to TextField.

* Closes the menu even in a button pressed in another view than menu.

* Added a OnKeyPress action. Now all the keys events are properly mapped to the keys modifiers. Fixed a issue which keys like (ã, á, â) aren't correctly written.

* Fixed an issue with the shift flag for keys ControlA_Z.

* Ensures quiting the terminal if no other option is provided by pressing Ctrl-Q

* Ensures the exception is thrown before ordered.Reverse.

* Changed Button4 To Button3 for CursesDriver compatibility.

* Added support for word selection through keyboard and the mouse. With triple click all text is selected.

* Changed AllowNewLine to AllowWrap.

* Fix topological sort in view class (#413)

* AllowWrap removed and keys issues fixed.

* Removing ordered.Reverse (); Something went wrong.

* Fixes FrameView title.

* Reverted some MapKeyModifiers that prevented the display of some characters.

* Avoiding open the menu-bar every time we typing (€@£§). Alt key now only highlight the menu-bar without open it.

* Fixes hot-key issue preventing menu closing after opened.

* Curses now supports hot-keys and simulates AltMask with Alt+Space.  Also supports shift and ctrl combinations to use with text selection.

* Maintains the menu highlighted while focused.

* Removed the IsOutBounds method. This feature is for a future presentation.

Co-authored-by: En3Tho <37334640+En3Tho@users.noreply.github.com>
2020-05-13 12:28:35 -04:00
Charlie Kindel
2b82aac8e6 Merge branch 'master' of tig:tig/gui.cs 2020-05-12 10:45:03 -06:00
Charlie Kindel
8006fa357e Merge branch 'master' of tig:migueldeicaza/gui.cs 2020-05-12 10:39:38 -06:00
En3Tho
1e2d6c5d87 Fix topological sort in view class (#413) 2020-05-08 08:40:14 -04:00
Charlie Kindel
917f02a124 Merge branch 'master' of tig:migueldeicaza/gui.cs 2020-04-29 10:46:22 -06:00
Charlie Kindel
8b26240741 Adds a better keyup/keydown demo to demo.cs (#395)
* Revert "Drop NuGet restore"

This reverts commit 5c7a0d05f0.

* Revert "Revert "Drop NuGet restore""

This reverts commit 2dc5fce865.

* merge

* better keyup/down demo
2020-04-29 11:09:34 -04:00
Charlie Kindel
427cf4784b Text alignment (#397)
* not sure why this keeps changing

* enhanced Show Text Alignments demo to better illustrate bugs in TextAlignment.Justified
2020-04-29 11:09:10 -04:00
BDisp
42fe890072 Fsharp example updated with the Demo version. (#407)
* Added solution file to the FSharpExample project.

* Updated Terminal.Gui and FSharp.Core nuget packages

* Removed the Terminal.Gui nuget package and added the project itself.

* Added a new FrameView constructor with an array of views.

* Changed FSharp Example with the Example Demo file version.

* Fixes the Box10x() issue.
2020-04-29 11:08:42 -04:00
BDisp
c310716fcd Faster handling of the mouse in ScrollView with the addition of an uninterrupted click on the mouse features. Changed the Wakeup method to reset the events to update the screen. (#409) 2020-04-29 11:08:25 -04:00
BDisp
a9e62c0626 Improves mouse performance #386. Provides a better async call. Ensures all the cycles of a simple click (Pressed, Released and Clicked). Only clears selected text if other view than MenuBar get focus. (#404) 2020-04-22 21:55:35 -04:00
Miguel de Icaza
2ea8777227 Merge pull request #402 from BDisp/textfield-copy-cut-paste-in-menu
Fixes the functions of the Edit->Copy-Cut-Paste menu for the TextField that was not working well.
2020-04-21 10:45:02 -04:00
BDisp
07a92f989e Clear the TextField selected text when loses focus. 2020-04-20 22:25:45 +01:00
BDisp
e66c391aeb Fixes the functions of the Edit->Copy-Cut-Paste menu for the TextField that was not working well. 2020-04-20 22:13:45 +01:00
Charlie Kindel
5df8500862 Status bar snap (#384)
* KeyDown/Up support

* updated demo

* defined styles

* Smarter StatusBar bottom tracking.

* Prepping for https://github.com/migueldeicaza/gui.cs/issues/376

* Fixed StatusBar 'snap to bottom'
2020-04-20 16:08:34 -04:00
BDisp
ab91de5041 Fixes an issue in the sln file that despite not having been changed, git reports as changed. (#393)
* Fixes an issue in the sln file that despite not having been changed, git reports as changed.

* Adding some settings for crlf and user specific.
2020-04-20 16:07:29 -04:00
BDisp
8a6c2a9fc1 Mouse events menu (#401)
* Fixes an issue in the sln file that despite not having been changed, git reports as changed.

* Adding some settings for crlf and user specific.

* Prevent button clicked event if the point of the pressed and released don't match. Also decreases the delay for the triple click.

* Changes the menu button clicked event to button pressed to improve mouse clicks.

* Removed the action that was running all the time after the first running.
2020-04-20 15:26:32 -04:00
BDisp
4522097c02 Forces the height of the TextField to 1 which is just the valid height instead of driver rows value. (#400)
* Forces the height of the TextField to 1 which is just the valid height instead of driver rows value.

* Fixes an issue in the sln file that despite not having been changed, git reports as changed.
2020-04-20 15:26:05 -04:00
Charlie Kindel
f41275fad3 terminal.sln 2020-04-19 13:03:01 -06:00
BDisp
6bdd02fff1 Pos and Dim should only be configured once for each change. Otherwise, a recursive loop occurs resulting in a stack overflow. For that, you have to use the OnLoad action and just use OnResized for other situations that are not always for the same definitions. (#392) 2020-04-18 18:46:23 -04:00
BDisp
df5bc9f0b8 Fixed a moving window issue. Added OnLoad Action because there are settings that need to be accessed only once. (#375)
* Fixed a moving window issue. Added OnLoad Action because there are settings that need to be accessed only once.

* Fixes a layout issue that does not updated the Pos outside the bounds.

* Fixes a issue with other top-levels.

Co-authored-by: Miguel de Icaza <miguel@gnome.org>
2020-04-18 13:37:50 -04:00
Miguel de Icaza
f44e4a86dc Bring patch from Charlie Kindle without the newline changes #381 from https://github.com/migueldeicaza/gui.cs/pull/381/files (#391)
From @tig - Fixed #380 -F9 should close menu as well as open it #381
2020-04-18 13:36:58 -04:00
Charlie Kindel
c7ce619092 MenuItems on MenuBar (#388)
This PR enhances MenuBar with the ability to have top-level (on the MenuBar itself), clickable, actionable, MenuItems.

Along the way it fixes a few MenuBar bugs and...

alt activates/closes the menu just like on Windows (alt and f9 work the same).
Cursor shows consistently across the MenuBar as the focus changes
Top-level menu items show accelerator keys.
demo.cs has been enhanced to include an example top-level menuitems. I also tested top-level menuitem as the first menu item as well as in the middle. I didn't want to over complicate demo.cs with tons of examples, FWIW.
2020-04-18 13:21:06 -04:00