Moved TODOs about new event signals to the future plans document.

This commit is contained in:
Pietro Gagliardi 2014-04-28 20:59:42 -04:00
parent 7f89f4afb9
commit c32e16fd83
5 changed files with 6 additions and 8 deletions

View File

@ -8,8 +8,6 @@ import (
// A Checkbox is a clickable square with a label. The square can be either checked or unchecked. Checkboxes start out unchecked.
type Checkbox struct {
// TODO provide a channel for broadcasting check changes
lock sync.Mutex
created bool
sysData *sysData

View File

@ -9,8 +9,6 @@ import (
// A Combobox is a drop-down list of items, of which at most one can be selected at any given time. You may optionally make the combobox editable to allow custom items. Initially, no item will be selected (and no text entered in an editable Combobox's entry field).
type Combobox struct {
// TODO Select event
lock sync.Mutex
created bool
sysData *sysData

View File

@ -1,4 +1,10 @@
general list:
- events:
- Checkbox.Toggled (.Clicked? or some other name?)
- Combobox.Selected
- LineEdit.Typing
- LineEdit.Finished? or will that be a property of dialog boxes?
- Listbox.Selected
- Window.SizeToFit() or WIndow.OptimalSize() (use: `Window.SetOptimalSize())`) for sizing a window to the control's interest
- with the current code, will be a bit of a kludge, because preferredSize() assumes it's running on the main thread without locks
- Control.Show()/Control.Hide()

View File

@ -8,8 +8,6 @@ import (
// A LineEdit is a control which allows you to enter a single line of text.
type LineEdit struct {
// TODO Typing event
lock sync.Mutex
created bool
sysData *sysData

View File

@ -12,8 +12,6 @@ import (
// Listboxes have vertical scrollbars that are hidden when not needed.
// The presence of horizontal scrollbars is currently undefined.
type Listbox struct {
// TODO Select event
lock sync.Mutex
created bool
sysData *sysData