Commit Graph

386 Commits

Author SHA1 Message Date
José Miguel Perricone
cec9cc3559 Add Vertical Alignment and Text Direction + UICatalog Demo (#1195)
* Add Vertical Alignment and Text Direction + UICatalog Demo

* Justified text with "Right to Left" or "Bottom To Top" Directions.
2021-04-15 16:19:02 -07:00
BDisp
e784765094 Fixes #1179. TextView does not copy to the clipboard on deleting. (#1180)
* Fixes #1133. Flaw in LayoutSubviews/TopologicalSort.

* Toplevel can't be used on Pos/Dim but only his subviews. Was not caught before because the LayoutSubviews  method never gone so deep before.

* Fixed the error that is triggered when the Pos/Dim is the current Application.Top.

* Application.Top is the only exception in the TopologicalSort method check.

* Fixes #1179. TextView does not copy to the clipboard on deleting.

* Added Button DoubleClick and fixed WordForward/WordBackward issues.

* Prevents a negative height.

* Fixes the enter key line feed.

* Fixes #1187. Prevents WordBackward throwing an exception if point is greater than the text length.

* Fixes #1189. Prevents negative index.

* Fixes #1193. A  non auto size default Button now preserves his width and thus the text alignment now work.

* Fixing the Width and Height checks of the Dim class with AutoSize dependence.

* Fixes #1197. Prevents width negative value if added directly to the Application.Top

* Fixes #1199. Normalize views constructors and did some typo fixing.

* Fixing the Application.Top Pos/Dim settings.

* Always uses inverted color for selected text to avoid same colors.

* Prevents throw an exception if the clipboard content is null.

* Added Find and Replace (next/previous). Replace All and Select All. A non modal dialog box.

* Keeps tracking the selected replaced text.

* Fixes #1202. CheckBox now deals with a functional '_' underscore hotkey.

* The selected text should be maintained when losing focus.

* Fixes an extra line on page down.

* Fixes the WordBackward if it text has more than one whitespaces or when has only one digit or letter.

* Fixes WordForward/WordBackward on text with more than one whitespace or with only one digit or letter.

* Forgot to replace the hacking.

* Added unit tests for the TextField view. Fixed some more bugs.

* Redraw should only show the selected text if it is focused.

* Fixes cursor position on double click and ensures the setting of the selected text.

* Added match whole word checking.

* Added missing parameters documentation.

* Ensures the SelectedLength property to be always with positive value.

* Fixes the WordBackward when at the end of the text has a character between two whitespace.

* Added unit tests to the TextView, Used property and fixed some more bugs.

* Fixed Used to only show if it has focus.

* Fixed ReplaceAll and prevents Debug.Assert from showing.
2021-04-13 13:37:13 -07:00
BDisp
1a9720f471 Fixes #1159. Dialog must have a default button if none is provided. (#1160)
* Fixes #1159. Dialog must have a default button if none is provided.

* Reverting this because someone may don't want buttons at all. Thanks @tig

* Allow to specify which default button for MessageBox.

* Added a check if default button is greater than the buttons length and changing the MessageBox scenario.
2021-04-01 12:38:18 -07:00
Charlie Kindel
4abc3de4e8 fixed rediculous compiler warning (#1164) 2021-04-01 10:15:29 -07:00
Charlie Kindel
8027a407c4 get productversion of terminal.gui not version (#1163) 2021-04-01 10:01:42 -07:00
BDisp
47211c78e8 Fixes #1154. FileDialog blank constructor results in unstable window (#1157)
* Fixes #1154. FileDialog blank constructor results in unstable window

* Fixes #1158. File Open Dialog should disable 'Open' if file is blank (or not valid).

* Changing to CanFocus behavior. Adding a Canceled check.
2021-04-01 09:15:53 -07:00
BDisp
0669e2cc94 Fixes #134. TextView: Add line wrapping. (#1147)
* Fixes #134. TextView: Add line wrapping.

* Facilitates exception handling in Debug mode.

* Fixes the cursor position if it is always on the same line.

* Fixed TextView column position and hiding the cursor if it is outside outbound frame.

* Added more wrap lines features.. Added a BottomOffset property. Fixed Ctrl+K and Ctrl+Y.

* Fixes the Text property and fixing a redraw behavior not cleaning well at right.

* Fixes Ctrl+K from adding an extra line feed.

* Implemented Ctrl+K and Ctrl-Y on wrapped lines and preventing left Column to be greater than 0 on wrap.

* Fixes more line feed issues.

* More line feed fixing.

* Fixes UpdateModel that must return the new row and new column from the wrapped lines.

* Fixes #1155. MoveForward/MoveBackward not bound on Text controls.

* Added much more features to TextView.

* Fixes ResetPosition and forcing the cursor visibility.

* Implemented the New, Save and SaveAs methods in the Editor.
2021-04-01 09:14:14 -07:00
Thomas Nind
7e99d44b52 Fixed CreateClass to create a generic MyClass<object> when MyClass<T> is passed (#1153) 2021-03-24 10:15:03 -07:00
Thomas Nind
1f01ff86fd New Control: Tabview (#1137)
* started working on tab view

* Ability to switch tabs

* Added interactive tab

* Added ShowBorder

* Fixed not being able to focus tabs

* Made tab row into private class and implemented PositionCursor

* Added support for TabsOnBottom

* Fixed layout flipping repeatedly between top and bottom tabs

* support for scrolling to infinite tabs

* Added scroll indicators

* Made Tabs readonly and added Notepad Scenario

* Fleshed out Notepad app

* Added SelectedTabChanged event

* Improved visiblity of where focus is and made example Absolute layout

* Added unicode tab to example

* Prototype mouse support

* Refactored tab rendering logic into sub view TabRowView

* Fixed bugs in Notepad scenario and xml doc

* Fixed position of cursor when TabsOnBottom and ShowHeaderOverline are both true

* Fixed PositionCursor when TabsOnBottom (properly this time)

* Fixed bugs when a Tab had a null View

* Fixed RemoveTab when SelectedTab is null and docs

* Fixed whitespace to match guidelines

* Fixed tabsBar position bug TabView.Y is not 0

* Added MaxTabTextWidth property

* Fixed issues based on feedback

* Support for clicking on scroll indicators

* Added tests for TabView

* Fixed horizontal line in empty tab view

* Fixed whitespace to match coding guidelines

* Added more tests, fixed AddTab allowing duplicates

* Fixed TabView not responding to double/triple click on arrows

* Refactored clicking scroll indicators to use SwitchTabBy

* Changed FileDialog to OpenDialog in Notepad Scenario
Includes support for opening multiple at once
2021-03-24 10:06:56 -07:00
Charlie Kindel
fde741ad76 Merge pull request #1022 from tznind/tree-view
Woot!!! Well done, sir!
2021-03-08 09:21:35 -07:00
tznind
57dd4a6f61 Added ObjectActivated example in TreeViewFileSystem that displays info about the selected file/dir 2021-03-08 10:31:52 +00:00
tznind
dc22a890e9 Updated to match coding guidelines (whitespace, brackets etc) 2021-03-08 09:22:17 +00:00
Charlie Kindel
ca333ceb70 Merge pull request #1066 from BDisp/heightasbuffer-as-true
A provisional solution to the #1065 issue. Setting HeightAsBuffer as true by default.
2021-03-07 17:44:28 -07:00
tznind
62a997f4b3 Tidied up docs and fixed several methods to be virtual 2021-03-02 21:58:07 +00:00
tznind
2a86709296 Fixed not adding top menu to Scenario 2021-02-21 12:57:17 +00:00
tznind
2d7b3f4f52 Added interactive scenario (create and delete tree nodes on demand). Added Tag and Text to interface for ITreeNode 2021-02-21 12:52:42 +00:00
tznind
f21f21522f Added SelectAll and made OnSelectionChanged protected 2021-02-17 19:18:33 +00:00
tznind
5b763bd44f Added ExpandAll / CollapseAll (shortcut Ctrl + Right/Left) 2021-02-17 13:37:43 +00:00
tznind
76f81d2bdd Fixed IsSelected using reference comparison instead of equality 2021-02-17 12:46:57 +00:00
tznind
b78de72408 Added equality for ShowForType in scenario and added comments about it 2021-02-17 12:37:39 +00:00
tznind
011f3efea3 Changed tabs to spaces in visualization window to prevent rendering issue 2021-02-17 12:34:54 +00:00
tznind
f675b3b39c Added new scenario ClassExplorer which presents all Types and Methods divided by assembly 2021-02-17 11:38:38 +00:00
tznind
6ef5f1cd1d Merge remote-tracking branch 'upstream/master' into tree-view 2021-02-17 10:29:30 +00:00
Charlie Kindel
481f36013d Merge pull request #1015 from tznind/table-view
New Control 'TableView' for viewing tabular data
2021-02-15 11:12:51 -07:00
Charlie Kindel
e48b867e7e Added indication of which driver is in use to status bar 2021-02-15 10:41:15 -07:00
Gilles Freart
a467afae12 Removing no more needed using 2021-01-29 17:43:51 +01:00
Gilles Freart
3ea6bb89d9 Applying style change, renaming some variable 2021-01-29 17:35:59 +01:00
Gilles Freart
8a13efbb83 Preparing PR + fix cursor issue happening inside frameview 2021-01-28 16:56:28 +01:00
Gilles Freart
92e9d29e37 Fixing Cursor Display under Windows; setting more coherence between windows & linux at CursorVivibility enum 2021-01-28 15:57:34 +01:00
Gilles Freart
ff512f5846 Adjustment under ubuntu & ubuntu xTerm 2021-01-28 14:17:01 +01:00
Gilles Freart
9b617a07f0 Adjusting cursor size ... working under WindowsDriver 2021-01-27 21:51:07 +01:00
tznind
c5c477596c Made New Row/Col location adjacent to current selected cell 2021-01-27 19:43:41 +00:00
tznind
0817fa3d6c Added Move Column and Sort 2021-01-27 19:22:55 +00:00
tznind
22c30fbb55 Added MoveColumn command to Scenario 2021-01-27 18:59:51 +00:00
tznind
656e9b5159 Fixed Scenario for deleting last column in table 2021-01-27 14:40:57 +00:00
tznind
2092031390 Added alignment and format functions to CsvEditor 2021-01-27 14:07:46 +00:00
tznind
cbcd557710 Added a CSV editor Scenario and an article introducing table view and how to use it 2021-01-27 12:18:47 +00:00
tznind
1549d775c5 Added vertical scrollbars 2021-01-27 08:29:12 +00:00
tznind
c02a238ef0 Merge branch 'master' into table-view 2021-01-27 08:18:37 +00:00
BDisp
eb6e28efd8 Trying fixing #1099. UI Catalog doesn't work on Windows Terminal. 2021-01-25 14:33:19 +00:00
BDisp
1603b680da A provisional solution to the #1065 issue. Setting HeightAsBuffer as true by default. 2021-01-25 13:05:32 +00:00
tznind
f2aa560470 Added menu item for toggling LeaveLastRow in Scenario 2021-01-24 19:15:29 +00:00
tznind
eb97e64830 Made 'LeaveLastRow' optional as new property in TableStyle 2021-01-24 19:08:34 +00:00
tznind
2884b8e94d Added horizontal scrollbar, fixed tests 2021-01-24 10:35:03 +00:00
tznind
a1fe75a983 Added horizontal scrolling 2021-01-24 10:13:38 +00:00
tznind
bea15c54c9 Added scroll bar to tree view example 2021-01-23 08:59:42 +00:00
tznind
6f787f4638 Merge branch 'master' into tree-view 2021-01-23 08:38:27 +00:00
tznind
518e58d90d added docs on generic treeview 2021-01-22 22:04:14 +00:00
tznind
4b6f3569ef Added basic use cases and new article 2021-01-22 19:57:39 +00:00
Charlie Kindel
77add786fc Merge pull request #1081 from BDisp/scroll-bar-view
Fixes #1073, #1058, #480 #1049. Provides more automation to the ScrollBarView, allowing easily implement on any view.
2021-01-22 09:32:27 -08:00