forms

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 53 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LookupDialog

func LookupDialog(parent uiinterfaces.Widget, client *client.Client, entity string, selected func(key string))

func Substr

func Substr(input string, start int, length int) string

Types

type AdFromSite added in v1.0.1

type AdFromSite struct {
	Text string `json:"text"`
	Url  string `json:"url"`
}

type ConfigForName added in v1.0.6

type ConfigForName struct {
	Address string
}

type DialogEditChartGroupName

type DialogEditChartGroupName struct {
	uicontrols.Dialog
	// contains filtered or unexported fields
}

func NewDialogEditChartGroupName

func NewDialogEditChartGroupName(parent uiinterfaces.Widget, client *client.Client, id string, text string) *DialogEditChartGroupName

type DialogEditMapName

type DialogEditMapName struct {
	uicontrols.Dialog
	// contains filtered or unexported fields
}

func NewDialogEditMapName

func NewDialogEditMapName(parent uiinterfaces.Widget, client *client.Client, id string, text string) *DialogEditMapName

type FormAbout

type FormAbout struct {
	uicontrols.Dialog
}

func NewFormAbout

func NewFormAbout(parent uiinterfaces.Widget) *FormAbout

func (*FormAbout) OnInit

func (c *FormAbout) OnInit()

type FormAddChartGroup

type FormAddChartGroup struct {
	uicontrols.Dialog

	Id string
	// contains filtered or unexported fields
}

func NewFormAddChartGroup

func NewFormAddChartGroup(parent uiinterfaces.Widget, client *client.Client, tp string) *FormAddChartGroup

func (*FormAddChartGroup) OnInit

func (c *FormAddChartGroup) OnInit()

type FormAddChartsGroup

type FormAddChartsGroup struct {
	uicontrols.Dialog
	// contains filtered or unexported fields
}

func NewFormAddChartsGroup

func NewFormAddChartsGroup(parent uiinterfaces.Widget, client *client.Client) *FormAddChartsGroup

func (*FormAddChartsGroup) OnInit

func (c *FormAddChartsGroup) OnInit()

type FormAddCloudChannel

type FormAddCloudChannel struct {
	uicontrols.Dialog
	// contains filtered or unexported fields
}

func NewFormAddCloudChannel

func NewFormAddCloudChannel(parent uiinterfaces.Widget, client *client.Client) *FormAddCloudChannel

func (*FormAddCloudChannel) OnInit

func (c *FormAddCloudChannel) OnInit()

type FormAddMap

type FormAddMap struct {
	uicontrols.Dialog
	// contains filtered or unexported fields
}

func NewFormAddMap

func NewFormAddMap(parent uiinterfaces.Widget, client *client.Client, tp string) *FormAddMap

func (*FormAddMap) OnInit

func (c *FormAddMap) OnInit()

type FormAddToChartGroup added in v1.0.4

type FormAddToChartGroup struct {
	uicontrols.Dialog
	// contains filtered or unexported fields
}

func NewFormAddToChartGroup added in v1.0.4

func NewFormAddToChartGroup(parent uiinterfaces.Widget, client *client.Client, items []string, allItems []string) *FormAddToChartGroup

func (*FormAddToChartGroup) Dispose added in v1.0.6

func (c *FormAddToChartGroup) Dispose()

func (*FormAddToChartGroup) OnInit added in v1.0.4

func (c *FormAddToChartGroup) OnInit()

type FormAddToCloud

type FormAddToCloud struct {
	uicontrols.Dialog
	// contains filtered or unexported fields
}

func NewFormAddToCloud

func NewFormAddToCloud(parent uiinterfaces.Widget, client *client.Client, items []string, allItems []string, preferredChannels []string) *FormAddToCloud

func (*FormAddToCloud) OnInit

func (c *FormAddToCloud) OnInit()

func (*FormAddToCloud) SetAllItemsCheckBox

func (c *FormAddToCloud) SetAllItemsCheckBox(checked bool)

type FormAddUnit

type FormAddUnit struct {
	uicontrols.Dialog
	// contains filtered or unexported fields
}

func NewFormAddUnit

func NewFormAddUnit(parent uiinterfaces.Widget, client *client.Client) *FormAddUnit

func (*FormAddUnit) Dispose

func (c *FormAddUnit) Dispose()

func (*FormAddUnit) OnInit

func (c *FormAddUnit) OnInit()

func (*FormAddUnit) UpdateStyle

func (c *FormAddUnit) UpdateStyle()

type FormAddUser added in v1.0.1

type FormAddUser struct {
	uicontrols.Dialog
	// contains filtered or unexported fields
}

func NewFormAddUser added in v1.0.1

func NewFormAddUser(parent uiinterfaces.Widget, client *client.Client) *FormAddUser

func (*FormAddUser) OnInit added in v1.0.1

func (c *FormAddUser) OnInit()

type FormEditCloudChannel

type FormEditCloudChannel struct {
	uicontrols.Dialog
	// contains filtered or unexported fields
}

func NewFormEditCloudChannel

func NewFormEditCloudChannel(parent uiinterfaces.Widget, client *client.Client, channelId string, name string) *FormEditCloudChannel

func (*FormEditCloudChannel) OnInit

func (c *FormEditCloudChannel) OnInit()

type FormEditUser added in v1.0.1

type FormEditUser struct {
	uicontrols.Dialog
	// contains filtered or unexported fields
}

func NewFormEditUser added in v1.0.1

func NewFormEditUser(parent uiinterfaces.Widget, client *client.Client, name string) *FormEditUser

func (*FormEditUser) OnInit added in v1.0.1

func (c *FormEditUser) OnInit()

type FormHelp added in v1.0.6

type FormHelp struct {
	uicontrols.Dialog

	OnTextChanged func(txtMultiline *FormHelp, oldText string, newText string)
	// contains filtered or unexported fields
}

func NewFormHelp added in v1.0.6

func NewFormHelp(parent uiinterfaces.Widget, title string, value string) *FormHelp

type FormItemHistory

type FormItemHistory struct {
	uicontrols.Dialog
	// contains filtered or unexported fields
}

func NewFormItemHistory

func NewFormItemHistory(parent uiinterfaces.Widget, client *client.Client, itemName string) *FormItemHistory

func (*FormItemHistory) OnInit

func (c *FormItemHistory) OnInit()

func (*FormItemHistory) SetWideValue

func (c *FormItemHistory) SetWideValue(wideValue bool)

type FormItemProperties

type FormItemProperties struct {
	uicontrols.Dialog
	// contains filtered or unexported fields
}

func NewFormItemProperties

func NewFormItemProperties(parent uiinterfaces.Widget, client *client.Client, itemName string) *FormItemProperties

func (*FormItemProperties) Dispose added in v1.0.6

func (c *FormItemProperties) Dispose()

func (*FormItemProperties) OnInit

func (c *FormItemProperties) OnInit()

type FormLookup

type FormLookup struct {
	uicontrols.Dialog
	// contains filtered or unexported fields
}

func NewFormLookup

func NewFormLookup(parent uiinterfaces.Widget, lookupResult lookup.Result) *FormLookup

func (*FormLookup) OnInit

func (c *FormLookup) OnInit()

type FormPoweredBy

type FormPoweredBy struct {
	uicontrols.Dialog
	// contains filtered or unexported fields
}

func NewFormPoweredBy

func NewFormPoweredBy(parent uiinterfaces.Widget) *FormPoweredBy

func (*FormPoweredBy) OnInit

func (c *FormPoweredBy) OnInit()

type FormRemoveFromCloud

type FormRemoveFromCloud struct {
	uicontrols.Dialog
	// contains filtered or unexported fields
}

func NewFormRemoveFromCloud

func NewFormRemoveFromCloud(parent uiinterfaces.Widget, client *client.Client, items []string, allItems []string, preferredChannels []string) *FormRemoveFromCloud

func (*FormRemoveFromCloud) OnInit

func (c *FormRemoveFromCloud) OnInit()

func (*FormRemoveFromCloud) SetAllItemsCheckBox

func (c *FormRemoveFromCloud) SetAllItemsCheckBox(checked bool)

type FormRemoveItems added in v1.0.6

type FormRemoveItems struct {
	uicontrols.Dialog
	// contains filtered or unexported fields
}

func NewFormRemoveItems added in v1.0.6

func NewFormRemoveItems(parent uiinterfaces.Widget, client *client.Client, items []string) *FormRemoveItems

func (*FormRemoveItems) OnInit added in v1.0.6

func (c *FormRemoveItems) OnInit()

type FormRemoveUnits

type FormRemoveUnits struct {
	uicontrols.Dialog
	// contains filtered or unexported fields
}

func NewFormRemoveUnits

func NewFormRemoveUnits(parent uiinterfaces.Widget, client *client.Client, units []*nodeinterface.UnitListResponseItem) *FormRemoveUnits

func (*FormRemoveUnits) OnInit

func (c *FormRemoveUnits) OnInit()

type FormStatistics

type FormStatistics struct {
	uicontrols.Dialog
	// contains filtered or unexported fields
}

func NewFormStatistics

func NewFormStatistics(parent uiinterfaces.Widget, client *client.Client) *FormStatistics

func (*FormStatistics) OnInit

func (c *FormStatistics) OnInit()

type FormUnitEdit

type FormUnitEdit struct {
	uicontrols.Dialog
	// contains filtered or unexported fields
}

func NewFormUnitEdit

func NewFormUnitEdit(parent uiinterfaces.Widget, client *client.Client, unitId string, unitType string) *FormUnitEdit

func (*FormUnitEdit) Dispose

func (c *FormUnitEdit) Dispose()

func (*FormUnitEdit) OnInit

func (c *FormUnitEdit) OnInit()

type FormWizard added in v1.0.6

type FormWizard struct {
	uicontrols.Dialog
	// contains filtered or unexported fields
}

func NewFormWizard added in v1.0.6

func NewFormWizard(parent uiinterfaces.Widget, client *client.Client) *FormWizard

func (*FormWizard) OnInit added in v1.0.6

func (c *FormWizard) OnInit()

type FormWriteValue

type FormWriteValue struct {
	uicontrols.Dialog
	// contains filtered or unexported fields
}

func NewFormWriteValue

func NewFormWriteValue(parent uiinterfaces.Widget, client *client.Client, itemName string) *FormWriteValue

func (*FormWriteValue) OnInit

func (c *FormWriteValue) OnInit()

type IShowFullScreen

type IShowFullScreen interface {
	ShowFullScreenValue(show bool)
}

type MainForm

type MainForm struct {
	uiforms.Form
	// contains filtered or unexported fields
}
var MainFormInstance *MainForm

func (*MainForm) AddNode

func (c *MainForm) AddNode(first bool)

func (*MainForm) Dispose

func (c *MainForm) Dispose()

func (*MainForm) GetTheme

func (c *MainForm) GetTheme() int

func (*MainForm) OnClose

func (c *MainForm) OnClose() bool

func (*MainForm) OnInit

func (c *MainForm) OnInit()

func (*MainForm) RemoveNode

func (c *MainForm) RemoveNode(index int)

func (*MainForm) SetTheme

func (c *MainForm) SetTheme(theme int)

func (*MainForm) ShowFullScreenValue

func (c *MainForm) ShowFullScreenValue(show bool, itemId string)

type NodeConnectionDialog

type NodeConnectionDialog struct {
	uicontrols.Dialog

	Id string

	Connection NodeConnectionInfo
	// contains filtered or unexported fields
}

func NewNodeConnectionDialog

func NewNodeConnectionDialog(parent uiinterfaces.Widget, client *client.Client, first bool) *NodeConnectionDialog

type NodeConnectionInfo

type NodeConnectionInfo struct {
	Address  string
	UserName string
	Password string
}

type PanelAdmin

type PanelAdmin struct {
	uicontrols.Panel
	// contains filtered or unexported fields
}

func NewPanelAdmin

func NewPanelAdmin(parent uiinterfaces.Widget, client *client.Client) *PanelAdmin

func (*PanelAdmin) OnInit

func (c *PanelAdmin) OnInit()

type PanelCharts

type PanelCharts struct {
	uicontrols.Panel
	// contains filtered or unexported fields
}

func NewPanelCharts

func NewPanelCharts(parent uiinterfaces.Widget, client *client.Client) *PanelCharts

func (*PanelCharts) Dispose

func (c *PanelCharts) Dispose()

func (*PanelCharts) FullRefresh

func (c *PanelCharts) FullRefresh()

func (*PanelCharts) GetDataItemValue

func (c *PanelCharts) GetDataItemValue(path string, control simplemap.IMapControl)

func (*PanelCharts) IsEditing

func (c *PanelCharts) IsEditing() bool

func (*PanelCharts) OnInit

func (c *PanelCharts) OnInit()

func (*PanelCharts) Save

func (c *PanelCharts) Save() []byte

func (*PanelCharts) SelectChartGroup added in v1.0.4

func (c *PanelCharts) SelectChartGroup(resId string)

func (*PanelCharts) SetCurrentRes

func (c *PanelCharts) SetCurrentRes(resId string, resType string) bool

func (*PanelCharts) SetEdit

func (c *PanelCharts) SetEdit(editing bool)

func (*PanelCharts) SetVisible added in v1.0.5

func (c *PanelCharts) SetVisible(visible bool)

func (*PanelCharts) UpdateStyle

func (c *PanelCharts) UpdateStyle()

type PanelCloud

type PanelCloud struct {
	uicontrols.Panel
	// contains filtered or unexported fields
}

func NewPanelCloud

func NewPanelCloud(parent uiinterfaces.Widget, client *client.Client) *PanelCloud

func (*PanelCloud) FullRefresh

func (c *PanelCloud) FullRefresh()

func (*PanelCloud) OnInit

func (c *PanelCloud) OnInit()

func (*PanelCloud) UpdateStyle

func (c *PanelCloud) UpdateStyle()

type PanelFullScreenValue

type PanelFullScreenValue struct {
	uicontrols.Panel
	// contains filtered or unexported fields
}

func NewPanelFullScreenValue

func NewPanelFullScreenValue(parent uiinterfaces.Widget, client *client.Client, itemId string) *PanelFullScreenValue

func (*PanelFullScreenValue) Clear

func (c *PanelFullScreenValue) Clear()

func (*PanelFullScreenValue) Dispose

func (c *PanelFullScreenValue) Dispose()

func (*PanelFullScreenValue) OnInit

func (c *PanelFullScreenValue) OnInit()

func (*PanelFullScreenValue) SetItemId

func (c *PanelFullScreenValue) SetItemId(itemId string)

type PanelMaps

type PanelMaps struct {
	uicontrols.Panel

	ToolBox *simplemap.MapToolbox

	OnMouseDrop       func(droppedValue interface{}, control simplemap.IMapControl, x int32, y int32)
	OnDocumentChanged func()
	OnScaleChanged    func(scale float64)
	OnActionOpenMap   func(resId string)
	OnActionWriteItem func(item string, value string)
	// contains filtered or unexported fields
}

func NewPanelMaps

func NewPanelMaps(parent uiinterfaces.Widget, client *client.Client) *PanelMaps

func (*PanelMaps) AddControl

func (c *PanelMaps) AddControl(control simplemap.IMapControl)

func (*PanelMaps) Dispose

func (c *PanelMaps) Dispose()

func (*PanelMaps) FullRefresh

func (c *PanelMaps) FullRefresh()

func (*PanelMaps) GetDataItemValue

func (c *PanelMaps) GetDataItemValue(path string, control simplemap.IMapControl)

func (*PanelMaps) GetThumbnail

func (c *PanelMaps) GetThumbnail(width, height int) image.Image

func (*PanelMaps) GetWidgets

func (c *PanelMaps) GetWidgets(filter string, offset int, maxCount int, toolbox simplemap.IMapToolbox)

func (*PanelMaps) HasChanges

func (c *PanelMaps) HasChanges() bool

func (*PanelMaps) IsEditing

func (c *PanelMaps) IsEditing() bool

func (*PanelMaps) IsLoaded

func (c *PanelMaps) IsLoaded() bool

func (*PanelMaps) Load

func (c *PanelMaps) Load(resId string, value []byte) error

func (*PanelMaps) LoadContent

func (c *PanelMaps) LoadContent(itemUrl string, control simplemap.IMapControl)

func (*PanelMaps) MoveItemDown

func (c *PanelMaps) MoveItemDown()

func (*PanelMaps) MoveItemDownMax

func (c *PanelMaps) MoveItemDownMax()

func (*PanelMaps) MoveItemUp

func (c *PanelMaps) MoveItemUp()

func (*PanelMaps) MoveItemUpMax

func (c *PanelMaps) MoveItemUpMax()

func (*PanelMaps) OnInit

func (c *PanelMaps) OnInit()

func (*PanelMaps) OnSelectionChanged

func (c *PanelMaps) OnSelectionChanged()

func (*PanelMaps) Save

func (c *PanelMaps) Save() []byte

func (*PanelMaps) SaveMap

func (c *PanelMaps) SaveMap()

func (*PanelMaps) SelectMap added in v1.0.4

func (c *PanelMaps) SelectMap(resId string)

func (*PanelMaps) SetCurrentRes

func (c *PanelMaps) SetCurrentRes(resId string, resType string)

func (*PanelMaps) SetEdit

func (c *PanelMaps) SetEdit(edit bool)

func (*PanelMaps) SetMapDataSource

func (c *PanelMaps) SetMapDataSource(mapDataSource simplemap.IMapDataSource)

func (*PanelMaps) SetOnMouseDrop

func (c *PanelMaps) SetOnMouseDrop(OnMouseDrop func(droppedValue interface{}, control simplemap.IMapControl, x int32, y int32))

func (*PanelMaps) Tick

func (c *PanelMaps) Tick()

func (*PanelMaps) UpdateStyle

func (c *PanelMaps) UpdateStyle()

func (*PanelMaps) ViewChanged

func (c *PanelMaps) ViewChanged()

func (*PanelMaps) Zoom100

func (c *PanelMaps) Zoom100()

func (*PanelMaps) ZoomIn

func (c *PanelMaps) ZoomIn()

func (*PanelMaps) ZoomInContainer

func (c *PanelMaps) ZoomInContainer()

func (*PanelMaps) ZoomOut

func (c *PanelMaps) ZoomOut()

func (*PanelMaps) ZoomToDefault

func (c *PanelMaps) ZoomToDefault()

type PanelNode

type PanelNode struct {
	uicontrols.Panel
	// contains filtered or unexported fields
}

func NewPanelNode

func NewPanelNode(parent uiinterfaces.Widget, client *client.Client, connectionIndex int) *PanelNode

func (*PanelNode) Dispose

func (c *PanelNode) Dispose()

func (*PanelNode) FullRefresh

func (c *PanelNode) FullRefresh()

func (*PanelNode) HideNavigation added in v1.0.4

func (c *PanelNode) HideNavigation()

func (*PanelNode) OnInit

func (c *PanelNode) OnInit()

func (*PanelNode) ShowFullScreenValue

func (c *PanelNode) ShowFullScreenValue(show bool, itemId string)

func (*PanelNode) ShowNavigation added in v1.0.4

func (c *PanelNode) ShowNavigation()

func (*PanelNode) StylizeButton

func (c *PanelNode) StylizeButton()

type PanelPublicChannels added in v1.0.6

type PanelPublicChannels struct {
	uicontrols.Panel
	// contains filtered or unexported fields
}

func NewPanelPublicChannels added in v1.0.6

func NewPanelPublicChannels(parent uiinterfaces.Widget, client *client.Client) *PanelPublicChannels

func (*PanelPublicChannels) Dispose added in v1.0.6

func (c *PanelPublicChannels) Dispose()

func (*PanelPublicChannels) FullRefresh added in v1.0.6

func (c *PanelPublicChannels) FullRefresh()

func (*PanelPublicChannels) OnInit added in v1.0.6

func (c *PanelPublicChannels) OnInit()

func (*PanelPublicChannels) SelectedItems added in v1.0.6

func (c *PanelPublicChannels) SelectedItems() []string

func (*PanelPublicChannels) SetCurrentChannelId added in v1.0.6

func (c *PanelPublicChannels) SetCurrentChannelId(channelId string, name string)

func (*PanelPublicChannels) UpdateStyle added in v1.0.6

func (c *PanelPublicChannels) UpdateStyle()

type PanelUnitConfigItem

type PanelUnitConfigItem struct {
	uicontrols.Panel

	OnChanged func()
	// contains filtered or unexported fields
}

func NewPanelUnitConfigItem

func NewPanelUnitConfigItem(parent uiinterfaces.Widget, item *units_common.UnitConfigItem, config interface{}, client *client.Client) *PanelUnitConfigItem

func (*PanelUnitConfigItem) Dispose

func (c *PanelUnitConfigItem) Dispose()

func (*PanelUnitConfigItem) LabelWidth

func (c *PanelUnitConfigItem) LabelWidth() int

func (*PanelUnitConfigItem) NotifyChanges

func (c *PanelUnitConfigItem) NotifyChanges()

func (*PanelUnitConfigItem) Save

func (c *PanelUnitConfigItem) Save() interface{}

func (*PanelUnitConfigItem) SetLabelWidth

func (c *PanelUnitConfigItem) SetLabelWidth(width int)

type PanelUnitConfigItems

type PanelUnitConfigItems struct {
	uicontrols.Panel

	OnChanged func()

	OnConfigChanged func()
	// contains filtered or unexported fields
}

func NewPanelUnitConfigItems

func NewPanelUnitConfigItems(parent uiinterfaces.Widget, configMeta []*units_common.UnitConfigItem, config interface{}, client *client.Client) *PanelUnitConfigItems

func (*PanelUnitConfigItems) Changed

func (c *PanelUnitConfigItems) Changed()

func (*PanelUnitConfigItems) Dispose

func (c *PanelUnitConfigItems) Dispose()

type PanelUnits

type PanelUnits struct {
	uicontrols.Panel
	// contains filtered or unexported fields
}

func NewPanelUnits

func NewPanelUnits(parent uiinterfaces.Widget, client *client.Client) *PanelUnits

func (*PanelUnits) Activate

func (c *PanelUnits) Activate()

func (*PanelUnits) AllItems

func (c *PanelUnits) AllItems() []string

func (*PanelUnits) Dispose

func (c *PanelUnits) Dispose()

func (*PanelUnits) FullRefresh

func (c *PanelUnits) FullRefresh()

func (*PanelUnits) OnInit

func (c *PanelUnits) OnInit()

func (*PanelUnits) SelectedItems

func (c *PanelUnits) SelectedItems() []string

func (*PanelUnits) SetCurrentUnit

func (c *PanelUnits) SetCurrentUnit(unitId string, unitName string, mainItem string)

func (*PanelUnits) UpdateStyle

func (c *PanelUnits) UpdateStyle()

type PanelUsers

type PanelUsers struct {
	uicontrols.Panel
	// contains filtered or unexported fields
}

func NewPanelUsers

func NewPanelUsers(parent uiinterfaces.Widget, client *client.Client) *PanelUsers

func (*PanelUsers) Dispose added in v1.0.1

func (c *PanelUsers) Dispose()

func (*PanelUsers) FullRefresh added in v1.0.1

func (c *PanelUsers) FullRefresh()

func (*PanelUsers) OnInit

func (c *PanelUsers) OnInit()

func (*PanelUsers) SelectedUsers added in v1.0.1

func (c *PanelUsers) SelectedUsers() []string

func (*PanelUsers) SetCurrentUser added in v1.0.1

func (c *PanelUsers) SetCurrentUser(name string)

func (*PanelUsers) UpdateStyle added in v1.0.1

func (c *PanelUsers) UpdateStyle()

type ServiceDialog

type ServiceDialog struct {
	uicontrols.Dialog
	// contains filtered or unexported fields
}

func NewServiceDialog

func NewServiceDialog(parent uiinterfaces.Widget, cl *client.Client) *ServiceDialog

type UnitsTreeControl

type UnitsTreeControl struct {
	uicontrols.Panel
	// contains filtered or unexported fields
}

func NewUnitTreeControl

func NewUnitTreeControl(parent uiinterfaces.Widget, client *client.Client) *UnitsTreeControl

func (*UnitsTreeControl) OnInit

func (c *UnitsTreeControl) OnInit()

func (*UnitsTreeControl) SelectedItems

func (c *UnitsTreeControl) SelectedItems() []string

func (*UnitsTreeControl) SetChannelId

func (c *UnitsTreeControl) SetChannelId(channelId string)

func (*UnitsTreeControl) SetUnitId

func (c *UnitsTreeControl) SetUnitId(unitId string)

Jump to

Keyboard shortcuts

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