Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewForm ¶
NewForm is a to-do planner with reminders. A quick-add bar (TextBox with a hint, DatePicker, TimePicker, ComboBox; Enter adds) creates tasks; the Calendar, a ToggleSwitch and RadioButtons filter the Table, which colors the cells and shows images in them, toggles a task on a double click and has a context menu. A PropertyGrid (SetObject with struct tags) edits the selected task, the same in the Add task dialog. A ProgressBar in the status bar counts the done tasks. A form timer fires the reminders as toasts and tray notifications; the TrayIcon has a tooltip and a menu, and the window can be minimized to the tray.
Types ¶
type Task ¶
type Task struct {
Title string `category:"Task"`
Project string `category:"Task" options:"Inbox, Work, Home, Health, Personal"`
Priority string `category:"Task" options:"Low, Normal, High"`
Due time.Time `category:"Schedule" desc:"The day the task is due (the time of day is kept)"`
Reminder bool `category:"Schedule" desc:"Show a notification when the task is due"`
Done bool `category:"Status"`
Progress int `category:"Status" prop:"Progress, %" min:"0" max:"100"`
Color color.RGBA `category:"Status" prop:"Label" desc:"The color of the mark next to the title"`
Notes string `category:"Notes"`
// contains filtered or unexported fields
}
Task is one to-do item. The details pane and the task dialog edit it with a PropertyGrid (SetObject), so the struct tags describe the editors.