ui

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2017 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultRefreshInternalMS = 1000
View Source
const HELP_TEXT_VIEW_NAME = "helpTextTipsView"
View Source
const WarmUpSeconds = 60

Variables

This section is empty.

Functions

func Round

func Round(d, r time.Duration) time.Duration

Types

type HeaderWidget

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

func NewHeaderWidget

func NewHeaderWidget(masterUI *MasterUI, name string) *HeaderWidget

func (*HeaderWidget) Layout

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

func (*HeaderWidget) Name

func (w *HeaderWidget) Name() string

type HelpTextTipsWidget added in v0.7.3

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

func NewHelpTextTipsWidget added in v0.7.3

func NewHelpTextTipsWidget(masterUI masterUIInterface.MasterUIInterface, name string, height int) *HelpTextTipsWidget

func (*HelpTextTipsWidget) Layout added in v0.7.3

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

func (*HelpTextTipsWidget) Name added in v0.7.3

func (w *HelpTextTipsWidget) Name() string

func (*HelpTextTipsWidget) SetHelpTextTips added in v0.7.3

func (w *HelpTextTipsWidget) SetHelpTextTips(g *gocui.Gui, helpTextTips string) error

type MasterUI

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

func NewMasterUI

func NewMasterUI(cliConnection plugin.CliConnection) *MasterUI

func (*MasterUI) AddCommonDataViewKeybindings added in v0.7.3

func (mui *MasterUI) AddCommonDataViewKeybindings(g *gocui.Gui, viewName string) error

Add common keybindings for all data views -- note that this does not include keybindings for "top level" data views which are ones that are selectable from the "select view" menu ('d' command)

func (*MasterUI) CliConnection

func (mui *MasterUI) CliConnection() plugin.CliConnection

func (*MasterUI) CloseView

func (mui *MasterUI) CloseView(m masterUIInterface.Manager) error

func (*MasterUI) CloseViewByName

func (mui *MasterUI) CloseViewByName(viewName string) error

func (*MasterUI) GetCurrentView

func (mui *MasterUI) GetCurrentView(g *gocui.Gui) *gocui.View

func (*MasterUI) GetHeaderSize added in v0.7.3

func (mui *MasterUI) GetHeaderSize() int

func (*MasterUI) GetRouter

func (mui *MasterUI) GetRouter() *eventrouting.EventRouter

func (*MasterUI) IsWarmupComplete added in v0.7.3

func (mui *MasterUI) IsWarmupComplete() bool

func (*MasterUI) LayoutManager

func (mui *MasterUI) LayoutManager() masterUIInterface.LayoutManagerInterface

func (*MasterUI) OpenView added in v0.7.3

func (mui *MasterUI) OpenView(g *gocui.Gui, dataView masterUIInterface.UpdatableView) error

func (*MasterUI) RefeshNow

func (mui *MasterUI) RefeshNow()

func (*MasterUI) SetCurrentViewOnTop

func (mui *MasterUI) SetCurrentViewOnTop(g *gocui.Gui) error

func (*MasterUI) SetHelpTextTips added in v0.7.3

func (mui *MasterUI) SetHelpTextTips(g *gocui.Gui, helpTextTips string) error

func (*MasterUI) SetMinimizeHeader added in v0.7.3

func (mui *MasterUI) SetMinimizeHeader(g *gocui.Gui, minimizeHeader bool)

func (*MasterUI) SetStatsSummarySize added in v0.7.3

func (mui *MasterUI) SetStatsSummarySize(statSummarySize int)

func (*MasterUI) Start

func (mui *MasterUI) Start()

Jump to

Keyboard shortcuts

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