Commit Graph

47 Commits

Author SHA1 Message Date
Trevor Slocum 8292f9baf2 Upgrade tcell to v2
Resolves #32.
2020-08-30 08:37:17 -07:00
Trevor Slocum cdeff20296 Use sync.RWMutex in all widgets
Resolves #30.
2020-08-02 10:06:34 -07:00
Trevor Slocum fb4953b17a Fix Form.Clear deadlock
Resolves #28.
2020-06-29 21:44:21 -07:00
Trevor Slocum 48c31ff1a0 Remove wiki references 2020-04-26 16:59:33 -07:00
Trevor Slocum de0eb1ea89 Rename CheckBox 2020-04-26 16:55:45 -07:00
rivo 1f765c8695 Merge pull request #422 from rivo/mouse
Add mouse support
2020-03-30 10:22:55 -07:00
Trevor Slocum e29d4b73b9 Make cview thread-safe 2020-03-25 14:32:57 +00:00
Trevor Slocum afcd7dcdab Do not wrap around form by default 2020-02-22 10:19:34 -08:00
Trevor Slocum 5f880bc2c7 Migrate to GitLab 2020-01-22 15:28:19 -08:00
Trevor Slocum 51704b9844 Add documentation for GetChildren methods 2020-01-16 22:34:51 -08:00
Oliver 2941d561fb Added GetFocusedItemIndex() to Form. Resolves #293 2020-01-08 16:31:04 -08:00
Trevor Slocum c90e430fdf Add optional message displayed after Checkbox 2020-01-05 09:41:15 -08:00
Chris Miller 74b2573bf9 Added mouse handling 2020-01-01 20:18:40 -08:00
Trevor Slocum b61132eddf Fork tview as cview
See FORK.md for details
2019-12-30 15:18:26 -08:00
Oliver 9c225ecd57 Added GetFormItemCount() to Form. Resolves #298 2019-11-27 19:18:27 +01:00
Oliver f8bc69b903 Every redraw of a Form re-evaluates the focus index. Fixes #144 2019-08-29 18:12:55 +02:00
Mike Schinkel c2c3679add Fix initialization bug in AddDropDown(), issue #290. 2019-06-03 20:40:09 -04:00
Oliver 384f577a62 Added SetFocus() to Form which changes the focus to a specific form element. Resolves #286 2019-06-02 21:31:59 +02:00
Oliver f16ba37c6a Added functions to remove all buttons from forms and from modals. Resolves #259 2019-05-14 16:48:29 +02:00
Oliver 8d5eba0c2f Replaced runewidth.StringWidth() with my own implementation. Fixes #236 2019-03-19 12:13:40 +01:00
Oliver 5991278513 If a Form has no focusable elements, it keeps the focus itself. Fixes #198 2018-12-03 18:28:59 +01:00
Oliver a677b985cc Allowing the use of arrow keys in modal buttons, too. Resolves #167 2018-09-26 11:35:00 +02:00
Oliver 21f50f5bc4 Fixed the docs of FormItem. Fixes #153 2018-08-07 09:25:40 +02:00
Oliver c33dd0cf8e Added form item removal functions and more ways to find items. Resolves #137 2018-07-17 20:18:39 +02:00
Oliver f855bee020 Separated form item "done" function from "finished" function. Resolves #39 2018-04-19 21:34:03 +02:00
Oliver 5bd22542e5 For Form.GetFormItemByLabel() to work, we must not modify the label text. Fixes #94, fixes #99 2018-04-09 21:07:03 +02:00
Oliver cc84c982fc Added GetFormItemByLabel(). Resolves #94 2018-04-07 12:58:52 +02:00
Oliver 258c9d1f8e Forms will attempt to keep focused form items within available area. Fixes #79 2018-03-15 17:54:17 +01:00
Oliver 2a83b20ce3 Improved documentation. 2018-01-24 21:48:53 +01:00
Oliver 7c086b1113 Updated Form documentation. 2018-01-19 08:37:01 +01:00
Oliver 4db30f9ed4 "FieldLength" is now "FieldWidth" everywhere for clarity and consistency. Sorry for this breaking change. It is better in the long run. 2018-01-17 21:17:59 +01:00
Oliver 258f212e5e Added color tag functionality to all strings. Resolves #25 2018-01-17 17:13:36 +01:00
Oliver aa25839cfa Introduced horizontal item alignment in forms. Resolves #33 2018-01-16 20:45:54 +01:00
Oliver c105638ec3 Form now has a Clear() function. Resolves #32 2018-01-15 10:04:03 +01:00
Oliver 38d663c267 In Form, changed GetElement() to GetFormItem() for consistency reasons. 2018-01-13 13:07:05 +01:00
Oliver d6ce974e6d Added masking to InputField, password field to form. Resolves #7, resolves #8. 2018-01-11 16:13:01 +01:00
Oliver 61d8ea30f8 Added support for wide unicode characters (e.g. Chinese). Resolves #9 2018-01-11 15:45:52 +01:00
Oliver 3fbea7a99b Added a listener for changes in input fields. Also in the Form. Fixes #4. 2018-01-10 10:40:51 +01:00
Oliver 2874294d89 Added Styles variable with default colors for primitives. 2018-01-10 09:44:21 +01:00
Oliver e4f97a6436 Added links to Wiki to documentation. Also replaced screenshot with GIF screencast. 2018-01-07 16:39:06 +01:00
Oliver 1cc5331a5c Fixed focus delegation. 2017-12-27 22:55:50 +01:00
Oliver 8eb4c5ef48 Added TextView. All subclasses of Box now also have inside padding. 2017-12-21 18:08:53 +01:00
Oliver dad7891c89 Added Checkbox, Modal, and Pages. 2017-12-20 20:54:49 +01:00
Oliver 2bd80aa513 Added DropDown. Also needed to refactor a bit to reduce dependencies. 2017-12-18 20:04:52 +01:00
Oliver d5bf1a4ef0 Added list, improved existing primitives, and fixed a bunch of bugs. 2017-12-16 22:48:26 +01:00
Oliver b83a7766a6 Added frames (with headers/footers) and buttons. Extended form. 2017-12-15 23:03:01 +01:00
Oliver f9f139caaf First commit. Some basic functionality. Publishing to GitHub now. 2017-12-15 15:29:21 +01:00