ui

package
v0.0.0-...-ab63aab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2017 License: GPL-3.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

View Source
const (
	BottomBar  string = "botbar"
	TopBar     string = "topbar"
	SearchView string = "searchview"
	ListWidth  int    = 24
)

Variables

This section is empty.

Functions

func AddList

func AddList(gui *Gui, list trello.List, index, offset int) error

func SelectedItemIdx

func SelectedItemIdx(view *View) int

func SetKeyBindings

func SetKeyBindings(gui *Gui, mngr *TregoManager) (err error)

Types

type CardEditor

type CardEditor struct {
	Mngr *TregoManager
	Card *trello.Card
	// contains filtered or unexported fields
}

func (*CardEditor) Layout

func (cEdit *CardEditor) Layout(gui *Gui) error

type InfoBar

type InfoBar struct {
	BoardName string
}

func (*InfoBar) Layout

func (iBar *InfoBar) Layout(gui *Gui) error

type ShortcutsBar

type ShortcutsBar struct {
	DefaultBotBarKey string                `json:"default_bottom_bar_key"`
	Data             map[string][][]string `json:"bottom_bar"`

	CurrBotBarKey string
}

func (*ShortcutsBar) Layout

func (botBar *ShortcutsBar) Layout(gui *Gui) error

bottom bar with shortcuts

type TregoManager

type TregoManager struct {
	Member    *trello.Member
	Lists     []trello.List
	CurrBoard *trello.Board

	TopBar *InfoBar
	BotBar *ShortcutsBar
	// contains filtered or unexported fields
}

func (*TregoManager) CheckCurrView

func (mngr *TregoManager) CheckCurrView(gui *gocui.Gui, replacementViewName string)

func (*TregoManager) Layout

func (mngr *TregoManager) Layout(gui *Gui) error

func (*TregoManager) SelectView

func (mngr *TregoManager) SelectView(gui *gocui.Gui, viewName string) error

func (*TregoManager) SwitchListLeft

func (mngr *TregoManager) SwitchListLeft(gui *gocui.Gui, v *gocui.View) (err error)

func (*TregoManager) SwitchListRight

func (mngr *TregoManager) SwitchListRight(gui *gocui.Gui, v *gocui.View) (err error)

Directories

Path Synopsis
Package that contains variety of dialogs
Package that contains variety of dialogs

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL