Commit Graph

391 Commits

Author SHA1 Message Date
BDisp
f7e9ccc766 Added F11 and F12 keys #220. Changed keyDownHandler to before keyHandler. 2020-05-24 14:04:58 +01:00
Charlie Kindel
635f7fddcd Merge pull request #523 from tig/shutdown_cleanup
Shutdown cleanup
2020-05-23 20:34:36 -06:00
Charlie Kindel
f3bfa47c38 Merge branch 'master' into docs 2020-05-23 19:46:12 -06:00
Charlie Kindel
3fc96f2906 Merge pull request #525 from KDERazorback/master
Edge case handling and Quality-of-life improvements on Core, ListView and MenuBar
2020-05-23 19:45:45 -06:00
Charlie Kindel
f4b26fa245 Merge pull request #524 from BDisp/date-time-field-read-only
Patch to bypass a wrong invalid date with DateTime.
2020-05-23 19:40:24 -06:00
Charlie Kindel
78cd1bbd1e updated docs further, added UICatalog API, clean up 2020-05-23 19:39:15 -06:00
Fabian R
814821b933 Removed redundant properties on MenuBar View
-- Redundant members isMenuClosed and MenuOpen were replaced with a more consistent and intuitive single IsMenuOpen property.
- CloseMenu method is now Public.
- StartMenu has been renamed to OpenMenu and made Public.
+ Added missing XmlDoc to OpenMenu and CloseMenu, and fixed an small typo to MenuOpen/IsMenuOpen

This commit breaks compatibility with previous versions.

Changes required to host apps:

MenuBar.MenuOpen property renamed to IsMenuOpen
MenuBar.StartMenu method renamed to OpenMenu, use it to open the Menu
Use MenuBar.CloseMenu to close the active menu.
2020-05-23 20:22:11 -05:00
Fabian R
02dca40885 Merge remote-tracking branch 'upstream/master' 2020-05-23 19:14:27 -05:00
BDisp
fba59f6084 Patch to bypass a wrong invalid date with DateTime. 2020-05-24 00:44:55 +01:00
Fabian R
f2e5b08a88 + Added IsCurrentTop read-only property to Gui.Toplevel class to allow a more convenient checking if a view's instance is currently on top (active and displayed).
- Fixed an elusive crash that may occur in the Application.RunLoop method due to a null'ed Toplevel.NeedDisplay property. This issue appears to be caused by a race condition that may occur when switching Views (TopLevel) too fast. Extended to all other NeedDisplay checks too.
- ListView control now displays empty rows for Null items in its Items collection, instead of crashing with a NullReferenceException.
- Improved MenuBarItem constructor behaviour by performing an additional sanity check on the MenuItem[] children parameter to ensure its not null. If so, raise an ArgumentNullException. Using an empty array of type MenuItem for this parameter still displays an empty menu as intended.
2020-05-23 18:41:41 -05:00
Charlie Kindel
9d8d497d4e Merge pull request #512 from BDisp/date-time-field-read-only
Fixes some DateField and TimeField bugs.
2020-05-23 17:33:16 -06:00
Charlie Kindel
ccfcb38ede Merge pull request #513 from BDisp/text-alignment
Fixes Label text alignment.
2020-05-23 17:32:46 -06:00
Charlie Kindel
0fa2ccebc9 short term fix to #520 2020-05-23 17:30:43 -06:00
Charlie Kindel
e3e7c29014 Merge pull request #414 from fergusonr/feature/TextFieldAutoComplete
Feature/ComboBox
2020-05-23 13:40:29 -06:00
BDisp
ea0a2580ed Fixes #409 - Invoke does not cause Wakeup #501. 2020-05-23 20:03:17 +01:00
BDisp
771bc93141 Fixes Label text alignment. 2020-05-23 14:14:31 +01:00
BDisp
d6579b0b2e Fixes some DateField and TimeField bugs. 2020-05-23 13:14:09 +01:00
Ross Ferguson
bc51486236 List narrower than the edit when in Window
Add XML comments
2020-05-23 09:07:08 +01:00
Ross Ferguson
e84eb78150 Merge branch 'master' of https://github.com/migueldeicaza/gui.cs into feature/TextFieldAutoComplete 2020-05-23 07:57:37 +01:00
Charlie Kindel
585f249b1c Updated and fixed XML documentation 2020-05-23 00:24:14 -06:00
Charlie Kindel
ef24e756e0 updated docs for Dim and Pos 2020-05-22 20:01:02 -06:00
Charlie Kindel
c3ee01dc3e Fixed label and updated TextAlignment scenario 2020-05-22 18:15:33 -06:00
Ross Ferguson
b76dcac9c0 Differentiate list color from search 2020-05-23 00:21:30 +01:00
Ross Ferguson
c922017c4f *Merge* and fix build. (Rebase attempt was disaster) 2020-05-22 10:43:05 +01:00
Ross Ferguson
6228bffcbf Merge branch 'master' of https://github.com/migueldeicaza/gui.cs into feature/TextFieldAutoComplete 2020-05-22 10:28:48 +01:00
Ross Ferguson
f0199f6e61 Rename TextViewAutoComplete to ComboBox 2020-05-22 07:03:05 +01:00
Ross Ferguson
01c83e8983 Make sure view is at front when shown 2020-05-22 07:03:04 +01:00
Ross Ferguson
2f285f485a Detect if view is hosted inside a Dialog 2020-05-22 07:03:04 +01:00
Ross Ferguson
de21cfe8ed Remove code checked-in by error 2020-05-22 07:03:04 +01:00
Ross Ferguson
360e0256b8 TextFieldAutoComplete demo works cross-platform. Fix list clearing issue. 2020-05-22 07:03:03 +01:00
Ross Ferguson
282cf64500 AutoHide option. List and text view synced. 2020-05-22 07:03:03 +01:00
Ross Ferguson
9298ce19d1 Override OnEnter() Fix per BDisp's recomendation 2020-05-22 07:03:02 +01:00
Ross Ferguson
a5ae6f0176 Fix build 2020-05-22 07:03:02 +01:00
Ross Ferguson
1dc0cc6fac Use LayoutStyle.Computed. Add Text setter 2020-05-22 07:03:01 +01:00
Ross Ferguson
e04cbf2b97 Feature/TextFieldAutoComplete 2020-05-22 07:03:01 +01:00
Charlie Kindel
2c6349a853 added docs for KeyEventArgs to get rid of warnings 2020-05-21 20:43:47 -06:00
Charlie Kindel
86e0a7adb9 rebase 2020-05-21 20:01:01 -06:00
Charlie Kindel
d34dfc5d78 hmmph 2020-05-21 19:57:18 -06:00
Charlie Kindel
6f10a051d1 Merge branch 'master' of tig:migueldeicaza/gui.cs 2020-05-21 19:55:56 -06:00
Charlie Kindel
1fd7ac0819 Merge pull request #488 from BDisp/textfield-position-cursor
Textfield position cursor
2020-05-21 19:55:16 -06:00
Charlie Kindel
d70ad5deac Merge pull request #487 from BDisp/text-view-close-file
Text view close file
2020-05-21 19:53:47 -06:00
Charlie Kindel
d26b9bdfe9 SuperView is not always a TopLevel - causing a cast exception 2020-05-21 19:48:13 -06:00
Charlie Kindel
c9fd456318 Merge pull request #486 from BDisp/status-bar
Status bar
2020-05-21 19:42:08 -06:00
Charlie Kindel
6ff943efd2 Merge pull request #485 from BDisp/list-view-open-item
List view open item
2020-05-21 19:41:54 -06:00
Charlie Kindel
c956ec154f undo redo of change I've made several times :-) 2020-05-21 19:40:29 -06:00
BDisp
847be89ed2 Make a disable color for ReadOnly in the TextField. Also make the methods Copy, Cut and Paste as virtual. 2020-05-22 01:17:05 +01:00
BDisp
b12648950f Fix a bug KeyEvent declared twice. due to rebase problems. 2020-05-22 00:01:41 +01:00
Charlie Kindel
da85f5498b Re-fixed keydown not repeating issue. 2020-05-21 23:56:47 +01:00
Charlie Kindel
09a06080ec Refactored keydown/up/press events to use event vs. Action<T> 2020-05-21 23:56:47 +01:00
Charlie Kindel
c6e4d7ff9a 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 23:56:47 +01:00