masterUIInterface

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_SORT_COLUMNS = 5

Variables

This section is empty.

Functions

This section is empty.

Types

type DisplayViewInterface

type DisplayViewInterface interface {
	RefreshDisplay(g *gocui.Gui) error
	SetDisplayPaused(paused bool)
	GetDisplayPaused() bool
	SortData()
}

type EditSortView

type EditSortView struct {
	// contains filtered or unexported fields
}

func NewEditSortView

func NewEditSortView(masterUI MasterUIInterface, name string, listWidget *ListWidget) *EditSortView

func (*EditSortView) Layout

func (w *EditSortView) Layout(g *gocui.Gui) error

func (*EditSortView) Name added in v0.5.5

func (w *EditSortView) Name() string

func (*EditSortView) RefreshDisplay

func (w *EditSortView) RefreshDisplay(g *gocui.Gui) error

type Input added in v0.5.6

type Input struct {
	// contains filtered or unexported fields
}

func NewInput added in v0.5.6

func NewInput(
	parentUI Manager,
	name string,
	offsetX, offsetY,
	width,
	maxLength int,
	inputValue string,
	applyCallbackFunc applyCallbackFunc,
	cancelCallbackFunc cancelCallbackFunc,
) *Input

func (*Input) Edit added in v0.5.6

func (w *Input) Edit(v *gocui.View, key gocui.Key, ch rune, mod gocui.Modifier)

func (*Input) Layout added in v0.5.6

func (i *Input) Layout(g *gocui.Gui) error

func (*Input) Name added in v0.5.6

func (i *Input) Name() string

type Label added in v0.5.6

type Label struct {
	// contains filtered or unexported fields
}

func NewLabel added in v0.5.6

func NewLabel(parentUI Manager, name string, offsetX, offsetY int, labelText string) *Label

func (*Label) Layout added in v0.5.6

func (l *Label) Layout(g *gocui.Gui) error

func (*Label) Name added in v0.5.6

func (l *Label) Name() string

type LayoutManagerInterface

type LayoutManagerInterface interface {
	Contains(Manager) bool
	Add(Manager)
	Remove(Manager) Manager
}

type ListColumn

type ListColumn struct {
	// contains filtered or unexported fields
}

func NewListColumn

func NewListColumn(
	id, label string,
	size int,
	leftJustifyLabel bool,
	sortFunc util.LessFunc,
	defaultReverseSort bool,
	displayFunc getRowDisplayFunc) *ListColumn

type ListWidget

type ListWidget struct {
	Title string

	GetRowKey         getRowKeyFunc
	PreRowDisplayFunc getRowDisplayFunc
	GetListSize       getListSizeFunc
	// contains filtered or unexported fields
}

func NewListWidget

func NewListWidget(masterUI MasterUIInterface, name string,
	topMargin, bottomMargin int, displayView DisplayViewInterface,
	columns []*ListColumn) *ListWidget

func (*ListWidget) GetSortFunctions

func (asUI *ListWidget) GetSortFunctions() []util.LessFunc

func (*ListWidget) HighlightKey

func (asUI *ListWidget) HighlightKey() string

func (*ListWidget) Layout

func (w *ListWidget) Layout(g *gocui.Gui) error

func (*ListWidget) Name

func (w *ListWidget) Name() string

func (*ListWidget) RefreshDisplay

func (asUI *ListWidget) RefreshDisplay(g *gocui.Gui) error

func (*ListWidget) SetSortColumns

func (asUI *ListWidget) SetSortColumns(sortColumns []*SortColumn)

func (*ListWidget) SortData

func (asUI *ListWidget) SortData()

type Manager added in v0.5.5

type Manager interface {
	Layout(*gocui.Gui) error
	Name() string
}

type MasterUIInterface

type MasterUIInterface interface {
	SetCurrentViewOnTop(*gocui.Gui, string) error
	GetCurrentView(g *gocui.Gui) *gocui.View
	CloseView(Manager) error
	LayoutManager() LayoutManagerInterface
}

type SortColumn

type SortColumn struct {
	// contains filtered or unexported fields
}

func NewSortColumn

func NewSortColumn(id string, reverseSort bool) *SortColumn

Jump to

Keyboard shortcuts

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