More future plans.

This commit is contained in:
Pietro Gagliardi 2014-08-12 12:33:44 -04:00
parent acf25c4798
commit 7d86f9d440
3 changed files with 6 additions and 3 deletions

View File

@ -45,8 +45,6 @@ func NewCheckbox(text string) Checkbox {
type TextField interface {
Control
// TODO figure out what events are appropriate
// Text and SetText are Requests that get and set the TextField's text.
Text() string
SetText(text string)

View File

@ -11,6 +11,8 @@ Table
table_unix.c: goTableModel_get_column_type(), goTableModel_get_value()
multiple selection
figure out if we can safely refresh view during Unlock() regardless of calling goroutine
document header behavior in general comment
add functions for header manipulation
Tab
// [TODO if each tab of your Tab is going to have the same content Controls, then use LikeTab instead, to conserve resources]
Delete()
@ -29,6 +31,10 @@ Mac OS X
// in the other case, the most correct thing would be for Label to be aligned to the alignment rect, but I can't get this working, and it looks fine as it is anyway
other controls
same rules? checkboxes seem damning...
TextField
add events (figure out which of the following are appropriate: changed, enter pressed)
provide some facility to mark invalid values
figure out numerics because you CAN paste into numeric boxes on Windows and GTK+ has no built-in number validator as far as I know
so I don't forget, some TODOs:
windows

View File

@ -11,7 +11,6 @@ import (
// Table is a Control that displays a list of like-structured data in a grid where each row represents an item and each column represents a bit of data.
// As such, a Table renders a []struct{...} where each field of the struct is rendered using package fmt's %v rule.
// Tables maintain their own storage behind a sync.RWMutex-compatible sync.Locker; use Table.Lock()/Table.Unlock() to make changes and Table.RLock()/Table.RUnlock() to merely read values.
// TODO headers
type Table interface {
Control