Documentation
¶
Index ¶
- type AddConnectionDialog
- func (addDialog *AddConnectionDialog) Display()
- func (addDialog *AddConnectionDialog) Draw(screen tcell.Screen)
- func (addDialog *AddConnectionDialog) Focus(delegate func(p tview.Primitive))
- func (addDialog *AddConnectionDialog) GetItems() (string, string, string)
- func (addDialog *AddConnectionDialog) HasFocus() bool
- func (addDialog *AddConnectionDialog) Hide()
- func (addDialog *AddConnectionDialog) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))
- func (addDialog *AddConnectionDialog) IsDisplay() bool
- func (addDialog *AddConnectionDialog) SetAddFunc(handler func()) *AddConnectionDialog
- func (addDialog *AddConnectionDialog) SetCancelFunc(handler func()) *AddConnectionDialog
- func (addDialog *AddConnectionDialog) SetRect(x, y, width, height int)
- type ConnectDialog
- func (d *ConnectDialog) Display()
- func (d *ConnectDialog) Draw(screen tcell.Screen)
- func (d *ConnectDialog) Focus(delegate func(p tview.Primitive))
- func (d *ConnectDialog) HasFocus() bool
- func (d *ConnectDialog) Hide()
- func (d *ConnectDialog) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))
- func (d *ConnectDialog) IsDisplay() bool
- func (d *ConnectDialog) SetCancelFunc(cancel func())
- func (d *ConnectDialog) SetDestinationName(name string)
- func (d *ConnectDialog) SetMessage(message string)
- func (d *ConnectDialog) SetRect(x int, y int, width int, height int)
- type DfDialog
- func (d *DfDialog) Display()
- func (d *DfDialog) Draw(screen tcell.Screen)
- func (d *DfDialog) Focus(delegate func(p tview.Primitive))
- func (d *DfDialog) HasFocus() bool
- func (d *DfDialog) Hide()
- func (d *DfDialog) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))
- func (d *DfDialog) IsDisplay() bool
- func (d *DfDialog) SetCancelFunc(handler func()) *DfDialog
- func (d *DfDialog) SetRect(x, y, width, height int)
- func (d *DfDialog) SetServiceName(name string)
- func (d *DfDialog) UpdateDiskSummary(sum []*sysinfo.DfSummary)
- type EventsDialog
- func (d *EventsDialog) Display()
- func (d *EventsDialog) Draw(screen tcell.Screen)
- func (d *EventsDialog) Focus(delegate func(p tview.Primitive))
- func (d *EventsDialog) HasFocus() bool
- func (d *EventsDialog) Hide()
- func (d *EventsDialog) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))
- func (d *EventsDialog) IsDisplay() bool
- func (d *EventsDialog) SetCancelFunc(handler func()) *EventsDialog
- func (d *EventsDialog) SetRect(x, y, width, height int)
- func (d *EventsDialog) SetServiceName(name string)
- func (d *EventsDialog) SetText(message string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddConnectionDialog ¶ added in v0.3.0
AddConnectionDialog implements new connection create dialog.
func NewAddConnectionDialog ¶ added in v0.3.0
func NewAddConnectionDialog() *AddConnectionDialog
NewAddConnectionDialog returns a new connection create dialog primitive.
func (*AddConnectionDialog) Display ¶ added in v0.3.0
func (addDialog *AddConnectionDialog) Display()
Display displays this primitive.
func (*AddConnectionDialog) Draw ¶ added in v0.3.0
func (addDialog *AddConnectionDialog) Draw(screen tcell.Screen)
Draw draws this primitive onto the screen.
func (*AddConnectionDialog) Focus ¶ added in v0.3.0
func (addDialog *AddConnectionDialog) Focus(delegate func(p tview.Primitive))
Focus is called when this primitive receives focus.
func (*AddConnectionDialog) GetItems ¶ added in v0.3.0
func (addDialog *AddConnectionDialog) GetItems() (string, string, string)
GetItems returns new connection name, uri and identity.
func (*AddConnectionDialog) HasFocus ¶ added in v0.3.0
func (addDialog *AddConnectionDialog) HasFocus() bool
HasFocus returns whether or not this primitive has focus.
func (*AddConnectionDialog) Hide ¶ added in v0.3.0
func (addDialog *AddConnectionDialog) Hide()
Hide stops displaying this primitive.
func (*AddConnectionDialog) InputHandler ¶ added in v0.3.0
func (addDialog *AddConnectionDialog) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))
InputHandler returns input handler function for this primitive.
func (*AddConnectionDialog) IsDisplay ¶ added in v0.3.0
func (addDialog *AddConnectionDialog) IsDisplay() bool
IsDisplay returns true if primitive is shown.
func (*AddConnectionDialog) SetAddFunc ¶ added in v0.3.0
func (addDialog *AddConnectionDialog) SetAddFunc(handler func()) *AddConnectionDialog
SetAddFunc sets form add button selected function.
func (*AddConnectionDialog) SetCancelFunc ¶ added in v0.3.0
func (addDialog *AddConnectionDialog) SetCancelFunc(handler func()) *AddConnectionDialog
SetCancelFunc sets form cancel button selected function.
func (*AddConnectionDialog) SetRect ¶ added in v0.3.0
func (addDialog *AddConnectionDialog) SetRect(x, y, width, height int)
SetRect set rects for this primitive.
type ConnectDialog ¶ added in v0.3.0
ConnectDialog implements the Connection progress dialog primitive.
func NewConnectDialog ¶ added in v0.3.0
func NewConnectDialog() *ConnectDialog
NewConnectDialog returns connection progress dialog.
func (*ConnectDialog) Display ¶ added in v0.3.0
func (d *ConnectDialog) Display()
Display displays this primitive.
func (*ConnectDialog) Draw ¶ added in v0.3.0
func (d *ConnectDialog) Draw(screen tcell.Screen)
Draw draws this primitive onto the screen.
func (*ConnectDialog) Focus ¶ added in v0.3.0
func (d *ConnectDialog) Focus(delegate func(p tview.Primitive))
Focus is called when this primitive receives focus.
func (*ConnectDialog) HasFocus ¶ added in v0.3.0
func (d *ConnectDialog) HasFocus() bool
HasFocus returns whether or not this primitive has focus.
func (*ConnectDialog) Hide ¶ added in v0.3.0
func (d *ConnectDialog) Hide()
Hide stops displaying this primitive.
func (*ConnectDialog) InputHandler ¶ added in v0.3.0
func (d *ConnectDialog) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))
InputHandler returns input handler function for this primitive.
func (*ConnectDialog) IsDisplay ¶ added in v0.3.0
func (d *ConnectDialog) IsDisplay() bool
IsDisplay returns true if primitive is shown.
func (*ConnectDialog) SetCancelFunc ¶ added in v0.3.0
func (d *ConnectDialog) SetCancelFunc(cancel func())
SetCancelFunc sets progress bar cancel button function.
func (*ConnectDialog) SetDestinationName ¶ added in v0.3.0
func (d *ConnectDialog) SetDestinationName(name string)
SetDestinationName sets progress bar title destination name.
func (*ConnectDialog) SetMessage ¶ added in v0.3.0
func (d *ConnectDialog) SetMessage(message string)
SetMessage sets connection page error message.
type DfDialog ¶
DfDialog is a simple dialog with disk usage result table.
func (*DfDialog) Draw ¶
func (d *DfDialog) Draw(screen tcell.Screen)
Draw draws this primitive onto the screen.
func (*DfDialog) InputHandler ¶
InputHandler returns input handler function for this primitive.
func (*DfDialog) SetCancelFunc ¶ added in v0.5.0
SetCancelFunc sets form cancel button selected function.
func (*DfDialog) SetServiceName ¶ added in v0.9.0
SetServiceName sets event dialog service (connection) name.
func (*DfDialog) UpdateDiskSummary ¶
UpdateDiskSummary updates disk summary table result.
type EventsDialog ¶ added in v0.3.0
EventsDialog implements system events view dialog primitive.
func NewEventDialog ¶ added in v0.3.0
func NewEventDialog() *EventsDialog
NewEventDialog returns new EventsDialog primitive.
func (*EventsDialog) Display ¶ added in v0.3.0
func (d *EventsDialog) Display()
Display displays this primitive.
func (*EventsDialog) Draw ¶ added in v0.3.0
func (d *EventsDialog) Draw(screen tcell.Screen)
Draw draws this primitive onto the screen.
func (*EventsDialog) Focus ¶ added in v0.3.0
func (d *EventsDialog) Focus(delegate func(p tview.Primitive))
Focus is called when this primitive receives focus.
func (*EventsDialog) HasFocus ¶ added in v0.3.0
func (d *EventsDialog) HasFocus() bool
HasFocus returns whether or not this primitive has focus.
func (*EventsDialog) Hide ¶ added in v0.3.0
func (d *EventsDialog) Hide()
Hide stops displaying this primitive.
func (*EventsDialog) InputHandler ¶ added in v0.3.0
func (d *EventsDialog) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))
InputHandler returns input handler function for this primitive.
func (*EventsDialog) IsDisplay ¶ added in v0.3.0
func (d *EventsDialog) IsDisplay() bool
IsDisplay returns true if primitive is shown.
func (*EventsDialog) SetCancelFunc ¶ added in v0.3.0
func (d *EventsDialog) SetCancelFunc(handler func()) *EventsDialog
SetCancelFunc sets form cancel button selected function.
func (*EventsDialog) SetRect ¶ added in v0.3.0
func (d *EventsDialog) SetRect(x, y, width, height int)
SetRect set rects for this primitive.
func (*EventsDialog) SetServiceName ¶ added in v0.9.0
func (d *EventsDialog) SetServiceName(name string)
SetServiceName sets event dialog service (connection) name.
func (*EventsDialog) SetText ¶ added in v0.3.0
func (d *EventsDialog) SetText(message string)
SetText sets message dialog text messages.