guibridge

package
v0.0.0-...-0caaa62 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2017 License: GPL-3.0-or-later Imports: 7 Imported by: 0

Documentation

Overview

Package guibridge provides a bridge between the dock and its config window.

It can create the config widget and window connected to the data source, and forward dock events to update the GUI.

Implements backendgui.GuiInterface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bridge

type Bridge struct {
	Widget *confgui.GuiConfigure
	Source datatype.Source
	Log    cdtype.Logger
}

Bridge provides the internal dock interface to the GUI.

func New

func New(log cdtype.Logger) *Bridge

New creates a GUI bridge that will answer to all GUI events.

func (*Bridge) CloseGui

func (gc *Bridge) CloseGui()

CloseGui closes the configuration window.

func (*Bridge) Create

func (gc *Bridge) Create()

Create creates the config window.

func (*Bridge) ReloadCurrentWidget

func (gc *Bridge) ReloadCurrentWidget(moduleInstance *gldi.ModuleInstance, showPage int)

ReloadCurrentWidget is unused. TODO.

func (*Bridge) ReloadItems

func (gc *Bridge) ReloadItems()

ReloadItems forwards the dock event to the GUI if loaded.

func (*Bridge) SetStatusMessage

func (gc *Bridge) SetStatusMessage(message string)

SetStatusMessage is unused. TODO.

func (*Bridge) ShowAddons

func (gc *Bridge) ShowAddons()

ShowAddons opens the GUI and displays the applets page.

func (*Bridge) ShowItems

func (gc *Bridge) ShowItems(icon gldi.Icon, container *gldi.Container, moduleInstance *gldi.ModuleInstance, showPage int)

ShowItems opens the GUI and displays the given item icon config.

func (*Bridge) ShowMainGui

func (gc *Bridge) ShowMainGui()

ShowMainGui opens the GUI and displays the dock config page.

func (*Bridge) ShowModuleGui

func (gc *Bridge) ShowModuleGui(key string)

ShowModuleGui opens the GUI and should display an item of the config page.

TODO: maybe rename. (was to display an applets config and is used only for Help ATM)

func (*Bridge) ShowModuleInstanceGui

func (gc *Bridge) ShowModuleInstanceGui(pModuleInstance *gldi.ModuleInstance, iShowPage int)

ShowModuleInstanceGui is unused. TODO.

func (*Bridge) UpdateDeskletParams

func (gc *Bridge) UpdateDeskletParams(desklet *gldi.Desklet)

UpdateDeskletParams forwards the dock event to the GUI.

func (*Bridge) UpdateDeskletVisibility

func (gc *Bridge) UpdateDeskletVisibility(desklet *gldi.Desklet)

UpdateDeskletVisibility forwards the dock event to the GUI.

func (*Bridge) UpdateModuleInstanceContainer

func (gc *Bridge) UpdateModuleInstanceContainer(instance *gldi.ModuleInstance, detached bool)

UpdateModuleInstanceContainer forwards the dock event to the GUI. TODO.

func (*Bridge) UpdateModuleState

func (gc *Bridge) UpdateModuleState(name string, active bool)

UpdateModuleState forwards the dock event to the GUI if loaded.

func (*Bridge) UpdateModulesList

func (gc *Bridge) UpdateModulesList()

UpdateModulesList forwards the dock event to the GUI if loaded.

func (*Bridge) UpdateShortkeys

func (gc *Bridge) UpdateShortkeys()

UpdateShortkeys forwards the dock event to the GUI if loaded.

func (*Bridge) Window

func (gc *Bridge) Window() cftype.WinLike

Window returns the pointer to the parent window.

Jump to

Keyboard shortcuts

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