ui

package
v0.0.0-...-bfb9f03 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BedLevelPanel

func BedLevelPanel(
	ui *UI,
) *bedLevelPanel

func ConfigurationPanel

func ConfigurationPanel(
	ui *UI,
) *configurationPanel

func ConnectionPanel

func ConnectionPanel(
	ui *UI,
	SSID string,
) *connectionPanel

func ControlPanel

func ControlPanel(
	ui *UI,
) *controlPanel

func CreateFatalErrorWindow

func CreateFatalErrorWindow(message string, description string) *gtk.Window

func CustomItemsPanel

func CustomItemsPanel(
	ui *UI,
	items []dataModels.MenuItem,
) *customItemsPanel

func FanPanel

func FanPanel(
	ui *UI,
) *fanPanel

func FilamentPanel

func FilamentPanel(
	ui *UI,
) *filamentPanel

func FilesPanel

func FilesPanel(
	ui *UI,
) *filesPanel

func HomePanel

func HomePanel(
	ui *UI,
) *homePanel

func IdleStatusPanel

func IdleStatusPanel(ui *UI) *idleStatusPanel

func MovePanel

func MovePanel(
	ui *UI,
) *movePanel

func NetworkPanel

func NetworkPanel(
	ui *UI,
) *networkPanel

func PrintMenuPanel

func PrintMenuPanel(
	ui *UI,
) *printMenuPanel

func PrintStatusPanel

func PrintStatusPanel(ui *UI) *printStatusPanel

func SystemPanel

func SystemPanel(
	ui *UI,
) *systemPanel

func TemperaturePanel

func TemperaturePanel(
	ui *UI,
) *temperaturePanel

func TemperaturePresetsPanel

func TemperaturePresetsPanel(
	ui *UI,
	selectHotendStepButton *uiWidgets.SelectToolStepButton,
) *temperaturePresetsPanel

func ToolChangerPanel

func ToolChangerPanel(
	ui *UI,
) *toolChangerPanel

func ZOffsetCalibrationPanel

func ZOffsetCalibrationPanel(
	ui *UI,
) *zOffsetCalibrationPanel

Types

type CommonPanel

type CommonPanel struct {
	UI *UI
	// contains filtered or unexported fields
}

func NewCommonPanel

func NewCommonPanel(
	name string,
	ui *UI,

) CommonPanel

func NewTopLevelCommonPanel

func NewTopLevelCommonPanel(
	name string,
	ui *UI,

) CommonPanel

func (*CommonPanel) AddButton

func (this *CommonPanel) AddButton(button gtk.IWidget)

func (*CommonPanel) Grid

func (this *CommonPanel) Grid() *gtk.Grid

func (*CommonPanel) Hide

func (this *CommonPanel) Hide()

func (*CommonPanel) Initialize

func (this *CommonPanel) Initialize()

func (*CommonPanel) Name

func (this *CommonPanel) Name() string

func (*CommonPanel) PreShow

func (this *CommonPanel) PreShow()

func (*CommonPanel) Scaled

func (this *CommonPanel) Scaled(s int) int

func (*CommonPanel) Show

func (this *CommonPanel) Show()

type HttpRequestTestWindow

type HttpRequestTestWindow struct {
	Window         *gtk.Window
	Label          *gtk.Label
	Client         *octoprintApis.Client
	BackgroundTask *utils.BackgroundTask
	UpdateCount    int
}

func CreateHttpRequestTestWindow

func CreateHttpRequestTestWindow(
	endpoint string,
	key string,
	width int,
	height int,
) *HttpRequestTestWindow

type SplashPanel

type SplashPanel struct {
	CommonPanel
	Label       *gtk.Label
	RetryButton *gtk.Button
}

func NewSplashPanel

func NewSplashPanel(ui *UI) *SplashPanel

type UI

type UI struct {
	sync.Mutex

	PanelHistory    *stack.Stack
	Client          *octoprintApis.Client
	ConnectionState dataModels.ConnectionState
	Settings        *dataModels.YallyScreenSettingsResponse

	UIState string

	OctoPrintPluginIsAvailable bool

	NotificationsBox *uiWidgets.NotificationsBox
	// contains filtered or unexported fields
}

func New

func New(endpoint, key string, width, height int) *UI

func (*UI) GoToPanel

func (this *UI) GoToPanel(panel interfaces.IPanel)

func (*UI) GoToPreviousPanel

func (this *UI) GoToPreviousPanel()

func (*UI) RemovePanelFromUi

func (this *UI) RemovePanelFromUi(panel interfaces.IPanel)

func (*UI) SetUiToPanel

func (this *UI) SetUiToPanel(panel interfaces.IPanel)

Jump to

Keyboard shortcuts

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