appinfo

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: 16 Imported by: 0

Documentation

Overview

Package appinfo provides an applets list with edit applet info widget.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfApplet

type ConfApplet struct {
	gtk.Box

	Applets *map[string]datatype.Appleter // List of applets known by the Dock.
	// contains filtered or unexported fields
}

ConfApplet provides an applets list with edit applet info widget.

func New

func New(source cftype.Source, log cdtype.Logger, switcher *pageswitch.Switcher) *ConfApplet

New creates a widget to list cairo-dock applets and themes.

func NewLoaded

func NewLoaded(source cftype.Source, log cdtype.Logger, switcher *pageswitch.Switcher) *ConfApplet

NewLoaded creates a widget to list cairo-dock applets and themes and loads data.

func (*ConfApplet) Clear

func (widget *ConfApplet) Clear()

Clear clears the widget data.

func (*ConfApplet) Load

func (widget *ConfApplet) Load()

Load list of applets in the appletlist.

func (*ConfApplet) OnSelect

func (widget *ConfApplet) OnSelect(selpack datatype.Appleter)

OnSelect reacts when a row is selected. Sets the new selected package.

func (*ConfApplet) Save

func (widget *ConfApplet) Save()

Save saves current applet info (user clicked the save button).

func (*ConfApplet) SetControlInstall

func (widget *ConfApplet) SetControlInstall(ctrl appletlist.ControlInstall)

SetControlInstall forwards the list controler to the menu for updates.

type EditInfo

type EditInfo struct {
	Title         *cftype.Key
	Author        *cftype.Key
	Version       *cftype.Key
	Category      *cftype.Key
	MultiInstance *cftype.Key
	ActAsLauncher *cftype.Key
	Description   *cftype.Key
	Name          *cftype.Key
	Icon          *cftype.Key
	Path          *cftype.Key
	// contains filtered or unexported fields
}

EditInfo defines an applet info edit widget.

func NewEdit

func NewEdit(log cdtype.Logger) *EditInfo

NewEdit creates a welcome widget with informations about the program.

func (*EditInfo) Edited

func (ed *EditInfo) Edited() map[packages.AppInfoField]interface{}

Edited returns the list of edited fields.

func (*EditInfo) NewBuilder

func (ed *EditInfo) NewBuilder(source cftype.Source, log cdtype.Logger, switcher *pageswitch.Switcher) cftype.Grouper

NewBuilder creates the builder widget to edit applet info.

func (*EditInfo) SetPack

func (ed *EditInfo) SetPack(pack *packages.AppletPackage)

SetPack applies package data in the editor.

type GUIControl

type GUIControl interface {
	ListKnownApplets() map[string]datatype.Appleter
}

GUIControl is the interface to the main GUI and data source.

Jump to

Keyboard shortcuts

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