Documentation ¶
Index ¶
- Constants
- type Controller
- type View
- func (v *View) AddTreeViewNode(env *domain.Environment)
- func (v *View) CloseTab(id string)
- func (v *View) HidePrompt(id string)
- func (v *View) IsTabOpen(id string) bool
- func (v *View) Layout(gtx layout.Context, theme *chapartheme.Theme) layout.Dimensions
- func (v *View) OpenContainer(env *domain.Environment)
- func (v *View) OpenTab(env *domain.Environment)
- func (v *View) PopulateTreeView(envs []*domain.Environment)
- func (v *View) ReloadContainerData(env *domain.Environment)
- func (v *View) RemoveTreeViewNode(id string)
- func (v *View) SetOnImportEnv(onImportEnv func())
- func (v *View) SetOnItemsChanged(onItemsChanged func(id string, items []domain.KeyValue))
- func (v *View) SetOnNewEnv(onNewEnv func())
- func (v *View) SetOnSave(onSave func(id string))
- func (v *View) SetOnTabClose(onTabClose func(id string))
- func (v *View) SetOnTabSelected(onTabSelected func(id string))
- func (v *View) SetOnTitleChanged(onTitleChanged func(id, title string))
- func (v *View) SetOnTreeViewMenuClicked(onTreeViewMenuClicked func(id string, action string))
- func (v *View) SetOnTreeViewNodeClicked(onTreeViewNodeClicked func(id string))
- func (v *View) SetTabDirty(id string, dirty bool)
- func (v *View) ShowPrompt(id, title, content, modalType string, ...)
- func (v *View) SwitchToTab(id string)
- func (v *View) UpdateTabTitle(id, title string)
- func (v *View) UpdateTreeNodeTitle(id, title string)
- func (v *View) UpdateTreeViewNode(env *domain.Environment)
Constants ¶
View Source
const ( Duplicate = "Duplicate" Delete = "Delete" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(view *View, repo repository.Repository, envState *state.Environments, explorer *explorer.Explorer) *Controller
func (*Controller) LoadData ¶
func (c *Controller) LoadData() error
type View ¶
type View struct {
// contains filtered or unexported fields
}
func NewView ¶
func NewView(theme *chapartheme.Theme) *View
func (*View) AddTreeViewNode ¶
func (v *View) AddTreeViewNode(env *domain.Environment)
func (*View) HidePrompt ¶
func (*View) Layout ¶
func (v *View) Layout(gtx layout.Context, theme *chapartheme.Theme) layout.Dimensions
func (*View) OpenContainer ¶
func (v *View) OpenContainer(env *domain.Environment)
func (*View) OpenTab ¶
func (v *View) OpenTab(env *domain.Environment)
func (*View) PopulateTreeView ¶
func (v *View) PopulateTreeView(envs []*domain.Environment)
func (*View) ReloadContainerData ¶
func (v *View) ReloadContainerData(env *domain.Environment)
func (*View) RemoveTreeViewNode ¶
func (*View) SetOnImportEnv ¶
func (v *View) SetOnImportEnv(onImportEnv func())
func (*View) SetOnItemsChanged ¶
func (*View) SetOnNewEnv ¶
func (v *View) SetOnNewEnv(onNewEnv func())
func (*View) SetOnTabClose ¶
func (*View) SetOnTabSelected ¶
func (*View) SetOnTitleChanged ¶
func (*View) SetOnTreeViewMenuClicked ¶
func (*View) SetOnTreeViewNodeClicked ¶
func (*View) SetTabDirty ¶
func (*View) ShowPrompt ¶
func (*View) SwitchToTab ¶
func (*View) UpdateTabTitle ¶
func (*View) UpdateTreeNodeTitle ¶
func (*View) UpdateTreeViewNode ¶
func (v *View) UpdateTreeViewNode(env *domain.Environment)
Click to show internal directories.
Click to hide internal directories.