appletlist

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

Documentation

Overview

Package appletlist provides an applets list treeview widget.

Index

Constants

View Source
const (
	RowKey = iota
	RowIcon
	RowName
	RowCategory
	RowNameWeight // Display param
)

Rows defines liststore rows. Must match the ListStore declaration type and order.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControlDownload

type ControlDownload interface {
	OnSelect(datatype.Appleter)
	SetControlInstall(ControlInstall)
	Save()
}

ControlDownload is the interface to the main GUI for the download page.

type ControlInstall

type ControlInstall interface {
	Selected() datatype.Appleter
	SetActive(state bool)
}

ControlInstall is the interface to the download page for the main GUI.

type List

type List struct {
	gtk.ScrolledWindow // Main widget is the container. The ScrolledWindow will handle list scrollbars.
	// contains filtered or unexported fields
}

List defines an applets list widget.

func NewList

func NewList(control ControlDownload, log cdtype.Logger) *List

NewList creates a new applets list widget.

func (*List) Clear

func (widget *List) Clear()

Clear clears the widget data.

func (*List) Delete

func (widget *List) Delete(key string)

Delete deletes a row.

func (*List) Selected

func (widget *List) Selected() datatype.Appleter

Selected returns the applet package for the selected line.

func (*List) SetActive

func (widget *List) SetActive(state bool)

SetActive sets the active state of selected line.

type ListAdd

type ListAdd struct {
	ListPack
	// contains filtered or unexported fields
}

ListAdd defines an applet list widget with applets allowed to be enabled.

func NewListAdd

func NewListAdd(control ControlDownload, log cdtype.Logger) *ListAdd

NewListAdd creates an applet list widget with applets allowed to be enabled.

func (*ListAdd) Clear

func (widget *ListAdd) Clear()

Clear clears the widget data.

func (*ListAdd) Load

func (widget *ListAdd) Load(list map[string]datatype.Appleter)

Load loads the applet list into the widget.

func (*ListAdd) UpdateModuleState

func (widget *ListAdd) UpdateModuleState(name string, active bool)

UpdateModuleState updates the state of the given applet, from a dock event.

type ListEditApp

type ListEditApp struct {
	ListPack
}

ListEditApp defines an applet list widget with applets allowed to be enabled.

func NewListEditApp

func NewListEditApp(control ControlDownload, log cdtype.Logger) *ListEditApp

NewListEditApp creates an applet list widget with editable applet info.

func (*ListEditApp) Load

func (widget *ListEditApp) Load(list map[string]datatype.Appleter)

Load loads the applet list into the widget.

type ListExternal

type ListExternal struct {
	List
}

ListExternal defines an applet list widget with external applets to install.

func NewListExternal

func NewListExternal(control ControlDownload, log cdtype.Logger) *ListExternal

NewListExternal creates an applet list widget with external applets to install.

func (*ListExternal) Load

func (widget *ListExternal) Load(list map[string]datatype.Appleter)

Load loads the applet list into the widget.

type ListPack

type ListPack struct {
	List
}

ListPack defines an applet list widget with applets allowed to be enabled.

func (*ListPack) AddRow

func (widget *ListPack) AddRow(name string, app datatype.Appleter)

AddRow adds a row for the applet in the applet list.

type ListThemes

type ListThemes struct {
	List
}

ListThemes defines an list and preview widget with dock themes to install.

func NewListThemes

func NewListThemes(control ControlDownload, log cdtype.Logger) *ListThemes

NewListThemes creates a list and preview widget with dock themes to install.

func (*ListThemes) Load

func (widget *ListThemes) Load(list map[string]datatype.Appleter)

Load loads the applet list into the widget.

type Row

type Row struct {
	Iter *gtk.TreeIter
	Pack datatype.Appleter
}

Row defines a pointer to link the package reference with its iter.

Jump to

Keyboard shortcuts

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