ui

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunUI

func RunUI()

Types

type AboutPage

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

func NewAboutPage

func NewAboutPage() *AboutPage

func (*AboutPage) Initialize

func (t *AboutPage) Initialize()

func (*AboutPage) View

func (t *AboutPage) View() TabPage

type BaseInfo

type BaseInfo struct {
	LocalAddrVisible  bool
	LocalPortVisible  bool
	RemotePortVisible bool
	RoleVisible       bool
	SKVisible         bool
	ServerNameVisible bool
	BindAddrVisible   bool
	BindPortVisible   bool

	config.Section
}

type ConfListModel

type ConfListModel struct {
	walk.TableModelBase
	walk.SorterBase
	// contains filtered or unexported fields
}

func NewConfListModel

func NewConfListModel(confList []*config.Config) *ConfListModel

func (*ConfListModel) Items

func (m *ConfListModel) Items() interface{}

type ConfListView

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

func NewConfListView

func NewConfListView() *ConfListView

func (*ConfListView) CurrentConf

func (t *ConfListView) CurrentConf() *config.Config

func (*ConfListView) View

func (t *ConfListView) View() Widget

type ConfPage

type ConfPage struct {
	*ConfView
	*DetailView
	// contains filtered or unexported fields
}

func NewConfPage

func NewConfPage() *ConfPage

func (*ConfPage) Initialize

func (t *ConfPage) Initialize()

func (*ConfPage) SwapFiller

func (t *ConfPage) SwapFiller(filler bool)

func (*ConfPage) UpdateView

func (t *ConfPage) UpdateView()

func (*ConfPage) View

func (t *ConfPage) View() TabPage

type ConfSectionModel

type ConfSectionModel struct {
	walk.ReflectTableModelBase
	// contains filtered or unexported fields
}

func NewConfSectionModel

func NewConfSectionModel(conf *config.Config) *ConfSectionModel

func (*ConfSectionModel) Count

func (m *ConfSectionModel) Count() int

func (*ConfSectionModel) Items

func (m *ConfSectionModel) Items() interface{}

type ConfSectionView

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

func NewConfSectionView

func NewConfSectionView() *ConfSectionView

func (*ConfSectionView) ResetModel

func (t *ConfSectionView) ResetModel()

func (*ConfSectionView) SetModel

func (t *ConfSectionView) SetModel(conf *config.Config)

func (*ConfSectionView) View

func (t *ConfSectionView) View() Widget

type ConfStatusView

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

func NewConfStatusView

func NewConfStatusView() *ConfStatusView

func (*ConfStatusView) Initialize

func (t *ConfStatusView) Initialize()

func (*ConfStatusView) SetConf

func (t *ConfStatusView) SetConf(conf *config.Config)

func (*ConfStatusView) UpdateStatus

func (t *ConfStatusView) UpdateStatus(name string, running bool, err error)

func (*ConfStatusView) View

func (t *ConfStatusView) View() Widget

type ConfView

type ConfView struct {
	*ConfListView
	*ToolbarView
	ConfigChanged func(int)
	// contains filtered or unexported fields
}

func NewConfView

func NewConfView(parent **walk.Composite, db **walk.DataBinder) *ConfView

func (*ConfView) Initialize

func (t *ConfView) Initialize()

type DetailView

type DetailView struct {
	*ConfStatusView
	*ConfSectionView
}

func NewDetailView

func NewDetailView() *DetailView

func (*DetailView) Initialize

func (t *DetailView) Initialize()

func (*DetailView) SetConf

func (t *DetailView) SetConf(conf *config.Config)

type EditConfDialog

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

func NewEditConfDialog

func NewEditConfDialog(conf *config.Config, nameList []string) *EditConfDialog

func (*EditConfDialog) Run

func (t *EditConfDialog) Run(owner walk.Form) (int, error)

func (*EditConfDialog) View

func (t *EditConfDialog) View() Dialog

type EditSectionDialog

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

func NewEditSectionDialog

func NewEditSectionDialog(sect *config.Section) *EditSectionDialog

func (*EditSectionDialog) Run

func (t *EditSectionDialog) Run(owner walk.Form) (int, error)

func (*EditSectionDialog) View

func (t *EditSectionDialog) View() Dialog

type FRPManager

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

type LogModel

type LogModel struct {
	walk.ReflectTableModelBase
	// contains filtered or unexported fields
}

func NewLogModel

func NewLogModel(path string) *LogModel

func (*LogModel) Items

func (m *LogModel) Items() interface{}

func (*LogModel) Reset

func (m *LogModel) Reset() error

type LogPage

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

func NewLogPage

func NewLogPage() *LogPage

func (*LogPage) Initialize

func (t *LogPage) Initialize()

func (*LogPage) View

func (t *LogPage) View() TabPage

type SimpleSection

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

func NewSimpleSectionDialog

func NewSimpleSectionDialog(title string, prefix string, types []string, port uint16) *SimpleSection

func (*SimpleSection) Run

func (t *SimpleSection) Run(owner walk.Form) (int, error)

func (*SimpleSection) View

func (t *SimpleSection) View() Dialog

type ToolbarView

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

func NewToolbarView

func NewToolbarView(parent **walk.Composite) *ToolbarView

func (*ToolbarView) Initialize

func (t *ToolbarView) Initialize()

func (*ToolbarView) View

func (t *ToolbarView) View() Widget

Jump to

Keyboard shortcuts

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