Documentation
¶
Index ¶
- type Item
- func (i *Item) Append(item *Item)
- func (i *Item) Collapsed() bool
- func (i *Item) Demote()
- func (i *Item) Depth() int
- func (i *Item) Detach()
- func (i *Item) DisplayedChildren() []*Item
- func (i *Item) Head() *Item
- func (i *Item) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (i *Item) MoveAbove(target *Item)
- func (i *Item) MoveBelow(target *Item)
- func (i *Item) MoveDown()
- func (i *Item) MoveUp()
- func (i *Item) Next() *Item
- func (i *Item) NextRow() *Item
- func (i *Item) Parent() *Item
- func (i *Item) Prepend(item *Item)
- func (i *Item) Prev() *Item
- func (i *Item) PrevRow() *Item
- func (i *Item) Promote()
- func (i *Item) RealRoot() *Item
- func (i *Item) SetCollapsed(value, recursive bool)
- func (i *Item) SetStatus(s Status)
- func (i *Item) SetTitle(val string)
- func (i *Item) Status() Status
- func (i *Item) Tail() *Item
- func (i *Item) Title() string
- func (item *Item) ToDoStats() (int, int)
- func (i *Item) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
- type Status
- type Workspace
- func (w *Workspace) Cursor() *Item
- func (w *Workspace) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (w *Workspace) NewItem(title string) *Item
- func (w *Workspace) Root() *Item
- func (w *Workspace) Save() error
- func (w *Workspace) SetCursor(item *Item)
- func (w *Workspace) SetRoot(item *Item)
- func (w *Workspace) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
- func (w *Workspace) ZoomOut()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item struct {
// contains filtered or unexported fields
}
func (*Item) Append ¶
Append places the provided item in the tail position of the visitor's children list.
func (*Item) Depth ¶
Depth returns the tree depth of the item relative to the workspace root. If the item is not in the workspace root, -1 is returned.
func (*Item) Detach ¶
func (i *Item) Detach()
Detach detaches the item from its parent and siblings.
func (*Item) DisplayedChildren ¶
DisplayedChildren returns a flattened list of non-collapsed child items.
func (*Item) MarshalXML ¶
func (*Item) MoveDown ¶
func (i *Item) MoveDown()
MoveDown places item after its next sibling. If the next sibling is nil, this method does nothing.
func (*Item) MoveUp ¶
func (i *Item) MoveUp()
MoveUp places item before its previous sibling. If the prevoius sibling is nil, this method does nothing.
func (*Item) NextRow ¶
NextRow return the item on next outline row, taking the "collapsed" state into consideration.
func (*Item) Prepend ¶
Prepend places the provided item in the head position of the visitor's children list.
func (*Item) PrevRow ¶
PrevRow return the item on previous outline row, taking the "collapsed" state into consideration.
func (*Item) SetCollapsed ¶
SetCollapsed set the item "collapsed" flag value. If recursive is true it walks through the child items as well.
func (*Item) ToDoStats ¶
ToDoStats returns the number of children in statuses "Done" or "Canceled" and the number of children in statuses other than "None".
func (*Item) UnmarshalXML ¶
type Workspace ¶
type Workspace struct {
// contains filtered or unexported fields
}