Jakub Sobon
932e0afce8
Merge branch 'master' into devel
2019-05-04 17:52:07 -04:00
Jakub Sobon
e6a00d5685
Merge pull request #198 from mum4k/dot-display
...
Support displaying the dot character in SegmentDisplay.
2019-04-30 23:14:41 -04:00
Jakub Sobon
426ec9edd4
Updating CHANGELOG.
2019-04-30 23:04:28 -04:00
Jakub Sobon
a8d038e6e7
Renaming align.go to alignfor.go.
...
So that file name matches package name.
2019-04-30 23:03:04 -04:00
Jakub Sobon
f13f732a66
More test coverage for dotseg.
...
Also the demo of segment display now uses a colon.
2019-04-30 23:02:14 -04:00
Jakub Sobon
6578c20aea
More test coverage.
2019-04-30 16:04:25 -04:00
Jakub Sobon
6159007466
The SegmentDisplay now uses dot segment for dots and colons.
2019-04-30 00:00:37 -04:00
Jakub Sobon
939f8fe199
A segment display that can show three dots.
2019-04-29 23:11:55 -04:00
Jakub Sobon
a591f95d29
Factoring out function that calculates segment size.
2019-04-29 22:56:59 -04:00
Jakub Sobon
b8a6427d47
Functions that move areas up and down.
2019-04-29 22:55:49 -04:00
Jakub Sobon
f81cb554b0
Skeleton of the dotseg package.
2019-04-28 23:34:02 -04:00
Jakub Sobon
27c830cebf
Adding licences.
2019-04-28 23:12:55 -04:00
Jakub Sobon
f32921589c
Merge pull request #197 from mum4k/lint
...
Fixing lint issues found on Go report card.
2019-04-28 23:09:02 -04:00
Jakub Sobon
57b9e78dc8
Refactoring sixteen.
...
Moving out code that is common to all segment display types.
2019-04-28 23:08:34 -04:00
Jakub Sobon
95f58f0617
Updating CHANGELOG.
2019-04-28 22:45:28 -04:00
Jakub Sobon
0ef875039b
Fixing lint issues found on Go report card.
2019-04-28 22:44:44 -04:00
Jakub Sobon
662382e8ba
Merge pull request #196 from mum4k/donut-label-spacing
...
Guarantee some spacing between donut and its label.
2019-04-28 22:41:20 -04:00
Jakub Sobon
98b23ec3bd
Text area no longer needs to be adjusted.
...
Since we are no longer removing one line of cells from the top of the
canvas.
2019-04-28 22:32:15 -04:00
Jakub Sobon
457ce10404
Updating CHANGELOG.
2019-04-28 22:11:16 -04:00
Jakub Sobon
3dce1b3bab
Undo changes to the donut demo.
2019-04-28 22:05:31 -04:00
Jakub Sobon
e9b4ba3613
Guarantee some spacing between donut and its label.
2019-04-28 22:03:57 -04:00
Jakub Sobon
e6af456c61
Merge pull request #195 from mum4k/release-0-9-0
...
Release v0.9.0
v0.9.0
2019-04-28 21:44:41 -04:00
Jakub Sobon
8414868440
Updating CHANGELOG for release v0.9.0.
2019-04-28 21:36:19 -04:00
Jakub Sobon
9a82474aee
Merge pull request #194 from mum4k/donut-label
...
Support a text label under the Donut widget.
2019-04-28 21:32:48 -04:00
Jakub Sobon
553bad2d18
Updating the CHANGELOG.
2019-04-28 21:18:54 -04:00
Jakub Sobon
0c68b3d745
The donut widget can optionally display a text label.
2019-04-28 21:17:07 -04:00
Jakub Sobon
4391f3846d
Adding HSplitCells into the area package.
2019-04-28 20:14:26 -04:00
Jakub Sobon
f7cb7e8b8f
Adjusting width of the text input demo.
2019-04-27 03:17:17 -04:00
Jakub Sobon
eacd178c7e
Merge pull request #189 from mum4k/text-input
...
Implementing text input field widget.
2019-04-27 02:58:23 -04:00
Jakub Sobon
3b7ae3e319
Adding text input field to the main demo.
2019-04-27 02:50:13 -04:00
Jakub Sobon
e1fc3d17e7
Adding textinput demo to the README.
2019-04-27 02:10:03 -04:00
Jakub Sobon
d105df4413
Refactoring the Draw method for readability.
2019-04-27 01:58:37 -04:00
Jakub Sobon
304c59f211
Mouse support for the text input field.
2019-04-27 01:45:15 -04:00
Jakub Sobon
c25580c335
Updating CHANGELOG.
2019-04-25 23:46:36 -04:00
Jakub Sobon
886f970586
Completing test coverage and most of the functionality.
...
Mouse support is outstanding.
2019-04-25 23:44:14 -04:00
Jakub Sobon
1df5298809
Test coverage for basic functionality of the text input field.
...
Tests without any input text for now.
2019-04-24 23:44:44 -04:00
Jakub Sobon
88d4632adf
Correctly handle setting cells to zero values.
2019-04-24 22:58:00 -04:00
Jakub Sobon
c2f5326954
Polishing the editor code.
...
Some helper functions and better comments.
2019-04-22 23:46:36 -04:00
Jakub Sobon
22c89bc2a7
Finishing test coverage for the field editor.
2019-04-22 21:44:00 -04:00
Jakub Sobon
32c9c724f2
Enhancing the editor to correctly handle unicode.
2019-04-21 23:58:35 -04:00
Jakub Sobon
e49a4438b1
Fixing lint issues.
2019-04-20 17:37:45 -04:00
Jakub Sobon
c0c9727c80
Working proof-of-concept of the textinput field.
2019-04-20 17:33:23 -04:00
Jakub Sobon
bda6223690
Don't split keyboard shortcuts.
...
It makes it hard to recognize when a shortcut is pressed and when a
single character is pressed. Do what termbox does and identify these
separately.
Obsoletes #20 .
2019-04-20 17:10:59 -04:00
Jakub Sobon
23c4ced3b0
Function that splits canvas to parts for label and text input.
2019-04-20 00:50:46 -04:00
Jakub Sobon
f8fddfcef2
Function that splits area after a number of cells.
2019-04-20 00:45:05 -04:00
Jakub Sobon
da70101c28
Merge branch 'devel' into text-input
2019-04-19 00:03:15 -04:00
Jakub Sobon
afe70553e5
Merge branch 'devel' into text-input
2019-04-18 23:57:35 -04:00
Jakub Sobon
c890f0be5f
Editor can delete runes before the cursor.
2019-04-18 23:57:24 -04:00
Jakub Sobon
2f1d16bbea
Merge pull request #186 from mum4k/go1.10
...
Advancing to Go1.10.
2019-04-18 23:04:27 -04:00
Jakub Sobon
5dd1aff803
Advancing to Go1.10.
...
- switching to math.Round and deleting out clone.
- switching all bytes.Buffer instances to strings.Builder.
2019-04-18 22:55:05 -04:00