sysdialogs

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddConnectionDialog added in v0.3.0

type AddConnectionDialog struct {
	*tview.Box
	// contains filtered or unexported fields
}

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

type ConnectDialog struct {
	*tview.Box
	// contains filtered or unexported fields
}

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.

func (*ConnectDialog) SetRect added in v0.3.0

func (d *ConnectDialog) SetRect(x int, y int, width int, height int)

SetRect sets a new position of the primitive.

type DfDialog

type DfDialog struct {
	*tview.Box
	// contains filtered or unexported fields
}

DfDialog is a simple dialog with disk usage result table.

func NewDfDialog

func NewDfDialog() *DfDialog

NewDfDialog returns new DfDialog primitive.

func (*DfDialog) Display

func (d *DfDialog) Display()

Display displays this primitive.

func (*DfDialog) Draw

func (d *DfDialog) Draw(screen tcell.Screen)

Draw draws this primitive onto the screen.

func (*DfDialog) Focus

func (d *DfDialog) Focus(delegate func(p tview.Primitive))

Focus is called when this primitive receives focus.

func (*DfDialog) HasFocus

func (d *DfDialog) HasFocus() bool

HasFocus returns true if this primitive has focus.

func (*DfDialog) Hide

func (d *DfDialog) Hide()

Hide stops displaying this primitive.

func (*DfDialog) InputHandler

func (d *DfDialog) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))

InputHandler returns input handler function for this primitive.

func (*DfDialog) IsDisplay

func (d *DfDialog) IsDisplay() bool

IsDisplay returns true if primitive is shown.

func (*DfDialog) SetCancelFunc added in v0.5.0

func (d *DfDialog) SetCancelFunc(handler func()) *DfDialog

SetCancelFunc sets form cancel button selected function.

func (*DfDialog) SetRect

func (d *DfDialog) SetRect(x, y, width, height int)

SetRect set rects for this primitive.

func (*DfDialog) SetServiceName added in v0.9.0

func (d *DfDialog) SetServiceName(name string)

SetServiceName sets event dialog service (connection) name.

func (*DfDialog) UpdateDiskSummary

func (d *DfDialog) UpdateDiskSummary(sum []*sysinfo.DfSummary)

UpdateDiskSummary updates disk summary table result.

type EventsDialog added in v0.3.0

type EventsDialog struct {
	*tview.Box
	// contains filtered or unexported fields
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳